Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert ASCII to STRING

Status
Not open for further replies.

Mudassar

Programmer
Oct 3, 2000
110
AU
How in the world do I convert ASCII to STRING????!! I can easily convert STRING TO ASCII but I spent nearly 5 hours looking for how to do it the other way around!

Please let me know -----------------
MK

Hope this helps!
 
#include <iostream>
#include <string>

int main()
{
int asciiArray[3]={ 67,43,43 };
std::string sOutput;

for( int i=0;i<3;i++ )
sOutput+=asciiArray;

std::cout << sOutput <<
std::endl;

return 0;
} Mike L.G.
mlg400@blazemail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top