Programming language C is not so far with C++ they are still related to each other, I am just confused why sometimes I don't understand some algorithm in C than C++. I am having a hard time coding lotto program, can you please give me some sample codes for C?
Other related lotto program in c programming language
Hi,
C language and C++ are not so far from each other. But the C++ is newer than C. Therefore there is some difference and C is more complex than C++. That is why you are facing difficulties with algorithm. For particular algorithm, C and C++ codes are not same. You can learn C codes by referring this link.
Other related lotto program in c programming language
Hello Clive Walker,
Â
It is true that C and C++ are related to each other, but C is an old language so some parts may be lacking compared to newer languages. If you are having problems understanding some algorithm in C then do this:
– Try to convert an algorithm written in C code to its logical step. If you don't understand C then try to find the algorithm name and logic.
– Once you understand the steps, convert it to C++ language.
That should be easy enough. For lotto algorithms you should be able to find it here: https://www.lottostrategies.com/script/showpage/1001040/h/algr_summary.html
and for a sample code in C you should be able to find it here: https://cboard.cprogramming.com/c-programming/142144-lotto-program-c.html
Â
Hope this helps.