-
iSecurityCEBBANK
(付费开通帐号) ,上传完成后请等待几分钟到一个小时,等审核人员审核完成后才能开通下载,超过一个小时未开通的请在留言薄里留言 (上传失败怎么办)((pay to open the account), please wait a few minutes to an hour after the completion of the upload, wait for the auditor to review the completion of the download, more than one hour is not open in the message book, please leave a message (how to upload failure))
- 2018-05-19 22:19:05下载
- 积分:1
-
one
实验1 C++基础编程
实验目的
? 掌握VC++ 6.0进行程序设计的基本步骤。
? 学会在VC++ 6.0环境下进行简单C++程序设计。
? 掌握new和delete的用法。
? 熟练使用string类处理字符串。
? 重点掌握函数的参数传递方式、函数重载、函数默认值的实现。
实验学时
本次实验需要2个学时。
实验要求
? 实验上机之前,根据实验内容要求,自行设计编写程序,完成预习报告。
? 实验上机时调试并修正程序。
? 当次上机结束前分析错误原因并给出实验结论,提交实验报告。
实验内容
1.基础部分
(1)动态分配保存10个成绩数组的存储空间,并对成绩进行输入,求出最高分并输出,用new和delete。
{
double*pd=new double [10];
double k;
for(int i=0;i<10;i++)
cin>>pd[i];
for(int j=0;j<9;j++)
{
if(pd[j]>pd[j+1])
{
k=pd[j];
pd[j]=pd[j+1];
pd[j+1]=k;
}
if(j==8)
cout<<pd[j+1]<<endl;
}
system("pause");
return 0;
}
(2).定义函数,实现两个变量的交换(用传递指针和传递引用的方式分别实现),并对比区别。
(4).上述第(3)题,如果希望给形参默认值,如a=1,b=2,c=3,该如何修改和如何调用?(Experiment 1 C++ Basic Programming Experimental purpose Grasp the basic steps of VC++ 6.0 programming. Learn to design simple C++ programs in the environment of VC++ 6.0. Master the usage of new and delete. Proficiency in string class processing. Emphasis is laid on how to transfer function parameters, how to overload function and how to realize default value of function. Experimental hours This experiment needs two hours. Experimental requirements Before the experiment is put on the computer, according to the requirement of the experiment content, the program is designed and written by oneself, and the preview report is completed. Debug and correct the program when the experiment is on the computer.)
- 2019-05-01 14:56:42下载
- 积分:1
-
模拟串口
实现了STC15F204EA单片机的串口模拟。(The serial port simulation of STC15F204EA MCU is realized.)
- 2018-12-05 15:04:03下载
- 积分:1
-
Windows-Sockets
本书主要介绍了如何用API函数进行网络间通信(The book introduces how to use the API function communication networks)
- 2013-03-08 23:59:51下载
- 积分:1
-
DS18B20
DS18B20温度测量,上下限温度设定测量(超出报警)(Upper and lower limits of temperature measurement (in excess of the police))
- 2009-04-15 10:51:03下载
- 积分:1
-
r3network
在ring3下能开启、禁用网卡的示例程序。很好很强大。。。-_-#(Ring3 under the open, disable the network card of the sample programs. Very good very strong. . .-_-#)
- 2008-05-19 18:08:32下载
- 积分:1
-
01379999
一套程序界面,包括对话框中使用分隔条,自绘菜单等()
- 2018-02-22 18:54:23下载
- 积分:1
-
贪吃蛇游戏
是的,又是蛇的游戏,如果你不无聊呢。你一定见过很多不同的语言创建蛇游戏。但你可曾见过一条蛇游戏,是可控的都是由键盘和操纵杆?没错,这就是蛇游戏之间的区别
- 2022-03-22 14:40:26下载
- 积分:1
-
VRP
这是一个用C++编写的vrp问题的源码,很适合初学者。(This is a C++ Prepared vrp source issues, it is suitable for beginners.)
- 2008-12-14 00:01:32下载
- 积分:1
-
chap442425242
删除IE相关历史记录【chap4DelHistory】
将应用程序加入到IE工具栏【chap4AddToToolBar】
超级链接的实现【chap4HyperLink】(delete IE related historical record [ chap4 DelHistory-- will be applied to procedures to the IE toolbars [ chap4 AddToToolBar hyperlinks-- the realization [ chap 4 -- HyperLink)
- 2006-11-26 15:11:45下载
- 积分:1