TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Aditya Varma Mudunuri
NA
58
104.6k
Please check the code for splitting a string into 3 msgs
Mar 17 2014 6:58 AM
Please check th e following code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SentencePrograms
{
class DividName
{
public void SplitString(string name,out string first,out string second)
{
int e=name.LastIndexOf(' ');
first = name.Substring(0, e);
second = name.Substring(e + 1);
}
}
class OutModifierDemo
{
static void Main(string[] args)
{
string message, first, second, mSplit;
DividName divName = new DividName();
Console.WriteLine("Enter any message");
message=Console.ReadLine();
mSplit = divName.SplitString(message, out first, out second);
Console.WriteLine(mSplit);
Console.WriteLine(first);
Console.WriteLine(second);
}
}
}
Reply
Answers (
1
)
Print Option In rdlc report
dd inputs in runtime and add, print total using params key