关于命名空间的互相引入的例子

xiaoxiao2021-02-28  56

#include <cstdlib> #include <iostream> namespace mystd{ extern "C" int printf(...); using namespace std; } int main(int argc, char *argv[]) { mystd::cout<<"hellowrld"; mystd::printf("helloworld!"); system("PAUSE"); return EXIT_SUCCESS; }

 

转载请注明原文地址: https://www.6miu.com/read-76004.html

最新回复(0)