програмування в С++
Типи даних 30_09_2011 |
Добавил(а) Administrator | ||||||||||||||||||||||||||||||||||||
14.10.11 11:55 | ||||||||||||||||||||||||||||||||||||
unsigned char 1 от 0 до 255
#include "stdafx.h" #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; cout << " (unsigned)long long int = " << sizeof(long long int) << endl; cout << " (unsigned)unsigned long long int = " << sizeof(unsigned long long int) << endl; cout << " (unsigned)__int64 = " << sizeof(__int64) << endl; } |