I have an input file that has call to function and arguments that are passed to that function. There might be one argument or two. A simple while loop for input will not work ex-while(inputf >> function >> arg1 >> arg2) because if a function has only one argument then arg2 will read the function call for the next set of data. Any suggestions would be appreciated.
nizbit
0
Junior Poster in Training
Recommended Answers
Jump to PostI have an input file that has call to function and arguments that are passed to that function. There might be one argument or two. A simple while loop for input will not work ex-while(inputf >> function >> arg1 >> arg2) because if a function has only one argument then …
Jump to PostSorry, I meant to say the first data element is a command. I have to read in the first word and based on that word, call an appropriate function that will perform some action. The next data are the parameters that have to be passed to that function. Here is …
All 8 Replies
VernonDozier
2,218
Posting Expert
Featured Poster
nizbit
0
Junior Poster in Training
VernonDozier
2,218
Posting Expert
Featured Poster
nizbit
0
Junior Poster in Training
VernonDozier
2,218
Posting Expert
Featured Poster
nizbit
0
Junior Poster in Training
VernonDozier
2,218
Posting Expert
Featured Poster
nizbit
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.