i placed them where you say...compiles but when is run it generates the 20 sentences..then, three errors appears...if i place the declarations before int main() its compiles and runs well... why is...
Type: Posts; User: pancho
i placed them where you say...compiles but when is run it generates the 20 sentences..then, three errors appears...if i place the declarations before int main() its compiles and runs well... why is...
i have this random sentence generator code...it is running juts fine but why if I declare the variables in main it generates run time errors??
#include <stdio.h>
#include <time.h>
#include...
thanks a lot...so I guess it is around 6 pages......that is all I needed to know...
i have a document in wordpad ( a research paper)...i want to know how many pages it occupies in ms -word with font size 12 and the whole document double spaced....thanks
the document is attached
well....im not sure but u can try using pointers...correct me if im wrong
is there any way to include sounds and color in c?
if so how?
where can i download a good free C compiler for win98?
those changes still make my program run improperly..plz help me...i did my work but cant figure it out! i have 40 minutes to submit it..please! here is the code...run it and see what i mean....plz!
...
this is an airline program..seats 1 to 5 go to first class...seats 6 to 10 to economy class...if one class is full the message of choosing another class or wating 3 hours for nexf flight should...
its almost done...it compiles and works almost perfect....well when I write a good answer after doing it wrong it doesnt print a positive response..instead it displays the menu...what i have to do in...
here is.,...the problem is that it always prints the wrong responses even though i perform the multiplications well....whats wrong?
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
...
no....with the responses that are in the switch structures above...please! thanks
thanks!!!! .......the program is running properly ...
well, the grand final question:
the program ask the following feature which I dont know how to do:
*use the following function: void...
nop...the loop is when the responses appear...for example if i answer correctly it will loop with excellent! forever......how do i correct that?
this is supposed to be a multiplication program.. it compiles well but when I run it an indefinite loop is caused. can't see where. heeelp! i've been doing this for 2 days!....how I create the...
i would like to know how to generate random messages for a multiplication program. If the answer is correct the program must generate one of the four correct responses. the same for an incorrect...
:D
thanks man....the program works pretty well....
even though is 100 percent right i am going to try to recode mine based on yours...its because i dont like easy things, i like to figure out......
here is the problem..
The function floor is one of the functions available in the C math library (floor(x) rounds the decimal number x to the largest integer not greater than x). The function floor...
here is my code......
#include <stdio.h>
int main()
{
float weeklysale, salary1, salary2, salary3, salary4, rate;
int id, paycode, hours, itemsproduced;
it is much better but still is not functioning 100 percent....thanks!
i corrected the getchar() thing. is functioning better but still printing things that should not appear...also i want after it calculates a salary to print "enter employee (-1 to end)" again--how do...
:( this is SUPPOSED to compute 4 types of salaries but it symply doesn't work....can u help me out?? please note that im not allowed to use any other structures or functions because it is an...