362
Ï Ï Ï ð ð ð î î î ã ã ã ð ð ð à à à ì ì ì ì ì ì ÷ ÷ ÷ ë ë ë à à à ë ë ë û û û í í í ¿ ¿ ¿ í í í ä ä ä ñ ñ ñ ý ý ý í í í î î î é é é ë ë ë ã ã ã î î î ë ë ë ò ò ò 1 Ò Ò Ý Ý Ð Ð Ã Ã ¯ ¯ ¯ ¯ Í Í Á Á ¯ ¯ Ë Ë Ý Ý Ã Ã -¯íäñýí îéëãîëò -Èäåíòèôèêàòîð -Òîãòìîë áîëîí õóâüñàã÷ -Ñàíàõ îé -Àíõíû ïðîãðàìì

C++ xelnii surax bichig

Embed Size (px)

Citation preview

  • 1. - - - - - 1

2. . . , . , . , . . . . , , 313682, 323956 . . . . . , . : , , , , , , , , . .2 3. , . . . . . . . Microsoft Word, Excel, Access, PowerPoint, PageMaker Microsoft Windows . . . C++ . . : 1. ( Designing ) 2. ( Coding ) 3. ( Compilnig ) 4. ( Testing ) 5. ( Developing ) 1. . . , , . . , 2 . . 2 . 2 . 2 1 3 4. 1 , 2 . , , 3- . 2. . , . , . , C++- . 3. . Compile Run . . . , , , . 2- . . 4. . . , . , . 5. . , , , , . , .4 5. , . . , . C++- . asm catch continue double float if new public signed switch try virtualauto char default else for inline operator register sizeof template typedef voidbreak class delete enum friend int private return static this union volatilecase const do extern goto long protected short struct throw unsigned while , , , . . : 1 . . . .. +, -, *, /, ?, !, `, ~, , , ;, :, @, #, $, %, ^, &, (, ), =, , {, }, [, ], , . . . , . , Fvar fvar . 5 6. . . . . . DEFINE . #define < > < > . #define month 12 // #define degree 30 // #define pi 3.1412 // #define name . // #define question Sure? // // . . . . 23 , 100 . 100 23 . . 25 . 23 25 . 6 7. . 23 . , #define num 23 , num . #define num 25 . 23 25 . # #define . #define , 3- . . , , . , . . ++- . char short unsigned short int unsigned int long unsigned long 0..9,A..Z,a..z,*/+@#$%^&*(){}[];;.,?`~ -128..127 0..255 -32768..32767 0..65535 -2147483648.. 2147483647 0..4294967295 7 8. float double1.17549435e-38..3.40282347e+38 2.2250738585072014e-308 .. 1.7976931348623157e+308 . . < > < > , , . . int int float unsigned int charivar1; // ivar2=-10; // fvar1=2.57; // ivar3=500; // ch1,ch2=*,ch3; // . . 2 . , . , . , 8 9. . . . .. . . , 640000 640000 640000 . . . 640000 0, 639999 . , . . . char short unsigned short signed int unsigned int long unsigned long 1 1 1 2 2 4 4 . , , , .9 10. ( ) ? . . . , (0 1) . , . 8 . 28=256 . 10 . 10- . 0 1 2- 2- . 10- 2- . 10- 156 . 156=1*102+5*101+6*100 10- : 156=1*27+1*24+1*23+1*22. 156=1*27+0*26+0*25+1*24+1*23+1*22+0*21+0*20 102- 11. . 2- 10011100 . 10- 10- 2- 2- . 10- 0 1 2 3 4 5 6 7 82- 00000000 00000001 00000010 00000011 00000100 00000101 00000110 00000111 00001000.......... 25511111111 . . 8 . . . .11 12. . .CONST . const . #define . #define =< > : const int month=12 const int degree=30 const double pi=3.1412 const char name[]=. const char question[]=Sure? . . const . #define . . . a = pi * 2 . pi const pi - . , . 12 13. #define pi . a = 3.1412 * 2 . ++ - , , . . . *.h . //defs.h void fun1() { } //my.cpp #include defs.h void main() { ..... fun1(); ..... } #include ( ) . 13 14. . ++ . ++- , . Borland C++- library . #include . ( ) , (< >) . , , , math.h . #include .C++ . , . . //hello.cpp #include #define greeting = ?; void main() { cout