Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- class Student {
- public:
- Student() {
- };
- Student(std::string, std::string, int);
- void setFacNumber(int fac) {
- facNumber = fac;
- }
- int getFacNum() {
- return facNumber;
- }
- private:
- std::string name;
- std::string surname;
- int facNumber;
- };
- Student::Student(std::string a, std::string b, int c) {
- name = a;
- surname = b;
- facNumber = c;
- }
- int main() {
- Student s;
- s.getFacNum();
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement