hi could some body help me?
im making a program that writes in a file.txt
how can i compare my "char x" to another char?
#include<iostream>
#include<fstream>
#include<string.h>
using namespace std;
int main()
{
char x[100];
char y[100];
cout << "enter title" << endl;
gets(y);
ofstream rave(y, ios::out);
cout << "enter word" << endl;
do
{
gets(x);
if (x!= (?)) // <= i need something that "char x" could be compare to so //that my if comd will execute
{
rave << x;
}
}while(x != (?)); // <= same above
rave.close();
}