Category Archives: C Video Tutorial

C++ Tutorial 7

Install C++In this tutorial we continue solving problems with C++. We’ll solve the Caesar Cipher, Solve Equations for X, Create Lists of Primes and Generate a List of Random Values in a Range. I’m making these videos to make you good at solving random problems rather then just covering language syntax. Don’t worry if you get them wrong. The goal is to make you think in new ways.

All of the code and a transcript of the video follows the video below.  Continue reading C++ Tutorial 7

C++ Tutorial 6

Install C++In this tutorial we’ll solve 4 problems while learning some new tricks. We’ll turn vectors into strings and vice versa. Then we’ll trim whitespace, find all substring matches and then replace them. We’ll finish up the tutorial with homework on how to create a Caesar Cipher function.

I hope you enjoy this tutorial. All of the code and a transcript of the video follows the video below. Continue reading C++ Tutorial 6

C++ Tutorial 5

Install C++In this part of my C++ tutorial we’ll cover numerous ways to interact with Strings, numerous common Math functions and we’ll solve a rather complex 2 part problem. The goal of this series is to teach the syntax of the C++ language while actually teaching how to solve problems using C++. Each tutorial includes increasingly more complex problems for you to solve. All of the code and a transcript follows the video below. Continue reading C++ Tutorial 5

C++ Tutorial 2

Install C++I continue teaching C++ through problem solving. In this video I cover conditional operators, logical operators, if, else, arrays, vectors, converting strings into vectors, string stream, while loops, for loops and more. I’ll also present 2 problems for you to solve, which I’ll then provide the answer to.

I think learning through doing is the best and the problems will keep getting more complex. The code follows the video below to help. Continue reading C++ Tutorial 2

C++ Tutorial

Install C++Here I will begin my large C++ tutorial that many people have been asking for. I decided to teach C++ through problem solving. This first video covers preprocessor directives, main, cout, if, terminal arguments, for, data types, variables, constants, printf, strings, getline, cin, conversions, and much more.

This tutorial is light on problems, but for each forward I’ll try to include at least 3 progressively complex problems for you to solve. I hope you enjoy it. Continue reading C++ Tutorial

Install C++ & NetBeans

Install C++I asked everyone to tell me what tutorial they wanted and C++ won. In this tutorial I show you how to install C / C++ and NetBeans on both Windows and MacOS. I decided to use NetBeans because I think it is the best C++ IDE on every operating system.

Here is the link for Minimalist GNU, NetBeans and XCode. I’ll also be covering Arduino at the same time because of the interest in it. Fee free to use any IDE, because C++ code works on all of them. Continue reading Install C++ & NetBeans

C Video Tutorial 15

Binary Numbers CWelcome to part 15 of my C Video Tutorial! In this tutorial, I cover numerous topics.

First I go over how we can pass locations in memory between functions based on a request I received. Then I cover the Bitwise Operators AND, OR, Exclusive OR, and Shift Operators. We explore how signed numbers work and how the Ones Complement Operator can help. Then we look at Bit Masking and Binary Fractions. All of the code follows the video to help you learn. Continue reading C Video Tutorial 15

C Video Tutorial 14

Convert From Hexadecimal to Base 10 CIn the last part of my C Video Tutorial, I covered how to convert from base 10 to base 2, base 8 and base 16 with C.

At the end of that tutorial, I provided a homework assignment for you to write code that converts from any base back to base 10. In this tutorial, I will walk through exactly how to do that.

You can find all of the code below the video. Please leave any questions you may have. Continue reading C Video Tutorial 14

C Video Tutorial 13

C Binary NumbersWelcome to part 13 of my C Video Tutorial. I have been asked many times to explain how to convert base 10 numbers into binary (Base 2), octal (Base 8) and hexadecimal (Base 16) numbers. Today I’ll cover that topic.

I also cover how the different numbering systems work so that it will be easy to work with them in the videos that follow. All of the code can be found below along with a transcription to aid in translation. Continue reading C Video Tutorial 13

C Video Tutorial 12

C Binary File IOWelcome to my C Binary File IO tutorial. With the binary view of a file you have access to all the bytes in the file. You can store strings, arrays, structs, etc.

Aside from showing how to save and retrieve strings, I’ll also cover how to save array data and grab it out of the file randomly. I also briefly cover error handling in C. All the code is available below along with a transcript of what I said for translation. Continue reading C Video Tutorial 12

C Video Tutorial 11

C File IO ExampleIn this part of the C Video Tutorial I will provide C File IO examples. I’ll cover C Text File IO in this tutorial and the Binary File IO functions in the next part.

I specifically cover the following topics: FILE Data type, fopen(), fputs(), fseek(), ftell(), fgets(), fclose(), fscanf(), puts(), fprintf(), Different Ways to Access Files, and more. All of the code used is available below the video. Continue reading C Video Tutorial 11

C Video Tutorial 10

C Linked ListIn this video I continue with my C Linked List tutorial. In part 9, I gave you homework and in this video I will show you my answer. You guys asked for more tutorials like this, so I’m giving it a try.

So, today I’ll show you how to search through a Linked List. I’ll also cover how to delete structs and remove them not only from the Linked List, but also from memory. All of the code from the video is below along with a transcription. Continue reading C Video Tutorial 10

C Video Tutorial 9

linked list structureWelcome to my linked list structure or linked list struct tutorial. I have been asked to cover these structs numerous times lately and so I will do so.

In this tutorial and the next I will show how to create an unlimited number of structs using malloc. I’ll focus on creating the structs, adding them to the list and then how to display them. Because you guys ask for homework all of the time, you’ll then get the opportunity to write the code on how to search through the linked list, how to delete structs and free memory. Continue reading C Video Tutorial 9

C Video Tutorial 8

C Malloc TutorialWelcome to part 8 of my C Video Tutorial. In this video I cover a topic I have received many requests for. This is basically a C Malloc Tutorial.

Malloc() ( Memory Allocator ) is used to dynamically set aside memory at run time. Because malloc() returns a pointer to that location in memory it can be a bit confusing. I’ll cover how to store both regular data types as well as structs using malloc(). Continue reading C Video Tutorial 8

How To Install GCC

How To Install GCCIn the past week I have been asked a countless number of times how to install GCC ( GNU Compiler Collection ). I have been using it in my C Video Tutorial.

I show you how to install GCC on Windows as well as on a Mac in the video below. Not only did I make a video, but I also have everything listed step-by-step below after the video. If you have any trouble setting this up, leave a comment below and I’ll try to help. Continue reading How To Install GCC

C Video Tutorial 7

C Video Tutorial 7Welcome to part 7 of my C Video Tutorial! In this tutorial, I’m going to cover a bunch of topics that you have requested and that I have skipped.

I cover the following: strchr(), strrchr(), tolower(), toupper(), ctype.h Functions, _Bool, bool, Numerous Ways to Except Input, getchar(), putchar(), Buffering, gets(), puts(), fgets(), fputs(), How to Eliminate Newline, How to Make a String Lowercase, strcmp() and more. Continue reading C Video Tutorial 7

C Video Tutorial 6

C Video Tutorial 6Welcome to part 6 of my C video tutorial. Today I’m going to cover Unions, Enumerated Types, the Designated Initializer, Using unions in Structs, Recursive Structures, Linked Lists and much more.

I’m also going to experiment with a new style that is more interactive and I hope it feels more like a classroom setting. Throughout the tutorial I will constantly insert brain teasers. Hopefully they aren’t distracting. I do this every once in a while to try and improve. Continue reading C Video Tutorial 6