#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int n, m;
while(scanf("%d %d", &n, &m) != EOF)
{
int temp = 0, s = 0, k = 0;
int arr[50] = {0}, brr[50] = {0};
......................
阅读全部
|
星磊99
贴于 2018年8月20日 17:16
hide
bbsi
#include<iostream>
#include<string>
#include<cstring>
#include<cstdlib>
using namespace std;
void strcopy(string string1,string string2);
void writefile(string string3);
int main(){
string string1;
string string2;
cout<<"enter the 1st string\n";
cin>>string1;
......................
阅读全部
|
cstdio
贴于 2018年8月13日 13:28
hide
bbsi
// 打飞机.cpp : Defines the entry point for the console application.
//
#include<iostream>
#include<windows.h>
#include<conio.h>
#include<time.h>
#include<string>
using namespace std;
/*=============== all the structures ===============*/
typedef struct Frame
......................
阅读全部
|
cstdio
贴于 2018年8月8日 12:09
hide
bbsi
//assert.h
/*
* assert.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.
*
* Define the assert macro for debug output.
*
*/
#ifndef _ASSERT_H_
......................
阅读全部
|
cstdio
贴于 2018年7月23日 12:03
hide
bbsi
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
int ppss,cpss,win,i=1,pcnt=0,ccnt=0;
char temp1,temp2='a';
string name;
cout<<"欢迎来到石头剪刀布[版本v1.5.2]!\n\n请注意:在后续游戏中输入完毕后请按回车键表示输入完毕,\n并且请严格按照要求输入,\n否则将会自动结束并退出游戏。\n\n请输入尊姓大名:" ;
cin>>name;
while(temp2=='a'){
......................
阅读全部
|
李大恕
贴于 2018年7月7日 20:42
hide
bbsi
#include <iostream>
#include <conio.h>
#include <ctime>
#include <windows.h>
using namespace std;
const int ROW = 20;
const int line = 35;
class snake;
class Node
{
private:
Node() :x(0), y(0), llink(NULL), next(NULL){}
......................
阅读全部
|
小虫笨
贴于 2018年6月22日 22:23
hide
bbsi
#include<iostream>
using namespace std;
int main()
{
int L, N, C, T, VR, VT1, VT2;
while (cin >> L) {
cin >> N >> C >> T;
cin >> VR >> VT1 >> VT2;
int *p = new int[N];
p[1] = 0;
double *num = new double[(int)pow(2, N)];
......................
阅读全部
|
nono12138
贴于 2018年5月7日 23:52
hide
bbsi
#include<windows.h>
#include<time.h>
#include<stdlib.h>
#include<conio.h>
#define N 21
#include<iostream>
using namespace std;
void gotoxy(int x,int y)//位置函数
{
COORD pos;
pos.X=2*x;
pos.Y=y;
......................
阅读全部
|
进击的种子
贴于 2018年4月15日 18:41
hide
bbsi
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h> //用到了time函数
using namespace std;
/*
函数功能:实现已排序的两子数组有序合并
函数名:merge
参数:temp:中间数组,临时存放数据
a:待排序数组
left:待排序数组的左边界;right:右边界;middle:中间值
*/
......................
阅读全部
|
lookatme
贴于 2018年4月13日 13:00
hide
bbsi
#include <graphics.h>
#include <conio.h>
#include <math.h>
int rosesize = 500;
int h = -250;
struct DOT
{
double x;
double y;
double z;
double red;
double green;
......................
阅读全部
|
韩道琦
贴于 2018年2月5日 12:30
hide
bbsi