2 Replies - 352 Views - Last Post: 24 October 2010 - 03:28 PM Rate Topic: -----

#1 JesusArellano  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 24-October 10

c++

Posted 24 October 2010 - 01:22 PM

how can I use the mm.toSring("d2") to make the program always show two digit numbers??
Is This A Good Question/Topic? 0
  • +

Replies To: c++

#2 eker676  Icon User is offline

  • Software Engineer
  • member icon

Reputation: 378
  • View blog
  • Posts: 1,833
  • Joined: 18-April 09

Re: c++

Posted 24 October 2010 - 02:01 PM

I believe that toString() is a C#/Java function. toString() is not a part of the C++ standard string library.
Was This Post Helpful? 0
  • +
  • -

#3 peepsrct  Icon User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 151
  • Joined: 29-March 09

Re: c++

Posted 24 October 2010 - 03:28 PM

If I understand what your asking, you'd check the value of the variable then verify if it is a two digit number(if statement) than if it isn't when you display it you could add a "0" + d2 before it to display total you want.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1