CS 106A : Complete C++ Programming Tutorial Guide

29 views54 pages
29 May 2023
Course
Professor
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 54 pages and 3 million more documents.

Already have an account? Log in
C++
i
About the Tutorial
C++ is a middle-level programming language developed by Bjarne Stroustrup in 1979 at
Bell Labs. C++ runs on a variety of platforms, such as Windows, Mac OS, and the various
versions of UNIX.
This tutorial adopts a simple and practical approach to describe the concepts of C++.
Audience
This tutorial has been prepared for the beginners to help them understand the basic to
advanced concepts related to C++.
Prerequisites
Before you begin practicing various examples given in this tutorial, we are making an
assumption that you are already aware of some basics, like the computer software
installation process and computer programming language.
Copyright & Disclaimer
Copyright 2014 by Tutorials Point (I) Pvt. Ltd.
All the content and graphics published in this e-book are the property of Tutorials Point (I)
Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish
any contents or a part of contents of this e-book in any manner without written consent
of the publisher.
We strive to update the contents of our website and tutorials as timely and as precisely as
possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt.
Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our
website or its contents including this tutorial. If you discover any errors on our website or
in this tutorial, please notify us at contact@tutorialspoint.com
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 54 pages and 3 million more documents.

Already have an account? Log in
C++
ii
Table of Contents
About the Tutorial ............................................................................................................................................ i
Audience........................................................................................................................................................... i
Prerequisites ..................................................................................................................................................... i
Copyright & Disclaimer ..................................................................................................................................... i
1. OVERVIEW .............................................................................................................................. 1
Object-Oriented Programming ........................................................................................................................ 1
Standard Libraries ............................................................................................................................................ 1
The ANSI Standard ........................................................................................................................................... 1
Learning C++ .................................................................................................................................................... 2
2. ENVIRONMENT SETUP ............................................................................................................ 3
Try it Option Online ......................................................................................................................................... 3
3. BASIC SYNTAX ......................................................................................................................... 5
C++ Program Structure ..................................................................................................................................... 5
Compile & Execute C++ Program ...................................................................................................................... 6
Semicolons & Blocks in C++ .............................................................................................................................. 6
C++ Keywords .................................................................................................................................................. 7
4. COMMENTS IN C++ ............................................................................................................... 10
5. DATA TYPES ........................................................................................................................... 11
Primitive Built-in Types .................................................................................................................................. 11
typedef Declarations ..................................................................................................................................... 13
Enumerated Types ......................................................................................................................................... 14
6. VARIABLE TYPES .................................................................................................................... 15
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 54 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers