본문 바로가기

카테고리 없음

namespace

#include "stdafx.h"

#include <iostream>

#include <string>


using namespace std;


namespace Aumoa {

void Print(void) {


cout << "Made by Aumoa" << endl;


return;

}

};


namespace Lib {

void Print(void) {

cout << "Made by Lib" << endl;

return;


}

};


int main() {

using namespace Aumoa;


using Lib::Print;


Print();


return 0;

}