How to accept user input in C++? ⌨️

  Рет қаралды 47,902

Bro Code

Bro Code

Күн бұрын

Пікірлер: 53
@BroCodez
@BroCodez 2 жыл бұрын
#include // cout > (extraction operator) int main() { std::string name; int age; std::cout > std::ws, name); std::cout > age; std::cout
@MrPokerGaming
@MrPokerGaming 2 жыл бұрын
Make a discord platform bro! so we can communicate with each other and post our errors :)
@KeskilChnProgram
@KeskilChnProgram 2 жыл бұрын
Would you like to post Golang tutorial in near future Bro?
@kurtisvaldez3262
@kurtisvaldez3262 Жыл бұрын
Bro I been wondering how do you ask for a number and the user enters a number like 10 and i want the console to clear so that i can ask a new question without showing the previews question
@liquidate1538
@liquidate1538 Жыл бұрын
I get the error namespace "std" has no member "getline" C/C++(135) but the code still works, why is that? The error only disappears if I add include at the top
@mathuser8643
@mathuser8643 Күн бұрын
@@liquidate1538 add #include // Add this header for std::getline This will work.
@cmdrrespawn1329
@cmdrrespawn1329 Жыл бұрын
In case people were wondering if they had an issue with the getline not having the namespace add #include . Then the function will work as intended. Think Bro forgot to show that step.
@LetsSpreadOurDeen
@LetsSpreadOurDeen 8 ай бұрын
W bro thanks
@dreamboy1659
@dreamboy1659 8 ай бұрын
Broooo I should have looked at the comment section before going on the internetxD
@thechudson
@thechudson 6 ай бұрын
MVP🎉🎉🎉🎉 I was so lost bro, you saved me much thanks
@danigeometrydash
@danigeometrydash Ай бұрын
thanks!
@nemalex06afm49
@nemalex06afm49 Ай бұрын
W
@alexman6423
@alexman6423 2 жыл бұрын
It's a pleasure have you back bro!
@luisciprian412
@luisciprian412 2 жыл бұрын
Great tutorial as always man! Quick petition. Can you do minesweeper using Java? I will really like seeing a tutorial about this.
@BroCodez
@BroCodez 2 жыл бұрын
good idea! I'll consider that when I update the Java series
@mk8ez364
@mk8ez364 2 жыл бұрын
I'm glad your back! I wanted some refresher and it didn't take long to learn something new (std::ws). Thank you and please keep doin' what you do!
@bogdan486
@bogdan486 2 жыл бұрын
Where would you start to learn code now if you had 0 knowledge? is the school/ college way better than self learning? and how did you start learning and from where
@alexander-nm4nq
@alexander-nm4nq 2 жыл бұрын
I would say Codecademy
@baconheadhair6938
@baconheadhair6938 2 ай бұрын
just code.. you’re overthinking it brother the way to learn coding is just to code and research when you get stuck
@muntahmahfuzsrestho.
@muntahmahfuzsrestho. Ай бұрын
I am learning from W3schools. I think it's the best.
@arooba6132
@arooba6132 Ай бұрын
you can use "using namespace std ; " after "include" instead of using "std::" in every line
@weebparadise4230
@weebparadise4230 2 жыл бұрын
Yooooo let’s gooooooo your back!!!!!
@mlp405
@mlp405 Жыл бұрын
Help, when i check run in terminal it says "Unable to write into user settings. Please open the user settings to correct errors/warnings in it and try again."
@abhimanyu-kapoor
@abhimanyu-kapoor 2 жыл бұрын
Yoo bro is back!! Btw can you do native android development in Java series?
@ahmadosama2652
@ahmadosama2652 2 жыл бұрын
good work dude thanx for ur eforts greetings from Egypt
@someoneall
@someoneall 6 ай бұрын
So when using a mix of cin and getline you better use cin>>ws inside the get line
@BeatRunner69
@BeatRunner69 Жыл бұрын
Hello it said namespace "std" did not have member "getline" i did #include and it fixed it though?
@TheGeckoEffect
@TheGeckoEffect Жыл бұрын
#include doesnt include getline as a command anymore so you have to include to use getline but once u do that it works perfectly. I had the same issue.
@forkspoon4720
@forkspoon4720 2 жыл бұрын
What laptop can you guys recommend for programming?
@jvaxjoaopaulo8666
@jvaxjoaopaulo8666 Жыл бұрын
Currency output in c# used .ToString("c") ... How do I do it in c++?
@isaacreedy5500
@isaacreedy5500 Жыл бұрын
no using namespace std?
@Yellow_300
@Yellow_300 11 ай бұрын
It's a bad practice, you should stop using it
@youness1554
@youness1554 2 жыл бұрын
I liked the new profile of giga chad
@scpf2360
@scpf2360 2 жыл бұрын
Thank You Sooo Much Thsi Helped Me Alot!
@UnderArea51
@UnderArea51 2 жыл бұрын
What is Typescript compared to Javascript? Is it a framework of JS?
@CaioAlmeida-iv7yn
@CaioAlmeida-iv7yn 9 ай бұрын
BROS THE BEST
@Akurealguy
@Akurealguy 4 ай бұрын
If i use Visual Studio(not code)?
@nobbiedoobie
@nobbiedoobie 2 жыл бұрын
bro can do DSA with python
@عمارحسن-د8غ
@عمارحسن-د8غ 16 күн бұрын
You are Dragon I have learnt with you what I haven't learnt with others Thank you so much 👌💙 And I like pizza 🍕😂
@ryanalnaser914
@ryanalnaser914 2 жыл бұрын
whatever anything before or after
@jasonmorales7193
@jasonmorales7193 11 ай бұрын
Appreciate ya
@official_wary_7276
@official_wary_7276 Ай бұрын
anyone can anyone explain to me why need to use std :: ? i try to use using namespace std but the vs code cant run my code (but it can run in dev app) after change using std :: it completely run.
@Wolfee-pv2eh
@Wolfee-pv2eh Жыл бұрын
Thanks Bro!
@estherolayade4723
@estherolayade4723 2 ай бұрын
Thanks dude.
@yellowhellow-wi9gi
@yellowhellow-wi9gi 5 ай бұрын
thannk you
@ZzH-m5b
@ZzH-m5b Жыл бұрын
❤❤
@oximas-oe9vf
@oximas-oe9vf 2 жыл бұрын
way more complex than python, but pretty cool i feel like with just a little more experience I can hack Microsoft
@myname-gp9ul
@myname-gp9ul 2 жыл бұрын
i love yu bro
@football_editz_n1
@football_editz_n1 6 ай бұрын
random comment
@juliantomesheski5364
@juliantomesheski5364 4 ай бұрын
Heres my scuffed code :) #include #include #include int main() { std::string name; int age; std::cout > std::ws, name); std::cout > age; std::cout
@shinobimercy
@shinobimercy Жыл бұрын
You rock bro thank you so much
Useful math related functions in C++ 🔢
3:28
Bro Code
Рет қаралды 31 М.
C++ Full Course for free ⚡️
6:00:00
Bro Code
Рет қаралды 4,7 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
C++ How to fill an array with user input 🌭
6:58
Bro Code
Рет қаралды 12 М.
C++ tutorial for beginners 👨‍💻
14:00
Bro Code
Рет қаралды 258 М.
C++ Banking program for beginners 💰
13:53
Bro Code
Рет қаралды 16 М.
C++ Programming All-in-One Tutorial Series (10 HOURS!)
10:28:15
Caleb Curry
Рет қаралды 2,3 МЛН
C++ pointers explained easy 👈
5:16
Bro Code
Рет қаралды 54 М.
C++ Tutorial for Beginners - Full Course
4:01:19
freeCodeCamp.org
Рет қаралды 12 МЛН
C++ user defined functions explained 📞
7:24
Bro Code
Рет қаралды 28 М.
How To Actually Achieve Your Goals in 2025 (Evidence-Based)
15:15
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН