User Profile
Collapse
-
My issues were resolved by and1hotsauce . Thank you -
I'm not sure what this is at all but thank you for the reply.
I think i must just be unfamiliar with the syntax you are using....Leave a comment:
-
thank you whodgson, I ultimately did just eliminate the defines.Leave a comment:
-
Trying to do Simple Multiplication
I've been looking online but am having trouble finding sources on using C for basic multiplication. I'm assuming this is not the original purpose of C, but its what I need to do.
If anyone can see glaring errors i'm making please let me know!
I've tried declaring my variables as both doubles and int 's but to no avail.
...Code:#include <stdio.h> #include <math.h> int main()
-
kfindley started a topic I'm having trouble with my code compiling, "error: return type defaults to 'int'"in CI'm having trouble with my code compiling, "error: return type defaults to 'int'"
#include <stdio.h>
main() /*program which introduces keyboard input */
{
int number;
printf ("Type in a number \n");
scanf ("%d", &number);
printf ("The number you typed was %d\n", number);
}
I then try to compile with "gcc -Wall -Werror -Lm user_input.c"
but I am receiving an error....
No activity results to display
Show More
Leave a comment: