    C++  14 
  


       :    .   ,  ,    ,     .      .       ++.   ,  ,   :      ,    .       14 .





 

    C++  14 








 :









 -        -   ,  - .      12  .      dzmitrybal.ru (https://dzmitrybal.ru/).      ,      .




      C++?




https://www.onlinegdb.com/online_c++_compiler (    Visual Studio ,       ).

    :

#include (https://www.instagram.com/explore/tags/include/)<iostream>



using namespace std;



int main()



{



cout<<"Hello World";



return 0;



}

:

#include (https://www.instagram.com/explore/tags/include/)<iostream> -   .

Using namespace std       .     .        . ,  1  1.           ,      .

Int main()

{

} int main()    (    )   ,    .      {   } ( ,   X  ).

cout<< ; -  .      .     .        .      .

Return 0   .       .

    Run.    : Hello World.

,     .

   .

:

   :      C++.

 :        .




    


C

++?

.      .

   .

int   .  .



string- .    .



bool  .     (true): 1 (false):0.



double-   ,  11.1



float-    ,     .



char-    .



auto-    .

        .

int x= 5;



cout<<x;

x- .        . = ( )    .            .          .

      (  Visual Studio    https://www.onlinegdb.com/online_c++_compiler).

  . .

:

   intage   .

 .




   


C

++?

,    .    .      ,    ,   .       .    ,      ,    .      .

    (  ) //         ,        . /* */

    Visual Studio   



https://www.onlinegdb.com/online_c++_compiler.

  :

#include<iostream>



using namespace std;



int main()



{



cout<<"Hello world";



cout<<"Happy New Year";



}

      .     . ,  .

  . .

:

1. :    1 % 

2.  . 




    


c

++?



 ,                .      const.    visual studio    https://www.onlinegdb.com/online_c++_compiler    :

#include<iostream>



using namespace std;



int main()



{



const int x=5;



cout<<x;



//   :



// 



x=10;



// ,    



cout<<x;



}

      .       .   . .

:

     .

    .

 .

    .




     


C

++?



   ,    .       .        ,  -  ,    .

        short.

   2 .

short x=5; //  ?32 768  32 767 (      .   32  64.  ,   ).

     int,   long.

  4 .

long y=10; // ?2 147 483 648  2 147 483 647

    ,   long long.

  8 .

long long z=15; // ?9 223 372 036 854 775 808  9 223 372 036 854 775 807

    :



https://www.onlinegdb.com/online_c++_compiler

   .

:

   short.

     .

   .




  


C

++?



.    : https://www.onlinegdb.com/online_c++_compiler .

 :

int date=12;



string month=April;



if (date==12)



{



cout<<Happy Bithday;



}

if-       Happy Bithday.

   .

int date=12;

string month="April";



if (date==12)



{



if (month=="April"){



cout<<"Happy Bithday.";



}



}

  :

#include <iostream> (https://www.instagram.com/explore/tags/include/)

using namespace std;



int main()



{



int date=12;



string month="April";



if (date==12)



{



if (month=="April"){



cout<<"Happy Bithday.";



}



}



}

.

:

    .

 ,     ,   .




    


C

++?



  .          .  ,       - ,    .



 : >-. <-. == . >=    ,=<   ,!=- .



&& , || -.






  .


   .

   ,     (https://www.litres.ru/pages/biblio_book/?art=72197317)  .

      Visa, MasterCard, Maestro,    ,   ,     ,  PayPal, WebMoney, ., QIWI ,       .


