Hi, I'm really new to c++. This code is compiling but after the while loop in ask(), the screen starts flooding up and scrolling down, i dont know whats causing it:
also i know the questions dont really make any sense lol.
Your test will work, but you're testing for a character in something that stores int values; the int value corresponding to the char 'n' is 110, so your user will have to enter 110 to break out of the while loop.
You're using a non-constant variable to define the size of an array: string question[nofqs];
That is forbidden in C++, although many compilers let you get away with it.