Mail Archives: djgpp/1997/08/30/01:02:54
From: | "Vincent Collura" <inventor AT worldchat DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Help with strings MID$?
|
Date: | 28 Aug 1997 19:49:18 GMT
|
Organization: | The Canadian NewFuels Research Centre Inc.
|
Lines: | 22
|
Message-ID: | <01bcb3ea$4e6e4560$6889d2cd@inventor.worldchat.com>
|
NNTP-Posting-Host: | rlan2-p42.wchat.on.ca
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hello,
I am new to C++ and am trying to convert a
old QuickBasic utiltiy I wrote into C++. It
compiles fine except I still cant figure how
to convert this Basic statement
tally(item) = MID$(touch$, 2, 5) + MID$(touch$, 41, 12) + MID$(touch$, 73,
7)
Into c++, For those who dont know, mid$ returns the
n'th character to the nth number.
What is the C++ function to do this? I have
tried StrnCat but the problem with this is you
cant specificy a starting location.
Any Help would be appreciated.
Vincent Collura
- Raw text -