Todo list - PowerPoint PPT Presentation

1 / 10
About This Presentation
Title:

Todo list

Description:

... editors, compilers, DBMS, games, ... Computer languages. Machine ... Install on you own PC. Free download from MSDNAA. Buy from university book store at $10 ... – PowerPoint PPT presentation

Number of Views:234
Avg rating:3.0/5.0
Slides: 11
Provided by: name9
Category:
Tags: download | free | games | list | pc | todo

less

Transcript and Presenter's Notes

Title: Todo list


1
To-do list
  • Web resources for the course
  • Overview of computer system, C, and .NET
    Framework
  • Compile and run C program
  • How to access Visual Studio.NET
  • Overview of lexical and syntax structure of C
  • Your first C program - Hello, World
  • Use the console

2
Web resources for the course
  • Course webpage
  • http//www.cs.uiowa.edu/bruell/16S05.html
  • My link for this course
  • Click instructors link in the course page
  • http//www.cs.uiowa.edu/zhihwang/c016

3
Overview of a computer system
  • A usable computer system is an integrated set of
    computer hardware devices and associated system
    software.
  • Hardware
  • processor, memory, hard drives,
  • Input keyboard, mouse, webcam,
  • Output video/audio cards, monitor, printer, ...
  • Software
  • Programs running on computers
  • operating system (Windows XP, Redhat Linux, Mac
    OS )
  • Utility programs editors, compilers, DBMS,
    games,

4
Computer languages
  • Machine languages
  • A processor can understand only instructions
    represented by binary digits
  • e.g. 1101 001 1101 0110 1100 1110 0010 1001
  • Different processors have different instruction
    set
  • Humans have difficulty writing machine language
  • High-level languages (programming languages)
  • Allow programmers to write statements that are
    more meaningful
  • FORTRAN, COBOL, BASIC, C, C, Java, C,

program in machine language (executable)
Compiler
program in high-level language
Interpreter
execute
5
Compiling of a C program
Processor A code
JIT1
C source code
MSIL Code
C Compiler
Processor B code
JIT2
Processor C code
JIT3
csc.exe
Just-In-Time complier(s)
6
.NET Framework
  • Microsofts new-generation platform for
    application development
  • Widely varying types of apps. such as
    window-based apps. and web-based apps.
  • Two main parts
  • Common Language Runtime
  • Make code execution easier
  • .NET Framework class library
  • Make code development easier
  • Provide groups(namespaces) of types
  • Namespaces to be addressed in this course
  • System
  • System.Windows.Forms
  • System.IO (hopefully)

7
Develop C programs
  • Use Visual Studio.NET as development environment
    (recommended)
  • Remotely connect to windows server terminal
    services
  • Install on you own PC
  • Free download from MSDNAA
  • Buy from university book store at
  • Use .NET Framework SDK
  • Include C complier and .NET Framework class
    library
  • 1. Use an editor (e.g. notepad) to write C
    source code, for example, foo.cs
  • 2. Use command line to compile
  • csc foo.cs

8
Lexical structures and Syntax of C
Lexical Analyzer
Syntax Analyzer
tokens
C source code
MSIL
C Compiler
9
C Lexical Structure
  • comment
  • // This is a hello world program
  • / This is a hello world program /
  • white space space, tab, line return
  • operators - /
  • punctuators , ( ), , .
  • Literals specific values (integer, string, etc)
  • Keywords reserved identifiers by the language
  • public, static, class, int, void, for, while,
  • Other identifiers
  • Analyze this
  • int number 345

10
C Syntax
  • Grammatical rule to combine tokens into programs
  • declarations define a part of a program
  • statements control the sequence of the
    execution of a program
  • expression compute values

Class declaration
Method declaration
statement
statement
Write a Comment
User Comments (0)
About PowerShow.com