Computer Science Notes

Notes From CS Undergrad Courses FSU

This project is maintained by awa03

Classes and Objects

// Preprocessor Statements
#ifndef _NAME_OF_FILE_
#define _NAME_OF_FILE_

/*
	Code Goes Here
*/

#endif
// dog.h *Implementation File*

class dog{
public:
	dog();
	void setName(string n);
private:
	string name;
};
// dog.cpp *Definition File*

dog::dog(){
	name = "Jerry"; // Default Name
}
void dog::setName(string n){
	name = n;
}
auto i = 20
auto itr = vect1.begin();

#cpp #review #classes #objects #code