Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Help with GAMBAS

Name: Anonymous 2013-04-08 20:58

Hi /prog/,
I need your help with this pleb language now.
How do I translate this:
-------
Type myStudent
    ID As Long
    Name As String
    Phone As String
    Address As String
End Type
-------
- into GAMBAS?

Name: Anonymous 2013-04-08 21:03

No one?

Name: Anonymous 2013-04-08 21:10

The first one is BASIC by the way.

Name: Anonymous 2013-04-08 23:31

kill yourself dumb goy

Name: Anonymous 2013-04-09 2:21

So why are you doing this?
mfw a BASIC without UDTs.

Name: Anonymous 2013-04-09 2:34

Anyway, since that UDT isn't apparently for foreign interfacing, a class is better: http://gambasdoc.org/help/def/class?view
However, UDTs are stack allocated and classes heap allocated, now you'll need to add "New" wherever this thing is used as well.
But I'd rather you learn SICP instead.

Name: Anonymous 2013-04-09 6:43

>>4
JIDF pls.
I'm trying to get good at programming, gotta start somewhere that isn't java or C, I keep getting bad references about those two.
>>5
It's for a small class I'm taking.
>>6
Seems to work that way, thanks.
How do I into SICP?

Name: Anonymous 2013-04-09 8:12

GAMBAS? More like GOOMBAS amirite???? LLLLLLEEEEELLLLLL XD

Don't change these.
Name: Email:
Entire Thread Thread List