Questions tagged [turbo-c]

Turbo C was an Integrated Development Environment and compiler for the C programming language from Borland, released in 1987. It had been re-release as freeware version 2.01 by 2006.

First introduced in 1987, it was noted for its integrated development environment, small size, fast compile speed, comprehensive manuals and low price.

Today, Turbo C is considered obsolete. It is a 16-bit compiler for DOS environments, and as such cannot access more than 640 KB of memory (and even that only with difficulty), and cannot interoperate with 32- and 64-bit code in modern operating systems. Additionally, due to its age, its standard library differs in some significant fashions from modern C libraries. Plainly put, it is not an appropriate tool for many development tasks today.

Despite this, it is sometimes used in introductory C programming courses, particularly in India. Students using Turbo C should keep its limitations in mind.

273 questions
1
vote
3 answers

How to edit and overwrite specific location in file in C++

I am making an airline reservation software and I don't know much about the Visual C++. I am using the simple compiler "TCWIN45". In my program I wish to use file handling and I am succeed to save all the inputs in text file. i need to add search…
Ali Hanif
  • 23
  • 4
1
vote
2 answers

C Cursor Question

I'm a newbie in Turbo C... Just want to ask what is the first thing should I do to enable the use of cursor. I'd like to control the cursor and redefine keys on the keyboard as well. Please give me steps, thanks in advance!
Aaron
  • 1,969
  • 6
  • 27
  • 47
1
vote
2 answers

Pointer notation question

I am using TurboC. What's wrong with this code? During the runtime, the message was "floating point formats not linked" "Abnormal program termination". I am a newbie in C language, and I've never encountered this kind of error before. Thanks in…
Aaron
  • 1,969
  • 6
  • 27
  • 47
1
vote
7 answers

C Array Question

When a simple variable name is used as an argument passed to a function, the function takes the value corresponding to this variable name and installs it as a new variable in a new memory location created by the function for that purpose. But what…
Aaron
  • 1,969
  • 6
  • 27
  • 47
1
vote
3 answers

Current directory in DOSBox [Optional: Using TURBO C]

I want to run a command in a specific directory and then return back. (There is a reason for it [validity of parameters...]). I tried doing it in batch file for DOSBox... @echo off cd>cd.cd cd %mypath% dosomething 1 2 3 ::I am not sure.... cd (type…
1
vote
1 answer

Wrong result loaded from FPU stack after loading it with value from array

I'm writing inline x86 assembly code to copy the contents of an array defined in the C language to the x87 FPU stack to perform further operations. A value that I store on the top of the FPU stack is different when I retrieve it from the FPU stack.…
Madhu
  • 55
  • 1
  • 5
1
vote
2 answers

What is the difference between using Turbo C and GNU C/C++?

I just want to know that what is the difference between using Turbo C and GNU C/C++? Is there any real difference, or if I submit the .C file would that be the same thing?
Shahzaib Mazari
  • 434
  • 4
  • 14
1
vote
2 answers

Turbo C / VGA x86 assembly: Copy from ram to vram

I'm just having fun with turbo c to draw "sprites" on an 8086/286 (emulated with pcem) with an MCGA/VGA card. Compiled with turbo c 3.0 it should work on real 8086 with MCGA. I'm not using the VGA mode x because it is a bit complex and I don't need…
Mills
  • 69
  • 6
1
vote
0 answers

double datatype behaving in an undefined manner

Even though I know turbo c is completely obsolete now, my instructor has put a condition to code in it. I am having an issue that when I am trying to pass a double value to a function it is not behaving properly. I am getting fluctuating output…
1
vote
1 answer

Turbo C MS-DOS BOX not responding to Mouse Click

This happens to me frequently, Please give me a solution. Edit : I have found the fix and answered below.
Arun Joseph
  • 2,736
  • 25
  • 35
1
vote
3 answers

Get the output of a C program without compiling it

I have a .c file and I have only a Windows command prompt. I have to get the output of the program. Can the program be compiled without the support of TC or TC3 environment? If so kindly help.
soujanya
  • 29
  • 1
  • 6
1
vote
1 answer

Defining variables after calling functions gives me a compilation error

This works main() { int c; struct books Book1; c = getchar( ); return 0; } This doesn't main() { int c; c = getchar( ); struct books Book1; return 0; } Expression syntax in function main (and points to the space after the…
Jose V
  • 1,655
  • 1
  • 17
  • 31
1
vote
1 answer

setfillcolor() failing to set color?

I am using graphics.h library to implement the a shutdown button on the display screen.The problem I am facing is that the color function(setfillcolor()) is not working by which I want to color the area between the two circles in red.My compiler is…
user379888
1
vote
1 answer

Display output in message window in Turbo C

How can I print my output in Message window of Turbo-C ? Example: By default, the output is generated on the output screen as but how do I print output in the Message Window(where errors are displayed) ? I am using TURBO-C version 3.0 and DOSBox…
NeoR
  • 353
  • 2
  • 9
  • 27
1
vote
2 answers

Warning this code has no effect

The getchar(); line gives me the warning: this code has no effect. #include int main() { int this_is_a_number; printf( "Please enter a number: " ); scanf( "%d", &this_is_a_number ); printf( "You entered %d",…