C++ Pragramming Language - Tutorial
Structure of a program
Probably the best way to start learning a programming language is by writing a program. Therefore, here is our first program:
The first panel shows the source code for our first program. The second one shows the result of the program once compiled and executed. The way to edit and compile a program depends on the compiler you are using. Depending on whether it has a Development Interface or not and on its version. Consult the compilers section and the manual or help included with your compiler if you have doubts on how to compile a C++ console program.
The previous program is the typical program that programmer apprentices write for the first time, and its result is the printing on screen of the "Hello World!" sentence. It is one of the simplest programs that can be written in C++, but it already contains the fundamental components that every C++ program has.
Programming language
A vocabulary and set of grammatical rules for instructing a computer to perform specific tasks. The term programming language usually refers to high-level languages, such as BASIC, C, C++, COBOL, FORTRAN, Ada, and Pascal. Each language has a unique set of keywords (words that it understands) and a special syntax for organizing program instructions.
High-level programming languages, while simple compared to human languages, are more complex than the languages the computer actually understands, called machine languages. Each different type of CPU has its own unique machine language.
Lying between machine languages and high-level languages are languages called assembly languages. Assembly languages are similar to machine languages, but they are much easier to program in because they allow a programmer to substitute names for numbers. Machine languages consist of numbers only.
Lying above high-level languages are languages called fourth-generation languages (usually abbreviated 4GL). 4GLs are far removed from machine languages and represent the class of computer languages closest to human languages.
Regardless of what language you use, you eventually need to convert your program into machine language so that the computer can understand it. There are two ways to do this:
# compile the program
# interpret the program
The question of which language is best is one that consumes a lot of time and energy among computer professionals. Every language has its strengths and weaknesses. For example, FORTRAN is a particularly good language for processing numerical data, but it does not lend itself very well to organizing large programs. Pascal is very good for writing well-structured and readable programs, but it is not as flexible as the C programming language. C++ embodies powerful object-oriented features, but it is complex and difficult to learn.
The choice of which language to use depends on the type of computer the program is to run on, what sort of program it is, and the expertise of the programmer.
http://www.webopedia.com/TERM/P/programming_language.html
Saturday, April 2, 2011
10 Essential Design Tools for Social Media Pros
Good design is a critical part of any web or social media presence. Like the clothes you wear to a job interview or a business meeting, a sharp looking social profile or website is the first step toward being taken seriously online.
Whether you’re a professional designer or an armchair artiste, tools abound that you can use to snazz up your web presence, and give it that polish that professionals, potential customers, and online friends have come to expect from a social media maven. We’ve talked to the experts about what they use for inspiration, collaboration, and getting down to the business of design in a social media world. Here are some of the suggestions they offered up.
1. Core Application Alternatives
2. Design Communities
3. Design Element Resources
4. IconFinder
5. MockFlow
6. Notable
7. Campaign Monitor
8. Proposable
9. Freshbooks
10. 960 Grid System
Programming
Clarify Programming Needs
Six mini steps:
- Clarify objectives and users
- Clarify desired outputs
- Clarify desired inputs
- Clarify desired processing
- Double - check feasibility of implementing the program
- Document the analysis
Design the Program
Programs use algorithms which are like equations that tell the computer what task to perform. The aim of the programmer is to create algorithms that are clear and simple. Algorithms are expressed first in logical hierarchical form known as modularzation.Using modules or (a complete thought) the programmer creates a logical thought process for the computer to follow. After that the program is broken down in greater detail using pseudocode. Pseudocode uses terms like if, else, and, then to relate the programs rules to the computer.
Code the Program
After the program has been designed it must be coded or written. Using the pseudocode and logic requirements from step two an appropriate programming language must be selected. As stated in the introduction, coding languages differ in specifications and usability. Once the appropriate code language has been chosen, it is imperative that the programmer follow the syntax rules with as little deviation as possible in oder for the program to have high accuraccy.
Two mini steps:
- Select the appropriate high-level programming language
- Code the program in that language following the syntax carefully
Test the Program
Testing the program comes in two phases, alpha and beta.
- Alpha testing is the process of reading through the program in search of errors in logic. The second step is to run a diagnostic program to search for syntax or input errors.
- Beta testing involves using the program in the real world to see if it contains any bugs or other deficiencies.
Document and Maintain
Documentation should be ongoing from the very beginning because it is needed for those involved with program now and future. Upon completion User Documentation for commercial use, Operator Documentation for people who run computer systems, andProgrammer Documentation for programmers charged with maintenance.
Four mini steps:
- Write user documentation
- Write operator documentation
- Write programmer documentation
- Maintain the program
No comments:
Post a Comment