I am trying to do a gui function that allows to create small GUI's using the console and that do the programmer a favor to manage his functions and thus easily, eitherway, i have 2 errors i have no idea how to solve, the pos does't go up to the top, and goes with 1 too low, also, when deselecting an option, its last letter will be doubled. Here is what i've got so far. Any toughts?
i have 2 errors i have no idea how to solve, the pos does't go up to the top, and goes with 1 too low
I have no real clue to what you mean here. Are you referring to "pos" as defined at line 46 and its use?
Two warnings my compiler gave me had to do with for loops for(int i=0;i<strlen(opts);i++). "i" is defined as an int but "strlen()" returns a "size_t", i.e., unsigned int. comparing an int to an unsigned int will work, but not the best way to this.
The other error dealt with "getch()" being outdated and wanted "_getch()" instead. Once I fixed this error the next compile told me that the function "int gui()" did not return a value. Fixing these errors allowed the program to run giving me each word on a separate line.
At this point the program looks like it works OK, but I need to understand the functions better.
The header file "iomanip" does not appear to be used right now.