首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C++
#include<iostream>
#include<iomanip>
using namespace std;
void sqo(int &a, int &b, int &c);

int main(void){
    int a, b, c;
    cout<<"请输入三个整数"<<endl;
B:
    cout<<"a=";cin>>a;
    cout<<"b=";cin>>b;
    cout<<"c=";cin>>c;
......................
阅读全部 | ithaibo 贴于 2012年10月24日 17:19     hide bbsi
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
 
struct PCBNode
 {
         string name; 
    float runTime;      //总的需要运行时间 
    float remainTime;   //剩下需要运行时间 
    float arriveTime;   //进入就绪队列时间 
    float startTime;    //开始运行时间 
......................
阅读全部 | 张起灵 贴于 2012年10月20日 17:18     hide bbsi
# include"iostream.h"
#include"stdlib.h"
#define STACKSIZE 100
typedef int ElemType;
typedef struct {ElemType   data    [ STACKSIZE ] ;
                             int   top;   } sqstack;


/*补充InitStack初始化栈算法*/
void Initstack(sqstack &S)
{
    S.top=0;
......................
阅读全部 | a714452 贴于 2012年10月13日 10:10     hide bbsi
#include<iostream>
using namespace std;
class Shengxb{
public:
    Shengxb(int size=0);
    ~Shengxb();
    int &operator[](int i);
    void pull();
    void connect(Shengxb &BB);
private:
    int size;
    int *shengxb;
......................
阅读全部 | 蜗牛KTZ 贴于 2012年9月23日 10:17     hide bbsi
#include<cstdlib>
#include<iostream>
#include<cstdio>
#include<cmath>
#include<set>
#include<vector>
#include<cstring>
#include <algorithm>
#define LL long long
#define inf 0x7fffffff
#define E 1e-9
#define M 310
......................
阅读全部 | sunbaofeng 贴于 2012年9月22日 18:06     hide bbsi
#include<cstdlib>
#include<iostream>
#include<cstdio>
#include<cmath>
#include<set>
#include<vector>
#include<cstring>
#include <algorithm>
#define LL long long
#define inf 0x7fffffff
#define E 1e-9
#define M 310
......................
阅读全部 | sunbaofeng 贴于 2012年9月22日 18:06     hide bbsi
#include<iostream>
using namespace std;
#define NULL 0
struct student
{
    long num;
    float score;
    student *next;
};
int n;
int main()
{
......................
阅读全部 | 罗马龙骑士 贴于 2012年9月20日 22:31     hide bbsi
#include<iostream>
//#include<iomanip>
//#include<cmath>
using namespace std;
template <class T>
T max(T a[],int n)
{
    T max=a[0];
    for (int i=0;i<n;i++)
        if (a[i]>max)
            max=a[i];
    return max;
......................
阅读全部 | jude1990 贴于 2012年8月17日 14:59     hide bbsi
#include<iostream>
//#include<iomanip>
//#include<cmath>
using namespace std;
void swap(int &,int &);
void main()
{
    int a=2,b=10;
    swap(a,b);
    cout<<"a="<<a<<",b="<<b<<endl;
}
void swap(int &a,int &b)
......................
阅读全部 | jude1990 贴于 2012年8月17日 08:49     hide bbsi
#include<iostream>
//#include<iomanip>
//#include<cmath>
using namespace std;
class Date
{
    int year,month,day;
public:
    Date(int y,int m,int d)
    {
        year=y;
        month=m;
......................
阅读全部 | jude1990 贴于 2012年8月16日 23:31     hide bbsi
上一页 35 36 37 38 39 40 41 42 43 44 下一页