1 ( 1)
CodeBlocks
1. : CodeBlocks. . . . .
2. : . . .
3. : : CELERON, RAM 256 Mbyte, HDD 20 Gbyte, Video svga 1024 * 768, highcolor. Linux Ubuntu 8.04.1. CodeBlocks.
CodeBlocks
CodeBlocks Ubuntu 9.04. www.codeblocks.org OS LINUX Windows. , ++, . . , , , .
QT_Designer, Anjuta, KDevelop .
:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12. .
5.1. , Linux. ( Student, student).
5.2. , Student ! , . ().
/home/student/Work/. .
5.3. Gnome , . Code::Blocks IDE. CodeBlocks (.1).
|
|
5.4. File → New → Project . (.2) Console Application Go. (.3) . /home/student/Work/ (.4), LR1 Next. (.5) Finish. main.c (.6).
5.5. . :
- , #
- main(), . , { }, , . ,
printf("Hello, world!\n");
.
return EXIT_SUCCESS;
( EXIT_SUCCESS).
- . /* */.
.1. CodeBlocks.
.2. | .3. | |||
.4. | .5. ( ) |
.6. Hello world!
5.6. Build → Build. CodeBlocks
0 errors, 0 warnings (0 , 0 ).
Build → Run. (.7). ( ) Build → Build and run. , .
, , (.8). . 8.
.7. ,
: 5.6.1. , CodeBlocks.
5.6.2. main :
int main()
{
printf("Hello, world! ")
printf("We are happy to see this program!\n");
return EXIT_SUCCESS
}
. .
.
5.6.3. , .
5.6.4. \n .
5.6.5. , .
5.6.6. , *.
5.6.7. .
|
|
.8.
5.7. . .
5.8. .
1.