Develop

[c++] namespace 사용 예

by hooni posted Apr 23, 2003
?

Shortcut

PrevPrev Article

NextNext Article

ESCClose

Larger Font Smaller Font Up Down Go comment Print
------------------------------------
#include <iostream> // iostream을 사용
using namespace std;

int main()
{
    cout << "Hi..!" << endl;
    return 0;
}
------------------------------------
#include <iostream>
using std::cout;
using std::endl;

int main()
{
    cout << "Hi..!" << endl;
    return 0;
}
------------------------------------
#include <iostream>
int main()
{
    std::cout << "Hi..!" << std::endl;
    return 0;
}
-------------------------------------