自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 矩阵相乘及解释——C

int main(){ int i,j,k,s=0; int array1[4][4]={0}; int array2[4][4]={0}; printf("请输入第一个矩阵中的元素。\n"); for(i=0;i<4;i++) { for(j=0;j<4;j++) { printf("array1[%d][%d]=",i,j); scanf("%d",&array1[i][j]); .

2020-05-19 09:38:30 468

原创 求矩阵行列式的值(方阵)——C

#include <stdio.h>#include <stdlib.h>#include <math.h>#define MAX 100//宏定义,MAX的值为100,而且必须大写double D(double arr[][MAX],int n);//定义一个函数来求子矩阵行列式的值;//二位数组定义必须要有列的初始化,行可以空着void Display(double arr[][MAX],int n);//输出矩阵的函数int main().

2020-05-17 11:14:45 5184

原创 PTA 6-2 多项式求值(C)

题目链接题目代码:#include <stdio.h>/*注意没给math.h头文件,不能用求幂次函数*/#define MAXN 10double f( int n, double a[], double x );int main(){ int n, i; double a[MAXN], x; scanf("%d %lf", &n, &x); for ( i=0; i<=n; i++ ) .

2020-05-15 11:19:13 261

原创 PTA 6-9 统计各位数字

题目链接题目代码:#include <stdio.h>int Count_Digit ( const int N, const int D );int main(){ int N, D; scanf("%d %d", &N, &D); printf("%d\n", Count_Digit(N, D)); return 0;}/* 你的代码将被嵌在这里 */按照6-7题目的做法:注意:要考虑到N的...

2020-05-15 11:18:44 398

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除