I'm new to window programming, just want to know which is the right way to do window programming.

If i did a complicated c++ program that takes in input and then output results in dos, but in the end i want it to take in input in a window and output result in a window.

which is correct way to do so?

1) program it in dos then modify the source code to take in input and output in window?

2) start off programming it so input and output is in window?