Do this code cannot be running?
class Student { public: char name[100]; char number[20]; Student(char inputName, char inputNumber){ name[100] = inputName; number[20] = inputNumber; cout << name[100]; cout << number[20]; } }; int main(){ char nama[100], nomor[20]; cout << "Name : "; cin >> nama[100]; cout << "Number : "; cin >> nomor[20]; Student data(nama[100], nomor[20]); return 0; } Note : I have tried, but can only enter input for name only, number input cannot. Though I want to make an input name and number then the input results are displayed as output. Is the code above wrong? https://code.sololearn.com/cggQ5crBe4qh/?ref=app