|
Sorry I am not familar with that...
- NS -
|
|
|
|
|
Yes but that's not a direct conversion. He was asking for a direct conversion, without using a char array.
Something like Format in CString.
Unfortunately I don't know if this is possible.
|
|
|
|
|
this is not possible, because basic_string is at first a template, so for whatever kind of type...
|
|
|
|
|
sorry buddy, i really don't understand your question.
will you please rephrase ?
|
|
|
|
|
some times, its because ur from another planet
nave
|
|
|
|
|
what do you mean?
- NS -
|
|
|
|
|
remember the discussion below[^]
|
|
|
|
|
don't u know v2.0 is from another planet(An alien with vc++ knowledge)
nave
|
|
|
|
|
he might have jump over the post
but now, it's cool, anybody knows... :->
|
|
|
|
|
but what did you do to my thread ?!
|
|
|
|
|
sorry don't attack my earth for my mistake...Please
nave
|
|
|
|
|
If he do so we can pause him... He is providing C:\> prompt... Just type "pause" command there...
- NS -
|
|
|
|
|
v2.0 ...
What does the c:\> prompt in ur profile indicates..
nave
|
|
|
|
|
it indicates that you are at the root directory on the C: drive
|
|
|
|
|
Means we have to uncover a lot... right? And we are only at the root... ( philosophy )
- NS -
|
|
|
|
|
I am serious man
nave
|
|
|
|
|
hum, so i didn't understand your question...
in MS-DOS, C:\> is the common prompt to tell that you are located on the root directory of the C: drive.
the ver command displays the actual version on MS-DOS installed (or windows since WinNT4 - as it doesn't need dos anymore)
if i still don't answer your question, please rephrase
|
|
|
|
|
what is going on here........?????
i just confused...
Akkott
|
|
|
|
|
hey, don't worry, i'm a pacific intergalactic traveler...
my only purpose is to provide C/C++ knowledge around our universe
|
|
|
|
|
I have posted some suggestions about VisualCalc... Did you see that?
- NS -
|
|
|
|
|
i did
|
|
|
|
|
Here's how I'd go about doing it:
ostringstream ss;
ss << "PI = " << 3.14159265;
string s = ss.str();
Includes you'll need:
<string>
<sstream>
Assumes:
using namespace std;
Steve
|
|
|
|
|
Thank you very much Steve. It is really usefull.
|
|
|
|
|
itkid wrote: Is there any API which convert int(int a) to basic string(string b)?
std::basic_string is a template.
You can't convert to it, but only to its instantiations e.g. std::string or std::wstring
That said, I would take a look at boost.orgs lexical cast[^] or format[^].
Free but peer-reviewed code. Some of it will be part of the next version of the C++-Standard.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
C++ Faqs[^]
Nibu thomas
Software Developer
|
|
|
|