- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 22
- Posts with Upvotes
- 19
- Upvoting Members
- 22
- Downvotes Received
- 12
- Posts with Downvotes
- 9
- Downvoting Members
- 8
Almost done with my 2-year Associate in Applied Science-Programmer Degree =)
- PC Specs
- Windows XP
181 Posted Topics
Re: I suggest /thread. I also would like to add an lol. | |
Re: You are sending the char '+' to your calc.add function. Line 34 should be calc.add(a,c), but this is still not going to display anything, although it will do what you expect except you are not applying the return value to any local variable. You also need to add a break … | |
Re: Just going to throw this out there, but a lot of times, it is easier to sort as you add new elements, instead of waiting till after you add all your elements. | |
So I have always developed in a 32 bit environment, but now have the opportunity to step into 64 bit development. What I am working on requires a lot of pointer aritmatic, and I am a little confused how primitive data type sizes vary from 32 to a 64bit platform. … | |
Re: E - ERASE all of the companies product code... | |
For the life of me, I can't figure out what I am doing wrong! It has been sometime since I have had use for my own list type, but since std::vector is pretty worthless for what I need it to do, I need to relearn templates. [code] #include <memory.h> template … | |
Re: your data pointer is never set to point to anything. You could set it before line 38, then you wont get your error. So say on line 37, put test2.data = &test;, then you will no longer get an error. | |
Re: asking in the wrong forums. Head over to gamedev.net | |
Re: [code] DllllNode* temporaryTail = _last; _last = _last->_back; delete temporaryTail; [/code] | |
Re: Send everything you want to output into a string stream(#include <sstream>). [code] std::stringstream ss; ss << "My hero has " << LIFE << "life and " << bla bla bla; return ss.str(); [/code] | |
Re: You need to format your defines as such: #ifndef #define #endif after you said #ifndef _mystack_H you need to then put a #define right after that on line 5 | |
Ive been trying to understand this subject for two days now, but can't seem to get it working. My setup is two consoles, a Server console, and a server message board console. The Server message board is a child process of my Server console. The Server will send messages to … | |
Re: Ive only done basic java, and it was a long time ago, but where do you call InitComponents()? You should call it in your ctor. I believe this is why nothing is being drawn because you don't add them to your frame(because you don't call InitComponents()). | |
Re: Restart You reached 271 points, so you achieved position 16081 of 205301 on the ranking list You type 400 characters per minute You have 73 correct words and you have 4 wrong words =D Ima try again! Went again got 84 =) | |
Re: Well, the size in memory is mostly dependent on the compiler. That asides, the size of c[10] would not be the size in memory of 10 char data types, but rather the size of a char pointer. | |
Re: Never done multithreading in java, but I am going to assume it is like anything else. When you create a new thread, you pass in the parameter in the function call. So if you want to pass an integer, you would pass in the variable, typically in the void* parameter, … | |
Re: I have never heard of a "Converter" that will take a program and port it. Although, you can reverse engineer your program and build it using the iPhone SDK(not sure what they call it, but there is one obviously). | |
Re: In my personal opinion, I found books to be not very helpful once you get past learning the language syntax and some basic concepts(AKA When you first try to pick up programming). When it comes to learning specific API's, or really anything, I found that the internet is your best … | |
I haven't really found anything on the topic other than its bad to cast, but I would assume there is a "proper" way to accomplish this. To illustrate: Class B and Class C both inherit from Class A. I have a function MyFunction(A obj); In MyFunction() I would check if … | |
Re: From the looks of it, next is a pointer to the object type of what ever p, q, r and t point to. "next" is not a very common name for this that people use(i think). I like to use link. quick look at a simple object that is being … | |
I am confused! [code] void AnimationEngine::AddAnimationSet(Animation* animations) { AnimationSet* newSet = new AnimationSet(); for(int i = 0; i < (sizeof(animations) / sizeof(Animation)); i++) { for(int n = 0; n < animations[i].AnimationConditions.size(); n++) { //newSet->conditions is of type std::vector<std::vector<myType>> //animations[i].AnimationConditions is of type std::vector<myType> newSet->conditions[i] = animations[i].AnimationConditions; } } //Stuff unrelated … | |
Re: If you are new to c++ and looking to learn some data structures, I would suggest you look into creating your own list via pointers. Try googling c++ linked list. Create your own linked list, and when a team loses, you can write a function that will remove that team … | |
Re: What tools are you using? Are you using WPF and XAML? And yes, could you please explain a little bit more? | |
Re: The error is pretty straight forward I would think? Plus you are posting in the wrong forum. This is not a C++ issue. | |
Re: Hint1: How would you find out if a number is even or odd, say if you were doing a math assignment? | |
Re: Its how ever you program it. Most companies will write there own serialization engine. Im not an expert in the area, but as far as I understand it there is no standard way of "serialzing" an object, because the point of serializing is to make the data available only to … | |
Re: Its been a while sinced I used windows forms, but Im sure there is a LoseFocus event or something similar. In that event, just reset your focus using your window handle. Edit: Here is a list of events available. [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.form_events.aspx[/url] There is a Leave event. This triggers when the window … | |
Re: This is incorrect because you typedef btree as a pointer already. [code] btree* D=crear_nodo(aux, temp); [/code] try this instead. [code] btree D=crear_nodo(aux, temp); [/code] | |
Re: You can't compare character arrays like that. Your best bet is to create a function that will do a loop check of each element in the two arrays. And have it return a boolean. aka [code] bool isEqual(char onFile[], char checking[]) { for(int i = 0; i < (sizeof(onFile) / … | |
Re: Lines 10 and 11. You are using () instead of [] | |
Re: Im not quit sure I understand your question, but one thing I see that you might not realize, is that on line 8 you are setting the element at ways[count_ways] to the first element that the coordinate variable points to. So if coordinate array was {0, 1, 2, 3} and … | |
Re: templates cannot be in separate files. You have to declare and define a template in the same file. | |
Re: If you want to be good at .Net framework, start practicing. You don't get good by being told what to do. You get good by trying new things. Sit down and figure out what you want to build, and try. | |
![]() | Re: Modeling: Blender Design: Cracked version of CS3 IDE VS2010 Professional(Thanks school) Game Engine: Designing my own right now actually =) |
Re: There is an actual midpoint formula you can use to find the midpoint between two points. [url]http://www.purplemath.com/modules/midpoint.htm[/url] So in your case, using (0,0) and (5,2) x = (5+0)/2 and y = (2+0)/2 | |
Re: The example you downloaded looks like it has an error. The name of your windows procedure here is MainWndProc not WndProc. On line 53, WndProc is not declared. Try replacing it with MainWndProc. | |
Re: it looks like the data member of node is of type int. Make sure data is of type student* | |
Re: Sounds like you want computer engineering. Computer Science is fairly broad term encompassing a lot of related items. | |
Re: Make a case for WM_COMMAND, and in that case, switch the LPARAM which contains the ID of the button that you assign when you create the button using the HMENU parameter | |
Re: If you want the ability to compare even if they are not in the same order, but contain the same sets of data, when you overload your == operator you could temporarily sort the list and than compare. | |
Re: An iterator is simply a pointer to a node in your list. If you wrote all of that code, you should be able to figure out how to implement one and what its purpose is. Take the term "iterator" in a literal sense. EDIT: Reread your question and it seems … | |
Re: No one has answered because you have posted almost 200 lines of code without a definitive question and no really explanation of what is wrong. | |
Im pretty green when it comes to designing a large scale application architecture, and have a question on the way I should go with it. Just for an example, to ask the direction I should take my design in, consider this: A parking lot manager has control over everything that … | |
Re: you could also use the ignore() function if a colon is always going to be attached to the end of your label. This will move your stream pointer one char past your colon. Then you can use getline() and it will get the rest of the line up to '\n' … | |
Re: Only 29 =(. But to be fair, there were about 3 that I couldn't figure out how to spell correctly. Looks like I need to brush up! | |
Re: Please post the compiler error. Edit: My first guess is you don't reference your .lib file for d3dx9. Like I said, post your error. |
The End.