I just had to let you know that this is EXTREMELY helpful.
An actual working simple example! That seems to be odd around here.
Search found 26 matches
- Sun Jan 20, 2008 10:18 pm
- Forum: FAQs, Tutorials, Howtos, and external tool lists
- Topic: bullet irrlicht demo
- Replies: 33
- Views: 33357
- Sun Jan 20, 2008 6:20 pm
- Forum: Beginners Help
- Topic: Please Explain
- Replies: 3
- Views: 353
CuteAlien, Basically I went about writing my own FPS camera for two reasons: 1. To help learn 2. I cant stand the way user input is not separated from the included cameras. Anyway, I can get a basic camera moving around but you attach to a collision response animator and it simply goes nutty wheneve...
- Sun Jan 20, 2008 4:06 pm
- Forum: Beginners Help
- Topic: Please Explain
- Replies: 3
- Views: 353
Please Explain
I have been trying to get a basic camera to work for a week now and finally tried this on something I saw posted from 03.. To my surprise it actually works. The camera will move in whatever direction it is facing.. Ok great! How does it work?? Edit: Nevermind.. Works in space find but you apply an a...
- Sat Jan 19, 2008 1:24 am
- Forum: Beginners Help
- Topic: Vectors - not the container
- Replies: 3
- Views: 377
Vectors - not the container
Does anyone know a good resource too help learn generalized vector information..? Basically any good tutorial on vectors, matrix's etc
- Thu Jan 17, 2008 11:53 pm
- Forum: Beginners Help
- Topic: C++ binary search
- Replies: 12
- Views: 2403
I completely agree it would be easier to use STL as much as possible. Unfortunately Ive wasted today and the better part of yesterday trying to figure out comparative operators for things such as sort and equal_range. I could never seem to get the compiler to actually work with an example such as yo...
- Thu Jan 17, 2008 11:37 pm
- Forum: Beginners Help
- Topic: C++ binary search
- Replies: 12
- Views: 2403
Saturn, I think it boils down to I understand how to do work with simple things such as [] - You start talking adding comparative operators into a template and I am lost. Anyway, once I figured out I could use [] it took 10 minutes to solve. Should be pretty efficient I think. Time to do some tests ...
- Thu Jan 17, 2008 11:17 pm
- Forum: Beginners Help
- Topic: C++ binary search
- Replies: 12
- Views: 2403
Saturn, That would be very slow compared to a binary search algo. Imagine something with 1000 objects - it would take on average 500 times to find the correct object doing a linear search. Using binary would only take 10 at most.. CuteAlien, Em - learning that makes me want to cry. I can actually im...
- Thu Jan 17, 2008 10:45 pm
- Forum: Beginners Help
- Topic: C++ binary search
- Replies: 12
- Views: 2403
int a = 123; std::lower_bound(bleh.begin(), bleh.end(),a, Test()); I know four arguments should be used. I just can not figure out for the life of me how you would get it to actually take the number into the third argument. It comes down to I am lost when it comes to using operators in the various ...
- Thu Jan 17, 2008 9:52 pm
- Forum: Beginners Help
- Topic: C++ binary search
- Replies: 12
- Views: 2403
CuteAlien, That wouldn't work as the algo would never stop. pseudocode algorithm: WHILE low is smaller than or equal to high SET midpoint to (low + high) / 2 IF data2Search is equal to data[midpoint] THEN return midpoint ELSEIF data2Search is smaller than data[midpoint] THEN SET high to midpoint - 1...
- Thu Jan 17, 2008 8:57 pm
- Forum: Beginners Help
- Topic: C++ binary search
- Replies: 12
- Views: 2403
C++ binary search
Two Part Question! #1 Is it possible to get binary_search to actually return an iterator instead of just true or false? The way various documentation explains it all it does is return true if the value is present. Well, thats kind of useless! #2 If binary_search is useless... How can one do math on ...
- Thu Jan 17, 2008 5:29 pm
- Forum: Beginners Help
- Topic: C++ sorting Vector help
- Replies: 7
- Views: 661
- Wed Jan 16, 2008 10:30 pm
- Forum: Beginners Help
- Topic: C++ sorting Vector help
- Replies: 7
- Views: 661
- Wed Jan 16, 2008 10:16 pm
- Forum: Beginners Help
- Topic: C++ sorting Vector help
- Replies: 7
- Views: 661
C++ sorting Vector help
Hi, I am having troubles with sort in C++.. Have been trying to get this to work for multiple hours and am getting no where. I do not understand how to actually get the sort algorithm predicate function to work. Anyway heres an example of what I am trying to do: class test { int a; int b; int c; } N...
- Mon Jan 14, 2008 5:26 pm
- Forum: Beginners Help
- Topic: User Config key mapping
- Replies: 3
- Views: 264
- Mon Jan 14, 2008 4:35 am
- Forum: Project Announcements
- Topic: Armen's Terrain Generator
- Replies: 40
- Views: 32005