DevCPP could work as a free IDE - take into account, however, that some of the "string and character output" functions don't work like Borland C++, Microsoft Visual C++ and (maybe others). I heard that Turbo C from Borland (version 3.1 I think) would be free as well