摘要: 关键字namespace namespace 名称 { 定义一些东西 } using(声明)+ 名称空间的名称::东西的名字 将名称添加到局部或全局,取决于声明这个名称的位置 using namespace(using编译指令) + 名称空间的名称 使名称空间中所有名称可用,放在函数里,在此函数中名 阅读全文
posted @ 2022-05-26 20:45 Goodmann 阅读(26) 评论(0) 推荐(0)
摘要: using namespace std; char ch; int count = 0; cout << "Enter characters; enter # to quit:\n"; cin.get(ch); // use the cin.get(ch) function while (ch != 阅读全文
posted @ 2022-04-22 21:39 Goodmann 阅读(90) 评论(0) 推荐(0)