#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
int main()
{
std::vector<std::string> str_array = { "John", "Bill", "Alan", "Craig"};
std::sort (arr.begin(), arr.end());
}
#include<iostream>
#include<string>
#include<vector>
int main () {
std::cout << "Enter a name: ";
std:string input {};
std::cin >> input;
std::vector<char> v {};
for (size_t i=0; i<input.size(); ++i) v.push_back (input.at(i));
std::sort (v.begin(), v.end());
std::cout << "Sorted name: "; for (size_t i=0; i<input.size(); ++i) std::cout << v.at(i);
std::cout << std::endl;
}
Reference:cprogramming-bd.com/c_page1.aspx# array programming
To write a C++ program to display the student details using class and array of object.
How to write a program for mouse in microprocessor?
int findMax(int *array) { int max = array[0]; for(int i = 1; i < array.length(); i++) { if(array[i] > max) max = array[i] } return max; }
maxValue = function (array) {mxm = array[0];for (i=0; i<array.length; i++) {if (array[i]>mxm) {mxm = array[i];}}return mxm;}; i don't know
Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo,
Reference:cprogramming-bd.com/c_page1.aspx# array programming
How to write a program for mouse in microprocessor?
To write a C++ program to display the student details using class and array of object.
Java has a very efficient built in implementation of quick sort. You can use it on any array of primitives or Comparable Objects by invoking Arrays.sort(<array>) See related link.
write an assembly language program to find sum of N numbers
array type
int findMax(int *array) { int max = array[0]; for(int i = 1; i < array.length(); i++) { if(array[i] > max) max = array[i] } return max; }
maxValue = function (array) {mxm = array[0];for (i=0; i<array.length; i++) {if (array[i]>mxm) {mxm = array[i];}}return mxm;}; i don't know
Tabulated form of objects
public static int[] reverseArray(int[] array) { int i = 0, j = array.length - 1; for (i = 0; i < array.length / 2; i++, j--) { int temp = array[i]; array[i] = array[j]; array[j] = temp; } return array; }
You need to specify the language in which you want the subtraction of the two matrix in two dimension array written.