@@CHAITANYAPawar-sp4zh i triple checked every line he showed in the video, and in his discription. I also copy pasted his code from the discription into a new file to see if it works and still typing in a word breaks the program.
i'd like to ask... Why do we return 0 your explanations are AWESOME and very understandable. i think if you explain it to me, this will be clear as day.
when you return 0, its basically stating that you have 0 errors within the code, if it comes back besides 0 then you have errors ... more than likely itll come back as 1
theres so much different functions and keywords that can overlap with variables. instead i like to get my main ones and make two lines. for this program i have using std::cout, std::cin, std::string, std::endl, std::setprecision, std::fixed, std::numeric_limits, std::streamsize; // Input/ Output/ String/ EndLine/ FloatPrecision/ FixedFloat/ NumericLimitations/ StreamSize/
There is a bug in this problem. When I deposit money and type for example 32.45$ than it will add that but also says Invalid Choice. Can you fix that or is it too advanced at that moment? I really like your C++ series. Keep it up. Please make more C++ Videos. So, let's defeat the TH-cam algorithm.
Normally it's easier to release a full tutorial Playlist instead of parts because people always asking about the next video or how do you do this in the comments.
You're a legend, but just to make it even more clear for everyone, don't forget to type "#include " at the top of your file or else your code will still have errors
#include
#include
void showBalance(double balance);
double deposit();
double withdraw(double balance);
int main()
{
double balance = 0;
int choice = 0;
do{
std::cout
Your video says it was made 3 minutes ago and this comment was made 1 year ago are you a time traveler?
I'd love the way you give with a lot of real applications. Thanks
Awesome
coool!
Just had to do this for a lab in my programming class today lol. I wish I would have seen this video earlier 😭
std::cin.clear();
fflush(stdin);
Isn’t stopping the loop from endlessly repeating for me when I type in a word instead of numbers
yes it's the same for me :(
@@reginokamberaj6 did use use the using namespace std; line in your program?
@@CHAITANYAPawar-sp4zh "std;line" does not make sense
@@reginokamberaj6 no i meant like the "using namespace std;" line
@@CHAITANYAPawar-sp4zh i triple checked every line he showed in the video, and in his discription. I also copy pasted his code from the discription into a new file to see if it works and still typing in a word breaks the program.
hello I am a student learning c++ , I have a question that why the deposit function doesn't have parameter🤔🤔🤔🤔
because it doesn't call the balance variable inside of main so it doesn't need it.
i'd like to ask... Why do we return 0
your explanations are AWESOME and very understandable. i think if you explain it to me, this will be clear as day.
We return 0 because condition does not true
main() is an integer function. it returns the error code which 0 means it ran fine.@@Asr1elx1
0=false 1=true a boolean is actually 0,1 not true and false technically
when you return 0, its basically stating that you have 0 errors within the code, if it comes back besides 0 then you have errors ... more than likely itll come back as 1
@@virtualalphastudios6149 that was not what i asked but thanks anyway
Why is bro not using [using namespace std;]
because it can cause bugs and instabilty
theres so much different functions and keywords that can overlap with variables. instead i like to get my main ones and make two lines. for this program i have
using std::cout, std::cin, std::string, std::endl, std::setprecision, std::fixed, std::numeric_limits, std::streamsize;
// Input/ Output/ String/ EndLine/ FloatPrecision/ FixedFloat/ NumericLimitations/ StreamSize/
There is a bug in this problem. When I deposit money and type for example 32.45$ than it will add that but also says Invalid Choice. Can you fix that or is it too advanced at that moment?
I really like your C++ series. Keep it up. Please make more C++ Videos. So, let's defeat the TH-cam algorithm.
No Bro it's working fine
@@l4y694 ok. maybe I did something wrong.
If you are adding the $ yourself, that's likely what's breaking it, we just want 32.45
HOW DID YOU UPLOAD 40 VIDEOS IN HALF A HOUR? do you just release a bunch of videos every few months instead of relasing weekly uploads?
Normally it's easier to release a full tutorial Playlist instead of parts because people always asking about the next video or how do you do this in the comments.
Bros if your code gives infinte loop on character input use: std::cin.clear();
std::cin.ignore(std::numeric_limits::max(), '
');
You're a legend, but just to make it even more clear for everyone, don't forget to type "#include " at the top of your file or else your code will still have errors
Much thanks bro. You saved me