There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop mac malware motherboard mouse network networking outlook 2007 power printer problem ram restart router screen slow sound trojan usb virus vista vista 32-bit windows windows xp winxp wireless wmp
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Turbo C++


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
RAMAddict's Avatar
Senior Member with 201 posts.
 
Join Date: Jul 2004
14-Sep-2004, 05:12 PM #1
Turbo C++
Hello. In school we use a program called Turbo C++ to compile C++. I looked for the program on the internet and I only can find the download for the really old one. Anyone know where I can get this? Or another good free C++ compiler?
Chicon's Avatar
Computer Specs
Distinguished Member with 6,695 posts.
 
Join Date: Jul 2004
Location: 50° 34' 07.13" N - 04° 10' 23.
Experience: Second socks retriever
14-Sep-2004, 05:58 PM #2
Hi RAMAddict,

It seems that Borland has not released a most recent version of Turbo C++.
Instead of using Turbo C++ at home, you may use Dev C++ free download from
http://www.bloodshed.net/devcpp.html
It works nicely.
Attached Thumbnails
turbo-c-devcpp5_scr.jpg  
RAMAddict's Avatar
Senior Member with 201 posts.
 
Join Date: Jul 2004
14-Sep-2004, 06:24 PM #3
Thanks
RAMAddict's Avatar
Senior Member with 201 posts.
 
Join Date: Jul 2004
15-Sep-2004, 07:05 PM #4
Any other compilers other than Dev C++ because that program keeps giving me errors and it won't run correctly when I write a simple Hello World program.
jamesh2923's Avatar
Senior Member with 134 posts.
 
Join Date: Aug 2004
Location: Cleveland
Experience: Advanced
15-Sep-2004, 10:24 PM #5
RAMAddict,

Although Turbo C++ is a little long in the tooth, it is an excellent compiler.
And, as a learning tool really very good.

A version of Turbo C++ is included with DiskTutor C++.

Check EBay for someone willing to sell their copy of Turbo C++.

The other thing to do is buy MS Visual Studio which will allow the development
of high grade C++ based Windows apps. MSVS also has an excellent tutorial.
RAMAddict's Avatar
Senior Member with 201 posts.
 
Join Date: Jul 2004
17-Sep-2004, 08:34 PM #6
any other free compilers anyone knows about? what do you guys use? I really would like to find one. Please help. I tried searching google and I didn't find any good ones. Dev C++ doesn't read certain syntax's and stuff sometimes. Anyone else know any other ones?
__________________
Learning ASP
Learning C++
IMM's Avatar
IMM IMM is offline IMM is authorized to help remove malware.
Distinguished Member with 3,165 posts.
 
Join Date: Feb 2002
17-Sep-2004, 10:34 PM #7
http://www.thefreecountry.com/compilers/cpp.shtml

For windows the borland is good but is command line and you will have to add your own IDE - there are several out there which work with it

It depends on your level and what you need
Digital Mars might be a thought ?

Last edited by IMM : 17-Sep-2004 10:47 PM.
RAMAddict's Avatar
Senior Member with 201 posts.
 
Join Date: Jul 2004
18-Sep-2004, 12:56 AM #8
well I'm just beginning with C++ in school we use Turbo C++ and that program seems very simple to work with. Dev C++ looked good but it has syntex problems and junk.
RAMAddict's Avatar
Senior Member with 201 posts.
 
Join Date: Jul 2004
18-Sep-2004, 11:09 AM #9
ok whats wrong with this simple hello program?
I know for a fact that its correct but Dev C++ has a problem with it.

//My first C++ Program
#include<iostream.h>
main()
{
cout<<"Hello World";
return 0;
}
Shadow2531's Avatar
Distinguished Member with 2,629 posts.
 
Join Date: Apr 2001
19-Sep-2004, 12:23 PM #10
It's not correct.

MinGW (the compiler DevC++ uses) doesn't allow you to get away with specifying main without an int type and using deprecated headers. Also the return line is not needed at the end of a c++ program. When main() completes its tasks, things in it are automatically destructed, so although you can explicitly specify the return line, there's no need to. Also, whenever possible, end your cout stream with an endl to flush the stream buffer.

Here.

Code:
#include <iostream>

using namespace std;

int main() {
    cout << endl << "Hello World!" << endl;
}
__________________
10 ? "a line as the unending horizon"
20 ? "a curve as the rolling hillside"
30 ? "a point as a distant bird"
40 ? "a ray as the rising sun"
run

Last edited by Shadow2531 : 19-Sep-2004 05:29 PM.
RAMAddict's Avatar
Senior Member with 201 posts.
 
Join Date: Jul 2004
19-Sep-2004, 07:49 PM #11
Quote:
Originally Posted by RAMAddict
ok whats wrong with this simple hello program?
I know for a fact that its correct but Dev C++ has a problem with it.

//My first C++ Program
#include<iostream.h>
main()
{
cout<<"Hello World";
return 0;
}

I learned that in school. We used Turbo C++ and thats what he tought us and it worked.
Shadow2531's Avatar
Distinguished Member with 2,629 posts.
 
Join Date: Apr 2001
19-Sep-2004, 08:34 PM #12
I'm in no way a "know-it-all" and don't want to come off like that, but he is starting you off with bad, bad habits that you'll only get away with if the compiler lets you.

If your instructor/teacher truly doesn't know how to do it properly(appears that way), you can show him the proper way to do it. Any good instructor/teacher will take a look at what you present to them, investigate it and decide if it is truly correct.

If your instructor requires you to have the return line just add it to my first example.

Or, at least do it like this (without the using namespace std line)

Code:
#include <iostream>

int main() {
    std::cout << std::endl << "Hello World" << std::endl;
    return 0;
}
A thing to keep in mind with programming.

Just because it works/compiles, doesn't mean it's right.

Also, keep in mind iostream.h is not even an existing file in modern compilers anymore. iostream (no extension) is what you use.

You can also goto http://www.nuwen.net/ and see what I mean. The first things posted show the proper way to do it.
__________________
10 ? "a line as the unending horizon"
20 ? "a curve as the rolling hillside"
30 ? "a point as a distant bird"
40 ? "a ray as the rising sun"
run

Last edited by Shadow2531 : 19-Sep-2004 09:03 PM.
RAMAddict's Avatar
Senior Member with 201 posts.
 
Join Date: Jul 2004
19-Sep-2004, 09:13 PM #13
Oh, so how do I know whats right? I mean I thought I would be learning the correct stuff in class. Its an Intro to C++ class.

See in here:
http://cprogramming.com/compiler.html

It shows the way I did it except it has int main() like you said.

Hmmmm.
__________________
Learning ASP
Learning C++
Shadow2531's Avatar
Distinguished Member with 2,629 posts.
 
Join Date: Apr 2001
19-Sep-2004, 09:43 PM #14
Read http://www.cplusplus.com/doc/ansi/hfiles.html .

That will explain.

At the bottom, on the right, is the ancient way of doing things, which you want to avoid.

It's 2004, use the method on the left.

(If you were wondering if the missing int was your main problem; yes it was.)
__________________
10 ? "a line as the unending horizon"
20 ? "a curve as the rolling hillside"
30 ? "a point as a distant bird"
40 ? "a ray as the rising sun"
run

Last edited by Shadow2531 : 19-Sep-2004 09:50 PM.
RAMAddict's Avatar
Senior Member with 201 posts.
 
Join Date: Jul 2004
19-Sep-2004, 10:44 PM #15
Thank you. I will look through it. I'm not saying your wrong or anything I'm just confused and I want to see which is the correct way and junk like that. Do you use Dev C++?
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:27 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.