Louise Posted May 26, 2008 at 03:34 PM Report #187592 Posted May 26, 2008 at 03:34 PM Boas. Eu queria converter tipo 94 para a. tendo em conta k 94 é o codigo ascii de a. Eu sei k existia uma forma mas n a encontro. bigada.
Baderous Posted May 26, 2008 at 04:23 PM Report #187597 Posted May 26, 2008 at 04:23 PM int a = 97; printf("Char de %d = %c",a,(char)a); Output: Char de 97 = a
Louise Posted May 26, 2008 at 04:28 PM Author Report #187598 Posted May 26, 2008 at 04:28 PM Não queria imprimir. Queria armazenar numa variável. Obrigada na mesma.
Baderous Posted May 26, 2008 at 04:31 PM Report #187600 Posted May 26, 2008 at 04:31 PM É a mesma coisa: int a = 97; char c = (char)a;
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now