Click here to Skip to main content
15,912,665 members
Everything / Programming Languages / TurboC++

TurboC++

TurboC++

Great Reads

by Ullas_Krishnan
This is only for students who are developing mini projects with Turbo C / C++ Compiler. This example may help you to get an idea in submitting your mini projects with stunning user interface experience with Mouse click events.
by Ullas_Krishnan
How create a Splash Screen in C++ Program (TurboC) in DOS Mode..
by BD Star
This is a mini project (Tic-Tac-Toe game) for Turbo C / C++ compiler.

Latest Articles

by BD Star
This is a mini project (Tic-Tac-Toe game) for Turbo C / C++ compiler.
by Ullas_Krishnan
This is only for students who are developing mini projects with Turbo C / C++ Compiler. This example may help you to get an idea in submitting your mini projects with stunning user interface experience with Mouse click events.
by Ullas_Krishnan
How create a Splash Screen in C++ Program (TurboC) in DOS Mode..

All Articles

Sort by Score

TurboC++ 

25 Mar 2013 by SoMad
This question caught my eye. I think it is great that you are interested in exploring the low level universe of programming. It can be a frustrating experience, but when you get something working and you understand what you just did, it is a great feeling.I used Turbo C many years ago when...
27 Sep 2015 by OriginalGriff
I run it, it works.I run it with zeros: it worksI run it with double digit numbers - it works.So what is the problem? The only hassle I can see is that your output are a bit odd: your array collections of odd and even numbers are unnecessary and not good since you only set the indexes...
20 Dec 2014 by PIEBALDconsult
No. You cannot convert an already-compiled program.As Bill said, if you have the source code (and I think you do) then you can use a newer compiler to compile for the newer systems.As many have suggested to your many other questions, Visual Studio Express may be the right tool to...
27 Sep 2015 by Wendelius
The first question is, why do you store the numbers in an array? Is that a requirement? If not, why not simply decide if the number is even or odd when the input is made and based on that calculate intermediate result for either sum or product.Another thing is that if you use arrays the...
28 Sep 2017 by Afzaal Ahmad Zeeshan
Quote: should i download an earlier version of windows to rub the files? It is 2017, C++17 is about to come out with several major compilers, new programming structs, paradigms are being introduced, and you are trying to get Turbo C++ to work? Instead of going back to an older version of...
28 Sep 2021 by OriginalGriff
Read the instructions again: it specifically tells you which functions to use - that code doesn't use them at all. That looks like you found something similar on the internet and want it modified so you can hand it in as your own work: if so,...
16 Sep 2010 by #realJSOP
Wow - TurboVision. I haven't heard that name in a LONG time (1989 to be exact).
2 Aug 2013 by Sergey Alexandrovich Kryukov
Please see my comment; it explains why your code is wrong, the whole idea of it. As this is C++, why not using std::string?Please see:http://www.cplusplus.com/reference/string/string/find/[^],http://www.cplusplus.com/reference/string/string/replace/[^].Are you getting the...
29 Sep 2016 by CPallini
Well, you may hack the more by learning how to properly use Q&A.
11 Jan 2017 by Jochen Arndt
The bullet is a so called "sprite".To draw such animated sprites you canGet the actual image at the position where the bullet should be drawn and save itDraw the bullet at the actual positionWait a momentRemove the bullet by drawing the saved imageDetermine the next position of...
22 Jan 2017 by Kornfeld Eliyahu Peter
That code was written for Arduino and uses methods from libraries, that you have only on Arduino...A simple Turbo C project will not have all those libraries, so you will have a few compilation error.End even you will link somehow to the right libraries, the compiled code will fail on...
27 Sep 2017 by Jochen Arndt
TurboC++ is an ancient compiler that creates DOS programs that can't be run with 64-bit versions of Windows. To run such programs you can install a DOS emulator like DOSBox and execute them within the emulator.
28 Sep 2017 by Dave Kreskowiak
It's not that it's incompatible with Windows 10. It's incompatible with today's Windows 64-bit O/S, including Vista, Win7, 8, and 10. Turbo C++ generated 16-bit executables. Windows 64-bit does not have a subsystem to run 16 bit code. You have a few options: 1. install a 32-bit version of...
24 Feb 2018 by OriginalGriff
If you mean "at the same time" as in "genuinely doing things together" instead of "doing one thing, then doing the other after it finishes" than that complex - you would need to look at setting up separate threads to run each "chunk" of code. And if I recall correctly, Turbo C++ doesn't have any...
24 Feb 2018 by OriginalGriff
1) You can't have two main functions. 2) "Unreachable code" is just that: code that cannot be reached so cannot be executed. For example: while (1 == 1) { i++; } printf("Unreachable"); if you can exit the loop, it isn't unreachable: while (1 == 1) { i++; if (i == 100) break;...
28 Jun 2021 by OriginalGriff
Change this: #include main() { int a=0, b; ... getch(); closegraph(); } To this: #include int main() { int a=0, b; ... getch(); closegraph(); return 0 }
30 Sep 2021 by Richard MacCutchan
See PLEASE HELP in TURBO C++[^]. The two of you should share ideas.
12 May 2010 by lakshmihb
I am having a project in Borland Turbo C++, I need the same project to be converted to Microsoft VS 2003 VC++ project. Is it possible to do conversion in .Net?
16 Sep 2010 by aayu
http://www.cas...
16 Sep 2010 by Richard MacCutchan
This[^] may be what you are looking for.
2 Oct 2010 by joanna2206
how to convert hours,min,sec. (decimal num.)-- into standard time using torbo c++? (class Time)
21 Feb 2012 by Yburmisha
Our instructor gives us a project defense on Turbo C using File Processing for the first time. He hadn't given us example yet on this.
21 Feb 2012 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
4 Mar 2013 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
12 Aug 2013 by sunnyvector
#include#include
12 Aug 2013 by CPallini
As others already pointed out you should:check system call return value.check if the batch file actually was executed (you may have missed its execution, because the window quickly disappears).It is worth nothing that Turbo C is an ancient compiler and there are far better (free)...
1 Oct 2014 by bling
For #1 - reading the keyboard buffer even when the program does not have the input focus. Use the GetAsyncKeyState function. You will have to code it in a loop and search all scan codes. Be sure to include a call to Sleep for a few milliseconds between each call to GetAsyncKeyState to prevent...
20 Dec 2014 by BillWoodruff
You need the source code; you may need to do minor, or major, work on the source code depending on what it does, uses, and requires, and you need to recompile for the target architecture. If you're lucky, the IDE you use (like Visual Studio) may be able to translate/transform for you.Or you...
25 May 2015 by Raje_
May be these will help you :http://en.kryptotel.net/serpent.html[^]Cipher EX V1.3[^]http://crypto.stackexchange.com/questions/11145/serpent-block-cipher-s0-to-s7-functions-unclear[^]http://serpent.online-domain-tools.com/[^]Good luck :)
25 May 2015 by Sergey Alexandrovich Kryukov
Probably you need to improve your search skills. This cipher is found much easier than most other things. Please see:http://en.wikipedia.org/wiki/Serpent_%28cipher%29[^].The implementation is also easy to find. For example, Serpent is a part of...
23 Sep 2015 by CPallini
Your scenario is not clear. Are you getting an error because you have included the "windows.h" header file? As far as I know you can't do that (because such a compiler works only with the goldie-oldie DOS).I would suggest you to get a more updated C++ compiler (there are many freely available...
27 Sep 2015 by Member 12014914
Hi, I'm new and we've got an assignment to make a program that will accept 10 int and prints the sum of all odd nos and product of even nos. entered. My problem output error occurs everytime I enter a 2 digit number and 2 digit number with zero. Here's the code my friend and I did. Note: we...
30 Sep 2015 by Member 12014914
I wanted to display the gross sales, salary of each salesperson and determine how many earned salaries in the following categories$100-$500$501-900$$900-above.Each salesperson(there are 10) receives $100 plus 10% of his gross...
30 Sep 2015 by Patrice T
You will not learn C language by asking every single detail as you encounter a problem .You really need to follow a few tutorials they are here to teach you how things works, you are not to follow blindly, you have to try to understand why things are done the way they are shown, to you.For...
31 Oct 2015 by Suvendu Shekhar Giri
If you know the program is very simple then you don't need to be an export. We don't do homework here. It's your assignment , please try yourself and if you get any issue or stuck somewhere then comeback here and ask the specific question. Then only we'll be able to help you.Even you...
31 Oct 2015 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
6 Mar 2016 by Ãddiçted Šhŕwñ
when i input a sentence (question) string from console ,it doesnt take the whole sentence rather takes only word as a ( q.ques ) code #include#include#include#includevoid main(){ struct quiz//structure for storing questions{ char...
6 Mar 2016 by Patrice T
You should learn to use the debugger as soon as possible. Rather than guessing what your code is doing, It is time to see your code executing and ensuring that it does what you expect.The debugger allow you to follow the execution line by line, inspect variables and you will see that there...
6 Mar 2016 by Richard MacCutchan
That is because cin only reads the next token. If you want to read the entire sentence then you need to call cin.getline. See basic_istream::getline[^] for full details.
27 Mar 2016 by Member 12419036
A program that will create a movie seat reservation. The program will display the summary seats and its status. The user will be ask what seat no. to be reserved, then it will go back again to the summary to display the updated seat status. If the seat no. is already reserved then it will prompt...
27 Mar 2016 by OriginalGriff
"I have an algo in mind but I can't put it into code."Well, then get some paper and a pen and follow your algorithm manually.The paper is the variables you need, and you are the code - so write down each step of what you have to do to make it work yourself.Then it should be obvious what...
3 May 2016 by George Jonsson
First of all, don't assume everyone knows what you are talking about. We can't see your monitor and we can't read your mind.Add an explanation of what it is you want to do and add references to inform people who is not familiar with your specific topic.You are the one who wants help, so...
11 Jan 2017 by Member 12944601
the problem is that I have created the background using graphics in turbo c++ now while I have to move a bullet using for loop but the thing is that the bullet is making a bean while moving I have to clear that so I have used cleardevice but it clears the background. so plss help meWhat I...
22 Jul 2017 by OriginalGriff
The same way you approach any problem: Specification, design, development, test, release. First read the question your tutor set very carefully - they normally contain nearly everything you need to know to write the answer. Then re-read your course notes - that should fill in the blanks. Then...
2 Sep 2017 by CPallini
Piebald is right: Quote: if( marks>=3) { clrscr(); cout
2 Sep 2017 by Patrice T
Advice: use proper indentation in your code, it helps reading the code and helps spotting problems like yours. Programmer's text editors have this feature: Notepad++ Home[^] UltraEdit | The Original Text Editor[^]
7 Sep 2017 by rudy-peto
I have a map of a war game. It represent like this .## #.. #.a Assuming '#' is mountain, '.' is empty land, and lowercase alphabet is an armies. Armies could not travel between region that enclosed by mountains. And armies can only move up, down, left and right. Above example shows that armies...
7 Sep 2017 by OriginalGriff
First, identify the separate regions. These are spaces that are made up of "." or alphabetic characters that touch either vertically or horizontally. So identify the regions, then locate the armies and find out which region they are in. Since your regions are irregular, there are two ways to...
7 Sep 2017 by Patrice T
This is HomeWork, so no code, just hint. You need to think mechanically. How you do manually: 1) Draw the map 2) Find an army 3) colorize neighbor cells that available and propagate the colorizing until there is no more available cells in region or until you encounter the other army. 4) The...
28 Sep 2017 by Member 13434684
#include #include void main() { clrscr(); printf("any random message"); getch(); } What I have tried: i have tried to, open exe files after the programs in turboc++ are compiled and saved, but it doesnt run as it says that windows cannot open this application. any such exe...
24 Feb 2018 by Member 13694445
I have two separate source codes and I want to implement them together like the first screen and then another screen in turbo c++. how do I do that?this is the first part/program that i want to interconnect with my second program/code. #include #include #include...
24 Feb 2018 by KarstenK
You can do it by using a start menu in the main-function, so you can choose which subroutine to use. char c = 's';//some value while( c = 'x' { // make some screen output to explain what to do c = getchar(); switch( c ) { case '1': subRoutine1(); break; case '2': ...
20 Oct 2020 by Member 14970986
Install vdos and use your application within it.
17 Jun 2021 by Richard MacCutchan
Please see my Solution 1 at Write a VB code in visual studio[^].
30 Sep 2021 by OriginalGriff
The way I'd do it is with a simple function: pass it the two guesses and it returns a string. Inside the function, I'd use a 2D array of char pointers, and use the inputs as the two indexes. the string is the result. Convert 'S', 'R', and 'P' to...
7 Nov 2014 by Ullas_Krishnan
This is only for students who are developing mini projects with Turbo C / C++ Compiler. This example may help you to get an idea in submitting your mini projects with stunning user interface experience with Mouse click events.
28 Sep 2021 by Richard MacCutchan
You have still not completed your previous assignment at How to create program for c++turboc[^]. As already advised, read the question carefully and start thinking about how you could solve the problem. No one here is going to write your...
25 Mar 2013 by Style-7
Try this:_asm{ mov eax, #FFFF; ....}http://www.cs.virginia.edu/~evans/cs216/guides/x86.html[^]http://static.patater.com/gbaguy/x86asm.htm[^]
3 Nov 2014 by Ullas_Krishnan
How create a Splash Screen in C++ Program (TurboC) in DOS Mode..
25 Mar 2013 by Member 9940953
I am a novice C/C++ developer still in college. One of the topics that I would like to explore is the inline assembly that C language has. However, I have not been able to locate any resource (via google) that teaches me how to use inline assembly in the Turbo C IDE. I am using Turbo C as it is...
11 Jun 2015 by BD Star
This is a mini project (Tic-Tac-Toe game) for Turbo C / C++ compiler.
2 Aug 2013 by vishal deb
Hi allI am trying to remove consecutive blank space by single blank space but getting error by this small line-ch=''This is what I have done till now-#include #include #include void main() { char ch; int count=0; ...
2 Jan 2017 by Jochen Arndt
It ain't work this way here. We don't write code on demand.If you have a specific problem with your code, show us the relevant code parts and describe the problem. Then we might can help.Quote:And plz tell the answer as fast as possible because i have to submit itThis is not helpful. It...
2 Jan 2017 by Afzaal Ahmad Zeeshan
There is no urgency here, and we do not provide free homework services. If your instructor needs you to submit this work, then it is your duty to do so. If you have no idea, then talk to your instructor so that he can help you out with C++ programming. If you tried using C++, then submit...
2 Jan 2017 by Patrice T
We do not do your HomeWork.HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them. Any failure of you will...
29 Jan 2013 by K4Sh!F
Here is what my project does:Language: C++Once the system has successfully logged-in, and this software that I am making is made to run or directly at start-up, if the user incidentally presses any of the pre-defined keys, the following function runs "w" ===> MS Word Document "b" ===>...
3 Apr 2015 by Member 11578328
Change Your Settings in OPTIONS->LINKER->LIBRARIES as follows:[ ] Container Class[ ] Turbo Vision[X] Graphics library[X] Standard Run TimeHit OK
30 Sep 2021 by xtianrtiaga
Program that will simulate the Paper, Rock, Scissors game. Two players should be able to either P, R or S then the program shall determine who the winner is and state why he wins based on the following criteria Paper covers Rock Scissor cut...
9 Jan 2012 by nonson black
I was Trying to ,make this explorer ....I am using dir command of dos to direct my data towards a data file and then read and displayThe problem is it works for only the current working directory as we move back by using "cd .." it start showing the error invalid directory though it makes...
2 Aug 2013 by vishal deb
OK Thank you every one for considering my problem. I got the solution from http://cbsecsnip.in under question No. 15 Write a program that reads a text file and creates another file that is identical expect that every sequence of consecutive blank space is replaced by a single space.here is...
3 May 2016 by Member 12493644
I need solving algorithms TRAX game.The algorithm implement Fpga I want on board.What I have tried:i can alguethim Transform to vhdl source
22 Jan 2017 by Member 12962004
//This program is used to control a robot using a app//Error Code Chart: Code 01; Turnradius is higher than Speed; Code 02; Speed is higher than 255;#define in1 5 //L298n Motor Driver pins.#define in2 6#define in3 10#define in4 11#define LED 13int command; //Int to store app...
22 Jul 2017 by Member 13323123
How to make a program in turbo c++ using class to get 5 students details -(5 subject marks,name,rollno)? What I have tried: How to make a program in turbo c++ using class to get 5 students details -(5 subject marks,name,rollno)?
28 Sep 2021 by chanx3
Write a program that will calculate and show bills of the Electric Company. The rates vary depending on whether the use is residential (R), commercial( C) , or industrial (I). Any other code should be treated as an error. The program should...
16 Sep 2010 by sureshpathi10
I need TV.LIB file for my TURBO C ... :sigh: I can't execute my graphics program :(( with out this file. I'm getting erro like "unable to open tv.lib" :mad:Please help me out of this issue.. if you have this file, please send it to [email address removed].Thanks in Advance, :-\...
4 Mar 2013 by david red
Hi!My homework (database course) is write a program: Setup unordered record file (like simple database), Features: insert, delete, modify and find record. please help me! thank a lot!
20 Dec 2014 by Member 11325681
can i do it? any soft to help me out i made a soft n turbo c++ nd wana start in windows 8
25 May 2015 by rudy-peto
i have googled about serpent algorithm and i didn't found anything that can get me through to the calculation. What is serpent algorithm exactly? why so difficult to get the calculation? any reference?Thanks,-Rudy
5 Mar 2018 by Member 12005738
hii sir ,i will implement the mini project for calendar then i will run program so his should be error related header file & i will implement the project in turbo c++ software. plz give me alternating option in this header file.
25 Feb 2018 by Member 13694445
i want to include graphics to my project but i am getting many errors.here is a small part of my program. #include #include #include #include #include int password(); void addrecord(); void viewrecord(); void editrecord(); void...
5 Mar 2018 by Member 13710119
Turbo C++ don't contain the directory by default. You can use some other compilers for your project or you can the edit the compiler and add the directory to it. For doing that, go to your compiler files and near one the most used file named 'BIN' you will find a file named...
5 Mar 2018 by CPallini
Don't use turboc++, it is obsolete. There are many freely available modern C++ compilers for Windows.
28 Jun 2021 by LEONARDO MIGUEL SANCHEZ RAMOS
Hola a todos. Soy un nuevo usuario de C++. Al compilar el código me arroja el error FUNCTION SHOULD RETURN TO A VALUE He probado utilizando #include int main() { ... return 0; } al hacer eso no figura el error pero tampoco puedo correr el archivo...