What statement can i use to make a program that tell the number of digits of entered integer ? Help me guys
— It is not one statement, it is a routine of several statements.
— U can use while loop and division on 10.
— Or u can use simple strlen(str), but u can't make mistakes when entering numbers and should typing only digit chars.
Message permanent page
— The simplest way to do this is to enter a number (integer for example) , then convert integer to a string and count its characters which are digits by definition.If you wanna train yourself you can do binary-to-decimal transformation yourself.
— /warm channel ad
— Just kidding
— Hello guys, I have always problem to compile C++ code in VC. Dont know what is the best way for that but all your recommendations are appreciated
— User Mr.Beast has 1/2 warnings; be careful!The latest warn was because:photo of some book or etc; WRITE THE CODE
— Recommendation: press F7 !
— Don't do it I also had several issues with vs code... Use std gcc compiler... Use gcc