User Profile

Collapse

Profile Sidebar

Collapse
Robba
Robba
Last Activity: Nov 28 '07, 12:10 PM
Joined: Nov 9 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Robba
    replied to Return the number of the array in c#
    in .NET
    Code:
    Console.WriteLine("Please fill in a line of words:");
                string st = Console.ReadLine(); // type the words
             
                //string[] words = st.Split(new char[] { char.Parse(" ") }); // split up the words
                string[] words = st.Split(' ');
                
             
                if (words.Length == 1)
                {
    ...
    See more | Go to post

    Leave a comment:


  • Robba
    replied to Return the number of the array in c#
    in .NET
    Great thanks, fixed it:P
    The "words" was used to count the number of words in the progam, i though it wasnot nesesary to show the rest of the program(witch is a lot more lines)....
    See more | Go to post

    Leave a comment:


  • Robba
    started a topic Return the number of the array in c#
    in .NET

    Return the number of the array in c#

    I got a little problem, i have to return the number of the array of the word that is filled in.
    First there is filled in a sentence, and have to be split.
    I think i splitted it but now i cant return the number of the index, i only get the number of the char.
    I hope that some1 can help me.
    Its written in C# console.
    Like this: A line of words.
    Then type one of the words like : line .
    Than i need to...
    See more | Go to post
No activity results to display
Show More
Working...