Click here to Skip to main content
15,920,513 members
Everything / Multi-dimensional

Multi-dimensional

multi-dimensional

Great Reads

by Fedor Dzjuba
Sometimes, we need to present MDX result on the web or a client application that has no native provider to Microsoft Analysis Service. Solution is to use Adodm.Client CellSet, serialize it into sensible JSON and spit it out to the client to render.

Latest Articles

by Fedor Dzjuba
Sometimes, we need to present MDX result on the web or a client application that has no native provider to Microsoft Analysis Service. Solution is to use Adodm.Client CellSet, serialize it into sensible JSON and spit it out to the client to render.

All Articles

Sort by Score

Multi-dimensional 

27 Feb 2015 by Sergey Alexandrovich Kryukov
It depends on what do you mean by "edit". You can edit array element immediately accessing it by index, but you will need some collection to add/insert/remove element.Please read this nice article:...
1 Dec 2019 by Fedor Dzjuba
Sometimes, we need to present MDX result on the web or a client application that has no native provider to Microsoft Analysis Service. Solution is to use Adodm.Client CellSet, serialize it into sensible JSON and spit it out to the client to render.
13 Mar 2021 by Patrice T
I fear this snipset can change the diagonal depending on input. private static void ValidateEvilStart(int matrixRows, int matrixCols, long evilRow, long evilCol, out long evilStartRow, out long evilStartCol) { if...
30 Oct 2012 by Sergey Alexandrovich Kryukov
CPallini is absolutely right; see also my comment — in the discussion in comments to the question.So far, your signature or parameter type make no much sense. You just need to learn arrays first, and then decide what you want to do with them and why. Please...
4 Nov 2012 by CPallini
(If I got you) You need something like this:public static void Main() { String inputname, inputphoneno, userselection; String[,] addrbook = new string[20, 2]; int n = 0; do { Console.WriteLine("Please select and option" + ...
11 Feb 2015 by Hiren Lad
Hi,Use below Code.Private Function ValidateControls() As ArrayList Dim arrControls As New ArrayList 'Looping throgh the Controls For Each Cntrl As Control In Me.Controls 'Here We get all type of controls So we need to isolate ...
4 May 2016 by Patrice T
I have the feeling that this{aaa,aab,aac,aad,aae}is supposed to be a list of strings.In this case the correct syntax is{'aaa','aab','aac','aad','aae'}You simply forgot to say they are labels.I know it's boring.[UpDate]You question containQuote:The loop is supposed to assign...
15 Jan 2017 by KarstenK
It is pretty obvious, when you would understand the mechanismins in array access. Your abc is an 3-dimensional array of integers.valid code is:int value = abc[i][j][k] ;//get value with array accessint *pointer = &(abc[i][j][k]);//get pointerIt is easier to work with the array access...
9 Jun 2020 by Richard MacCutchan
print(accounts.read()) # this reads all the lines from your file, but you don't save the result print(Username, "1") for row in accounts: # there is nothing to read now, since it has all been read above Remove the line print(accounts.read())...
13 Mar 2021 by OriginalGriff
Compiling does not mean your code is right! :laugh: Think of the development process as writing an email: compiling successfully means that you wrote the email in the right language - English, rather than German for example - not that the email...
30 Oct 2012 by Eugen Podsypalnikov
// Is there any way to pass 2D dynamic array (pointer) to a function that has 3D dynamic array as parameter?Just apply an ampersand at the pointer of the "previous dimesions" :) :void func(double*** s, int iSlotCount, int iRowCount, int iColCount){ ...
7 Nov 2012 by Amir No-Family
Could you please explain a bit about that part which prints the code and removing the code?I am struggling on them.
9 Nov 2012 by Amir No-Family
no worries, I sorted the matter out.
13 Jan 2014 by Member 10368795
I am trying to create a matrix table. The values to be plugged into the matrix will be user input from an html table (basically a unique pairing table which pairs two elements at a time and for each pair a user can select which he prefers and by how much it is prefered on a scale of 1-9 using...
10 Feb 2015 by Member 10059109
Hi i have an application with lot of textboxes to be filled with data from user.My goal for now is to make a dynamic array and with one function to check the inputed data.If the inputed data wont pass some logical "If" (like in date text box the inputed year will be 1867) will be stored in my...
10 Feb 2015 by E.F. Nijboer
Use List instead of Array. Much simpler and efficient.https://msdn.microsoft.com/en-us/library/6sh2ey19%28v=vs.110%29.aspx[^]Good luck!
17 Feb 2015 by Reuben Cabrera
hello, We were given an exercise about sudoko in C++.task: to determine if the set of integers is a valid soduko solution.the 81 numbers are pre-defined in this code. so far i have this.Problem: how do I pass a multi-dimensional array.I kinda need to print the sudoku table...
1 Jul 2015 by Mark Miller
Excel.Range range = excelWorksheet.get_Range("A2", "B300"); // Establish an Excel Rangeint j = range.Columns.Count; // This line is meaningless, because you set thej = 3; // number of columns to 3 here.int i = range.Rows.Count; // This is the number of rows in the...
22 Aug 2015 by VisualLive
Hi Alli am facing in an error when i want call a list with a soap request in C# . I have the code auto-generated from a service with Visual Studio as follows :public partial class list_response : response { private list_cell[][] rowField; /// ...
28 Nov 2015 by Sergey Alexandrovich Kryukov
First of all, I don't see why would you need to add any elements to your array. This is asked in the title of the question and not confirmed by its body. It's unclear why you cannot just create all elements of fixed sizes.But if the real question is the one of the title, let's assume you...
1 Dec 2016 by Member 12880581
I am trying to construct a two-dimensional array double X[][] from two one-dimensional arrays X1[] and X2[]. Input is as follows: X1 X2 0 1 0 2 1 2 1 5 2 3 2 4 3 4...
30 Nov 2016 by ridoy
Its very hard to read such a non-formatted code!Use a List/ArrayList to put your 2-dimensional array items and then feed an array from it.Follow:java - Convert a 2D array into a 1D array - Stack Overflow[^]How can you convert a 2 dimensional array into a 1 dimensional array in Java -...
1 Dec 2016 by Peter Leow
Check out the following code snippet and adapt to your requirement:public class Main { public static void main(String[] args) { int[] x1 = {1,2,3}; int[] x2 = {4,5,6}; int[][] x = new int[3][2]; for (int i=0;i
5 Apr 2017 by Er Nilay Parekh
I need solution for How to compare two key and value and find max key value from array. explain:- I have below array in this if **url** and **con code** both are same than higher **amount** array should display and unmatch data should be display please provide sollution for same . $array...
5 Apr 2017 by Er Nilay Parekh
$output = array_reduce($array, function ($carry, $itemA) { return array_filter($carry, function ($itemB) use($itemA) { return ( $itemB['url'] != $itemA['url'] || $itemB['con'] != $itemA['con'] || $itemB['amount'] >= $itemA['amount'] ); ...
10 Sep 2017 by Member 12989102
$txt = ?~', '#' ); preg_match_all( '#([0-9]{4,9}\s+[A-Z]{1}\s+([' . $specialChars ....
10 Sep 2017 by RickZeeland
I'm not an PHP programmer, but maybe these links will get you started: PHP Connect to MySQL[^] PHP Insert Multiple Records Into MySQL[^] PHP and MySQL[^] Here is a foreach example I found on PHP: foreach - Manual[^]
11 Mar 2018 by Member 13720669
i have tried some several way of updating specific array at specific depth in multidimensional array. Although i am able to update but it is not modifying the original array. Even though i tried the referencing technique of php but it seems odds are not in my favour. What I have tried: //...
11 Mar 2018 by Peter_in_2780
You need to pass the array by reference. This is done in the definition of findandReplace. You need function findandReplace(&$array) { ... See PHP: Passing by Reference - Manual[^]
24 Apr 2018 by Member 13792515
Good evening my helpers! I have a multidimensional array $data like this: Array ( [0] => thunderteszt [1] => orevikod [2] => 5400 [3] => 6 ) Array ( [0] => bakterhaz1982 [1] => $s$w$0ffТΉЏИÐΞЯ [2] => 5540 [3] => 3 ) Array ( [0] => bakterhaz1982 [1] => $s$w$0ffТΉЏИÐΞЯ [2] => 5570 [3] => 2 ) Array...
24 Apr 2018 by Maciej Los
Check this: php - Convert multidimensional array into single array[^]
9 Jun 2020 by DarkJoker666
I am doing a project for a university course to create a banking app using python. This requires a login and the data to be stored in a CSV. The issue I have is to iterate through the 2D array that has data from the csv. Through my debugging the...
12 Aug 2020 by Member 14912096
I have an array of word. What i want accomplish is if there is 'SUCCESS' and i want change to 'XXXXXXX'. As you can see on the loop, i manage to get the length of word it it match 'SUCCESS'. But i can't reverse the loop backward to replace the...
12 Aug 2020 by George Swan
My suggestion would be to break your code down into a series of short methods. Assuming that you wish to find SUCCESS in the rows, columns and the left and right diagonals of your table either as SUCCESS or as SSECCUS, try something like this. ...
30 Oct 2013 by OriginalGriff
Yes, you can - but it's nasty to look at...Dim numbers As Integer(,) = New Integer(,) {{11, 21, 31}, {12, 22, 32}, {13, 23, 33}, {14, 24, 34}, {15, 25, 35}, {16, 26, 36}, _ {17, 27, 37}, {18, 28, 38}}For Each i As Integer In numbers Console.WriteLine(i)NextAnd it's probably better to...
10 Sep 2017 by Patrice T
Not a solution to your question, but another problem you have. Never build an SQL query by concatenating strings. Sooner or later, you will do it with user inputs, and this opens door to a vulnerability named "SQL injection", it is dangerous for your database and error prone. A single quote in a...
30 Oct 2013 by Member 8525993
If I want to create a 3x8 array should I do it using array list or method that is below? I guess my question is which one is easier to handle? Also is it possible to iterate thought a structure? A structure that has 24 (3X8) items in it? Please give example Dim numbers =...
15 Jan 2017 by Member 12949087
The following program converts 3D array into 1D array with help of pointers . Some conversion error is coming . The line in which error is coming contains assignment operator with pointer to pointer to int type on both sides .#includeusing namespace std ;int main(){//...
12 Aug 2020 by Patrice T
Quote: How can i reverse the loop and replace all the desire char after i found the length of the word? Would be a nice idea to explain what is supposed to do the code with more details. A sample input/output would be nice too. Quote: Already...
31 Oct 2012 by mehdi_k
Hi,Is there any way to pass 2D dynamic array (pointer) to a function that has 3D dynamic array as parameter?void func(double*** s){ //do something with 3D dynamic array}void main(){ double** s=new double*[10]; for(int i=0;i
30 Jun 2015 by chetan1193
private void btnTest_Click(object sender, EventArgs e) { try { Excel.Application excelApp = new Excel.Application(); // excelApp.Visible = true; string workbookPath = "D:\\Input.xlsx"; ...
4 May 2016 by Member 12503492
Label[][][] labels2D = { { {aaa,aab,aac,aad,aae},{aba,abb,abc,abd,abe},{aca,acb,acc,acd,ace},{ada,adb,adc,add,ade},{aea,aeb,aec,aed,aee} }, { ...
4 Nov 2012 by PaulN18
I need to create a console application that stores a users name and phone number in a multidimensional array, at the moment I do not know how to get the program to read the information that the users has entered and store it in an array.What I have so far using System;public class...
17 Feb 2015 by Reuben Cabrera
#include#include
27 Feb 2015 by Michael Wiggins
I have managed to read the contents of the table into an array, but I now have the oh-so joyous task of deleting rows and updating individual elements.I understand that, in Java, Arrays are set to a specific dimension (this one is populated from a ResultSet in a while-nested-for loop),...
28 Nov 2015 by Member 12173456
So for each row but the last I want to have the last element be the sum of earlier values in the row and for each column i want to have the bottom most element be the sum of those values above it. this is my arrayconst int ROWS = 5;const int COLS = 6;int ourNumbers[ROWS][COLS] = { {...
7 Sep 2016 by Member 12724857
I have to extract information from multi-dimensional string array javascript into my apex salesforce codeWhat I have tried:I have to extract information from multi-dimensional string array javascript into my apex salesforce codeI have to extract information from multi-dimensional string...
10 Sep 2017 by Member 12989102
Don't worry this service is for an internal web app, it's not public! Why there aren't any solution?
11 Mar 2018 by Member 13720669
YAY! finally after 1 day fight with references finally it working. I found the solution to this trickish problem. Although i was passing array in my findandReplace function as reference but i was doing recursion as well. It was losing reference(i believe) while finding particular array in...
15 Mar 2021 by Elena Popova
Hello, there, I spent above seven hours trying to figure out this problem, but our test system gave me only 10/100 points. Can somebody please help me to find my mistake? With the given input I got a successful output, although my solution is...