+ 2
Convert ASCII to string
how to convert ASCII to string I have tried everything but I failed
3 odpowiedzi
+ 15
#include <iostream>
using namespace std;
int main()
{
string str;
for (int i = 0; i < 256; i++)
{
str += static_cast<char>(i);
}
cout << str;
return 0;
}
// now you have an entire ASCII in one string.
+ 13
Take a look at the codes of the other learners here (not mine). There are some examples.
+ 2
thanks but what I need is a code which receives input from the user as ASCII numbers and then converts that to a line if string