#include <iostream>
#include <map>
#include <set>
#include <cstring>
#include <stack>
#include <vector>
#include <algorithm>
using namespace std;
typedef set<int> Set;
map<Set,int> idcache;
vector<Set> setcache;
int id(Set x){
......................
阅读全部
|
陈威臻
贴于 2019年1月6日 20:09
hide
bbsi
package array;
import java.util.Scanner;
public class youxi1 {
public static void main(String[] args) {
Scanner console = new Scanner(System.in);
System.out.println("游戏开始");
int sum=0;//记总分变量sum
for(int i=0;i<10;i++){
......................
阅读全部
|
吉羊
贴于 2019年1月6日 14:53
hide
bbsi
#include<stdio.h>
int MA[4]; /*空闲块数组*/
int A[9][4]={{3,1,2,3},{3,4,5,6},{0,0,0,0},{0,0,0,0},{3,0,7,8},
{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0}}; /*磁盘空间专用块*/
int mark[9]; /*存放已分配的块*/
int No=0; /*已分配的块数*/
void display1()//无参数无返回值的显示类函数,重要的是函数体
{ int i,j,temp,count;
No=0;
if(MA[1]!=0)
{ i=MA[0];
printf("\n第1组:");
......................
阅读全部
|
qiscoys
贴于 2019年1月3日 16:11
hide
bbsi
#pragma once
#define NUM1 128
#define NUM2 50
#define Col 80
#define Line 25
#include<iostream>
#include<iomanip>
#include<cstdio>
#include<cstdlib>
using namespace std;
class Book {
......................
阅读全部
|
a18064169453
贴于 2019年1月3日 15:22
hide
bbsi
#include<stdio.h>
int div(int x,int y);
int mul(int x,int y);
main(){
int a,b,n;
scanf("%d,%d",&a,&b);
n=mul(a,b);
printf("%d,%d最小公倍数的是:%d\n",a,b,n);
}
......................
阅读全部
|
陈无
贴于 2018年12月20日 22:00
hide
bbsi
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>js特效大全:www.sucaihuo.com</title>
<script type="text/javascript">
var vcity={ 11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",
21:"辽宁",22:"吉林",23:"黑龙江",31:"上海",32:"江苏",
33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",
42:"湖北",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",
51:"四川",52:"贵州",53:"云南",54:"西藏",61:"陕西",62:"甘肃",
63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外"
......................
阅读全部
|
gedage
贴于 2018年12月17日 18:37
hide
bbsi
#include"stdio.h"
float function(int iScore[],float ave);
main()
{
int i,SIZE;
int iScore[SIZE];
float ave;
printf("请输入成绩的个数:\n");
scanf("%d",&SIZE);
printf("请输入成绩:\n");
for(i=0;i<SIZE;i++)
{
......................
阅读全部
|
编程小白1号
贴于 2018年12月16日 17:04
hide
bbsi
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef _INC_STRING
#define _INC_STRING
#include <crtdefs.h>
#ifdef __cplusplus
extern "C" {
......................
阅读全部
|
cstdio
贴于 2018年12月16日 15:43
hide
bbsi
#include<iostream>
#include<ctime>
#include<cstdlib>
#include<cstdio>
using namespace std;
int getrand(int i)
{
srand(time(0));
return rand()%i;
}
int main(int is,char *j[])
{
......................
阅读全部
|
cstdio
贴于 2018年12月16日 15:36
hide
bbsi
//malloc.h
/***
*malloc.h - declarations and definitions for memory allocation functions
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* Contains the function declarations for memory allocation functions;
* also defines manifest constants and types used by the heap routines.
* [System V]
*
* [Public]
......................
阅读全部
|
cstdio
贴于 2018年12月15日 10:24
hide
bbsi