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
Anyone play Ro-blox ? without the -
Olin [163]
I do! I know it says high school but I lied :)
6 0
3 years ago
Read 2 more answers
Personal information in the computer can be viewed and stolen
agasfer [191]
If that’s a true or false question it’s true.
6 0
3 years ago
How to unblock your Wi-fi if it is blocked by your administrator .
alexgriva [62]

Answer:

you dont

Explanation:

you ask the admin to unblock it. if you dont know who did it, you had your ip grabbed and you cant do anything but call the police.

3 0
3 years ago
Some example questions include: ""How does multithreading affect the throughput of a GetFile Server hosting many very large file
zhenek [66]

<em>How does multithreading affect the throughput of a GetFile Server hosting many very large files?</em>

Answer:

It create multiple threads of large file which eventually causes in slowing down the speed of server which results in slower response time.

<em>How does multithreading affect the average response time for a GetFile server hosting a few small files?</em>

Answer:

Multiple threads in smaller files result in rapid response time and enormous process speed in small files.

6 0
3 years ago
Binary divide 1101011 by 111​
denis-greek [22]

is this computer subject

5 0
3 years ago
Read 2 more answers
Other questions:
  • When technology advances which of the following always takes place?
    6·2 answers
  • What does microsoft recommend for large organizations requiring desktop virtualization for many clients? quizlewt?
    10·1 answer
  • Su
    6·1 answer
  • In the context of wireless signal propagation, the phenomenon that occurs when an electromagnetic wave encounters an obstruction
    14·1 answer
  • The federal government is the largest employer of cybersecurity professionals true or false
    5·1 answer
  • The fill command try’s to fill or generate content for cells based on a ________.
    15·1 answer
  • When defining a variable to be used to hold textual information containing multiple characters (letters, numbers, and/or symbols
    5·1 answer
  • You don't have to answer them all, just give me 2 or 3. Thanks
    7·1 answer
  • It is used to show the program and files that are open.
    12·1 answer
  • Amber is a hacker who steals information when people enter their personal details on specific websites. She intercepts the publi
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!