tag:blogger.com,1999:blog-28781350798337576462024-02-08T04:45:20.569-08:00Learn C / C++ Programming Language, Unix C guide, programming language cLearn computer programming language, programming language c and improve your programming concepts, This blog provide free articles of Unix c programming, programming language c, c c++ algorithm, c pointer, c c++ language array, loops and lot of c c++ computer programs. Learning programming for beginners and advance levels.
Help for how to learn programming language easily? and Unix C Programming.Unknownnoreply@blogger.comBlogger8125tag:blogger.com,1999:blog-2878135079833757646.post-30639528647848206782010-07-13T12:10:00.000-07:002011-07-15T00:07:29.246-07:00What is Polymorphism in c++ programming language<b>What is Polymorphism</b> in <b>c++ programming language</b>. <b>Polymorphism in OOPs</b>.<br />
<br />
Polymorphism is a simple concept that you understand now, as so often in life. You are a person, that person is a base rate and are a more accurate representation of that type. There are many people who inherit this kind, which you are a concrete application of this type: it has its own beliefs, attributes and qualities that go beyond just one person in general. For example, we all have a blood type, shoe size, arm length, and many other properties. But each of us add our own implementation of the MMI.<br />
<br />
You drive a car, which has properties such as wheel size, engine size, the size of the gas tank, and other properties. The car that leads to a concrete application of the interface of the car. It has additional features such as sliding doors, logo type, number of slot CD changer, moon roof lever location, or other distinct properties that are specific to the make and model of car. In addition, the car can have certain behaviors such as opening / closing the door, trunk open, turn the wheel, and other behaviors that would be specific to a car.<br />
<br />
In OO programming, using the example of the car, the car would be the base class, and each automaker would have its own implementation. For example, Honda has technology V-Tec, which is in its own implementation. Used Volvo diesel engines, TDI technology is. More importantly, you can add an additional level of detail between the car and the make / model of implementation, such as cars, trucks, SUV's or supertypes to provide the most relevant information.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2878135079833757646.post-42220078367128354442009-09-28T10:25:00.000-07:002009-09-28T10:40:16.982-07:00What is a control structure? The basic for control structure in C / C++ programming languages.What is a <span style="font-style: italic;">control structure</span>? The basic for <span style="font-style: italic;">control structure</span> in <span style="font-style: italic;">C / C++ programming languages</span>.<br /><br />A statement used to control the flow of execution in a program or function is called <span style="font-style: italic;">control structure</span>. The control structures in <a href="http://learnunixc-programming.blogspot.com/"><span style="font-style: italic;">c / c++ programming language</span></a> are used to combine individual instruction into a single logical unit. The logical unit has one entry point and one exit point.<br /><br />The instructions in a program can be organized in three kinds of <span style="font-style: italic;">control structure</span> to control execution flow in <span style="font-weight: bold; font-style: italic;">c / c++ programming language</span>. All simple or complex programs can use these <span style="font-style: italic;">control structures</span> to implement the program logic.<br /><br />These <span style="font-style: italic;">control structures</span> are three kinds.<br /><br /><ul><li>Sequence Structure</li><li>Selection Structure</li><li>Repetition Structure</li></ul><span style="font-size:78%;"><a href="http://learnunixc-programming.blogspot.com/">learn unix c programming</a>,<a href="http://learnunixc-programming.blogspot.com/"> c programming</a>, <a href="http://learnunixc-programming.blogspot.com/">programming languages</a> </span>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-2878135079833757646.post-55318137696662788852009-09-25T12:01:00.000-07:002009-09-25T12:42:42.023-07:00C Program execution steps in C / C++ programming language.<span style="font-weight: bold;">What necessary steps are taken to prepare a </span><span style="font-style: italic; font-weight: bold;">C C++ program for execution</span><span style="font-weight: bold;"> ? <span style="font-style: italic;">Execution steps</span> of <span style="font-style: italic;">C / C++ programming language</span>.</span><br /><br /><span style="font-style: italic;">C program</span> are prepared to solve different type of problems. Many steps are required to convert a problem into a solution. These steps are in <span style="font-style: italic;">C programming language</span><br /><br /><ul><li>Creating and Editing</li><li>Saving</li><li>Compiling</li><li>Linking</li><li>Loading</li><li>Running</li></ul><br /><span style="font-weight: bold;">Creating and Editing a C Program in C Programming Language compiler:</span> Writing or creating and editing source program is a first step in c language. <span style="font-style: italic;">Source code</span> is written in <span style="font-style: italic;">c programming language</span> according to the type of problem or requirement, in any text editor.<br /><br /><span style="font-weight: bold;">Saving C Program in C C++ Programming Language:</span> <span style="font-style: italic;">Source code</span> is saved on the secondary storage. Source code is saved as text file. The extension of file must be ".c". Example the file name is "<span style="font-style: italic;">learn c programming language.c</span>"<br /><br /><span style="font-weight: bold;">Compiling C program in C Programming Language:</span> Computer does not understand <span style="font-style: italic;">c programming language</span>. It understands only 0 and 1 means <span style="font-style: italic;">machine language</span>. So <span style="font-style: italic;">c programming language code</span> is converted into <span style="font-style: italic;">machine language</span>. The process of converting <span style="font-style: italic;">source code</span> in to <span style="font-style: italic;">machine code</span> is called compiling. Compiler is a program that <span style="font-style: italic;">compiles source code</span>. Compiler also <span style="font-style: italic;">detects errors</span> in <span style="font-style: italic;">source program</span>. If compiling is successful <span style="font-style: italic;">source program</span> is converted into <span style="font-style: italic;">object program</span>. Object program is saved on disk. The extension of file is ".obj"<br /><br /><span style="font-weight: bold;">Linking in C programming Language:</span> There are many built in functions available in <span style="font-style: italic;">c programming language</span>. These functions are also called <span style="font-style: italic;">library functions</span>. These <span style="font-style: italic;">functions</span> are stored in different <span style="font-style: italic;">header files</span>.<br /><br /><span style="font-weight: bold;">Loading program:</span> The process of transferring a program from secondary storage to main memory for execution is called <span style="font-style: italic;">loading a program</span>. <span style="font-style: italic;">A program</span> called loader does loading.<br /><br /><span style="font-weight: bold;">Executing program:</span> Execution is the last step. In this <span style="font-style: italic;">step program</span> starts execution. Its instructions start working and output of the program display on the screen.<br /><span style="font-size:78%;"><br /><a href="http://learnunixc-programming.blogspot.com/">learn unix c</a>, <a href="http://learnunixc-programming.blogspot.com/"> Learn C C++ Programming languages</a>, <a href="http://learnunixc-programming.blogspot.com/">C C++ Programming</a><br /><br />Source of article: http://learnunixc-programming.blogspot.com/2009/09/c-program-execution-steps-in-c-c.html<br /></span>Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-2878135079833757646.post-18085089989872005582009-09-24T13:38:00.000-07:002009-09-24T13:57:10.614-07:00What is C C++ programming language Statements? Example of C language statements.What is <span style="font-style: italic;">C C++ programming language Statements</span>? and well definition of <span style="font-style: italic;">programming language C C++ Statements</span>.<br /><br />A <span style="font-style: italic;">statement in C programming language</span> is an instruction for the computer to perform a task. The <span style="font-style: italic;">statements of C programming language</span> are written in curly brackets like "{" "}". Computer performs these instructions one by one in the same sequence in which these instruction are written. Each <span style="font-style: italic;">statement in <a href="http://learnunixc-programming.blogspot.com/">C programming language</a></span> is terminated with semicolon ";"<br /><br />Example of <span style="font-style: italic;">C Programming language statements</span>:<br /><br />The following example contains two statements in the body of the main() function.<br /><br />#include <stdio.h><br /><br />void main ()<br />{<br /><br />printf("Welcom to learnunixc-programming.blogspot.com");<br /><br />printf("Welcom to Learn C / C++ Unix C Programming Language");<br /><br />}<br /><br /><span style="font-size:78%;">learn <a href="http://learnunixc-programming.blogspot.com/">unix c programming language</a> now. Start from today and <a href="http://learnunixc-programming.blogspot.com/">learn c c++ and unix c programming languages</a>.</span> <a href="http://learnunixc-programming.blogspot.com/"><span style="font-size:78%;">unix c</span></a>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-2878135079833757646.post-41738896049968383352009-09-24T13:03:00.000-07:002009-09-24T14:00:42.727-07:00Difference between structured programming language and unstructured programming language. c structQuestion is that, what is <span style="font-style: italic;">difference</span> between <span style="font-style: italic;">structured programming language</span> and <span style="font-style: italic;">unstructured programming language</span>?<br /><br /><span style="font-weight: bold;">Un-Structured Programming Languages</span>: In <span style="font-style: italic;">unstructured programming languages or non structured programming languages</span>, the entire logic of the program is implemented in a single module or function. The programs written in these languages are error prone, difficult to understand, modify and debug. <span style="font-style: italic;">Unstructured programming languages</span> or non structured programming languages is difficult with the compare of <span style="font-style: italic;">structured programming languages</span>.<br /><br /><span style="font-weight: bold;">Structured Programming Languages</span>: In <span style="font-style: italic;">Structured <a href="http://learnunixc-programming.blogspot.com/">programming languages</a></span>, the entire logic of the program is divided into number of smaller modules of function. Each module is a piece of code that implements a different functionality. The main module calls other modules when they are needed to execute. It is a modular method of writing programs. It is an easy and simple technique to writhe program. The programs written in these languages are easy to understand, modify, and debug. There is also a less possibility of errors in the programs. <span style="font-style: italic;">Structured programming languages</span> easy to manage.<br /><span style="font-size:78%;"><br />learn unix c programming language, <a href="http://learnunixc-programming.blogspot.com/">learn c c++</a>, <a href="http://learnunixc-programming.blogspot.com/">learn unix c</a></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2878135079833757646.post-84196859093625806142009-08-31T17:05:00.000-07:002009-09-09T17:20:20.204-07:00What is the basic structure of a C program, Hello program in c language.Basic structure of C program, Hello program in C : The format of writing C program is called its structure. The basic structure of a C program is very flexible. It increases the power of the language.<br />It consists of following parts:<br /><br /><ul><li>Preprocessor directive </li><li>Main() function</li><li>Program body (C Statements)</li></ul>Hello Program (Example)<br /><br />Preprocessor directive ------> #include <stdio.h><br /> Main function ------> void main()<br /><br /> Program body ------> {<br /> (C statements) printf("Hello World."); <--- Statement terminator<br /> }<br /><br />In the above c program,<br /><br />First line is preorocessor directive to include a header file stdio.h. The preprocessor directives are the commands that give instructions to c preprocessor. Preprocessor is a program that modifies c source program before compilation. Ther preprocessor directives start with hash symbol #.<br />The second line is main function. The main() function is the place where execution of a C program starts. When the program is executed, The control enters main () function and start executing its statements.<br />The statements of the program are written in curly braces. The curly brace { is called opening brace and } is called closing brace. The breacs are also known as delimitoers . These statements are collectively known as the body of a pogram.<br />Every statement in c program is terminated whte a semi colon ( ; ). The compiler generates an error if any statment is not terminated by semi colon.<br /><a href="http://learnunixc-programming.blogspot.com/"><br /><span style="font-size:85%;">learn unix c c++</span></a><br /></stdio.h>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2878135079833757646.post-65530117430855848772009-08-31T16:43:00.000-07:002009-09-09T17:23:45.391-07:00What is Input and Output statements in c and c++.Input Statements in C programming language: The process of giving something to the computer is known as Input. The input is mostly given by keyboard. The term standard input refers to the input using keyboard. A program may need certain inputs from the user for working properly. C language provides many functions to get input from the users.<br /><br />some important functions are for inputs are as follows:<br /><br /><ul><li>scanf()</li><li>gets()</li><li>getch()</li><li>getche()</li></ul>Output Statements in C programming language: The process of getting something from the computer is known as output. The output is mostly displayed on monitor. The term standard output refers to the output displayed on the monitor. The result of a program is the output of the program. C language provides many functions to display output to the user. Some impurtant functions for output are as follows:<br /><br />printf();<br />puts();<br /><br />The functions used for input and output are stored in the header file stdio.h. If a program uses for input or output function, it is necessary to include this header file in the program.<br /><br /><span style="font-size:85%;"><a href="http://learnunixc-programming.blogspot.com/">Learn unix c c++</a> start now..</span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2878135079833757646.post-8934917935702896082009-08-31T12:13:00.000-07:002009-09-09T17:22:58.093-07:00What is Syntax error in c c++ porgramming language.<span style="font-family:georgia;">What is syntax errors in c c++ programming language? Syntax Errors: A collection of the rules for writing programs in a programming language is know as syntax. All program statements are written according do these rules. Syntax error is a type of error that occurs when a invalid statement is written in program. The compiler detects syntax errors and display error massage to describe the cause of error. A program containing syntax errors can`t be compiled successfully.</span><br /><br /><span style="font-family:georgia;">These can be many causes of syntax error some important causes are as follows:</span><br /><ul style="font-family: georgia;"><li>The statement terminator is missing at the end of statement like coma, semicolon ( ); etc.</li><li>A misspelled keyword is used in the program.</li><li>Any of the delimiters is missing.</li></ul><span style="font-family:georgia;">Example: Typing "forr" insted of "for" is an example of syntax error.<br /><span style="font-size:85%;"><a href="http://learnunixc-programming.blogspot.com/"><br />Learn unix c c++</a></span><br /></span>Unknownnoreply@blogger.com3