Awesome, I'm glad this video was helpful for you, and you're welcome! :-)
@youngboii6393 Жыл бұрын
I want to ask why I declared but still not using GCD , I am using Visual Studio 2012 and 2020 , it doesn't work on both. Thanks for the reply
@PortfolioCourses Жыл бұрын
It depends on the version of C++ that Visual Studio 2012 and 2020 are using. C++ has different versions like C++14 and C++17, unless you are using C++17 and onwards then gcd will not work. The original code for the video is here: github.com/portfoliocourses/cplusplus-example-code/blob/main/gcd.cpp. You might be able to configure Visual Studio to use C++17: stackoverflow.com/questions/41308933/how-to-enable-c17-compiling-in-visual-studio. Though last time I read about it, I saw that Microsoft does not fully support all C++17 features necessarily, but perhaps that has changed by now. :-)
@youngboii6393 Жыл бұрын
@@PortfolioCourses I really appreciate you, thanks for giving me the answer, I was crazy about GCD hahaha . Hope your channel grows more and more. PEACE
@PortfolioCourses Жыл бұрын
@@youngboii6393 You're welcome! 🙂
@blackpinksjisooonumber1fan1852 жыл бұрын
hello i just wanted to ask how can we use gcd in real life??
@PortfolioCourses2 жыл бұрын
Any situation where you want the greatest common divisor of two numbers. :-) There are some answers in the first couple search results here: www.google.com/search?client=firefox-b-d&q=gcd+in+real+world. e.g. it comes up in different algorithms.