Thread: getting error CANT GET PROGMRA TO WORK

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    4

    getting error CANT GET PROGMRA TO WORK

    Please Help me People im Been trying to solve this for Hours

    heres part of my code and when i try to complile i get this error
    c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\lab3\code.cpp(48): error C2059: syntax error : ']'

    heres part of my lab

    Code:
    void Score(unsigned int uiSelection,unsigned int uiDice[] ,unsigned int* puiBonus,unsigned int* puiScore);
    Code:
    main()
    {
    	int iRoundNum=1;
    	unsigned int uiDice[6]={0};
    	srand(static_cast<unsigned int>(time(NULL)));
    	bool bCatagory[14]={0};
    	unsigned int uiSelection=0;
    	unsigned int puiBonus=0;
        unsigned int puiScore=0;
        unsigned int uiDiceTotal[10]={0};
    	int iHighScore=275;
    	char cAns='a';
    Code:
    void Score(uiSelection,uiDice[],&puiBonus,&puiScore);
    Code:
    void Score(unsigned int uiSelection,unsigned int uiDice[],unsigned int* puiBonus,unsigned int* puiScore)
    Help me it doesnt compile i just get that error messege any suggestions how to overcome this

    Thanks!

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    Quote Originally Posted by n00b_101
    Please Help me People im Been trying to solve this for Hours

    heres part of my code and when i try to complile i get this error
    c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\lab3\code.cpp(48): error C2059: syntax error : ']'

    heres part of my lab

    Code:
    void Score(unsigned int uiSelection,unsigned int uiDice[] ,unsigned int* puiBonus,unsigned int* puiScore);
    Code:
    main()
    {
    	int iRoundNum=1;
    	unsigned int uiDice[6]={0};
    	srand(static_cast<unsigned int>(time(NULL)));
    	bool bCatagory[14]={0};
    	unsigned int uiSelection=0;
    	unsigned int puiBonus=0;
        unsigned int puiScore=0;
        unsigned int uiDiceTotal[10]={0};
    	int iHighScore=275;
    	char cAns='a';
    Code:
    void Score(uiSelection,uiDice,&puiBonus,&puiScore);
    Code:
    void Score(unsigned int uiSelection,unsigned int uiDice[],unsigned int* puiBonus,unsigned int* puiScore)
    Help me it doesnt compile i just get that error messege any suggestions how to overcome this

    Thanks!
    nmnmnm

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    4
    lol its the void shoula taken it off sorry to botheru guys!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. getline() don't want to work anymore...
    By mikahell in forum C++ Programming
    Replies: 7
    Last Post: 07-31-2006, 10:50 AM
  2. Why don't the tutorials on this site work on my computer?
    By jsrig88 in forum C++ Programming
    Replies: 3
    Last Post: 05-15-2006, 10:39 PM
  3. Problems in getting OpenGL to work
    By zonf in forum C Programming
    Replies: 5
    Last Post: 02-13-2006, 04:48 AM
  4. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM
  5. DLL __cdecl doesnt seem to work?
    By Xei in forum C++ Programming
    Replies: 6
    Last Post: 08-21-2002, 04:36 PM