CS246 Lecture Notes - Lecture 5: A.Out, Readwrite, Standard Streams
Document Summary
#!/bin/bash! for name in *. cpp; do! mv cc! public test on a correct program! release test on buggy programs! Marmoset will run your test suite! black box testing! white box testing! Within a function: cover different control ow, code coverage! Boundaries: between ranges (edge cases)! multiple simultaneous boundaries (corner cases)! New code does not break old code ! #!/bin/bash! x=0! for word in : do! if [ = ]; then // good idea to put invariables in double quotes! done! echo ! x=1! #include ! using namespace std;! int main(){! count << hello world << endl;! return 0;! header ! std : : cout << ___ << ____ << ! std : : endl // end of line! In c++ the main function must describe a return type of int! Stdio. h of printf are still available in c++ (forbidden)!