//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]
......................
阅读全部 | 2018年12月15日 10:24
#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;
......................
阅读全部 | 2018年12月13日 19:00
//请用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");
......................
阅读全部 | 2018年12月13日 18:52
#include<iostream>
//#include<stack>
using namespace std;
#include<string>
template<typename T>
class Stack{
private:
T data;
public:
Stack(){}
~Stack(){}
public:
......................
阅读全部 | 2018年12月6日 17:07
#include<string>
#include<iostream>
using namespace std;
struct a
{
int i;
string k;
long double l;
};
struct b{
struct a *next;
wchar_t j;
......................
阅读全部 | 2018年11月18日 16:35
//请用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");
......................
阅读全部 | 2018年11月18日 15:23
//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]
......................
阅读全部 | 2018年10月5日 15:10
#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;
......................
阅读全部 | 2018年8月13日 13:28
// 打飞机.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
......................
阅读全部 | 2018年8月8日 12:09
//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_
......................
阅读全部 | 2018年7月23日 12:03