Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~8K People Reached
Favorite Tags
Member Avatar for pandaEater

Big-O of 2^(100n) I'm having some trouble figuring this one out. Basically I'm wondering if the constant multiple c is a multiple of n or a multiple of the whole function? For example, if it were O(2^n) would you put the constant multiple next to n so it could be: …

Member Avatar for Rashakil Fol
0
196
Member Avatar for pandaEater

I'm new to AJAX, PHP, and Javascript and I'm trying to learn more about them by setting up a user login for a website. I've gotten it working but there are a few problems I'm having trouble solving. Right now the login works, but I'd like to check if the …

0
84
Member Avatar for pandaEater

I'm having some difficulty figuring out how to delete the objects I new'ed during run-time. I'm using a heterogeneous collection. Simplified Example: [CODE] const int SIZE = 4; myBase* objs[SIZE]; objs[0] = new myChild1(); objs[1] = new myChild2(); objs[2] = new myChild3(); objs[3] = new myBase(); //I tried: for(int i …

Member Avatar for pandaEater
0
105
Member Avatar for pandaEater

How do you pass an unknown object into a function and save it? I'm trying to have a set and get function in a class I'm creating that can hold and return any object. Here are my attempts so far: [CODE] void* holder; void setHolder(void* object) { holder = object; …

Member Avatar for pandaEater
0
4K
Member Avatar for pandaEater

Is there a way to disallow access to a Parent function in the Child class? For example, the Parent class has a function, myFunc(). In main() after I instantiate a new Child object I don't want myFunc() to even be an option. So child.myFunc() would cause a compilation error.

Member Avatar for Momerath
0
132
Member Avatar for pandaEater

I'm new to C# and I'm having some trouble getting input from a file and using it properly. I need to get input from a file and insert the values given into a function but the problem is I need to give the functions parameters that aren't strings. TimePiece is …

Member Avatar for kvprajapati
0
136
Member Avatar for pandaEater

I'm making a heap class and I want one of my functions, [I]const Employee& Heap::top() const[/I], to return a reference to the top element or throw an error if the heap is empty. I've never used try, catch, or throw statements before so I'm having trouble getting it to work …

Member Avatar for pandaEater
0
134
Member Avatar for pandaEater

I'm making a hash table using a linked lists to handle collision. So I'm creating an array of "head" pointers to access each linked list. I can't figure out why I'm getting the error below: error C2440: 'initializing' : cannot convert from 'LinkHash::ListNode' to 'LinkHash::ListNode *' I commented **not working** …

Member Avatar for pandaEater
0
173
Member Avatar for pandaEater

I'm trying to make a binary search tree without using recursion anywhere. I'm having trouble with the destructor though. I've been thinking about using a stack to help me keep track of the nodes but I'm not sure exactly how I would implement that. Any ideas? Relevant code: [CODE] class …

Member Avatar for pandaEater
0
2K
Member Avatar for pandaEater

I've been working on getting the Big-Oh notation for this code segment a couple days now and I can't figure it out. I've most likely come across the right answer but I can't convince myself it's right. What's the Big-Oh notation for the following code and how do you arrive …

Member Avatar for gashtio
0
378