- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
15 Posted Topics
Hey guys! I hope what I'm about to do is not frowned upon :) I just would like some input/critics/heads up on my class definition and implementation I did for my project. I am by no means a trained programmer and I doubt my coding style is very good so …
[CODE]newSet->conditions[i] = animations[i].AnimationConditions;[/CODE] shouldnt you pick an entry from animations[i].AnimationConditions? ([n] ?)
To me your second part makes close to no sense at all. Assume we have chosen package A and have used it for 22 hours. The cost from package A will then be 9.95+24. So 33.95 - this part you calculate correctly as far as I can see. But when …
Sorry for that, probably meaningless, question but I just can learn things better when I can connect it with something. So there is CGFloat, NSInt, NSString and all that stuff and I'm wondering what these prefixes mean - I do expect them to be a sort of abbreviation but I …
Just a hint, you only need to check for odd numbers once you're past 2. also the upper limit you have to check is the square root of number because any number above you checked already with its lower part.
Everything compiled fine for me after I removed the stray escapees. Btw, TotalOvertimeHours does nothing you initialize it once and call it later. But no value ever gets assigned to it.
you miss the brackets around the if statement. edit: oh crap, didnt see page 2. my mistake. VernonDozier explained it already.
I just cant get my head around it. Is there another way going through a singly linked list without using some kind of helper function? The header file wants me to implement: [CODE]size_t priority_queue::size() { /* code here */ }[/CODE] Now I just could create a helper function that has …
Do you want ketchup with the solution? Any other wishes? First off, just "PLZ HELP" doesnt cut it. That's not the way to ask a question. Second, use [code]-tags for your code and white spaces. for (int i = 0; i<N; ++i) { std::cout << "see this indentation makes it …
What I can see is that your function definition and implementation require a parameter. However when you call it you dont pass a parameter. This should do what you want? [CODE]student.output_grades(final_grade);[/CODE] Another option would be to define a member variable final_grade. You then can define your functions without parameter and …
[URL="http://www.cplusplus.com/reference/stl/vector/"]Vectors in C++[/URL] Vectors can not only contain numbers but also objects - like the items of your store. Each entry then in the vector is/points at (depending on the implementation) an object of the type item with its associated member variables/functions. [CODE] #include "item.h" #include <vector> int main() { …
check the implementation of your Resultant function. You forgot the const on Z[]. vij beat me to it!
Hey, it's me again. Again with a topic that has been covered here but reading through the old threads didnt help me to solve my problem. And I am pretty clueless at the moment. Consider the class passenger_queue with 2 functions, namely: [CODE]int passenger_queue::get_passengers_waiting() const { // Insert your code …
Alright, I suspect there is already a solution here somewhere on the forums but I'm not quite sure I'm searching for the right terms so I hope you dont mind me asking the question anyway. My goal is to make a constructor for a class called building. instance variables are: …
if you work with strings I think you need to put the string into " " quotation marks and not '.
The End.
fibbo