Thread
:
How to read strings into 1D array and more?
View Single Post
•
•
Join Date: Jan 2008
Posts: 3,827
Reputation:
Solved Threads: 501
VernonDozier
Offline
Senior Poster
Re: How to read strings into 1D array and more?
0
#
6
Nov 30th, 2008
Help with Code Tags
(
Toggle Plain Text
)
static int messageIDGen;
public: Message(); Message(string,string,string,string);
static int messageIDGen; public: Message(); Message(string,string,string,string);
Just noticed this line. I guess you are supposed to use messageIDGen to produce the messageID. So you never pass it a value from the driver. Have messageID assigned in your constructor. Assign messageID to equal messageIDGen, then increment messageIDGen. Do all of this in your constructor. You probably aren't supposed to have a setMessgeID function. I hadn't noticed the messageIDGen variable before and the fact that it is static. Was that given to you or did you create it yourself?
VernonDozier
View Public Profile
Find all posts by VernonDozier