It's because your divide function in not returning a value.
Code:bool divide(int x, int y) { if (x % y == 0) return true; else return false; }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 5 of 5
Thread: Review, divide two integersThreaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |