Author Topic: Linux Thread  (Read 5826 times)

0 Members and 1 Guest are viewing this topic.

Offline Nathan

  • Global Moderator
  • ****
  • Posts: 10595
  • Wow. Such warnings. Very baseball. Moderator Doge.
Re: Linux Thread
« Reply #150: February 03, 2010, 11:18:54 PM »
Compiling turns what is called "source code" into an actual executable program.

For instance:

Code: [Select]
#include <iostream.h>

main()
{
int a, b;
cout << "Enter a -> ";
cin >> a;
cout<< "Enter b -> ";
cin >> b;
cout<< "a + b = " << a + b;
return(0);
}
Compiled would turn that into a program that asked for 2 numbers and displayed the total of a + b.