Search:

Type: Posts; User: laserlight

Page 1 of 20 1 2 3 4

Search: Search took 0.32 seconds.

  1. Ok, so you fixed an error, but you're still...

    Ok, so you fixed an error, but you're still having an error now. What is your current code and the exact error message?

    Don't just say "still didn't work" without providing such an update,...
  2. What is the exact error message?

    What is the exact error message?
  3. Replies
    11
    Views
    185

    No, but the same seed must produce the same...

    No, but the same seed must produce the same pseudorandom sequence for the same implementation of the standard library. However, standard library implementations can differ, hence across different...
  4. Replies
    11
    Views
    185

    The rand function is implementation specific.

    The rand function is implementation specific.
  5. You should include MCU_Config.h and fix the...

    You should include MCU_Config.h and fix the errors. A properly written header file will not result in multiple definition errors when included, even if it is included multiple times.


    Yes, by...
  6. Replies
    8
    Views
    259

    The inline function idea might be worth a try:...

    The inline function idea might be worth a try: while inlining isn't guaranteed, if it does happen (and the code does look like a good candidate for inlining), it may be possible that the compiler...
  7. I would suggest doing a bit more error checking,...

    I would suggest doing a bit more error checking, and making sure that you free what you malloc and fclose what you fopen. For example, you might have something along the lines of:

    int...
  8. Replies
    15
    Views
    429

    Unfortunately for you, C doesn't work that way....

    Unfortunately for you, C doesn't work that way. There is no notion of modules as a language feature. What you will end up with is a collection of self-contained programs, each in a single source...
  9. Replies
    15
    Views
    429

    Sigh. Tell you what, let's go back to the start....

    Sigh. Tell you what, let's go back to the start. We might expect you to do something like this:

    main.c

    #include "hook.h"

    int main(void)
    {
    hook();
    return 0;
  10. Replies
    4
    Views
    276

    ... the sky is falling! rstanley's point in...

    ... the sky is falling!

    rstanley's point in post #4 sounds right to me, but admittedly if the list of emails is large, "format as you want" could get very tedious, and would be a good candidate...
  11. Replies
    2
    Views
    339

    I'm guessing that since this is a job rather than...

    I'm guessing that since this is a job rather than school, you already have a sufficiently strong foundational programming background to pass the interview for this internship/junior role, but the...
  12. Replies
    8
    Views
    361

    Does that actually work? It looks like the pos1...

    Does that actually work? It looks like the pos1 and pos2 business is just to count the number of characters in the file, then you subtract from pos2 each time... but that doesn't make sense to me....
  13. Replies
    19
    Views
    790

    Um, obviously you search packet.hpp for namespace...

    Um, obviously you search packet.hpp for namespace and see if the declaration is within a namespace.


    Instead of trying to dive into an open source project, you might want to work through an...
  14. Replies
    19
    Views
    790

    Check the namespaces involved.

    Check the namespaces involved.
  15. Replies
    19
    Views
    790

    Then why did you write this line of code? ...

    Then why did you write this line of code?

    sequence = Sequence ();
    If you don't know what Sequence is, then you don't know what that line of code does.


    No, you should find out, e.g., search...
  16. Replies
    19
    Views
    790

    I don't know. I don't even know what Sequence is...

    I don't know. I don't even know what Sequence is for sure other than it looks like a function because it was used with function-call syntax.

    Basically, to declare something is to describe to the...
  17. Replies
    19
    Views
    790

    What is Sequence?

    What is Sequence?
  18. Replies
    19
    Views
    790

    That's easy: #include "packet.hpp" I'm...

    That's easy: #include "packet.hpp"

    I'm assuming that you're using the common convention of ".hpp" denoting a header file, and it is the very purpose of a header file to contain declarations to be...
  19. Replies
    19
    Views
    790

    Well, then the error message makes perfect sense:...

    Well, then the error message makes perfect sense: Sequence was not declared, just as it says. You may have defined it below this code or in another file, in which case you need a forward declaration...
  20. Replies
    19
    Views
    790

    As you are probably aware, the error message does...

    As you are probably aware, the error message does not make sense. Are you copying and pasting the error message? I'm assuming that you are, but it is good to check in case you happened to change...
  21. Replies
    19
    Views
    790

    What is the exact error message and which line...

    What is the exact error message and which line does it refer to?
  22. What's stopping you from using better hardware or...

    What's stopping you from using better hardware or say, cloud computing services? What's the expected bottle neck in the code that you intend to write? (e.g., if network latency is going to dominate,...
  23. Replies
    1
    Views
    403

    This doesn't look obfuscated: the variable names...

    This doesn't look obfuscated: the variable names are perhaps a little concise, but that could be okay. The function names look like they have relevant meaning, as does the text to be printed. There...
  24. Replies
    3
    Views
    489

    Could this be some kind of precompiled header...

    Could this be some kind of precompiled header issue?
  25. Replies
    4
    Views
    429

    In that case, I suggest writing two functions....

    In that case, I suggest writing two functions. First:

    void print(const int numbers[], int size)
    This will print the first size number of numbers. Implement and test that this works, then...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4