i have lately installed c++ on my pc %26amp; when i write even a simple program in it, it says undefined symbol'cout'.the warning above is also mentioned alongwith 'function should return a value'.i havn't worked on c+ since long. have i made any problem in the program or in the installation?tellme how to fix it...
When i write a program in c++ %26amp; run it,"unable to open include file iostream.h appears".tellme how to fix it?
Every programe in C++/C required a header file.
In c++ you have to include
#include%26lt;iostream.h%26gt;
but your problem is Path of Libraries are not set properly during the installation of TC++/or you install it on the drive other than C:\ drive. Now you have to manaully set the path of Library files using following options;
1: In TC++ IDE, Pree ALT+O or click on Option Menu
2. Now Click on Directories
3. From the you see an entry as
C:\TC\Bin
change its C:\ to the Drive letter (eg: D:\ or E:\) according to you TC++ installtion drive path.
I hope this should solve your problem
Reply:tha header file is include%26lt;iostream.h%26gt;
if u have problems, goto options,directories, and change the
"include directories" to where u have installed c++.
for ex change it to- C:\Program Files\turboc3 or
c:\turboc3 . rate me if it works.
Reply:u must include header file iostream.h.also give return along with itz function..try these first nd check it out...first include header file..u can also trace ur program by pressng f7 key r u can debug nd see it..if my answer is ryt,do rate me ok...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment