What happens when you attempt to compile and run the following code?
#include
#include
#include
using namespace std;
int main ()
{
int t[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
vector
deque
deque
d2 = d1;
d2.insert(d1.rbegin(), 10);
for(int i = 0; i { cout< } return 0; }
What happens when you attempt to compile and run the following code?
#include
#include
#include
#include
using namespace std;
int main(){
int second[] ={ 3, 4, 2, 1, 6, 5, 7, 9, 8, 0 };
string first[] = {"three", "four", "two", "one", "six","five", "seven", "nine","eight","zero"};
map
for(int i=0; i<10; i++) {
m.insert(pair
}
m[0]="ten";
m.insert(pair
for(map
cout<second<<" ";
}
return 0;
}
What happens when you attempt to compile and run the following code?
#include
#include
#include
using namespace std;
class A {
int a;
public:
A(int a) : a(a) {}
int getA() const { return a; } void setA(int a) { this?>a = a; }
};
int main () {
int t[] = {1,2,3,2,3,5,1,2,7,3,2,1,10, 4,4,5};
deque
int number = count(d.begin(), d.end(), 2);
cout<< number< return 0; } Program outputs:
What happens when you attempt to compile and run the following code?
#include
#include
#include
using namespace std;
void myfunction(pair
cout << " " << i.first;
}
int main() {
int t[] = { 10, 5, 9, 6, 2, 4, 7, 8, 3, 1 };
map
for(int i=0; i < 10; i++) {
m[i]=t[i];
}
for_each(m.begin(), m.end(), myfunction);
return 0;
}
Program outputs:
What happens when you attempt to compile and run the following code?
#include
#include
int main ()
{
int t[]={1,2,3,4,5};
std::vector
std::vector
v1.resize(10);
v2.reserve(10);
std::vector
while (i != v1.end()) { std::cout<
i = v2.begin();ii=0;
while (i != v2.end()) { std::cout<
return 0;
}
Salena
2 months agoSalley
3 months agoArlean
3 months agoCaren
4 months agoAleisha
5 months agoLanie
5 months agoJohnetta
5 months agoChristiane
6 months agoStanford
6 months agoYuette
6 months agoDallas
6 months agoIndia
7 months agoAleisha
7 months agoRoselle
7 months agoVincenza
7 months agoLyda
7 months agoNoah
8 months agoMammie
8 months agoThea
9 months agoArlean
10 months agoMargarita
10 months ago