Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- using namespace std;
- /* Usando palavra chave static_cast para dividir etc...
- */
- int main(){
- char letra = 'c'; // Aconcelho usar tipo char por conter menos bits
- cout<<static_cast <int> (letra)<<endl; // dentro dos parametro operadores <int> para passar a conversao para ascii;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement