易截截图软件、单文件、免安装、纯绿色、仅160KB

两个矩阵相乘并输出的C程序

[root@ocsser file]# cat array-05.c
//this is a program for two juzheng xiangcheng.
#include <stdio.h>
int main(){
        int i,j,m,n;
        int g,k,f;
        int c[5][6];
        int a[5][4]={1,5,7,3,
                3,6,3,9,
                1,2,8,7,
                0,3,1,9,
                3,2,5,4 };
        int b[4][6]={3,9,1,4,1,4,
                5,6,7,9,0,3,
                3,2,7,2,5,6,
                9,7,4,7,8,0};
        printf("---------------------------\n");
        printf("array a as following:\n");
        for(i=0;i<4;i++){
                printf("\n");
                for (j=0;j<5;j++)
                        printf("%d ",a[i][j]);
        }
        printf("\n---------------------------\n");
        printf("


相关文档:

C/C++面试题六(经典) 【转】

1.求下面函数的返回值(微软)
int func(x)
{
    int countx = 0;
    while(x)
    {
          countx ++;
          x = x&(x-1);
     } ......

C/C++中typedef的用法,告诉你不一样的typedef


<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@宋体" ......

C程序使用不同函数调用约定调用汇编子过程

如转载,请注明出处:http://blog.csdn.net/zhangyang0402/archive/2010/05/01/5549266.aspx
 
开发工具:VC ++ 6.0  MASM32
 
一、__cdecl调用方式
 
1.  在VC中新建Win32 Console Application, TestASM
 
2.  新建test.c
#include<stdio.h>
extern void swap(int * ......

c/c++类型

1.分类
 内部类型 和用户定义类型
2.
 整形:bool ,字符型,整形
   true  1                   flase 0
   非零 true              & ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号