problem with array of strings

This is a discussion on problem with array of strings within the C++ Programming forums, part of the General Programming Boards category; 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 ...

  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, 10: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, 09:31 AM
  5. multidimentional array of strings ???
    By null in forum C Programming
    Replies: 2
    Last Post: 09-27-2001, 12:20 AM

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