[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppHelloWorld
With using namespace std.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppHelloWorld
(C++) Hello World
Without using namespace std.int main() { std::cout <<"Hello World" << std::endl; }
- include <iostream>
With using namespace std.
using namespace std; int main() { cout <<"Hello World" << endl; }
- include <iostream>
Should I use using namespace std in my code?
From http://www.parashift.com/c++-faq-lite/coding-standards.html#faq-27.5 :[27.5] Should I use using namespace std in my code?[/center][/b]
Probably not.
[/italic]
See link for rationale.'Hello world' links
- C
- C++
- C++ Builder, console
- C++ Builder, VCL
- C++ Builder, CLX
- C++ BuilderX, console
- C++ BuilderX, Win32 API
- C#
- PHP
- Prolog
- Turbo C++
- Turbo C++ 2006
- Visual C++ 2005
- Visual Prolog
- Win32 API
Code links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
