所以我想知道在我们键入控制台时是否有这种方法。只能是大写。
像这个例子。
来自此
您的输入:asda
键入时应该是这个。
您的输入:ASDA
这是我的代码
[cout << "Type Memory Adress (in hexadecimal) = 0x"; cin >> hex >> memoryAdress;
cout << "Type Memory Adress (in hexadecimal) = 0x"; cin >> hex >> memoryAdress;
在C ++中,isupper()和islower()是用于字符串和字符处理的预定义函数。cstring.h是字符串函数所需的头文件,而cctype.h是字符函数所需的头文件。