View
66
Download
0
Embed Size (px)
DESCRIPTION
עבודה עם Eclipse. מבוא לתכנות מערכות. IDE – סביבת פיתוח. בניגוד לכלים שראינו עד עכשיו סביבת פיתוח היא תוכנה המנסה לאגד מספר כלים תחת מנשק אחיד. למשל: Turbo C++ , Dev C++ ו- Visual Studio הן סביבות פיתוח לתכנות ב- C/C++ (בין השאר). סביבות פיתוח. מכילות קיצורים . - PowerPoint PPT Presentation
*
.: Turbo C++, Dev C++ -Visual Studio -C/C++ ( ).
*
. . . . .
. . = = *
Eclipse .
-Eclipse CDT. C/C++. *
Eclipse CDT . ( Windows) " : gcc -Windows gdb -Windows
. .
Eclipse :
http://www.eclipse.org/ *
Eclipse (directory) -workspace.
-workspace . .
*
.
: ( ) *
File, New, C Project. -Project .
-executable, empty project. *
.
-File,New -Source File ( c) Header File ( h).
:account.h Account.account.c Account.main.c . *
-Project Explorer .
.
. *
. , ( )
-Project, Build Project. -Build All . Ctrl+B.
: . : . *
" Eclipse -Console .
. *
-Problems.
" .
Window, Show View, -General, Problems.
*
.
-Console. . . .
" -Run, Run as, Local C/C++ Application
*
" ( ( -Console.
" Run -Run " Ctrl+F11.
Windows -Console , " :
setvbuf(stdout, NULL, _IONBF, 0);setvbuf(stderr, NULL, _IONBF, 0); *
Eclipse . -Run As .
-Run, Run Configurations. . . -Arguments .> bank.exe database.txt" . : *
: -C/C++ Build, Settings. GCC C Compiler, Warnings: Werror pedantirc-errors Wall , . Miscellaneous: -other flags: -std=c99 " -Project, Properties. . *
object -Linker, Miscellaneous.
Other Object .
.
: , -object . , object, . *
Content Assist Ctrl+Space ( )
: , , h #include '...
.
( -Enter )
. *
Word Completion: . Alt+/ Alt+/ ( ) *
.
. .
.
. .
Eclipse . . . . *
Eclipse : . Tasks .
" -Window, Preferences -C/C++, Task Tags.
" TODO FIXME .
*
.
" .
-Eclipse Alt+ ( back ) -Outline . " Window, Show view -General, Outline.
.
*
.
" , , ' -Open Declaration
, : -Open Declaration. -Ctrl . -Ctrl . *
. Code Conventions.
Ctrl+Shift+F -Eclipse . . {,}. . *
.
. -Window, Preferences -C/C++,Code Style. *
. : . 80 . 80 .
-80 . -Window, Preferences -General, Editors, Text Editors. Show print margin Print margin column 80. *
. .
.
.
, -Open Call Hierarchy *
Refactoring .
Eclipse .
. *
Rename: // . . ( ) Refactor.
Rename in file: . "". " Ctrl+1 -Rename in file
-Refactoring -Refactor -++C. ++C.
*
**GCC Unix -Windows: CygWin Unix Windows GCC. -GCC MinGW - Unix -Windows . (" native )
Eclipse . CDT . GCC , . ( Ubuntu )
: Eclipse -Java. -C, Java Java. Java Eclipse. Java -http://www.java.com.
*-workspace . . .
. .
Workspace - Use this as the default and do not ask again . -Windows, Preferences -General, Startup and shutdown, Workspaces.* . , . -workspace.
* . Shared library -Static library .Makefile project / . Executable .
Toolchain , , - . " . Windows : MinGW GCC CygWin GCC -MinGW GCC.
* -Other . source file -header file . -header file #include .
, .* -project explorer . (" ) " . . " .* : . , 10 ! ! .
.*Eclipse . ; . .
. . .** /. ( ") ( ). " fflush(FILE* fd) ." . -Windows . setvbuf . stdout -stderr.
** . Window, Preferences .** , . .* semantic highlighting. syntax highlighting. -syntax highlighting . .( -++C, )* TODO -FIXME .* View -Eclipse Window . Eclipse - perspectives. . C/C++ Debug.* : -Outline. F3.
++C -Eclipse , ., ++C , " . .* -Code conventions " ( )**** Rename . , . -code conventions ( , )
-refactoring , . . -++C. .*
Recommended
View more >