.


:




:

































 

 

 

 


2: ,




1

++

1. Never fear, C++ is here, , ++

Visual Studio, -, . ( - Visual Studio , .)

- File ♦ FileNew ( ♦ ♦ ). New Project ( ), .

- , , ( Console Application ( )). - printl - .

- printl.cpp , .

- C++, , printl.cpp, :

#include <stdafx.h>

, Visual Studio, . , printl.cpp, , ( ):

#include <stdafx.h>

#include <iostream>

using namespace std;

 

int main()

{

cout << "Never fear, C++ is here!";

return 0;

}

, Ctrl + F5. .

cout "Never fear, C++ is here!";

cout? cout . , . - , , .

C++ cout (), ( Never fear, C++ is here!) .

(;). C++ , .

#include <iostream>

(preprocessor directive) C++, C++. #include <filename> (declarations) (definitions), C++. cout.

using. , std::cout, . :

std::cout << "Never fear, C++ is here!";

cout ( , in) - std, endl, - using .

 

1: : Do you C++?, Hello!, Hi there, sailor!.

2: , .

 





:


: 2016-11-02; !; : 403 |


:

:

, .
==> ...

1528 - | 1357 -


© 2015-2024 lektsii.org - -

: 0.008 .