// this is in my class private string exampleAddress = "joe@example.com"; // apparently its value is never used public bool VerifyEmailAddress(string exampleAddress) // I believe I'm declaring the string exampleAddress here again but I'm not sure { return true; }// this is in my programConsole.WriteLine(c.VerifyEmailAddress("joe@example.com"));Console.WriteLine(c.VerifyEmailAddress("jim@example.com")); // this is suppose to return false
dude c++ isn't the right langauge for me to use right now.
public bool VerifyEmailAddress(string exampleAddress){ if(exampleAddress == "joe@example.com") return true; else return false;}
...why don't you show us the rest of the code then? We can't help you otherwise
Stop using C# and buy a C++ book.