
Originally Posted by
x[FG]Tim
Easy, Its not for Manual... It must be Auto
NoSpread can be done auto or you can you put hotkeys for on/off by using the Boolean data type to declare a variable whose value will be set as true (1) or false (0). To declare such a value, you use the bool keyword. I agree with larta you should understand what your doing before copy and pasting am I right x[FG]Tim?
You can declare a Boolean a variable as:
bool GotThePassingGrade = true;
you can assign the other value, like this
GotThePassingGrade = false;
Here is an example:
#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
bool MachineIsWorking = true;
cout << "Since this machine is working, its value is "
<< MachineIsWorking << endl;
MachineIsWorking = false;
cout << "The machine has stopped operating. "
<< "Now its value is " << MachineIsWorking << endl;
return 0;
}
Try to understand this first and I'm sure you can figure it out how.