LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   C++ project (https://www.linuxquestions.org/questions/programming-9/c-project-908678/)

ChueX 10-17-2011 09:34 PM

C++ project
 
Hi, everyone

I'm new to c++ and not much understand it. So we have a group project that wants us to write a program to look like word processor and have #Copy, #Insert, #Delete, #Move, #Type and couple more. I was assigned to write #Move which is move things like word processor dose, but I don't understand how to do. So, can somebody help me with this?

anasnet 10-18-2011 01:21 AM

you can download this one, and try to analyze the code
http://sourceforge.net/projects/abiword/

Aquarius_Girl 10-18-2011 01:36 AM

What does a word processor "move"? Any examples?

colucix 10-18-2011 01:46 AM

Moved: This thread is more suitable in <Programming> and has been moved accordingly to help your thread/question get the exposure it deserves.

ChueX 10-19-2011 01:31 AM

Here is example:

The commands will be like M2, or M-4

M2 would move change move and print the line that is 2 lines ahead, while changing the current line to that line. M-4 would move back and print the line that is 4 lines back, and change the current line to that line. It's getting late so that's the best explanation I can do for now.

Aquarius_Girl 10-19-2011 01:57 AM

Quote:

Originally Posted by ChueX (Post 4502113)
M2 would move change move and print the line that is 2 lines ahead, while changing the current line to that line.

What have you thought about the "storage"? Which data structure?
You need to "store" lines.

Secondly, how do you define a line?
A bunch of characters which fills up ONE row on a screen?
OR
A statement which is lengthy and therefore fills up many rows
on the screen?

What have you done to get started?

We can talk about C++ later on.
I think, the logic matters most, syntax can wait.


All times are GMT -5. The time now is 06:07 AM.