![]() |
setw() in .NET
what is the equivilent of this:
:
cout<<setw(2)<<dt.Second<<endl;:
Console::WriteLine(dt.Second);Thanks |
Look up the formatting options available through the ToString() member of dt.second. I can not tell you off hand how to do it since I don't use the formatters too often, but there is a way, should be easily found in MSDN.
|
You can use String.Format to format a string. It's basically a hybrid of printf and Pascal's write function.
Clickify. |
| All times are GMT -5. The time now is 12:20 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC