Basic C++ programme


SUBMITTED BY: Guest

DATE: Aug. 8, 2013, 2:59 p.m.

FORMAT: C++

SIZE: 477 Bytes

HITS: 809

  1. #include <iostream>
  2. #include <cstdio>
  3. using namespace std;
  4. int main() {
  5. //outputs Hello World!
  6. cout<<"Hello World!"<<endl;
  7. //Pauses programme, universal method.
  8. printf("%s", "Press ENTER key to continue...");
  9. //Uncomment the next line when there is input.
  10. //cin.ignore();
  11. cin.get();
  12. //Not necessary but a good practice to end the programme. It is a function after all.
  13. return 0;
  14. }

comments powered by Disqus