|
But the for() loops still have smiley faces. Use the Preview button before posting.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
it's done no smiley faces anymore
|
|
|
|
|
Now what you need to do is figure out if the problem is with infixTOposfix() or evaluarRPN() . In other words, it makes no sense to post evaluarRPN() if infixTOposfix() is not working. Make sense?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Maito Gai wrote: ...do you have any tip that can also work in more than 1 digit...
Use the debugger to step through your code. Don't just use cout to determine if your code is working.
Does infix contain the right value before calling infixTOposfix() ? Does token in infixTOposfix() have the right value with each iteraton of the for() loop?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I don't know how to also reason out the error instead of a pop-up error message box.
|
|
|
|
|
Maito Gai wrote: I don't know how to...
Use F5 instead of Ctrl+F5. Be sure and set appropriate breakpoints.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I've encounter this message:
'postfix validation.exe': Loaded 'C:\Documents and Settings\Aldrich Uy\My Documents\Visual Studio 2005\Projects\postfix validation\debug\postfix validation.exe', Binary was not built with debug information.
'postfix validation.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'postfix validation.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
The program '[832] postfix validation.exe: Native' has exited with code -1073741811 (0xc000000d).
I couldn't believe that binary was not built with debug information
|
|
|
|
|
Maito Gai wrote: 'postfix validation.exe': Loaded 'C:\Documents and Settings\Aldrich Uy\My Documents\Visual Studio 2005\Projects\postfix validation\debug\postfix validation.exe', Binary was not built with debug information.
So why don't you just change the project setting to Debug (instead of Release)?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
either you don't read the answers you get, or you don't understand them, ... or you're a moron.
I've told you since the beginning of this thread to use your debugger[^].
now, 6 hours later, you come and say you have an error message that implicitely says that you didn't built in debug mode. Couldn't you just say it earlier ?
|
|
|
|
|
ahhh... the pop-up message says:
"No Debugging information
Debugging information for postfix validation.exe cannot be found or does not match. Binary was not built with debug information."
|
|
|
|
|
Maito Gai wrote: ...also reason out the error instead of a pop-up error message box.
What does this message box say? Could it be related to a division-by-zero error?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Maybe I've saw the problem because of for example in box of array it only consist of one digit regardless of length of the operand and when it passes through the element which is an operator the counter of the operand resets to the first operand value after the operator.
for clearness:
10/2 which is equal to 5, it only gets 0/2 and the answer is 0 ;
10/10 which must be 1, but the error message box will appear instead of the correct answer.
help:
is there a way to concatenate the elements of the array?(except operators)
|
|
|
|
|
I would suggest you to use a debugger and follow the code to track ur mistake
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I've already solved a part of it but it only works for one digit number only do you have any tip that can also work in more than 1 digit, a decimal value and exponents?
|
|
|
|
|
eventually the error there is I can't input negative values, decimal values, exponential values and more than 1 digit values... that's the real error
|
|
|
|
|
I have VC++ MDI application, which open, modify and save Office 2003 documents uisng OLE. While saving Excel 2003 docs I am able to save this documents properly since Office2003 docs are Structured Storage docs.
I am also able to save Office 2007 Excel (which is not structured storage) with normal data (e.g. Text, Pictures, etc..) docs. But when I am drawing Pie-Chart on excel and copy and paste the same pi-chart into same excel doc, Excel documents gets saved but while opening the same document I get "Insufficient Memory to perform Operation." and document gets corrupted.
I need to know how we save such objects (pie-chart) in Office 2007 documents using OLE.
jhghjghj
|
|
|
|
|
Hi all,
I have a exe file and i want to calculate its size....
Can anybody tell me how to do it??
Thanks in advance
|
|
|
|
|
DWORD GetFileSize(HANDLE hFile,LPDWORD lpFileSizeHigh);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
how to get handle of the file
|
|
|
|
|
by opening it dude !!
|
|
|
|
|
How to open a file Sir? I tried double clicking on it in order to open it .
It's very very urgent...
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
open your window, take your file, throw it through the window.
now it is opened...
|
|
|
|
|
lol
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
courtesy tox courtesy... ask file to leave by door instead of window!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
Oh sure, but now there is a mess all over the sidewalk. What if the file's contents happen to be hazardous? Then the EPA would have to get involved.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|