|
C# String Manipulation: Examples
|
|
01-27-2010, 04:38 PM
Post: #1
|
|||
|
|||
|
C# String Manipulation: Examples
Code: /*Just some string manipulation i practiced with , could have a good use for people completely new to C#. "Character is determined more by the lack of certain experiences than by those one has had." Friedrich Nietzsche |
|||
|
01-27-2010, 04:41 PM
Post: #2
|
|||
|
|||
|
RE: C# String Manipulation: Examples
Very good string cutting and manipulation. C# has really good functions for that. I like your character insert and vowels. Great job !
There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
01-27-2010, 09:39 PM
Post: #3
|
|||
|
|||
|
RE: C# String Manipulation: Examples
What is the user entered a negative number?
int num = Int32.Parse(Console.ReadLine()); if(begin.Length < num) { Console.WriteLine("I'm Sorry, but there are not enough characters in this string for that"); } |
|||
|
01-27-2010, 09:51 PM
(This post was last modified: 01-28-2010 06:16 AM by Back_track.)
Post: #4
|
|||
|
|||
|
RE: C# String Manipulation: Examples
The program would crash...
i'll just add if(begin.length < 0) { //Code here } "Character is determined more by the lack of certain experiences than by those one has had." Friedrich Nietzsche |
|||
|
01-27-2010, 09:54 PM
Post: #5
|
|||
|
|||
|
RE: C# String Manipulation: Examples
d;0) lol
|
|||
|
« Next Oldest | Next Newest »
|





