My Account Log in

1 option

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

EBSCOhost Academic eBook Collection (North America) Available online

View online
Format:
Book
Author/Creator:
Sherif, William, author.
Series:
Community experience distilled.
Community Experience Distilled
Language:
English
Subjects (All):
C++ (Computer program language).
C++ (Computer program language)--Software.
C++ (Computer program language)--Standards.
Physical Description:
1 online resource (342 p.)
Edition:
1st ed.
Place of Publication:
Birmingham, England : Packt Publishing Ltd, 2015.
Language Note:
English
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.
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
Generalized variable syntaxPrimitive types; Object types; Exercise - Player; Pointers; What can pointers do?; Address of operator &; The Null pointers; cin; printf(); Exercise; Solution; Summary; Chapter 3: If, Else, and Switch; Branching; Controlling the flow of your program; The == operator; Coding if statements; Coding else statements; Testing for inequalities using other comparison operators (>, >=, <, <=, and !=); Using logical operators; The Not (!) operator; Exercises; Solution; The And (&&) operator; The Or (||) operator; Our first example with Unreal Engine; Exercise; Solution
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
C++ style dynamic size arrays (new[] and delete[])
Notes:
Includes index.
Description based on online resource; title from PDF title page (ebrary, viewed March 16, 2015).
ISBN:
9781784394769
1784394769

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Library Catalog Using Articles+ Library Account