User Profile

Collapse

Profile Sidebar

Collapse
Lintwurm
Lintwurm
Last Activity: Nov 13 '08, 08:25 PM
Joined: Sep 24 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Lintwurm
    replied to command liine compiler for windows
    in C
    I'm not sure, but I think you should use bcc32 instead of g++ (And I think that you have to be in the right directory as well... which as default should be C://borland/bcc32/bin)... Once in the right dir, type the program source code name and enter...

    If this doesn't work though, why not work in Scite? It compiles for you and runs the program too...

    Hope this helps=)
    See more | Go to post

    Leave a comment:


  • Lintwurm
    replied to command liine compiler for windows
    in C
    hello, why not try the Borland compiler?

    We use it at our university...

    Download at http://www.cs.up.ac.za/module.php?spc= cb&module=COS13 5

    The first tutorial on the site should help you out with the setup...

    Hope this helps =)
    See more | Go to post

    Leave a comment:


  • Lintwurm
    replied to Help: Program For My Class
    in C
    Instead of: IValues.get(Inp utC)

    Just do a normal in... for instance cin<<variable.. .
    instead of variable.get(ci n)

    The .get function just means that whatever is in front of the word, it will get used as well...
    doing a normal cin (as example)... This will ignore whitespace...

    As far as I know


    Hope this help =)
    See more | Go to post

    Leave a comment:


  • Lintwurm
    replied to Faster way to read text from datafile
    in C
    Hello, I am also pretty new to this so if it isn't more efficient, I am sorry...

    Maybe try this...

    int wordcount = 0;
    string word[(number)]; //maybe just make the array a really large number?
    while( !file.txt.eof() )
    {
    wordcount++;
    (ifstreamname)> >word[wordcount];
    }

    I don't know how this will go but something in these lines should work fine =)...
    See more | Go to post

    Leave a comment:


  • Lintwurm
    replied to Error E2235 in c++
    in C
    Thanks!!! Finally I can continue =)...
    See more | Go to post

    Leave a comment:


  • Lintwurm
    replied to Error E2235 in c++
    in C
    It doesn't compile at all...

    This is the error message:
    "Error E2235 Chromosome.cpp 51: Member function must be called or its address taken in function Chromosome::ope rator ==(const Chromosome &) const"

    Thank you for your help in advance...
    See more | Go to post

    Leave a comment:


  • Lintwurm
    started a topic Error E2235 in c++
    in C

    Error E2235 in c++

    Hello. I wonder of anyone can help me.

    I am trying to overload some operators, but it keeps giving me some problems...

    I used the same code in another program and it works fine!!!

    here is the coding that is giving me grief...



    bool Chromosome::ope rator == (const Chromosome& other) const
    {
    return ((fitness == other.fitness() ));
    }

    bool...
    See more | Go to post
No activity results to display
Show More
Working...