10-15-2005, 08:22 AM
i'm trying to figure out why this wont work in devc++
devc++ is really about to piss me off.. i cant get it to compile crap, it couldnt compile "hello world" on i good day, i swear... does anybody know of a better "free" compiler?
PLEASE HELP!!
Code:
#include <iostream>
using namespace std;
void func1();
void func2();
int count; // this is a global variable
int main()
{
int i; // this is a local variable
for(i=0; i<10; i++) {
count = i * 2;
func1();
}
return 0;
}
void func1()
{
cout << "count: " << count; // access global variable
cout << "\n"; // output a newline
func2();
}
void func2()
devc++ is really about to piss me off.. i cant get it to compile crap, it couldnt compile "hello world" on i good day, i swear... does anybody know of a better "free" compiler?
PLEASE HELP!!
url=http://www.random-seed.net][/url]