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!
NEED PROGRAMMING HELP Icon_minitimeSat May 18, 2013 5:02 pm by Little_Tora

» AM I THE ONLY ONE
NEED PROGRAMMING HELP Icon_minitimeSat May 18, 2013 4:51 pm by Little_Tora

» HEWOO anyone out there
NEED PROGRAMMING HELP Icon_minitimeSat May 18, 2013 4:50 pm by Little_Tora

» MEOW MEOW MEOW Hello
NEED PROGRAMMING HELP Icon_minitimeSat May 18, 2013 4:50 pm by Little_Tora

» ID LIKE TO HEAR FROM A MEMBER
NEED PROGRAMMING HELP Icon_minitimeSat May 18, 2013 4:48 pm by Little_Tora

» awesome akatsuki pic i found-ed :P
NEED PROGRAMMING HELP Icon_minitimeFri May 10, 2013 4:44 pm by Little_Tora

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

» Risuke runs into Itachi :3
NEED PROGRAMMING HELP Icon_minitimeSat Oct 27, 2012 3:18 pm by Demonglass10112

» TEH RULES!
NEED PROGRAMMING HELP Icon_minitimeSun Jul 29, 2012 6:30 pm by Trace_Carter

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Forum
Poll
Top posters
Jack Atlas
NEED PROGRAMMING HELP Vote_lcapNEED PROGRAMMING HELP Voting_barNEED PROGRAMMING HELP Vote_rcap 
Shizuo Heiwajima
NEED PROGRAMMING HELP Vote_lcapNEED PROGRAMMING HELP Voting_barNEED PROGRAMMING HELP Vote_rcap 
Neku Sakuraba
NEED PROGRAMMING HELP Vote_lcapNEED PROGRAMMING HELP Voting_barNEED PROGRAMMING HELP Vote_rcap 
Julian_Hattori
NEED PROGRAMMING HELP Vote_lcapNEED PROGRAMMING HELP Voting_barNEED PROGRAMMING HELP Vote_rcap 
Izaya Orihara
NEED PROGRAMMING HELP Vote_lcapNEED PROGRAMMING HELP Voting_barNEED PROGRAMMING HELP Vote_rcap 
Black Mage Darkwizardton
NEED PROGRAMMING HELP Vote_lcapNEED PROGRAMMING HELP Voting_barNEED PROGRAMMING HELP Vote_rcap 
Melancholic
NEED PROGRAMMING HELP Vote_lcapNEED PROGRAMMING HELP Voting_barNEED PROGRAMMING HELP Vote_rcap 
oogie boogie man
NEED PROGRAMMING HELP Vote_lcapNEED PROGRAMMING HELP Voting_barNEED PROGRAMMING HELP Vote_rcap 
HiddenShadow33
NEED PROGRAMMING HELP Vote_lcapNEED PROGRAMMING HELP Voting_barNEED PROGRAMMING HELP Vote_rcap 
DancingFlames
NEED PROGRAMMING HELP Vote_lcapNEED PROGRAMMING HELP Voting_barNEED PROGRAMMING HELP Vote_rcap 
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

Go down 
AuthorMessage
bananapie62
Academy Student
bananapie62

Posts Posts : 3
PowerLevel PowerLevel : 9505

NEED PROGRAMMING HELP Empty
PostSubject: NEED PROGRAMMING HELP   NEED PROGRAMMING HELP Icon_minitimeMon 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
bananapie62

Posts Posts : 3
PowerLevel PowerLevel : 9505

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

nvm found out myself 83
Back to top Go down
View user profile
 
NEED PROGRAMMING HELP
Back to top 
Page 1 of 1

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