Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
Lecture 1: C++ Fundamentals
Programming Environment
The C++ Standard Library: A First Look
Data Types and Operators
Functions
Week 1 Summary
Programming Environment
I We use Visual Studio on Windows as our primary programming environment:
I Most students are familiar with Windows O/S
I Windows can be installed easily on MacBook
I Visual Studio is user friendly and feature rich programming environment
I Free access
I We will also use gcc on Linux as a secondary platform:
I some employers value programming experience on Linux
I another option for those who do not want to use Windows
I You can use one or the other, or both.
I I will use Windows and Visual Studio most of the time.
I I will show how to use gcc and Linux.
I Visual Studio is installed on lab computers. Report issues to Minsik Yu ([email protected])
Obtaining Software
I Installing Visual Studio (on Windows):
I Instructions are posted on course site
I Mac users:
I may download and install Windows as a second O/S using bootcamp
I use VMWare (instructions posted on course site)
I Linux access:
I Need help? Contact the TAs.
Getting Started with Visual Studio Integrated Development
Environment (IDE)
Getting Started
I Goal is to learn how how to use Visual Studio IDE, to:
1. create a project (application).
2. use the editor to write code.
3. build the application.
4. run the application.
Getting Started: Hello World Program
I We will create a very simple project to illustrate how to use Visual Studio IDE.
I The program shown below writes a message, "Hello, World!", to console (screen):
#include
int main()
{
std::cout << "Hello, World!" << std::endl;
return 0;
}
Our First C++ Project
I Let's code, build and run this program in Visual Studio.
I First, we will learn the steps we need to follow to create a project.
I After that, we will explain this program step by step and learn some C++.