Bucky, you cannot begin to imagine how grateful I am for your tutorials. Thanks for the time you spent and all the work you put into them. Really! THANKS!
Its strange he uploaded these videos when I were in grade 4,now I'm a university student ... amazingly, good effort to teach a lot of people .God bless u :)
An easy way to bypass this is to keep a log of what you learn. I have a folder for every 5 C++ videos, and in the folder is a word doc about a singular lesson. It helps!
For those wondering, you can also increase or decrease by more than just one. You can use, for example, x+=2; which will increase x by 2 everytime its ran. Replace the + with each different operator sign for desired effect.
Hey bucky! Just want to say that im glad that i found your channel, today my lecturer said to me that im not gonna be a good programmer although that is my ambition, I hope that you all can wish me luck in the coming years !! Thanks🤕
@Gaming Turkey, Slight difference: If you are doing multiple steps in one, the location of the "++" can lead to different outcomes. If the '++' is before the variable, it will increment the variable before using it, not after. For example: bacon = 10 Cout
It's very nearly a complete university for FREE! THIS is the future of education. Free, Open-Source, and Collaborative. Universities and Colleges? Archaic institutions from the past. -Cheers
At the end of the while loop what is the value of bacon? example: at 3:14, if you were to use the variable bacon after the while loop, would bacon still be 0 or would it be changed to 6?... If you were to cout
yup,thats another alternative,but the tutorial was about the while loops.. personally,i think that while and for are basically the same thing,but for is better in more complex programs and the while loop's better in simple programs IMO...
Hey MR. Bucky Roberts,, how many c++ tutorials have you made so far??? So far, i have seen 3 series tutorials on C++ : - Bucky's C++ Programming Tutorial (Code:Blocks, 2011) - C++ Tutorial (dev C++, 2008) - C++ Programming Tutorial (Code Blocks , 2010) so which of these tutorials am i gonna watch first as a beginner?? whats d diff between the 2010 and 2011 tutorial?? thanks..i just want to learn c++ .. NICe VIDs by the way...
Instead of putting bacon = bacon + 1; you could have simply used: bacon++; way easier,this is called a COUNTER,it increase one unit to the variable once the first loop ended and then it ask again until the while loop ends. other than that,great video,thanls to you,i know Java and C++ in a few months imma learn visual basic......you know,college really know how to test your patiente =S
hi bucky, u the most outstanding tutor of all time !!! I'm "green" whn it comes to programming but your videos are getting me onboard now. Do u by chance have a video tutorial for Xcode for beginner like me?
hey bucky i noticed that if i write the code exactly the way you wrote it except for the while part which i wrote while (bacon = 0) the program does nothing. I guess it might have something to do with return 0; thing but care to explain
i am trying to make a simple calculator allow to the user to enter how many number her/she wants. it goes well from the out side but when it start the calculation it gives a wrong result to the numbers i used these cods if you can help me please to know where is the mistake #include "stdafx.h" #include #include using namespace std; int main() { char operator_symbol, decision; float loopcount = 0, howmanynumbers, number, total = 0; decision = 'y'; while (decision == 'y') { cout > howmanynumbers; while (loopcount < howmanynumbers) { cout number; cout > operator_symbol; loopcount = loopcount + 1; } switch (operator_symbol) { case '+':total = total+ number; break; case '-':total = total- number; break; case '*':total = total* number; break; case '/':total = total/ number; break; default:cout
Hi, I would like to point out for what you are doing here a for loop is better suited. So instead of typing bacon = bacon + 1; bacon++; (will increment by one) or bacon += 1 (will add 1 to the value, can also be another value than 1, also possible as -= to subtract!)!
Well for loops have much more power then while loops, let me show you. Say you have an array of names, you could put this in a for loop for(int i =0; i < NamesLength; i++) { cout
Write a C++ programme that reads a sequence of integers terminated by zero value then finds the percentage of the negative numbers and the percentage of the positive number in the sequence. The programme output is as shown: : Enter a sequence of in integers terminated by zero 6 -7 -8 10 -12 14 15 2 -6 the percentage of negative numbers is 44.4 the percentage of positive numbers is 55.6 Please help me to solve this problem
when i watch these tutorials i learn stuff but if a teacher give me a program to write code for, i dont know what to do . I mean i cant make programs on my own. Plz help if someone knows how to master the logic for any program.
Umm Bucky I have a problem wih the program. Every time I want to make a new "program" I need to make a new project and start all over. If I just delete the lines I made and write the new ones it sais "Project *path to file here* cannot be saved..." and when I run it, it runs the old program. How do I fix that?
how could i make a calculator that you can enter any number of numbers you want by while loop and it stops when you press " = " i wrote ( char x ) and then made the condition in the while loop (char != " = " ) but it did't work and the was an error , and that was my last idea , witch failed
nessrien sayed youre trying to make it in a while loop, which can be a bit difficult. What you could do is use recursion. Recursion is when you make a function call itself so that it keeps going similar to a while loop. So you could write something similar to: void getNum(){ int i=0; vector number; string choice; cout > choice; if(choice=="yes"){ cout > number[i]; i++; addNum(); } //This will call itself after you use it until you answer anything other than "yes".
But what if I wanted to print only the value of bacon all those times but not changing the value of the increment while printed out. Only print it 20 or whatever times?!
why is it that when I compile it and set it to print bacon to 222,222 and then i do the same thing in python... Python goes faster? I thought python was slower than c++.... it finishes 21 seconds faster than c++ programming of the same kind... ( both counting to 222,222)
Yoo bucky bucks, cool tutorials. Still here 2020
Still here 2021
Still here 2022
Still here 2022 almost 2023
Now 2023 like if you still here❤
2024
Damn... I've been watching your tutorial and I've learned a lot than staying in my classroom.. best part is.... It's FREE! Thanks a lot buck
+Laurel Clemente Dinopol my teacher wanna get me thinking that "damn ,my teacher is so smart" but nope.....
same
cout
string name;
cout
Why not add that line in a while loop?
@@dearshoberoi285 ok buddy
thanks yo dope
@@rogueonlict1740
while(1){
cout
Bucky, you cannot begin to imagine how grateful I am for your tutorials. Thanks for the time you spent and all the work you put into them. Really! THANKS!
Its strange he uploaded these videos when I were in grade 4,now I'm a university student ... amazingly, good effort to teach a lot of people .God bless u :)
same
the best c++ teacher on youtube. thank you Bucky
Thank you so much for these tutorials. You explain it so much better than my instructor.
It was something that I had been looking for a couple of months.Thanks.
you can use bacon++ instead of bacon = bacon + 1;
bacon++ add 1 to bacon everytime bacon++ is called
Could also use bacon += 1; if you're just looking for acceptable variants.
Thank you so much Bucky, your channel has made coding so fun and easy
Some people are born to be helpful. Thanks a Lot bucky!!!!
If you don't want to type: bacon = bacon + 1, you can type: bacon++ it is just a shorthand for incrementing by one.
Hi Mr Buckys you are one in millions, you are just like a God sent. Thanks for all your tutorial videos, they're really good. God bless you.
Thanks bucky you are master at c++ ang teach very well I learned a TON of new things about c++ than my teacher!
"Pretty cool huh".... hell yeah!!! thanks a lot man
i love when bucky says "pretty cool, huh?"
Thanks for the help going through programming fundamentals and this is helping
Thank you for these great tutorials. Even I am Danish, I understand them and is learning :)
An easy way to bypass this is to keep a log of what you learn. I have a folder for every 5 C++ videos, and in the folder is a word doc about a singular lesson. It helps!
great stuff mate! easy to follow and to replicate. Thank you for the help!
In case you don't know you can also use "bacon++;" for adding one everytime you loop thru while loop
OMG, it really worked. Thank you so much!!
For those wondering, you can also increase or decrease by more than just one. You can use, for example, x+=2; which will increase x by 2 everytime its ran. Replace the + with each different operator sign for desired effect.
Thank you!! You're awesome. You should be teaching my CS161 class.
So useful for classes... thank you!
The way you teach is awesome..
yess !! this is exactly what i need !! Thanks buck...simply pro
very helpful thank you love these tutorials
thaaanx alot.helped alot keep going ;)
wow Bucky your explanations are awesome.....
Approx 2021, its going to be 10 years and everyone still watches these.
Great job explaining!
Hey bucky! Just want to say that im glad that i found your channel, today my lecturer said to me that im not gonna be a good programmer although that is my ambition, I hope that you all can wish me luck in the coming years !! Thanks🤕
Don't listen to him and pursue your dream
Good luck, Haziq!
Pretty cool huh!!
my teacher told us to watch your videos
Bucky's all tutorial 👌👌👌 Still yet
thanks Bucky
helped me so much brother
Lol? Why is your project in a folder called Watermelon.
Togmeister he's doing these tutorials the fun/creative way, calling classes bacon, apples etc :)
Togmeister he's doing these tutorials the fun/creative way, calling classes bacon, apples etc :)
Togmeister he's doing these tutorials the fun/creative way, calling classes bacon, apples etc :)
MasterSteve26 And you've posted this three times :P
TH-cam app on a smartphone... y'know, imma delete them :D edit: wut :DDD can't even delete them :DD
If you wanna add 1 to bacon, you could just write bacon++ right?
yes
Or ++Bacon. Does the same thing.
@Gaming Turkey,
Slight difference: If you are doing multiple steps in one, the location of the "++" can lead to different outcomes. If the '++' is before the variable, it will increment the variable before using it, not after. For example:
bacon = 10
Cout
勉強になりました。Thanks
Now teach us bacon++
It's very nearly a complete university for FREE! THIS is the future of education. Free, Open-Source, and Collaborative.
Universities and Colleges? Archaic institutions from the past.
-Cheers
thank you good sir and God bless everyone
thumbs up you worth it
@crjacinro Id keep wacting this one, I hav watched the other one for dev C++ (not codeblocks) and this one is a lot better and MUCH longer
At the end of the while loop what is the value of bacon? example: at 3:14, if you were to use the variable bacon after the while loop, would bacon still be 0 or would it be changed to 6?... If you were to cout
gad damn. Searching syntax led me on a never ending wikipedia adventure, yet again.
haha same here
Man you must love bacon haha! :D thank you for the tuts!
wow, now i understand how video game exploits work
thnx!
BEST.TEACHER.EVERRRRRRRRRRRRRRRRRR
yup,thats another alternative,but the tutorial was about the while loops..
personally,i think that while and for are basically the same thing,but for is better in more complex programs and the while loop's better in simple programs IMO...
Hello I keep getting use of undeclared identifier 'cout' and use of undeclared identifier 'endl' why is that and i wrote exactly same code as you did.
Super explanation
Hey MR. Bucky Roberts,, how many c++ tutorials have you made so far???
So far, i have seen 3 series tutorials on C++ :
- Bucky's C++ Programming Tutorial (Code:Blocks, 2011)
- C++ Tutorial (dev C++, 2008)
- C++ Programming Tutorial (Code Blocks , 2010)
so which of these tutorials am i gonna watch first as a beginner??
whats d diff between the 2010 and 2011 tutorial??
thanks..i just want to learn c++ ..
NICe VIDs by the way...
hmmm, how about while nested loop? where can i put the increment ?
I need some help, I understand how to do this, but what am i making bacon equal to, isnt bacon apart of an integer that equals 0?
I like how people are posting their codes, while i can't understand all of it I Sure will sooner or later.
Bucky is fantastic !!!!
BUCKY IS THE BEST!
Is there a way to capture the number of times the loop iterates?
Instead of putting
bacon = bacon + 1;
you could have simply used:
bacon++;
way easier,this is called a COUNTER,it increase one unit to the variable once the first loop ended and then it ask again until the while loop ends.
other than that,great video,thanls to you,i know Java and C++
in a few months imma learn visual basic......you know,college really know how to test your patiente =S
hi bucky, u the most outstanding tutor of all time !!! I'm "green" whn it comes to programming but your videos are getting me onboard now.
Do u by chance have a video tutorial for Xcode for beginner like me?
hey bucky i noticed that if i write the code exactly the way you wrote it except for the while part which i wrote while (bacon = 0) the program does nothing. I guess it might have something to do with return 0; thing but care to explain
i am trying to make a simple calculator allow to the user to enter how many number her/she wants. it goes well from the out side but when it start the calculation it gives a wrong result to the numbers
i used these cods if you can help me please to know where is the mistake
#include "stdafx.h"
#include
#include
using namespace std;
int main()
{
char operator_symbol, decision;
float loopcount = 0, howmanynumbers, number, total = 0;
decision = 'y';
while (decision == 'y')
{
cout > howmanynumbers;
while (loopcount < howmanynumbers) {
cout number;
cout > operator_symbol;
loopcount = loopcount + 1;
}
switch (operator_symbol)
{
case '+':total = total+ number;
break;
case '-':total = total- number;
break;
case '*':total = total* number;
break;
case '/':total = total/ number;
break;
default:cout
Hi, I would like to point out for what you are doing here a for loop is better suited. So instead of typing bacon = bacon + 1; bacon++; (will increment by one) or bacon += 1 (will add 1 to the value, can also be another value than 1, also possible as -= to subtract!)!
you can also do "bacon++;" it will add 1 for each pass.
yes you can, I think bucky is just demonstrating in its most basic form for those who find these abreviations hard
Well for loops have much more power then while loops, let me show you.
Say you have an array of names, you could put this in a for loop
for(int i =0; i < NamesLength; i++)
{
cout
@Raneman25 They do the same thing, but his way uses more code, hence why I said "more efficient".
Write a C++ programme that reads a sequence of integers terminated by zero value then finds the percentage of the negative numbers and the percentage of the positive number in the sequence. The programme output is as shown: :
Enter a sequence of in integers terminated by zero
6 -7 -8 10 -12 14 15 2 -6
the percentage of negative numbers is 44.4
the percentage of positive numbers is 55.6
Please help me to solve this problem
when i watch these tutorials i learn stuff but if a teacher give me a program to write code for, i dont know what to do . I mean i cant make programs on my own. Plz help if someone knows how to master the logic for any program.
for instance if you working on code for your microcontroller you want a loop run for ever. like pulsing LED on the arduino.
Umm Bucky I have a problem wih the program. Every time I want to make a new "program" I need to make a new project and start all over. If I just delete the lines I made and write the new ones it sais "Project *path to file here* cannot be saved..." and when I run it, it runs the old program. How do I fix that?
thanks, your video helped
My only issue is, there can never be enough bacon..
can you add a negative number ? just wondering
tnks man !😎
@benningtonguySTUDIOS ++bacon will add 1 to bacon before evaluating it. bacon++ will evaluate it as bacon THEN it will increment bacon.
So i did the while loop thing, still tryng to figure out how to make it stop :(
Just a tip:
A tidier way of adding 1 to a variable is:
x++;
Just so ya know ;D
i have subscribe your channel after watching this video:-).
how do we program this series 7, 9, 14, 20, 27, 33, 42, 52, 63, 73, 86, ...
how could i make a calculator that you can enter any number of numbers you want by while loop and it stops when you press " = " i wrote ( char x ) and then made the condition in the while loop (char != " = " ) but it did't work and the was an error , and that was my last idea , witch failed
use single quotes instead of double quotes around '='
nessrien sayed youre trying to make it in a while loop, which can be a bit difficult. What you could do is use recursion. Recursion is when you make a function call itself so that it keeps going similar to a while loop. So you could write something similar to:
void getNum(){
int i=0;
vector number;
string choice;
cout > choice;
if(choice=="yes"){
cout > number[i];
i++;
addNum();
}
//This will call itself after you use it until you answer anything other than "yes".
nessrien sayed actually if you really wanted to do it with a while loop you could have cin>> amountOfNums and then while(x
But what if I wanted to print only the value of bacon all those times but not changing the value of the increment while printed out. Only print it 20 or whatever times?!
Use 2 variable. 1 for increment 1 for bacon
woww dude...you are a genius LMAO!!!
why is it that when I compile it and set it to print bacon to 222,222 and then i do the same thing in python... Python goes faster? I thought python was slower than c++.... it finishes 21 seconds faster than c++ programming of the same kind... ( both counting to 222,222)
Sir bacon ki jgah or Kuch bhi likh sakte h kya
How is it different from the for loop??
for (int bacon=0; bacon
guess what !!,i made an freaking bomb timer !!!BOOOM
Thanks man
Thanks again
What's better for the while loop here? bacon = bacon + 1....... or bacon++?
Thanks, bucky. Hope ur bacon tastes good
Well expained
While this is useful you can only do it once, for instance.
cout
and what if you need to add more than that? sure, you could add more counters, but that takes up space.
You need to start Bucky School of Computing
do you have a video on counters?
man, this guy really loves bacon.
Thank u buck