資源簡介
操作系統的實驗1進程控制與描述,大家可以看看

代碼片段和文件信息
#include
#include
#include
using?namespace?std;
int?main()
{
??STARTUPINFO?si;
??memset(&si0sizeof(si));
??si.cb=sizeof(si);
??PROCESS_INFORMATION?pi;
??string?typein;
??cout<<“輸入“open”打開新的進程,輸入“exit”退出進程“<
??while(1)
??{
??????cin>>typein;
??if(typein==“open“)
??{
??bool?a=CreateProcess(“D:\\Plants?vs.?Zombies\\Plants?vs.?Zombies\\PlantsVsZombies.exe“
??NULLNULLNULLtrueCREATE_NEW_CONSOLENULLNULL&si&pi);
??if(!a)
??cout<<“該應用不存在“<
??}
??else?if?(typein==“exit“)
??{
???????TerminateProcess(pi.hProcess0);
???break;
??}
??else
??cout<<“錯誤,不存在該命令!請重新輸入“<
??}
??return?0;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????507971??2009-12-24?20:01??試驗一源代碼\Debug\try.exe
?????文件?????759712??2009-12-24?20:01??試驗一源代碼\Debug\try.ilk
?????文件?????116831??2009-12-24?20:01??試驗一源代碼\Debug\try.obj
?????文件????5397344??2009-12-24?20:01??試驗一源代碼\Debug\try.pch
?????文件????1074176??2009-12-24?20:01??試驗一源代碼\Debug\try.pdb
?????文件?????295936??2009-12-24?20:01??試驗一源代碼\Debug\vc60.idb
?????文件?????135168??2009-12-24?20:01??試驗一源代碼\Debug\vc60.pdb
?????文件????????748??2009-10-09?17:17??試驗一源代碼\try.cpp
?????文件???????3365??2009-12-24?20:01??試驗一源代碼\try.dsp
?????文件????????531??2009-12-24?20:01??試驗一源代碼\try.dsw
?????文件??????41984??2009-12-24?20:01??試驗一源代碼\try.ncb
?????文件??????48640??2009-12-24?20:01??試驗一源代碼\try.opt
?????文件????????731??2009-12-24?20:01??試驗一源代碼\try.plg
?????文件??????24576??2009-10-09?17:28??試驗一源代碼\實驗一實驗報告.doc
?????目錄??????????0??2009-12-24?20:01??試驗一源代碼\Debug
?????目錄??????????0??2009-12-28?20:24??試驗一源代碼
-----------?---------??----------?-----??----
??????????????8407713????????????????????16
- 上一篇:Liberty概要文件配置說明
- 下一篇:stm32F103ze利用DMA產生正弦波
評論
共有 條評論