首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include<stdio.h>
#include<malloc.h>
#include<stdlib.h>
typedef struct  ElemType{
        int num;
        int code;
        }ElemType;
typedef struct  LNode{
        ElemType  data;
        struct LNode *next;
        }LNode;

......................
阅读全部 | charlin 贴于 2012年1月5日 06:23     hide bbsi
刚开始学C语言,可能问题有点弱弱,大侠指导。
我自己编了一个小程序玩的,可是出了点问题,找不出原因:
#include<stdio.h>
void main()
{
  char a;
  int b;
  printf("do you like c?");
  scanf("%c",&a);
  b=a=='y'||'Y'?1:0;
  if(b) printf("work harder!");
  else
......................
阅读全部 | 吴小君 贴于 2012年1月3日 06:27     hide bbsi
书上让用结构体存放学生姓名 年龄 分数,然后按分数排序并输出。写到定义学生信息的时候出问题了。请知道的朋友给我一点指导。谢谢了!
下面是我写的程序
#include<stdio.h>
#include<malloc.h>
struct student    //定义一个结构体为student
{
    char name[50];//姓名
    int age;//年龄
    float score;//分数
};

void inlen(int * len0) //学生数量输入函数
......................
阅读全部 | jysliang 贴于 2012年1月1日 09:24     hide bbsi
void (*tree_get(void))(void) {
    void (*self)(void);

    self = tree_val[tree_idx];

    return self;
}
阅读全部 | dongmeteor 贴于 2012年1月1日 00:36     hide bbsi
#include"stdio.h"
#include"malloc.h"
#include"stdlib.h"
#include"string.h"
#define SIZE sizeof(struct student)
struct student{
    int Subject;
    struct student * next;
};
struct subject
{
    int subject;             //科目数,且规定一名教师教授一门课程
......................
阅读全部 | 西单小六 贴于 2011年12月30日 03:11     hide bbsi
#include <iostream>
#include <string>
#include <fstream>
using namespace std;



class tongxun//类名
{
public:
    tongxun();
    string name;//姓名
......................
阅读全部 | hao136913540 贴于 2011年12月29日 00:45     hide bbsi
#include <iostream>
#include <string>
#include <fstream>
using namespace std;



class tongxun//类名
{
public:
    tongxun();
    string name;//姓名
......................
阅读全部 | hao136913540 贴于 2011年12月29日 00:44     hide bbsi
this.cmbCourseNO.Items.Add(dc.Tables[0].Rows[j].ItemArray[i].ToString());
这是combox的控件,我想用textbox,请问怎么样才能达到同一个效果
阅读全部 | 然儿 贴于 2011年12月28日 22:39     hide bbsi
这是主函数文件 CONTACT.C

#include "common.h"

int main ()
{
char choice
阅读全部 | edward_eric 贴于 2011年12月27日 00:40     hide bbsi
这是主函数文件 CONTACT.C

#include "common.h"

int main ()
{
char choice
阅读全部 | edward_eric 贴于 2011年12月27日 00:40     hide bbsi
上一页 303 304 305 306 307 308 309 310 311 312 下一页