Read the VI command for several days, hehe, no sense of achievement. A mess, there are some instructions for gcc,gdb,make. But no practice, today's practice, haha, very comfortable.
VI is not used, the level of the bottom also did not feel anything, hehe
But Gedit is very good, can identify a lot of languages oh, c,java,c# and so on.
hello.c
#include <stdio.h>
int main ()
{
printf ("Hello world!");
return 0;
}
Compiling with GCC:
Gcc-o Hello hello.c
./hello
is the output
Hello world!
Successful, although studied the programming under the Linux, but this time is autonomous, haha.
At the same time, a problem was found.
As in the following procedure
TEST.c
#include <stdio.h>
int main ()
{
for (;;)
{
}
return 0;
}
This program will be a big problem once it is compiled.
At first I did not notice, ordered a lot of under, hehe, then there is no problem.
There's a big problem slowly.
My CPU, or my double core, ran to 100%.
Sweat.......
I look at the manager: I did not think of the amount, is the test run occupied with so many things hungry ...