PDA

Click to See Complete Forum and Search --> : Size?


MidgetsBro
Mar 7th, 2002, 09:06 PM
I am being bored and I put this in a cpp file and compiled it:

#include <iostream.h>

int main()
{

cout << " ___ \n";
cout << "| |\n";
cout << "| |\n";
cout << "|___|\n";
return 0;
}


and when it's compiled, it's 172kb. I thought C++ was supposed to make smaller files?! :confused: How can I shrink the size?

Technocrat
Mar 7th, 2002, 11:08 PM
Did you do this in the debug mode or the release mode? If you have it in debug it adds a lot of code to help the compile do debugging. It should be alot smaller in release mode

MidgetsBro
Mar 7th, 2002, 11:09 PM
How do I change modes?

MidgetsBro
Mar 7th, 2002, 11:14 PM
Nevermind... I got it! Next time I'll read the help files first :D. Now it's only 36kb. :)