|
|
【入门C作业】【strcmp / for / while】 #25楼 有Debug Coding提供。 |
原帖由 无我不在 于 2009-1-17 09:47 AM 发表
case 'z' :
case 'Z' : while(ch != '\r') //\r是什么?
{
ch = getch();
cerr<<"*"; //cerr是什么?需要declare吗?
stuff_password[i++] = ch;
printf("\n\tPassword: ");
gets(stuff_password);
}
原帖由 无我不在 于 2009-1-17 12:52 PM 发表
【成功运行】
我的visual 2008不能用iostream叻。
所以我用这个function。可是不好写……
参考:http://hi.baidu.com/toyourside/b ... 56088f47106493.html
char* get_password(const ...
JBTALKS.CC |联系我们 |隐私政策 |Share
GMT+8, 2025-10-28 09:08 AM , Processed in 0.146754 second(s), 19 queries .
Powered by Discuz! X2.5 © 2001-2012 Comsenz Inc.
本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved
Dedicated Server powered by iCore Technology Sdn. Bhd.