#include <stdio.h>
#include <iostream>
#include <fstream>
int main(void)
{
freopen("test0320.txt", "w+", stdout);
printf("This will go into a file.\n");
std::cout<<"hello world, my name is zhangbuda, waht's your name ?"<<std::endl;
/* close the standard output stream */
fclose(stdout);
return 0;
}


1704

被折叠的 条评论
为什么被折叠?



