224 questions
How do I make a two-dimensional array with new?When it's a one-dimensional arrangement,int* ary = new int[Size]I wrote it like thisin a two-dimensional arrayint** arr = new int[sizeX][sizeY];I can't c...
You need to have thousands of strings in memory that are accessible sequentially. Should I save the string to Array? Should I save it to the list? Unlike List, Array stores all data continuously in a ...
vector that stores doubleI want to convert double to an array that stores it.What function should I use?
ArrayList<Integer> arr = new ArrayList(10); int size = arr.size(); In order to obtain the length of the ArrayList in this way, the size() method is used.And String[] str = new String[10];int siz...
char[] a = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'};There's a string like this String b = new String(a);Is there a better way than this?
Without specifying a size for a two-dimensional arrayMatrix = [][]I want to write it like this, but an error appears Matrix = [5][5]I keep getting errors even if I choose the size How do you use two-d...
I want to initialize the same value from beginning to end when declaring an array.Now int myarr[30];for(i=0; i<30; i++) myarr[i] = 3;I'm doing a for statement like this, but not memset()myarr[all] ...
It's a code that my friend sent me, saying she found a weird function1[a] It compiles well and executes well.What's going on here?int main(){ int* a = (int*)malloc(sizeof(int)*2); a[0] = 1; a[1] = 2; ...
int a[5][5];int* a[5];int** a;When you get an array as a factor, you have to choose one of those three and unify itIs there any way I can turn it over without using a pointer?
int array[100] = {0};I heard that the entire silver element is set to zero, so I thought I just need to set oneint array[100] = {-1};So the first element is minus 1, and the rest is zero.I don't want ...
« | - 6 - | » |
548 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
547 Who developed the "avformat-59.dll" that comes with FFmpeg?
709 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
537 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.