一直以来自己不怎么懂 十进制转换为二进制,今天彻底的研究了以下,搞定了。
源码如下:
- #include <iostream>
- #include <fstream>
- #include <string>
- #include <algorithm>
- using namespace std;
- string s;// The definition of global value;
- int main(int argc,char *argv[])
- {
- ifstream cin("aaa.txt");