Can i please get help with C++ code i will up vote!!!
Nrite a Ct+ program thiat identifes and counts words and speciat namres in a textual file. There are two kinds of 5pecial names considered cailed Type 1 and Type 2 names. Counting is applied on all occurrences of words and specialized names. A word is defined as a sequence of one or more non-whitespace characters separated by whitespace. The special names of Type 1 and Type 2 are identified by a special character at the beginning of the name. Type 1 names must start by a 'S' character, while Type 2 names must start by @ character. All Type 1 and Type 2 names should consist of a letter following the special start character, followed by zero or more letters, digits or underscores. For example. Syalue, eval9, Snum,234_ten, and enum, 45 are valid Type 1 and Type 2 names, but \$9val, and e_num. Snums are not. The program may accept one or two command line arguments. The format of the command line arguments is specified as follows: - The fisst argument must be a file name - The second optional argument is for one of the following iligs: 4. *all: the program displays the total number of words, the number of Type 1 names, and the number of Type 2 names. - "typel: the program displays the number of Type 1 names only. 2. "tyge2: the program disploys the number of Type 2 names only; If no five name 'h provided, the program should print on a new line " NO SPECIFIED INPUT FLLE NAME", and exit. If the file cannot be opened, print on a new line" CANNOT OPEN THE FILE", followed by the file name, and exit. The program should read from the file lines until the end of file is fotind. if the input file is empty, it prints out the message "File is empty: on a new line and then exits in case the command line does not include any of the optional fags, the program should display the total number of words, and the total of Type 1 and Type 2 names. If an optional flag argument is not iecognized, the prostam should print out the mesage "UNRECOGNazED FLAG