When I run the code in replit I get the following output 1024, 512,0,0,0 but when I run it in VS Code I get 2,2,0,0,0. Is there something wrong with my VS Code C++ configuration.
#include <iostream>
#include <cctype>
using namespace std;
int main(){
string my_string;
cout << "Enter a string: " ;
getline(cin,my_string);
cout << isalpha(my_string[0]) << endl;
cout << islower(my_string[0]) << endl;
cout << isupper(my_string[0]) << endl;
cout << isdigit(my_string[0]) << endl;
cout << isspace(my_string[0]) << endl;
return 0;
}