C
Connell Gauld
Hey,
Sorry if this is a really stupid question - I'm new to C++.
I have a program like this:
std::string str;
....
....
....
char buffer[4];
The variable buffer has been filled with four characters.
How do I now make str equal to buffer?
ie I have "ABCD" in buffer and I would like "ABCD" in str.
Thanks
Connell
Sorry if this is a really stupid question - I'm new to C++.
I have a program like this:
std::string str;
....
....
....
char buffer[4];
The variable buffer has been filled with four characters.
How do I now make str equal to buffer?
ie I have "ABCD" in buffer and I would like "ABCD" in str.
Thanks
Connell