I'd like to recommend the web book The Boost C++ Libraries .It is a very beginner friendly tutorial-style book showing some of the most usefull boost libraries.
Also take a look at More C++ Idioms...
Type: Posts; User: Letto
I'd like to recommend the web book The Boost C++ Libraries .It is a very beginner friendly tutorial-style book showing some of the most usefull boost libraries.
Also take a look at More C++ Idioms...
Of course it does. You are exiting the while far too early.It's the way you put the { }
while (number != -999)
{
scanf ("%lf", &number);
if (number !=...
Only that he needs to examine each digit individually ;)
Or better do this
int i;
int k, num = 1; //
//initialize i;etc
if (i<0) i = -i;
while (i > 10)
{
k = i%10;// currently last digit