Salutem

José Antonio Martínez Escobedo dracllop at gmail.com
Thu Jul 12 20:10:51 BST 2018


Hello to all members!

    I'm a C++ student, used to visual studio till I decided to start from
scracth with ubuntu 18.
I love Kdevelop, it looks amazing and feels impressive. It has been easy to
edit, compile
and run little toy programs, but, in debug mode, when I want to know the
value of some
variables it returns a valid value for the type but not the one with the
variable has been
initialized.

    As an example, this code:

#include <iostream>

int main ()
{
    const float r1= 3.5f, r2 = 7.3f, pi = 3.14159;

    float area1 = pi * r1*r1;
    std::cout << "A circle of radius " << r1 << " has area "
          << area1 << "." << std::endl;

    std::cout << "The average of " << r1 << " and " << r2 << " is "
          << (r1 + r2) / 2 << "." << std::endl;
}


    In debug mode r1 gives a value of 1.39... instead of 3.5 and r2 has the
value 0.7219... instead of 7.3, last but not least pi gives the correct
value...last, but not least the program outputs the correct results before
exit.

Thanks a lot for your time, and thanks to all of you who have made Kdevelop
possible!

José Antonio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20180712/4de0462c/attachment.html>


More information about the KDevelop mailing list