0

It comes declaration syntax error after i save my file as header file

before saving there was no error but after I saved file as header file with extension .h //password.h #ifndef PASSWORD_H #define PASSWORD_H class password { char buffer[20]; public: int checkpd(char *); }; #endif

7th Nov 2017, 5:33 PM
Abhishek Kumar
2 odpowiedzi
0
char buffer[20]; may need to be made public
7th Nov 2017, 5:57 PM
Jackson Tomei
Jackson Tomei - avatar
0
but it's not necessary we can declare it anywhere I think
8th Nov 2017, 12:05 AM
Abhishek Kumar