hello there!
im creating a program with both stdio.h and iostream.h in the include header.
Can the program run with them both? or others?
jadedman 0
Newbie Poster
Recommended Answers
Jump to PostIf you are uisng VC++ 2005 or 2008 then you can't use iostream.h at all. That file is obsolete and has been replace with <iostream>
And yes, you can have stdio.h and <iostream> both in the same program.
Jump to Postfor the predefined streams, it's safe to mix C stdio and C++ iostreams. you can safely use
stdin
andstd::cin
in the same program; the C++ Standard guarantees that it will work the way you would expect it to.if you don't need to mix C stdio and C++ …
Jump to PostYes they can.
All 9 Replies
Ancient Dragon 5,243
Achieved Level 70 Team Colleague Featured Poster
jadedman 0
Newbie Poster
vijayan121 1,152
Posting Virtuoso
Salem
commented:
Nice answer. +21
MelechM 1
Junior Poster in Training
ithelp 757
Posting Virtuoso Banned
jadedman 0
Newbie Poster
Ancient Dragon 5,243
Achieved Level 70 Team Colleague Featured Poster
Nick Evan 4,005
Industrious Poster Team Colleague Featured Poster
Jawahar prabhu -2
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.