Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running C programs on Borland's C++ Builder 4

Status
Not open for further replies.

Roman

Programmer
Sep 9, 1999
2
US
I recently purchased Borland/Inprise C++ Builder 4. I am a beginning programmer, barely got my feet wet.<br>
When I enter the programs from the book I get error messages. I consider myself quite capable of learning this. However, I'm a little frustrated.<br>
Do I need to switch to a purely C compiler such as Turbo C ( if I can find it...) ?
 
Hi Roman,<br>
<br>
I think the answer is "it depends" - which probably isn't the answer you wanted.<br>
<br>
I remember going through this kind of process when starting out and it *is* pretty frustrating. The solution is usually one of the following:<br>
<br>
1) You didn't type the prog in *quite* right. I know - I know, you checked it already but it might be an idea to give another look.<br>
<br>
2) The example prog is not for the exact version of he compiler that you have. Strictly speaking C programs should run fine in a C++ compiler but you do occaisionally come across some differences - especially in the PC world. Have a look at the #include thingies and read up on the different meanings of &lt;&gt; and "" when you use them there. They have to do with where the compiler will look for those .h files and some compilers keep them in funny places.<br>
<br>
Have another go - it's all part of the fun - and if you're still having trouble try posting a small prog here that demonstrated your problem.<br>
<br>
Regards<br>
<br>
Mike<br>
---<br>
Mike_Lacey@Cargill.Com<br>

 
Thanks Mike Lacey.<br>
I figured it out shortly after posting the S.O.S.<br>
I was missing some headers then included them and it worked.<br>
It seems like semi-smooth sailing from here on. I may shortly join the elite few Super Programmers like you.<br>
<br>
Thanks Again,<br>
<br>
Ed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top