X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Mon, 17 Dec 2001 10:37:06 -0600 (CST) From: GAMMELJL AT SLU DOT EDU Subject: Use of mpf_out_str and mpf_input_str in Delorie port of gmp to DOS To: djgpp AT delorie DOT com Message-id: <01KBYZRCDVJM90RF1A@SLU.EDU> Organization: SAINT LOUIS UNIVERSITY St. Louis, MO X-VMS-To: IN%"djgpp AT delorie DOT com" MIME-version: 1.0 Reply-To: djgpp AT delorie DOT com //A question about this small code appears below #include #include main() {cout<<"hello world"<<'\n'; //Writes "hello world" to screen freopen("hi","w",stdout); //Redirects output to file hi cout<<"hi world"<<'\n'; //Writes "hi world" to file hi freopen("ho","w",stdout); //Redirects output to file ho cout<<"ho world"<<'\n'; //Writes "ho world" to file ho //QUESTION: What do I put here so that the output of the next //line appears on the screen again. cout<<"hello again world"<<'\n'; return 0; } //This question is related to the use of the functions //mpf_out_str and mpf_inp_str in the delorie port of gmp //to DOS. Thanks for your help.