cplusplus.com
C++ : Forum : Beginners : trouble with classes
 
cplusplus.com
Information
Documentation
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs


post trouble with classes

shadowvillian (135)
hi, ive been trying to learn classes but i cant grasp it... what do you guys recommend i learn before attempting to learn classes?
Zhuge (2205)
Have you learned the basics of C++? Like the basic structure of a program, variables, functions, etc? If you have that stuff down there is little else I can do. Classes are the very basis of OOP, like variables & functions are in procedural programming.
mbittel12 (21)
Study it online or out of a book somewhere, look at examples of classes. It's basically calling functions from a separate file, not much different that calling a normal function in a main.cpp
Bazzy (6258)
Here are some good tutorials: http://www.cplusplus.com/doc/tutorial/
shadowvillian (135)
ya im pretty solid on the basics. i can do loops, ifs, arrays, strings, stuff like that. not functions though.
demosthenes2k8 (174)
Then you should learn functions, as it'll make learning classes much easier.
shadowvillian (135)
thanks for the reply demosthenes2k8, ill give it a shot.
Topic archived. No new replies allowed.