Click to See Complete Forum and Search --> : c++ help (strings)
rip7
May 14th, 2002, 07:11 AM
can anybody make from this line an variabel (a string) (long or char variable or both)
std::cout << "\n0x" << std::string << newCrc << std::endl;
please help.. ;)
whole code here :eek:
EaseZE
March 25th, 2003, 04:21 AM
I'm not sure exactly what you are asking. Do you want "\nox" to be in a string called newCrc?
if so something like this would be fine:
using std::cout;
using std::cin;
using std::string;
int main(){
string newCrc;
cout << "Enter sting: ";
cin >> newCrc;
cout << newCrc << '\n';
return 0;
}
Hope that helps.
SarinMage
March 25th, 2003, 07:35 AM
i would help you but i dont quite understand what your asking... explain it a little bit more
Chinchilla06
April 14th, 2003, 06:00 AM
ok, here's what you do...
think b4 about what you're trying to say.. put them in words that makes sense .. then present them in text..
rip7
April 14th, 2003, 09:15 AM
I have already the answer
thx