← Back to Community
I'm learning C++
Profile icon
YeetMstr

Hey guys
I just started to learn C++
check out the code for more info!

For when it asks you for a name,

PLEASE DO NOT PUT ANY SPACES!

It also works better if you don't put a or an at the beginning

Correct usage
"What should I call this code?
Code"

Voters
Profile icon
PilotTexas147
Profile icon
YeetMstr
Comments
hotnewtop
Profile icon
sdemodica

Instead of doing std :: each time. Right after your #include's, type "using namespace std;" and then you won't have to every time you do a cout. Very good though!

Profile icon
YeetMstr

@sdemodica My tutor told me about that. He uses it but I refuse to use it until I get used to it. Lol

Profile icon
sdemodica

@epicman702 You will get used to it. Best of luck! :)

Profile icon
YeetMstr

@sdemodica Thx! I will still be using python tho. BTW did u look at line 18 (Where the "error" was)

Profile icon
sdemodica

@epicman702 Kind of, when I ran the program, it just kept repeating once I got to a certain point, probably line 18.

Profile icon
YeetMstr

@sdemodica Line 18 is a comment
It doesn't need a semicolon!

Profile icon
YeetMstr

@sdemodica It probably means you weren't entering ;

Profile icon
YeetMstr

@sdemodica I realised ur a C++ coder

Lol