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; }
Argelia
3 months agoAdolph
3 months agoAnglea
3 months agoDyan
4 months agoAndree
4 months agoMisty
4 months agoGoldie
4 months agoBilly
4 months agoLaurel
5 months agoKeneth
5 months agoStephane
5 months agoPatti
5 months agoBrandon
5 months agoJoaquin
5 months agoRosina
10 months agoHubert
10 months agoBulah
10 months agoElden
8 months agoMinna
9 months agoTrinidad
9 months agoKina
10 months agoHerman
9 months agoOra
9 months agoShawn
10 months agoVeronika
10 months agoLavonna
9 months agoDaniel
9 months agoAltha
9 months agoJessenia
11 months agoLizette
11 months agoJessenia
11 months ago