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
0 Endorsements
~814 People Reached
Favorite Forums
Favorite Tags
c x 10
c++ x 5
Member Avatar for puppy

I have an assignment that asks me to explain the "order of complexity" of an algorithm. Can anyone explain what that question means? Does that mean what happens first and so on? Thanks.

Member Avatar for Micko
1
96
Member Avatar for puppy

Hi, Can someone tell me how to fix the function below. I am getting this compile error regarding the last line: cannot convert `const double' to `const double*' in return What should I return according to the function parameters I've written? Thanks. [CODE] const double * maximum(const double a[], int …

Member Avatar for dubeyprateek
0
105
Member Avatar for puppy

Hi, If a function takes a pointer as a parameter as in void set_owner(Person* p) how would I write this code? If it wasn't a pointer, I know I'd just write something like void set_owner(string p) { owner = p; } Thanks in advance for your help.

Member Avatar for puppy
0
193
Member Avatar for puppy

Hi. If I want to generate random numbers between -1 and 1, do I need to write a function to do that or is their something in the stdlib that can do it? Thanks.

Member Avatar for puppy
0
174
Member Avatar for puppy

Hi, I'm trying to write a class that uses a vector, but I can't get the right syntax in the Staff constructor. Can anyone help? public: Staff(); Staff (???????????); private: vector<Employee> members;

Member Avatar for Bench
0
148
Member Avatar for puppy

Hi, I'm trying to compare elements in two different vectors. I wrote this: if (a[i] = b[j]) same = true; and the compiler said this about the first line: assignment of read-only location What does "assignment of read-only location" mean? Thanks.

Member Avatar for puppy
0
98