0
Why this code is not giving ASCII ?
5 Antworten
+ 2
What code is not giving ASCII? Please post the code, otherwise we probably can't help you.
+ 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
+ 1
@Ishan, no need to be sorry. We just need the code to help you😉
+ 1
I included the code
+ 1
thanks Andrea .