首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include<stdio.h>
#include<string.h>
#define N 3   //酒杯数
#define MAX_SIZES 100  //状态表中的最大状态数


 typedef struct node //边节点
{
    int adjvex;   //邻接点的位置
    node*next;  //指向下一个节点
}ARCNODE;  //邻接表中的结点类型

......................
阅读全部 | WS丶libre 贴于 2017年5月4日 10:39     hide bbsi
#include <stdio.h>
struct Student
 {
  int num;
  char name[20];
  float score[3];
  float aver;
 };//这里要分号的  把这个结构体放到main函数之前
int main()
{
 void input(Student stu[]);//这3行放到结构体Student后面  且可以不加关键词struct 
 Student max(Student stu[]);
......................
阅读全部 | hhhqpalzm 贴于 2017年4月24日 10:35     hide bbsi
#include <stdio.h>
#define MONTHS 12
#define YEARS  5

int main(void)
{
const float rain[YEARS][MONTHS]=
{
{4.3, 4.3, 4.3, 3.0, 2.0, 1.2, 0.2, 0.2, 0.4, 2.4, 3.5, 6.6},
{8.5, 8.2, 1.2, 1.6, 2.4, 0.0, 5.2, 0.9, 0.3, 0.9, 1.4, 7.3},
{9.1, 8.5, 6.7, 4.3, 2.1, 0.8, 0.2, 0.2, 1.1, 2.3, 6.1, 8.4},
{7.2, 9.9, 8.4, 3.3, 1.2, 0.8, 0.4, 0.0, 0.6, 1.7, 4.3, 6.2},
......................
阅读全部 | 潇湘夜雨001 贴于 2017年4月22日 20:52     hide bbsi
#include <stdio.h>
#include <stdlib.h>


#define N 4


struct minneed
{
char name[20];
char sex;
unsigned age;
......................
阅读全部 | 坏习惯 贴于 2017年4月21日 22:44     hide bbsi
1.水仙花数
#include<stdio.h>
int main()
{
int i,a,b,c;
for(i=100;i<1000;i++)
{
a=i/100;
b=(i/10)%10;
c=i%10;
if((a*a*a+b*b*b+c*c*c)==i)
printf("%d\n",i);
......................
阅读全部 | t18224268817 贴于 2017年4月21日 14:31     hide bbsi
#include<stdio.h>
int main()
{   
    int n,i,count=0;
    int t=0;
    int aver;
    int a[10000];
    scanf("%d",&n);
    for(i=0;i<n;i++)
    {
        scanf("%d",&a[i]);
        t=t+a[i];
......................
阅读全部 | 杨萍520 贴于 2017年4月17日 16:19     hide bbsi
#include <reg52.h>
#include <string.h>
sbit RS = P1^0; 
sbit RW = P1^1;
sbit EN = P1^2;

sbit BUSY = P0^7;
typedef unsigned char uint8;
typedef unsigned int uint16;
char string[]="guoyingjie";
char neirong[]="151307191";
void wait()
......................
阅读全部 | gyjgyjgyj 贴于 2017年4月11日 09:26     hide bbsi
#include <reg52.h>
#include <string.h>
sbit RS = P1^0; 
sbit RW = P1^1;
sbit EN = P1^2;

sbit BUSY = P0^7;
typedef unsigned char uint8;
typedef unsigned int uint16;
char string[]="guoyingjie";
char neirong[]="151307191";
void wait()
......................
阅读全部 | gyjgyjgyj 贴于 2017年4月11日 09:25     hide bbsi
#include<stdio.h>
#include<stdlib.h>

#define WEIGHT   3.0e-23
#define CHAGE     950

int main()
{

float k;
printf("Please enter:");
scanf("%f,&k");
......................
阅读全部 | gyjgyjgyj 贴于 2017年4月11日 09:02     hide bbsi
SqlConnection conn = new                        SqlConnection("server=.;database=RestOL;uid=sa;pwd=123456;");
            conn.Open();
            SqlCommand sql = new SqlCommand("select * from Dishes ", conn);
            //有6列
            SqlDataAdapter sda = new SqlDataAdapter(sql);
            DataSet ds = new DataSet();
            sda.Fill(ds);
            int n = ds.Tables[0].Rows.Count;
            for (int i = 0; i < n; i++)
            {
                
                    this.Image1.ImageUrl = ds.Tables[0].Rows[i][0].ToString();
......................
阅读全部 | yyjyyj123 贴于 2017年4月5日 22:17     hide bbsi
上一页 151 152 153 154 155 156 157 158 159 160 下一页