30th Sep 2017, 7:05 AM
Ishan
Ishan - avatar
5 ответов
+ 2
What code is not giving ASCII? Please post the code, otherwise we probably can't help you.
30th Sep 2017, 7:06 AM
Learnsolo
+ 2
#include <iostream> #include <string> using namespace std; int main() { string note ; char x[7]; for (int i=0;i<=4;i++){ cin>>x[i]; cout <<(unsigned ) x[i] << endl;} return 0; } Now it works...using a proper cast
30th Sep 2017, 7:20 AM
Andrea Simone Costa
Andrea Simone Costa - avatar
+ 1
@Ishan, no need to be sorry. We just need the code to help you😉
30th Sep 2017, 7:09 AM
Learnsolo
+ 1
I included the code
30th Sep 2017, 7:09 AM
Ishan
Ishan - avatar
+ 1
thanks Andrea .
30th Sep 2017, 7:22 AM
Ishan
Ishan - avatar