I taki problem: gdy property value ma wartość większą niż 9, to nie da się skompilować
if ( property_value[0] == '0' ) copy(property_value, charsmax(property_value), "1");
else if ( property_value[0] == '1' ) copy(property_value, charsmax(property_value), "2");
else if ( property_value[0] == '2' ) copy(property_value, charsmax(property_value), "3");
else if ( property_value[0] == '3' ) copy(property_value, charsmax(property_value), "4");
else if ( property_value[0] == '4' ) copy(property_value, charsmax(property_value), "5");
else if ( property_value[0] == '5' ) copy(property_value, charsmax(property_value), "6");
else if ( property_value[0] == '6' ) copy(property_value, charsmax(property_value), "7");
else if ( property_value[0] == '7' ) copy(property_value, charsmax(property_value), "8");
else if ( property_value[0] == '8' ) copy(property_value, charsmax(property_value), "9");
else if ( property_value[0] == '9' ) copy(property_value, charsmax(property_value), "10");
else if ( property_value[0] == '10' ) copy(property_value, charsmax(property_value), "11");
else if ( property_value[0] == '11' ) copy(property_value, charsmax(property_value), "12"); [linia 4532]
else if ( property_value[0] == '12' ) copy(property_value, charsmax(property_value), "13");
else if ( property_value[0] == '13' ) copy(property_value, charsmax(property_value), "14");
else if ( property_value[0] == '14' ) copy(property_value, charsmax(property_value), "15");
else if ( property_value[0] == '15' ) copy(property_value, charsmax(property_value), "16");
else if ( property_value[0] == '16' ) copy(property_value, charsmax(property_value), "17");
else if ( property_value[0] == '17' ) copy(property_value, charsmax(property_value), "18");
else if ( property_value[0] == '18' ) copy(property_value, charsmax(property_value), "19");
else if ( property_value[0] == '19' ) copy(property_value, charsmax(property_value), "20");
else if ( property_value[0] == '20' ) copy(property_value, charsmax(property_value), "21");
else if ( property_value[0] == '21' ) copy(property_value, charsmax(property_value), "22");
else if ( property_value[0] == '22' ) copy(property_value, charsmax(property_value), "23");
else if ( property_value[0] == '23' ) copy(property_value, charsmax(property_value), "0");
Error jest:
Error: Invalid character constant on line 4532
Czy da się zrobić to w sposób, aby property_value było większe od 9 i działało?
Użytkownik ^Grzyboo edytował ten post 13.04.2011 09:05