++.
- ++.
clearerr
#include <cstdio.h>
void clearerr (file * stream);
clearerr () , , stream, .
fclose
#include <cstdio.h>
int fclose (file * stream);
fclose () , stream, . fclose () stream , .
feof
#include <cstdio.h>
int feof (file * stream);
feof () , , stream. , , .
ferror
#include <cstdio.h>
int ferror (file * stream);
ferror() , , stream. , , .
fflush
#include <cstdio.h>
int fflush (file * stream);
stream , , fflush () , .
fgetc
#include <cstdio.h>
int fgetc (file * stream);
fgetc () stream . unsigned char .
fgetpos
#include <cstdio.h>
int fgetpos (file * stream, fops_t *position);
fgetpos () , position, . , position, fops_t. , fsetpos ().
fopen
#include <cstdio.h>
file * fopen (const char * fname, const char * mode);
fopen () , fname, , .
fwrite
#include <cstdio.h>
size_t fwrite (const void * buf, size_t size, size_t count, file * stream);
fwrite () stream , count
fprintf
#include <cstdio.h>
int fprintf (file * stream, const char *format,);
fprintf () , stream, format. . .
|
|
freopen
#include <cstdio.h>
file * freopen (const char *fname, const char * mode, file * stream);
freopen () . fname, mode, stream. mode , fopen ().
fprint
#include <cstdio.h>
int fprint (const char *format,);
fprint () stdout format.
remove
#include <cstdio.h>
int remove (const char *fname);
remove () , fname. , , . : rename ().
rename
#include <cstdio.h>
int rename (const char *oldname, const char *newname);
rename () , oldname, , newname. newname .
, , :
- ;
- ;
- ;
- .
< cmath >. ( math.h).
acos
#include <cmath>
float acos (float arg);
double acos (double arg);
long double acos (long double arg);
acos () arg. acos () -1 1, .
asin
#include <cmath>
float asin (float arg);
double asin (double arg);
long double asin (long double arg);
asin () arg. asin () -1 1, .
atan
#include <cmath>
float atan (float arg);
double atan (double arg);
long double atan (long double arg);
atan () arg.
cos
#include <cmath>
float cos (float arg);
double cos (double arg);
long double cos (long double arg);
cos () arg. .
exp
#include <cmath>
float exp (float arg);
double exp (double arg);
long double exp (long double arg);
exp () , arg.
fmod
#include <cmath>
float fmod (float x, float y);
double fmod (double x, double y);
long double fmod (long double x, long double y);
fmod () x/y.
log
#include <cmath>
float log (float num);
double log (double num);
long double log (long double num);
log () num.
sin
#include <cmath>
float sin (float arg);
double sin (double arg);
long double sin (long double arg);
sin () arg. .
|
|
tan
#include <cmath>
float tan (float arg);
double tan (double arg);
long double tan (long double arg);
tan () arg. .
sqrt
#include <cmath>
float sqrt (float num);
double sqrt (double num);
long double sqrt (long double num);
sqrt () num. num , , .
, .
asctime
#include <ctime>
char * asctime (const structtm *ptr);
asctime () , , , ptr. .
: : \n \0.
clock
#include <ctime>
clock_t clock (void);
clock () .
ctime
#include <ctime>
char * ctime (const time_t * time);
, , ctime () , .
: : \n \0.
time
#include <ctime>
time_t time (time_t * time);
time () , . , -1.
. , , , , . < cstdlib >. ( stdlib.h).
abort
#include <cstdlib>
void abort (void);
abort () .
atoi
#include <cstdlib>
int atoi (const char * str);
atoi () str int. . .
rand
#include <cstdlib>
int rand (void);
rand () . rand () RAND_MAX.
system
#include <cstdlib>
int system (const char * str);
system () , str.
1. , ?
2. ?
3. ?
4. ?
5. ?
4
(MFC) Visual C++.
:
1. ;
2. ;
3. ;
4. .
:
- , IBM PC.
:
- Windows;
- Microsoft Visual C++ 5.0 ( Microsoft Visual C++ 5.0).
1.1. Microsoft Visual C++ 5.0.
1.2. Microsoft Visual C++ 5.0.
1.3. .
2.1. Microsoft Visual C++ 5.0.
|
|
2.2. *.cpp .
2.3. .
2.4. , .
3.1. .
3.2. .
3.3. .
3.4. .
3.5. .
3.6. .
4.1. Microsoft Visual C++ 5.0.
Visual C++. FILE -> NEW..., Project. , 1.
.1. .
MFC AppWizard(exe). Project Name OK.
1. Dialog based, 2 , .
.2.
2. 3 . "What features would you like to include" ( , ).
.3.
3. 4. :
a. , ?
b. , MFC AppWizard, (*.dll), ? *.dll , *.exe , *.dll .
.4. 3
4. , , , 5.
.5. MFC
Visual C++, MFC AppWizard.