I'm currently a beginner C++ programmer. Recently, I found ncurses and thought I'd give it a shot and experiment a bit. Downloaded the files, installed them, and all that. Then, I realized that ncurses comes natively with Xcode.
So, using the following block of code from this tutorial ( http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/helloworld.html ), I tried to run it as a test. However, I got some errors that I don't understand.
1 2 3 4 5 6 7 8 9 10 11
|
#include <ncurses.h>
int main() {
initscr(); /* Start curses mode */
printw("Hello World !!!"); /* Print Hello World */
refresh(); /* Print it on to the real screen */
getch(); /* Wait for user input */
endwin(); /* End curses mode */
return 0;
}
|
Could someone help me set up ncurses? I have no idea what I'm doing. I can't find any good tutorials that actually explain everything. Basically, all I'm finding are the shittiest tutorials ever and, pardon my language, I'm confused as fuck.
EDIT (Nov 22; approx. 7:43pm est):
Here's an image of the errors when trying to run the code - http://i.imgur.com/cj6rnsK.png
Also, is there some kind of IDE out there where I can easily create GUI elements for programs? And please, I don't want that confusing linux shit where I have to install 20 different files and run a million different terminal commands.