Click here to Skip to main content
15,903,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: compiling linux programs on windows xp Pin
Cedric Moonen30-Mar-07 7:19
Cedric Moonen30-Mar-07 7:19 
AnswerRe: compiling linux programs on windows xp Pin
led mike30-Mar-07 8:56
led mike30-Mar-07 8:56 
GeneralRe: compiling linux programs on windows xp Pin
Mark Salsbery30-Mar-07 15:07
Mark Salsbery30-Mar-07 15:07 
GeneralRe: compiling linux programs on windows xp Pin
shiraztk31-Mar-07 23:04
shiraztk31-Mar-07 23:04 
Questionasking c programming Pin
Arif Liminto30-Mar-07 5:30
professionalArif Liminto30-Mar-07 5:30 
QuestionRe: asking c programming Pin
Mark Salsbery30-Mar-07 7:04
Mark Salsbery30-Mar-07 7:04 
AnswerRe: asking c programming Pin
Arif Liminto30-Mar-07 7:10
professionalArif Liminto30-Mar-07 7:10 
GeneralRe: asking c programming Pin
Mark Salsbery30-Mar-07 8:11
Mark Salsbery30-Mar-07 8:11 
One way to get your code to compile is like this (changes in red):
struct node
{
   int v1;
   int v2;
   int w;
   struct node *next;
} first;
 
struct <code>node **</code>findposibility(int index) 
{
   struct node *curr = <code>&</code>first;
   <code>static</code> struct node *a[5];
   int i = 0;
 
   while(curr->next != NULL)
   {
      if(index <code>==</code> curr->v1)
      {
         a[i] = curr;
         i++;
      }
      curr <code>=</code> curr->next;
   }
   return a;
}

There's still a couple problems:
1) first is not initialized
2) Is 5 the max number of hits you will ever encounter?


"If you can dodge a wrench, you can dodge a ball."

GeneralRe: asking c programming Pin
Arif Liminto30-Mar-07 8:26
professionalArif Liminto30-Mar-07 8:26 
GeneralRe: asking c programming Pin
Mark Salsbery30-Mar-07 9:06
Mark Salsbery30-Mar-07 9:06 
GeneralRe: asking c programming Pin
led mike30-Mar-07 9:00
led mike30-Mar-07 9:00 
GeneralRe: asking c programming Pin
Mark Salsbery30-Mar-07 9:02
Mark Salsbery30-Mar-07 9:02 
GeneralRe: asking c programming Pin
ThatsAlok1-Apr-07 21:08
ThatsAlok1-Apr-07 21:08 
QuestionMultiColumn ListBox [modified] Pin
deville7530-Mar-07 3:46
deville7530-Mar-07 3:46 
AnswerRe: MultiColumn ListBox Pin
CPallini30-Mar-07 4:42
mveCPallini30-Mar-07 4:42 
GeneralRe: MultiColumn ListBox Pin
deville7530-Mar-07 5:57
deville7530-Mar-07 5:57 
GeneralYou're welcome Pin
CPallini30-Mar-07 7:46
mveCPallini30-Mar-07 7:46 
GeneralRe: MultiColumn ListBox Pin
ThatsAlok1-Apr-07 21:08
ThatsAlok1-Apr-07 21:08 
QuestionHow to get Logged in user name using my own windows service application Pin
anumadhu30-Mar-07 3:34
anumadhu30-Mar-07 3:34 
AnswerRe: How to get Logged in user name using my own windows service application Pin
Johpoke30-Mar-07 9:54
Johpoke30-Mar-07 9:54 
AnswerRe: How to get Logged in user name using my own windows service application Pin
JudyL_MD30-Mar-07 10:17
JudyL_MD30-Mar-07 10:17 
QuestionRe: How to get Logged in user name using my own windows service application [modified] Pin
anumadhu2-Apr-07 0:30
anumadhu2-Apr-07 0:30 
AnswerRe: How to get Logged in user name using my own windows service application Pin
ThatsAlok1-Apr-07 21:07
ThatsAlok1-Apr-07 21:07 
QuestionWindows XP theme Pin
Farhat Aisha30-Mar-07 3:16
Farhat Aisha30-Mar-07 3:16 
AnswerRe: Windows XP theme Pin
Mark Salsbery30-Mar-07 8:17
Mark Salsbery30-Mar-07 8:17 

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.