- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hello!
Is there a way to print the "copyright simbol" (ALT+0169) from within a FORTRAN program?
I tried to use the char() intrinsic, but I could not find the symbol.
Thank you for your help.
Daniel.
- Balises:
- Intel® Fortran Compiler
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
character :: c
open(11,file='copyright.txt')c = char(169)
write(11,'(a)') c
Les
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Thank you Les!
That worked fine. However, I wanted to print the symbol to the screen.
I added the following line of code:
but all I saw was this symbol
Could the regional setting of my computer have any effect?
Daniel.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Possibly.
When I did print instead of write, in my console windowI got the "Registered" symbol - like copyright but with "R" in place of "c" in the circle.
Les
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Steve,
Yes, I meant the console window.
My codeset is 437, so that is why I did not get the symbol.
The symbol displays correctly in codeset 850.
Thank you for your help.
Daniel.

- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable