dumb question, int 1 = 1300;

im just getting back into c++ and im making random crap to screw around with, but im trying to do this:
int 1 = 0;
int 2 = 500;
int 3 = 1700;
and so on but im getting compiler errors, is this not allowed? and how can i go about correcting this issue.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 int 1 = 0;
			 int 2 = 500;
			 int 3 = 1700;
			 String ^  kills = textBox9->Text;
			 int killsInt = Convert::ToInt32(kills);
			 HANDLE hProcess = 0; 
			HWND hWindow;
			DWORD address = 0x01B2C89C;
			int value = killsInt;
			DWORD pid = 0;
			hWindow = FindWindow(NULL, L"Call of Duty®");

			if (hWindow) {
			GetWindowThreadProcessId(hWindow, &pid);
			}

			hProcess = OpenProcess(PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_VM_OPERATION | PROCESS_QUERY_INFORMATION, 0, pid);
			WriteProcessMemory(hProcess,(LPVOID)address,&value,sizeof(value),NULL);
			MessageBox::Show("Your Prestige Is Set To " + kills);
You need to name your integers with an appropriate identifier.

You cannot use numbers as your identifiers. Try things like temp, temp1, temp2 if you are just keeping them there temporarily.
You can't use a number for a variable name.
A variable name must start with an alpha or _.

1
2
3
int i1 = 0;
int i2 = 500;
int i3 = 1700;

sorry i should have been more specific, its setup so that the user enters in the text box numbers 1-80 and when the user enters in that amount and clicks the button it changes. for instance the user enters in the number 2, and when he enters 2 it changes to 500. thanks i didnt know i couldnt use numbers, any idea how i can do what i stated above?
Topic archived. No new replies allowed.