Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if(n==0){//do not work #29

Open
9033 opened this issue Oct 12, 2019 · 0 comments
Open

if(n==0){//do not work #29

9033 opened this issue Oct 12, 2019 · 0 comments
Labels

Comments

@9033
Copy link

9033 commented Oct 12, 2019

get 0 to Bigint n from cin.
but n==0 is not true.
code is below.

int main() {
    Dodecahedron::Bigint n;
    while(cin >> n){
        //if(Dodecahedron::to_string(n)=="0"){//ok
        //if(n==n*0){//ok
        if(n==0){//do not work
            break;
        }
        cout << n << "\n";
    }
    return 0;
}
g19fanatic pushed a commit to g19fanatic/bigint that referenced this issue Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants