-
Notifications
You must be signed in to change notification settings - Fork 0
T2 00
This tutorial will continue from the previous one where we learned how to setup our computer, use the command line, use version control, and build a basic program using the command line with tests.
In the last tutorial we went through creating some of this stuff with minimal explanations. Now we will go through step by step so that you can better understand the basics and use them to create a more complex program. We will create a program that will crack a password! See the compiled program called secretPassword
. When you run the program you will enter in 3 numeric digits (numbers from 0 to 9). If you enter the correct code then you will see a congratulatory message. If not, the program will exit with a non-zero code if the number isn't correct.
You will create your C program that will perform a brute-force approach to cracking the code!
We will now be teaching more of the basics in C basic other basic programming info so that by the end of this tutorial you are familiar with:
- Variables including global and local variables;
- Headers;
- Function declaration, function call, parameters passing;
- Branch including If Else / Switch;
- For loop and While loop;
- Arrays, Strings and Pointers;
- Structures including declaration and deference;
- About motivation to code - https://thenextweb.com/dd/2015/06/11/8-barriers-to-overcome-when-learning-to-code/
- http://aelinik.free.fr/c/
- Jan 1, 2021 - Generated from m4 template
Authored by Betsalel (Saul) Williamson [email protected].
For more information about SERC visit sercpitt.weebly.com