LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-17-2011, 09:34 PM   #1
ChueX
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Rep: Reputation: Disabled
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?
 
Old 10-18-2011, 01:21 AM   #2
anasnet
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Rep: Reputation: 0
you can download this one, and try to analyze the code
http://sourceforge.net/projects/abiword/
 
Old 10-18-2011, 01:36 AM   #3
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
What does a word processor "move"? Any examples?
 
Old 10-18-2011, 01:46 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Moved: This thread is more suitable in <Programming> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 10-19-2011, 01:31 AM   #5
ChueX
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.
 
Old 10-19-2011, 01:57 AM   #6
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by ChueX View Post
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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a file to a project via project.vim usernameinuse Linux - Newbie 0 06-22-2010 01:02 PM
[SOLVED] How to store all files related to a c++ project and build in linux. Like project dir sharanlinux Programming 1 04-29-2010 06:52 AM
LXer: The Alexandria Project, Chap. 15: The Alexandria Project Makes the Evening News LXer Syndicated Linux News 0 04-26-2010 10:20 AM
Beginning a big project - Need an Good Project Manager gamehack Programming 3 01-15-2004 11:49 AM
Cannot see Open GL project in KDevelop project wizard SparceMatrix Programming 2 08-07-2002 11:14 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration