Java tutorial for elementary school students
category: general [glöplog]
I've released v1.01 of my Creative Basic tutorial for kids. It includes two new games.
http://www.students.meduniwien.ac.at/~n0102122/index_computer.htm
http://www.students.meduniwien.ac.at/~n0102122/index_computer.htm
i'll show it to my 6yr old niece.
Just had a quick look at the Sudoku puzzle solver.
I'm curious. Raise your fist if you were also slightly confused by this.
Code:
void main ()
{
unsigned int zahlenfeld [81];
int i;
// Einlesen der Eingabedatei (funktioniert getestermaßen)
einlesen (zahlenfeld);
// Konvertieren des Zahlenfeldes (funktioniert getestermaßen)
i = konvertiere_nachintern (zahlenfeld);
if (i == FALSE)
{
return;
}
// Löse das Rätsel
i = loese (zahlenfeld);
if (i == FALSE)
{
printf ("ERROR: Illegal input, cannot be solved\n");
getch ();
}
// Rückkonvertieren des Zahlenfeldes (funktioniert getestermaßen)
konvertiere_zurueck (zahlenfeld);
// Ausgabe des Zahlenfeldes in die Ausgabedatei (funktioniert getestermaßen)
ausgeben_datei (zahlenfeld);
// Ausgabe des Zahlenfeldes auf den Bildschirm (funktioniert getestermaßen)
ausgeben_bildschirm (zahlenfeld);
getch ();
}
I'm curious. Raise your fist if you were also slightly confused by this.
Battle Droid: What's your problem?
Code:
DIM i AS INT
i = 0
DO
PRINT "I’m such a handsome guy"
i = i + 1
UNTIL i = 10
"Real Adok's way for narcissistic coding examples!" :D
Adok: Well to begin with, It could be that everything is in German, broken German even ("getestermaßen", wtf?), but the error codes are in English. The comment lines are useless too. Spaces between methods and "(zahlenfeld)" make me uncomfortable.
I just don't like the use of the name "i" for a boolean. :)
also, if you teach c(++) you must at least follow a minimum standard requirements, like int main instead of the senseless void main.
You are a bitch Adok.
Battle Droid: Ah, okay :) You're right. Thanks for your feedback.
I have to teach some basics of C to a friend of mine (starting from 0).
I was thinking about using Dev C++, starting with some console applications and using the port of conio.h (on sf.net), just to have acces to nice things like gotoxy(), textcolor(), clrscr()...
Then I ended up here (Turbo C++ 2006 or something)
Does someone knows more about this last version of Turbo C++?
Actually I feel more inclined over Dev C++, not sure about starting with Visual Studio express, I would like to keep it quite simple and slim, at least in the beginning...
Any suggestion is welcome, many thanks
-bdk
I was thinking about using Dev C++, starting with some console applications and using the port of conio.h (on sf.net), just to have acces to nice things like gotoxy(), textcolor(), clrscr()...
Then I ended up here (Turbo C++ 2006 or something)
Does someone knows more about this last version of Turbo C++?
Actually I feel more inclined over Dev C++, not sure about starting with Visual Studio express, I would like to keep it quite simple and slim, at least in the beginning...
Any suggestion is welcome, many thanks
-bdk
Doesnt matter. Just get him a good book.
Hmm, very good suggestion.
In fact I started too from books, they're always a nice point of reference, expecially in the beginning...!
I'll google a bit, anyway if someone knows about some good books available in castillian (my friend isn't quite strong at english, for now) any suggestion is welcome :)
(xernobyl, texel, iq, ...)
In fact I started too from books, they're always a nice point of reference, expecially in the beginning...!
I'll google a bit, anyway if someone knows about some good books available in castillian (my friend isn't quite strong at english, for now) any suggestion is welcome :)
(xernobyl, texel, iq, ...)
I think I've found it!
(any suggestion/experience is always welcome, btw)
(any suggestion/experience is always welcome, btw)
ARe you calling me spanish??? Do I have to fist you?
Teach them manners instead of Java!
Maybe you should consider teaching Processing instead of pure Java. It's a bit simpler and maybe more comfortable to people without any knowledge of coding. http://www.processing.org
Hah, sorry xer!
It won't happen another time :)
bod: yes, I think I'll maybe switch to proce55ing if/when it comes to gfx, rendering and stuff.
It won't happen another time :)
bod: yes, I think I'll maybe switch to proce55ing if/when it comes to gfx, rendering and stuff.
lol.