• Advertisement

Archived

This topic is now archived and is closed to further replies.

This topic is 5779 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
quote:
Original post by gamechampionx
Why has everybody suddenly stopped using iostream.h. How do you use iostream. Should I change my programming style?


Suddenly? The change came in 1998. Should you change? It''s up to your tastes and depends if you work with old code or not.

Share this post


Link to post
Share on other sites
Options, options:

  
#include <iostream>

int main()
{
std::cout << "Hello world" << std::endl;
}



  
#include <iostream>

using namespace std;

int main()
{
cout << "Hello world" << endl;
}



  
#include <iostream>

using std::cout;
using std::endl;

int main()
{
cout << "Hello world" << endl;
}


Choose one.

Share this post


Link to post
Share on other sites
quote:
Original post by gamechampionx
Wow, that''s simple. I''ll try using namespace std. BTW, what''s the advantage of using this STD crap?


STD is bad for your health.

Share this post


Link to post
Share on other sites
The bad thing is it attracts people like fallenang3l
(j/k)

------------
aud.vze.com - The Audacious Engine <-- It''s not much, yet. But it''s mine... my own... my preciousssss...
MSN: nmaster42@hotmail.com, AIM: LockePick42, ICQ: 74128155

Share this post


Link to post
Share on other sites

  • Advertisement