void main() is not ansi compliant、Teaching noobs the wrong stuff:(
i dont think this has been posted before so here it goes
Things you need:
1.MVC++
2.A brain
3. an IQ over 60
First things first:
Note this is for noobs onlyCode:#include <iostream> #include "conio.h" using namespace std; void main(){ cout << "Hello World!" << endl; _getch(); }
^--------he totally ripped on MPGH and topblast
void main() is not ansi compliant、Teaching noobs the wrong stuff:(
Also, why are you using a namespace if you only use something from it only once.
using namespace std;
cout << "Hello World\n";
std::cout << "Hello World\n";
Which one seems shorter?
also, why would you not teach the right way, because you do not know it yourself?
Hell_Demon (07-15-2011)
what does not being able to learn in 1 day have to do with anything?
Don't you think it would help if you explained why it works rather than leaving people in the dark copying and pasting.
Giving a what may be a confusing explanation is over 9000 times better than letting somebody copy and paste without knowing what does what.
Hell_Demon (07-15-2011)
where can i download "brain"?
@Virtual Void Wow serious talk from the sarcastic person I've seen on this forum
Every time we try to stick wings in pigs it ends in a bloody messInactive
Recent Work:
https://www.mpgh.net/forum/194-crossf...ss-bar-v*****ml
https://www.mpgh.net/forum/194-crossf...ter-patch.html
https://www.mpgh.net/forum/194-crossf...vel-knife.html
But hi is right, void main(void) is just WRONG WRONG WRONG!
It's something only VC++ allows and it's not a good thing if compilers start to implend their own interpretation of the ANSI standards. Although it's all the same to the os low level (int/void main) it's still wrong to do.
@kibbles18
I could upload mine for you
Last edited by .::SCHiM::.; 07-15-2011 at 02:33 AM.
I'm SCHiM
Morals derive from the instinct to survive. Moral behavior is survival behavior above the individual level.
Polymorphic engine
Interprocess callback class
SIN
Infinite-precision arithmetic
Hooking dynamic linkage
(sloppy)Kernel mode Disassembler!!!
Semi debugger