Search:

Type: Posts; User: Longinus00; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.11 seconds.

  1. [SOLVED] Re: Advantages/disadvantages of system() call in C++

    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...
  2. Replies
    19
    Views
    3,392

    Re: Prime number generator in C

    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...
  3. [SOLVED] Re: segmentation fault--and I think I own the memory

    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.
  4. Re: [C++] (Referencing?) variables declared/defined in one function in another funct

    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...
  5. Replies
    12
    Views
    1,263

    [SOLVED] Re: Checking for Odd or Even

    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)....
  6. Replies
    12
    Views
    1,263

    [SOLVED] Re: Checking for Odd or Even

    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...
  7. Re: [C++] (Referencing?) variables declared/defined in one function in another funct

    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.
  8. Re: [C++] (Referencing?) variables declared/defined in one function in another funct

    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?...
  9. Re: Trying to Overcome User Input Interpretation Issues in C

    Just parse the sigfigs from the input string and use that for printf's precision.
  10. Replies
    49
    Views
    1,661

    [SOLVED] Re: What am I missing here? (c programming)

    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...
  11. Replies
    49
    Views
    1,661

    [SOLVED] Re: What am I missing here? (c programming)

    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...
  12. Re: [C++] Is there anything wrong with using sockets on port 80?

    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...
  13. Replies
    49
    Views
    1,661

    [SOLVED] Re: What am I missing here? (c programming)

    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...
  14. Replies
    13
    Views
    687

    [SOLVED] Re: How does PGP/GPG work?

    Like this? http://code.google.com/p/python-gnupg/

    It's even BSD licensed.
  15. Replies
    49
    Views
    1,661

    [SOLVED] Re: What am I missing here? (c programming)

    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....
  16. Replies
    37
    Views
    17,245

    [ubuntu] Re: 11.04 Evolution IMAP Connection Error

    Are you guys using a proxy? Proxy support with IMAP appears to be busted in natty evolution.
  17. Poll: Re: The poll, who's really using RB and hate indicators

    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.
  18. Replies
    18
    Views
    1,151

    Re: Needed file manager improvement

    Why are you trying to copy files into a folder owned by root?
  19. Replies
    10
    Views
    2,895

    [ubuntu] Re: Headless torrent server

    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.
  20. Re: 32-bit version and 64-bit version: How different ARE they?

    http://en.wikipedia.org/wiki/X86_64#Architectural_features
  21. Re: The future of Ubuntu: More menus, no more "Notification Area"

    Next time you use a mac, look at the top of the screen.
  22. Replies
    29
    Views
    2,681

    Poll: Re: What do you think of Esfera?

    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.
  23. Re: Howto: Build the BitTorrent client Transmission under Karmic Koala

    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 \...
Results 1 to 23 of 250
Page 1 of 10 1 2 3 4