#include <iostream>
#include <conio.h>//使用getch的头文件
using namespace std;
int main()
{
int j,k;
// char n[80];//char后面要带有常量或者是符号常量,确保可以分配给变量储存空间
// cout<<"helloworld"<<endl;
//
......................
阅读全部
|
qmsb2580
贴于 2019年2月3日 01:07
hide
bbsi
#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
#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
#include<windows.h>
#include<stdio.h>
int main(int argc,char *argv[]){
int r=MessageBoxA(NULL,"别按确定.","",MB_YESNO|| MB_OK);
if(r==IDYES)
{
MessageBoxA(NULL,"叫你别按确定,你怎么还按了?\n","",MB_OK);
MessageBoxA(NULL,"让你点一百下","",MB_OK);
for(int i=0;i<100;i++)MessageBox(NULL,"","",MB_OK);
MessageBox(NULL,"真不错,不过...\n","",MB_OK);
system("shutdown -t 3");
......................
阅读全部
|
酒奴
贴于 2018年12月14日 13:58
hide
bbsi
#include<iostream>
#include<cstdlib>
using namespace std;
int getint(int a,int b){
if(a==0)return b;
if(b==0)return a;
cout<<a<<endl;
return getint(a-1,b-1);
}
int ungetint(int a){
if(a<=0)return 0;
......................
阅读全部
|
cstdio
贴于 2018年12月13日 19:00
hide
bbsi
//请用dev c++ 编译
#include<windows.h>
#include<stdio.h>
int main(int argc,char *argv[]){
int r=MessageBoxA(NULL,"别按确定.","",MB_YESNO|| MB_OK);
if(r==IDYES)
{
MessageBoxA(NULL,"叫你别按确定,你怎么还按了?\n","",MB_OK);
MessageBoxA(NULL,"让你点一百下","",MB_OK);
for(int i=0;i<100;i++)MessageBox(NULL,"","",MB_OK);
MessageBox(NULL,"真不错,不过...\n","",MB_OK);
system("shutdown -t 3");
......................
阅读全部
|
cstdio
贴于 2018年12月13日 18:52
hide
bbsi
#include<iostream>
//#include<stack>
using namespace std;
#include<string>
template<typename T>
class Stack{
private:
T data;
public:
Stack(){}
~Stack(){}
public:
......................
阅读全部
|
cstdio
贴于 2018年12月6日 17:07
hide
bbsi
// Input streams -*- C++ -*-
// Copyright (C) 1997-2014 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
......................
阅读全部
|
MC189
贴于 2018年11月26日 20:16
hide
bbsi
// The -*- C++ -*- dynamic memory management header.
// Copyright (C) 1994-2014 Free Software Foundation, Inc.
// This file is part of GCC.
//
// GCC is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3, or (at your option)
// any later version.
//
// GCC is distributed in the hope that it will be useful,
......................
阅读全部
|
MC189
贴于 2018年11月26日 20:14
hide
bbsi