I am trying to make a constructor in c++ with visual studio and I get this error :
Error 1 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
I run a diferent code from my teacher that is almost the same and it work. I'm new in oop, so don't juge please.
An example:
class Stud {
char name[30];
const () {
this->cnp[0] = 'a';
this->cnp[1] = '/0';
}
};