2、查看下面程序的输出,解释为什么会有这样的输出。
#include <iostream> #include <fstream> using namespace std; int main( ) { unsigned char a[] = {0x32,0x30,0x31,0x35,0xA3,0xAC,0xCE,0xD2,0xC3,0xC7,0xB3,0xD4, 0xC1,0xCB,0xB5,0xDA,0xD2,0xBB,0xBF,0xDA,0xF3,0xA6,0xD0,0xB7}; ofstream outfile("f3.dat",ios::out|ios::binary); outfile.write((char*)a, sizeof(a)); outfile.close(); return 0; }
学习心得:
我们宿舍的都看不懂。。。。。。。。
原文地址:http://blog.csdn.net/ljd939952281/article/details/46529531