0

Does the infomation make a differance to the programs speed?

// Operating with hello world

#include <iostream>
using namespace std;

int main ()
{
  // Print out the result:
  cout << "Hello World! ";
  cout << "This is my program";
 
  // Keep program running:
  cin.get();
  
  //Terminate the program:
  return 0;
}

And also is it ok if i change it to this to use less space...

// Operating with hello world
#include <iostream>
using namespace std;
int main ()
{
  // Print out the result:
  cout << "Hello World! ";
  cout << "This is my program";
 
  // Keep program running:
  cin.get();
  
  //Terminate the program:
  return 0;
}
2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by DonkeyKong92
0

Hmm ok ty, i was just wondering so i asked, otherwise i would always be thinking would it be better if i did it the other way.
Thanks.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.