Îļþ¶ÁдÎÊÌâ 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.h--------------*/
#ifndef _C_H_
#define _C_H_
extern "C" int add(int x, int y);
#endif
/*-----------c.c--------------*/
int add(int x, int y){
return ......
´ó¼Ò°ïÎÒ¿´¿´Õâ¸ö´úÂ룬ÓкܶàÎÊÌ⣬²»ÖªµÀÔõô¸Ä£¬Ð¡µÜÔÚ´ËллÁË¡£
#include <stdio.h>
#include <conio.h>
#include <ctype.h>
float date1,date2;
char op;
void ......
±ÈÈçÊý×éarray[100]="12@good@thanks@men@";
Ôõô×ö²ÅÄܽ«array1[100]="12";array2[100]="good";array3[100]="thanks";array4="men";
ÐèÒªÔõô×öÄØ?CÀ ......
±ÈÈ磺
char c[] = "hello,world";
char *c = "hello,world";
ÔÚ·ÖÅäÄÚ´æÊ±ÊDz»Ò»ÑùµÄ°É£¿£¨·ÖÅäµ½¶Ñ»¹ÊÇջʲôµÄ£©
ËÄܸø½²½²CÖÐÄÚ´æÊÇÔõô·ÖÅäµÄ°¡£¿
»òÕ߸øÌṩ¸öÁ´½Ó
......