Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Text Editor in C (Univ assignment)

Name: Anonymous 2011-01-12 4:39

So hey guys :3

I've got this paper that I have to do, and I need to make a text editor. Please assist me and offer tips as I'm currently trying to think this thing through before I get to the actual coding.

•I'm going to be saving everything in a 20x80 matrix, or a string[1601] so I can use every individual character written, is this correct? (I'm declaring the maximum number of chars on screen to 20 lines with 80 columns, fuck anything more, this is a first semester assignment, hence the matric and string lengths)

•How on earth does I shot cursor? I mean, I'm supposed to have the cursor move up and down so the user can write at different parts of his text. Now, I can think of a way to shove the characters of the string "left" or "right" by making an individual proc, but how would one actually go and make the cursor move? Any ideas would be welcome.

•I'm unfamiliar with C extracting anything in .txt format, derp, will google later. Everything we've worked so far is hurrr command prompt calculations.

•In general, any ideas from you experienced coders, feedback, tips, anything, will be bloody welcome. Although I've worked with BYOND and Space Station 13 (/tg/station13) before so I'm familiar with reading Spaghetti code or structured coding using and calling procs() (oh hey I can probably go look at the code there and gather ideas and code formations) I think I'm at a stage where, being confused, I don't even know what QUESTIONS to ask to myself before I start solving the problem.

Just for the record, im studying CS at AUTH university, greece.

Name: Anonymous 2011-01-14 14:00

with mail = #fortune
A fatal error occured!
That password is wrong!
>>80 #fortune for >>80's faggotry

Name: Fuck off, !Ep8pui8Vw2 2011-01-14 15:24

>>80
Fuck off, you cock sucking homosexual.

Name: Back to /b/, !uaVa00FkCs 2011-01-14 15:25

>>82
Back to /b/, autistic dick loving African American.

Name: Anonymous 2011-01-14 21:03

>>83
don't you understand? you can't win. now go cry yourself to sleep, kiddie.

Name: Anonymous 2011-01-14 22:10

>>84
Don't you understand plain English? Back to /b/, please.

Name: Anonymous 2011-01-14 22:55

>>85
fuck off, faggot

Name: Anonymous 2011-11-17 22:56

neat

Name: Anonymous 2011-11-17 22:58

juden

Name: Anonymous 2011-11-18 4:38

Almost all modern text editors use the Rope data structure to represent text, which allows for efficient operations on very long strings.

http://en.wikipedia.org/wiki/Rope_%28computer_science%29

Name: Anonymous 2011-11-18 5:00

>>89
Why not finger trees?

Name: Anonymous 2011-11-18 5:40

>>89
rope is such a shit name for that

Name: Anonymous 2011-11-18 8:12

SYSTEM("edit")

Name: Anonymous 2011-11-18 9:45

>>89
Emacs uses cons because it has no choice.

Name: Anonymous 2011-11-18 11:15

>>93
Emacs
Linux is a great operating system, all it lacks is a good kernel.

Name: Anonymous 2011-11-18 12:47

>>93
Back to Google groups, Xah.

Name: Anonymous 2011-11-18 12:57

>>95
I don't know who that is, but Lisp is shit, and cons bullshit doesn't help.

Name: Anonymous 2011-11-18 13:54

>>96
Lisp is shit
no u

Name: Anonymous 2011-11-18 14:33

>>97
Lisp is shit.

Name: Anonymous 2011-11-23 10:03

<span style="background: #3a15eb; color: #e3fd43; ">candy-ass</span>

Name: Anonymous 2011-11-23 10:31

>>100
get

Name: Anonymous 2011-11-24 11:31

>>111
sweet triples bro

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List