H
hnzhang
int main()
{
char *test = "hello";
std::cout << *test << std::endl;
return 0;
}
the result of out put is h; only the first character. But what I want
is the whole string. How to do that?
{
char *test = "hello";
std::cout << *test << std::endl;
return 0;
}
the result of out put is h; only the first character. But what I want
is the whole string. How to do that?