hello I have a pretty simple question in regards to EOF. My code takes an input of numbers and stores them in an array-->
Item 1 :34
Item 2 :56
Item 3 :54.543
Item 4 :-54.53
Item 5 :^D
when...
Type: Posts; User: aweida
hello I have a pretty simple question in regards to EOF. My code takes an input of numbers and stores them in an array-->
Item 1 :34
Item 2 :56
Item 3 :54.543
Item 4 :-54.53
Item 5 :^D
when...
The compiler doesn't give me errors, but it does print "hello world"
great, thanks!
I know there is tons of posts on this but I still cant seem to solve my problem. I am brand new to programming and im trying to run my test.c in GCC.
my version is
Charles-Aweidas-MacBook-Pro:~...
I finally figured it out....
if (operatorInput == 'r' || operatorInput == 'R') {
EOF;
printf("final result is %.1f\n", newResult);
printf("agian? [y/n]\n");
getchar();...
I appreciate the comments, it obvious that I am brand new to programing so the feedback is very helpful.
I tried to implement some of the comments but I am still having some issues. I made one big...
I have a simple calculator program, the program runs and I want it to say "calculator is on" but I only want it to say this "one time" at the beginning. I made a value count but it resets it self...
Thanks for the help, getchar() does clear the buffer and it did work, thanks for pointing me in the right direction.
-c
I am trying to make a simple calculator that will take a value and perform an operator on the value multiple times for example
result = 0.0
+5
result + 5.0 = 5.0
new result = 5.0
*2.2
...