Click here to Skip to main content
15,896,912 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Is ++i statement in the for loop better than i++? Pin
valikac10-May-03 5:43
valikac10-May-03 5:43 
AnswerRe: Is ++i statement in the for loop better than i++? Pin
Michael Dunn10-May-03 7:09
sitebuilderMichael Dunn10-May-03 7:09 
GeneralRe: Is ++i statement in the for loop better than i++? Pin
S van Leent10-May-03 11:14
S van Leent10-May-03 11:14 
GeneralRe: Is ++i statement in the for loop better than i++? Pin
Joe Woodbury10-May-03 11:47
professionalJoe Woodbury10-May-03 11:47 
GeneralDLLs Pin
Dominik Reichl9-May-03 22:23
Dominik Reichl9-May-03 22:23 
GeneralRe: DLLs Pin
Rickard Andersson2010-May-03 3:26
Rickard Andersson2010-May-03 3:26 
GeneralGDI+ Pin
sharlila9-May-03 21:43
sharlila9-May-03 21:43 
Generalit don't draw Pin
aguest9-May-03 19:53
aguest9-May-03 19:53 
i create an application who should draw five(or another number) of cube with sphere ,but i have a problem with it,it just draw one sphere and one cube and i don't know what.
i has used a vector to store the sphere and the cube that i create.

<br />
// creatfoufou.cpp: implementation of the creatfoufou class.<br />
//<br />
//////////////////////////////////////////////////////////////////////<br />
<br />
#include "stdafx.h"<br />
#include "OpenGl.h"<br />
#include "creatfoufou.h"<br />
#include "foufou.h"<br />
#include <vector><br />
<br />
#include <math.h><br />
<br />
#ifdef _DEBUG<br />
#undef THIS_FILE<br />
static char THIS_FILE[]=__FILE__;<br />
#define new DEBUG_NEW<br />
#endif<br />
<br />
//////////////////////////////////////////////////////////////////////<br />
// Construction/Destruction<br />
//////////////////////////////////////////////////////////////////////<br />
<br />
using namespace std;<br />
vector< foufou * > fou_caracter;<br />
<br />
<br />
creatfoufou::creatfoufou()<br />
{<br />
ptrfoufou = new foufou;<br />
<br />
<br />
}<br />
<br />
creatfoufou::~creatfoufou()<br />
{<br />
<br />
}<br />
<br />
void creatfoufou::creatfou(int amount)<br />
{<br />
   foufou *newfoufouPtr;<br />
   int randomX,randomY,randomZ;<br />
   int speed,steer;<br />
<br />
   for(int index=0;index<amount;index++)<br />
   {<br />
	   newfoufouPtr = new foufou();<br />
       fou_caracter.push_back( newfoufouPtr );<br />
//ici vien l'integration ou le dessin de foufou dans la scene<br />
	   	randomX = ( ( 1 + rand( ) % 100 ) - 50 );<br />
		randomY =( ( 1 + rand( ) % 100 ) - 50 );<br />
		randomZ =( ( 1 + rand( ) % 100) - 50);<br />
   <br />
		setposition(randomX,randomY,randomZ);<br />
	   //speed =<br />
<br />
	   //steer =<br />
<br />
	   //lui attribue sa vitesse<br />
	   //lui attribuer son emplacement<br />
       //lui attribuer sa direction<br />
<br />
   }<br />
}<br />
<br />
void creatfoufou::setposition(int newX, int newY, int newZ)<br />
{<br />
<br />
	ptrfoufou->RePaint(newX,newY,newZ);<br />
}<br />

GeneralRe: it don't draw Pin
Bartosz Bien9-May-03 21:48
Bartosz Bien9-May-03 21:48 
GeneralRe: it don't draw Pin
aguest10-May-03 6:01
aguest10-May-03 6:01 
GeneralRe: it don't draw Pin
Bartosz Bien10-May-03 14:20
Bartosz Bien10-May-03 14:20 
GeneralNeed a simple "console-style" output window in MFC Pin
Jan759-May-03 19:33
Jan759-May-03 19:33 
GeneralRe: Need a simple "console-style" output window in MFC Pin
S van Leent10-May-03 11:20
S van Leent10-May-03 11:20 
Generalquestion about socket Pin
wood9-May-03 18:15
wood9-May-03 18:15 
GeneralRe: question about socket Pin
Ernest Laurentin9-May-03 19:16
Ernest Laurentin9-May-03 19:16 
GeneralWhat does the getpeename return? Pin
wood10-May-03 21:47
wood10-May-03 21:47 
GeneralRe: question about socket Pin
valikac10-May-03 5:53
valikac10-May-03 5:53 
GeneralCan you tell me what does the getnameinfo() return? Pin
wood10-May-03 22:03
wood10-May-03 22:03 
GeneralCreate edit control inside thread Pin
Nena19769-May-03 17:01
Nena19769-May-03 17:01 
GeneralRe: Create edit control inside thread Pin
valikac10-May-03 5:55
valikac10-May-03 5:55 
Generalcall fuction from another class Pin
aguest9-May-03 13:18
aguest9-May-03 13:18 
GeneralRe: call fuction from another class Pin
Wes Aday9-May-03 13:45
professionalWes Aday9-May-03 13:45 
GeneralRe: call fuction from another class Pin
aguest9-May-03 14:07
aguest9-May-03 14:07 
GeneralRe: call fuction from another class Pin
Toni789-May-03 14:15
Toni789-May-03 14:15 
GeneralRe: call fuction from another class Pin
aguest9-May-03 15:29
aguest9-May-03 15:29 

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.