« first day (1695 days earlier)      last day (1148 days later) » 

6:20 AM
Can anybody explain me the exact work of cin.get() in C++
 
 
1 hour later…
7:37 AM
@AshKetch like "what does the spec require this to do?" or more "what does this call actually do in a typical implementation/OS?"
 
 
4 hours later…
11:44 AM
With the GMP library is there any way to use functions like sqrt() so they can be used inline and without needing another variable to store the result? In other words, can't this be done in 1 line?
mpz_class sqrtProducts;
mpz_sqrt(sqrtProducts.get_mpz_t(), products.get_mpz_t());
const auto x = foo(sqrtProducts);
Now there's the pointless variable sqrtProducts
 
nwp
mpz_class sqrt(const auto &mpz_class number) {
    mpz_class result;
    mpz_sqrt(sqrtProducts.get_mpz_t(), products.get_mpz_t());
    return result;
}
Maybe look for a library that does this already.
One of these maybe.
 

« first day (1695 days earlier)      last day (1148 days later) »