BOOL is basically pretty intuitive..
my question:
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{ double cost, finalPrice;
bool type;
type=true; //taxable
cout << "Enter price: ";
cin >> cost;
if (type)
finalPrice = cost*1.07 ;
else
finalPrice = cost;
cout << "Final price: " << finalPrice << "\n";
return 0;
}
In the type=true
how does the computer knows its true?? what makes it true??
all in <bool type>..<type> is a created variable right?