• Register
0 votes
63 views

Problem:

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

5 3 2
7,520 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution:

vector <int> scores(25);

6 4 3
14,580 points
"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

0 votes
1 answer 7 views
7 views
Problem: Declare a vector named scores of twenty-five elements of type int?
asked Apr 6 niyatiry 3.9k points
0 votes
1 answer 6 views
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.
asked Apr 6 munim01 21k points
0 votes
1 answer 82 views
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?
asked Feb 13, 2020 maddi86 5.4k points
0 votes
2 answers 169 views
169 views
Problem: Declare and instantiate a 3x3 two-dimensional array of integers named tictactoe?
asked Apr 18, 2020 ArifulIslam 7.5k points
0 votes
0 answers 7 views
7 views
Problem: How does eclipse must declare a named package?
asked Apr 20 niyatiry 3.9k points
1 vote
2 answers 46 views
46 views
Problem: Declare a variable named myMenu suitable for holding references to Menu objects?
asked Mar 23, 2020 ArifulIslam 7.5k points
0 votes
1 answer 46 views
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?
asked Nov 8, 2020 sasha 16.2k points
0 votes
1 answer 15 views
15 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?
asked Aug 15, 2020 game 4.6k points
0 votes
0 answers 53 views
53 views
Problem: Which one of the following would contain the translated Java byte code for a program named Demo? A) Demo.java B) Demo.code C) Demo.class D) Demo.byte
asked Jul 23, 2020 conner 1.5k points
0 votes
1 answer 45 views
45 views
Problem: Declare a reference variable of type File named myFile?
asked Apr 6, 2020 ArifulIslam 7.5k points