Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 12-07-2004, 11:09 AM   #1 (permalink)
VaMpIrE
Guest
 
Posts: n/a
Help in my assignment plZ

Hello everyone


I've got an assignment to do and I need help from you my friends if anyone can


The task is as follows:

This assignment requires you to write a simple text editor. Your editor will have the following commands:

e filename: edits the filename if it exists
If it doesn’t exist, then you’ll be creating a new file.

i: (insert mode) insert any number of lines after current line.
Ctrl- v: stop inserting data (turn off insert mode)
l: list the entire file without line numbers
n: list the entire file with line numbers
d n: delete the number n
c: count the numbr of lines in the file
s: save the file opened with the e command
p: print the file
q: quit the program prompting for save if the file has not been saved


Once your program begins, a prompt must appear on the screen. Commands can be entered following the prompt. A sample run of program is shown below:

> e welcome.cpp
> i
#include <iostream>
using namespace std;
void main ()
{
cout<<”Welcome to Etisalat College”<<endl;
}
^V

1) #include <iostream>
2) using namespace std;
3) void main ()
4) {
5) cout<<”Welcome to Etisalat College”<<endl;
6) }

> c
welcome.cpp has 6 lines
> s
saved welcome.cpp
> p
printing welcome.cpp
> q





ThanX very much in advance

I'd be glad if anyone can include the documentation or the comments in the important steps.

ThanX again
  Reply With Quote
Old 12-08-2004, 02:15 AM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Yah, uhm, I am not going to write this. Start and come back when you're stuck with concrete issues.
__________________
Valmont is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP deperately need help plz!!! RusH MS Technologies ( ASP, VB, C#, .NET ) 2 10-03-2004 06:42 PM
i have a quetion that needs answered plz... Termite HTML, XML, Javascript, AJAX 6 05-15-2004 10:28 PM
i have a child window which i want to print at the same time hiding plz help deepanakr HTML, XML, Javascript, AJAX 0 05-10-2004 11:08 PM
plz help panic-- Lounge 4 04-07-2003 07:21 AM
colo in L.A. area needed .. plz sde Lounge 1 12-21-2002 06:53 AM


All times are GMT -8. The time now is 07:48 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting