learning c++ and algorithm Blog Posts

  • Input Statement on C++
    on May 18, 2011 in input statement
    a. CIN( ) In C + +, cin command is used to input a value from a input device (keyboard) for further processed by the program.Syntax is:  cin>> variable;example:court <<"Enter a number:"; cin>> bil; court <<"You entered nu...
  • Operator and Statements
    on May 17, 2011 in operator
    Operator is a symbol commonly involved in the program for perform an operation or manipulation, for example to:- add two values- assign value to a variable (assignment)- comparing the similarity of two values​​.a. Arithmetic OperatorThis operator...
  • C++ Elements
    on May 12, 2011 in elements
    a. IdentifierIdentifier is a name commonly used in programming for declare variables, constants, data type, and function. Rules for writing the identifier together with the rules in pascals, among others:- It should not be initiated by non-letter cha...
  • Declaration of Constanta (const)
    on Apr 8, 2011 in constanta
    It is simple in concept, variables declared with ‘const’ added become constants and cannot be altered by the program, but, in the way is has to be used to bodge in a substitute for one of the missing features of C++, it gets horridly complicated...
  • Creating Variabel
    on Apr 7, 2011 in variable
    A variable in C++ is a name for a piece of memory that can be used to store information. You can think of a variable as a mailbox, or a cubbyhole, where we can put and retrieve information. All computers have memory, called RAM (random access memory)...
  • Typing a Comment
    on Apr 3, 2011 in comments
    Typically, comments should be used for three things. At the library, program, or function level, comments should be used to describe what the library, program, or function, does. For example:All of these comments give the reader a good idea of what t...
  • My first program
    on Mar 14, 2011 in first program
    Now, we will create simple program and we can compile that. But we should know about structure program in C++.Let's started, becouse I can hold anymore.First, although our programs will be written inside .cpp files, the .cpp files themselves will be...
  • Define of Structure and Statement
    on Mar 5, 2011 in define of
    In this posting I want explain about structure and statement in programming. The most common type of instruction in a program is the statement. A statement in C++ is the smallest independent unit in the language. In human language, it is analogous to...
  • Define of Algorithm
    on Feb 5, 2011
    The History of AlgorithmHistorians of mathematics in the world have agreed that the word "algorithm"is derived from the word "algorithm / algorism" from the author of the famous Arab named Abu Jafar Muhammad ibn Musa al-Khuwarizmi (read by Westerners...
  • Structure program in C++ language
    on Feb 5, 2011 in c++ programming c++
    Examples of programs on the following material can be run with Borland C + + (Turbo C + + is fine). In general the structure of the program in C + + are as follows:declaration header file / preprocessorconstant declarationglobal var declarationfun...
  • Program c++ for even and odd number
    on Feb 5, 2011 in sample program even odd
    Problem:Create a C + + program to determine whether a number is the user input is odd or even number.Analysis:To create C + + program that determines the odd or even number, we must first know how to distinguish between odd and even numbers. Examples...
  • Program c++ for selection (1)
    on Feb 2, 2011 in sample program selection
    Here is an example of C + + program that uses the IF statement. The problem is as follows: By using the IF statement, create a program to determine whether a student is "Passed" or "No Pass" on the basis of Value Theory and Practice Value entered by...
  • Structure of Algorithm
    on Feb 2, 2011 in strructure algorithm
    The algorithm contains a step-by-step solution of a problem. These steps may include the contents of runs (sequences), the action selection (branching / selection) and repetition of actions (loops). The three types of step is the major construct...
  • History of Programming C++
    on Feb 1, 2011 in c++ programming c++
    Programming Languages C and C + + C programming language is the language of the predecessor of C + + programming language. Creator of the C programming language is Brian W. Kernighan and Dennis M. Ritchie at around 1972. C is structured progra...
Close