Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student.h
- private: datamembers
- puiblic : member functions
- student.cpp
- functions on code
- testing.cpp
- main(){
- }
- To write to the class
- Student
- classP{
- private:
- //for ever datamember you need a getx and a setx
- x
- public:
- constructor:
- getx
- setx
- destructor:
- },
- // we have moved to talk about the the class tring
- //first we include string
- //so here we are finding the length of the string class using the function of the class string
- #include <string>
- string address ("122 michigan Ave");
- address.length(); // this is a function of the class string - length is a function of the class string
- here we have moved to to talking about cards
- we are going to create a class for card types
- class name : card
- char face
- char suit
Advertisement
Add Comment
Please, Sign In to add comment