forked from KolibriOS/kolibrios
c/c++ samples refactoring
git-svn-id: svn://kolibrios.org@9758 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1,21 +1,16 @@
|
||||
// for 'cout'
|
||||
#include <iostream>
|
||||
|
||||
// for 'console.obj' functions
|
||||
#include <sys/kos_LoadConsole.h>
|
||||
#include <sys/kos_LoadConsole.h> // to load console.obj
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
// load console.obj
|
||||
int main() {
|
||||
load_console();
|
||||
|
||||
con_set_title("C++ Console.obj example");
|
||||
|
||||
cout << "Press any key...\n";
|
||||
con_getch();
|
||||
cout << "Hello, KolibriOS!\n";
|
||||
con_set_title("Hello");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user