rdbp Posted November 29, 2007 at 04:00 PM Report Share #151157 Posted November 29, 2007 at 04:00 PM boas!gostava de saber como posso utilizar os simbolos em pascal?e se alguem me arranja uma tabela com os mesmos. obrigado Link to comment Share on other sites More sharing options...
Gooden Posted November 29, 2007 at 04:03 PM Report Share #151160 Posted November 29, 2007 at 04:03 PM usas uma tabela de ascii... procura no tio google Link to comment Share on other sites More sharing options...
rdbp Posted November 29, 2007 at 04:25 PM Author Report Share #151167 Posted November 29, 2007 at 04:25 PM mas a mim disseram-me k bastava carregar no alt e escrever um numero dessa tabela que aprecia logo o simbolo,mas k nao dava em todos os pcs... e ja agr explica-me melhor como se usa a tabela?eu queria que os simbolos aparecessem,mas sem usar o char,tipo fazer uma tabela entendes? Link to comment Share on other sites More sharing options...
mr.oculus Posted November 29, 2007 at 05:05 PM Report Share #151174 Posted November 29, 2007 at 05:05 PM pq vc não quer usar o char ? Link to comment Share on other sites More sharing options...
rdbp Posted November 29, 2007 at 05:08 PM Author Report Share #151176 Posted November 29, 2007 at 05:08 PM porque a outra maneira pareceu-me muito mais simples e rapida,e podes logo ver os simbolos e n necessitas de correr o programa Link to comment Share on other sites More sharing options...
JoaoRodrigues Posted November 29, 2007 at 05:42 PM Report Share #151179 Posted November 29, 2007 at 05:42 PM Mas queres um programa, ou algo que te diga os simbolos? Link to comment Share on other sites More sharing options...
rdbp Posted November 29, 2007 at 05:45 PM Author Report Share #151181 Posted November 29, 2007 at 05:45 PM nao eu quero saber se ha uma forma de usar um comando para escrver os simbolos e eles aparecerem logo na janela sem ter que correr o programa para ver se foram bem colocados Link to comment Share on other sites More sharing options...
passarito Posted November 29, 2007 at 11:42 PM Report Share #151283 Posted November 29, 2007 at 11:42 PM Boas, tu e as tuas dúvidas existenciais..... faz copy/paste do programa abaixo e corre-o no Pascal Diz lá se é isso que tu queres? USES CRT; VAR CH:CHAR; cont,I:INTEGER; PROCEDURE CARACTERES; BEGIN clrscr; cont:=0; for I:=1 to 255 do begin cont:=cont+1; writeln(i,'->',chr(i)); if cont=23 then begin cont:=0; readln; clrscr; end; end; readln; end; procedure codtec; begin clrscr; repeat ch:=readkey; if ch=#0 then begin write('? -> #0 #'); ch:=readkey; end else write(ch,' -> #'); writeln(ord(ch)); until ch=#27; end; BEGIN WRITELN; WRITELN('1 - CARACTERES'); WRITELN('2 - CODIGO TECLAS'); REPEAT CH:=READKEY; UNTIL CH IN ['0'..'2']; CASE CH OF '1':CARACTERES; '2':CODTEC; '0':HALT; END; END. Link to comment Share on other sites More sharing options...
passarito Posted November 29, 2007 at 11:48 PM Report Share #151287 Posted November 29, 2007 at 11:48 PM Obrigado pelo "colorido" Triton Link to comment Share on other sites More sharing options...
Triton Posted November 30, 2007 at 12:25 AM Report Share #151294 Posted November 30, 2007 at 12:25 AM Obrigado pelo "colorido" Triton Sempre às ordens! 😉 <3 life Link to comment Share on other sites More sharing options...
CrzB Posted January 2, 2008 at 02:45 PM Report Share #157406 Posted January 2, 2008 at 02:45 PM para usares os caracteres da tabela ascii, consultas a tabela ves o numero do simbolo que desejas e usas : "#(numero)" Por exemplo : #219 Espero ter ajudado.... 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