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;
}

Whitespace makes no difference to run-time performance.
Neither do comments.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.