Horje
c++ vector decimal to binary Code Example
c++ vector decimal to binary
std::string toBinary(int n)
{
    std::string r;
    while(n!=0) {r=(n%2==0 ?"0":"1")+r; n/=2;}
    return r;
}




Cpp

Related
c++ generate random char Code Example c++ generate random char Code Example
vector unique in c++ Code Example vector unique in c++ Code Example
qt int to string Code Example qt int to string Code Example
Runtime Error: Runtime ErrorBad memory access (SIGBUS) Code Example Runtime Error: Runtime ErrorBad memory access (SIGBUS) Code Example
string to wstring Code Example string to wstring Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11