Skip to content

Commit

Permalink
改进构造函数,使其能够声明多维数组
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-XYS committed Dec 27, 2016
1 parent f6d3750 commit c0bf1e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion High-Precision(Integer).cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using namespace std;

int _global_length_;

class lint
{
private:
Expand All @@ -14,7 +16,7 @@ class lint
lint mul1(int x, int offset);

public:
lint(int len);
lint(int len = _global_length_);
void read();
void write();
lint operator + (lint x);
Expand Down

0 comments on commit c0bf1e3

Please sign in to comment.