News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

C++ tip:IO - Mixing stdio and iostreams in a C++ program

Started by ben2ong2, October 06, 2006, 11:06:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ben2ong2

PROBLEM: You are not allowed to view links. Register or Login, 1 Sep 92

I am trying to put a text windowing environment on a C++ program
that I have created. The text windowing environment is DFLAT from
DDJ magazine. The problem is DFLAT is ANSI C using stdio.h and
my program is a C++ program with iostream.h. I have read that there
are potential dangers in mixing the two. Any suggestions? Thanks.


RESPONSE: p j l @sparc16.cs.uiuc.edu (Paul Lucas), 1 Sep 92
     AT&T Bell Laboratories

*****>   1. You don't _have_ to use iostreams in C++.
   2. There exists a function synch_with_stdio (or something like
      that) that makes the two work together; look at iostream.h
      for the exact name.
You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login