Search:

Type: Posts; User: Letto

Search: Search took 0.01 seconds.

  1. Replies
    153
    Views
    217,112

    Sticky: I'd like to recommend the web book The Boost C++...

    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...
  2. Replies
    2
    Views
    1,473

    Of course it does. You are exiting the while far...

    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 !=...
  3. Replies
    22
    Views
    6,833

    Only that he needs to examine each digit...

    Only that he needs to examine each digit individually ;)
  4. Replies
    22
    Views
    6,833

    Or better do this int i; int k, num = 1; //...

    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
Results 1 to 4 of 4