No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
12 Posted Topics
this is also my problem.. but is it possible to store names in an array using strcpy?
Just what is wrong with this simple code of mine? [CODE]#include<stdio.h> #include<string.h> #include<stdlib.h> main() { int i=0, num; char a[8]; char keyword[8]; system("cls"); while(i<8) { num = rand()%3; if ( num == 0 ) a[i] = 65 + rand()%26; /* 65 is the ascii value of A */ else if …
Will atoi() convert the convertible characters in a string? I mean, in this problem, [code=c]post[20]="822*/3+2"[/code], if i write [code=c]atoi(post)[/code], will it convert the numerical characters to int? And how about the operators?
[CODE]strcpy(post[j],in[x]);[/CODE] Just what is wrong with this code of mine? in[x]='4' But it doesn't copy the value to post[j]
My question is: If i'm the customer, how can i edit the quantity shown on the overview so that i can afford to pay the totalprice(if i've ordered too much) and delete some on the overview if i want to delete it(really short on money). And if i'm the owner …
dont just ask for help, make ur own code, we'll help you debug.
yours is like mine.. but sorry, if you don't show effort, nobody will help you.. Godbless!
[code] #include <stdio.h> #include <string.h> #include <conio.h> #define MAX 17 #define TAX_RATE 0.12 #define LENGTH 30 struct menuItemType { char menuItem[LENGTH]; float menuPrice; int numOrdered; }theMenu[MAX]; void Menu(void); int getData(int); void overView(void); void initialize(void); int order(void); float pbill=0; float bill=0; float totalTax=0; int main(void) { int choice=0; char end; initialize(); …
is it your assignment? i've already solved that problem.. it's a quiz last january.. hmm.. use only loop. I won't give you the code =))
i am Brian D. Tinampay, a first year student of Mindanao University of Science and Technology taking up Bachelor of Science in Information Technology in Cagayan de Oro City. I am a former computer game addict that eagerly wants to learn more about computer programming. Our schedule is only once …
I'm new in programming, i really really want to learn and i think i can learn faster if someone will give me problems so that i can answer them without asking for help from others. Now, i learned loop last week so i think i'm on for making programs. I …
The End.
moonw3ll