User talk:Undertzolkin

http://genesis.uag.mx/edmedia/material/fisica/movimiento7.htm

Ax = Vot + (at^2)/2

Vf^2 = Vo^2 + 2aAx

Vf = Vo + at

imaginemos que la ´A´ es Delta x

R = (-2 Vo^2 Sen a Cos a) / g hMax = (-Vo^2 Sen^2 a) / 2g

http://www.cplusplus.com/files/tutorial.pdf for studying only.

C++ free tutorial

'''Variables. Data Types.'''


 * 1) include "stdafx.h"

int _tmain(int argc, _TCHAR* argv[]) {	//============WHILE, DO WHILE========= //dowhile /*char a=65; do {		cout << a;		a++; } while (a != 91);*/ //dowhile //while /*int x=1; int iNum; int iResult=01;

while(x <= 5) {	cin>>iNum; iResult= iResult + iNum; x++; }	cout<<"ur answer is "<< iResult<>iCali;

if (iCali >=0 && iCali<=59) {		cout<<"la fregaste!\n"; }

else if (iCali >=60 && iCali<=69) {				cout<<"echale ganas\n"; }			else if (iCali >= 70 && iCali<=79) {				cout<<"Puedes mejorar esta nota\n"; }

else if (iCali>=80 && iCali<=89) {				cout<<"estas bien\n"; }

else if (iCali>90 && iCali<=100) {				cout<<"Felicidades\n"; }

else {				cout<<"Incorrect input"; }

} while (iCali != -1);*/

//============SWITCH perfecto==================================================================

/*int iNum=0; int iUni, iDece, iCente;

cout<< "Introdusca un numero del 1 al 999\n"; cin>>iNum;

iCente=(iNum/100); iDece=(iNum%100)/10; iUni=(iNum%100)%10;

switch (iCente) {	case 1: cout<<"Cien"; break; case 2: cout<<"Doscientos"; break; case 3: cout<<"Trescientos"; break; case 4: cout<<"Cuatrocientos"; break; case 5: cout<<"Quinientos"; break; case 6: cout<<"Seiscientos"; break; case 7: cout<<"Setecientos"; break; case 8: cout<<"Ochocientos"; break; case 9: cout<<"Novecientos"; break; }

switch (iDece) { case 1: if (iUni == 1) { cout<<"Once"; break; }

else if(iUni == 2) {			cout<<"Doce"; break; }

else if(iUni == 3) {			cout<<"Trece"; break; }			else if(iUni == 4) {			cout<<"Catorce"; break; }

else if(iUni == 5) {			cout<<"Quince"; break; }		else (iUni>5); {		cout<<"Diezi"; break; }

case 2: if(iUni == 0) {	cout<<"Veinte"; }	else {	cout<<"Veinti"; }		break;

case 3: if(iUni == 0) {	cout<<"Treinta"; }	else {	cout<<"treinta y "; }	break;

case 4: if(iUni == 0) {	cout<<"Cuarenta"; }	else {	cout<<"Cuarenta y "; }	break;

case 5: if(iUni == 0) {	cout<<"Cincuenta"; }	else {	cout<<"Cincuenta y "; }	break;

case 6: if(iUni == 0) {	cout<<"Sesenta"; }	else {	cout<<"Sesenta y "; }	break;

case 7: if(iUni == 0) {	cout<<"Setenta"; }	else {	cout<<"Setenta y "; }	break;

case 8: if(iUni == 0) {	cout<<"Ochenta"; }	else {	cout<<"Ochenta y "; }	break;

case 9: if(iUni == 0) {	cout<<"Noventa"; }	else {	cout<<"Noventa y "; }	break; }

switch (iUni) {	case 1: {		cout<<"uno"; break; }

case 2: {		cout<<"dos"; break; }

case 3: {		cout<<"tres"; break; }

case 4: {		cout<<"cuatro"; break; }

case 5: {		cout<<"cinco"; break; }

case 6: {		cout<<"seis"; break; }

case 7: {		cout<<"siete"; break; }

case 8: {		cout<<"ocho"; break; }

case 9: {		cout<<"nueve"; break; }

}*/

//=========== FOR con password==========================================================================================

/*	double nMyPass=9722, nPass=0; cout<<"Introdusca su codigo "; for(int nVeces=1; nVeces<4; nVeces++) {	cin>>nPass; if(nPass != nMyPass) {		cout<<"incorrecto, Intenta de nuevo "; }		else {			cout<<"Correcto"; break; } }*/

//================= GETCH=========================================================================================================

/*#include "stdafx.h"
 * 1) define ESC 27
 * 2) define ARROW -32
 * 3) define UP 72
 * 4) define DOWN 80
 * 5) define LEFT 75
 * 6) define RIGHT 77

int _tmain(int argc, _TCHAR* argv[]) {	char cLetra=0; do {		cLetra=_getch; //capturar tecla especial

if(cLetra==ARROW)//si la tecla fue una flecha {

cLetra=_getch; //capturar el siguiente char, el cual me dira cual flecha se presiono

switch (cLetra)

{				case UP: cout<<"UP \n"; break; case DOWN: cout<<"DOWN\n"; break; case LEFT: cout<<"LEFT \n"; break; case RIGHT: cout<<"RIGHT \n"; break; default: cout<<"Tecla especial \n"; }			}			else //se presiono cualquier otra tecla {			cout<<cLetra; }

} while(cLetra!=ESC);*/ return 0;