C++ Tutorial for Beginners 4 - Outputting Text

preview_player
Показать описание
-------------------------------------------------------------------------------------------------------------------------------------------
A tutorial on outputting text in C++. First we'll go through the main program one more time, then I'll explain how you can "print" (output) text in C++ using cout. Also, an important look at coding style.
--------------------------------------------------------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

instead of using a "endl;"
You can use "\n" - To signal a "newline"
Example:
cout << "This is some text\n";

You can use as many \n's as you want inside one statement to skip as many lines as you want.
I'm sure a lot of people know this but it was helpful to me as a quick way to start a new line.

Cunteroonie
Автор

Thank you John. I have always admired someone who know programming. Now I decided to learn it myself.

qingy
Автор

I believe cout stands for character output stream.
cin definitely means character input stream, so logic would dictate that cout follows the same idea since it's the exact opposite.

LagadoMC
Автор

i am actually new to programming but we are moving together, thank you sir

abdulhaleemishaqringim
Автор

Dude. You are awesome. Thanks for all this. Really helping me getting started with c++.

heatherbrown
Автор

thanks, i decided to learn c++ and with a few of your vids, i learned within a day!

stagger
Автор

You are awesome. Love from South Africa....

leratoblos
Автор

So endl make a new line and flush doesn't add a new line.. right?

heatlife
Автор

I always remembered cout to mean "Console OUT". not sure if that's actually what it means.

KazSadeghi
Автор

"Ctrl+shift+F" doesn't format. It has something to do with files!
Is there a quick way to format the "cout" on Windows?

Thank you for the lesson, sir!

claramelb
Автор

Hi. Just a quick question. Are you going to cover C++11 as well? It would be very very useful.

darek
Автор

I remember watching this lecture long ago and ngl I still continue to use semicolons on the same line rather beneath it.

swxin
Автор

Sir u didn't explain the usage of the statement "" using namespace std; "" I am strucked there please help me.Everything else u explained is very clear.Thank u.

balramchatria
Автор

I made a long piece of code just to find out that my windows debugger ( basically that play button) won't open my code. I know this is a old video, but please help!

vapeape
Автор

it a good video but at least you could have zoom in on the video...

jetspray
Автор

everything works except when I build then run the project no text shows up in the console

epicmovies
Автор

lets type something.. uhh.... i don't know.... "Banana." LOL

AnilKumar-dqno
Автор

When I do mine it opens but immediately closes

kenm
Автор

I'm already annoyed at the curly bracket on the same line...

TheToneBender