hey,
I just did the tutorial on classes.
when I compile it says 0 errors, but the button to execute the program is disabled.
When I take computer computer; out of main it lets me execute. Any ideas?Code:#include <stdio.h> #include <iostream> #include <string> #include <fstream> #include <cstdlib> using namespace std; class computer { public: computer(); ~computer(); void setSpeed( int p); int readSpeed(); protected: int processorspeed; }; computer::~computer() { } void computer::setSpeed ( int p ) { processorspeed = p; } int computer::readSpeed() { return processorspeed; } int main(int argc, char *argv[]) { computer compute; return 0; }