Electrical and Computer Engineering
6 of 23
UAH
CPE 112
Recognizing Two
Character Sequences
•//***********************************************
•// NotEqualCount program
•// This program counts the occurrences of "!=" in a
•// data file
•//***********************************************
•
•#include <iostream>
•#include <fstream>   // For file I/O
•using namespace std;
•
•int main()
•{
•    int      count;     // Number of != operators
•    char     prevChar;     // Last character read
•   
•