[C++] Reading an int from char[]

From: Stefan Buhr (stefan.buhr_at_post.rwth-aachen.de)
Date: 02/25/04


Date: Wed, 25 Feb 2004 12:48:52 +0100

Hi,

I want to read an integer value from char *argv[].

When I assign int var = *argv[1] and call my program with the parameter 85,
the variable var gets the value 57. Who can tell me what to do?

Thanx in advance,

Stef