separate digits of a long number in c++ -


i have example long number 12345678901 , want separately each digit use it. tried hard didn't make far? ideas?

but have problem in of them when try number of 11 digits , more (that want) program stops working i'm running program in visual studio in other case-smaller numbers--is fine.. connection fact number long?

this give digits in variable b.

long = 12345678901; while(a > 0) {    long b = % 10;    /= 10; } 

Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -