What happens when you attempt to compile and run the following code?
#include
#include
using namespace std;
template
void print(T start, T end) {
while (start != end) {
std::cout << *start << " "; start++;
}
}
int main()
{
int t1[] ={ 1, 7, 8, 4, 5 };
list
int t2[] ={ 3, 2, 6, 9, 0 };
list
l1.sort();
list
it++; it++;
l1.splice(l1.end(),l2, it, l2.end());
print(l1.begin(), l1.end()); cout<<"Size:"< print(l2.begin(), l2.end()); cout<<"Size:"< return 0; }
Rosina
1 months agoHubert
1 months agoBulah
1 months agoMinna
14 days agoTrinidad
17 days agoKina
1 months agoHerman
16 days agoOra
1 months agoShawn
1 months agoVeronika
2 months agoLavonna
8 days agoDaniel
22 days agoAltha
30 days agoJessenia
2 months agoLizette
2 months agoJessenia
3 months ago