Click here to Skip to main content
15,867,835 members
Home / Discussions / C#
   

C#

 
QuestionHow to Finding Solutions Pin
Anubhava Dimri18-Jul-11 21:35
Anubhava Dimri18-Jul-11 21:35 
AnswerRe: How to Finding Solutions Pin
Blue_Boy18-Jul-11 22:02
Blue_Boy18-Jul-11 22:02 
GeneralRe: How to Finding Solutions Pin
Anubhava Dimri18-Jul-11 23:33
Anubhava Dimri18-Jul-11 23:33 
GeneralRe: How to Finding Solutions Pin
Blue_Boy18-Jul-11 23:36
Blue_Boy18-Jul-11 23:36 
GeneralRe: How to Finding Solutions Pin
Anubhava Dimri19-Jul-11 1:21
Anubhava Dimri19-Jul-11 1:21 
GeneralRe: How to Finding Solutions Pin
HTT9019-Jul-11 2:18
HTT9019-Jul-11 2:18 
AnswerRe: How to Finding Solutions Pin
BobJanova18-Jul-11 22:10
BobJanova18-Jul-11 22:10 
AnswerRe: How to Finding Solutions Pin
Estys18-Jul-11 22:32
Estys18-Jul-11 22: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 Dimri18-Jul-11 23:26
Anubhava Dimri18-Jul-11 23:26 
GeneralRe: How to Finding Solutions Pin
Estys18-Jul-11 23:43
Estys18-Jul-11 23:43 
GeneralRe: How to Finding Solutions Pin
Blue_Boy19-Jul-11 1:07
Blue_Boy19-Jul-11 1:07 
JokeRe: How to Finding Solutions Pin
Estys19-Jul-11 1:44
Estys19-Jul-11 1:44 
GeneralRe: How to Finding Solutions Pin
BobJanova19-Jul-11 1:21
BobJanova19-Jul-11 1:21 
GeneralRe: How to Finding Solutions Pin
Estys19-Jul-11 1:42
Estys19-Jul-11 1:42 
GeneralRe: How to Finding Solutions Pin
Blue_Boy19-Jul-11 4:07
Blue_Boy19-Jul-11 4:07 
AnswerRe: How to Finding Solutions Pin
Pravin Patil, Mumbai19-Jul-11 0:02
Pravin Patil, Mumbai19-Jul-11 0:02 
GeneralRe: How to Finding Solutions Pin
David198719-Jul-11 0:13
David198719-Jul-11 0:13 
GeneralRe: How to Finding Solutions Pin
Pravin Patil, Mumbai26-Sep-11 18:34
Pravin Patil, Mumbai26-Sep-11 18:34 
AnswerRe: How to Finding Solutions Pin
PIEBALDconsult19-Jul-11 2:38
mvePIEBALDconsult19-Jul-11 2:38 
AnswerRe: How to Finding Solutions Pin
Alan Balkany19-Jul-11 3:42
Alan Balkany19-Jul-11 3:42 
QuestionHow to integrate Barcode reader Pin
saigirish18-Jul-11 20:35
saigirish18-Jul-11 20:35 
AnswerRe: How to integrate Barcode reader Pin
Dan Mos18-Jul-11 20:55
Dan Mos18-Jul-11 20:55 
GeneralRe: How to integrate Barcode reader Pin
saigirish18-Jul-11 21:06
saigirish18-Jul-11 21:06 
AnswerRe: How to integrate Barcode reader Pin
Dan Mos18-Jul-11 21:10
Dan Mos18-Jul-11 21:10 
GeneralRe: How to integrate Barcode reader Pin
BobJanova18-Jul-11 22:12
BobJanova18-Jul-11 22: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.