problem defining an array :s

This is a discussion on problem defining an array :s within the C Programming forums, part of the General Programming Boards category; ok, basicly im trying to define a global multidementional char array in a header file, and it works fine for ...

  1. #1
    Master n00b Matty_Alan's Avatar
    Join Date
    Jun 2007
    Location
    Bloody Australia Mate!
    Posts
    96

    problem defining an array :s

    ok, basicly im trying to define a global multidementional char array in a header file, and it works fine for maybe half an hour and i don't touch this code at all and eventually it starts picking the array up as a function that i haven't defined properly.
    I'm using Dev C++,

    But Yea Why does my compiler randomly think it's a function, this is not the 1st time i have come accorss this problem :|
    char VocabG[][]
    { "Wort 1",
    "Wort 2",
    "Wort 3",
    "Wort 4",
    "Wort 5"

    };

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,401
    Surely you did not actually use that syntax? You should post the smallest and simplest (compilable) program that demonstrates the problem.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Mar 2007
    Posts
    25
    I think you should have an assignment operator (=), that is missing here.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Array problem
    By TomBoyRacer in forum C++ Programming
    Replies: 3
    Last Post: 04-08-2007, 11:35 AM
  2. Replies: 6
    Last Post: 02-15-2005, 10:20 PM
  3. Struct *** initialization
    By Saravanan in forum C Programming
    Replies: 20
    Last Post: 10-09-2003, 12:04 PM
  4. Need desperate help with two dimensional array problem
    By webvigator2k in forum C++ Programming
    Replies: 4
    Last Post: 05-10-2003, 02:28 PM
  5. From stream/file to a string array problem
    By dradsws in forum C Programming
    Replies: 2
    Last Post: 10-01-2001, 06:24 PM

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