Jump to content

VB and eclipse help


geektm

Recommended Posts

I remember that 4 years ago, when i was a little kid, i use to do little things with eclipse. I rember that i did this programme.

rem Adrian, detector de palabras capicuas.

input "numero de caracteres de la palabra: ", caracteres$

if caracteres$ = "1" then goto proguno

if caracteres$ = "2" then goto progdos

if caracteres$ = "3" then goto progtres

if caracteres$ = "4" then goto progcuatro

if caracteres$ = "5" then goto progcinco



goto finalc

cls



proguno:

input "letra1: ", unun$

if unun$ = unun$ then goto correcto

if unun$ = unun$ then goto incorrecto



progdos:

cls

input "letra1: ", doun$

input "letra2: ", dodo$

if doun$ = dodo$ then goto correcto

if doun$ <> dodo$ then goto incorrecto



progtres:

cls

input "letra1: ", trun$

input "letra2: ", trdo$

input "letra3: ", trtr$

if trun$ = trtr$ then goto correcto

if trun$ <> trtr$ then goto incorrecto



progcuatro:

cls

input "letra1: ", cuun$

input "letra2: ", cudo$

input "letra3: ", cutr$

input "letra4: ", cucu$

if cuun$ = cucu$ then goto aefef

aefef:

if cudo$ = cutr$ then goto correcto

if cudo$ <> cutr$ then goto incorrecto



rem negativo charlie.

if cuun$ <> cucu$ then goto incorrecto



if cuun$ = cucu$ then goto aefef

aefef:

if cudo$ <> cutr$ then goto incorrecto





progcinco:

cls

input "letra1: ", ciun$

input "letra2: ", cido$

input "letra3: ", citr$

input "letra4: ", cicu$

input "letra5: ", cici$



if ciun$ = cici$ then goto qmgsdgseg

qmgsdgseg:

if cido$ = cicu$ then goto correcto



rem negativo charly.

if ciun$ <> cici$ then goto incorrecto

if ciun$ = cici$ then goto qmgsdgseg

qmgsdgseg:

if cido$ = cicu$ then goto correcto

if cido$ <> cicu$ then goto incorrecto

progseis:



rem etiquetas finales

correcto:

print "resultado positivo"

goto salta



incorrecto:

print "va a ser que no chato, que no me la tangas"



salta:

goto asdf



finalc:

cls

print "Demasiados caracteres, el m�ximo son 6 ;) "



asdf:

Well, the code is in spanish. I did this when i was 15.... so it kinda sucks. This was a homework that says if a word is a polindrome.

Two questions: In first place, is this basic ? I dunno the name of the lenguaje that i used.

In second place, I remember that i used to use eclipse, but i just downloaded it and i only can code in java. What am I doing wrong ?

I want to use this lenguaje another time, is very simple and it can works for explain the "basics" to a friend.

Thanks for the support and have a nice day

Link to comment
Share on other sites

While I am often the first (only?) to point out that there's no such thing as a bad first-language, I think there are many better first-languages to choose from. If I were teaching programming to young children (such as 5 year olds) I would most likely choose Scratch, Python, Lua, or JavaScript.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...