Subversion Repositories Kolibri OS

Rev

Rev 8182 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. // for 'cout'
  2. #include <iostream>
  3.  
  4. // for 'console.obj' functions
  5. #include <sys/kos_LoadConsole.h>
  6.  
  7. using namespace std;
  8.  
  9. int main()
  10. {
  11.         // load console.obj
  12.         load_console();
  13.        
  14.         con_set_title("C++ Console.obj example");
  15.        
  16.         cout << "Press any key...\n";
  17.         con_getch();
  18.         cout << "Hello, KolibriOS!\n";
  19.         con_set_title("Hello");
  20.         return 0;
  21. }
  22.