J
jason.a.malone
Can somebody please tell me why:
#include <iostream>
int main(int argc, char *argv[]) {
int ia;
ia = 23432234;
std::cout << ia.ToString() << '\n';
}
always produces an output of 1? Actually, I should rephrase that...
When compiling Visual C++ .NET 2003 warns that "warning C4800:
'System::String __gc *' : forcing value to bool 'true' or 'false'
(performance warning)" So, I understand that is why it always
produces a 1.
What I dont understand is why it has to be a bool. I thought the point
of ToString was to convert the int to a char*. What am I missing? If
this is not the correct way to do this can someone point me in the
right direction?
Please be gentle as I am VERY new to c++.
Thanks,
Jason
#include <iostream>
int main(int argc, char *argv[]) {
int ia;
ia = 23432234;
std::cout << ia.ToString() << '\n';
}
always produces an output of 1? Actually, I should rephrase that...
When compiling Visual C++ .NET 2003 warns that "warning C4800:
'System::String __gc *' : forcing value to bool 'true' or 'false'
(performance warning)" So, I understand that is why it always
produces a 1.
What I dont understand is why it has to be a bool. I thought the point
of ToString was to convert the int to a char*. What am I missing? If
this is not the correct way to do this can someone point me in the
right direction?
Please be gentle as I am VERY new to c++.
Thanks,
Jason