> Class juu {
> Private:
> Public:
C++ is case sensitive.
Assuming that your code actually compiled, posting code with random capitalisation isn't going to help ANYONE figure out your problem.
#include<iostream>
usingnamespace std;
class juu { // <======== class, not Class
private: // <======== private, not Private
public: // <======== public, not Public
void massu(); // <======== needs void
};
void juu::massu() {
cout << "hello jack\n";
cout << "hello matt\n";
cout << "hello fred\n";
}
int main() { // <======== int main, not void main
juu huu;
huu.massu(); // <======== huu, not Huu
}
I don't think I used lower case letters. My cell phone automatically capitalizes the first letter. I forgot to write it as a lower case letter. The code does not contain upper case letters. How do I fix this?
Are you programming on a cell phone? Copy and paste the code from your desktop, exactly as it is.
Aside from what was already said (capitalization, void main), I don't see any glaring issues with the code. It's possible you aren't compiling (or linking) what I assume is your "w.cpp" file? Your compiler should tell you exactly which symbol is not being resolved; show the full error message.
> My cell phone automatically capitalizes the first letter. I forgot to write it as a lower case letter.
Wait until you get home and you can copy/paste directly from your source code.
Just pasting your half-assed remembered code with random typos is just a waste of EVERYONES time.