Ps. I hate the way the site messes up the spaces in your code.
Who says that's a problem of the forum?
I mean he did mix one spaces and two spaces for indention.
What annoys me more is that many people past their code in here and do not highlight it. It's dead simple just add a '=cpp' within the code-tag.
As for the topic:
I guess you best sit down with a piece of paper and think what you want to do. For now you add up in every iteration some hight which will lift your sprite in a linear matter, what you actually want to perform is a curve jump movement, which then again needs a variable speed. In the beginning it has to be fast, towards the highst point it should slow down and shortly before it hits the ground it should be as fast as in the beginning.
That's the basic idea, although platformer don't act like physical objects would, so you'll have to adjust those phases to give the player the well known jump feeling.
As for your game loop, you first set the position, then calculate the new position, then draw and the loop. Mabye you should rethink the order.
And at last you should make your movement depend up on the fps (or sync a fixed time step with the fps) otherwise you'll get diffrent behaviour on diffrent machines. (Better PC will move quicker, slower PCs will be slower).