Thread: problem defining an array :s

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

    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
    Surely you did not actually use that syntax? You should post the smallest and simplest (compilable) program that demonstrates the problem.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Mar 2007
    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, 11: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