Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Convertendo caracters para Decimal ASCII ultilizando static_cast */
- #include <iostream>
- #include <stdlib.h>
- #include <stdio.h>
- #include <windows.h>
- using namespace std;
- int main(){
- char letra;
- cout<<"Digite um caracter,para saber o valor do caracter em ASCII"<<endl;
- cin>>letra;
- cout<< static_cast <int>(letra)<<endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment