Click here to Skip to main content
15,120,567 members
Home / Discussions / C#
   

C#

 
QuestionHow to Finding Solutions Pin
Anubhava Dimri18-Jul-11 22:35
MemberAnubhava Dimri18-Jul-11 22:35 
AnswerRe: How to Finding Solutions Pin
Blue_Boy18-Jul-11 23:02
MemberBlue_Boy18-Jul-11 23:02 
GeneralRe: How to Finding Solutions Pin
Anubhava Dimri19-Jul-11 0:33
MemberAnubhava Dimri19-Jul-11 0:33 
GeneralRe: How to Finding Solutions Pin
Blue_Boy19-Jul-11 0:36
MemberBlue_Boy19-Jul-11 0:36 
GeneralRe: How to Finding Solutions Pin
Anubhava Dimri19-Jul-11 2:21
MemberAnubhava Dimri19-Jul-11 2:21 
GeneralRe: How to Finding Solutions Pin
HTT9019-Jul-11 3:18
MemberHTT9019-Jul-11 3:18 
AnswerRe: How to Finding Solutions Pin
BobJanova18-Jul-11 23:10
MemberBobJanova18-Jul-11 23:10 
AnswerRe: How to Finding Solutions Pin
Estys18-Jul-11 23:32
MemberEstys18-Jul-11 23:32 
A double iteration over the input string with position and substring length :

string str = "anystring";

for (int x = 1; x <= str.Length; x++) // x = substring length
{
    for (int y = 0; y <= str.Length - x; y++) // y = start position
    {
        Console.WriteLine(str.Substring(y, x));
    }
}


Cheers
GeneralRe: How to Finding Solutions Pin
Anubhava Dimri19-Jul-11 0:26
MemberAnubhava Dimri19-Jul-11 0:26 
GeneralRe: How to Finding Solutions Pin
Estys19-Jul-11 0:43
MemberEstys19-Jul-11 0:43 
GeneralRe: How to Finding Solutions Pin
Blue_Boy19-Jul-11 2:07
MemberBlue_Boy19-Jul-11 2:07 
JokeRe: How to Finding Solutions Pin
Estys19-Jul-11 2:44
MemberEstys19-Jul-11 2:44 
GeneralRe: How to Finding Solutions Pin
BobJanova19-Jul-11 2:21
MemberBobJanova19-Jul-11 2:21 
GeneralRe: How to Finding Solutions Pin
Estys19-Jul-11 2:42
MemberEstys19-Jul-11 2:42 
GeneralRe: How to Finding Solutions Pin
Blue_Boy19-Jul-11 5:07
MemberBlue_Boy19-Jul-11 5:07 
AnswerRe: How to Finding Solutions Pin
Pravin Patil, Mumbai19-Jul-11 1:02
MemberPravin Patil, Mumbai19-Jul-11 1:02 
GeneralRe: How to Finding Solutions Pin
David198719-Jul-11 1:13
MemberDavid198719-Jul-11 1:13 
GeneralRe: How to Finding Solutions Pin
Pravin Patil, Mumbai26-Sep-11 19:34
MemberPravin Patil, Mumbai26-Sep-11 19:34 
AnswerRe: How to Finding Solutions Pin
PIEBALDconsult19-Jul-11 3:38
professionalPIEBALDconsult19-Jul-11 3:38 
AnswerRe: How to Finding Solutions Pin
Alan Balkany19-Jul-11 4:42
MemberAlan Balkany19-Jul-11 4:42 
QuestionHow to integrate Barcode reader Pin
saigirish18-Jul-11 21:35
Membersaigirish18-Jul-11 21:35 
AnswerRe: How to integrate Barcode reader Pin
Dan Mos18-Jul-11 21:55
MemberDan Mos18-Jul-11 21:55 
GeneralRe: How to integrate Barcode reader Pin
saigirish18-Jul-11 22:06
Membersaigirish18-Jul-11 22:06 
AnswerRe: How to integrate Barcode reader Pin
Dan Mos18-Jul-11 22:10
MemberDan Mos18-Jul-11 22:10 
GeneralRe: How to integrate Barcode reader Pin
BobJanova18-Jul-11 23:12
MemberBobJanova18-Jul-11 23:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.