Leudassdf Posted March 17, 2012 Report Share Posted March 17, 2012 Boa pessoal! Como posso efectuar uma comparaçao entre uma variavel do tipo char? tipo se nomevarial=f entao faz... Ajuda!🙂 Link to comment Share on other sites More sharing options...
bsccara Posted March 17, 2012 Report Share Posted March 17, 2012 É isto que estás a perguntar ? char variavel; if (variavel == 'A') { ... } Link to comment Share on other sites More sharing options...
Leudassdf Posted March 17, 2012 Author Report Share Posted March 17, 2012 É isto que estás a perguntar ? char variavel; if (variavel == 'A') { ... } sim era isso mesmo. Estava a usar "" como no vb. Obrigada Link to comment Share on other sites More sharing options...
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