All pastes #729408 Raw Edit

Hello World

public cpp v1 · immutable
·published 2007-10-07 23:01 UTC
rendered paste body
#include <cursesapp.h>#include <string>using std::string;class HelloApp : public NCursesApplication{public:   HelloApp() : NCursesApplication(FALSE) {}   int run();};int HelloApp::run(){   string hello = "Hello, World!";   Root_Window->addstr(Root_Window->lines() / 2,         (Root_Window->cols() - hello.size()) / 2,         hello.c_str());   // refresh the screen.   Root_Window->refresh();   // Wait for user to press a key.   Root_Window->getch();   return 0;  // the return code.}// required so that ncurses will call the application.static HelloApp helloApp;