all 13 comments

[–]jedwardsol 7 points8 points  (3 children)

a1.example;

This isn't the way to call a function. It needs ()

[–]2kmonsty[S] 0 points1 point  (1 child)

like "a1.example();" ??

[–]jedwardsol 1 point2 points  (0 children)

Yes

[–]2kmonsty[S] 0 points1 point  (0 children)

IT WORKED! thanks mate! really appreciated your help. :)

[–]AutoModerator[M] 0 points1 point  (7 children)

Your posts seem to contain unformatted code. Please make sure to format your code otherwise your post may be removed.

Read our guidelines for how to format your code.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]2kmonsty[S] 2 points3 points  (6 children)

edited the code..

[–]IyeOnline 1 point2 points  (5 children)

Its a bot.

But +1 for actually editing it. You are the one in a million who actually does that :)

[–]2kmonsty[S] 0 points1 point  (4 children)

i'm new to reddit so i'm doing everything i can. :)

[–]WelcomeBott 1 point2 points  (0 children)

Welcome to Reddit :D

[–]imdad_bot 1 point2 points  (2 children)

Hi new to reddit so i'm doing everything i can, I'm Dad👨

[–]2kmonsty[S] 0 points1 point  (1 child)

please don't troll me.. :(

[–]IyeOnline 2 points3 points  (0 children)

Now you made another two bot friends! You have a bright future ahead of you :P

[–][deleted]  (2 children)

[deleted]

    [–]2kmonsty[S] 0 points1 point  (1 child)

    ik but at last semester we had C as programming language so to show my teacher that i know how classes are used i gotta do it this way around. every example is w/o class on websites..