Circuit Negma

C++, C, VB.NET, PCB, Electronics, Circuit Design

Memory Size on a System

Posted by Circuit Negma on January 16, 2006


// **************************************************************************
// * Created By : Circuit Negma                                             *
// * Date       : January 15, 2006                                          *
// * File Name  : BitSize.cpp                                               *
// * File Discription :                                                     *
// *      Memory Size on a System                                           *
// *      This program prints the memory size for the built-in data         *
// *      types on your system.                                             *
// **************************************************************************
      
#include <iostream>
using namespace std;


int main()
{
    cout << " **************************************************************************" << endl;
    cout << " * Created By : Circuit Negma                                             *" << endl;
    cout << " * Date       : January 15, 2006                                          *" << endl;
    cout << " * File Name  : BitSize.cpp                                               *" << endl;
    cout << " * File Discription :                                                     *" << endl;
    cout << " *      Memory Size on a System                                           *" << endl;
    cout << " *      This program prints the memory size for the built-in data         *" << endl;
    cout << " *      types on your system.                                             *" << endl;
    cout << " **************************************************************************" << endl;
    cout << endl;
    cout << " __________________________________________________________________________" << endl;
    cout << endl;
    cout << " Size of char   = " << sizeof(char)  << endl;
    cout << " Size of int    = " << sizeof(int)   << endl;
    cout << " Size of float  = " << sizeof(float) << endl;
    cout << " Size of short  = " << sizeof(short) << endl;
    cout << " Size of long   = " << sizeof(long)  << endl;
    cout << " Size of double = " << sizeof(double)<< endl;
    cout << " Size of bool   = " << sizeof(bool)  << endl;
    cout << " Size of long double    = " << sizeof(long double)   << endl;
    cout << " Size of unsigned int   = " << sizeof(unsigned int)  << endl;
    cout << " Size of unsigned long  = " << sizeof(unsigned long) << endl;
    cout << " Size of unsigned short = " << sizeof(unsigned short)<< endl;
    cout << " __________________________________________________________________________" << endl;

    
    getchar();
    return 0;
}


One Response to “Memory Size on a System”

  1. Circuit Negma said

    File Discription :

    This program prints the memory size for the built-in data types on your system.

    Download Linl:

    Download-Link:http://rapidshare.de/files/11131473/BitSize.zip.html

    File Include:

    1. BitSize.cpp

    2. BitSize.html

    3. BitSize.exe

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: