- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
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. |
|
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 … |
|
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. |
|
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. |
|
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; |
|
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. |