- 博客(1)
- 资源 (2)
- 收藏
- 关注
原创 完成一个一对多关系的数据输入窗口,单选删除还有问题,待改进
Customizing actions --> addTitle addContent doDelete
2015-06-14 23:16:44
408
上班族必懂的电脑技能
一、误删资料恢复
一不小心删错了,还把回收站清空了,咋办啊?只要三步,你就能找回你删掉并清空回收站的东西。
步骤:
1、单击“开始——运行,然后输入regedit (打开注册表)
2、依次展开:HEKEY——LOCAL——MACHIME/SOFTWARE/microsoft/WINDOWS/CURRENTVERSION/EXPLORER/DESKTOP/NAMESPACE 在左边空白外点击“新建”,选择:“主键”,把它命名为“645FFO40——5081——101B——9F08——00AA002F954E”再把右边的“默认”的主键的键值设为“回收站”,然后退出注册表。就OK啦。
3、要重启计算机。
只要机器没有运行过磁盘整理。系统完好.任何时候的文件都可以找回来。也许你已经在Excel中完成过上百张财务报表,也许你已利用Excel函数实现过上千次的复杂运算,也许你认为Excel也不过如此,甚至了无新意。但我们平日里无数次重复的得心应手的使用方法只不过是Excel全部技巧的百分之一。本专题从Excel中的一些鲜为人知的技巧入手,领略一下关于Excel的别样风情。
2012-09-29
c++课后习题
第1章 认识C++的对象 习题答案
教材:C++程序设计[2008年版]--4737作者:刘振安 出版社:机械工业出版社
习题1
一、单项选择题
BCC
二、填空题
1.cin cout 2.new delete 3.int *p=new int;
三、改错题
1.
//错误:
//语句int& ref=num;中使用标识符num之前没有对其进行声明
//在C++中,标识符应该先声明,后使用
//修改后的代码如下:(注释是对原题目错误行的说明,不是程序所必需的)
#include<iostream>
using namespace std;
void main(){
int num=0;//标识符应该先声明,后使用
int& ref=num;
ref=ref+100;
num=num+50;
}
2.
//错误1:
//const int *p=&x;中的*p整体是const int常整型
//因此*p整体不能作为左值使用
//错误2:
//语句后面不能缺少分号(;)分隔
//修改后的代码如下:(注释是对原题目错误行的说明,不是程序所必需的)
#include<iostream>
using namespace std;
void main(){
int x=58,y=98;
const int *p=&x;
y=*p;
//*p=65; error *p整体不能作为左值使用
p=&y;//error p=&y后面缺少分号
}
3.
//错误:
// int * const p=&x;中的p是const(常)型
//因此p不能作为左值使用
//修改后的代码如下:(注释是对原题目错误行的说明,不是程序所必需的)
#include<iostream>
using namespace std;
void main(){
int x=58,y=98,z=55;
int * const p=&x;
*p=65;
//p=&y; error p不能作为左值使用
z=*p;
}
四、编程题
1.
#include<iostream>
#include<iomanip>
using namespace std;
void main(){
int i(65),j=66;
cout<<i<<" "<<(char)i<<endl;
cout<<j<<" "<<(char)j<<endl;
}
2.
#include<iostream>
using namespace std;
void main(){
int *p;
p=new int[100] ;
if(p==0)
cout<<"分配失败!"<<endl;
else
cout<<"分配成功!"<<endl;
delete []p;
}
3.
#include<iostream>
using namespace std;
void main(){
float *p=new float[15];
int i;
for(i=0;i<15;i++)
cin>>p[i];
float sum=0,min=p[0];
for(i=0;i<15;i++){
sum=sum+p[i];
if(min>p[i]) min=p[i];
}
cout<<"最小值:"<<min<<endl;
cout<<"和:"<<sum<<endl;
}
4.
#include<iostream>
#include<algorithm>
using namespace std;
void main(){
int a[]={1,2,3,4,5,6,7,8};
int *p=find(a,a+8,4);
cout<<*p<<" "<<p<<endl;
int b[8];
copy(a,a+8,b);
reverse(a,a+8);
p=find(a,a+8,4);
cout<<*p<<" "<<p<<endl;
cout<<"a:"<<endl;
copy(a,a+8,ostream_iterator<int>(cout," "));
cout<<endl<<"b:"<<endl;
copy(b,b+8,ostream_iterator<int>(cout," "));
cout<<endl;
}
2012-09-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人