When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
13 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
lots of things wrong, first it doesn't compile, return cout<<"1"; makes no sense
you probably meant to put the parsing logic in its own function and return true/false to main
which can then print the 1 or 0, or you can do it in the function
you always check charsIn.top() but charsIn could be empty at any time which will crash
This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.
right i know thats wrong.. that was me trying to play with it and see if i could get it to atleast output what it should be. Ive tried to put the check to address it crashing but i dont know how... that was why i posted for help. I also cant get that or later on towards the end to give me the right output
Learn to use the debugger it shows you exact line of a crash
Also I just told you where it crashed…
disregard that cout out, what im trying to say is ive tried that in all the areas. are you saying it has to be a apart from main in a function for it to give me that output im expecting?
its a logic problem at this point and its infuriating to know ive done much harder assignments and the amount of time on this far exceeds those. this is after my teacher was able to figure out my file to read had some ghost characters causing issues
This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.