Answers for "increment in if else c++"

C++
0

c++ inline if

#include <iostream>

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

	std::cout << "b - " << bDidLaundry << " s - " << sDidLaundry << "n";
  
  	system("PAUSE");
  	return 0;
}
Posted by: Guest on October-17-2021

Browse Popular Code Answers by Language