Topics discussed: Vector review, list, random access, iterators, reverse iterators, push_front, push_back
Source Code Available Here
Download full-quality video below:
Category: Tutorials
C++ Tutorial #48 — List / Vector iterator comparison. Insert, other junk.
Topics discussed: Vector, list, random access iterators, sequential iterators, push_back, insert, iterators
Source Code Available Here
Download full-quality video below:
BugHunt 1:
Difficulty: Extremely Easy
Time to solve: <1 min
Video this is covered in: 1
#include
using namespace std;
int main(){
cout >> "hello world";
return 0;
}
Error information: Testing.cpp:5: error: no match for ‘operator>>’ in ‘std::cout >> “hello world”‘
Bughunt 2:
Difficulty: Extremely Easy
Time to solve: <1 min
Video this is covered in: 1-3
#include
using namespace std;
int main(){
int i;
2=i;
cout << i;
return 0;
}
Error Message: Testing.cpp:6: error: non-lvalue in assignment
Bughunt 3:
Difficulty: Very Easy
Time to solve: 1-2 min
Video this is covered in: 1-4
#include
#include
using namespace std;
int main(){
double x=2.53, y=2.17;
cout << setiosflags(ios:fixed) << setiosflags(ios:showpoint) << setprecision(2);
cout << x*y;
return 0;
}
Error Message: Testing.cpp:8: error: expected primary-expression before ‘:’ token
Testing.cpp:8: error: expected primary-expression before ‘:’ token