I believe that
istream inputStream; int myArray[3][5]; for(int i = 0; i < 3; i++) for(int j = 0; j < 5; j++) istream >> myArray[i][j];
should do what you need.
Related Posts:
- Reading data from file into an array
- Using cin to input a single letter into a char
- How to dynamically allocate arrays in C++
- How to dynamically allocate arrays in C++
- How do I find the length of an array?
- C++ string to double conversion
- Initializing an array of objects
- Passing an array by reference
- Return array in a function
- Passing an array by reference
- Why use conio.h?
- How to convert a char array to a string?
- What is the array form of ‘delete’?
- Use new operator to initialise an array
- How do I declare a 2d array in C++ using new?
- C++ string to double conversion
- lvalue required as left operand of assignment – Array
- Fastest way to check if a file exist using standard C++/C++11,14,17/C?
- Is there a function to copy an array in C/C++?
- Cleanest way to copy a constant size array in c++11
- Reverse Contents in Array
- C++ error: “Array must be initialized with a brace enclosed initializer”
- Why would we call cin.clear() and cin.ignore() after reading input?
- warning: ISO C++ forbids variable length array
- c++ array – expression must have a constant value
- Passing a 2D array to a C++ function
- Static array vs. dynamic array in C++
- How to create a dynamically-allocated array of const objects, but have values assigned to them?
- Fastest way to check if a file exist using standard C++/C++11,14,17/C?
- Fill array with random numbers within a specified range (C++)
- Remove an array element and shift the remaining ones
- How to make an array with a dynamic size? General usage of dynamic arrays (maybe pointers too)?
- How to add element to C++ array?
- How to convert vector to array
- How to find the size of an int[]?
- C++: Expression must have a constant value when declaring array inside function
- splitting a string into an array in C++ without using vector
- What’s the syntax for declaring an array of function pointers without using a separate typedef?
- Printing an array in C++?
- Delete 2D array C++
- How do you initialise a dynamic array in C++?
- C++ array assign error: invalid array assignment
- How to add element to C++ array?
- How can I get the list of files in a directory using C or C++?
- How can I get the list of files in a directory using C or C++?
- extended initializer lists only available with
- Creation of Dynamic Array of Dynamic Objects in C++
- how to initialize an empty integer array in c++
- c++ Read from .csv file
- Check if C++ Array is Null
- Correct way to work with vector of arrays
- Resizing dynamic array in c++
- Reading string by char till end of line C/C++
- C++ Initializing a Global Array
- Comparing the values of char arrays in C++
- Dynamically allocated string array, then change it’s value?
- How can I assign an array from an initializer list?
- How do I return a char array from a function?
- creating an array of structs in c++
- How to read lines of text from file and put them into an array
- Reading and writing binary file
- Why can’t we pass arrays to function by value?
- Double pointer array in c++
- C++ pass an array by reference
- How to memset char array with null terminating character?
- creating dynamic array of string c++
- creating an array of structs in c++
- C++ Array of pointers: delete or delete []?
- too many initializers for ‘int [0]’ c++
- C++ 2d char array to string
- Using cin for char array
- C++ correct way to return pointer to array from function
- Warning: comparison of distinct pointer types
- how to find 2d array size in c++
- Getting error “array bound is not an integer constant before ‘]’ token”
- Multiple inputs on one line
- Different ways to deallocate an array – c++
- Is C++ Array passed by reference or by pointer?
- istream and ostream problem – C++
- Proper way to pass dynamic arrays to other functions
- How to Read from a Text File, Character by Character in C++
- Array of Linked Lists C++
- C++ float array initialization
- Why is “using namespace std;” considered bad practice?
- What is a lambda expression in C++11?
- How to convert string to char array in C++?
- Is there a C++ decompiler?
- What is a dangling pointer?
- undefined reference to WinMain@16 (codeblocks)
- Why am I getting this redefinition of class error?
- Why doesn’t std::vector::push_front() exist?
- How to get current time in milliseconds?
- C++ – Nested include – Avoiding ‘include nested too deeply error’
- error LNK2019: unresolved external symbol “” referenced in function
- Undefined reference to a static member
- How to sort with a lambda?
- Unrecognizable template declaration/definition
- MSVCP120d.dll missing
- Struct with template variables in C++
- error: no member function declared in class