What is wrong with this piece of code?
#include <iostream>
char str[20];
int main(){
std::cout << "What's your name? ";
str << std::cin
std::cout << "Hello, " << str;
return 0;
}
What is wrong with this piece of code?
#include <iostream>
char str[20];
int main(){
std::cout << "What's your name? ";
str << std::cin
std::cout << "Hello, " << str;
return 0;
}