Universidad Autónoma Metropolitana Unidad Azcapotzalco Departamento de Sistemas “INTRODUCCIÓN A LA PROGRAMACIÓN” Profesor:Jesús Isidro González Trejo Programa.

Slides:



Advertisements
Similar presentations
Universidad Autónoma Del Estado De Hidalgo Sistema De Universidad Virtual Programa De Nivelación De La Licenciatura En Enfermería English 4 UNIT 1 AGREEMENT,
Advertisements

Universidad Autónoma Del Estado De Hidalgo Sistema De Universidad Virtual English 4 UNIT 3 EXPRESSING PREFERENCES Speaking Simulated Practice: My Preferences.
Programación. Unidad 2 Operadores Operadores de asignación 1.= 2.+= 3.-= 4.*= 5./= 6.%= 7.>>= 8.
For(int i = 1; i
CPSC 441 TUTORIAL – JANUARY 16, 2012 TA: MARYAM ELAHI INTRODUCTION TO C.
Universidad de Alicante. Alicante (Spain) Modelling the populations of Trans-Neptunian Objects Paula G. Benavidez & Adriano Campo.
Universidad Autónoma Metropolitana Unidad Azcapotzalco Departamento de Sistemas “INTRODUCCIÓN A LA PROGRAMACIÓN” Profesor: Jesús Isidro González Trejo.
1/03/09 De 89 à 98. 1/03/09 De 89 à 98 1/03/09 De 89 à 98.
Introducción a la medida. Energía
Stack buffer overflow.
CSSE 332 Functions, Pointers in C. 2 Functions - why and how ? If a problem is large If a problem is large Modularization – easier to: Modularization.
Stack buffer overflow
C Review Pointers, Arrays, and I/O CS61c Summer 2006 Michael Le.
WISDNA: An Information Visualization Paradigm for XML Ricardo Baeza-Yates, Ricardo Lemus, Dulce Ponceleon, Savitha Srinivasan Presented by Ricardo Lemus.
Character Arrays strlen("hello, world"); /* string constant */ strlen(array); /* char array[100]; */ strlen(ptr); /* char *ptr; */ char pmessage[] = "now.
Advanced Programming in the UNIX Environment Hop Lee.
Programa “Barco” Ing. Arturo Díaz Vargas Departamento de Sistemas División de Ciencias Básicas e Ingeniería UNIVERSIDAD AUTONOMA METROPOLITANA.
Communication Software Title Group member 1 Group member 2 Group member 3 Group member 4 Departamento de Ingeniería Telemática Universidad Carlos.
Programa “Números ASCII” Ing. Arturo Díaz Vargas Departamento de Sistemas División de Ciencias Básicas e Ingeniería UNIVERSIDAD AUTONOMA METROPOLITANA.
Command line arguments. – main can take two arguments conventionally called argc and argv. – Information regarding command line arguments are passed to.
CS470/570 Lecture 5 Introduction to OpenMP Compute Pi example OpenMP directives and options.
GNU gcov (1/4) [from Wikipedia] gcov is a source code coverage analysis and statement- by-statement profiling tool. gcov generates exact counts of the.
軟體實驗: C-Lab5 虞台文. Lab5 Problem Write a program which accepts a text file as input and outputs how many characters, lines, and words the file contains.
ITEC 320 C++ Examples.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Command Line Arguments.
Computer programming Engr. Otitigbe Obadiah Oghoerore Alegbe Profesor de Sistemas Universidad Nacional de Lanus Buenos Aires – Argentina.
Chapter 8 Scope of variables Name reuse. Scope The region of program code where it is legal to reference (use) a variable The scope of a variable depends.
PP Lab MPI programming II. Program#1 Write a program that prints hello from every created process. Like: Hello World from process 0 of 5 Hello World from.
Lin Chen 09/06/2011. Global variables const int maxCandidates = 10; // Names of the candidates participating in this state's primary string candidate[maxCandidates];
CSE 232: C++ memory management Overview of Arrays Arrays are the simplest kind of data structure –One item right after another in memory (“contiguous range”
OPERATING SYSTEMS 1 - HARDWARE PIETER HARTEL 1. Hardware 2.
Bits and Bytes September 1, F’05 class02.ppt “The Class That Gives CMU Its Zip!”
Cryptography.
Pre/Post Condition Discussion 03/13/2013. Quicksort int main(int argc, char* argv[]) { int numbers[SIZE] = {2,5,3…} struct Sorter s; // initialize generic.
Arrays, Strings, and Memory. Command Line Arguments #include int main(int argc, char *argv[]) { int i; printf("Arg# Contents\n"); for (i = 0; i < argc;
Timing in MPI Tarik Booker MPI Presentation May 7, 2003.
OPERATING SYSTEMS 3 - PROCESSES PIETER HARTEL 1. Principle of concurrency - giving a process the illusion that it owns the whole machine  A process has:
Student Barón Sabrina. Weak form and the strong form.
Escuela de Ciencias de la Salud Universidad Autónoma de Baja California Group Meeting Presentation Jesus Cordova Guerrero Olson Research Group January.
“Success consists of going from failure to failure without loss of enthusiasm.” Winston Churchill.
。 33 投资环境 3 开阔视野 提升竞争力 。 3 嘉峪关市概况 。 3 。 3 嘉峪关是一座新兴的工业旅游城市,因关得名,因企设市,是长城文化与丝路文化交 汇点,是全国唯一一座以长城关隘命名的城市。嘉峪关关城位于祁连山、黑山之间。 1965 年建市,下辖雄关区、镜铁区、长城区, 全市总面积 2935.
Computer Graphics -practical- Lecture 6. (visual c++) open gl library To use open GL with VC++ we add these files:- 1)Glut.h C:\program files\ Microsoft.
Command Line Arguments
Command line arguments
Command Line Arguments
Understand argc and argv
Structure of C Programs
Arrays Part-1 Armen Keshishian.
Multi-dimensional Array
More Examples of argc and argv
Command-line Arguments
Command Line Arguments
Yung-Hsiang Lu Purdue University
By Hector M Lugo-Cordero September 17, 2008
הרצאה 08 פרמטרים ל- main קרן כליף.
Stack buffer overflow.
The Designer.
اصول کامپیوتر ۱ مبانی کامپیوتر و برنامه‌سازی
sscanf()- string scan function
Code::Block vs Visual C++
Resolución de problemas y algoritmos
Command Line Parameters
Strings and Pointer Arrays
프로그래밍2 및 실습 Sort Code 전명중.
In 2014, UNESCO presented the prize to Francisco Estévez, as a recognition of his commitment and work for the defense of Human Rights in our country. His.
Functions Reasons Concepts Passing arguments to a function
Sample answer of the first exercise. (1)
Iteration Statement for
Some codes for analysis and preparation for programming
Presentation transcript:

Universidad Autónoma Metropolitana Unidad Azcapotzalco Departamento de Sistemas “INTRODUCCIÓN A LA PROGRAMACIÓN” Profesor:Jesús Isidro González Trejo Programa “Caracter”

Ing. Arturo Díaz Vargas Departamento de Sistemas División de Ciencias Básicas e Ingeniería UNIVERSIDAD AUTONOMA METROPOLITANA

#include int main(int argc, char *argv[]) { char A; system("PAUSE"); return 0; }

#include int main(int argc, char *argv[]) { char A; printf("\nDame una Letra o Caracter:\n\n"); system("PAUSE"); return 0; }

#include int main(int argc, char *argv[]) { char A; printf("\nDame una Letra o Caracter:\n\n"); scanf("%c",&A); system("PAUSE"); return 0; }

#include int main(int argc, char *argv[]) { char A; printf("\nDame una Letra o Caracter:\n\n"); scanf("%c",&A); printf("\nSe imprimira la letra o caracter como:\n"); system("PAUSE"); return 0; }

#include int main(int argc, char *argv[]) { char A; printf("\nDame una Letra o Caracter:\n\n"); scanf("%c",&A); printf("\nSe imprimira la letra o caracter como:\n"); printf("\nCaracter=%c\n",A); system("PAUSE"); return 0; }