-1
此代碼是尋找到一個分隔的文件,並以最小的總面積發現全國各地,我以比較它們提出了兩套對字符串的定義。該代碼輸出爲largestCountry功能,而不是最小的國家的信息。smallestCountry功能輸入和輸出錯誤
while (!in.fail())
{
if (minArea == 0 || Area < minArea)
{
readRecord(in, ISO2, ISO32, ISONumeric2, fips2, Country2, Capital2,
Area2, Population2, Continent2, tld2, CurrencyCode2, CurrencyName2, Phone2,
PostalCodeForm2, PostalCodeRegex2, Languages2, geonameid2, neighbors2,
EquivalentFipsCode2);
minArea = Area2;
}
else {
readRecord(in, ISO, ISO3, ISONumeric, fips, Country, Capital,
Area, Population, Continent, tld, CurrencyCode, CurrencyName, Phone,
PostalCodeForm, PostalCodeRegex, Languages, geonameid, neighbors,
EquivalentFipsCode);
}
}
如果它不以''<' , put a '> ... – YSC