线上网址 http://c.learncodethehardway.org/book/
Here is a simple first program you can make in C:
int main(int argc, char *argv[])
{
puts("Hello world.");
return 0;
}
You can put this into a ex1.c then type:$ make ex1
cc ex1.c -o ex1
Your computer may use a slightly different command, but the end result should be a file named ex1 that you can run.
Here is a simple first program you can make in C:
int main(int argc, char *argv[])
{
puts("Hello world.");
return 0;
}
You can put this into a ex1.c then type:$ make ex1
cc ex1.c -o ex1
Your computer may use a slightly different command, but the end result should be a file named ex1 that you can run.
