Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Course Topics
C++: A General Purpose Language and
Library
01 | Getting Started
02 | Fundamentals
07 | Next Steps
Setting Expectations
Target Audience
Click to edit
Master subtitle
style
01 | {Getting Started}
Kate Gregory | Gregory Consulting
James McNellis | Senior Engineer, Visual C++
Module Overview
Development Environment
How to write, build, and run code
Quick History of C++
Variables and Types
Development Environment
Visual Studio Express 2013 for Windows Desktop
Its free and its all you need to follow along
DEMO
Hello, World!
Use a library
DEMO
Building
Debugging
Normally a console application
Starts
Executes the code in main()
Might print to the console (or read from the keyboard)
Terminates (quits)
DEMO
Debugging
Lesson 1: Types
C++ is strongly typed
Fundamental types
Casting (changing type)
DEMO
Types
Fundamental Types
Types you use a lot:
int, unsigned int
double
bool
http://
Casting
Instead of writing code that relies on the compiler to
convert one type to another, you can ask for it
explicitly
i = static_cast<int>(3.2);
Makes a good signpost for others who read your
code
Takes away compiler warnings
Always try to build warning free
DEMO
Casting
2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered
trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of
Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a
commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT
MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.