Thread: whats wrong here

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    176

    whats wrong here

    i have the code
    Code:
    	cPlayer MyPlayer;
    
    	cout<<"Dagger Skill: %d"<<MyPlayer.GetValue( Dagger );
                    cin.ignore();
    
    	MyPlayer.SetValue(Dagger, 50);
    
    	cout<<"Dagger Skill: %d"<<MyPlayer.GetValue( Dagger );
    and i get 3 parse errors and i think it has to do with the ( Dagger )
    part of the program, this is my attempt at making this
    Code:
    cPlayer MyPlayer;
    
    	printf("Dagger Skill: %d", MyPlayer.GetValue(DAGGER_SKILL));
    
    	printf("\n"); //Prints a New Line
    
    	MyPlayer.SetValue(DAGGER_SKILL, 50);
    
    	printf("Dagger Skill: %d", MyPlayer.GetValue(DAGGER_SKILL));
    into c++ (i have no knowlege of c)
    Last edited by sreetvert83; 09-20-2005 at 06:03 PM.
    If a mime dies in the woods and no one is around to hear it, does it make a sound?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 07-15-2004, 03:30 PM
  2. Debugging-Looking in the wrong places
    By JaWiB in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-03-2003, 10:50 PM
  3. Confused: What is wrong with void??
    By Machewy in forum C++ Programming
    Replies: 19
    Last Post: 04-15-2003, 12:40 PM
  4. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 12:01 PM
  5. Whats wrong?
    By Unregistered in forum C Programming
    Replies: 6
    Last Post: 07-14-2002, 01:04 PM