We are going to help if you have already tried something and got stuck. But we will not write the code for you.

But there is a simple approach:
Write a function that calculates the max. for a passed range (start pointer and number of items) and stores the maximum value in another array. Create a number of threads that calls that function passing sub ranges of your array. When all threads has finished call the function again passing the array containing the results.

An alternative solution would not use an additional array but a shared variable to hold the maxmimum value found so far. But then the threads must use locking which is probably not very efficient.

I have OCX created in VC++ that has many functions. OCX has got some GUI.
I want to use those functions in C# web application without loading OCX. i.e. I want to extract only functions from OCX. Can anyone please suggest how this can be done?

i have been trying to make create this program, it's kinda hard for me to get help in real life because I'm the only computer science student in my second semester.
this is c++. I have to use arrays
I have to make a program that shows grades, based on marks. The number of students depends on the user input.
grade A >=90
grade B >=80
grade C >=70
grade D >=60
grade F <=59
based on the homework my lecturer has given me, the output has to be like this
Enter the number of students: 4
Enter 4 marks: 40 55 70 58
student 0 mark is 40 and grade is C
student 1 mark is 55 and grade is B
student 2 mark is 70 and grade is A
student 3 mark is 58 and grade is B
This is my code:
#include<iostream>
using namespace std;
int main(){
int students;
int mark;
int x;
char grade[6]={'A','B','C','D','F','\0'};
cout<<"enter the number of students"<<endl;
cin>>students;
cout<<"enter "<<students<<" marks "<<endl;
for(x=0;x<students;x++){
cin>>mark;
if(mark>=90)
grade[0];
else if(mark>=80)
grade[1];
else if(mark>=70)
grade[2];
else if(mark>=60)
grade[3];
else
grade[4];
cout<<"student "<<students<<" mark is "<<mark<<" and grade is "<<grade[x];
}
}
I don't know what to do anymore. Help me

The example output shows also that you need two loops:
One to read the user input and store it within the array and another one to print the items.

It is up to you what to store in the array: The mark or the grade. Depending on that the conversion has to be done in the first or second loop. But I would store the mark because that is the data entered by the user and is therefore not lost and can be re-used (e.g. when the next task is extending your program).

Because this is homework, you will not get a final solution here. But you should be able to proceed with my above tips.

Use the debugger to check what part of your code match your expectations and which part don't, it will help you to marrow the search of defects.

When you don't understand what your code is doing or why it does what it does, the answer is debugger.
Use the debugger to see what your code is doing. Just set a breakpoint and see your code performing, the debugger allow you to execute lines 1 by 1 and to inspect variables as it execute, it is an incredible learning tool.

The debugger is here to show you what your code is doing and your task is to compare with what it should do.
There is no magic in the debugger, it don't find bugs, it just help you to. When the code don't do what is expected, you are close to a bug.