- main()
- -->convert()
- ----->dectobin()
- -------->dectobin()
- ------------>dectobin()
- ---------------->dectobin()
- find the LSB;
- return LSB as a string; (1 in this case)
- ------------> find the next bit (0 in this case)
- add the string from the dectobin call to the new bit we found
- (0 + 1) -> 01
- return this new string;
- --------> find the next bit (1 in this case)
- add the string from the dectobin call to the new bit we found
- (1 + 01) -> 101
- return this new string;
- ----> find the next bit (0 in this case)
- add the string from the dectobin call to the new bit we found
- (0 + 101) -> 0101
- return this new string;
- <back to convert>
- convert now sees dectobin return "0101"
jawoiegjawe
By: awiejga | Date: Nov 25 2007 00:57 | Format: None | Expires: never | Size: 852 B | Hits: 1242
Latest pastes
1 days ago
2 days ago
4 days ago
6 days ago
6 days ago