C++ First Hello World Program | CPP Programming Video Tutorial

preview_player
Показать описание
In this c++ / cpp programming video tutorials / lecture for beginners video series, you will learn how to write your very first hello world program with example.

This tutorial explains the structure of a c++ program. You will learn what are pre processor directives and how to use them to include files to a program, what are the functions, what is function body, what are statements in a program,how to write the main function, from where the program starts execution, what is the value returned by the main function in a program in detail with example.

Learn Programming in HINDI at our youtube channel

Catch us on Social Media
Рекомендации по теме
Комментарии
Автор

good work man!, thanks for your patience in explaining things, this tutorial is very helpful and informative, once again thank you!.

oforianane
Автор

AWESOME videos (tutorials) bro. Easily able to understand. Thanks for the videos. Good Going :)

_HST
Автор

Thank you so much! This series of videos has been very helpful to me :D

akatsukiabima
Автор

Great tutorial!..Recommending my frnds too..

bhuvaneswarik
Автор

thank you Mr.Anil your tutorial is very helpful and easy to understand, excellent! amazing!! wonderful!

giefrancisco
Автор

I want to know what is the difference between #include<iostream.h> and what you have told( using namespace std) i some books i have read about iostream.h header file and in some namespace std . Please clear my doubt

bhavesh
Автор

its very informative and easy learning tutorial...best tutorial for the beginners

jamyangkinzang
Автор

Thanks best lecture i ever hear. . even i dont understand english to well but i easily understand your lecture sir about c++ and also english is gonna be to improving 💙

athlete
Автор

what next do you suggest after this tutorial series of cpp. can you suggest any simple project [ including cpp with Mysql or mongodb] just to learn things. do you have any other tutorial series with c++ and database together ?? or can you suggest towards that how can i learn those things with cpp.

adamaron
Автор

Sir, what is the effect of "using namespace std" here? if we omit that will there be any problem? how will we know what namespace we have to use?

janarddansarkar
Автор

Sir I am very thankful for you for your kind and best teaching and will pray for you as we can . may God bless you with the best reward.
I am your student and will follow you til last vedio
best regards for you

sultanzafranahmadkiani
Автор

I previously used turbo c++...and i am in a regular use of adding header file .h extension...if i add that extension here will it generate an error?

karansingh
Автор

Thank u buddy.Keep going please.I am glad to watch ur videos

connectciomer
Автор

I have problems with IDEs. I prefer simpler things, like the linux text editor + console shell

MrBeiragua
Автор

I am medical student, i just like studding computer programming online it seems a bit hard i guess harder than Chinese language, but this tutorial is really helpful thank you so much please if you have any helpful suggestions for me to study this programming reply me down here
thanks

afritech
Автор

i m a student of class xi and i dont know wether we have ide codeblock or not and toolset gcc or not in school what should i do...

dhruvarora
Автор

In programming in place of stdlibn what we can use and why u r leaving a line is it necessary

rajsarkar
Автор

This video word to word explanation. Check below



Cpp is c++

C Extension programs must have dot CPP Extension.

Next is include Header Files or Library files some library files to our program.

Include up files in a C++ program we’re gonna use something called “Preprocessor”

Preprocessor is a small program which is going to run before the Compilation process & here we use a Preprocessor directive called “hash include”. It allow us to include the library files or the header files to our program.

# - You can called Pound or Hash Symbol.

Iostream is the header file which we want to include to our program…Use in C in C out which help us to do io task. We are not using extension & this is a new styles of header provided in C++

Namespace – It’s a declarative region in which various program elements can be placed. It allows us large programs.

std; - Library feature available in C++ are placed under this STD namespace. Add Semicolon; - Every statement in C++ End with the semicolon.

Next is bout the main function or starting point where the program starts execution. Every program there must be a point where the execution starts so in c++ the main function is the one where the execution of program starts

Whatever we write in a curly braces are considered as the “Function body”

Cout --- It is less than symbol which is also called stream insertion operator.

return 0; --- Return some value – Return a value of ZERO. In C++ program a value returns zero indicates that this program has successfully executed.

#include <cstdlib> --- If you guys are using other IDE such as do C++ then you have to add post to your program for that you need to include another header file called the C STD LIB --- If you have program in c where we were using a header file called STD LM bit dot H you know which is standard library door date. In C++ to use file we need to write C then STD Lip No dot H is required & then C indicated that this header file is from the C.

We need to add statement before our return Zero & that’s called “system” & in bracket we need to write pause to write house & then & that statement with a semicolon

Conclusion:-
C++ source file is saved with an extension of .cpp . We slowed some library function (#include <iostream>) some predefined or prewritten features & our c++ program starts with “main function [int main (){ ] & whatever we write between the curly braces of function definition is called “Function “body”.

cout << "Hello World.";
system("PAUSE");

return 0;

rocky
Автор

Remember that it's poor practice to include shell commands in tutorials. For the GNU/Linux users out there, pass system("sleep 1"); instead of PAUSE, because PAUSE is a Windows specific shell command. If you can avoid it altogether, try to avoid passing shell commands at all.

brothertyler
Автор

Absolutely brilliant lecture i have never seen such fruitfull lectures

imrankazim