 |
 |
 |
 |
 |
 |
 |
 |
//***********************************************
|
|
|
// 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
|
|