In this problem, I have to create a dynamic array and get data from the user, If the user keep entering value, a new array should be created and the d ...
In this problem, I have to create a dynamic array and get data from the user, If the user keep entering value, a new array should be created and the d ...
I'm having the below issues whenever I run this program in Visual Studio. This program currently outputs: Sorted array A: 11 33 55 77 99 Sorted ar ...
I have been trying to create my own Array class, which is dynamic, but I can't figure out the problem in resizing the size of it. I created separate f ...
To add in numbers in an array I can do: To add in text in an array I can do: How would I enter in a date? For example, normally I can type in so ...
I have two dynamic arrays, A1# and B1#. I want to combine them into a dynamic array, C1#, like so: Column A Column B Colu ...
I've read some posts saying that you can only reDim the last dimention of a multi-dimensional array in VBA. Is there any work around for such a case? ...
I'm new to c so sorry if the question might seem basic. I'm trying to read a string with unknown size from the user and store it in a dynamic array. T ...
i have this reSize function in my Array header and my main code: the problem is after resizing, my values that were stored in "data" variable ar ...
My input consists of a sequence of integers, that need to be saved in a dynamic array. The number of integers is the first integer of the sequence. Fo ...
I've solved a problem to get target number adding two numbers from array. Pretty basic, here's the scenario: Input: Output: Indexes retrieved C ...
I am beginner in C programming. I have been doing these for hours, but I couldn't produce the needed output. Basically, the input consist of tw ...
I have created in class a generic class that works like ArrayList. The class included an array that gets bigger and smaller by demand by functions. No ...
Consider 2 dates, format will be MM/DD/YYYY 1st date = today 2nd date = 45 days from today Note: Here, the 1st date and 2nd date are variable. i.e. ...
This is a sample code of a bigger program. The modifyArray function increases the array size by one then adds a new string element which here is "eeee ...
I'm new to c++ and I have to work with dynamic arrays:| I need to define a few dynamic arrays inside my header file and access them from main. The pro ...
I have the following code that doesn't compile, and I can't find an explanation as to why. It says the Type 'TIndexArray' is not a valid constr ...
My task is to create a function that adds a row to a 2d Array everytime that a user asks to. For simplicity, I have a default row value to start with ...
I'm trying to write a function that calculates the force vectors acting on a body from N bodies using F = GMm/r^2 (given the masses and initial positi ...
I'm trying to write a function that stores the position vectors (pos_x, pos_y, pos_z) of N bodies into a dynamic array. However, an access violation e ...
i am trying do dynamicly allocate a matrix which is inside a struct, also if anyone can also tell me how to send it to the function so i don't have to ...