Quick Search for:  in language:    
ALL,PLS,DONT,VOTE,CAN,GET,THETICLE,COVERS,ASP
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
C/ C++ Stats

 Code: 715,766. lines
 Jobs: 107. postings

 How to support the site

 
Sponsored by:

 
You are in:
 
Login





Latest Code Ticker for C/ C++.
Click here to see a screenshot of this code!Button Game
By L!xy on 1/29

(Screen Shot)

SimpleService
By Gaidar Magdanurov on 1/29


ip2bin
By Joe Sloan on 1/29


Click here to see a screenshot of this code!c++ basic all
By Hamdi Farah on 1/28

(Screen Shot)

biopro.c --- search for words that do not exist in the dictionary file
By Donald Bono on 1/28


BruteForce Engine
By koby-GR on 1/28


Catch Me If U Can !!
By ashish & manas on 1/27


nOS ver 1.0
By - Snake - on 1/27


WordInFile.c -- look up a dictionary file for the word you just entered (source code only)
By Donald Bono on 1/27


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!

Affiliate Sites



 
 
   

COMPLETE C PROGRAMMING (Fom file handling through graphics to bios to hardware)

Print
Email
 

Submitted on: 12/19/2003 9:04:49 PM
By: stephen antony  
Level: Beginner
User Rating: By 5 Users
Compatibility:C

Users have accessed this article 1941 times.
 

(About the author)
 
     THETICLE COVERS ALL THE ASPECTS OF C PROGRAMMING FOR A BEGINNER IT IS A SYLLABI FOR AN ADVANCED IT IS AN REFERNCE PLS DOWNLOAD THE ARTILCE DONT FORGET TO VOTE FOR ME YOU CAN LLWAYS GET ME ON WWW.TEENARMY.COM &WWWW.CODEPARK.TK; pls dont forget for your valuable comments,doubts,suggestions and huble votes

This article has accompanying files
 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
1) You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
C The worlds most popular language is still the toppest language when it comes to serious programming whether in web based(cgi) or in case of stand alone client applications or operating systems only a detailed understanding of c will help us to know the reason of the success of this language so lets go through it
The 'C' language was developed at the AT&T Bell Laboratories, USA by Dennis Ritchie in 1972 on a DEC PDP-II machine. This language is derived from an another language called B developed by Ken Thompson of Bell Laboratories in 1970 which is devCGeloped from the language BCPL (Basic Combined Programming Language) developed by Martin Richard of Cambridge University in 1967 which is derived from the language CPL (Combined Programming Language) developed by Cambridge University and the University of London in 1963 and it is developed from the lan-guage called ALGOL (Algorithmic Language) developed by an International Commit-tee in the year 1960.
The 'C' Language was originally developed for programming under UNIX Operating system, which was developed by Ken Thompson and Dennis Ritchie. After develop-ing 'C' almost 90% of UNIX operating system is rewritten in C from assembly lan-guage. Therefore UNIX and C have a close relationship.
'C' gives the programmer what he wants, i.e., few restrictions, block structures, standard functions, a compact set of keywords and rich set of data structures.
For many years 'C' has no standard. i.e. Every manufacture developed their style of 'C' compilers. In 1983 the American National Standards Institute (ANSI) established a committee named X3J11 created a standard for the 'C' language. The standard includes the character-set, keywords, compiler environment and the function library etc.
C is a structured language, which uses the compartmentalisation; i.e. A program is broken into different modules, each of which is used for a single specific task. This is supported in 'C' by the use of functions. Basically a 'C' program is a collection of one or more functions.
'C' language also supports the programming structures like sequence, selection and iteration/looping. However the goto statements are not encouraged in structured programming, 'C' supports it too.
Even though 'C' is a high level language it is often called a middle-level language because it combines the elements of high level language, like structured program-ming, modular programming etc. with the functionalism of the assembly language like direct manipulation of bits, bytes, memory addressees with the help of pointers.
'C' is a flexible, general-purpose language. i.e. The capability of manipulating bits, bytes, memory address makes it well suited for systems programming and the high-level components makes it suitable for application packages. 'C' is used for writing operating systems like UNIX and MS-DOS and the compilers and interpreters for BASIC, FORTRAN, Pascal, LISP, LOGO etc. Popular application packages like dBase, Lotus 1-2-3 and CLIPPER are also written in 'C'.
'C' language is machine independent and it is a highly portable language. Portable means that 'C' programs written for one computer/operating system can be run on another with little or no modification. All high-level languages are portable. 'C' is considered to be highly portable because the machine dependent parts in 'C' com-pilers are written in 'C'.
Turbo C compiler is an integrated package. It includes an editor, compiler, linker and loader. Every 'C' program file is identified using the ‘.C’ extension. The source code written using the editor is first passed through the C pre-processor. The pre-processor is a program that modifies the source code according to directives sup-plied in the program. The Pre-processor Directives begin with the # symbol. They must start in the first column and they are usually placed at the beginning of a pro-gram. The pre-processor expands the directives and it’s output, the expanded source code is fed to the 'C' compiler. The compiler translates the source code into the assembly language. The system assembler produces the object code (.obj). This object code has to be linked with support routines from the 'C' run-time library to obtain the final executable code (.exe). The systems loader can run the executable code.
'C' Language has no input/output operations. The compiler compiles a language of functions, all input and output is done with functions. Because of this feature, a standard library gives 'C' its most endearing feature is portability.
Every function must be defined before it can be used in the program. Every function definition has two parts, a function header and a body that follows it. The header defines the function’s name and the arguments. The headers of the library functions are stored in header files with extension .h. So these must be included before the library functions are used in a 'C' program.
Using the Turbo C Compiler
Type tc at the DOS prompt and press ENTER key. The Turbo C integrated environ-ment displays on the screen. You can use the menu options like save, open, create a new file etc. from the main menu strip which is at the top most line of the screen.
After typing the program you can save it by pressing the F2 key or File?Save com-mand. If necessary give the filename. To execute the program press Ctrl+F9 key combination. The progress window on the screen will show each phase in the crea-tion of the executable file. If there are no errors, the screen will be cleared and the program will start running. After the program is executed, you will get back to the Turbo C environment automatically. You can view the user screen by pressing the Alt+F5 key combination. To return to the Turbo C environment strike any key.
If there are any errors in the program, the messages along with the line numbers will be displayed in a separate message window at the bottom of the screen. Pressing the F6 key can make corrections, which place the cursor in the Edit window. After making corrections save it again and run.
You can activate the main menu by pressing the F10 key and then use the arrow keys. You can quit the Turbo C integrated environment by pressing Alt+X key com-bination.

winzip iconDownload article

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this article, you agree to the following terms...   
1) You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.


Other 6 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this article(in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
12/22/2003 3:19:28 AM:- Snake -
Good Tutorial. But Shouldn't it have more formatting. It looks so wierd to read it all in plain text. GOOD WORK
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/23/2003 7:30:38 PM:stephen antony
Thanks my Dear friend only comments like this make me write more and more articles and publish my source codes on this site thanks my dear friend okay i will take your suggestions
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this article has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular article, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | C/ C++ Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.