Determine if a number contains a digit for class assignment
问题 Write a function named containsDigit that determines if a number contains a particular digit. The header should look like: bool containsDigit(int number, int digit); If number contains digit, then the function should return true . Otherwise, the function should return false . Input: 147 9 Output: false I don't know why I always get false when I write like this: bool containsDigit(int number, int digit); int main() { double con; int number, digit; cout << "Input a number and a digit:\n"; cin >