#include <algorithm>
#include <iostream>
#include <Windows.h>
#include <string>
#include <cctype>
using namespace std;
int main(void)
{
//declare variables
char npcname;
char actid;
//askin the user to input npc name
cout << "Please Enter Your NPC Name!"<<endl;
cin >> npcname;
//askin the user to input action id
cout << "Please Enter Your NPC ActionID!"<<endl;
cin >> actid;
while (!isdigit(actid))
{
cout << "You must enter a number for your ActionID"<<endl;
cin>> actid;
}
cout <<"worked";
}
when i type the NPC name it's check if the npcname is digit or not while the while loop should check if the accid is digit or not HOW COME -.-!!!?