Thread: Indirection error

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    3

    Question Indirection error

    Hey again,

    I am now getting errors with levels of indirection for global variables I am trying to create here is the code snippet:

    Code:
    // Game.cpp : Defines the entry point for the console application.
    //
    
    #include "stdafx.h"
    
    #include "create.h" //Character creation functions
    
    char name[21]; //Local variables
    char race[11];
    char gender[11];
    
    
    int main(int argc, char* argv[])
    {
    location0: ; //Reference for check loops
    	int choice;
    The red text contains my hopeful global variables any idea as to why this error occure I also have tried initializing them all to ="" but that doesnt work either.

    ~J

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    You need to say what "this error" actually is
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    The red text contains my hopeful global variables any idea as to why this error occure I also have tried initializing them all to ="" but that doesnt work either.
    I'm sorry but I can't answer your question because you have not used enough punctuation ie I am talking about commas and full stops isnt your grammar dreadful oh dearie me.
    [email protected]
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 04:09 AM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. Getting other processes class names
    By Hawkin in forum Windows Programming
    Replies: 3
    Last Post: 03-20-2008, 04:02 PM
  4. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM
  5. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 04:49 AM