On 1/24/07, mr_gees100_peas <[EMAIL PROTECTED]> wrote:

I tried the follwoing using bloddshed dev CPP compiler.

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  printf("Hello World!\n");
  system("PAUSE");
  return 0;
}

then I tried this version

#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    cout << "Hello World!" << endl;
    system("PAUSE");
    return EXIT_SUCCESS;
}


the executable for the C style version was 15.4Kb on my system. The
C++ style was 464KB in sized.


Try the following and let us know the size:

#include <cstdio>
#include <cstdlib>

using namespace std;

int main(int argc, char *argv[])
{
 printf("Hello World!\n");
system("PAUSE");
return 0;
}


--
PJH

Some people, when confronted with a problem, think "I know, I'll use regular
expressions." Now they have two problems.
—Jamie Zawinski, in comp.lang.emacs

Reply via email to