.


:




:

































 

 

 

 


()




1

++.

: , .

++ , . main.

void main(){

}

. () void main() , . C++ main.

C++ main, , .

++ :

#include <iostream.h> //

//

void main(void){ //

cout << " C++!";
}

#include - uses ..Pascal;

<iostream.h> - , ..Pascal; # include . iostream.h.;

iostream.h , /;

void main(void){ } - (. );

cout << ""( , _); - cout ( , write ..Pascal); , / , cout , (, ) ;

{ } - ( begin...end ..Pascal);

 

()

, :

_ _;

:

#include <iostream.h>

void main(void)

{
int t;
float s;}

()

()
Int -32 768... 32 767  
unsigned int () 065 535  
long int -2 147 483 648 2 147 483 647  
unsigned long int () 04 294 967 295  
float 3.4-383.4+38  
double 1.7-3081.7+308  
bool true, false  

void . , , .

++ . . , :

+ a= b + c;
- a= b - c;
* a = b * c;
/ = a / b;
% = a % b;
== (score==100)
!= (old!= new)
> (cost > 50.00)
< (salary < 20000.00)
>= (stock_price>=30.0)
<= (age <= 21)

 

++

=

_1=;

_1=;

_1=_2;

cin>>:

cin>>_>>endl;

cout<<:

cout<<( , _)<<endl; - cout ( , write .. Pascal).

:

#include <iostream.h>

void main(void)

{
int age ;
float s=0.5;
age = 32;

float rost

cout<<vvedite vash rost<<rost;

int ves=rost-100+10;

cout<<vash ves dolzhen byt ne bolshe<<\n;

cin>>ves;

}

:

int m=10;

cout << << m << " ";

// ;

//endl

cout << " " << endl;

// " "

// .





:


: 2016-12-07; !; : 249 |


:

:

, .
==> ...

1738 - | 1555 -


© 2015-2024 lektsii.org - -

: 0.012 .