I'm with coder777 here. You'll have to replace all the console i/o code. :-(
But not the calculations! :-)
(Unless you want to write a "pseudo GUI" which acts just like the console, providing cout and cin replacements which work with the GUI library. But then you'd end up with a boring UI as you wouldn't be able to exploit the features of the underlying library, and might as well just have used the console...)
The problem is that there are a number of different GUI toolkits, and each offer more than one way to solve the problem.
If you code using Windows native Win32 GDI API, then text is output using functions like OutText and DrawText, e.g. (where hdc is the handle to a display device context, x and y are the coordinants where you want the text to be drawn at, and text is a string object.)
TextOut(hdc,x,y,text.c_str(), text.length());
But you could also use a control, such as a static control or an edit control. In this case (where hwndCtrl is the window handle to the control window.)