TEH ULTIMATE AKATSUKI RPG!

making the world a better place, one jinchuuriki at a time ^^
 
GalleryCalendarHomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» CHARACTER SHEET!
Sat May 18, 2013 5:02 pm by Little_Tora

» AM I THE ONLY ONE
Sat May 18, 2013 4:51 pm by Little_Tora

» HEWOO anyone out there
Sat May 18, 2013 4:50 pm by Little_Tora

» MEOW MEOW MEOW Hello
Sat May 18, 2013 4:50 pm by Little_Tora

» ID LIKE TO HEAR FROM A MEMBER
Sat May 18, 2013 4:48 pm by Little_Tora

» awesome akatsuki pic i found-ed :P
Fri May 10, 2013 4:44 pm by Little_Tora

» MORE RULES. POST OKAY ONCE YOUVE READ THEM.
Fri May 10, 2013 4:42 pm by Little_Tora

» Risuke runs into Itachi :3
Sat Oct 27, 2012 3:18 pm by Demonglass10112

» TEH RULES!
Sun Jul 29, 2012 6:30 pm by Trace_Carter

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Forum
Poll
Top posters
Jack Atlas
 
Shizuo Heiwajima
 
Neku Sakuraba
 
Julian_Hattori
 
Izaya Orihara
 
Black Mage Darkwizardton
 
Melancholic
 
oogie boogie man
 
HiddenShadow33
 
DancingFlames
 
Statistics
We have 80 registered users
The newest registered user is frejar

Our users have posted a total of 3228 messages in 156 subjects
Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

Most users ever online was 22 on Wed Oct 23, 2013 11:08 pm

Share | 
 

 NEED PROGRAMMING HELP

View previous topic View next topic Go down 
AuthorMessage
bananapie62
Academy Student
avatar

Posts Posts : 3
PowerLevel PowerLevel : 7240

PostSubject: NEED PROGRAMMING HELP   Mon Nov 22, 2010 4:38 am

hi i need some help with a project. the projects want me to use delegates to allow the user to enter words and display the words in a reverse order, how many words were entered, and the number of letters there were.

as u can see from the code i put at the bottom, all i need to do is have it display the number of letters but i dont know how do to that. i do not need you to give me the code it self but just give the the sintax to do it. just to tell you a little about the program, i used a stack to do eveything

plz only post real answers

NOTE: im useing VB.net

here is the program

Imports System
Imports System.Collections
Imports System.Delegate

Module Module1
Dim words As New Stack
Public Delegate Sub mydelegate()
Dim w As String
Public Sub Main()
Dim fns As mydelegate
fns = (AddressOf definingstack)
fns()
fns = (AddressOf revewstack)
fns()
End Sub

Public Sub definingstack()
Console.WriteLine("please enter a letter/word to put in the stack and enter a blank line to continue")
Console.WriteLine("to exit the loop, type in 'stop' and press enter (remember the keyword 'stop' will be included in the stack)")
Do Until w = "stop"
Try
w = Console.ReadLine()
words.Push(w)
Catch ex As StackOverflowException
Console.WriteLine("you put to many words in the stack, please start the program over and dont go over your word limit")
End Try
Loop
Console.WriteLine("press enter to move to the next part")
Console.ReadLine()
End Sub

Public Sub revewstack()
Console.WriteLine("the number of words in the stack is : " & words.Count)
While words.Count > 0
Console.WriteLine(words.Pop)
End While
Console.WriteLine("press enter to leave the program")
Console.ReadLine()
End Sub

End Module
Back to top Go down
View user profile
bananapie62
Academy Student
avatar

Posts Posts : 3
PowerLevel PowerLevel : 7240

PostSubject: Re: NEED PROGRAMMING HELP   Mon Nov 22, 2010 5:58 pm

nvm found out myself 83
Back to top Go down
View user profile
 
NEED PROGRAMMING HELP
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Do anyone have programming card ?
» TV Land Drops LHotP
» THE GAMES FACTORY 2
» where the hell is the remote programmer?

Permissions in this forum:You cannot reply to topics in this forum
TEH ULTIMATE AKATSUKI RPG! :: Off Topic!-
Jump to: