User Profile
Collapse
-
Got it, thanks for the clarification -
Thanks, make sense. But to follow up on this concept:
So for example, let's say we've got a local variable declared as an int (not yet assigned any value to it). So now we have 4 bytes allocated on the stack (on most machines). Actually let's assume it's an unsigned int. So I'm assuming whatever garbage value is in those 4 bytes before initialization must still be constrained to the 2^32 limit for the unsigned int, correct?Leave a comment:
-
printing an int in C
ok.. simple question here: if you're to print out an integer before giving it a value, it prints out some huge absurd value. Where is this value coming from?
For example, if I were to do:
int i;
print ("i = %d", i);
it would print out some huge value like 1073828704. where is this value coming from? I'm not printing out the address of the variable or anything, so...? -
-
Vertical centering for IE7
So I'm sure this has to do with some newly introduced bug in IE7, but I cannot get my container class to center vertically! (only in IE7, all other browsers work perfectly)
My CSS is given below. Any thoughts on this would be much appreciated!
div.container {
width:800px;
margin: 0px auto;
text-align:center;
} -
As mentioned above, simply sending you the code won't help. Have you attempted this?
As a hint, try using a for loop, with a while loop nested inside (two counter variables)...Leave a comment:
-
As you mentioned, you want to store the address. Your *temp pointer is not initialized properly. It needs to have a valid address to point to first. In other words, your assignment should be:
temp = ...
NOT
*temp = ...Leave a comment:
-
-
Word wrapping in php
Hi all,
I'm working on designing a forum. I'm using PHP, with a mysql database, displaying the user-input results in a formatted table. Pretty standard. My questions concerns word wrapping. Normally, when the data reached the end of the table, it'll wrap to the next line. However, when people post links, the link itself will not wrap around (as it is all basically one word) and will cut right through the table's border, completely...
No activity results to display
Show More
Leave a comment: