C++??????????????
???????????? ???????[ 2013/3/28 10:44:27 ] ????????
?????????????
?????????????????棬?????????????????????????????????????????洢?????Щ?洢??????????????????????????????????????????????????????????????????????豸????????豸??????????????????????????
????????????????
???????????????????????
???????????????????????????????????????????????????????????????????????????????????????????????????ж????????????????????д??????????????????????????????????????????????????????????????????????????
????????磬????????????????????????????????????????????????????????????????????????????????????????????????????CPU????????????顣??????????????????????????????????????????????????豸??CPU?????????????????????????????????豸??????CPU???Э????????????????????????豸???CPU??????CPU??????????Ч???????
????????????????
?????????? ????????????????塢?л??????????塣
????1???????
??????????????£??????????I/O????????????I/O??????????????????????????????д??
????2???л???
??????????????£??????????????????????з?????????????I/O???????????????????????????????????????????????????????????I/O???????????????????????????
????3??????????
???????????л??壬??????????stderr?????????????ó??????????????????????????
???????????????
????????????????????????????:
????1?????????????
????2?????flush???
????3?????endl???
????4??????????
?????????????????????????????????????????????????I/O????????????C++?У???????????flush???????????????????I/O???????????????????磺cout << flush; //????????????????????????????????
????endl??????????????????????????豸??????п????????????????????
????cout < < endl;
????????
????cout < < ” ”< < flush;
????????????????
????1?????????????????
????????????????????????????′???
#include< fstream >
using namespace std;
int main()
{
//???????test.txt????
ofstream outfile("test.txt");
//??test.txt?????д??4096?????’a’
for(int n=0;n< 4096;n++)
{
outfile << 'a';
}
//????????????????
system("PAUSE");
//??????test.txt?????д?????’b’??????????4097???????’b’
outfile < < 'b';
//????????????????
system("PAUSE");
return 0;
}
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11