Search:

Type: Posts; User: fischerandom

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    3,373

    Why not? Its just a (binary) file. Some Operating...

    Why not? Its just a (binary) file. Some Operating Systems might not allow it under certain conditions though.
  2. The physical file size may be different under...

    The physical file size may be different under different file systems, OS, media type, and even from time to time under the very same of the above mentioned because the OS usually align files to a...
  3. File Positioning Functions

    To count the number of sandcorns in the hottest desert on earth, what would be the best way to do that you think, of the choices given below:
    A] Let's count one sandcorn a time. . .Really simple!...
  4. Replies
    8
    Views
    7,765

    Don't use obsolete technologies such as DOS. Use...

    Don't use obsolete technologies such as DOS. Use the Win32 API, etc.
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog/winprog/windows_api_start_page.asp
    Study!
  5. Replies
    3
    Views
    1,283

    In general it is not possible for the non-psychic...

    In general it is not possible for the non-psychic compiler to know that Seq<T>::iterator is intended as the name of a type (type name) rather than the name of something that is not a type (such as a...
  6. Replies
    7
    Views
    1,237

    Instead of using a global variable, you can use a...

    Instead of using a global variable, you can use a local static variable instead:


    void f( ) {
    static int countDown = 3;

    if ( countDown-- ) /* The first three times this...
  7. Replies
    2
    Views
    19,165

    usleep( 100000 ); /* Sleep 100000 micro seconds =...

    usleep( 100000 ); /* Sleep 100000 micro seconds = 100 ms, etc. */


    One link:
    http://www.opengroup.org/onlinepubs/007908799/xsh/usleep.html
  8. Replies
    14
    Views
    12,625

    Another idéa is to use a memory pool! Allocate...

    Another idéa is to use a memory pool!
    Allocate memory pool(s) with an arbitary size with malloc( ), etc. Then you get memory objects from a pool with your own allocate( ) function. When it's...
  9. Replies
    10
    Views
    1,814

    You may consider using fraction numbers instead...

    You may consider using fraction numbers instead of floatingpoint.



    typedef struct Fract {
    int numerator;
    int denominator;
    } Fract;

    #define FRACTS 2
  10. Replies
    2
    Views
    1,194

    I have worked and developed products based on the...

    I have worked and developed products based on the PIC16F878A. I can recomend using the CC5X C-compiler, its good. You will face challenges trying to work with pointers, because a PIC has only the W...
  11. Replies
    3
    Views
    4,685

    I have a big interest in chess so I would write a...

    I have a big interest in chess so I would write a Chess program, or actually I would write a Fischerandom Chess program! That's a challenge. But you shall choose a task that You think is interesting...
  12. Hello Isabella! You can try a program called...

    Hello Isabella!

    You can try a program called WaveLab. That program can do exactly what you want to achieve. Writing such a program is not so hard for an experienced programmer, but for a "newbie"...
  13. Replies
    6
    Views
    2,161

    If using bit-fields are slower than using...

    If using bit-fields are slower than using manually coded bit-wise operations or not,
    depends on two things as I see it. First, if the compiler is smart it may produce a
    similar sequence of bit-wise...
  14. Replies
    12
    Views
    1,939

    The line: something anything; is, in this...

    The line:


    something anything;

    is, in this case, C++ code not C (because the type something is not typedefed). A C-compiler (at least an ANSI strict C-compiler) will require:


    struct...
  15. Replies
    22
    Views
    11,055

    Read the C-compilers manual for the...

    Read the C-compilers manual for the microprocessor you are using. They usually give usefull advice on the topic you are asking about.

    And also, some microprocessors have only a single register...
  16. Replies
    1
    Views
    898

    Who designed the hardware? 1. Test the hardware,...

    Who designed the hardware?
    1. Test the hardware, i.e., write a char to the LCD, etc, and you can read the rotary encoder wheels on the bus. Stuff the data in a variable, declaring it volatile is a...
  17. Replies
    17
    Views
    2,758

    OK, I am talking about why some people, even...

    OK, I am talking about why some people, even experienced programmers, prefers a plural naming scheme of arrays/vectors instead of a singular naming scheme. I simply wonder why! I use the singular...
  18. Replies
    17
    Views
    2,758

    The greatest flaw in humans! They can't confess...

    The greatest flaw in humans! They can't confess they're wrong even when they know they're wrong!

    On the chessboard lies and hypocrisy do not survive long. The creative combination lays bare the...
  19. Replies
    17
    Views
    2,758

    Salem often use the plural form when declaring...

    Salem often use the plural form when declaring arrays of things, if that makes the code more readable.

    In what way does it make the code "more readable"? When declaring the name of an array or...
  20. Replies
    17
    Views
    2,758

    What Salem just wrote above is very common, I see...

    What Salem just wrote above is very common, I see it so often but I think it is an illogical array- or vector-naming scheme. Why do some people, even experienced programmers, use:


    typedef struct...
  21. Replies
    4
    Views
    1,602

    What processor and compiler are you using? The...

    What processor and compiler are you using? The best technique to use depends on the C compilers implementation of the code you are using because some MCU's have very little registers (some PIC...
  22. Replies
    5
    Views
    1,189

    I never use function recursion because it...

    I never use function recursion because it consumes more processing time and resources (the stack) and there is a risk that the stack is blown. Its an abuse in the art of programming a computer to use...
  23. Replies
    6
    Views
    6,436

    An algorithm based on A.I. is an algorithm that...

    An algorithm based on A.I. is an algorithm that is trying to make a choice (the best) based on the criteria given, in a given situation from a number of choices. It acts intelligent.
  24. Replies
    1
    Views
    919

    unsigned char out, mask; #define BITS 8...

    unsigned char out, mask;

    #define BITS 8
    mask = ~0 << ( BITS -bits );
    out = pixlesin[ n ] & mask;


    I haven't tested this, so it may be wrong but this may give you an idéa at least.
  25. Replies
    12
    Views
    1,253

    The built-in types of C or C++ have a strong...

    The built-in types of C or C++ have a strong logical link to the type of data that hardware, i.e., the processors that are built with high-level language support in mind, has support for directly (in...
Results 1 to 25 of 71
Page 1 of 3 1 2 3