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=)
User Profile
Collapse
-
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 =)Leave a comment:
-
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 =)Leave a comment:
-
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 =)...Leave a comment:
-
-
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...Leave a comment:
-
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...
No activity results to display
Show More
Leave a comment: