10 6 C:\Users\lws\Desktop\OJ\字符串函数.cpp [Error] no match for 'operator>>' (operand types are 'std::istream {aka std::basic_istream<char>}' and 'int*')
如图,请问是因为什么
将p改为s[4]之后 这条代码可以运行通过,不知道为什么老师的材料里给的是cin>>后面使用指针变量...........
10 6 C:\Users\lws\Desktop\OJ\字符串函数.cpp [Error] no match for 'operator>>' (operand types are 'std::istream {aka std::basic_istream<char>}' and 'int*')
如图,请问是因为什么
将p改为s[4]之后 这条代码可以运行通过,不知道为什么老师的材料里给的是cin>>后面使用指针变量...........