Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 17975

C++ Array that takes user input for the size and the elements [duplicate]

$
0
0

The prompt is that simple for now.

#include <iostream> using namespace std;const int i = 10;const int j = 10;int arr[i][j];int main(){    cout << "What would you want the size to be? ";    cin >> j;    for (int i; i < j; i++)    {        cout <<     }    return 0;}

I try to make an array that gets each of those values and makes it functional, but it doesn't work.


Viewing all articles
Browse latest Browse all 17975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>