首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C++
#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
#include<iostream>
//#include<stack>
using namespace std;
#include<string>
template<typename T>
class Stack{
private:
T data;
public:
Stack(){}
~Stack(){}
public:
......................
阅读全部 | MC189 贴于 2018年11月26日 20:13     hide bbsi
#include<string>
#include<iostream>
using namespace std;
struct a
{
int i;
string k;
long double l;
};
struct b{
struct a *next;
wchar_t j;
......................
阅读全部 | cstdio 贴于 2018年11月18日 16:35     hide bbsi
上一页 13 14 15 16 17 18 19 20 21 22 下一页