Calculator program Using C++ Programing 🔥
HTML-код
- Опубликовано: 17 окт 2024
- Calculator program Using C++ Programing 🔥
➤Previous Video's▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼
C++ Program To Check Number is Even Or Odd 🔥
• C++ Program To Check N...
C++ Program To Add Two Number
• C++ Program To Add Two...
➤My Gears▼▼▼▼▼▼▼▼▼▼▼
MOBILE : Realme 2 Pro
MIC : Boya M1
➤Don't Forget.........LIKE SHARE & SUBSCRIBE👍↗️
➤Thank you for watching..............@itz techer wala
➤Your Quries▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼
check number is even or odd,
check number is even or odd in python,
python program to check number is even or odd,
java program to check number is even or odd,
check number is even or odd in java,
shell script to check number is even or odd,
javascript program to check number is even or odd,
write a program to check number is even or odd,
check if a number is even or odd c++,
C++,
c++ program,
c++ programs,
c++ programming language,
c++ programs for practice,
simple c++ program,
c++ programiz,
c++ program to add two numbers,
c++ programming examples
Theme name: Panda 🐼 Editor: VS Code
🎶
Nice way to learn switch case
Watching ppl code is surprisingly helpful
isnt a c library not a cpp lobrary
there is no need to include
... using namespace std; is the worst thing in C++. So i'll click off.
@@IlliaZhdanovI hate it when people "using namespace std"
@@WadDeIz_Realme too. Worst C++ feature
@@WadDeIz_Realwhy? i think that is better than writing std:: in multiple lines
This is a small scale program so std namespace being used is not a problem😂
If in use #include you can use sin() or cos() and pow()
Please use words like operand 1,operand 2 and operation, instead of just a, b, c..
In which site u r writing this code and executing plz tell ..
vscode editor
what program are you using ?
Me who made my calculator with if else 😂
you can use if else too, in some cases switch is more helpful but the basic logic is the same as if else
It works too, but switch case will be way more efficient.
@@tanishqb385switch statement corrupts my files in vscode for some reason
What kind of theam do you use in vs?
I can do in 15 lines using recursive and can take any number of input user wants with operators
Still for starting we have also done same thing
care to explain how do I take any no user of inputs
you should never include C headers on C++ files, use instead, and you didn't use the stdio functions so you can just remove it, also the "using namespace std;" is a bad practice, and, try to return values for a more efficient code. nice vid btw 👍
exactly
❤
Keyboard used?
If you want to get deeper into calculations with integers, try to write your own integer. It will definitely shows you what happens behind it and you will learn how to write your own operators. Also it will confront you with topics like optimization and standards for fixed point arithmetics.
Please keep in mind that the normal integer will probably still be better even if you have optimized tf out of yours so you shouldn’t really use them in your own projects, never then less it will teach you a shit tone of things depending on your level.
Whatdo you mean write your integer?
@@el_psy_canguri write an own integer
@@insertnamehere6211 what do you mean by that, i still dont understand, how do you write your own integer
@@el_psy_canguri you do it by creating for example a class named „myInt“ then you implement how the data in the int gets stored in mem, then you create the operators and help methods required for this kind of project and then you have it. It won’t be as good as the real int probably but it will give you lots of knowledge.
@@el_psy_canguri ok so apparently my comment wasn’t send or something but I will explain it more detailed. You can write a class, called for example „myInt“ there you proceed to build a basic logic like some helper methods, storage for the number itself preferably in bytes as you then can calculate it effectively via logic. Next you can write define the operators. (C++ example: „myInt operator+(myInt num);“)
You can then proceed to further add support for operators and stuff but if you build like not an overly complex datatype you can learn a lot about the programming language you are using and how it is working. Sorry again for the late message, I thought I already answered.
its actally really easy with a bit of repetitive if and else if by declarin a char variable and use it to determine the operator
code would be too long then
Sir i made the same thing as I'm the very beginner so how can i give the input here
You can use "cin>>" to get the input from ther user.
@@codebucketht That wasn't the actual question actually i was using other software for coding
0:00
It’s good that you changed at least a little what is on Microsoft’s website. damn programming genius
Bhai theme bahut badhiya lag Raha hai Kaun sa extension use Kiya hai
It's panda 🐼 theme
i'm dying.
Lmao it's easy when you learn the basics
What's the name of the song?
Use floats or doubles
doubles for bigger number
@@kevin3495ye
what application is that?
bro tryharding hard to type fastest in the world 💀
There's no need for the 2nd void function lmao
Background music name?
Nice
code:
#include
long long a, b;
using namespace std;
void getData()
{
std::cout a >> b;
}
void Calculator()
{
char Operators;
std::cout Operators;
switch (Operators)
{
case '+':
{
std::cout
were you high when you wrote this? you already declare namespace standard and still typing std in each line lol?
😂
@@islammatkarimov2353 copied from chat gpt
@@PaulSir_PlayZ Nope
global a,b
🔥🔥🔥🔥👍
Bhai sirf + - ni hota h Percentage root sab bhi hota h banna h to pura acha se banao 😂😂
What apps are those?
vs studio
Is it an application software;?
Nop
👍
Op "/ " return float not int!
Which aap he used?
It's Pc software called 'Vs code editor '
@M.r.b.e.a.s.t.H.i.n.d.igoogle pe search karlo
this clicking sound makes me want to die
Why the hell are you using the fastest typing audio ever but coding so slowly
Yo wtf is this speed up or bro's typing 100 words per second
Bro theme name
panda
Global variables - is very bed
0:00