Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Îļþ¶ÁдÎÊÌâ c¸ßÊÖÇë½ø

ÏÂÃæÊÇÎҵĴúÂë ´ÓÄÚ´æÐ´ÈëÎļþÕýÈ· µ«´ÓÎļþ¶ÁÈëÄÚ´æ¶¼ÊÇÂÒÂë ¶øÇÒ³ÌÐò±ÀÀ£ Çëc¸ßÊÖÖ¸µã
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct inf
{
      char name[10];
      char address[20];
      long number;
      long telnumber;
      struct inf *next;
};
struct inf *input(struct inf *head)
{
      struct inf *p,*q;
      int i,population;
      if(head!=NULL)
      {
        p=q=head;
        while(p!=NULL)
        {
        q=p;
        p=p->next;
        }
      }
      printf("ÇëÊäÈëÒªÊäÈëµÄÈËÊý!\n");
      scanf("%d",&population);
      for(i=0;i <population;i++)
      {
          p=(struct inf *)malloc(sizeof(struct inf));
          printf("ÐÕÃû: ");
          scanf("%s",p->name);
          printf("ͨѶµØÖ·: ");
&


Ïà¹ØÎÊ´ð£º

ѧϰÌÖÂÛ C/C++ QQȺ - C/C++ / ·Ç¼¼ÊõÇø

QQȺ 29152388
ÓÑÇéUP

°ï¶¥

up

°ïup

up Ö§³Ö£¡

up jf

...ÄѵÀÓзÖ..?

up up up
Ï£ÍûÓеüӷ֣¬¹þ¹þ¡£

Ö§³Ö£¬ÎÒ¼ÓÁË£¬Ï£ÍûÂ¥Ö÷ÄܼÓÎÒ£¬¹²Í¬Ñ§Ï°¹þ

¼ÓÁË¡£

¶¥ÉÏ£¬Ã¿ÌìÊÕ»ñÒ»µã£¬Ö§³Ö ......

mysql C APIÇóÖú

дÁËÒ»¶Î³ÌÐò
C/C++ code:

..
MYSQL* mysql£»
MYSQL_RES* res;
//ÎÒÏëʵÏÖÒ»¸ö²é¿´ÓÐûÓÐ mysql½á¹¹£¬Èç¹ûûÓоÍÁ¬½Ó¡£
void connect()
{
mysql_init(mysql);
mysql_realconnect(. ......

Á½¸öCÎļþµÄÎÊÌâ

ÒÔǰÔÚVCÀïÃæ½¨Ò»¸ö¹¤³Ì£¬¶¼Ö»ÓÃÒ»¸ö .c Îļþ£¬×òÌìÔÚÒ»¸ö¹¤³ÌÀïÓÃÁËÁ½¸ö .cÎļþÁË£¬Óöµ½ÎÊÌâÁË£¬Çë´ó¼ÒÖ¸µã¡£±ÈÈ磺
File1.c Fil ......

×£¸÷λCÓѹúÇì¿ìÀÖ,ÖÐÇï¿ìÀÖ

Ï£Íû׿¹ú¸ü¼Ó·±ÈÙ²ýÊ¢

ÎÒºÍÎÒµÄ׿¹ú
Ò»¿ÌÒ²²»ÄÜ·Ö¸î
ÎÞÂÛÎÒ×ßµ½ÄÄÀï
¶¼Á÷³öÒ»Ê×ÔÞ¸è
ÎҸ質ÿһ×ù¸ßɽ
ÎҸ質ÿһÌõºÓ
ôÁôÁ´¶ÑÌСС´åÂä
·ÉÏÒ»µÀÕÞ
À²~~~À²~~~
ÄãÓÃÄÇÄãĸÇ×µÄΠ......

CÇóÖú£º·Ö¸îÊý×é

±ÈÈçÊý×éarray[100]="12@good@thanks@men@";
Ôõô×ö²ÅÄܽ«array1[100]="12";array2[100]="good";array3[100]="thanks";array4="men";

ÐèÒªÔõô×öÄØ?CÀ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ