Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

 
 
Thread Tools Display Modes

 
fstream io Help
Reply
Posted 2002-04-08, 05:57 PM
can some tell me wats wrong with my code it prints nothin to the screen
Code:
#include <fstream.h> 
#include <conio.h> 
int main() 
{ 
ifstream in_file("Greeting.ext"); 
ofstream out_file("Out.ext"); 
int numbersOfContestant; 
numbersOfContestant = 3; 
out_file << "Numbers of contestant: " << numbersOfContestant << endl; 
out_file << "Names of contestant:\n"; 
out_file << "David" << endl; 
out_file << "Janice" << endl; 
out_file << "GundamSD" << endl; 

out_file << "Greeting, David, welcome to the contest!" << endl; 
out_file << "Greeting, Janice,welcome to the contest!" << endl; 
out_file << "Greeting, GundamSD, welcome to the contest!" << "\n\n"; 
out_file << "Press enter to exit."; 
getche(); 
}
Old
Profile PM WWW Search
spa is neither ape nor machine; has so far settled for the in-betweenspa is neither ape nor machine; has so far settled for the in-between
 
spa
 



 
Reply
Posted 2002-04-08, 08:25 PM in reply to spa's post "fstream io Help"
It doesn't print anything to the screen because all of the output goes to out_file, so all of it ends up in Out.ext
I think I'm lost.
Old
Profile PM WWW Search
Badass Gandhi is neither ape nor machine; has so far settled for the in-betweenBadass Gandhi is neither ape nor machine; has so far settled for the in-between
 
Badass Gandhi
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 12:21 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.