Thread: problem with array of strings

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    26

    problem with array of strings

    heres the prob

    high_score_name[i] = high_score_name[i-1];


    when i compile it says "=": left operand must be l-value

    my array is defined as

    char high_score_name[10][30];

  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    26
    nevermind just had to use strcpy(.....)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Build an array of strings dynamically
    By Nazgulled in forum C Programming
    Replies: 29
    Last Post: 04-07-2007, 09:35 PM
  2. array of strings problem
    By dayknight in forum C Programming
    Replies: 3
    Last Post: 11-08-2005, 10:41 AM
  3. Array of strings in C
    By szill in forum C Programming
    Replies: 10
    Last Post: 02-22-2005, 05:03 PM
  4. Help with an Array
    By omalleys in forum C Programming
    Replies: 1
    Last Post: 07-01-2002, 08:31 AM
  5. multidimentional array of strings ???
    By null in forum C Programming
    Replies: 2
    Last Post: 09-26-2001, 11:20 PM