main 2
- 3
, , 4
蠠 5
"BYE!" 6
7 */
// ============================================= 8
Include <iostream> // 9
Include <conio.h> // 10
Using namespace std; // 11
// 12
Void main (void) // 13
{ // 14
Int nA; // 15
Float fltB; // 16
Cout <<"Input numbers:\t" // 17
Lt;<"\nfirst int\t"; // 18
Cin>>nA; // 19
Cout<<"second float\t"; // 20
Cin>>fltB; // 21
Float fltSumma; // 22
fltSumma = nA + fltB; // 23
cout<<"summa = " << fltSumma; // 24
Cout << endl <<"\ tBYE!"; // 25
Getch (); // 26
} // 27
.
main.
:
- ( 13);
- ( 14 27).
. . 11, 3 nA ( 15), fltB ( 16), fltS umma ( 22).
, . , , , . , int float ( 15, 16, 22). -. - - , .
:
"Input numbers: \t "
" \n first int \t "
"second float \t "
"summa = "
" \ t BYE!"
, escape- (, , ).
++ (cin, cout) >>, <<.
n a, flt b, flt Summa cout cin. cout cin , , ++. cout >> . cin << .
|
|
out cin - , , , ?
.h. using namespace std;
cout cin 9. #include .
(preprocessor) - , ( .) (). - : ; ++ () ; . |
, . #
#include main iostream. , ++, , .
, ++, .
iostream cout cin, .
iostream < >, , , . .
endl iostream, , escape- \ n - .
using namespace ++ 19:
using namespace std;
, . , , . using namespace , std.
, getch. . , , - ? , () ( ++, 2). , , . .h . getch conio.h, #include 10. - ( ) (LIB). - .
, ( ), . h
|
|
main 7 -.