[C/OC的那点事儿]Objective-C实现学生成绩管理系统(7)

来源:未知 责任编辑:责任编辑 发表时间:2013-12-18 11:33 点击:

p>              

p>            NSLog(@"请进行功能选择:");  

p>             NSLog(@"1:增加         2:打印");  

p>             NSLog(@"3:删除         4:查找");  

p>             NSLog(@"5:写入         6:读出");  

p>             NSLog(@"7:统计         8:排序");  

p>             NSLog(@"9:修改         0:退出");  

p>            int c;  

p>            scanf("%d",&c);  

p>              

p>            switch (c) {  

p>                case 1:  

p>                {  

p>                    Student *stuTemp = [[Student alloc]init];  

p>                    [stuTemp inputStudent];  

p>                    [class addStudentArray:stuTemp];  

p>                      

p>                    break;  

p>                }  

p>                case 2:  

p>                    [class printStudentArray];  

p>                    break;  

p>                case 3:  

p>                    [class removeStudentArrayByStuID];  

p>                    break;  

p>                case 4:  

p>                    [class findStudentByStuID];  

p>                    break;  

p>                case 5:  

p>                    [class writeToFile];  

p>                    break;  

p>                case 6:  

p>                    [class readFromFile];  
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
用户名: 验证码:点击我更换图片
最新评论 更多>>

推荐热点

  • cocos2d-x学习笔记(19)--label 、label atlas
  • cocos2d-x学习笔记(23)--地图的使用3--CCTMXLayer
  • Cocos2d-x学习(一):HelloWorld
  • cocos2dx在xcode下开发,编译到android上(2)
  • cocos2d 设置屏幕默认方向
  • cocos2d-x学习笔记(22)--地图的使用2(TMX) --Z-Order、AnchorPoi
  • Cocos2d-x 2.0 之 Actions “三板斧” 之一
  • cocos2d-x学习笔记(18)--游戏打包(windows平台)
  • cocos2d-x学习笔记(16)--spritesheet(精灵表单)
网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
Copyright © 2008-2015 计算机技术学习交流网. 版权所有

豫ICP备11007008号-1