TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
Function to convert decimal number to binary representation. More...
#include <iostream>
Go to the source code of this file.
Functions | |
void | method1 (int number) |
void | method2 (int number) |
int | main () |
Function to convert decimal number to binary representation.
Definition in file decimal_to_binary.cpp.
int main | ( | void | ) |
Definition at line 46 of file decimal_to_binary.cpp.
void method1 | ( | int | number | ) |
This method converts the bit representation and stores it as a decimal number.
Definition at line 11 of file decimal_to_binary.cpp.
void method2 | ( | int | number | ) |
This method stores each bit value from LSB to MSB and then prints them back from MSB to LSB
Definition at line 27 of file decimal_to_binary.cpp.