Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ inline if

#include <iostream>

int main()
{
	bool bDidLaundry = false;
	std::string sDidLaundry = bDidLaundry ? "1" : "0";

	std::cout << "b - " << bDidLaundry << " s - " << sDidLaundry << "
";
  
  	system("PAUSE");
  	return 0;
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #inline
ADD COMMENT
Topic
Name
7+5 =