Search:

Type: Posts; User: sean

Page 1 of 20 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    3
    Views
    7,322

    That is a useful data structure to start with....

    That is a useful data structure to start with. Think of a matrix as a list of columns or rows, and columns or rows as lists of elements. If each element knows it's position and any missing element is...
  2. Thread: landing a job.

    by sean
    Replies
    15
    Views
    1,911

    Follow technical news and have a side-project...

    Follow technical news and have a side-project that's using a new technology or two - and of course cater it to where you're trying to get a job. For instance, let's say I was interviewing you for a...
  3. Replies
    3
    Views
    972

    If you do want to write your own, it isn't too...

    If you do want to write your own, it isn't too complicated. Look up "recursive descent parser" and it should give you some ideas for a simple way to structure your algorithm. You should also be...
  4. At zlib Home Site (http://www.zlib.net/) you can...

    At zlib Home Site you can find documentation on the library. There's a function called inflateGetHeader that looks like what you want. You can find the specification for the struct that it populates...
  5. Thread: landing a job.

    by sean
    Replies
    15
    Views
    1,911

    Nope - as long as you're smart about it. The...

    Nope - as long as you're smart about it. The skills you pick up making games can be very useful in lots of areas other than games. I know several programmers who skipped college, had experience...
  6. Replies
    10
    Views
    1,075

    You should use something like a map: A data...

    You should use something like a map: A data structure that maps names to a count of the number of times that name has occurred, and the ability to add new names and increment existing counts. You...
  7. Thread: C programming

    by sean
    Replies
    5
    Views
    1,127

    This site has a tutorial on that subject here:...

    This site has a tutorial on that subject here: Switch Case in C and C++ - Cprogramming.com. Beyond that you definitely need to actually ask us a question, post your code, and tell us specifically...
  8. Replies
    7
    Views
    3,460

    Oh I see, that makes sense now. So the reason...

    Oh I see, that makes sense now. So the reason this is hard to do with a single pipe is that as soon as you reuse that pipe for a second command, it's going to start writing data into the same pipe...
  9. Replies
    7
    Views
    3,460

    Not sure I follow your current approach,...

    Not sure I follow your current approach, entirely, but... if your pipeline consists of n commands, you need n - 1 pipes, and you probably want to assign them iteratively rather than recursively. I...
  10. Replies
    5
    Views
    5,870

    I highly recommend seeing if this scheme is...

    I highly recommend seeing if this scheme is available for your IDE of choice: Solarized - Ethan Schoonover. It has both a light and dark colour scheme (with multiple contrast variations, etc.) and...
  11. Replies
    7
    Views
    960

    Being off by exactly 1 sounds to me like...

    Being off by exactly 1 sounds to me like somewhere in your computation a float is getting converted to an int (going from *.999999 to *) and then being converted back to a float.
  12. Thread: script..

    by sean
    Replies
    3
    Views
    803

    Since you haven't posted a complete, compilable...

    Since you haven't posted a complete, compilable program, it would be helpful if you told us what isn't working. Are you getting errors or warnings when compiling it? Do you see unexpected behaviour...
  13. Replies
    10
    Views
    1,075

    When you declare your variables, they just...

    When you declare your variables, they just contain whatever values happened to be in memory before your program ran. For the purposes of this conversation, they're completely random and...
  14. Thread: Zlib, GZip

    by sean
    Replies
    4
    Views
    1,774

    Thanks for coming back to report your results -...

    Thanks for coming back to report your results - now it IS documented!
  15. Replies
    7
    Views
    886

    A "char" is really just a differently sized...

    A "char" is really just a differently sized integer, though I'm also surprised it bothered to tell you the specific type of pointer but not the specific type of variable.
  16. Replies
    16
    Views
    1,554

    The (float) worked because it applies to a...

    The (float) worked because it applies to a different expression whether it's inside or outside the parentheses. If it's outside, it will do integer division, lose the remainder, and THEN convert to a...
  17. Replies
    16
    Views
    1,554

    numTests go from 0 to 9. You could tweak your for...

    numTests go from 0 to 9. You could tweak your for loop to go from 1 to 10 and then just display numTests' current value as part of your prompt.
  18. Thread: Word meaning

    by sean
    Replies
    6
    Views
    770

    In number 1, you're omitting r0. What Burns11...

    In number 1, you're omitting r0. What Burns11 posted the first time is correct.
  19. Replies
    16
    Views
    1,554

    "Casting" is when you tell the compiler to...

    "Casting" is when you tell the compiler to convert a variable of a certain type to the equivalent value of a different type. If you divide integers, any remainder is lost, so you need to tell the...
  20. Replies
    3
    Views
    2,842

    Don't think of the problem as being "modifying a...

    Don't think of the problem as being "modifying a variable", think of the problem as being "modifying the state". Your handle represents a TCP connection and a protocol that expects a very specific...
  21. Copyright year(s)?

    Copyright year(s)?
  22. Thread: int NULL

    by sean
    Replies
    6
    Views
    1,084

    Not sure I entirely understand, but an int can...

    Not sure I entirely understand, but an int can not contain "nothing". NULL actually is basically the same thing as 0. The difference is that when you assign a null character to the beginning of a...
  23. Thread: Zlib, GZip

    by sean
    Replies
    4
    Views
    1,774

    Their documentation at GZipStream Class...

    Their documentation at GZipStream Class (System.IO.Compression) states that it also uses zlib, so I'd be optimisitc - but the only way to be really sure is to try out a quick example.
  24. Replies
    3
    Views
    2,469

    If you want to implement it yourself (which, by...

    If you want to implement it yourself (which, by the way, is something that cryptography experts will often warn you against doing), it's a very simple algorithm that is well-documented online. You...
  25. Thread: Randomization

    by sean
    Replies
    4
    Views
    727

    You should read this tutorial: Generating Random...

    You should read this tutorial: Generating Random Numbers in C and C++ - Cprogramming.com

    srand() seeds a random number generator. It merely sets up the system to give you random numbers - it...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4