文档介绍:如何写 vc 实验报告
篇一: VC++实验报告 (2)
VC++实验报告
班号: 0904101
学号: 090410123
姓名:仲维祎
实验一 VC++开发环境的熟悉和 C+;
all=math+cpp+eng;
return all;
};
void InfStud::print
{
cout<<"the id is "<<" "<<id<<" "
<<"the name is"<<" "<<name<<" "
<<"the age is "<<" "<<age<<" "
<<"the cpp is"<<" "<<cpp<<" "
<<"the eng is"<<" "<<eng<<" "
<<"the math is"<<" "<<math<<" "
<<"the all is"<<" "<<all<<" "
<<"the avg is"<<" "<<all/3<<endl;
};
void main
{
InfStud student[5];
int i=0,j;
for(i;i<=4;i++)
{ cout<<"type the id name age c++ eng math in"<>student[i].id>>student[i].name>>student[i].age>>student[i].cpp>>st
udent[i].eng>>student[i].math; }
篇二: VC实验报告
实验报告
班级:网络 Z091
学号: 094552
姓名:李丹
一、
1.
2.
二、
1.
2.
三、
实验目的 掌握数据库的基本知识、 ODBC程序设计 掌握列表框和组合框控件 实验内容 在 VC++ 数据库应用程序基本设计和购物表设计 编程序 数据库
步骤:设置 ->控制面板 ->管理工具 ->数据源 ->添加 ->MicroSoft Access Driver(*mdb) 选择(刚建好的数据库)、数据源名 (comp)
定义的变量: CCompanySet m_set;(CCompanySet自己添加的类,
基类为 CRecordSet)CListCtrl m_list;
CString m_chax;
⑴初始化:
void CCompanyView::OnInitialUpdate
{
(0,"num");
(1,"sex");
(2,"age");
(3,"wage");
(0,100);
(1,100);
(2,100);
(3,100);
CString sql="select * from comp";
(AFX_DB_USE_DEFAULT_TYPE,sql);//打开记录集 int i=0;
while(!)
{
(i,);
(i,1,);
CString str;
("%d",);
(i,2,str);
(i,3,);
;
i++;
}
;
}
⑵“添加”调出新对话框 (IDD_DIALOG1)
创建一个新类 C