Please edit your post and make sure your code is [code]between code tags[/code] so that it has syntax highlighting and line numbers, as well as proper indentation.
You meant to use && instead of ||. Even better, C++ guarantees that the numeric digits are guaranteed to be in order, so you can just use if(!(name[i] >= '0' && name[i] <= '9'))