![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3
![]() |
setw() in .NET
what is the equivilent of this:
cout<<setw(2)<<dt.Second<<endl; Console::WriteLine(dt.Second); Thanks |
|
|
|
|
|
#2 |
|
Expert Programmer
|
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.
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|