範例
class
ClassA {
public: void
methodA () {
string
s="XYZ";
int
l=s.size();
while
(i < l) {
}
};
解決方案
在給定的範例中,while 迴圈主體不含任何內容。應該避免這種空的 while 迴圈