Click here to Skip to main content

C / C++ / MFC

 
GeneralRe: How to process the task bar mouse click event? Pingroupyu-jian23-Jan-13 3:11 
Questionhow can draw a panel ? PingroupVCProgrammer22-Jan-13 1:33 
AnswerRe: how can draw a panel ? PinmvpRichard MacCutchan22-Jan-13 4:07 
GeneralRe: how can draw a panel ? PingroupVCProgrammer22-Jan-13 18:35 
GeneralRe: how can draw a panel ? PinmvpRichard MacCutchan22-Jan-13 22:52 
GeneralRe: how can draw a panel ? PingroupVCProgrammer23-Jan-13 0:32 
GeneralRe: how can draw a panel ? PinmvpRichard MacCutchan23-Jan-13 2:00 
Questionc++ implementation of a linked list. Pinmemberneo2922-Jan-13 1:31 
Pardon me!! I am new here. I am unable to use addNode function. When i declare Node* it doesnt compile.
I am trying to implement a linked list in c++ without
using structures and only use pure classes.I am rusty here. Any help would be great.
head->addNode() and head.addNode() doesnt work.

#include<iostream>
#include<cstdlib>
using namespace std;
class Node
{
  int   data;
  Node* next;
public:
  Node()
 {
   data=0;
   next=NULL;
 }
 void addNode(int a)
{
   if(this!=NULL)
   {
     data=a;
     next=NULL;
   }
}
};
void main()
{
  Node* head;
        head.addNode(10);
}

AnswerRe: c++ implementation of a linked list. PinmemberMaximilien22-Jan-13 2:35 
AnswerRe: c++ implementation of a linked list. PinmemberSivaraman Dhamodharan22-Jan-13 3:42 
QuestionHaving problem with catching WM_LBUTTONUP message in CScrollBar PinmemberBee cute22-Jan-13 0:52 
AnswerRe: Having problem with catching WM_LBUTTONUP message in CScrollBar PinmvpRichard MacCutchan22-Jan-13 0:57 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar PinmemberBee cute22-Jan-13 15:36 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar PinmemberFlaviu222-Jan-13 21:55 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar PinmemberBee cute23-Jan-13 16:57 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar PinmemberFlaviu223-Jan-13 21:32 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar PinmemberBee cute24-Jan-13 0:13 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar PinmvpRichard MacCutchan22-Jan-13 22:50 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar PinmemberBee cute23-Jan-13 17:00 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar PinmvpRichard MacCutchan23-Jan-13 23:49 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar PinmemberBee cute24-Jan-13 0:16 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar PinmvpRichard MacCutchan24-Jan-13 0:43 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar PinmemberFlaviu224-Jan-13 22:01 
QuestionHow to Restart My Mfc Application Pinmemberhaha_c21-Jan-13 21:51 
QuestionRe: How to Restart My Mfc Application PinmvpCPallini21-Jan-13 23:07 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.150414.1 | Last Updated 19 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid