Lect3 - Yin Lou CS 2026 Spring 2010 Assignment 1 will be released tonight Due next Friday Submit through CMS Write a small C program ▪ Input A

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Yin Lou CS 2026, Spring 2010 Assignment 1 will be released tonight Due next Friday Submit through CMS Write a small C# program ▪ Input: A matrix and an operator (I/D/T) ▪ I: Increase all elements in matrix by 1 ▪ D: Decrease all elements in matrix by 1 ▪ T: Return the transpose of this matrix Visual C# 2008 Express walkthrough .Net framework, CLR, CTS There’s no concept of primitive type in C# ▪ int is a value type ▪ string is a reference type C# language guide C# Type Value types Reference types Boxing and unboxing Basic C# Features: Arrays Built-in value types User-defined value types Enumerations Integer Types Type Specifier Bits Range Data Suffix sbyte 8 – 2 7 through 2 7-1 byte 8 0 through 2 8-1 short 16-2 15 through 2 15-1 ushort 16 0 through 2 16-1 int 32-2 31 through 2 31-1 uint 32 0 through 2 32-1 U, u long 64-2 63 through 2 63-1 L, l ulong 64 0 through 2 64-1 UL, ul Floating-Point Data Types Declaration float tax = 0.5 f ; double tax = 0.5; / double tax = 0.5d; Type Specifier Bits...
View Full Document

This document was uploaded on 03/15/2010.

Page1 / 22

Lect3 - Yin Lou CS 2026 Spring 2010 Assignment 1 will be released tonight Due next Friday Submit through CMS Write a small C program ▪ Input A

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online