Author |
Message |
templest
![](http://img.photobucket.com/albums/v251/templest/a8affa62.jpg)
|
Posted: Thu Jul 29, 2004 5:18 pm Post subject: "Do you want to leave a message?" |
|
|
I hate looking for pens/paper when someone calls and they wnat to leave a message to a sibling that isn't home. So I wrote this quick mofo' to jot down quick notes when someone calls, stores the name / message and the number in which to contact them.
I know I don't need the arrays, and I could probably store the numbers and names on the same string, but I did it seperatly and in arrays because I want to give people a small challenge.
This is the basic code for processing the info', I want someone to write the esthetics, ie: GUI.
Whoever write's the most badass interface get's 25 bits.
code: | proc add (name, number : string)
var dummy_buffer : string
var file : int
open : file, "book.ini", get, put, mod
loop
exit when eof (file)
get : file, dummy_buffer : *
end loop
put : file, name
put : file, number
close (file)
end add
proc gets
var file : int
var numb : int := 0
var count_buffer : string
open : file, "book.ini", get
loop
exit when eof (file)
get : file, count_buffer : *
get : file, count_buffer : *
numb := numb + 1
end loop
close (file)
var users : array 1 .. numb of string
var numbr : array 1 .. numb of string
open : file, "book.ini", get
for i : 1 .. numb
get : file, users (i) : *
get : file, numbr (i) : *
put users (i) /* comment out this line if you're making a GUI */
put "" : 10, numbr (i) : 6 /* as well as this one*/
end for
close (file)
end gets
var input, name, number : string
loop
put ">> " ..
get input : *
if length (input) = 4 and input = ".add" then
put "name: " ..
get name : *
put "number: " ..
get number : *
add (name, number)
elsif length (input) = 5 and input = ".dump" then
gets
elsif input = "quit" then
quit
end if
end loop
|
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
templest
![](http://img.photobucket.com/albums/v251/templest/a8affa62.jpg)
|
Posted: Thu Jul 29, 2004 6:53 pm Post subject: (No subject) |
|
|
someone move this thread to the "contests" section.
|
|
|
|
|
![](images/spacer.gif) |
Kingnoz
|
Posted: Fri Jul 30, 2004 2:52 pm Post subject: (No subject) |
|
|
Here you go templest. This is the cheap message program for you...can only hold 40 messages...if anyone wants to extend on it go ahead.
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
Message.t |
Filesize: |
3.45 KB |
Downloaded: |
264 Time(s) |
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
book.txt |
Filesize: |
0 Bytes |
Downloaded: |
188 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
templest
![](http://img.photobucket.com/albums/v251/templest/a8affa62.jpg)
|
Posted: Thu Aug 05, 2004 7:25 pm Post subject: (No subject) |
|
|
I don't get it... all it does it display what's inside the text file? What happened to adding to the text file from within the program?
|
|
|
|
|
![](images/spacer.gif) |
Kingnoz
|
Posted: Thu Aug 05, 2004 11:20 pm Post subject: (No subject) |
|
|
You really didn't try it fully did u...
If you would click file, new message then there would be a popup window.
Inside this magical window you can put a name/message/whatever and number then click add message and POOF it is added to the text file.
Now click cancel and it closes the popup. Then go to file and click open message and then it has a listing of the all the messages. Click a message button and u can see ur message.
You really need to try the program before posting a stupid comment...
Quote: I don't get it... all it does it display what's inside the text file? What happened to adding to the text file from within the program?
|
|
|
|
|
![](images/spacer.gif) |
rizzix
|
Posted: Fri Aug 06, 2004 11:03 pm Post subject: (No subject) |
|
|
Kingnoz wrote:
You really need to try the program before posting a stupid comment...
Quote: I don't get it... all it does it display what's inside the text file? What happened to adding to the text file from within the program?
dont need to be rude
|
|
|
|
|
![](images/spacer.gif) |
this_guy
![](http://www.desert-voice.net/saddam.gif)
|
Posted: Sun Aug 08, 2004 9:57 am Post subject: (No subject) |
|
|
stupid *$*@# crashed my comp...
really wished some1 wud tell me where 4.05 is
|
|
|
|
|
![](images/spacer.gif) |
DanShadow
![](http://compsci.ca/v3/uploads/user_avatars/12142970654c996e83e6997.png)
|
Posted: Sun Aug 08, 2004 9:41 pm Post subject: (No subject) |
|
|
Well....you could always try http://holtsoft.com Thats where I found it awile ago.
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Kingnoz
|
Posted: Mon Aug 09, 2004 11:21 pm Post subject: (No subject) |
|
|
this_guy wrote: stupid *$*@# crashed my comp...
really wished some1 wud tell me where 4.05 is
I didn't do this in 4.05, so that shouldn't be an issue for you.
|
|
|
|
|
![](images/spacer.gif) |
beard0
![](http://ugray.be/compsci/silly.gif)
|
Posted: Tue Aug 10, 2004 10:24 am Post subject: (No subject) |
|
|
Here's my nice little Phone Messager interface, using templest's storing system.
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
MessageTaker.zip |
Filesize: |
7.42 KB |
Downloaded: |
231 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
beard0
![](http://ugray.be/compsci/silly.gif)
|
Posted: Fri Aug 20, 2004 12:42 pm Post subject: (No subject) |
|
|
Hey templest!
When's the deadline for your contest? Are we allowed to add features? (i.e. delete an old message)
|
|
|
|
|
![](images/spacer.gif) |
templest
![](http://img.photobucket.com/albums/v251/templest/a8affa62.jpg)
|
Posted: Sun Aug 22, 2004 10:06 pm Post subject: (No subject) |
|
|
Go right ahead... since yours seems to be the only submission thus far, I'm trying to give people a chance.
Tell you what, the winning submission gets bonus bits for every aded feature. Basically, write a kick-ass "Message Taker" branching off from the code that I provided. (10 bits for every feature, significant features ie: deleting messages )
EDIT: Very nice by the way.
|
|
|
|
|
![](images/spacer.gif) |
zomg
|
Posted: Thu Oct 14, 2004 10:50 am Post subject: (No subject) |
|
|
lol i love it... ive used it like 3 times lol keep up the good work
|
|
|
|
|
![](images/spacer.gif) |
timmytheturtle
|
Posted: Fri Oct 15, 2004 3:19 pm Post subject: (No subject) |
|
|
seems like a good idea for a program, but I find it easier to use notepad
|
|
|
|
|
![](images/spacer.gif) |
Hikaru79
|
Posted: Sun Oct 17, 2004 12:19 am Post subject: (No subject) |
|
|
this_guy wrote: stupid *$*@# crashed my comp...
really wished some1 wud tell me where 4.05 is
Check the thread in "Programming News" called "Turing 4.0.5." On page 6 there's a link where someone posted it. Enjoy
|
|
|
|
|
![](images/spacer.gif) |
|