Local cover image
Local cover image

Learning C++ by creating games with UE4 [electronic resource]: learn C++ programming with a fun, real-world application that allows you to create your own games! by William Sherif

By: Material type: TextTextSeries: Publication details: Birmingham, UK Packt Publishing 2015Description: 1 digital resource (322 pages) illus. 25 cmISBN:
  • 9781784396572
Other title:
  • Learn C++ programming with a fun, real-world application that allows you to create your own games!
  • Learn C++ by creating games with Unreal Engine four
Subject(s): DDC classification:
  • 005.13 SHE
Contents:
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Coding with C++; Setting up our project; Using Microsoft Visual C++ on Windows; Using XCode on a Mac; Creating your first C++ program; Semicolons; Handling errors; Warnings; What is building and compiling?; Scripting; Exercise -- ASCII art; Summary; Chapter 2: Variables and Memory; Variables; Declaring variables -- touching the silicon; Reading and writing to your reserved spot in memory; Numbers are everything; More on variables; Math in C++; Exercises Branching code in more than two waysThe else if statement; Exercise; Solution; The switch statement; Switch versus if; Exercise; Solution; Summary; Chapter 4: Looping; The while loop; Infinite loops; Exercises; Solutions; The do/while loop; The for loop; Exercises; Solutions; Looping with Unreal Engine; Summary; Chapter 5: Functions and Macros; Functions; An example of a library function -- sqrt(); Writing our own functions; A sample program trace; Exercise; Solution; Functions with arguments; Functions that return values; Exercises; Solutions; Variables, revisited; Global variables Local variablesThe scope of a variable; Static local variables; Const variables; Function prototypes; .h and .cpp files; prototypes.h contains; funcs.cpp contains; main.cpp contains; Extern variables; Macros; Advice -- try to use const variables where possible; Macros with arguments; Advice -- use inline functions instead of macros with arguments; Summary; Chapter 6: Objects, Classes, and Inheritance; struct objects; Member functions; The this keyword; Strings are objects?; Invoking a member function; Exercises; Solutions; Privates and encapsulation; Some people like it public Class versus structGetters and setters; Getters; Setters; But what's the point of get/set operations?; Constructors and destructors; Class inheritance; Derived classes; Syntax of inheritance; What does inheritance do?; is-a relationship; protected variables; Virtual functions; Purely virtual functions (and abstract classes); Multiple inheritance; private inheritance; Putting your classes into headers; .h and .cpp; Exercise; Summary; Chapter 7: Dynamic Memory Allocation; Dynamic memory allocation; The delete keyword; Memory leaks; Regular arrays; The array syntax; Exercise; Solutions
Summary: If you are really passionate about games and have always wanted to write your own, this book is perfect for you. It will help you get started with programming in C++ and explore the immense functionalities of UE4.
List(s) this item appears in: STEM & ENGINEERING CORNER
Tags from this library: No tags from this library for this title. Log in to add tags.
Star ratings
    Average rating: 0.0 (0 votes)
Holdings
Item type Current library Shelving location Call number Copy number Status Date due Barcode
Books Books CamTech Library STEM & Engineering 005.13 SHE (Browse shelf(Opens below)) C.1 Available CamTech 000377
Electronic Materials Electronic Materials CamTech Library Digital Collections 1 digital item Available

Includes index.

English

Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Coding with C++; Setting up our project; Using Microsoft Visual C++ on Windows; Using XCode on a Mac; Creating your first C++ program; Semicolons; Handling errors; Warnings; What is building and compiling?; Scripting; Exercise --
ASCII art; Summary; Chapter 2: Variables and Memory; Variables; Declaring variables --
touching the silicon; Reading and writing to your reserved spot in memory; Numbers are everything; More on variables; Math in C++; Exercises Branching code in more than two waysThe else if statement; Exercise; Solution; The switch statement; Switch versus if; Exercise; Solution; Summary; Chapter 4: Looping; The while loop; Infinite loops; Exercises; Solutions; The do/while loop; The for loop; Exercises; Solutions; Looping with Unreal Engine; Summary; Chapter 5: Functions and Macros; Functions; An example of a library function --
sqrt(); Writing our own functions; A sample program trace; Exercise; Solution; Functions with arguments; Functions that return values; Exercises; Solutions; Variables, revisited; Global variables Local variablesThe scope of a variable; Static local variables; Const variables; Function prototypes; .h and .cpp files; prototypes.h contains; funcs.cpp contains; main.cpp contains; Extern variables; Macros; Advice --
try to use const variables where possible; Macros with arguments; Advice --
use inline functions instead of macros with arguments; Summary; Chapter 6: Objects, Classes, and Inheritance; struct objects; Member functions; The this keyword; Strings are objects?; Invoking a member function; Exercises; Solutions; Privates and encapsulation; Some people like it public Class versus structGetters and setters; Getters; Setters; But what's the point of get/set operations?; Constructors and destructors; Class inheritance; Derived classes; Syntax of inheritance; What does inheritance do?; is-a relationship; protected variables; Virtual functions; Purely virtual functions (and abstract classes); Multiple inheritance; private inheritance; Putting your classes into headers; .h and .cpp; Exercise; Summary; Chapter 7: Dynamic Memory Allocation; Dynamic memory allocation; The delete keyword; Memory leaks; Regular arrays; The array syntax; Exercise; Solutions

If you are really passionate about games and have always wanted to write your own, this book is perfect for you. It will help you get started with programming in C++ and explore the immense functionalities of UE4.

There are no comments on this title.

to post a comment.

Click on an image to view it in the image viewer

Local cover image