
Explore practical C++ programming by grounding you in basic programming principles and data types, then apply concepts to build a small business calculator app and a hangman game.
Install and set up Code::Blocks for C++ on Windows, macOS, or Linux using SourceForge downloads, select the gcc 4.8.1 compiler, and create your hello world project.
Learn to set up a C++ console project, compile and run to see hello world, and understand program skeleton with iostream, using namespace std, and the main function returning 0.
Master basic C++ output with cout, endl, and console output; declare and print char, int, double, and string variables, explore the skeleton code, and understand returning 0.
Master console input and output in C++ by using cin and cout, the stream operators, and matching data types to avoid garbage values; practice interactive prompts for names and ages.
Explore addition, subtraction, multiplication, and division in C++ with practical examples. Learn operator precedence, modulus, and string concatenation, and why using namespace std aids output.
Learn how if statements control flow in C++ using boolean conditions, and explore switch statements with cases, breaks, and a default, plus else-if chains for decisions driven by user input.
Build a practical calculator in C++ using a switch statement to choose between addition, subtraction, multiplication, and division, with input prompts, variables, and proper break and default handling.
Explore looping constructs in C++ with while, do-while, and for loops, learning increment and decrement operators, plus equals and minus equals, and how to exit infinite loops with control-c.
Explore how arrays act as data structures with a grocery list example, using for loops to populate and access elements, then write results to a file with file streams.
Explore file input in C++ using ifstream, ignore headers, and getline to read names from a text file into an array, managing end-of-file with pre-read and post-read loops.
Build a console C++ program that reads an employee text file with name and salary, prints the payroll, and updates the list via add or delete actions.
Explore the anatomy of functions in C++, including void and non-void forms. Call functions from main, return values, and pass parameters to drive a hanged man game.
Explore passing by reference in C++ and learn how prototypes and the ampersand notation allow functions to modify the original variables via memory addresses.
Explore function overloading by implementing multiple print salary prototypes with int, string, and double parameters, enabling flexible input handling and output formatting in C++.
Explore essential C++ string functions such as size, length, and find on string objects, and learn to implement a basic random number generator using rand with time-based seeding.
Learn to build a hangman game in C++ by prototyping word retrieval from a word bank, printing the board and blanks, generating random words, and tracking lives.
C++ is one of the most widely used programming languages today. The language itself is object-oriented, offering you the utmost control over data usage, interface, and resource allocation.
This course covers the fundamentals of programming in C++. Created for the novice programmer, this course assumes no prior knowledge of computer programming. The main elements of the language are introduced step by step in a logical, gradient manner. This approach will give you a solid foundation for writing useful, correct, maintainable, and efficient code.
At the end of this course you’ll have all the skills you need to begin programming in C++. With this complete tutorial, you’ll quickly master the basics, and then move on to more advanced features and concepts.
What you'll learn in this course:
· The fundamentals of C++
· Understand how C++ features help you write compact and efficient code
· Use concepts such as lambda expressions, move constructors, and assignment operators
· Learn best practices and avoid pitfalls via useful Do’s and Don’ts
· Test your knowledge and expertise with exercises
· Write fast and powerful C++ programs, compile the source code, and create executable files
· Learn C++ features that allow you to program compact and high-performance C++ applications
· Learn how to use the standard library to build robust programs quickly, and get comfortable with high-level programming