.
:
1) ++;
2) ;
3) ++ .
10 , . , , .
! , - -. , .
Microsoft Visual C++ 6.0.
- CD-, , Setup.exe (. 1) .
. 1.
, . 2. Workstation Tools and Components Next.
. 2.
, - , Microsoft Visual Studio 6.0 ( . 3 ).
. 3.
. : " ?" Custom. "" : Microsoft Visual C++ 6.0, ActiveX, Data Access, Enterprise Tools, Tools. , (. 4):
. 4.
Continue .
.
#include <iostream.h> //
// / cout, cin
#include <fstream.h> //
ofstream OutFile("out.txt");
ifstream InFile("in.txt");
#include <stdio.h> //
/ printf
# include <stdlib.h> //
// srand() rand()
# include <time.h> //
//
|
|
srand((unsigned)time(NULL))
#include <math.h> //
fabs(x), sqrt(x), pow(x,y), exp(x), sin(x), cos(x), tan(x),
asin(x), acos(x), atan(x),
#include <windows.h> //
// Windows
HANDLE, CreateFile(), WriteFile(), ReadFile(),
CloseHandle()
1
: ++.
.
1. , .
2. ++, .
3. .
. , - , , , , . , .
Visual C++ 6.0.
, DOS . . . , () , , .
Microsoft Visual C++ 6.0 . , DOS.
, Microsoft Visual C++ 6.0 .
1. Visual C++. File ► New ► Projects.
2. (. 5) Project name : First.
3. Location . Microsoft Visual C++ 6.0 .
4. Win32 Console Application OK.
5. An empty project, Finish (. 6).
6. , OK ( New project).
.
7. File ► New ► Files. (. 7) C++ Source File. Add to project. File name main OK.
. 8. , , . First main.cpp.
(Workspace). , . main.cpp .
|
|
Workspace, , , .
. 5.
. 6.
. 7.
. 8.