tags that contain the word 'code'
like this
[ c o d e ] and [ / c o d e ] (but without the spaces). It will make your code look like this:
Code:
#ifndef _CALCULATION_H_
#define _CALCULATION_H_
#include <string>
using namespace std;
class Calculation
{
public:
Calculation ();
virtual ~Calculation();
void getSize();
protected:
int a, b;
};
#endif
instead of this:
#ifndef _CALCULATION_H_
#define _CALCULATION_H_
#include <string>
using namespace std;
class Calculation
{
public:
Calculation ();
virtual ~Calculation();
void getSize();
protected:
int a, b;
};
#endif
by the way, use initialisation lists instead of assigning variables in your constructors (more efficient), and specify void as the argument list if you dont intend on passing arguments, it makes your cod easier to read:
Code:
Calculation::Calculation(void)
: a(0),
b(0)
{}
hope this helps!
U.