Click here to Skip to main content
15,921,840 members
Home / Discussions / C#
   

C#

 
Questionstack overflow Pin
hotthoughtguy11-May-09 6:21
hotthoughtguy11-May-09 6:21 
QuestionRe: stack overflow Pin
Ian McCaul11-May-09 6:26
Ian McCaul11-May-09 6:26 
AnswerRe: stack overflow Pin
J4amieC11-May-09 6:34
J4amieC11-May-09 6:34 
AnswerRe: stack overflow Pin
Dan Neely11-May-09 6:56
Dan Neely11-May-09 6:56 
AnswerRe: stack overflow Pin
Dave Kreskowiak11-May-09 7:00
mveDave Kreskowiak11-May-09 7:00 
GeneralRe: stack overflow Pin
hotthoughtguy11-May-09 7:12
hotthoughtguy11-May-09 7:12 
GeneralRe: stack overflow Pin
Luc Pattyn11-May-09 7:27
sitebuilderLuc Pattyn11-May-09 7:27 
GeneralRe: stack overflow Pin
hotthoughtguy11-May-09 7:40
hotthoughtguy11-May-09 7:40 
public class Node
{
public List<Node> childerns;
public List<Node> cousions;
public Node parant;
public int IndexOfCousion;
public Node NextCousion;
public Node PreCousion;
public Node fisrtchild;
public Node()
{

}
public Node(char c)
{
data = c;
}
public char data;

}


private void layers(Node current)
{
if (current == null)
return;
current.cousions = new List<Node>();
current.childerns = new List<Node>();
for (int i = 0; i < current.parant.childerns.Count ; i++)
{
if (current != current.parant.childerns[i])
{
current.cousions.Add(new Node(current.parant.childerns[i].data));
current.childerns.Add(new Node(current.parant.childerns[i].data));
}
}
for (int i = 0; i < current.childerns.Count; i++)
{
current.childerns[i].parant = current;
current.cousions[i].parant = current.parant;
}
setingcousion(current);
if (current.childerns.Count == 0)
{
layers(current.parant.NextCousion);
return;
}
for (int i = 0; i < current.childerns.Count; i++)
layers(current.childerns[i]);
}

in input string statistics it throws exception stack overflow
GeneralRe: stack overflow Pin
Luc Pattyn11-May-09 8:04
sitebuilderLuc Pattyn11-May-09 8:04 
GeneralRe: stack overflow Pin
hotthoughtguy11-May-09 8:08
hotthoughtguy11-May-09 8:08 
GeneralRe: stack overflow Pin
Dave Kreskowiak11-May-09 12:03
mveDave Kreskowiak11-May-09 12:03 
QuestionObtain value from a stored procedure Pin
Gresziu11-May-09 5:50
Gresziu11-May-09 5:50 
AnswerRe: Obtain value from a stored procedure Pin
Ian McCaul11-May-09 6:23
Ian McCaul11-May-09 6:23 
GeneralRe: Obtain value from a stored procedure Pin
Gresziu11-May-09 21:23
Gresziu11-May-09 21:23 
Questionstudent information system Pin
dotnetdev8111-May-09 5:49
dotnetdev8111-May-09 5:49 
AnswerRe: student information system Pin
OriginalGriff11-May-09 5:54
mveOriginalGriff11-May-09 5:54 
GeneralRe: student information system Pin
dotnetdev8111-May-09 7:12
dotnetdev8111-May-09 7:12 
JokeRe: student information system Pin
OriginalGriff11-May-09 8:12
mveOriginalGriff11-May-09 8:12 
General[Message Deleted] Pin
dotnetdev8111-May-09 8:15
dotnetdev8111-May-09 8:15 
GeneralRe: student information system Pin
EliottA11-May-09 8:20
EliottA11-May-09 8:20 
GeneralRe: student information system Pin
harold aptroot11-May-09 6:04
harold aptroot11-May-09 6:04 
AnswerRe: student information system Pin
DaveyM6911-May-09 6:06
professionalDaveyM6911-May-09 6:06 
AnswerRe: student information system [modified] Pin
0x3c011-May-09 6:54
0x3c011-May-09 6:54 
QuestionHow can i know when my database done update values ? Pin
Yanshof11-May-09 5:38
Yanshof11-May-09 5:38 
QuestionHow to a Control to the NonClient area of Form in C#? Pin
CodeVarma11-May-09 5:03
CodeVarma11-May-09 5:03 

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.