摘要: 如何使用plot画出不同长度矩阵:1.首先将元素组补齐,VarName1( xxx,xx )=0,将VarName1补齐成一个xxx*xx的数组;2.使用条件画图 plot( VarName1 (VarName1~=0) , VarName2 (VarName1~=0) ) 画出VarName1不等... 阅读全文
posted @ 2015-11-27 12:55 Yx37412 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 void main() 4 { 5 void read(int* m,int* n); 6 int* ptable(int m,int n); 7 int* math(int m1,int n1,int n2,int* num... 阅读全文
posted @ 2015-11-20 20:31 Yx37412 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 void main() 3 { 4 void readi(int* num_small,int* num_big,int* num_1,int* num_2); 5 int stand(int num_small,int num_big); 6 i... 阅读全文
posted @ 2015-11-18 16:10 Yx37412 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 void main() 5 { 6 int readi(); 7 char* readc(); 8 void write(char* read,int i); 9 10 int i=0;11 char* ... 阅读全文
posted @ 2015-11-17 21:08 Yx37412 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 void main() 3 { 4 int testofstatic(); 5 int a=0; 6 a=testofstatic(); 7 printf("%d\n",a); 8 a=testofstatic(); 9 p... 阅读全文
posted @ 2015-11-17 17:09 Yx37412 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 #define INI_LEN 20 5 #define INC 10 6 char* get_input(); 7 void output(char* array); 8 int main(){ 9 printf("请输入字符串,双... 阅读全文
posted @ 2015-11-12 17:56 Yx37412 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 读取屏幕输入的前十个字符 1 #include 2 void main() 3 { 4 char a[11]={0}; 5 char b; 6 int i=0; 7 for(i=0;i<10;i++) 8 { 9 b=getchar();10 if(b!='\n'... 阅读全文
posted @ 2015-11-11 18:50 Yx37412 阅读(159) 评论(0) 推荐(0) 编辑