1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
devlian [24]
3 years ago
8

The statement ____ declares intList to be a vector and the component type to be int

Computers and Technology
1 answer:
torisob [31]3 years ago
5 0

Answer: vector<int> intList

Explanation:

Using the above declaration we can declare intList to be a vector and the component type to be int.

example:

int main()

{

vector<int> intList

   intList.push_back(1);                          

   intList.push_back(2);                          

   intList.push_back(3);                        

   printList(intList);  // printing the list

}

You might be interested in
Which of the following components was a significant development featured in the Macintosh LISA computer?
Free_Kalibri [48]
I believe that the Apple Lisa computer was the first production microcomputer to have a GUI.
3 0
3 years ago
Write a loop that reads positive integers from console input, printing out those values that are even, separating them with spac
zvonat [6]

Hello, since you did not specify a programming language, I wrote this algorithm in C++. Good luck!

<h2>Code:</h2>

#include <iostream>

#include <vector>

std::vector<int> v;

int main(int argc, char* argv[]) {

   while(1) {

   int temp;

   std::cout << "\nEnter a number: ";std::cin>>temp;

   

   if(temp<0) {

       std::cout << "\nEven number(s) is/are:\n---------------------\n";

       for(int i=0;i<v.size();i++) {

           if(v.at(i)%2==0) std::cout << v[i] << " ";

           else continue;

       }

       std::cout << std::endl;

       break;

   }else {

       v.push_back(temp);

   }

}

   return 0;

}

4 0
2 years ago
Write function modifyString(origString, charsToReplace, count) that takes as input a string origString, a string charsToReplace,
laila [671]

Answer:

The code of the above program is provided below. using Python

Explanation:

<u>Code in Python 3:- </u>

def modifyString(origString,charsToReplace,count):

# Make s1 as original string

s1=origString

# Make s2 as charsToReplace string in lowercase

s2=charsToReplace.lower()

# Make s3 as charsToReplace string in uppercase

s3=s2.upper()

# Initialize answer as an empty string

ans=''

# Iterate the string upto length times

for i in range(len(s1)):

# check for chars in the string and append to the answer

if (s1[i] in s2) or (s1[i] in s3):

ans=ans+count*s1[i]

else:

ans=ans+s1[i]

# return the final string

return ans

print(modifyString("Our cat is funny","aeiou",5))    

print(modifyString("Our cat is funny","zu",3))

8 0
3 years ago
Tarikh Firoz Shahi who is writer please answer me​
igomit [66]

Answer:

Zia-ud Din Barni

Explanation:

Mark me Brainliest.

5 0
3 years ago
Read 2 more answers
Edhesive Assignment 11
Marrrta [24]
This worked for me when I took the course
5 0
3 years ago
Other questions:
  • ___________ is a mass-produced, copyrighted software that meets the needs of a wide variety of users, not just a single user or
    15·1 answer
  • .exe, .msi, .msp, .inf - together, what do these filetypes indicate
    12·2 answers
  • Which of the following is similar to defense in depth and supports multiple layers of security?a. Defense in depthb. Diversity o
    7·1 answer
  • One of the most common causes of fires in the home and workplace is: a. All of the answer choices b. Arson c. Candle d. Faulty e
    6·1 answer
  • A predictive data analyst ___
    11·1 answer
  • The letters LAN stand for Area Network.
    9·2 answers
  • Freeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee points
    14·2 answers
  • 2. When a process is "listed" in a queue, what information is actually stored in the list in memory?
    14·1 answer
  • A social cause is: O A. when one person protests without the support of others. B. something that not many citizens think or car
    8·1 answer
  • Which is the best description of the difference between bound and unbound forms?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!