3 ms·
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 aft
by whizzter 4y 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).
- pjmlp 4y agoI can assure you they were using OOP in C++, creating their own standard library, leaving behind the ways of C, as any proper C++ course during the ARM C++ days. The lecture notes that eventually became this book were their path into discovering C++. https://www.bertrand.pt/livro/programacao-com-classes-em-c-pedro-guerreiro/99387 https://www.bertrand.pt/livro/programacao-com-classes-em-c-p...