Hot answers tagged

1

You can try replacing whitespaces with a hyphen before saving the entry. By doing this, you save the complete name of the entry and can use it as a url. For this, the search and title rendering will have to modified a bit. While saving the entry use title = title.replace(' ', '-'). A similar approach can be used for searching. For displaying in html, you can ...


1

Once the program has determined if the sum should increase by current_digit or something else, the something else takes a complicated approach. Instead of nesting another loop to work out multi-digit numbers, realize that 'multiply' can only have values in the range of 0 to 18. Consider this simpler code: if (j % 2 != 0) { int multiply = current_digit * ...


Only top voted, non community-wiki answers of a minimum length are eligible