Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

C++ dynamic value


ghost's Avatar
0 0

i will give a good example of what i want. the UHARC archivation program (console version) has two % values, the progress of current file and the total progress. these values are changing as the proccess goes. is this possible to do in C++? friend told me that i cannot do this, i need to use OS functions to work with the terminal. but where can i find these functions? is it system(); command ?? thanks.


ghost's Avatar
0 0

You could just have an accumulator variable (or two in your case) which accumulates a new % every second or so… :S

EX:

at 4:20:00 the percent complete is 50% at 4:20:01 the percent complete is 51%

Something like that…although I'm not sure if that's what you're looking for. Even if it's not, at least I'm getting some ideas out there for you to run with, right? :)


richohealey's Avatar
Python Ninja
0 0

He's talking about terminal manipulation, there exist HEAPS of libraries for this, ncurses springs to mind, but is SEVERE overkil for what you're looking to do. i forget the name of the library you want though.

Sorry.


ghost's Avatar
0 0

Oh okay…well if that's the case, then I have no idea… :P