when I use cin>>char ch[] ,why does it say Invalid operands to binary expression ('istream' and 'char *') in my Xcode

44 Views Asked by At

I define an array s[1000] and I use the cin to input the string,but when I use the cin>>s+1; the compiler makes an error:Invalid operands to binary expression ('istream' and 'char *')

I am I beginner in c++, what's. wrong with my code? I want to read the char element from the Index 1 so I wanna to use (s+1)

0

There are 0 best solutions below