#include<stdio.h>
struct a2
{
int s;
int s2;
};
struct a1
{
int s1;
char c;
struct a2 b;
......................
阅读全部
|
蓑笠翁
贴于 2018年7月3日 00:12
hide
bbsi
#include <stdio.h>
int main(void)
{
int num1=2; /*定义整型变量 num1,并赋值为2*/
int num2=3; /*定义整型变量 num2,并赋值为3*/
printf("I have %d cats.\n",num1); /*调用printf()函数*/
printf("You have %d cats.\n", num2);
return 0;
}
阅读全部
|
芙蓉王
贴于 2018年6月30日 14:55
hide
bbsi
fgfhfhx~chfchdhrydjfhghhdhjghfhdghfghdgjfg
rhg hfhjf
dhdh
f
ghgf
fhIh
阅读全部
|
airt
贴于 2018年6月29日 22:52
hide
bbsi
data ends
code segment
start: mov ax,data
阅读全部
|
商殇
贴于 2018年6月16日 18:14
hide
bbsi
成绩排序运行不了,总成绩怎么改成平均分~~请大家帮帮忙!!
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
class student
{
friend class studentMessage;
student *next;
char name[30];
char num[30];
......................
阅读全部
|
TongLee
贴于 2018年6月12日 12:37
hide
bbsi
/*
* locking.h
* This file has no copyright assigned and is placed in the Public Domain.
* This file is a part of the mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER within the package.
*
* Constants for the mode parameter of the locking function.
*
*/
#ifndef _LOCKING_H_
#define _LOCKING_H_
......................
阅读全部
|
cstdio
贴于 2018年6月10日 18:37
hide
bbsi
#include<stdio.h>
int max(int n, int str[100])
{
int i,mx;
mx = str[0];
for (i = 1; i < n; i++)
{
if ((str[i] >= mx)==1)
mx = str[i];
}
return max;
}
......................
阅读全部
|
天蓝蓝蓝
贴于 2018年5月12日 17:41
hide
bbsi
#include<iostream>
#include<iomanip>
int a[15][15]={0}; //空格显示为0,玩家A下白棋显示为1,玩家B下黑棋显示为2
using namespace std;
int judge(int m1,int n1) //判断是否达到游戏结束标准的子程序
{
int i,j,count=0;
for(i=0;i<15;i++)
{
for(j=0;j<=10;j++)
{
if(a[i][j]==1) //横行达到五个白色棋子的情况
......................
阅读全部
|
雪吟春晓
贴于 2018年5月10日 16:21
hide
bbsi
typedef struct _queue // 睡眠队列
{
struct tcb *tsk;
struct _queue *next;
}queue;
typedef struct _semaphore{
int value;
queue *head;
queue *tail;
}semaphore;
......................
阅读全部
|
Zxlcqu
贴于 2018年5月8日 21:07
hide
bbsi
计算一个整数的各位数字之和的程序如何编 多测试用例?测试数据有多个,一个占一行,每行是一个正整数。
最后一个测试用例是 0,表示结束。
#include<stdio.h>
int main()
{
int n,sum=0;
while(scanf("%d",&n)==0){
if(n=0) break;
else sum+=n%10;
......................
阅读全部
|
cooee
贴于 2018年5月8日 11:38
hide
bbsi