@562Krylon The period isn't needed, it's just there so that when it outputs the result in a sentence, the sentence ends with a period. < like that sentence.
@njoker555 hey im having some trouble debugging the code, the black screen pops up and i get to insert a number for it but when i press enter the window automatically shuts off ... u have any clue??
@HardkoreRocker do you have system("pause") in the program after the output? that or cin.get() should allow the program to stay on after it outputs the result.4
@jhelms87 first thing is that C++ doesn't know what the value of Pi is directly. You'll have to declare Pi as a variable and state it's value. Then declare the long and short axis' as variables and have a cout prompt and ask the user to input the values for each. You'll also have to declare a variable like "ellipse" to hold the final value of the equation. And then just solve for it the way the formula is written. That's one way of doing it.
@yoyofargo It may be. I've only used it a few times but never got used to it. I may introduce it in a future tutorial and explain it but system pause is pretty good for beginners, it becomes self explanatory after a while for them.
Thank you so much. Because of this example I am able to complete my Tuesday assignment for Intro to Programming. I am already on my third Module and its actually working! xD
can you explain why we need the '.'?
562Krylon 1 day ago
@562Krylon The period isn't needed, it's just there so that when it outputs the result in a sentence, the sentence ends with a period. < like that sentence.
njoker555 1 day ago
i like your birds:))
Iuliano99dmg 2 weeks ago in playlist Easy Programming C++ Beginner Tutorial Video Series
@Iuliano99dmg thanks :)
njoker555 2 weeks ago
Hello sir, love your programs. Can you please help with a geometry calculator?
Mrbroadcast1 11 months ago
@Mrbroadcast1 Sure I'll try to help, feel free to send me a msg.
njoker555 11 months ago
any tips on how to incorporate that formula in there
jhelms87 1 year ago
thanks for the reply im trying to write a calculator for an ellipse using the formula (PI * long axis * short axis) / 4 and tips
jhelms87 1 year ago
@jhelms87 cool, good luck :) let me know if you need, help, I'll do my best to help :)
njoker555 1 year ago
@njoker555 hey im having some trouble debugging the code, the black screen pops up and i get to insert a number for it but when i press enter the window automatically shuts off ... u have any clue??
HardkoreRocker 1 year ago
@HardkoreRocker do you have system("pause") in the program after the output? that or cin.get() should allow the program to stay on after it outputs the result.4
njoker555 1 year ago
@njoker555 yes my friend!! i tried that and it worked, i appreciate ur fast response bud, keep it up, peace!
HardkoreRocker 1 year ago
@HardkoreRocker great! Glad I could help :)
njoker555 1 year ago
any tips for incorporating that formula in code to make a calculator?
jhelms87 1 year ago
@jhelms87 first thing is that C++ doesn't know what the value of Pi is directly. You'll have to declare Pi as a variable and state it's value. Then declare the long and short axis' as variables and have a cout prompt and ask the user to input the values for each. You'll also have to declare a variable like "ellipse" to hold the final value of the equation. And then just solve for it the way the formula is written. That's one way of doing it.
njoker555 1 year ago
i worte the code in dev c++ should it still work??
jhelms87 1 year ago
@jhelms87 yeah that should work just fine.
njoker555 1 year ago
It's much better practice to use cin.get() versus a system pause.
yoyofargo 1 year ago
@yoyofargo It may be. I've only used it a few times but never got used to it. I may introduce it in a future tutorial and explain it but system pause is pretty good for beginners, it becomes self explanatory after a while for them.
Thanks :)
njoker555 1 year ago
Thank you so much. Because of this example I am able to complete my Tuesday assignment for Intro to Programming. I am already on my third Module and its actually working! xD
Nightmarerulz6 1 year ago 2
Man im crap at math
LamsasukeMedia 1 year ago
@LamsasukeMedia I'd fix that, programming is a fun way to do it too.
JosephElyon 1 year ago