Hello World with source

Posts 1–10 of 10 · Page 1 of 1
Hello World with source
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:










Code:
#include <iostream>
#include "conio.h"
using namespace std; 


void main(){
	cout << "Hello World!" << endl;
	_getch();


}
Note this is for noobs only
void main() is not ansi compliant、Teaching noobs the wrong stuff:(
Quote Originally Posted by Auxilium View Post
void main() is not ansi compliant、Teaching noobs the wrong stuff:(
like i would teach the noobs the real way
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?
Quote Originally Posted by Auxilium View Post
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?
because you cant learn c++ in a day im just dumbing it down

and btw i know it its just a dumbed down version
Quote Originally Posted by KiraSietta View Post
because you cant learn c++ in a day im just dumbing it down

and btw i know it its just a dumbed down version
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.
Quote Originally Posted by Auxilium View Post


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.
@Auxilium Wow serious talk from the sarcastic person I've seen on this forum
Quote Originally Posted by tdct View Post


@Auxilium Wow serious talk from the sarcastic person I've seen on this forum
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
where can i download "brain"?
Quote Originally Posted by KiraSietta View Post
i dont think. this has been posted before so here it goes
FTFY
The message you have entered is too short. Please lengthen your message to at least 10 characters.
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us