-
#include <iostream>
-
-
void main(void)
-
{
-
std::cout << "System Info: " << std::endl;
-
std::cout << "IDE:\tMicrosoft Visual Studio 2005" << std::endl;
-
std::cout << "OS:\tWindows XP Professional SP2" << std::endl;
-
std::cout << "CPU:\tPentium(R) Dual-Core CPU E5200 @ 2.50 GHz" << std::endl;
-
std::cout << "*********************************************************" << std::endl;
-
-
std::cout << "int:\t" << sizeof(int) << std::endl; // 4
-
std::cout << "char:\t" << sizeof(char) << std::endl; // 1
-
std::cout << "double:\t" << sizeof(double) << std::endl; // 8
-
std::cout << "float:\t" << sizeof(float) << std::endl; // 4
-
std::cout << "bool:\t" << sizeof(bool) << std::endl; // 1
-
std::cout << "long:\t" << sizeof(long) << std::endl; // 4
-
std::cout << "short:\t" << sizeof(short) << std::endl; // 2
-
std::cout << "*********************************************************" << std::endl;
-
-
std::cout << "int*:\t" << sizeof(int*) << std::endl; // 4
-
std::cout << "char*:\t" << sizeof(char*) << std::endl; // 4
-
std::cout << "double*:" << sizeof(double*) << std::endl; // 4
-
std::cout << "float*:\t" << sizeof(float*) << std::endl; // 4
-
std::cout << "bool*:\t" << sizeof(bool*) << std::endl; // 4
-
std::cout << "long*:\t" << sizeof(long*) << std::endl; // 4
-
std::cout << "short*:\t" << sizeof(short*) << std::endl; // 4
-
std::cout << "void*:\t" << sizeof(void*) << std::endl; // 4
-
std::cout << "*********************************************************" << std::endl;
-
-
std::cout << "unsigned int:\t" << sizeof(unsigned int) << std::endl; // 4
-
std::cout << "unsigned char:\t" << sizeof(unsigned char) << std::endl; // 1
-
std::cout << "unsigned long:\t" << sizeof(unsigned long) << std::endl; // 4
-
std::cout << "unsigned short:\t" << sizeof(unsigned short) << std::endl; // 2
-
std::cout << "*********************************************************" << std::endl;
-
-
system("pause");
-
}