Skip to content

Instantly share code, notes, and snippets.

@grogy
Created May 6, 2013 05:21
Show Gist options
  • Save grogy/5523497 to your computer and use it in GitHub Desktop.
Save grogy/5523497 to your computer and use it in GitHub Desktop.
Instalace a hello-word v ncurses, C++.
// kód z http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/helloworld.html
#include <ncurses.h>
int main( void )
{
initscr();
printw("Hello World !!!");
refresh();
getch();
endwin();
return 0;
}
# instalace v Ubuntu
sudo apt-get install libncurses5-dev;
# kompilace
g++ -Wall -pedantic -o p code.cpp -lncurses;
# spusteni - uz bezny program
./p;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment