C++ FOR BEGINNERS (2020) - ASCII Table, Program for ciphering text PROGRAMMING TUTORIAL

preview_player
Показать описание
In this C++ tutorial for beginners I am going to give a simple, beginner-friendly explanation of ASCII table using C++ and Visual Studio 2019, and also an example of a fun program that can be used for ciphering English words into ASCII.
5:34 - Simple, fun program for ciphering English words into ASCII

📚 Learn how to solve problems and build projects with these Free E-Books ⬇️

Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

However, please don't feel obligated to do so. I appreciate every one of you, and I will continue to share valuable content with you regardless of whether you choose to support me in this way. Thank you for being part of the Code Beauty community! ❤️😇

Follow me on other platforms:
Рекомендации по теме
Комментарии
Автор

📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

CodeBeauty
Автор

i've started learning c++ with your videos, please keep posting :)

phoebewell
Автор

you are amazing teacher/mentor !


#include <iostream>
using namespace std;

int main()
{
char c1, c2, c3, c4, c5;
cout << "Enter 5 letters: ";
cin >> c1 >> c2 >> c3 >> c4 >> c5;
cout << "ASCII message: " << int(c1) << " " << int(c2)
<< " " << int(c3) << " " << int(c4) << " " << int(c5) <<endl;

int a1, a2, a3, a4, a5;
cout << "Enter ASCII numbers: ";
cin >> a1 >> a2 >> a3 >> a4 >> a5;
cout << "Deciphered to readable words: " << char(a1) << "" << char(a2)
<< "" << char(a3) << "" << char(a4) << "" << char(a5);


system("pause>0");
}

Output:

Enter 5 letters: marty
ASCII message: 109 97 114 116 121
Enter ASCII numbers: 109 97 114 116 121
Deciphered to readable words: marty

sLeeepyMeee
Автор

i've seen this casting operator when we play around the keyword const in pointer and member functions but didn't hear from the instructor any explaination about it your analogy of teaching is amazing u go in details in such manner bravo helpful content hope you continue the serie .

ahmedreda
Автор

I am revisiting your superb tutorials! They are the best on YouTube! Thank you Saldina 😊

christosioannou
Автор

#include <iostream>
using namespace std;

// instead of typing a new line for each char variable it can be written as line 13
// each one must be separated by a comma
// ASCII uses 128 characters (enough for alphabet, numerics and special characters)

int main()
{
repeatme: // allows program to reset from this point

// change letter to ASCII
char c1, c2, c3, c4, c5; // defines what each variable is
cout << "Enter 5 letters and then press Enter: "; // allows user to enter 5 letters
cin >> c1 >> c2 >> c3 >> c4 >> c5; // all 5 variables in a single line
cout << "The ASCII Code for your word is: " << int(c1) << " " << int(c2) << " "
<< int(c3) << " " << int(c4) << " " << int(c5) << endl;
cout << " " << endl;


// Change ASCII to character
int i1, i2, i3, i4, i5;
cout << "Enter 5 numbers:";
cin >> i1 >> i2 >> i3 >> i4 >> i5;
cout << "ASCII message: " << char(i1) << char(i2) << char(i3) << char(i4) << char(i5) << endl;
cout << " " << endl;



goto repeatme; // tells program to go back to start

system("pause>0");
}

// by swapping char for int (line 13) and int for char (lines 16 + 17) it allows user to enter ASCII
// and output to show character
// a 97, b 98, c 99, d 100, e 101, f 102, g 103, h 104, i 105, j 106, k 107 etc

also added goto line to enable a replay instead of running it again

barryfinn
Автор

i just got into uni and your videos are helping me a lot to learn c++.thanks for the work maam.

munishsarker
Автор

I really enjoy how you code, I've been learning c++ from some mobile apps but this is the first time I've understood what ASCII is

skilztutorials
Автор

I want to thank you for taking time away from your day to help others learn C++, you are the BEST. Cheers from So Cal.

cesarmejia
Автор

from now on you're now my teacher, professor and code instructor thankyou for making this kind of video *heartemoji*

dan
Автор

I am a software engineering studnt, and I watch your videos so great.
keep going

williamzz
Автор

Obviously, you need to teach us all .. beginners or advanced .. I am all years when I listen to you. Your methods go beyond .. Please do that until the end of C++ or any computer language you know !!

georgefratila
Автор

thank you, i have studied c++ in college but you increase my information by giving me anew thing so i learing from you so thank you

omarmostafa
Автор

Your videos are educating and simple to comprehend. Thanks. Please keep on posting. I'm learning from you.

michaelanietiejackson
Автор

You make C++ look like python, THANKS FOR SUCH A BREAKDOWN OF DIFFICULT CONCEPTS

chikamsookeru
Автор

I saw a lot of videos that explain c++ which was so hard to understand but you are excellent teacher thank you !!!

othmanalghandour
Автор

Not sure if this was the requirement but I reconverted the ASCII back to letters in the code. Just in case it wasn't, I did the "enter 5 numbers" below it...

#include <iostream>
using namespace std;

int main()
{
char c1, c2, c3, c4, c5;
cout << "Enter 5 letters: ";
cin >> c1 >> c2 >> c3 >> c4 >> c5;
cout << "ASCII message: " << int(c1) << " " << int(c2) << " " << int(c3) << " " << int(c4) << " " << int(c5) << " " << endl;

//take the previous int values and decipher them back to char

cout << "Your deciphered word is: " << char(c1) << "" << char(c2) << "" << char(c3) << "" << char(c4) << "" << char(c5) << "" << endl;

//taking ASCII and turning them to letters

int i1, i2, i3, i4, i5;
cout << "Enter 5 numbers: ";
cin >> i1 >> i2 >> i3 >> i4 >> i5;
cout << "Your deciphered word is: " << char(i1) << "" << char(i2) << "" << char(i3) << "" << char(i4) << "" << char(i5) << ""<< endl;

system("pause>0");
}

eyesplash
Автор

This channel is really awesome! Congratulations! Really, I never thought I would understand C++ and, thanks to you, now I do! THANK YOU! You're the best! =)

nilsondelourenco
Автор

Saldina - I have just discovered your channel and will work through all of your lessons. By the end of the 3rd video, I was sold! I'm a mechanical engineer by training, and am embarking on a project that will connect industry standard databases to a GUI which will take user input along with look up data and generate output based on the result of calculations. The process I will be working on must be recursive and iterative in order to be accurate. Eventually, I hope to figure out how to extract some of the inputs I require from CAD drawings, so that some, most, or all of the required calculations are automated. My point in describing this project is that I have been searching many online classes/courses for the information about C++ ( and Python, and SQL, and, and, and...) that I believe I'll need to successfully complete the project. Yours is the first series of instruction that I have settled on to bring me from the beginner level to a point where I can begin to develop fluency in C++. Thank you for your lectures and succinct examples!

edwardcating
Автор

Your way of teaching i love it.it is relaxing and not boring.by the way nice glasses

zahidsherkhan
welcome to shbcf.ru