Turbo C/C++ and other junk compilers help, discussions and queries here

quagmire

Allllright !
Joined
Sep 9, 2011
Messages
792
^Actually thats the code I wrote.. I am referring to book by 'Forouzan & Gilberg' and another by 'Padma Reddy'
 

ico

Super Moderator
Staff member
Joined
Jun 14, 2007
Messages
11,181
Don't read Padma Reddy. It's only applicable for ancient compilers like Turbo C running on ancient operating systems like Windows 3.11.

conio.h, process.h are historic header files for DOS machines.
 

digit.sh

Journeyman
Joined
Mar 13, 2011
Messages
129
Don't read Padma Reddy. It's only applicable for ancient compilers like Turbo C running on ancient operating systems like Windows 3.11.

conio.h, process.h are historic header files for DOS machines.

^You did not mention nonstandard -- the single biggest reason to avoid it.
 

©mß

Journeyman
Joined
Jan 9, 2013
Messages
159
Okay, so I wrote a program in Turbo C++ and saved it. But I want a .exe file.
How do I get it?
 

harshilsharma63

DIY FTW!
Joined
Jul 2, 2012
Messages
6,430
Okay, so I wrote a program in Turbo C++ and saved it. But I want a .exe file.
How do I get it?

Did you notice this very important word in the thread's title: "Turbo C/C++ and other junk compilers help, discussions and queries here".

I don't know how to get an exe in TC, but I surely know that you should upgrade from a >10 years old highly obsolete compiler to a modern compiler like GCC/G++ or Visual Studio.
 

Nue

...
Joined
Jun 29, 2012
Messages
14
But what they are teaching me in school is Turbo C++ :/
Regardless, as already suggested, you should familiarize yourself with industry standard compilers such as Visual studio and GCC. It'll pay off later :)
 

tech0freak0

tech is in mah bl00d
Joined
Jan 25, 2013
Messages
82
Re: C/C++ Beginner's Guide and Post Basic Questions here

Hey Guys,
Visual Studio is good for learning c..?
I couldn't understand use of void in c and cpp, is this still used in modern world?

What really wrong with Turbo C, I want to elaborate to my teacher...
 

aaruni

The Linux Guy
Joined
Mar 17, 2012
Messages
1,170
Re: C/C++ Beginner's Guide and Post Basic Questions here

C/C++ Thread .

As far as I understand, void is for functions which don't return a value. It is deprecated, and produces warnings when run in GCC .
 

flyingcow

Shibe
Joined
Dec 28, 2012
Messages
1,035
Re: C/C++ Beginner's Guide and Post Basic Questions here

is cin>> and cout<< a predefined function??
and is clrscr() needed??? bcoz isnt the screen already blank??
 

aaruni

The Linux Guy
Joined
Mar 17, 2012
Messages
1,170
Re: C/C++ Beginner's Guide and Post Basic Questions here

cin and cout are not functions, but input and output objects, defined in the istream / ostream / iostream header files.

clrscr() is defined in the header conio.h , and is a dos only implementation. It is required so that each time your program is run, it is run on a blank console screen, and nothing from the previous program runs, or if you use the console, then all your commands and the console responses are seen.
 

harshilsharma63

DIY FTW!
Joined
Jul 2, 2012
Messages
6,430
Re: C/C++ Beginner's Guide and Post Basic Questions here

Hey Guys,
Visual Studio is good for learning c..?
I couldn't understand use of void in c and cpp, is this still used in modern world?

What really wrong with Turbo C, I want to elaborate to my teacher...

> I would strongly suggest not using VS for C. You'll have to use the 'VS developer command line tool' to compile C code as there is no choice for C project in VS. Additionally, VC's C compiler is based on C89 stranded, not even C99. I would suggest eclipse+mingw for C and even C++ for beginner.

> void means nothing. When used as function return type, it means nothing will be returned. When used in functions parameter list, it means nothing will be accepted. Additionally, you can create void pointers too which are called 'generic pointers'. These can point to objects of any type unlike common pointers which point to only one type of objects.

> Turbo C is light years behing the industry. It has not been updated to implement new C/C+ versions. It still provides functions which have been deprecated or declared unsafe for use. Google this for more technical details :)
 

db22

Right off the assembly line
Joined
Dec 28, 2011
Messages
3
guys i need c and c++ compilers.. my email id is dpnkrborah@gmail.com...it would of great help if u send me the files or provide me with links to download the compilers from
 
Top