PDA

View Full Version : Program Performance


Hypercase
Sep28-04, 06:54 PM
I,m writting code in C/C++ and when i validate my enteries(ensure they are numeric) i use !cin.good().

Also how do i clear the buffer after an invalid entry?
I usually use cin.seekg(0);cin.clear(); How do they work?
Is there a better way?

How do i find out how much proccessing power and memmory my prog uses as it runs?

-01000011 01101000 01100101 01100101 01110010 01110011.

dduardo
Sep30-04, 09:01 AM
You need what is called a memory profiler. I know under linux there is memprof and under visual studios 6 I think the program is called spy or something or other (Don't quote me on this).