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;
}
What happens when you attempt to compile and run the following code?
#include
#include
#include
using namespace std;
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];
}
map
cout<
return 0;
}
Program outputs:
Salena
1 months agoSalley
2 months agoArlean
3 months agoCaren
3 months agoAleisha
4 months agoLanie
4 months agoJohnetta
5 months agoChristiane
5 months agoStanford
5 months agoYuette
5 months agoDallas
6 months agoIndia
6 months agoAleisha
6 months agoRoselle
6 months agoVincenza
7 months agoLyda
7 months agoNoah
7 months agoMammie
7 months agoThea
9 months agoArlean
10 months agoMargarita
10 months ago