#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
class BigInt
{
//
public:
//
BigInt(std::string integer);
void ShowBigIntVector();
private:
//
std::vector< char > BigIntVector;
std::string integer;
};
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
//#include "BigInt.h"
//#include "BigInt.cpp"
int main(int argc, char** argv) {
BigInt num1("12345678987654321");
num1.ShowBigIntVector();
return 0;
}
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
//#include "BigInt.h"
BigInt::BigInt(std::string integer)
{
//
this->integer = integer;
for(std::string::iterator it = this->integer.begin(); it != this->integer.end(); ++it)
{
//std::cout << *it << std::endl;
this->BigIntVector.push_back(*it);
//std::cout << this->BigIntVector[0];
}
}
void BigInt::ShowBigIntVector()
{
//
for( int i = 0; i < this->BigIntVector.size(); i++ )
{
//
std::cout << this->BigIntVector[i];
}
}
I2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8c3RyaW5nPgoKY2xhc3MgQmlnSW50CnsKCS8vCglwdWJsaWM6CgkJLy8KCQlCaWdJbnQoc3RkOjpzdHJpbmcgaW50ZWdlcik7CgkJdm9pZCBTaG93QmlnSW50VmVjdG9yKCk7CgkJCglwcml2YXRlOgoJCS8vCgkJc3RkOjp2ZWN0b3I8IGNoYXIgPiAgQmlnSW50VmVjdG9yOwoJCXN0ZDo6c3RyaW5nIGludGVnZXI7CgkKfTsKCgojaW5jbHVkZSA8aW9zdHJlYW0+CiNpbmNsdWRlIDxhbGdvcml0aG0+CiNpbmNsdWRlIDx2ZWN0b3I+CiNpbmNsdWRlIDxzdHJpbmc+Ci8vI2luY2x1ZGUgIkJpZ0ludC5oIgovLyNpbmNsdWRlICJCaWdJbnQuY3BwIgoKaW50IG1haW4oaW50IGFyZ2MsIGNoYXIqKiBhcmd2KSB7CgkKCUJpZ0ludCBudW0xKCIxMjM0NTY3ODk4NzY1NDMyMSIpOwoJ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