I want the code to search for a word mid sentence and see if its first letter is lower case.
If it is, than it makes it upper case. For example: John hates using c++ daily, and it would change the C in c++ to uppercase.
Here is the code
#include <iostream>
#include <string>
#include<cstdlib>
#include<fstream>
using namespace std;
ifstream in_stream;
ofstream out_stream;
int main()
{
in_stream.open("in.dat");
out_stream.open("out.dat");
char s[256];
in_stream>>s;
s[0] = tolower(s[0]);
out_stream<<s;
in_stream.close();
out_stream.close();
system("Pause");
return 0;
}