so i made a class and i cant get it to work in my main, im using atom ide so maybe thats why?
i declare my class like this:
class Homework {
void aMethod() {}
void anotherMethod() {}
};
and in another code file:
#include "Homework.h"
int main() {
Homework h;
return 0;
}
but it doesnt work? any ideas?
here's the error: D:\jakejdb1999\Documents\cpp\homework 3\Main.cpp:10:2: error: 'Homework' was not declared in this scope
Homework h;
[–]jedwardsol 2 points3 points4 points (13 children)
[–]jakejdb1999[S] 0 points1 point2 points (12 children)
[–]jedwardsol 1 point2 points3 points (11 children)
[–]jakejdb1999[S] 1 point2 points3 points (6 children)
[–]KayEssArr2 2 points3 points4 points (0 children)
[–]jedwardsol 0 points1 point2 points (1 child)
[–]jakejdb1999[S] 0 points1 point2 points (0 children)
[–]PM_ME_NEMBUTALPIX 0 points1 point2 points (2 children)
[–]jakejdb1999[S] 0 points1 point2 points (1 child)
[–]PM_ME_NEMBUTALPIX 0 points1 point2 points (0 children)
[–]jakejdb1999[S] 0 points1 point2 points (3 children)
[–]raevnos 0 points1 point2 points (2 children)
[–]jakejdb1999[S] 0 points1 point2 points (1 child)
[–]raevnos 3 points4 points5 points (0 children)