Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
78% Quality Score
Upvotes Received
8
Posts with Upvotes
6
Upvoting Members
5
Downvotes Received
2
Posts with Downvotes
1
Downvoting Members
2
3 Commented Posts
~21.5K People Reached
About Me

Forever learning and reaching higher!

Interests
Guitar Exercise Programming Making money ;)
Favorite Tags

53 Posted Topics

Member Avatar for jakesee

[CODE]Vector3 forward = target - eye; forward.normalize(); Vector3 side = Vector3::cross(forward, up); side.normalize(); up = Vector3::cross(side, forward);[/CODE] I don't understand why you are recalculating the up direction..... Surely you already know it at this point otherwise your side direction would be calculated incorrectly? If you already know it then there …

Member Avatar for 传志
0
2K
Member Avatar for Valaraukar

I want to create a program that reads some data from a specified .txt source file (this part is absolutely no problem) and then write that data to the currently active/open file (something like copy & paste functionality where the copy function reads data from the source file and paste …

0
86
Member Avatar for MasterHacker110

As I'm sure you noticed when you read the documentation, creating libraries in C++ is very different to C# (in my opinion most things tend to be more difficult in C++). I imagine the complexity in C++ is essentially down to the close-knit relationship between C++ and C (I'm just …

Member Avatar for Valaraukar
0
403
Member Avatar for Valaraukar

So I'm currently working as part of a team that is building a game engine and I have been considering our current code structure. As a team we decided it would be a good idea to create a plugin architecture that allows additional functionality to be added by other users …

Member Avatar for Valaraukar
0
190
Member Avatar for Valaraukar

So for some reason I my brain seems be failing me :( Anyway....I have a cylinder object in 3D space and inside of the cylinder I have line objects originating at the origin (0,0,0) (which is also the centre point of the cylinder). I would like to find the exact …

Member Avatar for Valaraukar
0
200
Member Avatar for Valaraukar

Hey guys, So my Maths has obviously gotten a little rusty and I seem to be struggling with what should be quite simple.... The scenario: I have lines being drawn in 3D space that are calculated using an algorithm. These lines are actually made up of multiple line segments to …

Member Avatar for jonsca
0
816
Member Avatar for kamohelo

If you are planning on using someone else's code for some assignment then you will learn nothing and hopefully be found guilty of plagiarism. Using the code as an analytical reference is a much better idea however.

Member Avatar for Colezy
0
152
Member Avatar for Urv73

I'm not quite sure what you mean by [QUOTE]how do I keep both the fastest time and startnumber in memory?[/QUOTE] Perhaps you just mean store the data for the duration of the programs execution? The rest is just basic Math. If you know the start and end time then you …

Member Avatar for Urv73
0
192
Member Avatar for Archenemie

Try this: [CODE]string name; cout << endl << "Please enter your first name" << endl << endl; cin >> name; cin.ignore(); string surname; cout << endl << "Please enter your surname" << endl << endl; cin >> surname; cin.ignore();[/CODE]

Member Avatar for Valaraukar
0
174
Member Avatar for Stefano Mtangoo

It would be useless to have a virtual constructor in C++. Having a virtual constructor would mean that you could override the class constructor with that of a derived class. Constructors are called at the point of object creation and hence when constructing you cannot be creating a sub-class of …

Member Avatar for Stefano Mtangoo
0
572
Member Avatar for xtrmR

Surely this depends on how you have set up your clipping volume. In OpenGL for example you might call: [CODE]gluPerspective(35.0f, fAspect, 1.0f, 500.0f)[/CODE] If you lowered the value of the last parameter in this instance then it would [B]appear[/B] as though you cannot see as far into the screen.

Member Avatar for xtrmR
0
206
Member Avatar for tsotne1990

Have you included the necessary header files (I presume the file in which GradeBook is defined) in the main cpp file? Maybe you could post up some code for people to look at? It will make the analysis of your problem much easier

Member Avatar for chiwawa10
0
81
Member Avatar for 1989sam

As you have declared Queue as follows: [CODE]queue<int> Queue;[/CODE] You cannot simply assign p to it as you are attempting. Looking at your code I see no reason why you don't just assign the values of p directly to the queue (thus removing the need for your struct). e.g. [CODE]Queue[0] …

Member Avatar for mrnutty
0
5K
Member Avatar for dorien

The code you posted here produces a lot more than one error. For example: [CODE]Music::Music(int id){ music[2]=thiskey.display; //this is the error line } }[/CODE] You appear to have an extra '}' and you should do 'thiskey.display()' when calling functions. Also, display is a void function so you aren't even assigning …

Member Avatar for kes166
0
183
Member Avatar for omfgtom

Could actually post that specific error message please. I presume it says 'undefined reference to *something*'

Member Avatar for Valaraukar
0
115
Member Avatar for Elihu5991

I have found Eclipse and Codeblocks to be quite useful. These are both Open source I believe and run on Linux platforms too :)

Member Avatar for Elihu5991
0
292
Member Avatar for timb89

Look here [CODE]else if (output < tree -> data) { tree -> left = t; cout << "LEFT = " << t -> data << endl; }[/CODE] You are assigning to tree (you root node)......but that's all you ever do. You never move on to the next node. Perhaps if …

Member Avatar for timb89
0
173
Member Avatar for Nemo_NIIT

Maybe you could be a little more specific? For example, what sort of log file are you looking to create? What events?

Member Avatar for Ancient Dragon
0
174
Member Avatar for amare_de

This is very strange....Using the information that you have provided here I have created a working solution; no compilation errors at all (g++ compiler). Do you return from foo? What compiler are you using?

Member Avatar for amare_de
0
101
Member Avatar for mainstreetmark

Hmm this seems strange but after a little testing with my own code samples I managed to produce the same error (obviously with different files) when I intentionally failed to link with a library that I needed. Perhaps the library that you are linking with has other dependencies. Either that …

Member Avatar for mainstreetmark
0
305
Member Avatar for nolife

Linker errors can be quite hard to track down so without any code to examine the job is made ever so slightly more difficult ;) Post up some of the code that you think could be associated to or causing your problems. Side note: Your punctuation and grammar is quite …

Member Avatar for nolife
0
1K
Member Avatar for cdh1944

What specifically are you having trouble with? You just need to create a function or two that will perform the maths calculations exactly as stated. Define a value for PI or use the math header file and then assign the stated value for x and plug it into your functions. …

Member Avatar for Stefano Mtangoo
0
169
Member Avatar for badllama

Could you attach (using the advanced editor) the files that you are working with so that I can have a poke around?

Member Avatar for Valaraukar
0
229
Member Avatar for kakaliki

It's a bit hard to understand what you are saying. If you have compilation errors then it might be useful to post some [B]specific[/B] examples as well as the code that I presume you have now modified

Member Avatar for kakaliki
0
269
Member Avatar for mmmm1118
Re: C

Perhaps you should post up the code that you have done so far so that people can actually see what you need help with. You haven't really provided much information to work with

Member Avatar for N1GHTS
-2
97
Member Avatar for glenak

Well I guess this depends on whether you are bothered about having to pay for your IDE. I personally spend a large majority of my time programming without an IDE either using vim or gedit. On windows platforms I think Visual studio is a really great IDE and 2010 has …

Member Avatar for Valaraukar
0
141
Member Avatar for kchyn

Is this code called in some kind of loop? For example, if this was called as below: [CODE]#include <stdio.h> #include <stdlib.h> #include <time.h> #include <iostream> using namespace std; int main(void) { for( unsigned int i = 0; i < 100; i++ ) { srand((unsigned)time(0)); int a; int b; int c; …

Member Avatar for Valaraukar
0
249
Member Avatar for ezkonekgal

I could be way off base here but could you not just have a management process of some kind. This process would keep track of the remaining execution time of the currently running process plus those that haven't been executed yet. For each process waiting, the management process could calculate …

Member Avatar for Valaraukar
0
121
Member Avatar for rajeshmithy

These forums are designed so that people can provide help and assistance. Have you actually thought about how you could create a solution for your problem yourself? If you have at least made a start then I would be more than willing to help out with any problems that you …

Member Avatar for prvnkmr449
0
67
Member Avatar for ASTA LAVISTA

I also tried with 4.5.1 and without the include I get compilation errors as I would expect. I will be able to test Visual Studio 2010 a bit later.

Member Avatar for ASTA LAVISTA
0
410
Member Avatar for burcin erek

I believe frogboy is correct. Your loop is decrementing instead of incrementing and hence you are printing the data with the highest index first

Member Avatar for burcin erek
0
89
Member Avatar for localp

You will need to include the header file first and then either access the namespaces using the scope resolution operator '::' or add "using namespace /*namespace*/" (which is particularly useful if you will be using the namespace functionality often).

Member Avatar for Valaraukar
0
136
Member Avatar for kra9853

Are you actually asking for some help here or just expecting people to do your homework for you? You won't [B]learn[/B] anything if people do all the work for you. If you actually need help with a programming issue and have at least made an attempt to solve your own …

Member Avatar for Valaraukar
0
174
Member Avatar for senche

Well the ANSI C standard basically tries to encourage better program design so that code produced is nice and portable. You could just do a basic google search for ANSI C and get a ton of information. The first hit I got was [URL="http://en.wikipedia.org/wiki/ANSI_C"]this[/URL].

Member Avatar for N1GHTS
0
991
Member Avatar for Elven Princess

I've always found DaniWeb to be full of really helpful and friendly people if I was to be honest. I'm pretty sure that there is no standard answer to a question however people don't learn if others do there homework for them. I think maybe this thread should be closed …

Member Avatar for Fbody
-1
96
Member Avatar for MindTrixz

[QUOTE]We are supposed to minipulate a box in the center of the screen with the input given by a user. The input values given are height and width. How can I create a box in the center of the screen with only two values? [/QUOTE] If the two values provided …

Member Avatar for Valaraukar
0
112
Member Avatar for percival

If all you wish to find is the number of votes received for whatever then why not simply create counters? e.g. [CODE]int option1 = 0; int option2 = 0; if( /* someone has voted for option1 */ ) option1++; else option2++;[/CODE]

Member Avatar for Valaraukar
0
195
Member Avatar for samuel_1991

The warning seems accurate. I don't think you can simply return an array because what you are doing is (as the warning states) returning the address of buffer. You should perhaps try returning an array pointer?

Member Avatar for samuel_1991
0
721
Member Avatar for Ami_m24

Your post is a bit unclear but I think I get the basic idea. How exactly are you storing the tree items? - Arrays, vector, struct What file information do you actually store? - A series of char/strings Perhaps you could flag the stored items once they are no longer …

Member Avatar for Ancient Dragon
0
129
Member Avatar for Vllinator

I agree with Ancient Dragon. Think about how data recovery software works with computers. When files are deleted they get flagged as deleted so that the computer can overwrite the data stored in that area of memory. So long as the memory location hasn't already been re-used the data is …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for saloth

That is entirely dependent upon you. What if you add a word later that exceeds your limit? I would suggest you allocate the memory dynamically so that you don't have to worry about what array size will work best. Anyway, If the largest has 8 characters then you need an …

Member Avatar for ftl25
0
194
Member Avatar for Kostan M

You haven't really provided much information. I presume you just want a basic graphical display to view data; a line graph for example? I would suggest using C++ with OpenGL or a similar API. If you decide to take this option you could pick up the basic skills from nehe …

Member Avatar for Valaraukar
0
67
Member Avatar for bmos31

I agree with Fbody, although you don't even appear to have a constructor to use as you are attempting. Surely you would need to actually assign the values that you are passing as parameters? Maybe something more like the following is what you are attempting? e.g. [code=cpp]class SomeObject { private: …

Member Avatar for bmos31
0
167
Member Avatar for sDanyal

Hmmm...It sounds like you are misinterpreting what OpenGL is. Anyway you have to acquire some version of the OpenGL libraries so that you can make use of the API's functionality. This link should be of use to you [url]http://www.opengl.org/resources/libraries/glut/glut_downloads.php#2[/url]

Member Avatar for Valaraukar
0
155
Member Avatar for Valaraukar

So, I have been working on some code with a group of people/organisations etc. and I've hit a small bump in the road that I thought someone on here may be able to help me with :) I have developed some code that draws 3D towers to represent the amount …

Member Avatar for Valaraukar
0
180
Member Avatar for Valaraukar

Ok, so I'm really after knowledge rather than a quick easy solution here. I am part of a team that is currently working on the development of a 'kind of' physics engine but I have hit a small wall since adapting the functionality of a class which was previously working …

Member Avatar for Valaraukar
0
202
Member Avatar for Valaraukar

Hi, Basically I have a game type scenario in which objects are falling from the sky onto uneven terrain below but my problem is this: I can't figure out how to determine when an object has actually collided with a slope (the point of impact) because obviously the y value …

Member Avatar for Fbody
0
90
Member Avatar for Valaraukar

Hi, I'm writing a program in C++/OpenGL as part of a university assignment but I am having difficulty using the function glBindTexture to bind my loaded textures onto the models that I load in and render. I can actually wrap the texture around my 3D model no problem but I …

Member Avatar for Valaraukar
0
259
Member Avatar for Valaraukar

Hi, I'm trying to update an objects information within my linked list but for some reason after attempting to alter the data no changes appear to have taken place. As far as I am aware I'm not updating a copy of the object because I am finding the relevant object …

Member Avatar for Valaraukar
0
183
Member Avatar for Valaraukar

Hi, I have created a generic linked list in which different objects can be added to a list as long as they inherit from my object class. My problem is this: I am able to add nodes and find nodes etc. but I can't figure out how to return an …

Member Avatar for GrubSchumi
0
133

The End.