New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

C++ Beginner simple fstream question


Post Reply New Thread Subscribe

 
Thread Tools
Kenya253

 
Member Since: Oct 04, 2009
Posts: 1
Kenya253 is on a distinguished road

Kenya253 is offline
Hi everybody,

I'm trying to direct my fstream to the console for debugging purposes. I'm using ifstream infile("con") and ofstream outfile("con") which don't work. Can anyone help?? (Someone told me that "con" may work for PC and not for Mac)


ifstream infile("/Users/kenya/Desktop/prog3in.txt");
// ifstream infile ("con");
ofstream outfile("/Users/kenya/Desktop/prog3out.txt");
// ofstream outfile("con");
QUOTE Thanks

Post Reply New Thread Subscribe


« Problem in types.h | Fortran Compiling help »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting 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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Simple question - Copying a directory structure from a CD to the Hard Drive wtdedula OS X - Operating System 2 11-21-2008 10:49 AM
Simple Bootcamp Question esoteric_scribe Running Windows (or anything else) on your Mac 1 11-10-2008 05:36 PM
Simple question regarding Wireless Networks Tombini Internet, Networking, and Wireless 4 06-20-2008 03:35 AM
Internet Connection Sharing.. Simple Question.. Audio.Trench Internet, Networking, and Wireless 2 06-15-2008 09:12 PM
simple hard drive replacement question.... yesterday Apple Notebooks 2 02-13-2006 01:24 PM

All times are GMT -4. The time now is 02:00 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?