Thread: string arrays

  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    77

    string arrays

    I'm trying to put together a high score system, and I want to record the player's name for the score, but I can't figure out how to make an array that can hold a string instead of a number or a single character. I can't find any good sources for arrays, so I can't even compare it to the use of arrays for integers. Can anyone tell me how or point me to a good source for learning about arrays and strings?

  2. #2
    Registered User
    Join Date
    May 2007
    Posts
    77
    Nevermind, no one has to tell me how to do it. All I had to do was add <string> to my includes, instead of <cstring>.

    Could still use a really good reference for learning these things. I wish there was a w3schools for software programming...

  3. #3

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. char Handling, probably typical newbie stuff
    By Neolyth in forum C Programming
    Replies: 16
    Last Post: 06-21-2009, 04:05 AM
  2. String Class
    By BKurosawa in forum C++ Programming
    Replies: 117
    Last Post: 08-09-2007, 01:02 AM
  3. Program using classes - keeps crashing
    By webren in forum C++ Programming
    Replies: 4
    Last Post: 09-16-2005, 03:58 PM
  4. Something is wrong with this menu...
    By DarkViper in forum Windows Programming
    Replies: 2
    Last Post: 12-14-2002, 11:06 PM
  5. string handling
    By lessrain in forum C Programming
    Replies: 3
    Last Post: 04-24-2002, 07:36 PM