Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~13.4K People Reached
Favorite Tags
Member Avatar for fibbo

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 …

Member Avatar for fibbo
0
213
Member Avatar for LevyDee

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 …

Member Avatar for mrnutty
0
165
Member Avatar for clickspiker23

I created a program that ask a user to pick a service package and tell them how much it is going to cost, what i cant figure out is how to get the program to tell them how much they would have saved if they had gone with a different …

Member Avatar for WaltP
0
104
Member Avatar for fibbo

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 …

0
70
Member Avatar for ben1996123

I want it to list prime numbers from 1 to 100 like this: 1. 1 2. 2 3. 3 4. 5 5. 7 etc. [CODE]#include <iostream> using namespace std; int main(){ int num = 1; double number = 1; double div = 1; bool prime = true; int top = …

Member Avatar for fibbo
0
153
Member Avatar for Dante2002

Hello all, I have put together an inventory program and having problems getting it to compile and run. I am at my wits end, with it. I'm not sure what it is that I'm missing. Any help would be greatly appreciated. Thanks in advance. [CODE] #include <iostream> #include <string> #include …

Member Avatar for fibbo
0
212
Member Avatar for cafegeo

I have two functions. One is supposed to fill in an array, and the other takes that new array, finds the lowest number in that array, and prints the subscript. int getNumAccidents(int acc[], const int size); [B]Fills array num_acc[][/B] int findLowest(int acc[], const int size); [B]Takes num_acc[], finds lowest value …

Member Avatar for cafegeo
0
237
Member Avatar for fibbo

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 …

Member Avatar for fibbo
0
356
Member Avatar for Memo143

THIS IS NOT WORKING PLZ CHECK FOR ERRORS [code] #include<iostream.h> template <class T> class ex { private: struct node { T data; struct node *next; }; struct node *head,*front,*rear; public: ex() { head=new node; head->next=NULL; front=rear=head; } void enqueue(T x); T dequeue(); void print(); void move_next(); }; //////////////////Implementation file #include …

Member Avatar for fibbo
-2
126
Member Avatar for skips

I believe this to be a simple problem. My program runs fine, but I cannot figure why the variable "final_grades" is not being passed to the function and output. alternatively, I may be calling to the function incorrectly. This is the first class that I have written, so it may …

Member Avatar for skips
0
159
Member Avatar for ishaan3731

pls help me. i have got a school project to make a program that generates a shopping bill and shows the present stock at end of bill. also 1.the user inputs only the quantity and product code(thats where i am facing problem to feed the product codes in my program …

Member Avatar for WaltP
0
147
Member Avatar for Tinee

Hi, I'm trying to find the resultant of a given data using fstream. I made the program and everything and I believe its all correct however, when I try to run it, I'm getting a linker error saying "undefined reference to Resultant(const double...)" which I can't figure out how to …

Member Avatar for Tinee
0
102
Member Avatar for fibbo

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 …

Member Avatar for fibbo
0
7K
Member Avatar for fibbo

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: …

Member Avatar for mike_2000_17
0
2K
Member Avatar for Lokril

Having trouble with this assignment can anybody give my a hint as to where I should start? Write a program that prints letter grades based on a score (between 0 and 10) entered from the keyboard. The simplified scoring system will be: 9-10 A 8 B 7 B- 6 C+ …

Member Avatar for WaltP
0
2K