Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdio>
- #include <cstring>
- #include <cctype>
- using namespace std;
- int main() {
- //line of string input
- // char input[100];
- // cin.getline(input,sizeof(input));
- string name;
- char name3[100];
- while(true){
- cout << "Enter:" << endl;
- getline(cin, name);
- cout << "Enter:" << endl;
- cin.getline(name3, sizeof(name3));
- if (name.compare(name3) == 0)
- cout << "equal" << endl;
- //stdin(flsh);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement