Академический Документы
Профессиональный Документы
Культура Документы
Conceptos Bsicos
Prof. Carlos Rodrguez Snchez
Lenguaje C++
Especificacin de un Problema:
Algortmo
IPO Chart
Flowchart
IPO Chart
IPO Chart
Input
Processing
Output
Radius
Pi (3.141593)
Processing items:
Radius squared
Algorithm:
1. enter the radius
2. calculate the radius
squared by multiplying the
radius by itself
3. calculate the area by
multiplying Pi by the radius
squared
4. display the area
area
Flowchart
START
Enter Radius, Pi
(Radius * Radius)
* Pi
area
Stop
Lenguaje C++
Lenguaje C++
Ejemplos de nombres de
variables en C++
Vlidos
deposit
end_Balance
withdrawal
privateLocation
Invlidos
98deposit
end Balance
withdrawal.amt
private
Sintxis
Ejemplos
Sintxis
Ejemplos
int AGE = 0;
float rate = 0.0;
double sales = 0.0;
bool insured = false;
char grade = ;
Procesando un Programa en
C++
Ejemplo:
#include<iostream>
using namespace std;
int main()
{
cout << Welcome to C++ Programming. << endl;
return 0;
}
Procesando un Programa en
C++
1.
2.
3.
4.
5.
New Project
Ejercicio: