![]() |
#1 |
![]()
C++ . Visual C++. 'New' 'File'. , 'New' 'Projects'. 'Win32 Console Application'. ( ) , , 'First' 'OK'. 'First classes'. 'New', 'Files' 'C++ Source File'. 'OK' 'First.cpp'. , . , , C++.
C++ ( ): 1. ( int, short, char ) 2. ( float, double, long( ), long double( ) ) 3. - Unsigned 4. Char . , . #include <iostream> using namespace std; void main( void ) { cout << " (unsigned)int = " << sizeof(int) << endl; cout << " (unsigned)short = " << sizeof(short) << endl; cout << " (unsigned)char = " << sizeof(char) << endl; cout << " (unsigned)float = " << sizeof(float) << endl; cout << " (unsigned)double = " << sizeof(double) << endl; cout << " (unsigned)long = " << sizeof(long) << endl; cout << " (unsigned)long double = " << sizeof(long double) << endl; } |
|
![]() |
![]() |