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 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    171

    Re: Problems with MySql database

    actually I solved the problem already. I had to copy libmysql.dll from C:\xampp\mysql\lib to C:\Qt\5.3\mingw482_32\bin
  2. Replies
    4
    Views
    171

    Re: Problems with MySql database

    yes it should but there is a bigger problem.
    http://i58.tinypic.com/2sakxkz.png
  3. Replies
    4
    Views
    171

    Problems with MySql database

    Why this program won't compile ?


    #-------------------------------------------------
    #
    # Project created by QtCreator 2014-10-21T19:22:38
    #
    #-------------------------------------------------...
  4. Thread: hello world

    by flex567
    Replies
    2
    Views
    238

    Re: hello world

    oh, I see, I thought that it was something wrong with IDE(or the settings)
  5. Thread: hello world

    by flex567
    Replies
    2
    Views
    238

    hello world

    I dont know why this program won't compile in Visaul Studio ? So far I used Eclipse and QtCreator.

    http://i57.tinypic.com/dfgevd.png
  6. Replies
    24
    Views
    1,558

    Re: Problem with maps

    I don't know why my program cannot find the key of the map?


    #include <iostream>
    #include <map>
    #include <algorithm>
    using namespace std;

    int main() {
  7. Replies
    16
    Views
    408

    Re: Beginner problems with files

    If you pass an objects as an argument that invokes class constructor? So it means that it can run its own code?
  8. Replies
    16
    Views
    408

    Re: Beginner problems with files

    .c_str() is the solution but when I compiled it with Qt I didn't have to use the .c_str() function. Probably because it has different compiler than Eclipse.
  9. Replies
    16
    Views
    408

    Re: Beginner problems with files

    Now I have just one error:


    Invalid arguments '
    Candidates are:
    void open(const char *, enum std::_Ios_Openmode)
    '
  10. Replies
    16
    Views
    408

    Re: Beginner problems with files

    #include "functions.h"


    int main(){

    string s1 = "feather";
    string s2 = "abcdefghijklmnopqrstuvwxyz"; //"ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    string s3,s4,s5;
  11. Replies
    16
    Views
    408

    Re: Beginner problems with files

    I might have changed a thing or 2 in the code before posting it :ehh:

    Now I will send the latest code
  12. Replies
    16
    Views
    408

    Re: Beginner problems with files

    Maybe I should pass the pointer to SetKeyToMap() function as well.
    I compile it now in Eclipse. Before that I compiled it with Qt and it worked without a problem. - ifsO1.open(pathIN, ...
  13. Replies
    16
    Views
    408

    Re: Beginner problems with files

    it wont work even after I fix it to

    SetKeyToMap(s3);

    Now i get

    Invalid arguments '
    Candidates are:
    std::map<int,char,std::less<int>,std::allocator<std::pair<const int,char>>>...
  14. Replies
    16
    Views
    408

    Beginner problems with files

    Why this program won't compile?


    //#include <iterator>
    //#include <iostream>
    #include "functions.h"

    int main(){

    string s1 = "feather";
  15. Replies
    24
    Views
    1,558

    Re: Problem with maps

    how can I reverse the entire map? Is there a function that can do that?
  16. Replies
    24
    Views
    1,558

    Re: Problem with maps

    Maybe I should rather use pair instead of map?
  17. Replies
    24
    Views
    1,558

    Re: Problem with maps

    oh, I see find() always searches for a matching key. How can I search for a non-key value of a map?
  18. Replies
    24
    Views
    1,558

    Re: Problem with maps

    Can't figure out why this code won't compile??


    #include <map>
    #include <iterator>
    #include <iostream>

    using namespace std;

    int main()
  19. Replies
    9
    Views
    824

    Re: Problem with lists

    Really strange behaviour of this program??

    #include <iostream>
    #include <list>


    using namespace std;

    void downsize(list<int> &names){
  20. Replies
    26
    Views
    1,278

    Re: Problems with operator overloading

    yes I meant temp.r and temp.j
  21. Replies
    26
    Views
    1,278

    Re: Problems with operator overloading

    What about this, this seems correct to me:

    Complex1 operator + (const Complex1 & lhs , const Complex1 & rhs){
    Complex1 temp;
    r.temp = r.lhs + r.rhs;
    ...
  22. Replies
    26
    Views
    1,278

    Re: Problems with operator overloading

    It works now. Why shouldn't we write this function like that:

    Complex1 operator + (const Complex1 & lhs , const Complex1 & rhs){
    Complex temp;
    temp = lhs + rhs;
    ...
  23. Replies
    26
    Views
    1,278

    Re: Problems with operator overloading

    How can we put an object into an object's constructor?

    Complex1 temp(lhs)
  24. Replies
    26
    Views
    1,278

    Re: Problems with operator overloading

    When I paste this:

    Complex1 operator + (const Complex1 & lhs , const Complex1 & rhs)
    into the header file I get this error:

    - 'Complex1 Complex1::operator+(const Complex1&, const Complex1&)'...
  25. Replies
    26
    Views
    1,278

    Re: Problems with operator overloading

    I try to go one step at a time and right now I don't know much about namespaces.
Results 1 to 25 of 117
Page 1 of 5 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center