Click here to Skip to main content
15,893,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralODBC classes or ADO connection Pin
Demian Panello22-Feb-08 0:51
Demian Panello22-Feb-08 0:51 
GeneralRe: ODBC classes or ADO connection Pin
Ali Rafiee22-Feb-08 5:22
Ali Rafiee22-Feb-08 5:22 
GeneralProblem with CBitmapButton Pin
john563222-Feb-08 0:32
john563222-Feb-08 0:32 
GeneralRe: Problem with CBitmapButton Pin
csc22-Feb-08 1:35
csc22-Feb-08 1:35 
AnswerRe: Problem with CBitmapButton Pin
Rajkumar R22-Feb-08 3:31
Rajkumar R22-Feb-08 3:31 
GeneralRe: Problem with CBitmapButton Pin
Hamid_RT23-Feb-08 1:34
Hamid_RT23-Feb-08 1:34 
QuestionSOCCER robot help? Pin
dopeman22-Feb-08 0:23
dopeman22-Feb-08 0:23 
AnswerRe: SOCCER robot help? Pin
CPallini22-Feb-08 0:55
mveCPallini22-Feb-08 0:55 
dopeman wrote:
(ALSO DONT UNDERSTAND why y[n].dist was compared to y[p].dist, are they not the same value? Can someone explain why the need for true and false?)

Y[0].close=true;
p=0;
for(int n=0;n<10;n++)
{
if(Y[n].dist < Y[p].dist)
{
Y[p].close=false;
p=n;
Y[n].close=true;
}
}


Well Y[n].dist and Y[p].dist are the same value only on first iteration, you can avoid this unnecessary (though it is not a mistake) comparison starting from 1 the iteration:
for(int n=1;n<10;n++)



dopeman wrote:
if(P[s].close!=true)
{
if(P[s].xi
{P[s].x-=1;}
else {P[s].x+=1;}

if(P[s].yi
{P[s].y-=1;}
else {P[s].y+=1;}

}


Probably this piece of code makes the players (except the one closest to the ball) to move towards the ball itself, but it really depends on how P[s].xi and P[s].yi are computed, you didn't show that.

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


GeneralRe: SOCCER robot help? Pin
dopeman23-Feb-08 2:14
dopeman23-Feb-08 2:14 
GeneralError Pin
Maynka22-Feb-08 0:07
Maynka22-Feb-08 0:07 
QuestionRe: Error Pin
CPallini22-Feb-08 0:15
mveCPallini22-Feb-08 0:15 
GeneralRe: Error Pin
David Crow22-Feb-08 3:09
David Crow22-Feb-08 3:09 
GeneralAnsi libs to unicode applications Pin
neyerMat21-Feb-08 23:44
neyerMat21-Feb-08 23:44 
GeneralRe: Ansi libs to unicode applications Pin
CPallini22-Feb-08 0:00
mveCPallini22-Feb-08 0:00 
GeneralRe: Ansi libs to unicode applications Pin
neyerMat22-Feb-08 1:22
neyerMat22-Feb-08 1:22 
GeneralRe: Ansi libs to unicode applications Pin
Rajkumar R22-Feb-08 3:21
Rajkumar R22-Feb-08 3:21 
QuestionHtmlHelp with HH_DISPLAY_TEXT_POPUP in arabic language Pin
Sad0121-Feb-08 23:10
Sad0121-Feb-08 23:10 
GeneralVisual Studio 2003 installation and restart problem Pin
akira3221-Feb-08 22:59
akira3221-Feb-08 22:59 
AnswerRe: Visual Studio 2003 installation and restart problem Pin
Rajesh R Subramanian21-Feb-08 23:07
professionalRajesh R Subramanian21-Feb-08 23:07 
QuestionHow can i convert YUV4:2:2 Data To RGB ?? Pin
Soumyadipta21-Feb-08 22:34
Soumyadipta21-Feb-08 22:34 
GeneralRe: How can i convert YUV4:2:2 Data To RGB ?? Pin
CPallini21-Feb-08 22:55
mveCPallini21-Feb-08 22:55 
Generaldetermine sigma size of Gaussian mask Pin
gentleguy21-Feb-08 20:22
gentleguy21-Feb-08 20:22 
GeneralRe: determine sigma size of Gaussian mask Pin
CPallini21-Feb-08 21:20
mveCPallini21-Feb-08 21:20 
GeneralRe: determine sigma size of Gaussian mask Pin
gentleguy21-Feb-08 22:51
gentleguy21-Feb-08 22:51 
QuestionSend data to a service Pin
nitin321-Feb-08 20:03
nitin321-Feb-08 20: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.