Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Visual C++ 2005
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2005 by Ivor Horton; ISBN: 9780764571978
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2005 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 September 2nd, 2007, 08:13 PM
Authorized User
 
Join Date: Oct 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Read an integer in C++/CLI

    I am a beginner in C++/CLI. When I try to read an integer from console using Console::Read() method, I found that program reads only an ASCII decimal value of the first digit. Is there any way to read an integer as integer or a double as a double? If yes, then what will be a sample code?

 
Old June 16th, 2008, 04:34 AM
Registered User
 
Join Date: Jun 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

just try this have a interger variable in the code
read the string of characters and convert it into integer using the
atoi() function ...

hope it helps





Similar Threads
Thread Thread Starter Forum Replies Last Post
c++/cli and c# elvisfeverr C++ Programming 2 December 19th, 2011 02:17 PM
C++/CLI to C# jsbsudha XML 1 November 19th, 2007 02:30 PM
c++/CLI dll for c# lavi C# 1 April 23rd, 2007 11:25 AM
PHP5 CGI or CLI? freddo Beginning PHP 2 August 15th, 2004 07:20 PM





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