I have a snippet of code that's 37 lines long, I can't, for the life of me, seem to get it working. It compiles fine, no errors, I've had 2 friends run through it and nothing, is it just an issue with my compiler(CodeBlocks)? Long story short I really just need this code to be able to take a yes or no answer, help me out? Thanks in advance.
#include<iostream>
#include<windows.h>
#include<conio.h>
#include<strings.h>
using namespace std;
int main();
void repeat();
string s1;
string s2;
string s3;
int main()
{
repeat();
}
void repeat()
{
string s3="n";
cout << "Would you like to perform another operation?\n";
cin >> s3;
if((s3=="Y" || "y"))
{
main();
}
if((s3=="N" || "n" || "no" || "No"))
{
exit(0);
}
else
{
exit(0);
}
}