Code: Select all
#include<iostream.h>
int main()
myName
myWeapon
myAmmo
myItemsbut for myWeapon you can add things under the class 'Weapon' and for name class'Name'
and the same with items
Code: Select all
#include<iostream.h>
int main()
myName
myWeapon
myAmmo
myItemsZeroComp wrote:Heres a simple variable production for C+now you just access them and add things. to increase ammo capacity by 1 persay you just say myAmmo++Code: Select all
#include<iostream.h> int main() myName myWeapon myAmmo myItems
but for myWeapon you can add things under the class 'Weapon' and for name class'Name'
and the same with items
Code: Select all
int main()
{
int health = 100; // A number
float mana = 99.5; // A decimal number, can also use double, differs in how many decimals.
bool alive = true; // True or false value
char symbol = 'a'; // A single character.
}