How do I ask for input in a loop multiple times and then add them to an array at runtime? (C++)

后端 未结 0 1010
无人及你
无人及你 2020-12-09 23:47
new int arr[];
for(int x=0; x++){ //starts loop
   cin >> p;      //gets input
   //(add current input to array)
}

The line with adding the cu

相关标签:
回答
  • 消灭零回复
提交回复
热议问题