This has been driving me nuts for the past couple of hours. I'm still quite new to C++ so the answer may be very simple.
This is for a header file:
#include <iostream>
#include <string>
#include <iomanip>
#include <Windows.h>
#include <math.h>
using namespace std;
class Band
{
public:
int blk;
int brn;
int r;
int o;
int y;
int gn;
int blu;
int p;
int gy;
int whi;
Band();
{
blk = 0;
brn = 1;
r = 2;
o = 3;
y = 4;
gn = 5;
blu = 6;
p = 7;
gy = 8;
whi = 9;
}
};
The second { bracket right under Band(); is receiving an error saying "expected a declaration." The whole code is there so nothing should be missing. Thank you for the help!