Thread: Making a text editor

  1. #1
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002
    Posts
    640

    Making a text editor

    I've been able to open a file and print it to the screen(DOS) but I need help. Anyone know of how to create a text out put capable of scrolling up/down?
    Environment: OS X, GCC / G++
    Codes: Java, C#, C/C++
    AOL IM: neandrake, Email: neandrake (at) gmail (dot) com

  2. #2
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    you'd have to do that manually by having portions of the text redisplay, and having the user control which portion. or, you can do the poorman's version and just have it stop after every, oh i dont know, 24 new lines...

    oh and nice sig, i know where that's from... i hated that whole side of the album except for aneurysm... hth!
    hasafraggin shizigishin oppashigger...

  3. #3
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002
    Posts
    640
    ach! what about sliver or stain? hairspray queen is somewhat awful but the lyrics are just messed!
    Environment: OS X, GCC / G++
    Codes: Java, C#, C/C++
    AOL IM: neandrake, Email: neandrake (at) gmail (dot) com

  4. #4
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002
    Posts
    640
    wait, a new idea just occured to me. anyone know if it would be hard to store each line of text into a specified array, afterwards, have it display line[x] to line[x+24]???? It sounds like it might work!!!!!!!!! GAR GAR!!
    Environment: OS X, GCC / G++
    Codes: Java, C#, C/C++
    AOL IM: neandrake, Email: neandrake (at) gmail (dot) com

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    63
    i wrote an editor for one of my old c++ classes.. it was similar to EDLIN for DOS but this is unix based, it didn't save files either, but if u want i can send it over.. hit me back on the board with your email..
    SS3X

  6. #6
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    yeah you could do that, you'd need a two-dimension array [or ptr to ptr list, multiple indirection]... that would be a convenient way of reorganizing it so that displaying is easier, however it is a tradeoff since you have added processing time while you are loading the data correctly... you decide...

    and i liked molly's lips... and turnaround is pretty satirical and fun... but on the no alternative compilation i love verse chorus verse... and, duh, about a girl, both the one on bleach and unplugged... on right!
    hasafraggin shizigishin oppashigger...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Error compiling. Problem with my text editor?
    By Sinensis in forum C Programming
    Replies: 3
    Last Post: 09-07-2008, 03:27 PM
  2. Text editor
    By beene in forum Windows Programming
    Replies: 10
    Last Post: 10-17-2006, 07:22 PM
  3. C++ text editor .NET
    By MB1 in forum C++ Programming
    Replies: 9
    Last Post: 02-24-2006, 09:55 AM
  4. Users saving data on a text editor
    By htmlmaster in forum C++ Programming
    Replies: 3
    Last Post: 04-17-2005, 06:20 AM
  5. help about text editor
    By nag in forum C++ Programming
    Replies: 2
    Last Post: 04-24-2003, 11:45 AM