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
Taya2010 [7]
4 years ago
10

What do libraries allow you to do in C++, and how do you incorporate libraries into a C++ program?

Computers and Technology
1 answer:
ale4655 [162]4 years ago
3 0

Answer:

Libraries in c++ allows us to use common functions and data structures such as vectors,queue,stack etc.You have already used  iostream library by which you are taking input and printing the output with the help of cin and cout functions.

for example you should use vector library to be able to use vector in your program.

You can incorporate library in your c++ program by writing #include<library name> at the starting odf the program.

for example:-

#include<iostream> //including iostream library.

#include<queue> //including queue library.

using namespace std;

int main()

{

queue<int> q; //declaring a queue of integer type.

q.push(23);//adding 23 in the queue q.

q.push(56);//adding 56 in the queue q.

q.pop();//deleting element from the queue.

cout<<q.front()<<endl;//printing fornt of the queue..

return 0;

}

output :-56

You might be interested in
What is ana absolute adress
AleksAgata [21]

Answer:

The term <u>absolute</u> distinguishes it from a relative address, which indicates a location specifying a distance from another location. <u>Absolute addresses</u> are also called real addresses and machine addresses.

Explanation:

Sorry, I'm not so good at explaining things.. I hope I kinda gave you an idea on what it is though.

8 0
4 years ago
We are tall straight and upright who are we
mamaluj [8]
The answer to this puzzle can be anything but most commonly it is Trees. Pines, Redwood, Sequoias, any kind that is tall and straight. Or it can be something like poles, or even humans.

3 0
4 years ago
Read 2 more answers
Which of the following is another type of brake system used in trucks
Doss [256]

answer is d hope it helps

4 0
3 years ago
1. Write a while loop that lets the user enter a number. The number should be multiplied by 10, and the result assigned to a var
shutvik [7]

Answer:

import java.util.Scanner;

public class num6 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       int product=0;

       do{

           System.out.println("Enter a number");

           int num = in.nextInt();

           product = num*10;

           System.out.println("The product is " + product);

       }while (product<100);

  }

}

Explanation:

In the Java program above, The user will be prompted to enter a number.

The number is multiplied by 10 and assigned to a variable called product.

A do....while loop has been implemented to check the variable product

As long as this variable is less than 10, the user will be prompted to enter another number.

3 0
3 years ago
(true/false) In a layered operating system design, requests (such user processes may need to interact with multiple layers, resu
Julli [10]

Answer:

The correct answer to this question is "true".

Explanation:

In a layered operating system, all the layers defined individually and communicate with each other when required. It is also easier to create, manage and update the system. If we change in one layer. The Changement has done in only a specific layer it does not affect any other layers. In this operating system, there are 6 layers.

In the monolithic system. It works on the kernel space. That increases the size of the operating system and kernel. It is different than the microkernel system. In the monolithic system, there are 3 layers.

If we assign any work to both, So the 6 layers will take more time to do that work. when that 3 layers take less time to do that work.

that's way layered operating performance is slower than the monolithic system.

6 0
4 years ago
Other questions:
  • Smartphones can have virtual keyboards or physical keyboards. What are 3 advantages and disadvantages to each one?
    13·1 answer
  • What means can a worm use to access remote systems to propagate?
    7·1 answer
  • Predictive coding software leverages .............................when experts review a subset of documents to teach the softwar
    15·1 answer
  • Write a function called line_numberthat takes as parameters two strings representing file names. Assume these are text files. Th
    15·1 answer
  • True or False <br><br> Rootkits are only made by black-hat hackers.
    11·1 answer
  • If a website ends with .gov does it mean that its written by the government or?
    11·2 answers
  • Explain what it means to have good file management skills.
    10·1 answer
  • Which software documentation guideline did the IEEE establish?
    10·1 answer
  • What does Technology mean to you?​
    9·2 answers
  • What is the chip that allows the screen to work
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!