Thread: Easy quiz!

  1. #16
    Registered User
    Join Date
    Jan 2007
    Posts
    188
    Still get the same error without the textcolor. Test to compile and drive the program to see what happens.

  2. #17
    The larch
    Join Date
    May 2006
    Posts
    3,573
    Your array holds 4 strings, that means indices 0...3 are valid. Yet you run the loop while (grw < 5) and try to get question[4].

    Please try to learn to debug your own programs, for example the use of assert.

  3. #18
    Registered User
    Join Date
    Jan 2007
    Posts
    188
    What is assert? :S

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Java vs C to make an OS
    By WOP in forum Tech Board
    Replies: 59
    Last Post: 05-27-2007, 03:56 AM
  2. Try this quiz (just made it with C)
    By voltson4 in forum C Programming
    Replies: 1
    Last Post: 07-11-2003, 06:28 PM
  3. Easy question, (should be) easy answer... ;-)
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-12-2002, 09:36 PM
  4. C programming language quiz
    By Trancongan in forum C Programming
    Replies: 7
    Last Post: 04-21-2002, 01:04 PM
  5. EASY GUI development.. like with Qt?
    By rezonax in forum C++ Programming
    Replies: 2
    Last Post: 09-16-2001, 01:18 PM