bugii Posted May 24, 2008 at 10:43 PM Report Share #187272 Posted May 24, 2008 at 10:43 PM Boas, alguem me podia dizer como fazer uma cena do tipo, eu escrevo: Jorge Fernando Palma e aparece Palma, Jorge ? urgente sff :/ Link to comment Share on other sites More sharing options...
M6 Posted May 25, 2008 at 12:05 PM Report Share #187328 Posted May 25, 2008 at 12:05 PM Bugii, antes de mais, bem vindo. Quanto à tua dúvida, pela pouca explicação que fazes, o que tu queres é eliminar os nomes do meio e depois mostrares o último nome apelido e depois o apelido. A solução é simples: 1. Divides a string pelos espaços 2. Aproveitas a primeira e a última Uma vez tendo a primeira e a última podes fazer o que quiseres, como por exemplo imprimi-las pela ordem que pretenderes. 10 REM Generation 48K! 20 INPUT "URL:", A$ 30 IF A$(1 TO 4) = "HTTP" THEN PRINT "400 Bad Request": GOTO 50 40 PRINT "404 Not Found" 50 PRINT "./M6 @ Portugal a Programar." 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