Editor in CDOS based text editor in C
Page 1 of 1
7 Replies - 1231 Views - Last Post: 07 August 2001 - 12:39 AM
#1
Editor in C
Posted 31 July 2001 - 11:04 PM
editor in C ,i use turbo c 2.0 compiler
Replies To: Editor in C
#2
Re: Editor in C
Posted 01 August 2001 - 07:43 AM
#5
Re: Editor in C
Posted 03 August 2001 - 03:09 AM
which we find in DOS,having almost all the facilities of it,
like opening a file,edit it,save it,create new file etc...
I just need a kick start,thank u
#6
Re: Editor in C
Posted 03 August 2001 - 10:26 PM
A text editor sounds and looks like an eazy program but trust me it is not. It is a pretty hard task if you ask me.
The first thing that we run into is that normal character arrays won't work here. Because with them you need to know exactly how many letters and words the user will put in. but how will we know how big the letter to aunt betty be?
we don't. Which means we don't know how much memory it will take up. To solve this we need to allocate memory in the heap. The heap is all the memory that the computer is not using.
to do this look up the function malloc()
saving and opening and all that other stuff should be pretty easy use the FILE operations that come in the stdio.h library.
umm the rest is pretty much looking up the functions that you need. Good luck.
p.s:
Wow that Absolute beginners guide to C really helped. Im usually just a c++ man.
#7
Re: Editor in C
Posted 03 August 2001 - 10:29 PM
#8
Re: Editor in C
Posted 07 August 2001 - 12:39 AM
a try,thanks for the advice and i will always be in search
of advices and help,hoping for it.
|
|

New Topic/Question
Reply




MultiQuote





|