【java 权限系统 源码】【杰克指标源码】【幕布源码下载】数据管理系统源码大全图片_数据管理系统源码大全图片
1.ç³»ç»ç®¡ç
2.数据库管理系统的数据数据代码是跟windows代码一样运行在内核态的吗?
3.用c++编写学生管理系统
ç³»ç»ç®¡ç
ç³»ç»çç¨æ·å æ¬æ®éç¨æ·å管çåç¨æ·ä¸¤å¤§ç±»ã对äºæ®éç¨æ·ï¼ç³»ç»éè¦åå ¶æä¾åªè¯»ç访é®æéï¼å¯ä»¥æ¥çç³»ç»å é¢å®ä¹å¥½çåç±»é£é©GISå±ç¤ºï¼é£é©è¯ä»·ææ ä½ç³»ãè¯ä»·ç»æï¼ä»¥åä¸åè¯ä»·å¯¹è±¡çåºæ¬ä¿¡æ¯ï¼å¦å¤è¿å¯ä»¥å¯¹ç³»ç»å ç模åè¿è¡ç»æè¿è¡æ¥çã
å¾5. å¢å è¯ä»·æ¹æ¡é¡µé¢
å¾5. ä¿®æ¹è¯ä»·æ¹æ¡é¡µé¢
å¾5. å级ææ å®¡æ ¸é¡µé¢
å¾5. æ¹éè¯ä»·é¡µé¢
管çåç¨æ·åéè¦ä¸ºç³»ç»å模åçæ£å¸¸è¿è¡åç³»ç»å åç§æ°æ®çç»´æ¤çæä¾æ¯æï¼ç³»ç»ç®¡çå¹³å°çç¨æ·å¯¹è±¡ä» æ¯ç³»ç»ç®¡çåã
ç³»ç»ç®¡ççå¼åå°ä¸»è¦å´ç»ç³»ç»ç®¡çå¹³å°ãæ°æ®ç®¡çåå¾åºç®¡ç3æ¹é¢å±å¼ãç³»ç»ç®¡çå¹³å°ä¸»è¦æ¯å¯¹æ´ä¸ªç½ç«ç³»ç»çåå°ç®¡çåç½ç«è®¾ç½®ï¼å³å®ç°è¯¥ååç³»ç»çåå°ç»´æ¤ãæ°æ®ç®¡ç主è¦å æ¬æ²¹ä»·æ°æ®ãäºä»¶ç®¡çï¼ä»¥ååºç¡æ°æ®ç®¡çãå¦å¤ï¼å¾åºç®¡çæ¯é对å½å®¶ãè¿è¾çç¸å ³é£é©ä¸æç¨å°çç»æå¾æå°å¾çè¿è¡éä¸ç®¡çã
5.4.5.1 ç³»ç»ç®¡çå¹³å°å¼å
以B/Så½¢å¼è¿è¡çé£é©ç®¡çç³»ç»ç管çå¹³å°å¦å¾5.æ示ãä¾ç §æ°æ®æµç¨ç线索å°ç³»ç»æ´ä½åè½ä»å·¦å°å³è¿è¡ç»ç»ï¼åå为æ°æ®åå¤ãæ°æ®å¤çãæ°æ®åå¨åæ°æ®åºç¨å大åï¼æ¯ä¸åä¸å æ¬äºæ°æ®æµç¨ä¸åé¶æ®µçå ·ä½ä»»å¡ãè¿äºä»»å¡ä»¥å¤ç§å½¢å¼å±ç°å¨ç®¡çå¹³å°çé¢ä¸ï¼å æ¬ä¸å¿çæµç¨å¾å½¢å¼ï¼å·¦ä¾§èåå顶å±èåï¼å¯¹ç³»ç»ç管çåè½æä¾äºå¤ä¸ªè®¿é®å ¥å£ï¼æ¹ä¾¿ç³»ç»ç®¡çå对系ç»åè½çææ¡åè°ç¨ã
æ¥ä¸æ¥ï¼ä»¥ä¸»çé¢ä¸çæ°æ®æµç¨å¾ä¸ºä¸»çº¿ï¼ç®åä»ç»è¯¥ååç³»ç»çé»è¾æ¡æ¶ãå¨ç³»ç»è¿è¡ç®¡çå¹³å°çé¢çæ°æ®åå¤ä¸ï¼å°ç³»ç»éè¦è·åçæ°æ®å为Internetæ½åçä»·æ ¼æ°æ®åé£é©è¯ä»·æ°æ®ä¸¤å¤§ç±»ï¼è§å¾5.cï¼ã
å¨æ°æ®å¤çé¨åï¼ç³»ç»æä¾å¯¹æ²¹ä»·æ°æ®çè¿ä¸æ¥æ´çåæ°æ®èªå¨æåè¿ç¨ä¸çæ¥å¿æ¥çï¼ä¿è¯ç³»ç»æä¾åç¡®å®æ´çæ°æ®ï¼è§å¾5.dï¼ãé¤æ¤ä»¥å¤ï¼ç³»ç»ç®¡ççæ°æ®å¤çé¨åå å«æ¨¡åè¿ç®æ¨¡åçè°ç¨å管çï¼ä»¥åç³»ç»å¯¹ææ ä½ç³»å对象è¯ä»·ç¸å ³æ°æ®ç管çã
å¾5. ç³»ç»ç®¡ç主çé¢
ç®å主è¦ä»ç»çæ¯å½å®¶é£é©ãå¸åºé£é©åè¿è¾é£é©3个ååè½æ¨¡åãæ¤å¤ï¼é¤äºä¸é¢æä»ç»çç³»ç»ç®¡ç主è¦æ¡æ¶ä»¥å¤ï¼å¨ç³»ç»ç®¡çå¹³å°ä¸ï¼è¿æ·»å äºç³»ç»è®¾ç½®åç½ç«æä½æ¨¡åãç³»ç»è®¾ç½®åç½ç«æä½ä¸»è¦å®ç°æ´ä¸ªååç³»ç»çåå°çé¢æ¡æ¶ç®¡çãå ·ä½ä¸»è¦å å«ä»¥ä¸å 个æ¹é¢ã
1ï¼ç´æ¥å©ç¨éåSharepointå表åè½å¯¹ç½ç«åå°æ¡æ¶è¿è¡æ´ä½è®¾è®¡ï¼å¯ä»¥è¿è¡å建ãç¼è¾ç½é¡µãç½ç«æ¡æ¶è®¾è®¡ï¼å¾5.ï¼ã
å¾5. ç½ç«æä½
2ï¼æ´æ¹ç½ç«ä¸»é¢ãç½ç«åå°ä¸æå¤ç§ç½ç«ä¸»é¢ï¼ç¨æ·å¯æ ¹æ®éè¦éæ©ä¸åç主é¢ï¼å¾5.ï¼ã
3ï¼å¨æ¯ä¸ä¸ªç³»ç»æ¨¡åä¸é¢ï¼å¯è¿è¡æ´ä½é¡µé¢åæ¶æç设计ï¼åæ¶å¯ä»¥ç¼è¾ç¸åºçè¶ é¾æ¥æ¡ç®ï¼å¾5.ï¼ã
4ï¼å¨ç½ç«è®¾ç½®ä¸»é¡µä¸ï¼é«çº§ç¨æ·å¯ä»¥è¿è¡æé管çï¼ä¸»é¢å¤è§è®¾ç½®ï¼ç³»ç»åºç管ç以åç½ç«éç管çï¼å¾5.ï¼ãå½ç¶ï¼ä¸è¿°æéæä½ä» éäºé«çº§ç¨æ·ã
5.4.5.2 æ°æ®ç®¡ççå¼å
æ°æ®ç®¡çå æ¬æ²¹ä»·æ°æ®åäºä»¶ç®¡çãåºç¡æ°æ®ç®¡ççå 容ãå¨æ²¹ä»·æ°æ®åäºä»¶ç®¡çä¸ä¸»è¦å®æ油价æ°æ®åäºä»¶çèªå¨æååè½ï¼åºç¡æ°æ®ç®¡çå°å¯¹å个é£é©æ¨¡åè¯ä»·å¯¹è±¡çæ¦åµãä¿¡æ¯çç¸å ³æ°æ®è¿è¡ç»´æ¤å管çã
ï¼1ï¼æ²¹ä»·æ°æ®åäºä»¶ç®¡ç
油价æ°æ®åäºä»¶ç®¡ççéç¹æ¯æ²¹ä»·åæ¶é´æ°æ®çè·åãç³»ç»è¦æ±è½å¤å®ç°ä»Internetä¸å®æèªå¨å°æåæ°æ®å¹¶åå¨å°ç³»ç»ä¸å¿æ°æ®åºä¸ã
å¾5. ç½ç«ä¸»é¢æ´æ¹
å¾5. ç¼è¾ç½é¡µ
å¾5. ç½ç«è®¾ç½®
èèå°æ°æ®ç®¡çåæ°æ®åºä¹é´çå ³ç³»æ¯è¾å¯åï¼å¹¶ä¸éè¦ä¸é´æå°è¿è¡ï¼æ以对æ°æ®ç®¡ç模åççé¢éåäºC/Sçå¼åå½¢å¼ã
èªå¨æå模åçå¼åå 容å æ¬ï¼ä»·æ ¼æ°æ®æåç®æ³ç设计ï¼äºä»¶æåç®æ³ç设计ï¼æ°æ®æ½åä»»å¡æ§å¶çæ´ä½ç¨åºç»æç¡®å®ï¼ä»»å¡çèªå¨æ§è¡åè°åº¦ç®æ³ç设计ï¼æ¥å¿åè½ç使ç¨ï¼è¦è½å¤ä¾æ®æ¥å¿å¯¹ä»»å¡æ§è¡ä¸çé误追踪ååºéåå è¿è¡å¤æï¼éè¦å®ç°ä»»å¡å¤±è´¥éè¯ï¼å¹¶å¯ä»¥è®¾ç½®éè¯æ¬¡æ°éå¼ï¼é»è®¤ä¸º3次çã
1ï¼è°åº¦ç®æ³ãå°æ½å代ç è¿è¡å°è£ ï¼æ·»å è°åº¦æ¥å¿çåè½ï¼è®¾è®¡åºèªå¨æå模åæµç¨çæ´ä½æµç¨å¾ï¼å¾5.ï¼å¾5.ï¼ãç¨äºæ°æ®ç®¡çç管çåçé¢å¦å¾5.æ示ã
å¾5. èªå¨æå模åæµç¨å¾
å¾5. èªå¨æå模åæµç¨å¾
å¾5. æ°æ®ç®¡ç模åçé¢
2ï¼ä»·æ ¼æ°æ®æåç®æ³ãèªå¨æå模åçæ ¸å¿ä»£ç æ¯ä»·æ ¼æ°æ®æååäºä»¶æåç®æ³ãä»·æ ¼æ°æ®æåä»ç½é¡µä¸æåæ°æ®åå¨å°æ¬å°ä¸æ¥ï¼å æ¬ä¸è½½æ¨¡ååå¤ç转æ¢æ¨¡å两个å模åãèªå¨æå模åçæ ¸å¿ä»£ç é¨åèªå¨è¿ç¨ä¸è½½ä»·æ ¼æ°æ®ï¼å¹¶æç §æå®è·¯å¾ä¿åå°æ¬å°ï¼å¹¶å°ä¸è½½ç»æ计人æ°æ®åºä¸è½½æ¥å¿è¡¨ï¼ç¶åå°ä¸è½½ä¸æ¥çExcelè¡¨æ ¼æ°æ®è¿è¡è½¬æ¢ï¼è½¬æ¢æ符åæ°æ®åºæ建ç«çè¡¨æ ¼å½¢å¼ã
对ç¾å½è½æºé¨çæ°æ®æå代ç æµç¨åè¡¨æ ¼å¤ç转æ¢æµç¨å¦å¾5.ä¸å¾5.æ示ã
å¾5. æ°æ®æå代ç æµç¨å¾
å¾5. è¡¨æ ¼å¤ç转æ¢æµç¨å¾
ä»·æ ¼æ°æ®æå模åçææ¯é¾ç¹ä¸»è¦æï¼æä¸è½½çè¡¨æ ¼ä¸å å«çå¸åºå称å¯è½ä¼åçåå¨ï¼é¾ä»¥é¢æï¼å¯¼è´å¹é 失败ï¼Excelè¡¨æ ¼ä¸äº§åå称ãå¸åºå称ãä»·æ ¼ç±»åãè´§å¸ç±»åè¿å 个å段æ¯å并å¨ä¸èµ·çï¼éè¦å°å ¶åå«è¯å«åºæ¥ï¼åè¡¨æ ¼ä¸çæ¥ææ ¼å¼ç´æ¥å¯¼å ¥æ°æ®åºä¼åçä¸ä¸è´ç°è±¡ï¼éè¦å¯¹å ¶è¿è¡è½¬æ¢å¤çãè¿äºé¾ç¹ç解å³ä¸»è¦ä¾èµä¸ç®æ³ç设计ï¼å¨æ¤ä¸åèµè¿°ã
3ï¼äºä»¶æ°æ®æåç®æ³ãäºä»¶æ°æ®æåç®æ³è¦æ±å¯¹ç¾å½è½æºé¨ä¸å ³äºæ²¹åçææåå²äºä»¶è¿è¡æåï¼å¹¶ä¿åè¿æ°æ®åºãå ·ä½å®ç°ç®æ³æ¯ä»ç¾å½è½æºé¨æå®çäºä»¶ç½ç«ä¸å°äºä»¶é¡µé¢çæºç ä¸è½½å°æ¬å°ï¼ç¶åè¿è¡ç¸å ³å符串æåãæ¸ æ´ãæä½ä¹åè¿å ¥ä¸å¿æ°æ®åºã
äºä»¶æåç®æ³çææ¯é¾ç¹ï¼ä¸»è¦å¨äºäºä»¶æ¯åºäºé¡µé¢HTMLå½¢å¼èéé¾æ¥ï¼å¦å¤æåçäºä»¶è¦ç¬¦åæ°æ®åºè§å®çå½¢å¼ã解å³è¿äºé®é¢ç主è¦æ¹æ³å æ¬å¯¹ç½é¡µæ¬å°åè£ è½½çæ§ä»¶è¿è¡æ°å½çéæ©ï¼å¨å»é¤é¡µé¢çHTM Læ è®°ä¹åéè¦éå ä¸äºæ´æ£æ§è´¨çå¤çï¼æ¯å¦æ¥æã年份çéæ©ï¼äºä»¶æ¥æãæ¶é´åå 容ä¹é´æ²¡æç©ºæ ¼çå¤æé®é¢çï¼æåï¼æ主è¦çå°±æ¯å¨æåä¸å¤§é使ç¨æ£å表达å¼æé«æçãäºä»¶é¡µé¢çåç°ï¼å¦å¾5.æ示ã
å¾5. å½é 油价äºä»¶
ï¼2ï¼åºç¡æ°æ®ç®¡ç
ç³»ç»ç®¡çå¹³å°ä¸»è¦å®ç°åºç¡æ°æ®ç®¡çãå¨åºç¡æ°æ®ç®¡ç模åï¼åºäºå¯æ©å±çæ°æ®ç»´æ¤ææ¯ï¼å®æäºæ»ä½æ¶æ设计ï¼ä»¥å½å®¶ãè¿è¾ãå¸åºåºç¡æ°æ®ä¸ºä¾çåºç¡æ°æ®ç®¡çåè½å®ç°ãå¨åºç¡ä¿¡æ¯ç®¡çä¸å®ç°äºæ¦åµãä¿¡æ¯ã油价ãäºä»¶ççæ·»å ãç¼è¾ãä¿®æ¹ãæ´æ°ä¸ç³»åæä½ã
å¨åºç¡æ°æ®ç®¡çä¸ï¼å®ç°äºå½å®¶æ°æ®çèµæºæ¦åµãåºæ¬ä¿¡æ¯ç页é¢è®¾è®¡ï¼è¿è¾æ°æ®ç港å£ãèªçº¿æ¦åµååºæ¬ä¿¡æ¯ç页é¢è®¾è®¡ï¼å¸åºæ°æ®ç®¡çç页é¢è®¾è®¡ï¼å¹¶é½å®ç°äºé¾åºåè½ã
å¾5.då±ç¤ºçæ¯ç³»ç»ç®¡çç主çé¢ãå ¶ä¸ï¼æ主è¦çåè½æ¯å®ç°åºç¡æ°æ®ç®¡çæä½ï¼è¯¥æ¨¡åä» å¯¹é«çº§ç¨æ·ï¼å³ææéè¿è¡æ°æ®ç»´æ¤çç¨æ·ï¼å¼æ¾ã
1ï¼å½å®¶æ°æ®ç®¡çãä¸é£é©è¯ä»·é¡µé¢ç¸ç±»ä¼¼ï¼åºç¡æ°æ®é¨åæ ¹æ®æ¨¡ååäºâå½å®¶æ°æ®ââè¿è¾æ°æ®âçæ ç¾ï¼åæ ç¾ä¸åæåèªæ¨¡åçç»ååè½èåï¼æ¾ç¤ºäºé¡µé¢å·¦ä¾§ãå½å®¶æ°æ®çæ°å¢å½å®¶åèµæºæ¦åµå±ç¤ºç页é¢ï¼å¦å¾5.åå¾5.æ示ã
å¾5. æ°å¢å½å®¶é¡µé¢
å¾5. å½å®¶åºæ¬ä¿¡æ¯æ¹éå±ç¤º
2ï¼è¿è¾æ°æ®ç®¡çãè¿è¾æ°æ®ç®¡ç模åå®ç°äºæ¸¯å£æ¦åµã港å£ä¿¡æ¯ãèªçº¿æ¦åµãèªçº¿ä¿¡æ¯ç页é¢è®¾è®¡ãç°ä» 以港å£ä¿¡æ¯é¡µé¢å±ç¤ºä¸ºä¾ï¼å¦å¾5.æ示ã
5.4.5.3 å¾åºç®¡ç
å¨æ´ä¸ªé£é©è¯ä»·ç³»ç»ä¸ï¼åºç¨äºå¤§éå¾çæ¥ä¸°å¯å±ç°è¯ä»·å¯¹è±¡çç¸å ³ä¿¡æ¯ãå¾ççåºç¨èå´å æ¬ï¼å½å®¶å¯¹è±¡çå°çåå¸ç¤ºæ以åå½å®¶çå é¨è¡æ¿ååçï¼æ¸¯å£å¯¹è±¡çæ å¿æ§å¾çï¼å¯è½æ¯æ¸¯å£çç §çæè ç»æå¾çï¼ä»¥åå ¶ä»æ¨¡åæåºç¨å°çå¾çã
å¨å¾åºç®¡çé¨åï¼ç®åèèçæå½å®¶å港å£çå¾ç管çãå¾åºçç»æå¦å¾5.æ示ã
å¾5. 港å£ä¿¡æ¯ç»´æ¤
å¾5. å¾åºç®¡çç»æå¾
å¾5.æ¯æ·»å å¾çç页é¢ã
å¾5.æ¯å½å®¶å¯¹è±¡å¾åºçæ¾ç¤ºé¡µé¢ï¼å¾5.æ¯ä¸ä¸ªå ·ä½ç对象å¾ç页é¢ï¼å¹¶ä¸å¯ä»¥å¨æ¤å¤å é¤æè ä¿®æ¹å¾çã
å¾5. å¾åºç®¡çï¼æ·»å å¾ç
å¾5. å¾åºç®¡çï¼å½å®¶å¯¹è±¡å¾åº
å¾5. å¾åºç®¡çï¼å½å®¶å¯¹è±¡å ·ä½å¾çæ¾ç¤º
数据库管理系统的代码是跟windows代码一样运行在内核态的吗?
说实话,你提问题提的管理管理很模糊,不知道是系统系统什么意思?你所谓的代码是源代码还是指返回码
如果是源代码的话,给你以下的源码源码java 权限系统 源码答案:
数据库的源代码是基于系统之上运行的,也就是大全大全说在运行上,实际上是图片图片杰克指标源码会调用系统的功能的,当然不一定是数据数据windows的
windows的代码的话,是管理管理基于本身的基本架构来做的,肯定是系统系统先实现了基本核心,然后才实现外围的源码源码一些功能的。
如果是大全大全返回码的话,那就情况又不一样了。图片图片
数据库的数据数据幕布源码下载返回码一般分三种
1.系统设计人员设定的
2.数据库上的返回码
3.数据库调用系统功能的返回码
而系统的返回码则主要是系统开发层面上的
用c++编写学生管理系统
今天卧病在家,抽时间写的管理管理这么个简单的管理系统,完全是系统系统命令行界面的,对于一些异常的信鸽传书 源码内容考虑的还不是很周到。不知道你具体用于做什么。不过希望对你有帮助,你可以基于源码进行修改。2022影视源码如下内容在VC上编译并测试通过基本场景。如果你需要图形界面,你可以尝试用MFC或者C#等包装,时间有限,只能先做到这些了。good luck!
// mytest.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <iostream>
#include <map>
#include <string>
#include <algorithm>
class Student
{
public:
Student(std::string name,
unsigned long id,
std::string sex,
std::string political,
std::string address)
:
m_name(name),
m_id(id),
m_sex(sex),
m_political(political),
m_address(address)
{
}
public:
unsigned long m_id;
std::string m_name;
std::string m_sex;
std::string m_political;
std::string m_address;
};
typedef std::map<unsigned long, Student> StudentCont;
class StudentMgr
{
public:
StudentMgr()
:
m_num(0)
{
}
void add()
{
std::cin.clear();
std::cin.sync();
std::string name("");
std::cout << "please input student's name: ";
std::getline(std::cin, name);
std::string sex("");
std::cout << "please input student's sex: ";
std::getline(std::cin,sex);
std::string political("");
std::cout << "please input student's political apperance: ";
std::getline(std::cin,political);
std::string address("");
std::cout << "please input student's address: ";
std::getline(std::cin,address);
m_num++;
Student student(name, m_num, sex, political, address);
m_students.insert(std::make_pair(m_num, student));
std::cout << "Student " << m_num << " " << name << " " << sex << " " << political << " " << address << " add successfully!" << std::endl;
}
void del()
{
unsigned long id;
std::cout << "Please input the student's id:";
std::cin >> id;
StudentCont::iterator iter = m_students.find(id);
if(iter != m_students.end())
{
m_students.erase(id);
std::cout << "Id number: " << id << " was deleted successfully!" << std::endl;
}
else
{
std::cout << "Id number: " << id << " doesn't exist in the system!" << std::endl;
}
}
void mod()
{
unsigned long id;
std::cout << "Please input the student's id:";
std::cin >> id;
StudentCont::iterator iter = m_students.find(id);
if(iter != m_students.end())
{
std::cout << "Id number: " << id << " is found, please input the information you want to change!" << std::endl;
std::cout << "please input your choice number:" << std::endl;
std::cout << "--------------------------------" << std::endl;
std::cout << "-[1] name. -" << std::endl;
std::cout << "-[2] sex. -" << std::endl;
std::cout << "-[3] political apperance. -" << std::endl;
std::cout << "-[4] address. -" << std::endl;
std::cout << "-[5] Quit! -" << std::endl;
std::cout << "--------------------------------" << std::endl;
unsigned long choiceNum;
std::cin >> choiceNum;
switch(choiceNum)
{
case 1:
{
std::string name;
std::cin.clear();
std::cin.sync();
std::cout << "please input new student's name: "<< std::endl;
std::getline(std::cin,name);
(*iter).second.m_name = name;
break;
}
case 2:
{
std::string sex;
std::cin.clear();
std::cin.sync();
std::cout << "please input correct student's sex: "<< std::endl;
std::getline(std::cin,sex);
(*iter).second.m_sex = sex;
break;
}
case 3:
{
std::string political;
std::cin.clear();
std::cin.sync();
std::cout << "please input student's new political apperance: "<< std::endl;
std::getline(std::cin,political);
(*iter).second.m_political = political;
break;
}
case 4:
{
std::string address;
std::cin.clear();
std::cin.sync();
std::cout << "please input student's new address: "<< std::endl;
std::getline(std::cin,address);
(*iter).second.m_address = address;
break;
}
case 5:
break;
default:
{
std::cerr << "Input choice number:" << choiceNum << " is wrong!" << std::endl;
break;
}
}
}
else
{
std::cout << "Id number: " << id << " doesn't exist in the system, return to the menu!" << std::endl;
}
std::cout << "modify sucessfull!" << std::endl;
}
void query()
{
unsigned long id;
std::cout << "Please input the student's id:";
std::cin >> id;
StudentCont::iterator iter = m_students.find(id);
if(iter != m_students.end())
{
std::cout << "The student's information is: "
<< (*iter).second.m_id << " "
<< (*iter).second.m_name << " "
<< (*iter).second.m_address << " "
<< (*iter).second.m_political << " "
<< (*iter).second.m_sex << std::endl;
}
else
{
std::cout << "Id number: " << id << " doesn't exist in the system, return to the menu!" << std::endl;
}
}
private:
unsigned long m_num;
StudentCont m_students;
};
void printMenu()
{
std::cout << "please input your choice number:" << std::endl;
std::cout << "--------------------------------" << std::endl;
std::cout << "-[1] Add a student. -" << std::endl;
std::cout << "-[2] Delete a student. -" << std::endl;
std::cout << "-[3] Modify a student. -" << std::endl;
std::cout << "-[4] Query students. -" << std::endl;
std::cout << "-[5] Quit! -" << std::endl;
std::cout << "--------------------------------" << std::endl;
}
void startstudentManagement()
{
std::cout << "Thank you for using this simple student management system, Welcome!" << std::endl;
printMenu();
std::auto_ptr<StudentMgr> studentMgr(new StudentMgr);
bool stop = false;
do
{
unsigned long choiceNum = 0;
std::cout << "Your choice number is: ";
std::cin.clear();
std::cin.sync();
std::cin >> choiceNum;
switch(choiceNum)
{
case 1:
studentMgr->add();
break;
case 2:
studentMgr->del();
break;
case 3:
studentMgr->mod();
break;
case 4:
studentMgr->query();
break;
case 5:
stop = true;
break;
default:
std::cerr << "The input number is none of the choice, please try again." << std::endl;
stop = true;
break;
}
}
while(!stop);
}
void stopstudentManagement()
{
std::cout << "Thank you for using this simple student management system, Bye!" << std::endl;
}
int main(void)
{
startstudentManagement();
stopstudentManagement();
return 0;
}
以上回答你满意么?