I'm suffering from memory leaks just looking at this!
Type: Posts; User: adzee
I'm suffering from memory leaks just looking at this!
#include <iostream>
#include <string>
using namespace std;
class parent{
protected:
int age;
public:
//setter
void setValues(int Age) { age=Age; }
//getter
is the main methods for storing and retrieving DATA in private class variables using setter/getter methods? is this common practice?
Sorry if my terminology is off, it's been a long while since i've practiced programming.
#include <iostream>
#include <string>
using namespace std;
class parent{
protected:
int age;...
DONT! i was there at one stage, i have come so far from wondering what the hell does int, long, double, string and the sorts mean, keep it up, things will click and you will get there! TIP, get more...
#include <iostream>
#include <string>
using namespace std;
class parent{
private:
string name;
public:
//setter method
void setName(string Name) { name = Name; }
//getter method
well, posting in this forum certainly helped!!! :/
read it, dont get it, should i just quit trying to learn C++!
Termonology at this stage is not my strong suit, i'm not sure i can give you a clear example of what i am trying to say, also, can you please explain why i have to be firmiliar with the "rule of...
Hi,
Can anyone tell me what is the best way to develop classes, the book i am reading has a few ways to develop them and i can't see an obvious reason for using any of them, i am using...
I'll get on it <<endl;
Hello,
I have been using this site for close to 4-5 years now and i have barely gotten out of the basics of c++ programming, i always start off with great ideas for what i want to do but start to...