Well I'm just a newbie to c programming myself but I have some remarks:
1) You should enter the data without the commas I think, just use spaces
2) The printf statement is wrong, should be more...
Type: Posts; User: Blur
Well I'm just a newbie to c programming myself but I have some remarks:
1) You should enter the data without the commas I think, just use spaces
2) The printf statement is wrong, should be more...
Maybe you should post the errors given by the compiler?! If any, or describe what does not work...
Thanks for the reply's, helped a lot! I'm sure I can make my program work now. :D
I do not want to compare values but perform calculations with them...
Ex: 0.1 - 0.1 = 0 but 0.1 - 0.100009 <> 0 or does c treats them the same? I tried this:
float example_array[] = {0.2F,...
Hello,
I declared a float array in my program as follows:
float example_array[] = {0.2, 0.1};
when I look at the debugger while running my program; it says that the array holds...
Do you mean... right click on the icon... properties.... change icon? :rolleyes:
Ok, thanks guys...
1/ I retyped the code... (so I get a better feel for it) I'm new to c... and clearly made an error using the assignment operator...
2/ Didn't know about the EOF signaling :eek:
I've entered the program that is on page 29 of the K&R book. I use the Dev-cpp IDE on a Windows machine. The code compiles fine but I had to change a line in the code to get to program to work.
...