Everything in the code contradicts it, because it's all C. All of it.
It seems to be strictly C90.
Type: Posts; User: Elysia
Everything in the code contradicts it, because it's all C. All of it.
It seems to be strictly C90.
I am inclined to disagree.
Knowing what language the OP is actually trying to learn would help in knowing what to teach.
You still need to properly indent the code (google it!).
And you haven't answered my question yet. C or C++?
I note that this is entirely C, and not a hint of C++.
Why do you think this is C++? Is this what someone has told you (eg teacher, tutorial)?
What are you really wanting to learn--C or C++?