thinking in c 2nd ed volume 2 rev 20 - phần 3 ppt

thinking in c 2nd ed volume 2 rev 20 - phần 3 ppt

thinking in c 2nd ed volume 2 rev 20 - phần 3 ppt

... date strings for this extractor: Comment "0 8-1 0 -2 0 03& quot; " 8-1 0 -2 0 03& quot; "08 - 10 - 20 03& quot; but these are not: "A-10 -2 0 03& quot; // No alpha characters allowed "08%10 /20 03& quot; ... number counter: const string ERRNUM; // File containing error lines: const string ERRFILE; stringstream edited; // Edited file int co...
Ngày tải lên : 13/08/2014, 09:20
  • 52
  • 320
  • 0
thinking in c 2nd ed volume 2 rev 20 - phần 1 pptx

thinking in c 2nd ed volume 2 rev 20 - phần 1 pptx

... program: Comment constructing Trace #0 constructing Trace #1 constructing Trace #2 constructing Trace #3 destructing Trace #2 destructing Trace #1 destructing Trace #0 caught 3 25 z 516 library ... text. Edited Chapter 3: z Added a wide-character version of ichar_traits z Replaced SiteMapConvert.cpp with ExtractCode.cpp z Added exercises Revision 6 (July 27 , 20 02) Finished C...
Ngày tải lên : 13/08/2014, 09:20
  • 52
  • 304
  • 0
thinking in c 2nd ed volume 2 rev 20 - phần 10 pptx

thinking in c 2nd ed volume 2 rev 20 - phần 10 pptx

... namespace { const int daysInMonth[][ 13] = { {0 ,31 ,28 ,31 ,30 ,31 ,30 ,31 ,31 ,30 ,31 ,30 ,31 }, {0 ,31 ,29 ,31 ,30 ,31 ,30 ,31 ,31 ,30 ,31 ,30 ,31 }}; inline bool isleap(int y) { return y%4 == 0 && y%100 != ... James · 6 93 CountedPtr, reference-counting template in ZThread library (Concurrency) · 7 43 covariance: exception specifications · 69 Crahen, Eric · 722 creating...
Ngày tải lên : 13/08/2014, 09:20
  • 48
  • 258
  • 0
thinking in c 2nd ed volume 2 rev 20 - phần 2 pot

thinking in c 2nd ed volume 2 rev 20 - phần 2 pot

... ne(wchar_t c1 st, wchar_t c2 nd) { return towupper (c1 st) != towupper (c2 nd); } static bool lt(wchar_t c1 st, wchar_t c2 nd) { return towupper (c1 st) < towupper (c2 nd); } static int compare(const ... max; //Track largest number int current; // Current non-contained number // Used in notContained() // Find the next number not contained in the array int notContained() {...
Ngày tải lên : 13/08/2014, 09:20
  • 52
  • 269
  • 0
thinking in c 2nd ed volume 2 rev 20 - phần 5 potx

thinking in c 2nd ed volume 2 rev 20 - phần 5 potx

... execution of FunctionObjects.cpp: Comment x: 4 8 18 36 22 6 29 19 25 47 y: 4 14 23 9 11 32 13 15 44 30 After testBinary(x, y, r, plus<int>()): 8 22 41 45 33 38 42 34 69 77 After testBinary(x, ... divides<int>()): 1 0 0 4 2 0 2 1 0 1 After testBinary(x, y, r, limit<int>()): 0 8 18 0 0 6 3 4 25 17 After testUnary(x, r, negate<int>()): -4 -8...
Ngày tải lên : 13/08/2014, 09:20
  • 52
  • 328
  • 0
thinking in c 2nd ed volume 2 rev 20 - phần 6 doc

thinking in c 2nd ed volume 2 rev 20 - phần 6 doc

... sorted ranges #include <algorithm> #include <cassert> #include <ctime> #include <cstdlib> #include <cstddef> #include <fstream> #include <iostream> #include ... iterator’s pointer is now pointing off into nowhere: Comment //: C0 7:VectorCoreDump.cpp // Invalidating an iterator #include <iterator> #include <iostream> #include <vector&g...
Ngày tải lên : 13/08/2014, 09:20
  • 52
  • 245
  • 0
thinking in c 2nd ed volume 2 rev 20 - phần 7 pps

thinking in c 2nd ed volume 2 rev 20 - phần 7 pps

... of words used in a document #include <algorithm> #include <cctype> #include <cstring> #include <fstream> #include <iostream> #include <iterator> #include <set> #include ... a vector as a stack; modified Stack1.cpp #include <fstream> #include <iostream> #include <string> #include <vector> using namespace std; int main() { i...
Ngày tải lên : 13/08/2014, 09:20
  • 52
  • 263
  • 0
thinking in c 2nd ed volume 2 rev 20 - phần 8 pps

thinking in c 2nd ed volume 2 rev 20 - phần 8 pps

... types. Comment //: C0 8:Recycle.cpp // A Trash Recycler #include <cstdlib> #include <ctime> 39 5 z 516 }; class Right : virtual public Top { int z; protected: void specialPrint(ostream& ... Comment //: C0 9:UseDatabase2.cpp // Tests the Countable "mixin" class #include <cassert> #include "DBConnection.h" class DBClient { public: DBClient(D...
Ngày tải lên : 13/08/2014, 09:20
  • 52
  • 260
  • 0
thinking in c 2nd ed volume 2 rev 20 - phần 9 ppsx

thinking in c 2nd ed volume 2 rev 20 - phần 9 ppsx

... ///:~ Incrementer now contains a CountedPtr object, which manages a Count. In main( ), the CountedPtr objects are passed into the two Incrementer objects by value, so the copy- constructor is called, ... <vector> #include <cstdlib> #include <ctime> using namespace ZThread; using namespace std; class Count : public Cancelable { FastMutex lock; int count; bool paused...
Ngày tải lên : 13/08/2014, 09:20
  • 52
  • 190
  • 0
Thinking in C++ 2nd edition Volume 2 Standard Libraries & Advanced Topics revision 1 phần 1 pps

Thinking in C++ 2nd edition Volume 2 Standard Libraries & Advanced Topics revision 1 phần 1 pps

... reference counting 4 23 Reference-counted class hierarchies 4 23 The canonical object & singly-rooted hierarchies 4 23 An extended canonical form 424 Design by contract 424 Integrated unit ... Throwing an exception 3 72 Catching an exception 37 3 The try block 37 3 Exception handlers 37 3 The exception specification 37 4 Better exception specifications? 37 7 Catching...
Ngày tải lên : 14/08/2014, 00:21
  • 37
  • 323
  • 0

Xem thêm

Từ khóa: