18 Posted Topics
Re: Your cout is inside of your for loop. That means it happens 4 times. | |
Hey guys, I have a quick question: When I call [INLINECODE]DWORD dw = pMesh->GetFVF();[/INLINECODE], how do I determine what flags the DWORD represents? For example, if I call that function and [INLINECODE]dw == 18[/INLINECODE], how do I determine which FVF values the '18' represents? Thanks for your time! EDIT: I … | |
![]() | Re: Can't you just concatenate the desired name string and the date string? ![]() |
Re: [url]http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=/com.ibm.xlcpp8a.doc/language/ref/cplr061.htm[/url] Check that out, it should be handy. | |
Re: What's wrong with this line? [CODE]word{i}= " ";[/CODE] | |
Re: Think about the order of your code. Think about what your program knows before it tries to use something. If your program begins and it hasn't been told there is a class called "Piece", then how can it add that class to a vector? | |
Re: Just my two cents, but I wouldn't just accept that it was Visual Studios fault unless you're 100% sure. Errors, in my experience, don't usually just [I]disappear[/I]. | |
Re: You should look at [url]http://www.daniweb.com/forums/thread264097.html[/url]. You have the same problems as that guy. Also, line 8 has an error. | |
Re: Wouldn't you just put the program into a loop that executes 100 times and counts the number of moves it makes in each iteration, stores those numbers in an array (one number stored each time the iteration completes) and divide the sum of all of the contents of the array … | |
Re: [QUOTE][CODE]for(int i=0; i < Range; ++i); } { double time_sum = 0.0; double time_average = 0.0; for (int m=1 ; m <= NumberOfCases; ++m); } { cout << "for m=" << m << " K=" << K << endl; }[/CODE] [/QUOTE] This is incorrect. It won't be hard to fix … | |
Re: It looks like you're using an uninitialised variable... You never use the float 'windchill' until you add 0.5 to it. So basically you're adding 0.5 to some random number. | |
Hey all, I'm trying to do some ray intersection detection but I'm having some problems. My app starts by loading a cube object into a .x file. I have a player class and a target class that both use the same model, but each has it's own world matrix. [CODE]D3DXMATRIX … | |
Re: I think lines 40 and 42 are incorrect. You are using an assignment operator (=) instead of a comparison operator (==), unless you're trying to get it to do something I'm not seeing. Also, I think lines 24 to 31 should be inside the do...while(continuePlay == true) loop. That would … | |
Re: This should help: [url]http://www.tek-tips.com/viewthread.cfm?qid=1372208&page=17[/url] I can't remember exactly how to declare an icon file in the resource file, but if you're using Visual Studio I [i]THINK[/i] you can right click on the .rc file in the solution explorer and add resource (your icon). | |
Re: [QUOTE=Robyy14;1140705]Bla bla bla[/QUOTE] Where do you people come from? I'm honestly curious. There are so many people with horrible grammar and atrocious attitudes floating around the various coding sites that demand code from people. | |
Re: So you're saying your maths is all working a-ok, but when it comes to printing the string it's printing garbage? What is an example of the output you're getting from 'xnew'? | |
Re: Add another choice to menu() that lets the user exit the program, and place the whole function into an appropriate loop. The loop should check to see that the 'exit' choice has/hasn't been selected. | |
Re: Where's your code? Edit: I'd start by getting the numbers (hint: cin) and adding them to an array of 5 integers. For the highest and lowest number funcitons I'd use a loop that loops 5 times checking the current number in the array against the current highest/lowest, storing the higher/lower … |
The End.