Geography 120: Earth Systems II. Atmosphere EXAM 2 (v4). Humidity ...
65 pages
English

Geography 120: Earth Systems II. Atmosphere EXAM 2 (v4). Humidity ...

-

Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
65 pages
English
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

  • exposé
Name:_____________________________________________Date:_________________ Geography 120: Earth Systems II. Atmosphere EXAM 2 (v4). Humidity, condensation, and clouds and cloud development and precipitation.
  • layer of unsaturated air
  • cloud development
  • fog that forms
  • fog
  • dew point temperature
  • unstable layer
  • parcel
  • cloud
  • ground
  • air

Sujets

Informations

Publié par
Nombre de lectures 17
Langue English

Extrait

Introduction to C#
The New Language for .
H.Mössenböck
University of Linz, Austria
moessenboeck@ssw.uni-linz.ac.atContents
Advanced C#
Introduction to C#
1. Overview 7. Inheritance
2. Types 8. Interfaces
3. Expressions 9. Delegates
4. Declarations 10. Exceptions
5. Statements 11. Namespaces and Assemblies
6. Classes and Structs 12. Attributes
13. Threads
14. XML Comments
References:
• B.Albahari, P.Drayton, B.Merrill: C# Essentials. O'Reilly, 2001
• S.Robinson et al: Professional C#, Wrox Press, 2001
• Online documentation on the .NET SDK CD
2Features of C#
Very similar to Java
70% Java, 10% C++, 5% Visual Basic, 15% new
As in Java As in C++
• Object-orientation (single inheritance) • (Operator) Overloading
• Interfaces • Pointer arithmetic in unsafe code
• Exceptions • Some syntactic details
• Threads
• Namespaces (like Packages)
• Strong typing
• Garbage Collection
• Reflection
• Dynamic loading of code
• ...
3New Features in C#
Really new (compared to Java) "Syntactic Sugar"
• Reference and output parameters • Component-based programming
• Objects on the stack (structs) - Properties
• Rectangular arrays - Events
• Enumerations • Delegates
• Unified type system • Indexers
• goto • Operator overloading
• Versioning • foreach statements
• Boxing/unboxing
• Attributes
• ...
4Hello World
File Hello.cs
using System;
• uses the namespace System
• entry point must be called Main
class Hello {
• output goes to the console
• file name and class name
static void Main() {
need not be identical
Console.WriteLine("Hello World");
}
}
Compilation (in the Console window)
csc Hello.cs
Execution
Hello
5Structure of C# Programs
Programm
File F1.cs File F2.cs File F3.cs
namespace A {...} namespace B {...} namespace C {...}
class X {...} class Y {...} class Z {...}
• If no namespace is specified => anonymous default namespace
• Namespaces may also contain structs, interfaces, delegates and enums
• Namespace may be "reopened" in other files
• Simplest case: single class, single file, default namespace
6A Program Consisting of 2 Files
Counter.cs
class Counter {
Compilation
int val = 0;
csc Counter.cs Prog.cs
public void Add (int x) { val = val + x; }
=> generates Prog.exe
public int Val () { return val; }
}
Execution
Prog
Prog.cs
using System;
class Prog {
Working with DLLs
static void Main() {
csc /target:library Counter.cs
Counter c = new Counter();
=> generates Counter.dll
c.Add(3); c.Add(5);
Console.WriteLine("val = " + c.Val());
csc /reference:Counter.dll Prog.cs
}
=> generates Prog.exe
}
7TypesUnified Type System
Types
Value Types Reference Types Pointers
Simple Types Enums Structs Classes Interfaces Arrays Delegates
bool sbyte byte float
char short ushort double
int uint decimal
User-defined Types
long ulong
All types are compatible with object
- can be assigned to variables of type object
- all operations of type object are applicable to them
9Value Types versus Reference Types
Value Types Reference Types
variable contains value reference
stored on stack heap
initialisation 0, false, '\0' null
assignment copies the value copies the reference
example int i = 17; string s = "Hello";
int j = i; string s1 = s;
i 17 s
H e l l o
j 17 s1
10

  • Accueil Accueil
  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • BD BD
  • Documents Documents