矩阵代码大全(矩阵的逆、乘法、加法、行列式)(c++程序)(12)

2020-12-06 12:32

矩阵的相关操作

i=i+1;

else

cout<<"enter this data again:";

}

cout<<endl;

for(i=0;i<n;i++)

cout<<a[i]<<" ";

cout<<endl;

while(flag)

{

cout<<"please enter the number you look for :"<<endl; cin>>r;

sign=false;

top=n-1;

bott=0;

if(r<a[0]||r>a[n-1])

local=-1;

while(!sign&&bott<=top)

{ mid=(top+bott)/2;

if(a[mid]==r)

{ local=mid;

cout<<"the number is find:"<<"it is the "<<local+1<<" order:"<<a[mid]<<endl;

sign=true;

}

else if(r<=a[mid])

top=mid-1;

else

bott=mid+1;

}

if(!sign||local==-1)

cout<<"the number didn't find"<<endl;

cout<<"countin yes or not,input y or n"<<endl;

cin>>p;

if(p=='n'||p=='N')

flag=false;

}

return 0;

}

"<<"number of the


矩阵代码大全(矩阵的逆、乘法、加法、行列式)(c++程序)(12).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:03德尔菲法1

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: