ok, nvr mind. It works now. I just had to set the on_p and on_n vars to my mag_toggle function (now without the while loop).


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}