資源簡介
c 個人財務(wù)管理系統(tǒng) 大作業(yè) 文件 dos界面
代碼片段和文件信息
#include
#include?
#include
#include
#include
#include
#include
#include
#include
using?namespace?std;
const?int?LINEMAX?=?80;
void?inputpw(char?*password)//密碼輸入函數(shù)
{???int?i=0;
????char?ch;?
do{
fflush(stdin);//清洗流,以防妨礙密碼正確輸入
cout<<“\t\t““請輸入密碼:“;
for(ch=getch();ch!=0x0d&&i<=10;ch=getch()){?//若用戶輸入回車則結(jié)束密碼輸入?
????????
????????if?(ch==8?)?//若用戶按了退格鍵則……
????????{?
????????????if?(i>0?)?//如果已顯示星數(shù)不為0則……
????????????{?
????????????????printf(“\b“);?//退一個格
????????????????password[--i]=‘\0‘;?//password[i-1]的值改為‘\0‘?已顯示星數(shù)減一數(shù)組索引值減一
????????????}?
????????????putchar(0);?//顯示空字符
????????????printf(“\b“);?//退一個格
????????????continue?;?
????????}?
????????
????????if(?ch<32?||?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4307??2011-05-29?00:07??個人財務(wù)管理系統(tǒng)\20110517.dsp
?????文件????????524??2011-05-17?13:47??個人財務(wù)管理系統(tǒng)\20110517.dsw
?????文件??????58368??2011-07-02?18:02??個人財務(wù)管理系統(tǒng)\20110517.ncb
?????文件??????53760??2011-07-02?18:02??個人財務(wù)管理系統(tǒng)\20110517.opt
?????文件????????726??2011-06-28?22:36??個人財務(wù)管理系統(tǒng)\20110517.plg
?????文件?????712779??2011-06-28?22:31??個人財務(wù)管理系統(tǒng)\Debug\20110517.exe
?????文件?????936104??2011-06-28?22:31??個人財務(wù)管理系統(tǒng)\Debug\20110517.ilk
?????文件????5532548??2011-06-24?22:15??個人財務(wù)管理系統(tǒng)\Debug\20110517.pch
?????文件????1287168??2011-06-24?23:06??個人財務(wù)管理系統(tǒng)\Debug\20110517.pdb
?????文件?????609562??2011-06-28?22:36??個人財務(wù)管理系統(tǒng)\Debug\hello.obj
?????文件?????205824??2011-06-28?22:36??個人財務(wù)管理系統(tǒng)\Debug\vc60.idb
?????文件?????151552??2011-06-24?23:06??個人財務(wù)管理系統(tǒng)\Debug\vc60.pdb
?????文件??????62048??2011-06-24?23:06??個人財務(wù)管理系統(tǒng)\hello.cpp
?????文件?????????52??2011-06-28?22:32??個人財務(wù)管理系統(tǒng)\password.txt
?????目錄??????????0??2011-07-03?23:08??個人財務(wù)管理系統(tǒng)\Debug
?????目錄??????????0??2011-07-03?23:08??個人財務(wù)管理系統(tǒng)
-----------?---------??----------?-----??----
??????????????9615322????????????????????16
- 上一篇:C++ Templates 2nd(c++模板)
- 下一篇:C和指針
評論
共有 條評論