-
大小: 6.73MB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-11-12
- 語言: 其他
- 標(biāo)簽:
資源簡介
大連理工大學(xué)數(shù)據(jù)結(jié)構(gòu)第一次上機(jī)答案綠色完整版(包含數(shù)據(jù)結(jié)構(gòu)80頁課后作業(yè)2~8題的代碼)

代碼片段和文件信息
#include
using?namespace?std;
class?Array
{
private:
int?*array;
int?maxsize;
int?position;
int?curlen;
public:
Array(const?int?size)
{
maxsize=size;
array=new?int[maxsize];
curlen?=0;
position=0;
}
void?put_in()
{
int?ai=curlen;cin>>a;
while((a!=-1)&&(curlen {
array[i]=a;
cin>>a;
i++;
curlen++;
}
cout<<“succeed?to?put?in“< }
~Array()
{
delete?[]?array;
}
int?del(const?int?n) //下標(biāo)刪除
{
if(n {
int?temp=array[n];
int?i;
for(i=n;i {
array[i]=array[i+1];
}
curlen--;
cout<<“delete“< return?temp;
}
else
{
cout<<“fail“< return?0;?
}
}
int?min() //最小值返回下標(biāo)
{
int?a=array[0]in=0;
for(i=1;i {
if(array[i] {
a=array[i];
n=i;
}
}
cout<<“the?min?is“< return?n;
}
void?show()
{
int?i;
for(i=0;i {
cout< }
}
};
void?main()
{
int?value;
Array?a1(10);
a1.put_in();
value=a1.del(a1.min());
a1.show();
cout< }
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1195??2013-09-14?18:51??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3\3.cpp
?????文件?????255935??2013-09-14?18:35??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3\Debug\3.obj
?????文件?????548945??2013-09-14?18:35??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3\Debug\problem3.exe
?????文件?????786996??2013-09-14?18:35??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3\Debug\problem3.ilk
?????文件????1997428??2013-09-14?18:22??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3\Debug\problem3.pch
?????文件????1098752??2013-09-14?18:35??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3\Debug\problem3.pdb
?????文件??????74752??2013-09-14?18:35??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3\Debug\vc60.idb
?????文件?????110592??2013-09-14?18:35??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3\Debug\vc60.pdb
?????文件???????4301??2013-09-12?20:04??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3\problem3.dsp
?????文件????????890??2013-09-14?18:35??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3\problem3.plg
?????文件???????1404??2013-09-14?18:54??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_2\2.cpp
?????文件?????254615??2013-09-14?18:53??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_2\Debug\2.obj
?????文件?????548949??2013-09-14?18:53??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_2\Debug\problem3_2.exe
?????文件?????786492??2013-09-14?18:53??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_2\Debug\problem3_2.ilk
?????文件????1997432??2013-09-14?18:51??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_2\Debug\problem3_2.pch
?????文件????1098752??2013-09-14?18:53??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_2\Debug\problem3_2.pdb
?????文件??????74752??2013-09-14?18:53??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_2\Debug\vc60.idb
?????文件?????110592??2013-09-14?18:53??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_2\Debug\vc60.pdb
?????文件???????4323??2013-09-14?18:54??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_2\problem3_2.dsp
?????文件???????1297??2013-09-14?18:53??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_2\problem3_2.plg
?????文件???????1405??2013-09-14?19:00??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_3\3.cpp
?????文件?????254463??2013-09-14?18:59??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_3\Debug\3.obj
?????文件?????548949??2013-09-14?18:59??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_3\Debug\problem3_3.exe
?????文件?????786308??2013-09-14?18:59??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_3\Debug\problem3_3.ilk
?????文件????1997432??2013-09-14?18:59??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_3\Debug\problem3_3.pch
?????文件????1098752??2013-09-14?18:59??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_3\Debug\problem3_3.pdb
?????文件??????74752??2013-09-14?18:59??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_3\Debug\vc60.idb
?????文件?????110592??2013-09-14?18:59??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_3\Debug\vc60.pdb
?????文件???????4323??2013-09-14?19:00??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_3\problem3_3.dsp
?????文件????????899??2013-09-14?18:59??數(shù)據(jù)結(jié)構(gòu)第一次作業(yè)\problem3_3\problem3_3.plg
............此處省略73個文件信息
- 上一篇:LTE整體架構(gòu)
- 下一篇:hdf5-1.8.11.tar.gz
評論
共有 條評論