20 years, 1 month ago
Highlights
Community contributions featured20 years, 1 month ago
20 years, 1 month ago
Where can i find the rint() function for C? It should be declared in <math.h> but it's not. [using MSVCE]
20 years, 1 month ago
To solve ax^2 + bx + c = 0 we use the formula x1 = [ -b + (b^2 - 4ac)^(1/2) ] / 2a x2 = [ -b - (b^2 - 4ac)^(1/2) ] / 2a The logic can be simplified. p = b/2 x1 = [ -p + (p^2 - a…
20 years, 1 month ago
// no editing is done to the variables int doSomething( int a, int b, int c, int d ) { return a + b + c + d; } int doSomethingElse( int& a, int& b, int& c, int& d ) { return a +…
20 years, 1 month ago