Actually the reason that I did it this way is because each integer, float and string will have a whitespace between them, so they will indeed need to be delimited.
I am trying to do the famous infix to postfix and have found all kinds of useful stuff, but none of what I am finding is white...
I have tried to do what you are suggesting but it still doesn't read in the string (changed it from char to string). If I put the "string catcher" first it works but of course everything is a string then.
This is what I have now:
vector<int> operands;
vector<string> actionOperator...
Thanks for your help. I have made the changes and of course they do work. My problem is that I wanted to be able to tell if it was an int or a character being entered. This way it comes in as a string. I will now have to figure out a way to test for data type so I can carry on with it.
I...
This is my problem:
I want the user to input a sentence or line of both integers and characters, read in the whole line,spaces and all, then parse through the line, if it is an integer push it into an vector of integers, if it is a character, push it into a vector of characters.
This is what I...
I really don't understand what you mean. The text doc I have no control over, it is just a commandline feed into the program. I am required to use the WaitForMultipleObjects for this assignment. I do have it working somewhat now, I have valid handles etc. I am now at the point where my logic...
I am required to have all the programs in a certain group launch together, wait until they all come back and then lauch the next group concurrently. I don't know how I could do this with WaitForSingleObject since WaitForSingleObject actually seems to make everything wait for each process to...
I am running several programs with CreateProcess and want a "batch" of them to run by group number before the next batch starts. I am trying to use WaitForMultipleObjects to do this. I have created a vector to hold the handles returned. Once the batch has all started processing, I then make a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.