0

i know it might seem a little bare but i wanna know if im on the right track so far.
for most of it im making a guy and a function that will increase his lvl when xp is reached. Then i reset the xp and increase the ammount of xp the guy will need to lvl up.

#include <iostream>
using namespace std;
class man{
      public:
             int man();
             int ~man();
             int life;
      int stamina;
      bool isalive(int x){
           if ( int x == 0){
           return true;}
           else return false;
           }
      int level;
      int exp;
      int level_exp[] = {200, 550, 670, 900, 1200,  2000, 4000, 6000, 8000, 9000}; 
      int findexp(int xp, int lvl, int array[]){
          if (int xp == array[]; lvl++){
          array[]++;
          }
          
          }
      int figure_level(int x){
          if (
          
          
          }
      
      
      
      
      
      
      
      
      
      
      
      
      };
int main(){
    while(isalive(life)){
     if (                    
                         
                         
                         
                         
                         
                         
                         }
    
    
    
    
    
    
    
    
    
    
    
    system("PAUSE");
 return 0;   
}

Edited by Nick Evan: Fixed tags, snippet -&gt; thread

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by nwhitfield
0

look. go post in the correct forum. This is general game dev, not a programming language. looks like C++ to me, so post in the C++ forum. Also, code snippets are for completed, working snippets that other can use. This is the sort of thing you put in code tags in a forum post.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.