Click here to Skip to main content
15,902,114 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Help with connect 4 AI Pin
Jeremy Thornton12-Nov-05 14:24
Jeremy Thornton12-Nov-05 14:24 
Questionfstreaming a whole object (pointer) Pin
Hmmkk10-Nov-05 11:56
Hmmkk10-Nov-05 11:56 
AnswerRe: fstreaming a whole object (pointer) Pin
Christian Graus10-Nov-05 12:49
protectorChristian Graus10-Nov-05 12:49 
GeneralRe: fstreaming a whole object (pointer) Pin
Hmmkk10-Nov-05 19:29
Hmmkk10-Nov-05 19:29 
GeneralRe: fstreaming a whole object (pointer) Pin
Christian Graus13-Nov-05 9:53
protectorChristian Graus13-Nov-05 9:53 
QuestionReading/editing registry on different .dat file? Pin
LordZoster9-Nov-05 11:40
LordZoster9-Nov-05 11:40 
Questionbinary hex conversion using stacks Pin
OttawaSenator9-Nov-05 6:57
OttawaSenator9-Nov-05 6:57 
AnswerRe: binary hex conversion using stacks Pin
mikanu9-Nov-05 7:12
mikanu9-Nov-05 7:12 
This is a pseudo-C example of how one would convert a 10-base number to a different base.
It assumes a String class that provides the = and + operators and a Stack class that implements
the push and pop functions.

String BaseConversion(int Number, int Base)	// return string, accept two integers
{	
    int digit;
    Stack stack = new Stack();	            // instantiate new stack object
    while (Number >= Base)                  // now the repetitive loop is clearly seen
    {	
	stack.push(Number % base); 	    // store a digit
	Number = Number/Base;	            // find new 'number'
    }	
	    
    digit = Number                          // the remainder is the first digit
    // now it's time to collect the digits together	
    String str = new String("" + digit)     // create a string with a single digit 
    while (stack.NotEmpty())	
       str = str+stack.pop()	            // get next digit from the stack
    
    return str;	
}

GeneralRe: binary hex conversion using stacks Pin
OttawaSenator9-Nov-05 11:10
OttawaSenator9-Nov-05 11:10 
GeneralRe: binary hex conversion using stacks Pin
mikanu10-Nov-05 16:32
mikanu10-Nov-05 16:32 
Question"please help assignment due soon" Pin
da_comp_learner7-Nov-05 16:07
da_comp_learner7-Nov-05 16:07 
AnswerRe: "please help assignment due soon" Pin
Christian Graus7-Nov-05 16:26
protectorChristian Graus7-Nov-05 16:26 
Questionmemory leak Pin
nineofhearts7-Nov-05 11:37
nineofhearts7-Nov-05 11:37 
AnswerRe: memory leak Pin
Christian Graus7-Nov-05 12:25
protectorChristian Graus7-Nov-05 12:25 
GeneralRe: memory leak Pin
nineofhearts7-Nov-05 13:21
nineofhearts7-Nov-05 13:21 
GeneralRe: memory leak Pin
Christian Graus7-Nov-05 13:41
protectorChristian Graus7-Nov-05 13:41 
GeneralRe: memory leak Pin
Christian Graus7-Nov-05 13:47
protectorChristian Graus7-Nov-05 13:47 
GeneralRe: memory leak Pin
nineofhearts7-Nov-05 15:59
nineofhearts7-Nov-05 15:59 
GeneralRe: memory leak Pin
Christian Graus7-Nov-05 16:02
protectorChristian Graus7-Nov-05 16:02 
GeneralRe: memory leak Pin
Kevin McFarlane13-Nov-05 4:22
Kevin McFarlane13-Nov-05 4:22 
AnswerRe: memory leak Pin
Joe Woodbury11-Nov-05 20:19
professionalJoe Woodbury11-Nov-05 20:19 
QuestionCallback with "object" parameter fails Pin
TriLogic7-Nov-05 10:39
TriLogic7-Nov-05 10:39 
QuestionC++ console Pin
iamboy7-Nov-05 9:05
iamboy7-Nov-05 9:05 
AnswerRe: C++ console Pin
Christian Graus7-Nov-05 9:50
protectorChristian Graus7-Nov-05 9:50 
QuestionAccessing control from another file Pin
Eran6-Nov-05 22:49
Eran6-Nov-05 22:49 

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.