Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: flex567

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    23
    Views
    220

    Re: Erase part of the string

    Why this program won't compile?


    #include <iostream>
    #include <string>

    using namespace std;

    int main {
  2. Replies
    23
    Views
    220

    Re: Erase part of the string

    Now it works for me too, I forgot to type something in the program.
  3. Replies
    23
    Views
    220

    Re: Erase part of the string

    why this program doesn't even compile?



    #include <iostream>
    #include <string>

    using namespace std;
  4. Replies
    23
    Views
    220

    Re: Erase part of the string

    After I swapped parameters it works for me too.
  5. Replies
    23
    Views
    220

    Re: Erase part of the string

    I edited both programs and still don't work.
  6. Replies
    23
    Views
    220

    Re: Erase part of the string

    This one will compile but will produce strange results?


    #include <iostream>
    #include <string>

    using namespace std;

    int main{
  7. Replies
    23
    Views
    220

    Re: Erase part of the string

    Why this program won't compile?


    #include <iostream>
    #include <string>
    using namespace std;


    bool isPalindrom(string s){
    string temp;
  8. Replies
    23
    Views
    220

    Re: Erase part of the string

    what is the difference between size_t type and an int type?
  9. Replies
    23
    Views
    220

    Re: Erase part of the string

    miniGw
  10. Replies
    23
    Views
    220

    Re: Erase part of the string

    This will not add 3 dots and .insert returns a string object. I tested it.
  11. Replies
    23
    Views
    220

    Re: Erase part of the string

    oh, i see.

    what about this



    string s1 = "***carr***";
    string s2;

    s2 = s1.insert(s1.end(),3,'.');
  12. Replies
    23
    Views
    220

    Erase part of the string

    // string::erase
    #include <iostream>
    #include <string>

    int main ()
    {
    std::string str ("This is an example sentence.");
    std::cout << str << '\n';
    ...
  13. Replies
    5
    Views
    160

    Re: random generator

    Why this program every time i run it returns the same value (for example 43)?
    But when i put it in a for loop it returns different value ?
  14. Replies
    5
    Views
    160

    Re: random generator

    rd() = constructor function ?
    eng() = constructor function to which is passed a value of the constructor function rd()?
  15. Replies
    5
    Views
    160

    random generator

    #include <iostream>
    #include <random>
    int main()
    {
    std::random_device rd; // obtain a random number from hardware
    std::mt19937 eng(rd()); // seed the generator
    ...
  16. Replies
    4
    Views
    172

    Re: how to include curl/curl.h?

    it is not mentioned how to link Curl with Qtcreator project.
  17. Replies
    4
    Views
    172

    Re: how to include curl/curl.h?

    yes but instructions are missing.
  18. Replies
    4
    Views
    172

    how to include curl/curl.h?

    I would like to run this program but i don't know where to find and how to include curl/curl.h into Qtcreator(64 bit OS)?
    I went to culr - downlad page and downloaded a .zip file and didn't a...
  19. Replies
    6
    Views
    209

    Re: Defining classes

    yes i meant constructor function
  20. Replies
    6
    Views
    209

    Re: Defining classes

    So a "normal" definition would be



    void A (int para) {
    A.a = para;
    }
  21. Replies
    6
    Views
    209

    Defining classes

    #include <iostream>
    using namespace std;

    class A {
    int a;
    public:
    A ( int a ) : a(a) {}; // ??
    int value() { return a; }
    };
  22. Replies
    6
    Views
    243

    Re: Emacs vs Qtqreator for c++

    i cannot make my Eclipse to work properly and i had lost patience with it. So i use Qtcreator instead.
  23. Replies
    3
    Views
    154

    Re: read string from the file

    thanx for the code.
  24. Replies
    3
    Views
    154

    read string from the file

    I have an example text file that contains:

    ***xyz text********
    ***********<td>temperatura: </td><td class="data">19.8 &deg;C</td>
    ***xyz text********
    ***********

    How can i extract the...
  25. Replies
    6
    Views
    243

    Re: Emacs vs Qtqreator for c++

    For what would you use Emacs than?
Results 1 to 25 of 62
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center