complex_shadow

sudo code.

Feb 2nd, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #include <strstream>
  2. #include <sstream>
  3. #include <iostream>
  4. #include <iomanip>
  5.  
  6. using namespace std;
  7.  
  8.  
  9.  
  10.  
  11.  
  12. class SpyOutput(){
  13.  
  14. public
  15.  
  16. spy(*spy){
  17. std::stringstream *spy;
  18.  
  19.  
  20.  
  21. }
  22.  
  23. int getcuont(){
  24.  
  25. return 0;
  26. }
  27.  
  28. int getchecksum(){
  29.  
  30. return 0;
  31. }
  32. }
  33.  
  34. void main()
  35. {
  36. double d1 = 12.3;
  37. int i1 = 45;
  38. SpyOutput spy(&cout);
  39. spy << "abc" << endl;
  40. spy << "d1=" << d1 << " i1=" << i1 << 'z' << endl;
  41.  
  42. cout << "count=" << spy.getCount() << endl;
  43. cout << "Check Sum=" << spy.getCheckSum() << endl;
  44. }
Advertisement
Add Comment
Please, Sign In to add comment