All 300/400 Level CS Major Courses Tutoring Location: SEC 3433 Sign up or walk-in Introduction2-1.

Slides:



Advertisements
Similar presentations
Introduction to .NET Framework
Advertisements

Using.NET Platform Note: Most of the material of these slides have been taken & extended from Nakov’s excellent overview for.NET framework, MSDN and wikipedia.
History of.Net Introduced by Microsoft Earlier technology was VC++ and VB VC++ comes with so many library and VB was so easy to use and not flexible to.
.NET Framework Overview Pingping Ma Nov 16 th, 2006.
.NET Technology.
ISYS 512 Business Application Design and Development with.Net David Chao.
Programming Our First Java Program Yingcai Xiao. What to Do Set up for Java Programming Write our first Java Program with IDE Write our first Java Program.
1/50 Project Management. 2/50 StumbleUpon 3/50 Overview Customize? Why, what, how?.NET Framework overview & fundamentals Class libraries, namespaces,
Data Structure and Algorithm 1 Yingcai Xiao. You Me The Course (
ISYS 512 Business Application Design and Development with.Net David Chao.
Programming A Historic Perspective on Code Reuse Yingcai Xiao.
Introducing the Common Language Runtime for.NET. The Common Language Runtime The Common Language Runtime (CLR) The Common Language Runtime (CLR) –Execution.
ISYS 512 Business Application Design and Development with.Net David Chao.
Introducing the Common Language Runtime. The Common Language Runtime The Common Language Runtime (CLR) The Common Language Runtime (CLR) –Execution engine.
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
Object Oriented Software Development 1. Introduction to C# and Visual Studio.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Lecture 2: An Introduction to J# and.NET. 2 MicrosoftIntroducing CS using.NETJ# in Visual Studio.NET 2-2 Objectives “Microsoft.NET is based on the.NET.
Introduction 01_intro.ppt
ISYS 350 Business Application Development
ISYS 512 Business Application Design and Development with.Net David Chao.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
CSC300 Visual Programming Dr. Craig Reinhart. Objectives Teach the basics of C++ –You won’t be an expert but hopefully a very good novice –GUI development.
Intro to C# Dr. John P. Abraham UTPA. Background required Thorough C++ programming – If you made an A in 1370/1170 you will do fine with some effort.
High thoughts must have high language. Aristophanes
Module 1: Introduction to C# Module 2: Variables and Data Types
C# A 1 CSC 298 Introduction to C#. C# A 2 What to expect in this class  Background: knowledge of an object oriented language of the C++, Java, … family.
11 Getting Started with C# Chapter Objectives You will be able to: 1. Say in general terms how C# differs from C. 2. Create, compile, and run a.
Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a library for.
Appendix D: Microsoft.NET Framework Overview. Overview.NET Framework Architecture.NET Namespaces.
Introduction to .NET Framework
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
Understanding Code Compilation and Deployment Lesson 4.
CSC 494/594 C# and ASP.NET Programming. C# 2012 C# Object-oriented language with syntax that is similar to Java.
Compiling and Executing Code in.Net Microsoft Intermediate Language and Common Language Runtime.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
Introduction .NET Framework
Computing with C# and the.NET Framework Chapter 1 An Introduction to Computing with C# ©2003, 2011 Art Gittleman.
MSIL & CLI Kun-Yuan Shieh.
Programming in C#. I. Introduction C# (or C-Sharp) is a programming language. C# is used to write software that runs on the.NET Framework. Although C#
Week 1: THE C# LANGUAGE Chapter 1: Variables and Expressions ➤ Included in Visual Studio.NET ➤ What the.NET Framework is and what it contains ➤ How.NET.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Java and C# [this is a bonus – it is not a required lesson] ACO101: Introduction to Computer Science.
Introduction to VB.Net. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new and updated.
Languages and IDE (Integrated Development Environment)
Applied Computing Technology Laboratory QuickStart C# Learning to Program in C# Amy Roberge & John Linehan November 7, 2005.
Rajiv and Shipra Introduction to.NET (asp.net,c#,vb)
ISYS 350 Business Application Development David Chao.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
Chapters 2 & 3. .NET Software development model that allows applications created in disparate programming languages to communicate Universal data access.
Microsoft .NET A platform that can be used for building and running windows and web applications such that the software is platform and device-independent.
BIL527 – Bilgisayar Programlama I Introduction 1.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
1st ACM meeting next Tuesday, Sep 3rd at 5:15 in SERC Introduction2-1.
ISYS 512 Business Application Design and Development with.Net David Chao.
INTRODUCTION CHAPTER #1 Visual Basic.NET. VB.Net General features It is an object oriented language  In the past VB had objects but focus was not placed.
The Execution System1. 2 Introduction Managed code and managed data qualify code or data that executes in cooperation with the execution engine The execution.
Text Introduction to.NET Framework. CONFIDENTIAL Agenda .NET Training – Purpose  What is.NET?  Why.NET?  Advantages  Architecture  Components: CLR,
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
Introduction to .NET framework
C# and the .NET Framework
Module 0: Introduction Chapter 2: Getting Started
Module 1: Getting Started
Advanced Programming: C# Lecture 01: Introduction
Lab 1 Introduction to C++.
.Net Framework Details Imran Rashid CTO at ManiWeber Technologies.
Visual Programming Lecture 1.
Programming language translators
IS 135 Business Programming
Presentation transcript:

All 300/400 Level CS Major Courses Tutoring Location: SEC 3433 Sign up or walk-in Introduction2-1

Language and IDE C++/CLI language and.NET framework Examples in Microsoft Visual Studio 2012

Compiled Languages Compiler (Including Linker) hello.cpp (high level) hello.exe (machine) Result Executor hello.exe

Interpreted Languages Interpreter hello.bas Result

Compiled vs. Interpreted Advantages Disadvantages

Hybrid Compiler-Interpreter Interpreter Source code Result Compiler Intermediate language code

Java JRE/JVM Java Source Code Result Javac Java Bytecode

C++/CLI CLR C++/CLI Source Code Result C++/CLI compiler CIL Bytecode This applies to C# and VB.NET too. CLR = Common Language Runtime CIL = C++ Intermediate Language

About C++\CLI C++ (.h,.cpp, complied) C++/CLI (compiled to MSIL (Microsoft Intermediate Language), not machine code)(not interpreted at runtime) C++ vs. C++/CLI –Unmanaged code vs. managed code Managed code: memory management, code access security, multi-language integration –Garbage collection

.NET –Application development technologies –.NET base class library –Common Language Runtime (above OS)

.NET Advantages Language natural … MSIL –Many non-MS languages can use base class library –Common Type System (CTS) –Common Language Specification (CLS) Minimum subset of CTS for all the.NET compatible languages Platform independent … CLR –Port.NET Framework to non-Windows platform w/o recompiling –JIT: Just-In-Time Compilation –A JIT compiler translates bytecode into the native machine language.

IDE (Integrated development environment) Microsoft Visual Studio for C++

Obtain Microsoft Visual Studio 2012 (either Professional, or Ultimate) Visual Studio 2012 only: any student at UA at no cost. licensing/dreamspark-standard/ and scroll to the very end (click on the “WebStore” link in “Obtaining Software” licensing/dreamspark-standard/

Obtain Windows, Microsoft Visual Studio 2012 (either Professional, or Ultimate) OIT resources for licensed copies access software through DreamSpark –STEM departments: DreamSpark Premium No cost to eligible students Get help: –OIT service desk –CS : Jeremy LaGrone, jlagrone at cs ua edu

Examples How to use Microsoft Visual Studio 2012 Assignment: within next two weeks –Download and install Microsoft Visual Studio –If needed, Windows as well. –Use Visual Studio to create a project of CLR Console Application after this class Can use your current or later assignments

Create a CLR Console Application –Start Microsoft Visual Studio 2012 –Create a new project by selecting from the menu bar "FILE"-> "New"->"Project". In the "New Project" dialog box, select "Visual C++" under "Installed Templates" and select "CLR Console Application" as the project template. Enter C:\CS351\Projects (or any directory designated for keeping your CS351 projects) in the "Location" field, and First (or any project name) in the "Name" filed. It is better to uncheck "Create directory for solution". –Add code to the project. –Build. –Execute.

backups

Examples Quadratic Equation: ax 2 +bx+c=0 Discriminant: ∆=b 2 -4ac Two roots: x 1 = x 2 =

// Quadratic.cpp : main project file. #include "stdafx.h" using namespace System; int main(array ^args) { double a, b, c; Console::Write(L"Enter the quadratic coefficiet(a): "); a = Double::Parse(Console::ReadLine()); Console::Write(L"Enter the linear coefficnet(b): "); b = Double::Parse(Console::ReadLine()); Console::Write(L"Enter the constant term(c): "); c = Double::Parse(Console::ReadLine()); double discriminant; discriminant = b*b-4*a*c; double x1 = (-b+Math::Sqrt(discriminant))/(2*a); double x2 = (-b-Math::Sqrt(discriminant))/(2*a); Console::WriteLine(L"Two roots are " + x1 + " and " + x2); return 0; }

Play with code 1. Console application –Output more –Read so to pause Console::Write(L"Enter the constant term(terminate): "); Int c = Double::Parse(Console::ReadLine()); Console::Write(L"Verify"); Boolean y = Double::Parse(Console::ReadLine()); 2. Windows Form Application –Use different form name