Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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++ÖÐ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³ÌÐò£©


#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
#include<windows.h>
#include<malloc.h>
#include<math.h>
typedef struct worker

 int num; //±àºÅ
 char name[15]; //ÐÕÃû
 char zhicheng[15];& ......

cÊäÈëÊä³ö


¸ñʽÊä³ö:
printf(¸ñʽ¿ØÖÆ, Êä³ö±íÁÐ);
%d Ê®½øÖÆÊý  %md mΪָ¶¨µÄ¿í¶È ÈôÊý¾ÝλÊýСÓÚm,Ôò×ó¶Ë²¹ÒÔ¿Õ¸ñ;Èô´óÓÚm,Ôò°´Êµ¼ÊλÊýÊä³ö
%ld ³¤ÕûÐÍÊý¾Ý  %mld Ö¸¶¨×ֶοí¶È
%o °Ë½øÖÆÕûÊýÐÎʽ  %mo
%x Ê®Áù½øÖÆÕûÊýÐÎʽ  %mx
%u unsignedÐÍÊý¾Ý,ËüÒ²¿ÉÓÃ%o»ò%x¸ñʽÊä³ö
%c Ò»¸ö×Ö·û   ......

c/c++ÀàÐÍ

1.·ÖÀà
 ÄÚ²¿ÀàÐÍ ºÍÓû§¶¨ÒåÀàÐÍ
2.
 ÕûÐΣºbool ,×Ö·ûÐÍ£¬ÕûÐÎ
   true  1                   flase 0
   ·ÇÁã true              & ......

C/C++µ¥Ôª²âÀíÂÛ¾«Òª£¨Ê®Ò»£©

µÚ4Õ ÔõÑù²ÅÄܱ£Ö¤²âÊÔЧ¹û£¿
4.1 ºâÁ¿²âÊÔЧ¹ûµÄ»ù±¾Ö¸±ê£º°×ºÐ¸²¸Ç
    ºâÁ¿²âÊÔЧ¹ûµÄ»ù±¾Ö¸±êÊǰ׺и²¸ÇÂÊ£¬¼´Í³¼Æ²âÊÔ¶Ô´úÂëÂß¼­µ¥Î»µÄ¸²¸Ç×´¿ö¡£´úÂëµÄÂß¼­µ¥Î»Ö÷ÒªÓУºÓï¾ä(¿é)£¬Ìõ¼þ¡¢Åж¨¡¢·ÖÖ§¡¢Â·¾¶¡£³£Óõİ׺и²¸ÇÓÐÁùÖÖ£ºÓï¾ä¸²¸Ç¡¢Ìõ¼þ¸²¸Ç¡¢·ÖÖ§¸²¸Ç¡¢Åж¨Ìõ¼þ¸²¸Ç¡¢ÐÞÕýÅж¨Ìõ¼þ¸²¸Ç¡¢º ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ