Consitional Operator in C++ July 2011View more random threads:
- security and privacy in c
- Picking an IDE in c++ 2011
- why we use inline function if there are simple function...
- Explain the difference between state and attribute in c++...
- how to use Binary operators in c++ 2011
- Pointer question??
- C++ have Virtual Function vs Function Pointer call 2011
- speclization in c++ 2011
- ASCII code of c++
- PROBLOM IN PROGRAMMING code 2011
Code:#include <iostream> using namespace std; int main() { short hour =9, minute =10, second =5; cout << (hour <10 ? "0":"" )<<hour<<":" << (minute <10 ? "0":"" )<<minute<<":" << (second <10 ? "0":"" )<<second<<endl; cin.get(); return 0; }
Sponsored Links
There are currently 1 users browsing this thread. (0 members and 1 guests)