Does anyone know of a free c++ compiler so i can practise cause i find it pretty stupid if they dont have a free compiler.
it is not like it has to bee some really good but i just need any compiler so i can practise in c++
// C++ version of 99 Bottles of Beer, object oriented paradigm
// programmer: Tim Robinson timtroyr@ionet.net
#include <fstream.h>
enum Bottle { BeerBottle };
class Shelf {
unsigned BottlesLeft;
public:
Shelf( unsigned bottlesbought )
: BottlesLeft( bottlesbought )
{}
void TakeOneDown()
{
if (!BottlesLeft)
throw BeerBottle;
BottlesLeft--;
}
operator int () { return BottlesLeft; }
};
int main( int, char ** )
{
Shelf Beer(99);
try {
for ( ; ; ) {
char *plural = (int)Beer !=1 ? "s" : "";
cout << (int)Beer << " bottle" << plural
<< " of beer on the wall," << endl;
cout << (int)Beer << " bottle" << plural
<< " of beer," << endl;
Beer.TakeOneDown();
cout << "Take one down, pass it around," << endl;
plural = (int)Beer !=1 ? "s":"";
cout << (int)Beer << " bottle" << plural
<< " of beer on the wall." << endl;
}
}
catch ( Bottle ) {
cout << "Go to the store and buy some more," << endl;
cout << "99 bottles of beer on the wall." << endl;
}
return 0;
}
There are two other versions of this program at : http://www.99-bottles-of-beer.net/c.html
That you need a compiler or example programs to practice?
If they are example programs: www.planetsourcecode.com, www.codebeach.com
You found enough code to practice from c,c++, visual c, or visual basic
yes but i need a compiler to practice cause right now i have no c++ compiler to practice something with
This has been answered several times in this thread: http://www.agsforums.com/yabb/index.php?topic=17279.0
If you want a good, free compiler, http://www.bloodshed.net/devcpp.html
Fun.
A couple of other links I found that might be of help:
lcc-win32: "get started programming in C in the Win32 environment".
It's free for non-commercial use.
http://www.cs.virginia.edu/~lcc-win32/
Borland C++ Compiler version 5.5 Free Download:
Info: http://community.borland.com/article/0,1410,20633,00.html
Download page: http://www.borland.com/products/downloads/download_cbuilder.html
wow thanks i am already dl a compiler ;D
and now when i am really STUCK i was thinking to use this thread to post help so there won't be too many threads of nothing
anyway, once again thanks