首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
成绩排序运行不了,总成绩怎么改成平均分~~请大家帮帮忙!!

#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
package main

import (
"github.com/gin-gonic/gin/json"
"fmt"
)

func main() {
s :=IT{"hangxin" ,[]string{"go",
"c"},12.12}
txt,err :=json.MarshalIndent(s,"","")
if err !=nil{
......................
阅读全部 | yaofana 贴于 2018年5月29日 11:54     hide bbsi
// define array position of text
var textString = 'happylunarnewyear2017';

var textMatrix = [
4.5, 0, 5.5, 0, 6.5, 0, 7.5, 0, 8.5, 0,
0, 1, 1, 1, 2, 1, 3, 1, 4, 1, 6, 1, 7, 1, 8, 1, 10, 1, 11, 1, 12, 1, 13, 1,
5, 2, 6, 2, 7, 2, 8, 2
]
var chars = {
h: [
0, 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7,
1, 3, 2, 3, 3, 3, 4, 3,
......................
阅读全部 | ddc777 贴于 2018年5月18日 11:00     hide bbsi
%第1步对泄漏电流进行莫莱小波交换
co_LCsorce=cwt(LCsorce,l:1 28,'moil');
%第2步将泄漏电流分割为工频半周波
function BothPeakPerPeriodMatrix=HalfPeriodSeperation_1 40225(DataRange)
a=size(DataRange);
ifa(1,1)-1
DataRange2DataRange';
end
LengthOfAtxy=length(DataRange);
numzpt--0;
nummax=0;
NumHP=LengthOfArry/50;
......................
阅读全部 | hahhxxttxs06 贴于 2018年5月14日 09:53     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
上一页 132 133 134 135 136 137 138 139 140 141 下一页