Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 17th, 2008, 12:04 AM
Registered User
 
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem in c++

hi to all

this is a c++ program which doesn't give a proper output

the coding of the program is given below:-



#include<iostream.h>
#include<conio.h>
void main()
{
          int n;
          clrscr();
          cout<<endl<<"Enter any no.";
          cin>>n;
          cout<<endl<<"The no. is :"<<n;
          getch();
}




if we enter a number preceeding 0 (like 000065 )it gives as o/p 53
and any other no. preeceding 0 does not give proper o/p


Is this problem is internally related or there is some logic behind this


reply mst .........:D










Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.