# Thorin_nz

Member

95

122 Neutral

• Rank
Member
1. ## factorial question

i'd say start by substituting m as n-1 to give m! / ( (m-i)! i! ) but I think your answer is incorrect as... substituting n as 6 and i as 2 gives... (n-1)! / ( (n-i-1)! i! ) (6-1)! / ( (6-2-1)! 2! ) 5! / (3!2!) 120 / 12 10 1/(n-i) + 1/i 1/(6-2) + 1/2 1/(4) + 1/2 3/4 Clearly 10 != 3/4 Are you sure thats the right answer?
2. ## I give up [Almost did] THANX EVERY1!!! esp thorin

lol, I've asked a few questions in my time, service is free. Up my rating if you want Seeya round - Steve

4. ## Is C++ worth learning?

Quote:Original post by khalligan If you dont have any necessity to learn C++ to do games development, and not over serious about programming. Id go with C# its easy and has most of the things that C++ has, good for doing GUI programs if you want to go down that route. If you like computers, problem solving and programming do a Computer Science degree. If you like mathematical theory and want to end up doing research or lecturing do a Mathematics degree. I'm currently doing a plain BSc, This year I had about 24 points of math, 18 In computer science and 6 in engineering ... This allowed me to major in both math or computer science next year... Might be worth thinking about if you don't know what you want to do yet.
5. ## new to network programming

4. Is it possible to have *one* program that sends something to the network and receives it again? -- Tutorials usually only have a program that sends data and another that recieves the data the other sends. But yes its possible, Infact its highly likely you will have 2 way communication :P
6. ## Sorry,Infinite QuadTree Terrain Problem again?

You would probably want to detect when the user is getting close to another tile. When they are in some threshold, you start the loading process, If the planned nicely, the data should be loaded a second or so before the user crosses to the next tile. You would have to allow the loading to either run in a thread or split it up somehow... They maybe a better way to do it, just throwing round ideas.
7. ## rolling ball simulation matlab

Is using matlab really necessary? I've recently finished a course on mathematical computation that used matlab, It doesnt seem like the kind of software you would want to create a mini golf game with. Anyway, You would want to create various functions that gives you the forces on the ball, eg friction, wind, surface. The parameters for these should be time, position, velocity, mass and anything else you can think of. Then you have a function that sums all of these and divides by the mass to get acceleration. You can then integrate to get velocity, then integrate again to get the position. I think that should be all you need.
8. ## terrain patch stitching

I drew this up a while ago... http://img86.exs.cx/img86/7880/dlod.gif Not sure how efficent it is, but it seems to work nicely
9. ## C++ Macro Challenge

__COUNTER__ anyone? Its ms specific though =P Quote:Expands to an integer starting with 0 and incrementing by 1 every time it is used in a compiland. __COUNTER__ remembers its state when using precompiled headers. If the last __COUNTER__ value was 4 after building a precompiled header (PCH), it will start with 5 on each PCH use.
10. ## The Zoom Quilt

Quote:Original post by Senses777 That was very cool. Too bad they don't explain how they made it. http://zoomquilt.nikkki.net/ Click on the [x] next to the participants names to see the images they made, im sure you can fiqure it out by looking at that...
11. ## What is your personality type?

Your Type is INFJ Introverted Intuitive Feeling Judging Strength of the preferences % I: 39 N: 83 F: 11 J: 11 Quite like my Intuitive rating :p
12. ## Teaching Programming

I've done a course like this using QBasic in the past, the students coming into the course had qbasic experience but who ever the hell taught them got them to label their lines with numbers instead of labels. Most of their code was total mess. goto 1020 isnt exactly descriptive... Anyway, With QBasic, it is fairly restrictive. I would say to just pick C as your language, but only teach them what they need to know. The basics of memory, pointers and functions should do. Maybe just start off building up a text based adventure then perhaps introduce glut when you feel they are ready for it. Good luck ~ Steve
13. ## Is it a good idea to learn console functions?

Meh, I learned OpenGL from NeHe before I knew what HWND was... At the time I understood everything I needed to know to use OpenGL, but for the win32 code I didnt know what the hell was going on. Since then I have however learned how to use the hidous win32 api. Just shows that it is possible, it just depends how ignorant you are :P
14. ## OT: wierd graphic problem

If you have a GeForce, in the settings under opengl there is a tickbox, Enable conformant OpenGL texture clamp behaviour. If its not that, (not sure what it actually does) It maybe a problem with the card. I would try installing fresh drivers and trying things like that. If you still can't get it working, take it in to where ever you got it from, They should replace it after taking a quick look at it. - Steve
15. ## what do I need to add to this for loop?

the following code will count from 0 to 99 im sure you can edit it to your needs /********************************************************** Loop that counts from 0 to 99 using a for loop Copyright (C) 2004 Steven Ashley This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. **********************************************************/ #include<iostream> using namespace std; int main() { for(int i = 0; i < 100; i++) { cout << i << endl; } return 0; } edit: bug fix