hi,
I'm trying to write a text editor by using Files, Strings and Classes.
I'm not going to ask you to do it for me, I'm just a little confused. I don't know from where I should start and what should I do!
please help, thanks
hi,
I'm trying to write a text editor by using Files, Strings and Classes.
I'm not going to ask you to do it for me, I'm just a little confused. I don't know from where I should start and what should I do!
please help, thanks
What do you already know?
I am assuming it's going to be a graphical text editor, so you will probably want to learn a GUI toolkit like Qt or WxWidgets.
I have never write a graphical program before. I'm so new in C++. not important it would be graphical or not, though graphical is better.
P.S. I'm working with visual studio 9
It's going to be quite complicated graphical or not. So how much C++ do you know?
I don't know how to explain!
I know about strings (a little), classes, files. but I've never work with them.
A line by line text editor can be done with rudimentary knowledge of all the things you mention... I recommend deciding what features that you want your text editor to have. What files will the editor be able to modify and how will you modify them?
I'm no master at C++ programming (yet), but as long as you know the basics (ie. Functions, Strings, Arrays etc), you might want to google for "Win32 Tutorials". There's a good one I'd highly recommend called "theForger's Win32 API Tutorial". I'm not sure if you can post links here, so I won't .
Cheers.
You're certainly allowed to post links here (related, appropriate links).
Try searching the Web.Originally Posted by behzad_shabani
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Start with something simple like ed
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
As salem says, start simple.
I wrote a simple editor (be aware that I sort of know what I'm doing - at least I think so ) in a couple of hours a little while back - it's actually posted somewhere in the C section. However, that editor is MUCH simpler than what "ed" can do.
The display part of an editor is not a particularly large part, if we look at a MODERN, big editor. However, if you haven't written anything fairly complex (like several thousands of lines of code) several times before, going the GUI route may end up more than doubling the task at hand (even more so if you are not writing a relatively complete editor).
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
thanks for all ur helps
I will read these tutorials and my C++ book. I hope that I can do it