Ahh, I never knew that. |
|
Just you you know, you should never do something like |
|
Last edited by ninja9578; 04-08-2010 at 04:09 PM.
Ahh, I never knew that. |
|
-- My Videos --
DILD Tutorial| |WILD Tutorial| |DEILD Tutorial| |Lucid Dreaming is The DEVIL?!
Reality Check! (new)| |Why you're not getting LUCID| |Why NOT to be Scared of SP
I think that ++a; does it before, while a++; would do it after. |
|
Yes. But behind the scenes, it's a little more complicated than that. |
|
Ohhhhhh, I seee. |
|
-- My Videos --
DILD Tutorial| |WILD Tutorial| |DEILD Tutorial| |Lucid Dreaming is The DEVIL?!
Reality Check! (new)| |Why you're not getting LUCID| |Why NOT to be Scared of SP
I had no idea, I guess I need to learn more about optimization then. |
|
Yeah, it's good to learn some of that. When learning a language, always ask why one technique is better than another. Optimizers are specialists, there are very few of us, but we are in high demand. I'm probably in the less than 1% of programmers who can optimize at an assembly level. |
|
Use ++a when you don't explicitly need the pre-saved value. People who put a++ in all their loops are a pet peeve of mine. It doesn't really matter in the integer case, but if you're writing some insane iterator that has to do real work with lots of data, it will make a difference. |
|
Me too, I ever seen post-increments in loops for Firefox and other huge programs. |
|
When creating an array, is it possible to define all of its contents manually in one go? I know that in python, you can do |
|
And life is also too short to not try eating feces at least once. -Delilah
Yeah, that's possible |
|
April Ryan is my friend,
Every sorrow she can mend.
When i visit her dark realm,
Does it simply overwhelm.
Sweeeeet. No idea why I couldn't find that in the tutorials I was using. |
|
And life is also too short to not try eating feces at least once. -Delilah
Ninja, do you know of any good assembly language tutorials? Know it's not a C/C++ question, but I figured you're the person to ask. See, I'll be learning it at the university next semester, so I'd like to get a jump on it. Being the most computer literate guy, I know some of my friends will ask me for help, so it'd be good to actually know some. |
|
April Ryan is my friend,
Every sorrow she can mend.
When i visit her dark realm,
Does it simply overwhelm.
Yes, "The Art of Assembly" by Randall Hyde. You should be able to find it on Amazon. |
|
Ok, thanks. I'll check it out. |
|
April Ryan is my friend,
Every sorrow she can mend.
When i visit her dark realm,
Does it simply overwhelm.
I have a question about a piece of code that's supposed to convert a 32 bit number into its base 10 form. Each digit of the 32 bit number is represented as an array value: |
|
if(N[k]=1) is not doing what you think it is |
|
Take a look for yourself |
|
Wow. That makes a good deal of sense now! Thanks ninja. |
|
What are you doing to try an get those web pages? A browser won't let you do that. You using libcurl? |
|
So yea, this is nowhere near finished or anything, I'm just using this so I can get the loop working. |
|
Last edited by slash112; 06-20-2010 at 01:24 AM.
-- My Videos --
DILD Tutorial| |WILD Tutorial| |DEILD Tutorial| |Lucid Dreaming is The DEVIL?!
Reality Check! (new)| |Why you're not getting LUCID| |Why NOT to be Scared of SP
It's not exiting the loop because it's checking for the "done" string before it ever retrieves the user input in the body of the loop. |
|
Ahhhhh, yea, that makes sense. Thanks. |
|
-- My Videos --
DILD Tutorial| |WILD Tutorial| |DEILD Tutorial| |Lucid Dreaming is The DEVIL?!
Reality Check! (new)| |Why you're not getting LUCID| |Why NOT to be Scared of SP
I'm not using libcurl. I just ping the web address to get an IP and enter that manually into the program, which then converts a 32 bit number into base 10. 1113982819 will take you to google if you enter that into the url bar in Firefox, I assume it'd do the same thing in any browser.. Er, did I misunderstand the question? |
|
Oh, well it doesn't do that in Safari. Your conversion was correct though. |
|
Bookmarks