I use Xcode 3. If you are using the same program you can select "view > message bubbles > all issues" from the top menu and they will be displayed. If you are using a different program you should look through its view menu (or something similar) and try to find something about displaying messages.
But what if that number that you are square rooting is a variable, regardless if its an integer or not, and you want to continue to use the square rooted number with more addition before showing it on screen? I am trying to make a C++ program for finding the Surface Area of a Cone and I have to continue to use the number after it is square rooted. Any help?
How do you get the options to pop up after you double click the cmd (pow,sqrt, etc) with the open brackets "double"? I dont get open brackets when I type pow or sqrt.
+Murtaza Iqbal Always happy to hear when people are finding my videos helpful! Feel free to check out all the C++ tutorials I've made so far here: www.engineer4free.com/cplusplus :)
Glad I can help! I remember learning C++ in my first year and the stupidest/tiniest things that I just didn't know to look for would hold me up for hours. If you haven't already, make sure you check out engineer4free.com/cplusplus for the rest of the videos!
to do the square of a negative number you need to do for ex: square of -25 ou need to separete square of -1 x square of 25 now make the square of 25 and now is square of -1 x 5 they discovered that the square of -1 is i, i is a imaginary number so the answer to the square of -25 is 5i
I have got a problem, when I try to calculate a square root, if the result contains decimals, It shows me the closest number, and not the result with decimals
+BonjaVUGM might be you need to specify your precision. Try this in your program, right before you cout line: cout.setf(ios::fixed);cout.setf(ios::showpoint);cout.precision(4);
I use Xcode 3. If you are using the same program you can select "view > message bubbles > all issues" from the top menu and they will be displayed. If you are using a different program you should look through its view menu (or something similar) and try to find something about displaying messages.
Thx a lot this was way easier than the other tutorials ive seen
Thanks for letting me know 🙂
Thanks a lot ur vid literally helped me
Glad to hear it! There is more at engineer4free.com/cplusplus =)
Thank for your tutorial
Thanks for watching =)
glad to hear it!
thx very helpful, never thought that it only required a new header
You're welcome!! =)
But what if that number that you are square rooting is a variable, regardless if its an integer or not, and you want to continue to use the square rooted number with more addition before showing it on screen? I am trying to make a C++ program for finding the Surface Area of a Cone and I have to continue to use the number after it is square rooted. Any help?
How do you get the options to pop up after you double click the cmd (pow,sqrt, etc) with the open brackets "double"? I dont get open brackets when I type pow or sqrt.
Can you put i++ for square?
Thank you man it erally helped me in my work
+Murtaza Iqbal Always happy to hear when people are finding my videos helpful! Feel free to check out all the C++ tutorials I've made so far here: www.engineer4free.com/cplusplus :)
Can someone tell me what program he's using ?
RUclips wont let me write proper code in the comments, so here is what you can write (minus the semicolons)
double x
cout
What editor are you using?
Xcode. You can find all the hardware and software that I use at engineer4free.com/tools
what is the difference between math.h and cmath? First year computer science student here.
Mmmm, here's a good response to that question from StackOverflow: stackoverflow.com/a/15656459
I had no idea I had to include cmath. That's what was missing for me. First year computer science student here.
Glad I can help! I remember learning C++ in my first year and the stupidest/tiniest things that I just didn't know to look for would hold me up for hours. If you haven't already, make sure you check out engineer4free.com/cplusplus for the rest of the videos!
Engineer4Free thanks a lot man.
What text editor are you using? I'm just using the C++ software because I can't seem to run C++ on Brackets
It's an older version of Xcode. Here's a good list of alternatives to it too: alternativeto.net/software/xcode/
(X^3/ sqrt x ^2 ) x+2 there was a question like this not exactly the same but how we can do it?
many thanks u helped me a lot
Great, thanks for the info
what if the input for square root is a negative number? I keep getting nan
to do the square of a negative number you need to do for ex: square of -25 ou need to separete square of -1 x square of 25 now make the square of 25 and now is square of -1 x 5 they discovered that the square of -1 is i, i is a imaginary number so the answer to the square of -25 is 5i
what if the base is negative and the power is 0.5???
Square root mean power is 2
thank you very much
How to do the cube root????
You could code your own function, similar to this one: www.engineer4free.com/4/how-to-build-your-own-power-function-from-scratch
@@Engineer4Free Thanks
what IDE do you recommend for C++ coding on a mac? I am using Xcode but tbh it sucks :/
Here's a pretty good list of alternatives to Xcode. You can filter by platform too: alternativeto.net/software/xcode/
I have got a problem, when I try to calculate a square root, if the result contains decimals, It shows me the closest number, and not the result with decimals
BonjaVUGM That is very strange. See how it's prompting me to enter a double? It also returns a double. I just tried mine out, if I cout
Engineer4Free yes I'm using #include and writting the exact same thing you are writting :/
BonjaVUGM Maybe you are using different engines.
+BonjaVUGM declare the variable in float
+BonjaVUGM might be you need to specify your precision. Try this in your program, right before you cout line:
cout.setf(ios::fixed);cout.setf(ios::showpoint);cout.precision(4);
Thanks alot man, that helped alot :)
Thanks for commenting, glad to hear it!
Thanks!
good video
thanks
ur welcome :)
thanks bro
You're welcome ☺️
thank you
Hello mine is not doing square root for numbers which are declared in variables
grazie
Thank you so much
thx so much
You’re welcome Buzz!!
thanks
you're welcome