首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C++
#include <iostream>
using namespace std;

class FiniteField
{
    int mPrime, mD;
public:
    FiniteField(int ip = 0, int id = 0)
        :mPrime(ip), mD(id)
    {
    }
    void Show()
......................
阅读全部 | gougoudan 贴于 2020年6月17日 16:05     hide bbsi
#include <iostream>
using namespace std;

class FiniteField
{
    int mPrime, mD;
public:
    FiniteField(int ip = 0, int id = 0)
        :mPrime(ip), mD(id)
    {
    }
    void Show()
......................
阅读全部 | gougoudan 贴于 2020年6月17日 15:51     hide bbsi
#include <iostream>
using namespace std;

class Point
{
    int x, y;
public:
    //构造函数,
    Point(int ix = 0, int iy = 0)
        :x(ix), y(iy)
    {
        cout << endl << "Point(" << x << "," << y << ") is called!";
......................
阅读全部 | gougoudan 贴于 2020年6月17日 15:31     hide bbsi
//StudybarCommentBegin
#include <vector>
#include <iostream>
using namespace std;
int main()
{
    vector<int> arr;
    int i;
    int a;
    for (i = 0; i < 4; i++)
    {
        cin >> a;
......................
阅读全部 | gougoudan 贴于 2020年6月17日 14:51     hide bbsi
#include <iostream>
#include <iomanip>
using namespace std;

class Rectangle
{
public:
    Rectangle() :length(1), width(1){}

    void setLength(double a)
    {
        if (0.0 < a && a < 20.0)
......................
阅读全部 | gougoudan 贴于 2020年6月17日 14:38     hide bbsi
#include <iostream>
using namespace std;

class Cmytime
{
private:
    int mh, mm, ms;

public:
    void Show()
    {
        cout<< mh << ":"
......................
阅读全部 | gougoudan 贴于 2020年6月17日 14:30     hide bbsi
//StudybarCommentBegin
#include <iostream>
#include <cmath>
using namespace std;
class Point
{
protected:
    double x, y;
public:
    Point(double x = 0, double y = 0)
    {
        this->x = x; this->y = y;
......................
阅读全部 | gougoudan 贴于 2020年6月16日 15:37     hide bbsi
//StudybarCommentBegin
#include <iostream>
#include <cmath>
using namespace std;
class Point
{
protected:
    double x, y;
public:
    void SetPoint(double x = 0, double y = 0)
    {
        this->x = x; this->y = y;
......................
阅读全部 | gougoudan 贴于 2020年6月16日 15:17     hide bbsi
#include <iostream>
using namespace std;

class SomeClass
{
public:
    int ma;
    double mb;
    SomeClass(){}
    SomeClass(int a, double b){ ma = a; mb = b; }
    bool operator==(const SomeClass& k) const
    {
......................
阅读全部 | gougoudan 贴于 2020年6月16日 14:51     hide bbsi
//头文件
#include<>
#include<>
#include<>

//定义多项式的项
typedef struct Polynomial{
    float coef;
    int expn;
    struct Polynomial *next;
}*Polyn,Polynomial;

......................
阅读全部 | a18235516941 贴于 2020年6月15日 10:31     hide bbsi
上一页 7 8 9 10 11 12 13 14 15 16 下一页