Jan 14, 2012 at 8:28am UTC
i initially started the program on turbo c++ but i have to switch to visual studio it would be helpful if anyone could tell me whether the following header files would work
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<dos.h>
#include<stdio.h>
#include<fstream.h>
#include<process.h>
#include<stdlib.h>
Jan 14, 2012 at 8:46am UTC
[extremerage] [url=www.cplusplus.com/articles/jLzyhbRD/>How to: Ask Questions The Smart Way[/url] [/extremerage]
Last edited on Jan 14, 2012 at 8:48am UTC
Jan 14, 2012 at 8:52am UTC
All of the would work just fine,
if not remove .h and you'll be just fine :D
Jan 14, 2012 at 12:31pm UTC
You should use this in C++
1 2 3 4 5 6 7 8
#include <iostream>
#include <conio.h>
#include <cstring>
#include <dos.h>
#include <cstdio>
#include <fstream>
#include <process.h>
#include <cstdlib>
C++ headrs no longer have .h. The old C headers do not have .h and have 'c' added to the beginning.
Last edited on Jan 14, 2012 at 12:32pm UTC