Friday, July 31, 2009

In my college turbo c++ has a large output screen.but in my laptop the output screen is small.can get 1st one?

what should i type on the search engine to find the one with larger output screen?

In my college turbo c++ has a large output screen.but in my laptop the output screen is small.can get 1st one?
Maximize your screen simple.
Reply:Check properties on your shortcut to the ide , and under options see if you can adjust you screen from windowed to full screen. If you don't have that option tab then create a shortcut from the ide and see if it appears. Also check you config files for you ide to see if there is an option.





Sounds like it's running on a shell, therefore the shell's properties must be set prior
Reply:try Alt+Enter

violet

Having problems with Turbo C++ 3.0!! Help?

Here's my code:





#include%26lt;iostream.h%26gt;


void main()


{


cout%26lt;%26lt;"Hello World";


}








I wrote the program, compiled it succesfully without any error but when i run it the window is displayed only for a split second and then vanishes.

Having problems with Turbo C++ 3.0!! Help?
try


#include %26lt;iostream.h%26gt;


#include %26lt;conio.h%26gt;


void main()


{


cout%26lt;%26lt;"Hello World";


getch();


}





if it doesnt work , try without ; in getch , i mean getch()
Reply:U should have included another header file #include%26lt;conio.h%26gt; which would have helped the screen to display its contents properly.


Using graphics.h turbo c... help!!!?

I was makinga program using graphics header. But when I compile it, all I got is a quick message saying that there's BGI error:Graphics not initialized (use initgraph)... Is there any explanation about this?? What will I do to solve this problem? I already searched other search engines but none of them worked...Pls. help me...

Using graphics.h turbo c... help!!!?
"None of them worked"?





I found this on my first search on Google:





http://www.mycplus.com/Programming-News-...





I think you'll find that the searches work just fine - it's your search technique that "doesn't work".





Rawlyn.
Reply:oh don't worry.. its just that u forgot to mention the complete path of the bgi folder. even if u did, u might have forgotten about escpae sequences. so, if the path is c:\tc\bgi you should give "c:\\tc\\bgi"





once u 'make' the program and convert to exe file, u can copy it to the bgi folder itself and run even if the path is changed(or different in some other comp)..but outside the folder, ur program checks for the exact path u give.
Reply:You should make sure that the you point to the 'BGI' directory properly depending on where you install you C compiler. From the codes below, you must make sure that the 'BGI' derectory is in F:\\tc\\bgi.





int gd= DETECT, gm, errorcode;


initgraph(%26amp;gd,%26amp;gm,"F:\\tc\\bgi");





Free C/C++ codes here: http://smartcoder.awardspace.com/categor...








KaBalweg


http://smartcoder.awardspace.com


I am learning turbo C++ can you send me some tips to make games in turboC++??????????????????????...

This is Turbo C++ 3.0 for DOS?


Well, if you want graphics %26amp; sound, you'd better move over to Linux or Windows programming.





Anyway, the best piece of advice is to start off slow. The biggest problem is that programmers often choose a project that is too ambitious. This usually results in having the game not made at all.





I think that you should start off with text games. Every single game can be put into text (even 3D ones). The code for handling the main data %26amp; program logic is almost the same whether you output information in graphics or in text.





A RPG game can be put into text easily. The code %26amp; data for keeping track of player statistics, player location, battle algorithm, and so forth is the almost same whether you're using hi-res graphics or not. In fact, for every game that you make, it is best to first write it with simple text output. This allows you to modify algorithms and debug your programs easily. Once you're satisfied with everything, then you expand upon your program by adding the graphics code. (Worry about the sound %26amp; music after everything else is debugged.)





Last, don't try to write out your program all at once. A program is divided into several sections of code. It is better to first debug each section of code (make small separate programs if you have to), rather than writing out everything and worrying about debugging each section later.

I am learning turbo C++ can you send me some tips to make games in turboC++??????????????????????...
Don't worry about DirectX that is Microsoft stuff.


OpenGL is a cross-platform standard.


http://www.opengl.org/


and it comes with a book


http://www.opengl.org/documentation/red_...


If you search for openGL tutorials then you will find many.
Reply:Sure... learn DirectX!! Or OpenGL and SDL.


Okay, actually learn all 3.


What is the turbo c program that display and add all the prime numbers from 1-N.?

#include%26lt;stdio.h%26gt;


#include%26lt;conio.h%26gt;


void main()


{


int n,i,f,j;


int s=0;


printf("enter the value of n");


scanf("%d",%26amp;n);


for(i=2;i%26lt;=n;i++)


{


f=0;


for(j=2;j%26lt;i;j++)


{


if(i%j==0)


{


f=1;


}


}


if(f==0)


{


printf("%d\n",j);


s=s+j;


}


}


printf("the sum is %d",s);


getch();


}

What is the turbo c program that display and add all the prime numbers from 1-N.?
It's a small program, and an easy piece of homework. Homework is given to you for a reason - to help you learn. If you rely on other people to do your work, you will learn _nothing_ in the process (other than the ancient art of being a lazy freeloading s.o.b.).

peony

Setting up opengl in new turbo c++(turbo explorer)?

i'm trying to learn opengl. I found an old code in this borland site


http://bdn.borland.com/article/10528 but it's not working. Library names are wrong. i dropped the vcl part. For example %26lt;vclClasses.hpp%26gt; to %26lt;Classes.hpp%26gt; ,but it's still not working. Do you have any suggestions

Setting up opengl in new turbo c++(turbo explorer)?
try this site for OpenGL


http://www.allanpetersen.com/opengl.htm





or just go to http://sourceforge.net and find OpenGL there


Fibonacci series using turbo-c?

This is compelete source for this program, which get number and show calculated numbers up to the entered number





#include%26lt;stdio.h%26gt;


#include%26lt;conio.h%26gt;


main()


{


int m=0,n,s=1,t=0;


clrscr();


printf("\nPlease Enter Number:");


scanf("%d",%26amp;n);


n-=1;


printf("\n1");


for (m;m%26lt;=n;m+=0)


{


m+=1;


if (m%26lt;=n)


{


t+=s;


printf("%5d",t);


}


m+=1;


if (m%26lt;=n)


{


s+=t;


printf("%5d",s);


}


}


getch();


return 0;


}


I want a TURBO C SOFTWARE for my ENGINEERING COURSE withFREE DOWNLOAD what to do?

http://www.programmersheaven.com/search/...





Try this


Wat is d difference between turbo c and turbo pascal?

if u know pls tell me

Wat is d difference between turbo c and turbo pascal?
c was designed using pascal, they are similar but the're two different programming languages.


pascal in older, and c is more recent and frequently used today.
Reply:http://www.pctoolmag.com/116/software-de...
Reply:turbo c is a compiler used for c language and turbo pascal is a compiler used for pascal language
Reply:Turbo Pascal was the first Turbo Pascal version to support the Intel 8087 math co-processor (16-bit PC version). It also included support for Binary Coded Decimal (BCD) math to eliminate round off errors in business applications. Turbo Pascal also allowed you to build larger programs (%26gt; 64k bytes) using overlays. The PC version also supported Turtle Graphics, Color, Sound, Window Routines, and more.





Turbo C provided everything you needed, all of the tools, included in one environment. Turbo C provided tight integration between the editor, compiler, linker, and debugger. This was the first version of Turbo C to include the integrated debugger. The professional version also included the standalong versions of Turbo Assembler and Turbo Debugger.
Reply:They are two different computer languages

long stem roses

Can anyone send turbo c++ software with basic programs to me(karthickk3@gmail.com)?

ok i will pls send me ten points

Can anyone send turbo c++ software with basic programs to me(karthickk3@gmail.com)?
Go to Borland site. Among "products" you will find "antiques" and there is TC++. Download it for free, together with some example projects.


When i quit Turbo C++ IDE, my PC hangs out. I have Windows XP.?

First, unless you have a specific reason for using Turbo C++, I'd check into some other free C++ compilers that are more up to date. One that I'd reccommend is Bloodshed's Dev-C++. It works really well and is a nice IDE(Integrated Development Environment, editor and such) and both MinGW and Cygwin compilers are included. Look around a bit at the URL below, they have a *LOT* of programmer's tools, articles and links to other stuff there. I hope this will help you out.


Compilation steps in turbo c++?

Can any one tell me compilation steps in order


1.preprossing.


2.lexical


3.linker.


4.compile.


5.execute.

Compilation steps in turbo c++?
These are called the C++ compilation model:





1) Preprossesor: The Preprocessor accepts source code as input and is responsible for


- removing comments


- interpreting special preprocessor directives denoted by #.





2) Lexical: More relevent to the keywords being used in the program. Lexical pertains to dictionary of C++ keywords that are predefined and using it as variable may result in erroneous errors.





3) Linker: If a source file references library functions or functions defined in other source files the link editor combines these functions (with main()) to create an executable file. External Variable references resolved here also.





4) Compiler: The C++ compiler translates source to assembly code. The source code is received from the preprocessor.





5) Execute: Execution of a program is the final outputing-seeking task that involves all the above levels of compilation, i.e, a program execution goes through preprocessing, lexical analysis, linking and compilation stages to produce a meaningful output!
Reply:1


2


4


3


5


Where to download turbo c++ (old version)?

Hi sachin g,





TURBO C++ 3.0 Build 0709


http://jlbc.skycn.com/down/WY_TCPP30E_B0...


http://down.banma.com/cjn.php?sid=1%26amp;did=...


http://down.banma.com/down.php?sid=2%26amp;did...





Good Luck!





LYN


Toronto,ON

Where to download turbo c++ (old version)?
cnet.com

gifts

How to download turbo c from net to my system?

www.sandroid.org/TurboC/








gazy...


Need help in Turbo C (no plus plus) .?

Right now I'm creating a program for the periodic table of elements . And i have a problem linking one screen to another .How can i put the "press any key to continue . . ."and have its effects ?? Any sample programs will really help me.

Need help in Turbo C (no plus plus) .?
you can use the following lines:





printf("Press any key to continue");


getch();





The program will wait for the user input.When the user presses a key it will move to next line of the code.
Reply:you can use the printf function to show your message. use gotoxy function to locate your screen cursor...


use getch() function to get any key press from keyboard...

innia

How to use turbo c compiler?

in Turbo C compiler use these short cuts


Alt+F9 for compilation


Ctrl+F9 to run


Alt+F5 to debug


F7 to debug





u can find more in 'Help' menu

How to use turbo c compiler?
Hay friend, using Turbo C compiler is very easy. To use Turbo C compiler, first write your C progame and then using mouse cursour click on compiler. And select compile option it will show you errors in your program and in which line it is present. So use it and for more question send your question to "www.sourabhmhaisekar1@yahoomail.com" So seaaa!
Reply:Hello,


First unzip the file and then you will find tc file with icon just double click and then set the path in lib and directories then write a program complie it.
Reply:Use Dev-C++. Its better than any other compilers.





Turbo C has many drawbacks.





Use it. Because it uses GCC 4.0. which is also used to compile BSD and MacOS X operating saystems.
Reply:Refer This site:





http://www.acms.arizona.edu/education/op...


Is Borelands Compiler different from turbo c++ in sence of source code & does turbo can't run in xp but in 98

Last I looked, Turbo c++ was a Borlan compiler.





Don't have a clue about the XP issue. Haven;t been folowing their upgrades (Borlan).


Actually i copied turbo c in vista but when i open it ,it gives a msg. that ,it does not support full screen?

Yeah vista will not support full screen dos window, but i guess the other function of turbo c should work properly.


How to download turbo c++ from the net...Please help...?

If you are looking for the Old version...


http://dn.codegear.com/article/21751


has a link to download it.

gerbera

I just download turbo c++. could u tell me wat should i write in the directories feilds under OPTION?

the first two fields are include and library, i filled them


but the last two ask for output directory and source directory, output is still understood but source will include which directory





when i compile programs, it says 'main' is unindentified, wat i suppose to do without main

I just download turbo c++. could u tell me wat should i write in the directories feilds under OPTION?
dunno


I make programs in c++ on turbo c++ compiler , the same programs don't run in visual studio 2005?

What should i do?I am not able to run the simplest of all programs that is to print hello world , please help me

I make programs in c++ on turbo c++ compiler , the same programs don't run in visual studio 2005?
Copy you code into the Visual Studio IDE and recompile.





In .NET, as someone attempted to note earlier, the Common Language Runtime actually is the language used for the program, not Visual C++. Visual C++ is really just a scripting language in the .NET Framework.
Reply:How will it run ?





Visual studio 2005 is .net framework. and yes it supports c++.





But the code written in turbo c++ must support MSIL.
Reply:You create project and add your "Hello World" program.


it should run..


if u give exactly what is happening can help more


Problem in compilation or running?
Reply:turbo C++ use some header files llike %26lt;graphics.h%26gt; and a like while this header files won't work directly on visual c++ so if u are using such header files keep working on turbo


peace


How to run turbo c++ in full screen mode in windows xp?

i am using intel core 2 duo 1.6 GHz. ram is 1 gb, still i m not able to run it in full screen mode...i tried alt + enter

How to run turbo c++ in full screen mode in windows xp?
there is no other way.


first press alt


then press enter


How to download turbo c++free from internet to my pc?

http://www.turboexplorer.com/mirror

How to download turbo c++free from internet to my pc?
I will send u.





contact Me


csmahesha419@yahoo.co.in
Reply:u can go on this link may help u





http://dn.codegear.com/article/20841
Reply:send me ur mail id , i will send u.................

rosemary

Why does my Turbo C compiler produce a fatal error whenever I use a pointer?

Need help.

Why does my Turbo C compiler produce a fatal error whenever I use a pointer?
change the memory module to huge while compile ur code. try simple codes like





int main()


{


int *p;


p = (int *) malloc (sizeof(int));


scanf("%d", %26amp;p);


printf("%d",*p);


}





u can find differ, i think...
Reply:U might be using the pointer wrongly.... post a sample code here..


I want to install turbo c++ in my p.c.i have no idea about how to do it?

i mean how much the software would cost %26amp; where can i get it?


please help me....i'm in a remote village where no one is good enough to help me.please help

I want to install turbo c++ in my p.c.i have no idea about how to do it?
I would reccommend you get the Microsoft Visual Studio C++ Express. It's free and will allow you program in a nice Interactive Development Environment. Installation is straight forward.


Turbo C++ is always a step behind but pretty good
Reply:hey search from www.isohunt.com and download the torrent file and open on utorrnet software from www.utorrnet.com and after download the file install n used .........








http://alamtips.blogspot.com


I want turbo c++ for programming.From where i can get that?

Microsoft Visual C++ Express 9 is free on the microsoft website. It is a bit complicated at first, but it is really nice once you get the hang of it.





For another free compiler/editor, I would suggest Dev C++. Very light, very easy to use.

I want turbo c++ for programming.From where i can get that?
I personally like code::blocks IDE using the GCC compiler. I recommend the one that comes with miniGW.





http://www.codeblocks.org/downloads/5
Reply:Was there specific reasons for Turbo C++ vs others?





I've had good luck with the g++ compiler that comes under Cygwin. Cygwin gives a bunch of Linux tools that run on a Windows machine.





If you want free visual C++, Microsoft has a free version of Visual Studio.





I'm not really familiar with Turbo C++ though.
Reply:check this


http://www.masm32.com/board/index.php?PH...





http://www.freewr.com/freeware.php?downl...
Reply:Wat i understood from your question was that you probably needed software of turbo C++...If this is right then check out this website.....http://dn.codegear.com/article/21751.......
Reply:chat with me on yahoo messenger and you get a turbo c++ programming by using file transfer.


or


mail me on surguja@yahoo.com


Ritesh


Error in turbo c++ programming.?

i have errors in the following programme after compiling.


#include%26lt;iostream.h%26gt;


#include%26lt;conio.h%26gt;


int main()


{ clrscr();


char ch='A';


int num = ch;


cout%26lt;%26lt;"The ASCII code for"%26lt;%26lt;ch%26lt;%26lt;"is"%26lt;%26lt;num%26lt;%26lt;"\n";


cout%26lt;%26lt;"Adding 1 to the character code :\n";


ch = ch+1'


num=ch;


cout%26lt;%26lt;"The ASCII code for"%26lt;%26lt;ch%26lt;%26lt;"is"%26lt;%26lt;num%26lt;%26lt;"\n";


return 0;


}


when i runs this programme the error comes-LINKER ERROR:UNABLE TO OPEN FILE "TCCLASSLIB".

Error in turbo c++ programming.?
I think u should paste this in new page..

wallflower

How can I install Turbo C/C++ in kubuntu?

I believe that it's for Windows only, although you should be able to run it in WINE.





Pretty much every Linux distro comes with the GNU compilers, though. I generally do my coding in emacs and then use gcc to compile it.


Why cant Turbo C work in my windows xp pc ?

Ive run it but after i wrote the program and then pressed ctrl+f9 it just paused...i cant see what my program actually look like.Can anyone help me ?

Why cant Turbo C work in my windows xp pc ?
You have a problem, but not the one you think you have. And I can explain what is going on, though I can't remember the exact key strokes to solve it.





In the Turbo C and / or Turbo C++ IDE, you can compile automatically but you won't see any output from a program or compiler until you switch to the output screen. Any program that you run or build and execute will be running in a shell, not the main IDE screen. You must look at the IDE menu options and find one that allows you to "Switch to Output Screen" or "Switch to Shell". Sorry that I don't remember the exact phrase and where it is located, but when you find it, you'll know it.


Could I download the Turbo C/C++ Compiler Free from internet.if yes from where and How.plz reply soon n detai?

hey u can download C-Free Compiler from


www. download.com





You can do both C %26amp; C++.


It has good %26amp; easy to use graphical user interface.





Here is the download link:


http://www.download.com/3120-20_4-0.html...

Could I download the Turbo C/C++ Compiler Free from internet.if yes from where and How.plz reply soon n detai?
yes u can from download .com you get many software 4 free...........
Reply:I didn't know whether it can be downloaded from net, but i have the software. if u like i can send it u. i need ur mail id.





ramajeyam@hotmail.com
Reply:tell Me your Email ID i will send U,


other wise


mail me ur information on razi_software@rediff.com





lik email Id if u lik





ok


best of luck
Reply:ya , U can download it freely from the net. U can search for "TurboC download" on google for it.





or Visit this site


http://www.programmersheaven.com/downloa...
Reply:ok


Where can i download Turbo C/C++ compiler for free?

Windows Version

Where can i download Turbo C/C++ compiler for free?
From here:


http://www.codegear.com/Default.aspx?tab...





Thanks,


Gabriel Topala


http://www.gtopala.com
Reply:This is better





www.bloodshed.net

hollyhock

What is ANSI c++ and Turbo C++?

C++ is a language that was invented by Bjarne Stroustrup in 1983.





Turbo C++ is an implementation of the language by borland which was created before a common standard was adopted. It was fairly popular until several years ago.


In 1998, a standard was adopted for C++ : ANSI C++, but for several years, compilers did not comply fully with the standard. There are now several compilers who are fairly compliant.

What is ANSI c++ and Turbo C++?
they are one of the programming languages
Reply:programming languages. Other examples of which are visual basic, pascal


Error in turbo c++ programming.?

i have errors in the following programme after compiling.


#include%26lt;iostream.h%26gt;


#include%26lt;conio.h%26gt;


int main()


{ clrscr();


char ch='A';


int num = ch;


cout%26lt;%26lt;"The ASCII code for"%26lt;%26lt;ch%26lt;%26lt;"is"%26lt;%26lt;num%26lt;%26lt;"\n";


cout%26lt;%26lt;"Adding 1 to the character code :\n";


ch = ch+1'


num=ch;


cout%26lt;%26lt;"The ASCII code for"%26lt;%26lt;ch%26lt;%26lt;"is"%26lt;%26lt;num%26lt;%26lt;"\n";


return 0;


}


when i runs this programme the error comes-LINKER ERROR:UNABLE TO OPEN FILE "TCCLASSLIB".

Error in turbo c++ programming.?
Computer Tutorials, Interview Question And Answer


http://freshbloger.com/
Reply:I can't believe people are still using Turbo C++.





I think you are getting that error because you are missing some library files that the compiler uses by default. Can you get any program to work?
Reply:In compiler settings, find path definition and add path to the required library.
Reply:Ensure that there is a file called TCCLASSLIB among the files in Turbo C++ Package.....If not get the software again installed on ur PC...
Reply:Hey, the first game I ever wrote was in Turbo C++ 3.0! Of course, that was in '97....





Did you copy %26amp; paste this code? There's a syntax error:


ch = ch+1'


It should probably be:


ch = ch+1;





I've seen weird linker errors come up if it can't compile, so make sure the compile stage completes successfully. Other than that, make sure that you're correctly including the library.





I agree with Machael's statement about the antiquated Turbo C++, however. You may want to look into using another compiler. There are several free ones out there, such as Bloodshed (which uses gcc) or Visual Studio 2005 Express Edition.





-Rez


I installed turbo C Language in computer but that does not run any one can help me?

Maybe i'm mistaken, but isn't turbo C, really old, like really really old? In a way that it may not even run on current version of windows?

I installed turbo C Language in computer but that does not run any one can help me?
Does it require GCC to be installed to in order it can be running properly?


How can I install Turbo C/C++.Its processing step?

I need the steps of installing process.

How can I install Turbo C/C++.Its processing step?
no need to install it....


just copy the files in a particular folder and all you have to do is execute tc.exe and from there you need to do the settings....











All i need is assurance of some fruitful programming...:))
Reply:Well if u have a setup just click on the setup..it will automatically install it in the C: drive ..if it is the primary drive having the O.S..


After installing ..u just go to the C drive ...--%26gt; Turbo--%26gt;Bin--%26gt;TC..


the application start...





If u r using the Windows version ..then u don't have to go to the folder....just go to the start menu and click on the TC++4.5(if it is a 4.5 version.)
Reply:Is it the dos version?
Reply:You can install it using the installer file? Its just one exe file in most cases. The Borland TurboC++ is pretty old, you may want to try newer GUI/IDEs.


I used it in my school days too.





What kind of files for installation do you have right now? Better if you ask personally.. Cant do a tech session on yahoo answers !!
Reply:add me to know ur answer

cabbage

Help... in Turbo C?

can anyone help me how to create a program that will covert roman numerals to arabic.. please give me the complete source code... thanks... please dont suggest me to study it first..

Help... in Turbo C?
DECIMAL TO ROMAN


..hope you can figure out the reverse


check these sites ..


http://cboard.cprogramming.com/archive/i...


http://www.thescripts.com/forum/thread59...


http://www.koders.com/kv.aspx?fid=38CE0D...


#include %26lt;stdio.h%26gt;


#include %26lt;string.h%26gt;





/*


Known Roman numerals are:


I=1, V=5, X=10, L=50, C=100, D=500, M=1000


Anything greater is represented by appending '~'s.


Each '~' represents multiplication by 1000.





The length of the input is unlimited.


*/





static const char *rom[] = {


"", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX",


"", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC",


"", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM"


};





int main(int argc, char **argv)


{


size_t i, j, k, len, m, numdig;


const char *p;





if(argc != 2)


{


fprintf(stderr, "Usage requires one argument: "


"a decimal number to convert.\n");


return 0;


}


numdig = strlen(argv[1]);


for(i = 0; i %26lt; numdig; i++)


{


j = numdig - i - 1; /* reverse index */





if(argv[1][i] %26lt; '0' || argv[1][i] '9')


{


putchar('\n');


fprintf(stderr, "Invalid digit: %c\n", argv[1][i]);


return 0;


}





/* Add your algorithm here. How to determine


which element of the 'rom' array to


output?





It's all about mathematics. Think about the


values of:





argv[1][i] - '0'





j % 3





j % 3 * 10





j / 3


*/





}


putchar('\n');


return 0;


}
Reply:By all means no; don't study programming or c language as you are having enough trouble just with English :)





"please don't suggest that I study it first"


"please don't suggest, I study it first"


"please don't make the suggestion for me to study it first"





I understand that you may wish to see an answer so that you can learn how to write c and how to solve a simple problem. I would write it for you but I don't have half an hour to spare and you haven't said why, but you did say please and that counts for a lot.





If you are lucky some sod will cut and paste an answer from someone else's website as if they did it themselves.
Reply:If it is your assignment, hire a freelancer from websites like http://getafreelnacer.com/
Reply:if u dont wanna think about it, search for a freelancer


Question with turbo C.. Regarding if else statements.?

Ok so this is the problem.. "Make a program that will validate the prelim, midterm, pre-final and final grade of a student. Grades must not accept grades that are greater than 100 and less than 50. Compute for the semestral grade/average. Get the 20% of prelim, midterm, prefinal and 40% of final grade. If sem.grade is greater than or equal to 75 display PASSED otherwise FAILED." So that was the problem and this is a part of what i did:





printf("What is the prelim grade?: \n");


scanf("%d", %26amp;prel);


if(prel%26gt;100 || prel%26lt;50)


printf("Prelim Grade is not valid!!! \n");


else


printf("What is the midterm grade?: \n");


scanf("%d", %26amp;midterm);





Now my question is if the prelim grade is not valid and already displayed the GRADE IS NOT VALID, how can i go back to the source once i push enter once again? And what should i do to keep it from asking the grades until it receives a valid date which is not greater than 100 and less than 50...?? please help, i am almost out of my wits!! thanks.

Question with turbo C.. Regarding if else statements.?
First, when you are giving the user a choice that he must stay within a certain number, you have to lock him in with a while loop. Not an if statement.





scanf("%d", %26amp;prel);





while(prel%26gt;100 || prel%26lt;50)


{


printf("Prelim Grade is not valid!!! \n");


printf("Enter grade between 50 and 100: \n");


scanf("%d", %26amp;prel);


}





Do the same for the other.


Once you get VALID numbers, go on with the program to determine the rest.


Do one thing at a time, not all of it. Or you get errors and confusion.
Reply:use the goto statement





hell:


{


printf("What is the prelim grade?: \n");


scanf("%d", %26amp;prel);


if(prel%26gt;100 || prel%26lt;50)


{


printf("Prelim Grade is not valid!!! \n");


goto hell();


}


else


printf("What is the midterm grade?: \n");


scanf("%d", %26amp;midterm);


}


Help in Turbo C Program for Computing GWA (general weighted average)?

Instructions: Make a program that will compute for the GWA.





I have exams about this tomorrow for 30 points. To compute for the GWA, I have to multiply the grade to the unit (example: Computer Science Grade: 89 Unit: 1.5) the user will be asked to input the grade then the program will multiply it to the unit, add all then divide by all the units.





I hope I don't confuse you. Help will be greatly appreciated. Thanks!





x_O

Help in Turbo C Program for Computing GWA (general weighted average)?
Soupose You Have 5 subject (Math,CS,IT,PHY,CHM)


Now the unit is (1.4,1.5,1.8,1.6,1.2)


so the program will be -----------





int i,totalScore=0,totalUnit=0,scoreArray[5]...


int unitArray[5] = {1.4,1.5,1.8,1.6,1.2}


// now tacking the as input


for(i=0;i%26lt;5;i++){


printf("\n Enter %d th subject grade:");


scanf("%d",%26amp;gradeArray[i]);


}


//now calculate


for(i=0;i%26lt;5;i++){


scoreArray[i] = gradeArray[i]*unitArray[i];


totalScore += scoreArray[i];


totalUnit +=unitArray[i];


}


printf("Avg: %d", totalScore/totalUnit);


What is Turbo C++?

history, definition, uses

What is Turbo C++?
Turbo C++ is a Borland C++ compiler and Integrated Development Environment (IDE), famous for its high compilation %26amp; linkage speed - hence the term "Turbo". It was a part of Borland's highly popular family of compilers including Turbo Pascal, Turbo Basic, Turbo Prolog and Turbo C. Turbo C++ was a successor of Turbo C, expanding the compiler similarly to how Turbo Pascal 5.5 added object functionality to the earlier Turbo Pascal versions. Unlike Turbo Pascal, however, Turbo C++ always adhered to C++ language standards of its time. The MS-DOS product was never capable of compiling ISO-standard C++, however, because development on it was discontinued before the standard was completed.
Reply:it is a compiler of C language, that has been made by Boar-land company.
Reply:For more info, including what you're asking, please check: http://en.wikipedia.org/wiki/Turbo_C++





Technically, it allows you to create computer programs, classes, etc...

phlox

Program in Turbo C is not working..?

after compiling its coming that "cant open STDIO.H file" but i hv tht file stored in my folder..wat to do?? need help..

Program in Turbo C is not working..?
check your path make sure it's pointing in the proper location. If you want another compiler check this out www.thefreecountry.com
Reply:How did you include the stdio.h. Was it as below:


#include "stdio.h" to search in current path or #include%26lt;stdio.h%26gt;





Secondly I suggest you move to gcc compiler rather than Turbo C which is not common industry standard.


Error in turbo C program: "illegal use of floating point in function main"?

I was trying to write a program. i finished and it's giving me this aquard error. does anyone know WHAT IT MEANS?

Error in turbo C program: "illegal use of floating point in function main"?
No one can help you if you don't post the source code and the exact error (with the line number).
Reply:Here's some sample code that will generate the "illegal use of floating point in function main" error in a specific environment...can you see the error?





int dollar, cents;





printf("Enter the amount of change you need: ");


scanf("%lf", %26amp;dollar);





... the coder has told scanf() to scan a float "%lf" into an integer address (%26amp;dollar).





You might look for a similar mismatch in your code. Like another poster stated, hard for us to tell if you don't show the code.


In a turbo c program what are the codes of tic tac toe?

Here you go, enjoy!!!


Help in Turbo C++ v 4.5:?

Write a program to display the following:





4 4 4 4


3 3 3


2 2


1


2 2


3 3 3


4 4 4 4

Help in Turbo C++ v 4.5:?
#include %26lt;stdio.h%26gt;





int main (int argc, char *argv[])


{


printf ("4 4 4 4\n");


printf ("3 3 3\n");


printf ("2 2\n");


printf ("1\n");


printf ("2 2\n");


printf ("3 3 3\n");


printf ("4 4 4 4\n");


}

verbena

Sample program+turbo c +if statement+if else if statement (nested if)?

please help me.....

Sample program+turbo c +if statement+if else if statement (nested if)?
if{you are reading this} then


congratulations;


else if {you are not reading this} then


read again from the top;


else


got it? i hope my syntax is right...


Program using turbo c++ an out put will be the zodiac sign and your age plus the day of birth?

the user will input the month of birth, date of birth and the year of birth

Program using turbo c++ an out put will be the zodiac sign and your age plus the day of birth?
Here are the type declarations and functions needed. I think you can handle writing the user-interface to get input and figure out how to determine the current date for inclusion in the getAge() function. Merry Christmas :








enum Day_of_Week


{


Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday


};





enum Month


{


January, February, March, April, May, June,


July, August, September, October, November, December


};





enum Zodiac_Sign


{


Capricorn, Aquarius, Pisces, Aries, Taurus, Gemini,


Cancer, Leo, Virgo, Libra, Scorpio, Sagittarius


};











enum Zodiac_Sign getZodiacSign(enum Month month, int day)


{


enum Zodiac_Sign sign;





switch (month)


{


case January :


if (day %26lt;= 19)


sign = Capricorn;


else


sign = Aquarius;


break;





case February :


if (day %26lt;= 18)


sign = Aquarius;


else


sign = Pisces;


break;





case March :


if (day %26lt;= 20)


sign = Pisces;


else


sign = Aries;


break;





case April :


if (day %26lt;= 19)


sign = Aries;


else


sign = Taurus;


break;





case May :


if (day %26lt;= 20)


sign = Taurus;


else


sign = Gemini;


break;





case June :


if (day %26lt;= 20)


sign = Gemini;


else


sign = Cancer;


break;





case July :


if (day %26lt;= 22)


sign = Cancer;


else


sign = Leo;


break;





case August :


if (day %26lt;= 22)


sign = Leo;


else


sign = Virgo;


break;





case September :


if (day %26lt;= 22)


sign = Virgo;


else


sign = Libra;


break;





case October :


if (day %26lt;= 22)


sign = Libra;


else


sign = Scorpio;


break;





case November :


if (day %26lt;= 21)


sign = Scorpio;


else


sign = Sagittarius;


break;





case December :


if (day %26lt;= 21)


sign = Sagittarius;


else


sign = Capricorn;


break;


}





return sign;


}








int getAge(int birth_year, int birth_month, int birth_day)


{


int age;


int year, month, day;





// I'm not going to populate year/month/day ... I'll leave that for you to determine


// today's date.





age = (year - birth_year);





if (month %26lt; birth_month)


{


// Our birth month is later in the year.


age--;


}


else if (month == birth_month)


{


if (day %26lt; birth_day)


{


// Currently our birth month, but our birth day is later in the month.


age--;


}


}





return age;


}








// Now the day of the week ... that's trickier. This should work for 1900-2099 :








enum Day_of_Week getDayofWeek(int year, enum Month month, int day)


{


int day_of_week;


bool is_leap_year;





is_leap_year = (((year % 4) == 0) %26amp;%26amp; (year != 1900));





day_of_week = ((year % 100) + ((year % 100) / 4));





day_of_week += day;





if (year %26gt;= 2000)


{


day_of_week--;


}








switch (month)


{


case January :


if (is_leap_year)


day_of_week += 0;


else


day_of_week += 1;


break;





case February :


if (is_leap_year)


day_of_week += 3;


else


day_of_week += 4;


break;





case March :


day_of_week += 4;


break;





case April :


day_of_week += 0;


break;





case May :


day_of_week += 2;


break;





case June :


day_of_week += 5;


break;





case July :


day_of_week += 0;


break;





case August :


day_of_week += 3;


break;





case September :


day_of_week += 6;


break;





case October :


day_of_week += 1;


break;





case November :


day_of_week += 4;


break;





case December :


day_of_week += 6;


break;


}





day_of_week %= 7;





return (enum Day_of_Week)day_of_week;


}
Reply:#include %26lt;dos.h%26gt;


#include %26lt;bool.h%26gt;


#include %26lt;ctype.h%26gt;


#include %26lt;conio.h%26gt;


#include %26lt;string.h%26gt;


#include %26lt;iostream.h%26gt;





struct DATE


{


DATE();


DATE(char*);


unsigned int day,month,year,l,count,


cday,cmonth,cyear,


dday,dyear;


char zodiac[12];


BOOL IsDate(char*);


void GetCurDate(unsigned int*,unsigned int*,unsigned int*);


BOOL FindDffrnce();


void FindZodiac();


BOOL Flag;


unsigned int dm(unsigned int);


};





// the constructor


DATE::DATE(char *newdate)


{


day = month = year = count = 0;


Flag = IsDate(newdate);


GetCurDate(%26amp;cday,%26amp;cmonth,%26amp;cyear);


if( cyear %26lt; year )


Flag = FALSE;


}





BOOL DATE::IsDate(char *newdate)


{


l = strlen(newdate);


unsigned long int number = 0;


int tn = 0;


if(l%26lt;6 || l%26gt;10) // format : DD/MM/YYYY or D/M/YY


return FALSE;


for(int i=0;i%26lt;l;i++)


{


if( (int)newdate[i] %26lt; 48 %26amp;%26amp; (int)newdate[i] %26gt; 57 )


if( newdate[i] != '/' %26amp;%26amp; newdate[i] != '.' )


return FALSE;


if(newdate[i] == '/' || newdate[i] == '.')


{// No month cannot have more than 31 days


if(count == 0 %26amp;%26amp; number %26gt; 31)


return FALSE;


if( count == 0 )


tn = number;


// There are 12 months :


if(count == 1 %26amp;%26amp; number %26gt; 12)


return FALSE;


// February cannot have more than 28 days:


if( count == 1 %26amp;%26amp; number == 2 %26amp;%26amp; tn %26gt; 28 )


return FALSE;


if( count == 1 ) // The months 4,6,9,11 cannot have more than 30 days


if( number == 4 || number == 6 || number == 9 || number == 11 )


if( tn %26gt; 30 )


return FALSE;





if( count == 0 )// allocate the days


day = number;


else if( count == 1 ) // allocate the month


month = number;


// the year never enters this loop!


if( !number )


return FALSE;


else number = 0; // back to ZERO





count++;


}


else


number = ((number*10)+(newdate[i]-48));


}


if( count %26lt; 2 )


return FALSE;


else


year = number; // year is never gone inside the main loop


return TRUE;


}








// gets today's date from the computer's BIOS


void DATE::GetCurDate(unsigned int* a,unsigned int* b,unsigned int* c)


{


struct date d;


getdate(%26amp;d);


*a = d.da_day;


*b = d.da_mon;


*c = d.da_year;


}





BOOL DATE::FindDffrnce()


{


if( !Flag )


return FALSE;


unsigned long int tot = 0;


unsigned int t1 = 0,t2 = 0;


dyear = cyear-year-1;


/* total days in input date */


t1 += day;


t1 += dm(month);


if( !(year%4) %26amp;%26amp; month%26gt;3 )


{


t1++;


t1 = 366-t1;


}


else


t1 = 365-t1;


/* total days in current date */


t2 += cday;


t2 += dm(cmonth);


if( !(cyear%4) %26amp;%26amp; cmonth%26gt;2 )


t2++;


tot = (t1+t2);


if( tot %26gt;= 365 )


{


dyear++;


tot -= 365;


}


dday = tot;


return TRUE;


}





void DATE::FindZodiac()


{


if(( day %26gt;= 20 %26amp;%26amp; month == 1 ) || ( day %26lt;= 18 %26amp;%26amp; month == 2 ) )


strcpy(zodiac,"Aquarius");


else if(( day %26gt;= 19 %26amp;%26amp; month == 2 ) || ( day %26lt;= 20 %26amp;%26amp; month == 3 ) )


strcpy(zodiac,"Pisces");


else if(( day %26gt;= 21 %26amp;%26amp; month == 3 ) || ( day %26lt;= 20 %26amp;%26amp; month == 4 ) )


strcpy(zodiac,"Aries");


else if(( day %26gt;= 21 %26amp;%26amp; month == 4 ) || ( day %26lt;= 20 %26amp;%26amp; month == 5 ) )


strcpy(zodiac,"Taurus");


else if(( day %26gt;= 21 %26amp;%26amp; month == 5 ) || ( day %26lt;= 20 %26amp;%26amp; month == 6 ) )


strcpy(zodiac,"Gemini");


else if(( day %26gt;= 21 %26amp;%26amp; month == 6 ) || ( day %26lt;= 20 %26amp;%26amp; month == 7 ) )


strcpy(zodiac,"Cancer");


else if(( day %26gt;= 21 %26amp;%26amp; month == 7 ) || ( day %26lt;= 20 %26amp;%26amp; month == 8 ) )


strcpy(zodiac,"Leo");


else if(( day %26gt;= 21 %26amp;%26amp; month == 8 ) || ( day %26lt;= 20 %26amp;%26amp; month == 9 ) )


strcpy(zodiac,"Virgo");


else if(( day %26gt;= 21 %26amp;%26amp; month == 9 ) || ( day %26lt;= 20 %26amp;%26amp; month == 10 ) )


strcpy(zodiac,"Libra");


else if(( day %26gt;= 21 %26amp;%26amp; month == 10 ) || ( day %26lt;= 20 %26amp;%26amp; month == 11 ) )


strcpy(zodiac,"Scorpio");


else if(( day %26gt;= 21 %26amp;%26amp; month == 11 ) || ( day %26lt;= 20 %26amp;%26amp; month == 12 ) )


strcpy(zodiac,"Sagittarius");


else


strcpy(zodiac,"Capricorn");


}





unsigned int DATE::dm(unsigned int d)


{


unsigned int retval = 0;


for(int i=1;i%26lt;=d;i++)


{


if( i == 1 || i == 3 || i == 5 || i == 7 || i == 8 || i == 10 || i == 12)


retval+=31;


else if( i == 4 || i == 6 || i == 9 || i == 11 )


retval+=30;


else if( i == 2 )


retval +=28;


}


return retval;


}





main()


{


redo:


clrscr();


textmode(C80);


cout%26lt;%26lt;"ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ...


cout%26lt;%26lt;"º RAHUL'S DATE %26amp; ZODIAC Calculator º\n";


cout%26lt;%26lt;"ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ...


cout%26lt;%26lt;" Enter : 'quit' to exit\n\n\n";


cout%26lt;%26lt;" Enter you birth-day : ";


char date[20];


cin%26gt;%26gt;date;


if( !strcmp(strlwr(date),"quit"))


return 0;


DATE d(date);


if( d.Flag == FALSE )


{


cout%26lt;%26lt;"You have input an Invalid date...\nTry Again\n\n";


getch();


goto redo;


}


d.FindDffrnce();


cout%26lt;%26lt;"\nYour age is "%26lt;%26lt;d.dyear%26lt;%26lt;" years and "%26lt;%26lt;d.dday%26lt;%26lt;" day";


if( d.day )


cout%26lt;%26lt;"s";


d.FindZodiac();


cout%26lt;%26lt;"\n\nYour Zodiac Sign is "%26lt;%26lt;d.zodiac;


getch();


cout%26lt;%26lt;"\n\nContinue...?\n\n";


if( tolower(getch()) == 'y' )


goto redo;


return TRUE;


}


Tutorial about turbo c++.?

e-books, complete manuals, fan site,

Tutorial about turbo c++.?
zOMFG! in which time period are you living? Turbo C++, that's like oooooooooold, please get rid of it, and try using the more recent compilers. it'll benifit you in writing more portable code. Use DJGPP or Microsoft C++, both of which use ISO standard header files. There is also an user interface called rhide in DJGPP which looks exactly like Turbo C++, they have a help file associated too.





Just so if you are not using those because you can't compile, it's because your using non-standard code. Here is a sample of a standard code.





#include%26lt;iostream%26gt;


using namespace std;


int main() {


cout%26lt;%26lt;"Hello, World!";


return 0;


}





Also, a friendly advice, don't use Conio.h or getch() jsut to halt your screen, it's a dangerous operation. Use


cin.get();





hope it' helps you.


Help on turbo c?

1)I need to do a process that can cound the number of vowels in a an inserted phrase.


2) Process that counts the spaces in a phrase and put in uppercase the first letter of every word after each space in an inserted phrase.


3)Process that counts the uppercase and lowercase letters in an inserted phrase





Any of these programs will be of great help.


Thank you!

Help on turbo c?
if(c=='a' || c=='e'|| c== 'i'|| c=='o' ||c=='u') count++;

snapdragon2

Thursday, July 30, 2009

Fom where to download turbo c/c++?

Do you mean Turbo C++ 3.0 for DOS?


Here:


http://vaibhavweb.tripod.com/


-

Fom where to download turbo c/c++?
I know this isn't a direct answer to your question, but I would recommend getting Microsoft Visual C++ Express Edition. It's free, and it's the best IDE out there. You can use it for multiple other languages as well.





Have a good day,


Nathan





P.S. If you insist on using an inferior IDE/Compiler you can get it here :)





http://www.programmersheaven.com/downloa...
Reply:internet.


How did turbo c compiler get its name?

Borland released Turbo Pascal in 1983. The IDE was a big hit - It came a single executable .COM file and the whole code/build/run process was amazingly quick in comparison to other early IDEs, like for example Microsoft Pascal which was much slower. Hence the label "Turbo" that was typical for Borland products 20 years ago.


Turbo C is also a Borland IDE and compiler. It inherited the name from very successful Turbo Pascal product line (discontinued in 1992).


Pascal or Turbo C?

Turbo C, I was not able to learn Pascal before.


Can I download the Turbo C/C++ Compiler Free from internet.if yes from where and How.plz reply soon n detail?

You can download some or Borland's Turbo C and C++ compilers for free because they are creating a museum site for some of the older versions and releasing the compilers for free as a result.





This link has these downloads and heaps of other compilers you can download for free:





http://cc.uoregon.edu/cnews/spring2003/f...

Can I download the Turbo C/C++ Compiler Free from internet.if yes from where and How.plz reply soon n detail?
http://www.vetusware.com/download/Borlan...

avender

In my turbo C++...as i complie my program...the error comes as the Declaration syntax error,plz help 2 fix it.

is this problem because of my directories...or is it an error in the IOSTREAM....


there were many Declaration errors only for iostream...

In my turbo C++...as i complie my program...the error comes as the Declaration syntax error,plz help 2 fix it.
The 1st line with the include is incorrect. Instead of 'Include' it should be 'include' Remember that the compiler is case-sensitive.


Which compiler are you using and for which operating system? The screen clearing function, clrscr() is defined in CONIO.H in my Borland C++ DOS compiler, but that function doesn't exist in CONIO.H on my Microsoft C++ Windows compiler. If the 'clrscr();' line is giving you an 'undeclared identifier' error, then remove it.





The rest of the program is fine. Make sure that the compiler is set to create a C++ program, not C. Save your source file with the .cpp file extension. You might also want to look through the compiler settings.
Reply:well it's pretty difficult to say any thing without seeing the actual code.....if you would have added your code right here then it would be a lot easier to handle...


any way the declaration errors mainly occur that when u ommit to declare a variable or u declare it with wrong data type..etc.....
Reply:sign your variants one by one . and give to them zero value
Reply:turbo c++ command different from visual c++ command


and maybe you want this:-





#include%26lt;conio.h%26gt;


#include%26lt;stdio.h%26gt;


void main()


{


clrscr();


int a,b,c;


printf("\n enter a value for a:");


scanf("%i",%26amp;a);


printf("\n enter a value for b:");


scanf("%i",%26amp;b);


c=a+b;


printf("\n the value for c is: %i",c);


getch();


}


What is turbo c???

this is all about computers and stuffs.. please give summarized definition.. what does it do and all that.. thanks.

What is turbo c???
C is a programming language. Turbo C is a version of C that was developed by Borland Integrated Development Environment.





Good luck and Happy Computing!
Reply:it Borland's old C compiler. You can download it for free from Borland Museum website.
Reply:Turbo C is a Borland Integrated Development Environment and compiler for the C programming language.


see: http://en.wikipedia.org/wiki/Turbo_C


Using turbo c what is the code when you are going to input number example 5 then the is output?

when you input a number for like example 5 then the output is like this:





1


2


3


4


5

Using turbo c what is the code when you are going to input number example 5 then the is output?
Just try this


#include%26lt;stdio.h%26gt;


void main()


{


int input,i;


printf("Enter the number");


scanf("%d",%26amp;input);


for(i=1;i%26lt;=input;i++)


{


printf("%d\n",i);


}


}
Reply:just try





for(i=1;i%26lt;=5;i++)


{


cout%26lt;%26lt;i;


}
Reply:for(i=1;i%26lt;=input;i++)


{


printf("%d\n",i);


}


In turbo c... write a program containing a function that will return the smallest of 3 floating point numbers.

please help...

In turbo c... write a program containing a function that will return the smallest of 3 floating point numbers.
before i write programs one should be in ur mind ,processors


like p4 or amd will not give exact precision


following is the code





#define max(a,b) a%26gt;b?a:b


main()


{


float a,b,c,d;





d=max(a,b);


printf("%d",(c%26gt;d?c:d));


}
Reply:smallest means the minimum, this is the right code:





#define min(a,b) a%26lt;b?a:b


main()


{


float a,b,c,d;





d=min(a,b);


printf("%d",(c%26lt;d?c:d));


}
Reply:The above two examples don't specifically include a function that returns the smallest of 3 floating point numbers.





#include %26lt;stdio.h%26gt;





double minof3(double a, double b, double c)


{


if (a %26lt; b %26amp;%26amp; a %26lt; c)


return a;





if (b %26lt; c)


return b;





return c;


}





int main()


{


double a=10, b = 7, c = 11;





printf("The minimum of %0.2f, %0.2f and %0.2f is %0.2f\n", a, b, c, minof3(a, b, c));





return 0;


}

violet

In turbo c++ ver.1.01 including a file iostream.h in program and compiling it show errors.so what should i do?

the program runs by using printf and scanf.

In turbo c++ ver.1.01 including a file iostream.h in program and compiling it show errors.so what should i do?
printf and scanf are not I/O stream members.. they are function of C library.. you need to include stdio.h





And.. please upgrade your compiler! it's not standard version!
Reply:sigh





if it shows errors, why don't you post them?? how are we supposed to fix errors if we don't know WHICH errors you have?
Reply:First check where in ur computer ur file (iostream.h) is.


It should be either in c:\tc or c:\tc\include.


Next start turboc ide. go to option


select directory.


set either tc or tc\include as found and then compile.


Hope it will help
Reply:Replace that turbo c++


install it again


The best possible way


In turbo_c programming what are the codes to sort the problem for example in number?

For example this problem





enter a number :56


enter a number :89


enter a number :5


enter a number :1


enter a number :100





sorted value


value x[1] : 100


value x[2] : 89


value x[3] : 56


value x[4] : 5


value x[5] : 1

In turbo_c programming what are the codes to sort the problem for example in number?
Use the qsort() function in stdlib.h.





First declare a comparison function like the following:





int comparison(const void *a, const void *b)


{


return *(int *)b - *(int *)a;


}





I'm assuming x[] is an array of ints. The comparison function is used to tell the qsort() function how to decide on the order of any two values we're comparing based on whether the return value is negative, zero or positive.





Then call qsort() to sort them as follows:





qsort((void *)x, 5, sizeof(x[0]), comparison);





I've used 5 in the above line because the array has 5 numbers in your example, change this to however many numbers you have.


HELP!! Turbo C problem ..?

here is the program i made for our homework. supposedly it should be able to allow an integer and tell wether it is an odd or an even.. but i dont know where did i go wrong. please help me.





main()


{


/*Variable Declaration*/


int I;


int ODD, EVEN;


clrscr();


printf("Odd/Even Program\n");


printf("____________________\n");


printf("Enter an integer:"); scanf("%d",%26amp;I);


if(I%3)


{


EVEN=I;


printf("%d is an even integer",EVEN);


}


if (I%2)


{


ODD=I;


printf("%d is an odd integer",ODD);


}


printf("__________________\n");


printf("Press any key to exit....");


getch();


}

HELP!! Turbo C problem ..?
The problem with your code is there are many integers which are divisible both by 2 %26amp; 3. For eg., if you give input as 6 to your code both the if loops will be skipped and no answer will be displayed. Jus change your code as:


if (I%2)


{


ODD=I;


printf("%d is an odd integer",ODD);


}


else


printf("%d is an odd integer",EVEN);
Reply:Just like the prev person stated the only thing it's opposite





if ( i%2 )


{


printf("%d is an even integer",%26amp;i);


}


else


{


printf("%d is an odd integer",%26amp;i);


}


My turbo C++ compiler gives an error message as -unable to include iostream.h .?

what u have done is u have not copied the turbo C++ in C: drive or you have made a new folder and the past the turbo c++ there. plz copy your C++ folder to C:drive. and then run it.

My turbo C++ compiler gives an error message as -unable to include iostream.h .?
This is because the %26lt;header files%26gt; include files directories are not set properly. What u can do is click on the options menu of the Turbo c++ interface and then select the option directories. a dialog box will appear set the appropriate path for include, library %26amp; source. for eg. If you have installed tc in c drive and the folder is tc then the path u have to type for the include directory is : c:\tc\include


same way for lib.








Eroz Awari. (NAVSARI)


SGM Shiroiya School Navsari. India.
Reply:i suggest u to install turbo c++ compiler again at the same / different location.
Reply:Did you save the file with extension ".cpp"?


Bcoz the default is ".c".
Reply:change the option working directory path to c++ directory it willbe going to right
Reply:you re install the turbo c++


or change the directory path


from option-%26gt;directory


and save it in option it self


then it will work well
Reply:you should reinstall ur c++ compiler...................





becoz u got a compiler which is corrupted bu someone

peony

My turbo c isnt working properly i am a beginr please help?

After saving pgm when i compile i get error message as unable to include stdio.h ie all header file arent openig but they are present in the folder . also unable to create output file.


this happens for all pgms . not what is it? thanks in advance

My turbo c isnt working properly i am a beginr please help?
u have to set the right directory path in the option of hte compiler


My turbo c isnt working properly i am a beginr please help?

After saving pgm when i compile i get error message as unable to include stdio.h ie all header file arent openig but they are present in the folder . also unable to create output file.


this happens for all pgms . know what it is? thanks in advance

My turbo c isnt working properly i am a beginr please help?
Perhaps the program wasn't installed properly.


(I'm assuming that you're using Borland Turbo C++ 3.0 for DOS.)


In the IDE, click the 'Options' menu and click 'Directories.' Your 'include' and 'library' directories should be listed there. Type in new ones if they are incorrect.





Keep in mind that Turbo C++ was made for DOS, so it doesn't understand long file names. (It only understands files in the 8.3 file name format.) Make sure that your directory names are only a maximum of 8 characters in length (with no spaces).


Any source (.c or .cpp) files that you got from somewhere else must also follow the 8.3 name format.
Reply:That's very strange.





First try uninstalling and reinstalling turbo c





If that doesn't work, go back and check very carefully to make sure you are using the proper syntax in all your programs.


Why Turbo C++ 3.0 shows Unable to open the include file?

Note: The inlcude file is not standard file. There is no problem when standard file is included. But when including the user file like #include "myheaderfile.h" then it can't open. Funny...

Why Turbo C++ 3.0 shows Unable to open the include file?
.





Just copy your own header file and paste it in "bin" folder.





It might work.





**********


Vasu M


**********
Reply:are you opening this as some type of project?
Reply:put your own header file in the same directory as ur standard header files and try...
Reply:connect you include library through options menu your problem will be resolved. if not contact me on messenger.


The turbo c++ installed on my inspiron does not show it in full screen mode?

please answer the solution

The turbo c++ installed on my inspiron does not show it in full screen mode?
Go to properites of Turbo C++ IDE icon by right clicking the mouse, then select the screen property, then choose full-screen. Apply and now IDE will open in full-screen mode.
Reply:turbo c++ If this is the DOS version (using windows CMD command) then you can use ALT + ENTER key combo to alternate between full screen and small screen. Hope that helps

long stem roses

Free download of turbo c/c++?

Try here:





http://www.limewire.com


http://www.download.com

Free download of turbo c/c++?
if you want C for dos, you can freely download it from the link www.borland.com/bcppbuilder/freecompiler


for easy handling of c programming, use C++ for Windows from the link www.acms.arizona.edu/education/ opti_583x/sample_code/downloadTC.html


for any troubleshooting, email me.


have fun with C..


In turbo_c programming.What is afunction of a switch command?

I'm searching the functions of switch command,to know what is its functios and to know how to use this command.

In turbo_c programming.What is afunction of a switch command?
it's used in place of multiple if-else blocks.


switch is mainly used to execute different blocks of code, depending upon a value of a variable.





for eg.


int choice;


//input choice





switch(choice)


{


case 1: printf("u input 1");


break;


case 2: printf("u input 2");


break;


default : printf("some thing else");


}





Remember to give a break statement after each case, otherwise after one case, the other case will also be executed.
Reply:switch is not a command, it's key word.





See the previous answer for details on how to use it.
Reply:In nearly all the programming languages,'switch is used for multi-conditional operator.The statement analyses many statements to give one proper result.It is used for event oriented programming


In turbo c how can i make a program about conversion?

conversion in hexadecimal,decimal,octal,and binary numbers. Also how can i make a program about sorting of strings

In turbo c how can i make a program about conversion?
Conversion in Hexamdecimal





Decimal Printf("%d",%26amp;num)


HexaDecimal Printf("%0x",%26amp;num)


OCTAL - Printf("%o",%26amp;num)
Reply:You can use strcmp() to compare strings. It is a standard function. Then you could use the sorting algorithm of your choice. Try the selection or bubble sort to start.


Help turbo c problem. how do i solve this?

this problem here might be way too easy for professionals but im only a beginner and a student. help.





/*Program description: Write a program that will allow you to enter an integer and tell wether the integer is odd or even?*/





thank you.. i really need help..


:D

Help turbo c problem. how do i solve this?
Hope this helps:





this is made is visual studio 2005 (look at the next)





#include %26lt;iostream%26gt;


using namespace std;


void main()


{


int i;


cout%26lt;%26lt;"Please enter an integer: ";


cin%26gt;%26gt;i;


if (i%2)


cout%26lt;%26lt;"It's Odd"%26lt;%26lt;endl;


else


cout%26lt;%26lt;"It's Even"%26lt;%26lt;endl;


cin%26gt;%26gt;i;





}





in plain C it should be





#include %26lt;iostream.h%26gt;


void main()


{


int i;


cout%26lt;%26lt;"Please enter an integer: ";


cin%26gt;%26gt;i;


if (i%2)


cout%26lt;%26lt;"It's Odd"%26lt;%26lt;endl;


else


cout%26lt;%26lt;"It's Even"%26lt;%26lt;endl;


cin%26gt;%26gt;i;//you can cut this line, it's used just so that you see the result





}





Good luck!
Reply:Here is somthing to get u started :


1) prompt the user : pleas enter an integer


2) take the input from the user


3) validate the input - to make sure integer is entered


4) take the number and divide by 2 , store the remainder


5) if remainder = 0 , than number = even , else "the number is odd"





Hope this helps
Reply:IntA


IntB=IntA+1


IntC=IntA/2


IntD=IntB/2


if IntC=IntD then IntA is even








To use remainder method result needs to go into a float type variable
Reply:WELL, TRY CONSULTING YOUR TEACHER OR A RELATIVE OR A FRIEND OR ANYONE WHO UNDERSTANDS YOU AND YOUR PROBLEM. I KNOW IM NOT MUCH OF A HELP THOUGH. WELL TRY YOUR BEST TO SOLVE YOUR PROBLEM OKAY?!

gifts

Freinds!!! Where can i download turbo c or turbo c++?

Welcome to turboexplorer.com - the site where you can find everything Turbo: product information, articles, code samples, games, competitions and more! Turbos bring back the classic brand, while introducing leading edge technologies and capabilities to a whole new generation of programmers. / http://www.turboexplorer.com/

Freinds!!! Where can i download turbo c or turbo c++?
Here you can get the latest Turbo C/Turbo C++





http://www.codegear.com/downloads/free/t...





Happy Computing!!
Reply:Try tucows.com or download.com


You must have a compiler.


Help!!!!Turbo C programming.......?

Create a class named monogram. Its main() function holds three character variable that hold your first, middle and last initials respectively. Create a function to which you will pass the three initials that displays the initials twice - once in the order first, middle, last, and second time, in traditional monogram style (first, last and middle).

Help!!!!Turbo C programming.......?
Hmmm... sounds like a homework problem... Study hard!
Reply:sorry
Reply:Class Monogram





Public:


{


variable one


variable two


variable three


};int varone, vartwo, varthree;








Function Myfunction(monogram varone, vartwo, varthree)


[


/display varone, vartwo, varthree;


/display varone, varthree, vartwo;


}


Main()


{


/function call





}
Reply:First of all you should be aware of the fact that you can't create classes in "C".....its possible only in Object Oriented Languages like C++, Java etc. etc.
Reply:try c++

innia

In turbo c... write a program that will search for the smallest value in an array of integers of length 10?

pls help asap. ty..

In turbo c... write a program that will search for the smallest value in an array of integers of length 10?
#include %26lt;stdio.h%26gt;





int main()


{





int array[10] = {10, 52, 61, 1, 17, 31, 100, 84, 99, 63};


int smallest=0xffff, i;





//For turbo c (integer is 2 bytes) maximum value of int is 0xffff





for(i=0;i%26lt;10;i++) if(array[i]%26lt;smallest) smallest=array[i];





printf("Smallest = %d\n", smallest);





return 0;


}
Reply:#include%26lt;conio.h%26gt;


#include%26lt;stdio.h%26gt;


void main()


{


int a[10],min,i;


printf("Enter 10 values:\n");


scanf("%d",%26amp;a[0]);


min=a[0]; // to make program applicable in all situation.


/*if we consider min=0 it is not applicable in negative and numbers hibher than zero. try this and u will find that i m right. */


for( i = 1;i%26lt;10;i++)


{


scanf("%d",%26amp;a[i]);


if(a[i]%26lt;min)


min=a[i];


}


printf("Minimum of ten numbers is:%d",min);


getch();


}


hope it helps.


bye.
Reply:simple


void main()


{


int num[10];


int i,small=0;


//code input here


for(i=0;i%26lt;10;i++)


{


if(small%26gt;num[i])


small=num[i];


}


//output


printf("%d\n",small);


}


For turbo c programming?

You need Turbo C compiler/linker and a PC


In turbo_c.What is a switch command?

I'm searching the switch command,because this is our assignment in Major subject IT102.I think you know this command.ok..

In turbo_c.What is a switch command?
switch is a standard C instruction.


A switch statement is like an if else statement with a couple of BIG differences.





The format is


switch (value) {


case 1:


dosomething();


break;


case 2:


do_a();


case 3:


do_b();


break;


case 4:


case 5:


do_c();


break;


default:


break;


}





This routine will execute the statements between the matching case and the next break instruction depending on the value of value.


If value is 1 then dosomething will run and nothing else.


if value is 2 then do_a will run then do_b will run then it will dop out of the switch statement.


value = 3 then do_b will run.


value = 4 or 5 then do_c will run.


If no match is found then it will run what ever is after default.





You don't have to call a function you can do


case 'A':


myval = 1;


printf("The key A was pressed\n");


break;





NOTE that you need a break instruction to prevent it falling through to the next case statement.


ALSO NOTE this funactionality changes with C# or .net and it NEVER falls through to the next case even if there is NOT a break instruction!
Reply:A command-line switch or simply switch (also known as a flag, an option, or a command-line parameter) is an indication by a user that a computer program should change its default behaviour.





For example, in the OpenVMS operating system, the command directory is used to list the files inside a directory. By default—that is, when the user simply types directory—it will list only the names of the files. By adding the switch /owner (to form the command directory/owner), the user can instruct the directory command to also display the ownership of the files.


In turbo c programming how can i make a string appear in the center like a marquee?

i want you to answer in details

In turbo c programming how can i make a string appear in the center like a marquee?
here is a simple example, modify it as you want


#include%26lt;stdio.h%26gt;


#include%26lt;conio.h%26gt;


void main()


{


int i;


clrscr();


getch();


for(i=0;i%26lt;40;i++)


{


textcolor(BLACK);


gotoxy(i-1,10);


cprintf("Sachin");


textcolor(GREEN);


gotoxy(i,10);


cprintf("Sachin");


delay(50);


}


getch();


}

gerbera

Borland turbo c 5.5?

Indeed.. that did exist.. what is the question? If you update the details I can be more specific with my answer.


The turbo C++ software installed in my laptop is not displaying in full screen is there any salution for is?

i wanted to know the proper installation process of that software to my laptop

The turbo C++ software installed in my laptop is not displaying in full screen is there any salution for is?
try clicking alt+enter u will get in full screen


i dont think thats bcoz of any prob with installation


even if so try installing it once more or get help from some service centre
Reply:sorry crazycool but the problem is with the sys. i got the same problem. Report It

Reply:After opening c++ press and hold alt and press enter .


I'am sure it is not a installation prob .





or





Create a shortcut in desktop ( Its Easy to open frm desktop)


Right click and select shortcuts tab . there is a space after run . just select maximized . Ur Prob will be solved .
Reply:mee tooo ve thesame problem.. i ve dell inspiron e1505.. with windows vista home premium..do u ve vista in ur laptop... then.. turbo c++ wont run in full screen.. itz not compatible to run in full screen..
Reply:if u hav the turbo c++ icon on ur desktop then right click on it and click properties go through all the tabs in one of them u will find resolution or sumthin like dat select full screen





OR





click on the icon


the window appears


there will be a toolbar on the top with many icons towards the end of the tool bar there is an icon which has a cross whose ends are like arrows click on it and u get fullscreen
Reply:Try changing your screens resolution lower....


Help turbo c version 2 =( programming?

i need to write a program that serves as a password checker when the user type something on the screen it outputs '*' the password is "hello23". if the user gives the correct password, print "password accepted", else "access denied"





hint: to display the '*' while the user types the password, use the getche comman.





hint2: to compare the typed password to the correct password, use strcmp command





well its on my finals and i dunno where to start for pros this is nothing so i hope someone can help me, this is big time for me...thanks in advance ^^

Help turbo c version 2 =( programming?
No idea.