Created
May 6, 2013 05:21
-
-
Save grogy/5523497 to your computer and use it in GitHub Desktop.
Instalace a hello-word v ncurses, C++.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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