Hi, I am trying to find 2nd largest number that given input of numbers. The question is actually consider that you enter 5 number : 60, 70, 30, 40, 55 randomly -the order does not matter- my function should find 2nd largest number and return it. I am trying but I did not manage to finish my code and actually I can not a way to find true algorithm for this question. The rule is -I know already how I can find max or min number in array, it is simple- [B]you do not use any type of array / … +0 Hello, I have a problem about counting consequtive characters, here my code char query[] = "tttthe oneZZZZZ trully loveeee"; void cntfreq(char A[]) { int j; int k=0; j = 1; while (A[j] != '\0') { if (A[j-1] == A[j]) { ++k; cout< [CODE] class P { public: P(); ~P(); void addItem(const int newItem); void deleteItem(const int Item); void showAll(); /** need to proper getter funct. of tail */ private: struct Node { int item; Node *next; Node *precede; }; int size; Node *tail; }; [/CODE] Now I am asking that how I can write getter function of tail ? -class P will be used by another class. Thanks for replying. +0 I have question about if my input matrix was | 1 2 3 4 | | 2 3 4 5 | | 3 4 5 6 | how I would get an output matrix | 0 0 0 0 0 0 | | 0 1 2 3 4 0 | | 0 2 3 4 5 0 | | 0 3 4 5 6 0 | | 0 0 0 0 0 0 | WITHOUT using for loop || is it impossible in GNU octave? second question is, also related the 1. one I have a matrix i.e | 1 … +0 Hi, my question is simply but a little bit tricky; let assume that there are two array array1 = (2, 5, 6, 1, 7) and array2 (3, 2, 6, 8) and after function setUnion new array or use pointer return (2, 5, 6, 1, 7, 3, 8). Below my code is shown my problem is I found (2, 5, 6, 1, 7, [B]8[/B], [B]8[/B]) How I fix this problem ? Here my code include main function:: [CODE] #include using namespace std; void setUnion (const int array1[], const int size1, const int array2[], const int size2, int &newSize, int *&unionArray) … +0 Hello everyone, I am trying to manipulate "DYNAMIC ARRAY" Structures however I've been faced with problems wanting adding new value. Here my code:: -I use CodeBlocks and gnu gcc compiler ^ also I checked it on linux machine. [CODE] #include using namespace std; #include "Deneme.h" Deneme::Deneme() { countReg = 0; pArray = new int[(countReg+1)]; for (int i = 0; i < countReg+1; i++) { pArray[i] = NULL; cout<

The End.