That wasn't what I said.
You said "Most of my code at the moment is based around [calling system()]" and in this context it meant c++ calling bash scripts. I was trying to point out that system...
Type: Posts; User: Longinus00; Keyword(s):
That wasn't what I said.
You said "Most of my code at the moment is based around [calling system()]" and in this context it meant c++ calling bash scripts. I was trying to point out that system...
It's an implementation of the sieve of Eratosthenes.
http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes
If you want to know what certain things do then read the manpage/online reference? For all...
It's another level of indirection. Look at your declaration of pp_out. If that is still confusing then review how arrays are treated in C.
Has your course covered functions but not variable scope?
The website for the book [1] shows it doesn't cover functions until chapter 3. If you haven't covered functions in the course yet then...
Funnily the / operator changed to float in python 3 so the example in the lecture won't work in python 3 environments (a new // operator is introduced if you really want integer division)....
Was the modulo operator even introduced yet? If it wasn't then that's probably why it wasn't used.
(x % 2) might be optimized to (x & 1). Even if that were slower the compiler could be...
Have you covered variable scope in your lectures/reading? If you have PLEASE review the material. If you haven't then let us know. Honestly I'm a little surprised your program compiles at all.
There's lots of ways to do what you're asking (ask your professor/TA about variable scope to explain why what you're doing doesn't work) but why not just generate the random number when you need it?...
Just parse the sigfigs from the input string and use that for printf's precision.
Yea, you're write. They might include an example implementation for how they could be written like in Dennis Ritchies book though! ;)
Oh, here's a challenge for kevinharper. Try rewriting your...
I highly recommend you get a better book and just go through it from front to back. The beginning sections should be so easy you'll finish them in an hour and when it starts introducing things like...
Considering most people are behind a NAT or firewall, listening on port 80 is going to be just as useless as listening on any other port. Outbound connections on ports other than 80 aren't usually...
There should be plenty of examples of how to use malloc online (hell, even wikipedia gives well commented examples) but it's just one in a list of things that worries me. It seems like you are using...
Like this? http://code.google.com/p/python-gnupg/
It's even BSD licensed.
I think a lot of your errors/confusion could be helped if you take a slower approach. Step through the code by yourself without compiling and running it and try to reason why things are happening....
Are you guys using a proxy? Proxy support with IMAP appears to be busted in natty evolution.
Where's the option for "I use rhythmbox but turned off the status icon in plugins"? I turned it off both when it was a tray icon and now that it's an indicator.
Why are you trying to copy files into a folder owned by root?
Newer versions of transmission (1.90+ I think) will respect 0kpbs settings for speed limits. Transmission also has a daemon version you can install with the transmission-daemon package.
http://en.wikipedia.org/wiki/X86_64#Architectural_features
Next time you use a mac, look at the top of the screen.
I'd love to see the usability tests for this feature. I bet it'd be a real laugh to watch people try this out.
For checkinstall, you probably want to do something like this.
sudo checkinstall -D --fstrans=yes \
--pkgname=transmission --backup=no --deldoc=yes --deldesc=yes --delspec=yes --default \...