- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Comp Sci Ph.D. in 1997CS Faculty since 1983, except for 3 years as an Sr. Software Engineer (mostly embedded systems programming/SNMP agents) from 1999-2002.
- Interests
- web technologies
- PC Specs
- Various ones that I use here and there
Re: Husoski gave the most comprehensive answer. Let me just add why the first if clause always triggered instead of the others. As pointed out, the “=“ is the assignment operator. As it happens, the assignment statement not only causes the assignment to occur, but it also has a value like … | |
Re: David_49, are the 1 billion web sites counted by NetCraft equivalent to the count of Internet Domain Names noted in this article? For instance, if www.hostname.edu/~jdoe and www.hostname.edu/~jsmith are different personal websites, I assume they would only be counted once for domain www.hostname.edu but perhaps twice as different web site. … | |
Re: The question is unclear. It implies that the function is printing a value but the above function has no print statement. One wonders what is it supposed to print if you pass 3 to the function. Is it supposed to be 3, 6, 9, or is it supposed to be … | |
Re: You don't have an array for the student IDs in your code. I assume that fillup is expected to fill that array at the same time it fills the GPAs. One would expect that the student ID values would be interleaved with GPA values in the input data (ID, GPA, … | |
Re: You are using Python 3x. Back in the Python 2x day the "/" (single slash) operator worked similarly to C/C++ and Java. That is, if the numerator and denominator are integers the result is integer (truncating the fractional part). Thus 3/2 is 1, not 1.5. With Python 3x that changed. … | |
Re: The reason #3 drops down and creates an extra gap is because the lack of room for it to follow #2 causes it to naturally wrap and move leftward in such a way that it clears #2. If you had more than two boxes on the first row with different … | |
Re: If neither of the above suggestions solve the problem, I wonder if relative URL references are different in IE, acting relative to the web page location rather than the CSS file location. To test this out, try putting an 'image' folder with a copy of the jpg image in your … | |
Re: I am not sure exactly what you mean. I looked at your web page with IE10 and the web page looks similer to how it looks in other browsers (e.g., Chrome). Clearly, some or most of the CSS in your maloofwoodworkingstyle.css file is working. Is there some particular visual that … | |
Re: As already pointed out, the . and -> have the same precidence. Also, they are L-to-R associative, so you did not need the parenthesis (other than to make it simpler to understand). It looks to me like your function header is using old-fashioned C method for passing something "by reference", … |