首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C语言
#ifndef _LIST_H_
#define _LIST_H_
typedef struct node{    //节点结构
    void *data;
    struct node *next;
}node;

typedef struct{    //链表结构
    struct node *head;
    struct node *tail;
    long len;
}List;
......................
阅读全部 | fdjiangwu 贴于 2014年11月24日 18:04     hide bbsi
http://my.bccn.net/news/
阅读全部 | Annyxu 贴于 2014年11月24日 14:23     hide bbsi
ssss
阅读全部 | Annyxu 贴于 2014年11月24日 12:21     hide bbsi
asg
阅读全部 | Annyxu 贴于 2014年11月24日 12:21     hide bbsi
#include <stdio.h>
#include <stdlib.h>
#define N 5

int main()
{
    int a[N][N],k=0,n=0,i,j,m=0;
    for(i=0; i<5; i++)
    {
        for(j=0; j<5; j++)
        {
            m++;
......................
阅读全部 | yangcaifei 贴于 2014年11月22日 14:59     hide bbsi
#include <stdio.h>
#include <string.h>

#define max 80
int main()
{
    char str[][max] = {"zhang","ziang","zaang","zbang","zcang","zdang","zeang","zfang","zgang","zhang","\0"} ;
    char temp[10];
    int i,j;
    i=0;
    while(strcmp(str[i],"\0")!=0)
    {
......................
阅读全部 | yangcaifei 贴于 2014年11月22日 14:57     hide bbsi
#include <stdio.h>

int main()
{
    int n,i,j;
    int a[100][100];
    printf("杨辉三角阶数:\n");
    scanf("%d",&n);
    printf("\n");
    for(i=1; i<n; i++)
    {
        a[0][0]=1;
......................
阅读全部 | yangcaifei 贴于 2014年11月22日 14:55     hide bbsi
#include<stdio.h>
#include<math.h>
#define N 10
int main()
{
char a, b[N], c, d, e, f, g;
  v:d = 0; printf("\n欢迎使用,请输入最大6000数推算位7素数");
scanf("%d", &c);
for (e = 7; 0 < c - e; e += 10)
{
a += 1;
/* 位7 */
......................
阅读全部 | espier 贴于 2014年11月21日 20:53     hide bbsi
//list.h
#ifndef LIST_H_
#define LIST_H_

#include <stdlib.h>

/* Define a structure for linked list elements. */
typedef struct ListElmt_
{
void *data;
struct ListElmt_ *next;
}ListElmt;
......................
阅读全部 | fdjiangwu 贴于 2014年11月19日 20:00     hide bbsi
#include <stdio.h>
#include "算法排序.cpp"

void main ()
{
SqList L;
InitList_L (L);
int n,i;
printf ("输入待排序记录的个数n: ");
scanf ("%d",&n);
for (i=1;i<=n;i++)
{
......................
阅读全部 | 薛玉敏 贴于 2014年11月13日 21:24     hide bbsi
上一页 112 113 114 115 116 117 118 119 120 121 下一页