c#parte1.pdf

38
INGENIERÍA EN SISTEMAS COMPUTACIONALES “CURSO DE PROGRAMACIÓN EN LENGUAJE C#” 1ª. Parte Los nombres y marcas comerciales mencionados en el presente curso, son propiedad de sus respectivos autores o fabricantes.

Upload: acordeoneroleonel

Post on 19-Dec-2015

217 views

Category:

Documents


2 download

TRANSCRIPT

INGENIERÍA EN SISTEMAS COMPUTACIONALES

“CURSO DE PROGRAMACIÓN EN LENGUAJE C#”1ª. Parte

Los nombres y marcas comerciales mencionados en el presente curso, son propiedad de sus respectivos autores o fabricantes.

Ecma International es una organización basada en membresías de estándares para la comunicación y la información. European Computer Manufacturers Association (ECMA)

http://www.desarrolloweb.com/de_interes/ranking-lenguajes-programacion-noviembre-2012-7711.htmlhttp://www.tiobe.com/index.php/content/paperinfo/tpci/index.html

Persona.Nombre = “Homero“;Persona.Apellido = “Simpson“;Persona.Dirección = “Avenida Siempre Viva 743“;Persona.MuestraDatos();

Ojo: Atributo Dirección tiene acento

A continuación, se muestra el esqueleto de un programa en C# que contiene todos estos elementos.

Como int o char

Como class o interface

bool, byte, char, decimal, double, enum, float, int, long, sbyte, short, struct, uint, ulong, ushort

class, interface, delegate, object, string

for (var=inicial;condición;siguientevalor){

Instrucciones}

for (int i=1, int j=1; i<=3, j<=3; i++, j++){

...}

for (int i=1; i<=3; i++){

for (int j=1; j<=3; j++){

...}

}

Sintaxis:while (expresión bool){

Instrucciones}

Sintaxis:do{

Instrucciones} while (expresión bool);

CON LOS CONOCIMIENTOS ADQUIRIDOS, REALICE UN

UN PROYECTO APLICACIÓN DE CONSOLA

CON LOS CONOCIMIENTOS ADQUIRIDOS, REALICE UN

UN PROYECTO APLICACIÓN DE CONSOLA