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

Search:

Type: Posts; User: halmark6Z

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. now I got it. If one could only know when...

    now I got it. If one could only know when temporary objects are
    created by the system?
  2. could you translate this code in english

    Hi,

    I was reading Thinking in C++ by Bruce Eckel and I got stuck with this example:



    class X {
    int i;
    public:
    X(int ii = 0);
  3. Reading a file, unwanted chars at the end

    Hi,

    I`m reading chars to a char *buffer



    ifstream datafile;
    int length;
    char * buffer;
  4. Thanks! Got it working. Now it got intresting,...

    Thanks! Got it working.

    Now it got intresting, I tried
    to run a small Test program.



    class House
    {
    private:
  5. thanks for your help! Though, now the compiler...

    thanks for your help!

    Though, now the compiler says:



    FileUtils.cpp: In member function `void FileUtils::loadAnimals(const std::vector<Animal*, std::allocator<Animal*> >&, const char*)':...
  6. well, it worked and it didn`t :confused: ...

    well, it worked and it didn`t :confused:

    First I did as you suggested. But the compiler complained
    -> I removed the word const from the function declaration
    and it worked.

    Doesn`t the const...
  7. vector->push_back - confusion about pointer syntax

    Hi again!

    I`ve puzzled the next one rather long, and Im pretty stuck with it:



    void loadAnimals(const vector<Animal*> *animals, const char* filename)
    {
    ...
    ...
  8. ah, got it! Those virtual functios should not...

    ah, got it!

    Those virtual functios should not be in the cpp file ... works fine!

    Thanks again !!
  9. ah, one error message removed! But it did not...

    ah, one error message removed!

    But it did not affect to the rest...
  10. Hi again, I tried, but no luck :( ...

    Hi again,

    I tried, but no luck :(




    #ifndef INCLUDED_ANIMAL_HPP
    #define INCLUDED_ANIMAL_HPP
  11. completely a newbie question - about cpp/hpp files

    As I started to use C++ this tuesday, I did not know anything about it. For now, I tought I should do all the code like:



    // file: Foo.cpp
    #ifndef INCLUDED_FOO
    #define INCLUDED_FOO
    ...
  12. jfaust you saved my day! did the...

    jfaust

    you saved my day!
    <Animal*> did the trick :p

    thanks for you too usmarine , destructors fixed.

    ok, let`s see if I can spell it right:
  13. I forgot to ask, did you observe any other /...

    I forgot to ask, did you observe any other / general flaws in the Customer - RegularCustomer - PlatinumCustomer classes ( in addition to destructor) ?
  14. sliced? I`ll fix my vectors to ...

    sliced?


    I`ll fix my vectors to <Animal*>

    and I`ll fix my destructors


    ps. I started using C++ last tuesday, so I`m not yet a C++ pro
    altough I have a rather long Java/Assembly:)...
  15. um, if I ask too stupid questions, just ignore....

    um, if I ask too stupid questions, just ignore. Anyway, I`m grateful for any help!
  16. //////////////////////////////////////////////////...

    //////////////////////////////////////////////////////////////////////
    #ifndef INCLUDED_CUSTOMER
    #define INCLUDED_CUSTOMER

    #include <string>
    #include <fstream>

    using namespace std;
  17. you are right, the Aniamal code worked. I`ll...

    you are right, the Aniamal code worked. I`ll format my code
    and put it here ... just a moment ...
  18. yes, they are all implemented ( the animal...

    yes, they are all implemented ( the animal example was just a similar case to my real implementation )

    in my real code, I put "Animal" references to a vector, but the compiler says:

    ...
  19. Polymorphism question - not working like I tought

    Ok, since I`m from Java background I tried to do the following
    like in the Java, at first. Consider the Java code:



    public abstract class Animal
    {
    public abstract void makeVoice(); // no...
  20. Replies
    15
    Views
    1,348

    fixed...I see light in the horizon.... ...

    fixed...I see light in the horizon....

    inheritance bug.
  21. Replies
    15
    Views
    1,348

    I tried, it complains about the same thing: ...

    I tried, it complains about the same thing:



    gxx -o Test.exe Test.o DerivedSimpleClass.o SimpleClass.o
    gxx -o Test.exe SimpleClass.o DerivedSimpleClass.o Test.o
    gxx -o Test.exe...
  22. Replies
    15
    Views
    1,348

    Finally, I got it working. Thank for helping,...

    Finally, I got it working. Thank for helping, really!

    I used gxx instead of g++:p

    Well, I tried a bit further.

    I made a simple class to do set/get stuff.
    Then I created a file with a main...
  23. Replies
    15
    Views
    1,348

    I just tried the following ...

    I just tried the following



    C:\projects\test>gcc -lstdc++ -o Test.exe Test.o

    and with this


    -Lc:\djgpp\lib\
  24. Replies
    15
    Views
    1,348

    I mean, with -l or -L flag. But what to include?

    I mean, with -l or -L flag. But what to include?
  25. Replies
    15
    Views
    1,348

    ummmm... I`m lost. I`v tried to search to manual...

    ummmm... I`m lost. I`v tried to search to manual
    for an answer...but no,

    as far I understand, I have to inform the linker about
    some libraries. But I don`t know what are the names of
    those and...
Results 1 to 25 of 30
Page 1 of 2 1 2


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center