• Kĩ thuật lập trình - Chapter 23: Text processingKĩ thuật lập trình - Chapter 23: Text processing

    Header line Regular expression: ^[\w ]+( [\w ]+)*$ As string literal: "^[\\w ]+( [\\w ]+)*$" Other lines Regular expression: ^([\w ]+)( \d+)( \d+)( \d+)$ As string literal: "^([\\w ]+)( \\d+)( \\d+)( \\d+)$" Aren’t those invisible tab characters annoying? Define a tab character class Aren’t those invisible space characters annoying? Us...

    ppt27 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1242 | Lượt tải: 0

  • Kĩ thuật lập trình - Software ideals and historyKĩ thuật lập trình - Software ideals and history

    “To make life easier for the serious programmer” i.e., primarily me and my friends/colleagues I love writing code I like reading code I hate debugging Elegant and efficient code I really dislike choosing between the two Elegance, efficiency, and correctness are closely related in many application domains Inelegance/verbosity is a major sour...

    ppt40 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1313 | Lượt tải: 0

  • Kĩ thuật lập trình - Chapter 21: The STL (maps and algorithms)Kĩ thuật lập trình - Chapter 21: The STL (maps and algorithms)

    // a very useful algorithm (missing from the standard library): template Out copy_if(In first, In last, Out res, Pred p) // copy elements that fulfill the predicate { while (first!=last) { if (p(*first)) *res++ = *first; ++first; } return res; }

    ppt37 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1402 | Lượt tải: 0

  • Bài giảng Lập trình C trên Windows - Thư viện lập trình Multi - MediaBài giảng Lập trình C trên Windows - Thư viện lập trình Multi - Media

    Chỉ play dạng chuẩn dành cho audio kĩ thuật số trên nền tảng PC của Intel. File audio phải có kích thước thích hợp với bộ nhớ có sẵn. Không thể được sử dụng một cách đồng thời bởi nhiều tiểu trình trong cùng một tiến trình

    pdf7 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1355 | Lượt tải: 0

  • Kĩ thuật lập trình - Chapter 20: The STL (containers, iterators, and algorithms)Kĩ thuật lập trình - Chapter 20: The STL (containers, iterators, and algorithms)

    By default, use a vector You need a reason not to You can “grow” a vector (e.g., using push_back()) You can insert() and erase() in a vector Vector elements are compactly stored and contiguous For small vectors of small elements all operations are fast compared to lists If you don’t want elements to move, use a list You can “grow” a list (e...

    ppt43 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1363 | Lượt tải: 0

  • Kĩ thuật lập trình - Chapter 19: Vectors, templates, and exceptionsKĩ thuật lập trình - Chapter 19: Vectors, templates, and exceptions

    An introduction to the STL, the containers and algorithms part of the C++ standard library. Here we’ll meet sequences, iterators, and containers (such as vector, list, and map). The algorithms include find(), find_if(), sort(), copy(), copy_if(), and accumulate().

    ppt43 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1279 | Lượt tải: 1

  • Kĩ thuật lập trình - Chapter 18: Vectors and ArraysKĩ thuật lập trình - Chapter 18: Vectors and Arrays

    We’ll see how we can change vector’s implementation to better allow for changes in the number of elements. Then we’ll modify vector to take elements of an arbitrary type and add range checking. That’ll imply looking at templates and revisiting exceptions.

    ppt38 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1327 | Lượt tải: 0

  • Kĩ thuật lập trình - Chapter 17: Lvector and free storeKĩ thuật lập trình - Chapter 17: Lvector and free store

    Think of a reference as an automatically dereferenced pointer Or as “an alternative name for an object” A reference must be initialized The value of a reference cannot be changed after initialization int x = 7; int y = 8; int* p = &x; *p = 9; p = &y; // ok int& r = x; x = 10; r = &y; // error (and so is all other attempts to change what r ...

    ppt35 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1174 | Lượt tải: 0

  • Kĩ thuật lập trình - Chapter 16: Graphical user interfacesKĩ thuật lập trình - Chapter 16: Graphical user interfaces

    The next three lectures will show how the standard vector is implemented using basic low-level language facilities. This is where we really get down to the hardware and work our way back up to a more comfortable and productive level of programming.

    ppt32 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1200 | Lượt tải: 0

  • Kĩ thuật lập trình - Chapter 15: Functions and graphingKĩ thuật lập trình - Chapter 15: Functions and graphing

    Graphical user interfaces Windows and Widgets Buttons and dialog boxes

    ppt50 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1229 | Lượt tải: 0