Click here to Skip to main content
15,498,859 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to pass pointers and process them using ellipsis ? Pin
Member 1496877118-Mar-22 16:23
MemberMember 1496877118-Mar-22 16:23 
AnswerRe: How to pass pointers and process them using ellipsis ? Pin
Richard MacCutchan19-Mar-22 0:08
mveRichard MacCutchan19-Mar-22 0:08 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
Member 1496877119-Mar-22 5:06
MemberMember 1496877119-Mar-22 5:06 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
k505419-Mar-22 6:01
mvek505419-Mar-22 6:01 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
Member 1496877119-Mar-22 9:44
MemberMember 1496877119-Mar-22 9:44 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
k505419-Mar-22 13:00
mvek505419-Mar-22 13:00 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
Richard MacCutchan19-Mar-22 7:11
mveRichard MacCutchan19-Mar-22 7:11 
Questionworking with pointers Pin
Calin Negru17-Mar-22 22:48
MemberCalin Negru17-Mar-22 22:48 
I wrote this linked list code. Could someone confirm I`m doing it the way I`m supposed to.
class SomeNode
{
	public:
	
	int data;
	SomeNode * next;
};

SomeNode * BuildList()
{
	SomeNode * Tail;
	Tail = (SomeNode*)malloc(sizeof(SomeNode));
	Tail->next = NULL;
	Tail->data = 100;
	SomeNode * Temp;
	bool firstrun = true;
	for(int i =0; i < 5; i++)
	{
		if(firstrun)
		{
			Temp = AddTo(&Tail,i);
			firstrun = false;
		}
		else
		{
			Temp = AddTo(&Temp,i);
			
		}
	
	}
	return Temp;
}

SomeNode * AddTo(SomeNode ** Source, int somedata)
{
	SomeNode * NewSN;
	NewSN = (SomeNode*)malloc(sizeof(SomeNode));
	NewSN->data = somedata;
	NewSN->next = (*Source);

	return NewSN;
	
}

AnswerRe: working with pointers Pin
Victor Nijegorodov18-Mar-22 0:16
MemberVictor Nijegorodov18-Mar-22 0:16 
GeneralRe: working with pointers Pin
Calin Negru18-Mar-22 1:12
MemberCalin Negru18-Mar-22 1:12 
GeneralRe: working with pointers Pin
Victor Nijegorodov18-Mar-22 2:39
MemberVictor Nijegorodov18-Mar-22 2:39 
GeneralRe: working with pointers Pin
Calin Negru18-Mar-22 11:20
MemberCalin Negru18-Mar-22 11:20 
Generalgoing a bit further: working with pointers Pin
Calin Negru20-Mar-22 8:47
MemberCalin Negru20-Mar-22 8:47 
AnswerRe: working with pointers Pin
Mircea Neacsu18-Mar-22 11:19
mvaMircea Neacsu18-Mar-22 11:19 
QuestionRe: working with pointers Pin
David Crow21-Mar-22 4:16
MemberDavid Crow21-Mar-22 4:16 
AnswerRe: working with pointers Pin
Calin Negru21-Mar-22 6:15
MemberCalin Negru21-Mar-22 6:15 
QuestionCode to Figure out x,y cords for CDC::Pie inside an CDC::Ellipse given % Pin
ForNow13-Mar-22 10:37
MemberForNow13-Mar-22 10:37 
AnswerRe: Code to Figure out x,y cords for CDC::Pie inside an CDC::Ellipse given % Pin
Mircea Neacsu14-Mar-22 17:41
mvaMircea Neacsu14-Mar-22 17:41 
GeneralRe: Code to Figure out x,y cords for CDC::Pie inside an CDC::Ellipse given % Pin
ForNow15-Mar-22 6:01
MemberForNow15-Mar-22 6:01 
QuestionIPv6 address compression code using vc++ Pin
Member 1252773510-Mar-22 18:12
MemberMember 1252773510-Mar-22 18:12 
AnswerRe: IPv6 address compression code using vc++ Pin
Victor Nijegorodov10-Mar-22 22:06
MemberVictor Nijegorodov10-Mar-22 22:06 
QuestionQuestions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow10-Mar-22 7:02
MemberForNow10-Mar-22 7:02 
AnswerRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
RedDk10-Mar-22 9:22
MemberRedDk10-Mar-22 9:22 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow10-Mar-22 10:35
MemberForNow10-Mar-22 10:35 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
RedDk10-Mar-22 10:40
MemberRedDk10-Mar-22 10:40 

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.