Everything I really know about C++ is from Chili's tutorials. When I went to help someone on reddit they claim that I'm not using C++. Why?
Here's a screen-shot and the source (search for adabo): http://www.reddit.com/r/learnprogrammin ... rstanding/
Why Do These Guys Have A Problem With My Code?
Why Do These Guys Have A Problem With My Code?
- Attachments
-
- Untitled.png
- (26.78 KiB) Downloaded 289 times
Re: Why Do These Guys Have A Problem With My Code?
Can't say for sure why he claims it's not C++
By "void main" not being correct, he probably means you should use "int main" because it needs to return a value to work securely.
The next part I don't know. Maybe you use something like char* and he suggests you to use the std::string method.
Or then you used some other C method and pros come complaining you should use C++ methods instead.
By "void main" not being correct, he probably means you should use "int main" because it needs to return a value to work securely.
The next part I don't know. Maybe you use something like char* and he suggests you to use the std::string method.
Or then you used some other C method and pros come complaining you should use C++ methods instead.
ʕ •ᴥ•ʔ
Re: Why Do These Guys Have A Problem With My Code?
Pros? I get the feeling they arent there to help, rather just point out people flaws. Well anyway, thanks LuX.
Some people just look for ways to prove others wrong instead of giving helpful feedback
Some people just look for ways to prove others wrong instead of giving helpful feedback
- npissoawsome
- Posts: 114
- Joined: June 8th, 2012, 3:01 pm
Re: Why Do These Guys Have A Problem With My Code?
void main() is C++, it's 100% C++ lol.
But yeah as Lux said, he probably is being a bitch and wants you to use
int main(int argc, char* args[])
But yeah as Lux said, he probably is being a bitch and wants you to use
int main(int argc, char* args[])
Re: Why Do These Guys Have A Problem With My Code?
Yeah, I'm just trying to let it go. I just want to help people any way I can, but then I have to contend with people like that who are just there to shoot your down. It's frustrating.
Re: Why Do These Guys Have A Problem With My Code?
They make some good points, but their missing the main point. Dude wants to learn how pointers work. Who cares whether or not the entry point definition has a 100% standards compliant signature :/.
They also make some blatently false assertions, like that stdio is deprecated (unless he meant use cstdio, but that's not what I think he was meaning). Anyways, just screw em.
P.S. where is this tutorial of yours?
They also make some blatently false assertions, like that stdio is deprecated (unless he meant use cstdio, but that's not what I think he was meaning). Anyways, just screw em.
P.S. where is this tutorial of yours?
Chili
Re: Why Do These Guys Have A Problem With My Code?
Thanks for the reassurance chili. I see you made a stand for the purpose of the tutorial (reading your youtube comments). My aim was just to keep it to the bare minimum. I honestly don't see how understanding a concept can be harmful, even if the syntax is not all that common. The pointer syntax is Isn't that what matters? Had some positive feedback already, so I know it's working well for particular minds like my own.