{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Txt how to solve these problems with cc how long it

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: How to check a legit C++ variable name? Backreferences •  Match whatever an earlier part of the regular expression matched –  Enclose a subexpression with \( and \). –  There may be up to 9 enclosed subexpressions and may be nested –  Use \digit, where digit is a number between 1 and 9, in a later part of the same pabern. Pattern Matches \(ab\)\(cd\)[def]*\2\1 abcdcdab, abcdeeecdab, abcdddeeffcdab, ... \(why\).*\1 A line with two occurrences of why Example: Merge & Sort Data •  We have two files “grade1.txt” & “grade2.txt” –  Each file have one or more lines –  Each line only has an integer •  We want to merge the records in the two files and sort the grades, then write the sorted results into “sorted_grade.txt” •  How to solve these problems with C/C++? •  How long it will take to program? Advanced Commands Focus: Deal with text •  •  •  •  •  •...
View Full Document

{[ snackBarMessage ]}