If you want help on homework, you should try something first. Try using what you know to write
something in main().
If you're having trouble with the math, then, first off, here's the formula you should be using:
http://en.wikipedia.org/wiki/Quadratic_formula#/media/File:Quadratic_formula.svg
It solves a quadratic equation of the form ax
2 + bx + c = 0.
Define variables for a, b, and c, and a variable for the root's value.
Then, try to translate that picture's equation in valid code in C++.
Your homework only asks you to find one root, so where you see the "plus or minus" symbol, just make that be a +.
The square-root function is sqrt(x) by the way,
put
#include <cmath>
at the top of your source code to use it.