Easy quiz!

This is a discussion on Easy quiz! within the C++ Programming forums, part of the General Programming Boards category; Still get the same error without the textcolor. Test to compile and drive the program to see what happens....

  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

Page 2 of 2 FirstFirst 12
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, 04:56 AM
  2. Try this quiz (just made it with C)
    By voltson4 in forum C Programming
    Replies: 1
    Last Post: 07-11-2003, 07: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, 10:36 PM
  4. C programming language quiz
    By Trancongan in forum C Programming
    Replies: 7
    Last Post: 04-21-2002, 02:04 PM
  5. EASY GUI development.. like with Qt?
    By rezonax in forum C++ Programming
    Replies: 2
    Last Post: 09-16-2001, 02:18 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21