- Joined
- Apr 29, 2011
- Messages
- 31,284
- Trophies
- 2
- Age
- 38
- Location
- Dr. Wahwee's castle
- XP
- 18,969
- Country
IT'S C!C++? Nah, you're giving the guy too much credit.
Code:Print "Helloworld" Print "This program is so KEWL!!!"
IT'S C!
well she did.Well, it's kind of hard to tell the difference since you didn't use any C-specific code.
That just means, that you have an ambassador 3DS...
Well, it's kind of hard to tell the difference since you didn't use any C-specific code.
This doesn't mean anything.
well she did.
She included stdio.h library
she used printf, without stdio the small program could've failed.
last, C++ relies on objects, she used \n to skip lines, aand returned 0;
to keep the compiler happy you must return 0 always (end of function on the processor's thread, so program terminates)
But what does this have to do with the topic?Stdio is also a library in C++, C++ doesn't nessiarily *need* to be used in an OOP fashion, C++ recognizes \n, and it's common practice to return 0 in C++ functions as well. I'm experienced in C++ but not C and the code appeared to be something which could exist in a C++ program.
Look at my hack!
Stdio is also a library in C++, C++ doesn't nessiarily *need* to be used in an OOP fashion, C++ recognizes \n, and it's common practice to return 0 in C++ functions as well. I'm experienced in C++ but not C and the code appeared to be something which could exist in a C++ program.
extern "C" {
#include "foo.h"
}
std::printf("I like std::!\n")
This is good enough for proof