|
|
|
|
|
by whizzter
1358 days ago
|
|
And none of the listed languages enforce main to be part of a class, hence the described problem didn't exist for your students. I've taught C to beginners after the Java class and whilst there are some related problems those students encounter, the extra confusion caused by having main in a class doesn't exist (and doesn't cause as much syntax vs logic confusion later on). |
|
The lecture notes that eventually became this book were their path into discovering C++.
https://www.bertrand.pt/livro/programacao-com-classes-em-c-p...