Question:
what are the basic parts of turbo c programming?
2009-11-11 02:20:05 UTC
what are the basic parts of turbo c programming?
Five answers:
PurpleBlob
2009-11-11 09:54:48 UTC
The basic parts of turbo C programming are the same as for other procedural languages, such as Pascal or Basic (not Visual Basic). When C was developed, programming was about encoding an algorithm rather than the modern approach of developing classes and objects to represent real-life things.



Step 1 is to create an algorithm (series of steps) to solve the problem. Check it works using some real-life test cases. If it doesn't work you'll be wasting your time.

Step 2 is to encode the steps in the algorithm in the programming language, to create the program. You will do this with the turbo C editor.

Step 3 is to compile the program with your turbo C compiler. It will tell you about any mistakes

Step 4 is to correct your program and try recompiling again.

Step 5: When the program compiles properly, an executable is created. Test the executable with your real-life test cases used earlier. If necessary, change your algorithm if necessary and go back to Step 2.

Step 6: Finally, you should have a working executable that does what you want. Congratulations!
Ciaron
2009-11-11 06:17:28 UTC
The basic parts are the the Editor, the compiler and the library of header files and lib files, when you install it. Turbo C Is really quite old, are they still using it? I know that Borland did produce some of the best help files for programmers I have seen, by the way there is the classic story on the dos sound command and the example program



/* Emits a 7-Hz tone for 10 seconds.



True story: 7 Hz is the resonant

frequency of a chicken's skull cavity.

This was determined empirically in

Australia, where a new factory

generating 7-Hz tones was located too

close to a chicken ranch: When the

factory started up, all the chickens

died.



Your PC may not be able to emit a 7-Hz tone. */



#include



int main(void)

{

sound(7);

delay(10000);

nosound();



return 0;

}

I take it they are not fond of chickens
S1989
2009-11-11 03:09:31 UTC
Hey there are many tools to write c language programs...Why turbo c????

But if you want then.....download this tutor...

http://www.bumpersoft.com/Programming/Tutorials_and_Reference/Review_936_index.htm
?
2016-12-03 01:54:55 UTC
rapid c isn't a language. rapid c is an IDE IDE is utility to enhance software (coding, compiling, debugging) so, rapid C is IDE to enhance software in c programming language undemanding areas of rapid c is coding, compiling, linking, debugging undemanding areas of c programming language is header, function substantial(), statements, block annotation, end assertion annotation.
email person
2009-11-11 02:59:27 UTC
basically a class is composed of



imports/includes or the libraries

global declarations

class name

local declarations

constructor <---(not i think C does not have constructors)

methods or functions

comments

main function


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...