Help outlining a program

Hello!
I'm new to C++, only been using it for about a month and that's at a minimal rate. For awhile now I've been stacking up projects that I want to do with C++ but I haven't been able to figure how to do most of them.

At the root of the list of projects, I'm trying to build a program with a GUI (Graphical User Interface) that takes input from a text box and stores it with a new line to a text file.

So far I've created a for loop that just writes 1-99 to a text file. Would someone outline to me the necessary steps and or the resources to get programming?

If it would make a time stamp for the input time that would be neat.

Computer: Windows 64 bit
Compliler/IDE: Code::Blocks

1
2
3
4
5
6
7
8
9
10
11
12
13
  #include <iostream>
#include <fstream>

int main()
{
    std::ofstream me;
    me.open( "D:\\123.txt");
    for(int i=1; i<100; ++i){
            me << i << "\n";
    }
    me.close();
    return 0;
}


First time using CPlusPlus.com and I'm a bit nervous, if I spell something wrong or if this is posted incorrectly/in the wrong place, let me know!
(It's late, the quality of my grammar is probably low but I'll read my post a couple times before posting it)
closed account (48T7M4Gy)
http://www.cplusplus.com/doc/

http://www.cplusplus.com/doc/tutorial/files/
If you want to make a GUI application, get some GUI library. Do not try to make a GUI from scratch yourself. It is a hard and useless work. Grab a QT (with QT creator for nice visual builder) http://www.qt.io/

If you want something else and willing to spend some time setting it up, you can look into FLTK and WxWidgets

Topic archived. No new replies allowed.