Displaying integer
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Displaying integer

  1. #1
    Join Date
    Apr 2010
    Posts
    7

    Displaying integer

    Code:
     
    int i = 0;
    cout<< i;
    i want to display i as in 000
    if my int i = 1, i want it to display 001.

    how do i code it so that it works like that?

  2. #2
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Fairfax, VA
    Posts
    10,893

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center