- 博客(18)
- 资源 (2)
- 收藏
- 关注
原创 梯形方法(数值分析 c++)
#include #include using namespace std;int main(){ double f(double X,double Y); double x,x1,y,y1,k,h=0.02; cout for(k=0;k { if(k==0) {x=0;y=1;} else { y1=y+h*f(x,y
2010-10-12 13:46:00
1855
原创 32位全彩色与24位全彩色有啥区别
真彩色是指图像中的每个像素值都分成R、G、B三个基色分量,每个基色分量直接决定其基色的强度,这样产生的色彩称为真彩色。真彩色图像是一种用三个或更多字节描述像素的计算机图像存储方式。 计算机表示颜色也是用二进制。16位色的发色总数是65536色,也就是2的16次方;24位色被称为真彩色,它可以达到人眼分辨的极限,发色数是1677万多色,也就是2的24次方。但32
2010-10-11 19:04:00
8504
原创 32位真彩色与24位真彩色区别
真彩色是指图像中的每个像素值都分成R、G、B三个基色分量,每个基色分量直接决定其基色的强度,这样产生的色彩称为真彩色。真彩色图像是一种用三个或更多字节描述像素的计算机图像存储方式。 真彩色-表示方法 计算机表示颜色也是用二进制。16位色的发色总数是65536色,也就是2的16次方;24位色被称为真彩色,它可以达到人眼分辨的极限,发色数是1677万多
2010-10-11 17:40:00
19693
原创 32位全彩色和24位全彩色有啥区别
32位真彩其实是不准确的说法,严格的说,只有24位真彩色,颜色数为2的24次方也就是1677万色左右,由于这已经是人眼能分辨的颜色极限,所以叫做真彩色。32位色是和24位真彩色颜色数相同,只不过增加了256级灰度,而36位色和24位真彩色的颜色数也是相同的,只不过灰度增加到512级。
2010-10-10 21:35:00
4739
原创 雅可比迭代法(c++ 数值分析)
#include #include #include using namespace std;const int n=4;int main(){ float a[n][n],b[n]; int i,j; void yacobi(float a[][n],float b[n]); //声明 cout for(i=0;i for
2010-10-10 11:32:00
9899
3
原创 超松弛法(C++ 数值分析)
#include #include #include using namespace std;const int n=4;const double w=1.15; //w不能定义为float类型int main(){ float a[n][n],b[n]; int i,j; void gauss(float
2010-10-09 14:19:00
995
原创 超松弛法(C++ 数值分析)
#include #include #include using namespace std;const int n=4;const double w=1.15; //w不能定义为float类型int main(){ float a[n][n],b[n]; int i,j; void gauss(float
2010-10-09 14:19:00
1434
1
原创 超松弛法(C++ 数值分析)
#include #include #include using namespace std;const int n=4;const double w=1.15; //w不能定义为float类型int main(){ float a[n][n],b[n]; int i,j; void gauss(float
2010-10-09 14:18:00
1126
原创 二叉树(数据结构 c++)
class BTree;class BTnode{public: friend void preorder1(const BTree &b); //先序非递归访问 friend void preorder(const BTree &b); //先序非递归访问 friend void inorder(const BTree &b);
2010-10-08 22:22:00
1355
2
原创 欧拉折线法求解线性方程组(c++ 数值分析)
#include #include using namespace std;int main(){ double f(double X,double Y); double x,y,k,h=0.02; cout for(k=0;k { if(k==0) {x=0;y=1;} else {y=y+h*f(x,y);x+=h;} cout
2010-10-08 12:53:00
2531
2
原创 链表的相关操作查找插入删除(c++ 数据结构)
#include #include #includeusing namespace std;typedef struct {char name[20]; int num; float score[3];}stu;int main(){void intput(stu array[],int n); void display(stu array[],int
2010-10-07 19:46:00
928
1
原创 用平方根法解线性方程(c++)
#include #include #include int k;const int n=4;using namespace std;double q_s1(double array[][n],int i,int j);double q_s2(double array[][n],int j);double q_s3(double array[][n],double
2010-10-07 10:13:00
1756
1
原创 输入4个数字从小到大输出(c++)
#includeusing namespace std;int main(){int t,a,b,c,d; coutcin>>a>>b>>c>>d;coutif(a>b){t=a;a=b;b=t;}if(a>c){t=a;a=c;c=t;}if(a>d){t=a;a=d;d=t;}if(b>c){t=b;b=c;c=t;}if(b>d)
2010-10-06 10:03:00
5344
14
原创 用选择法对十个整数排序
#includeusing namespace std;int main(){int min ,i,j,temp,a[11];coutfor (i=1;i {cout cin>>a[i];} coutfor (i=1;icoutcoutfor (i=1;i{min=i;for(j=i+1;jif(a[min]>a[j]) min=j;
2010-10-05 11:04:00
2149
1
原创 龙贝格法求解线性方程组(c++)
#include #include using namespace std;int main(){ double f(double x); int k,i,a=0,b=1; double sum,cha,t1,t2,s1,s2,c1,c2,r1,r2; t1=(b-a)*(f(a)/2+f(b)/2); for(k=1;;k++) { sum=0
2010-10-04 10:48:00
793
2
原创 用弦截法求方程的解
#include #include #include double f(double x);using namespace std;int main(){ double x0=0.5,x1=1,x2; cout cout for(;fabs(x1-x0)>=0.000001;) { x2=x1-f(x1)*(x1-x0)/(f(x1)-f(x0))
2010-10-03 09:54:00
1077
3
原创 求1到20的阶乘和(c++)
#include using namespace std;int main(){float s=0,t=1;int n;for(n=1;n{ t=t*n; //qiu n de jie cheng s=s+t; //jiang ge xiang lei jia } coutreturn 0;}
2010-10-02 11:39:00
8202
4
c++弦截法求解方程组代码实现
2010-10-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人