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

Search:

Type: Posts; User: pipa

Page 1 of 5 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    2
    Views
    439

    Re: Newbie- probably a very simple question

    It works!
    Thanks a lot!
  2. Replies
    2
    Views
    439

    Newbie- probably a very simple question

    Hi all,

    I want to pass an array by reference and be able to change the value of array elements in the function I call. I am confused about the prototype declaration in header file and the function...
  3. Replies
    18
    Views
    2,839

    Re: Error using stl vector class..please help

    Thanks a lot Guys.
    It finally worked out well after installing more recent version of g++.
    Thanks!
  4. Replies
    18
    Views
    2,839

    Re: Error using stl vector class..please help

    I installed minGW port for GCC. Now how do I compile my code? When i go to dos prompt...i get the old version g++ and gcc.....did I miss something?
  5. Replies
    18
    Views
    2,839

    Re: Error using stl vector class..please help

    How do I install the new compiler on my windows platform?
    i installed the compiler I have from
    http://www.claremontmckenna.edu/math/ALee/g++/g++.html

    Can you plz guide me?
    Thanks a lot!
  6. Replies
    18
    Views
    2,839

    Re: Error using stl vector class..please help

    I get the following for version query:


    g++ -v
    Reading specs from C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\specs
    gcc version egcs-2.91.57 19980901...
  7. Replies
    18
    Views
    2,839

    Re: Error using stl vector class..please help

    In both cases I get compile time error:


    Compilation started at Mon Mar 23 21:31:22

    g++ -g main.cpp -o main -lm
    main.cpp: In function `int main()':
    main.cpp:10: no matching function for call...
  8. Replies
    18
    Views
    2,839

    Re: Error using stl vector class..please help

    Thanks.
    I have no idea...why it doesn't work.Can it be compiler? I am using g++ on windows platform. If I run the same program in linux, it works just fine. I dont know whats going on?
  9. Replies
    18
    Views
    2,839

    Re: Error using stl vector class..please help

    Thanks. I just wrote the code in rush to see what I get as a result. I made the suggested changes...but it still wont work .
  10. Replies
    18
    Views
    2,839

    Re: Error using stl vector class..please help

    Somehow the ".at" function is not working. When I do v[i], it works just fine......Whats the reason behind it? I have to change the whole code to make this change. Also, its not very safe.
  11. Replies
    18
    Views
    2,839

    Re: Error using stl vector class..please help

    Thanks.
    I reproduced the error by using a simple code:


    #include <iostream>
    #include<vector>

    main(){
    std::cout<<"hello"<<std::endl;
    vector<int> v( 5, 1 );
  12. Replies
    18
    Views
    2,839

    Error using stl vector class..please help

    Hi All,
    I am getting the following error:


    Eulerian.cpp: In method `void eulerian::createEul(const class util &)':
    Eulerian.cpp:24: no matching function for call to...
  13. Replies
    12
    Views
    1,604

    Re: Makefile for windows

    Thanks Peter_B, I will try this out and read the manual.
  14. Replies
    12
    Views
    1,604

    Re: Makefile for windows

    Thanks again.
    I don't have main.h. Is that a problem? What should I do in this situation?

    Thanks
  15. Replies
    12
    Views
    1,604

    Re: Makefile for windows

    Yeah, I have a file named main.cpp in that folder.

    if I compile by using "make -k"
    I get the fllowing:


    g++ -g -O2 -Wall -c Eulerian.cpp
    In file included from Eulerian.cpp:5:...
  16. Replies
    12
    Views
    1,604

    Re: Makefile for windows

    Thanks for your reply.
    I did "make -d" and Emacs printed out a lot of lines...which I was not able to understand.

    Also, I dont have any variable named CFLAGS. Can I still use the above rule you...
  17. Replies
    12
    Views
    1,604

    Re: Makefile for windows

    Yeah, g++ is in my path. It works fine from the Dos prompt.

    Thanks for you reply!
  18. Replies
    12
    Views
    1,604

    Re: Makefile for windows

    Can somebdy please help me?? Please.
  19. Replies
    12
    Views
    1,604

    Makefile for windows

    Hi All,
    I hope I am not doing some unusual thing. I use to work in EMACS and used GDB for running and compiling my C++ code in LINUX environment. I have to move to windows now but I do not want to...
  20. Replies
    2
    Views
    661

    typedef of class members

    Hi Guys,
    I am not sure if my question make sense or not.Anyways, I just want to kow if there is any way around to deal with the following issue.



    class A{
    int a;
    };

    class B{
  21. Replies
    7
    Views
    918

    Re: Simple question regarding virtual functions

    Thanks guys!
  22. Replies
    7
    Views
    918

    Re: Simple question regarding virtual functions

    I dont think the above will call "function()" of "derived " class. In the above, we are just creating an object of the "top" and a reference of the "top" (as objTop) and then calling its...
  23. Replies
    7
    Views
    918

    Re: Simple question regarding virtual functions

    Thanks for ur feedback, but I want to create an pointer (or reference) of the "top" class rather than the derived class.

    Thanks
  24. Replies
    7
    Views
    918

    Simple question regarding virtual functions

    If I have the following class structure:



    class top{
    public:
    virtual void function();
    };

    class derived:public top{
  25. Re: A simple Question regarding vector of a structure

    Thanks Graham!
Results 1 to 25 of 112
Page 1 of 5 1 2 3 4





Click Here to Expand Forum to Full Width

Featured