#include <iostream> // use correct i.e. C++ library
int main() // declare f'n name & return type
{
using namespace std; // do this inside scope
cout << "hello, world"; // self-terminating string
cout << endl; // output a line end
return 0; // return an int - quit programme
}
#include <iostream> // use correct i.e. C++ library
int main() // declare f'n name & return type
{
using namespace std; // do this inside scope
cout << "hello, world"; // self-terminating string
cout << endl; // output a line end
// get console to wait for user input...
cout << "Press any letter then [Enter]";
cout << std::endl; // end line after user instruction
char ch; // temporary variable
cin >> ch; // store letter
cout << ch; // do something with it
return 0; // return an int - quit programme
}
| The Following User Says Thank You to demolition For This Useful Post: | ||
chmod +x a.out
./a.out
| The Following 2 Users Say Thank You to SubCore For This Useful Post: | ||
chmod +x a.out
./a.out
| The Following User Says Thank You to nicholes For This Useful Post: | ||


ause not found comes!! Any way to get rid of it
| The Following User Says Thank You to Captwheeto For This Useful Post: | ||