# Declare a vector named scores of twenty-five elements of type int?

63 views

## Problem:

Declare a vector named scores of twenty-five elements of type int?

## Solution:

vector <int> scores(25);

"A vector, in Programming is a sort of exhibit that is one dimensional. Vectors are a consistent component in programming dialects that are utilized for putting away information. Name of vectors scores of 25 components of type int: vector &lt;int&gt; scores(25);
Integer makes a whole integer vector of the predefined length. Every component of the vector is equivalent to 0. integer vectors exist with the goal that information can be passed to C or Fortran code which anticipates them. as. whole number endeavors to constrain its contention to be of whole number sort.
"

## Related questions

7 views
Problem: Declare a vector named scores of twenty-five elements of type int?
6 views
Problem: Can anyone tell me how to &ldquo;declare a vector named scores of twenty-five elements of type int.&rdquo; Any input will be much appreciated.
82 views
Problems: I am new in programming and my logic is not good, can anyone give the right solution? How can we declare an array named scores of twenty-five elements of type int?
169 views
Problem: Declare and instantiate a 3x3 two-dimensional array of integers named tictactoe?
7 views
Problem: How does eclipse must declare a named package?
1 vote
46 views
Problem: Declare a variable named myMenu suitable for holding references to Menu objects?
46 views
I need to make a [console] program that gets the full names of five people, as well as their three grades to calculate their average. Instead of declaring variable by variable string nom1, nom2 //... int cal1, cal2 //... I want to make a for loop (or ... at the end because "the identifiers are not defined". Is it possible to achieve this, or is it something that not even magic can achieve?