Search:

Type: Posts; User: Wener

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,093

    sorry i made a mistake it should be #define...

    sorry i made a mistake

    it should be
    #define P( fmt...) printf( fmt)
    /* it works */
  2. Replies
    3
    Views
    1,093

    what's wrong with this macro?

    #include <stdio.h>
    #define P( fmt...) printf( ##fmt)
    #define FP( fmt...) fprintf( stderr, ##fmt)
    #define PP( fmt...) printf( "Wen%d\n",##fmt)
    int main(int argc, char *argv[])
    {
    ...
  3. Replies
    2
    Views
    1,596

    thank you

    thank you
  4. Replies
    2
    Views
    1,596

    Is this possible for c Macro?

    #include <stdio.h>

    #define _NUM_ 0
    /* _NUM_ = _NUM_ + n */
    #define NUM_ADD(n)
    /* _NUM_ = _NUM_ - n */
    #define NUM_SUB(n)
    #define NUM_PRINT() printf( "Num is : %d\n", _NUM_);

    NUM_ADD(2);
  5. Replies
    1
    Views
    1,484

    confuse the console mouse event in win

    when i run my proc from makefile or "start a", it can correct receive the mouse event
    but if i run it "a" it can not receive the mouse event.

    i disabled the quick edit and insert mode.

    ...
  6. Replies
    6
    Views
    1,483

    thank you

    thank you
  7. Replies
    6
    Views
    1,483

    ok, i was wrong, even it pass the compile

    ok, i was wrong, even it pass the compile
  8. Replies
    6
    Views
    1,483

    in Cfree, i can not run over, but in mingw and...

    in Cfree, i can not run over, but in mingw and cygwin it's no problem. so why?
  9. Replies
    6
    Views
    1,483

    online waiting

    online waiting
  10. Replies
    6
    Views
    1,483

    what's wrong with this? SOS

    #include <stdio.h>


    struct {
    void (*x)( char *);
    }X;
    void init()
    {
    void p( char *s)
    {
  11. thank you, all i should do is learn and keep a...

    thank you, all i should do is learn and keep a positive attitude
  12. Thank very very very much ~ i think it over!~

    Thank very very very much ~ i think it over!~
  13. How can i use the gcc create the assembler code that i want ?

    How can i use the gcc create the instruction what i want ?

    just create the simple instruction, just like add cal and so on.
    do not rely on the platform.

    or i want to know where i can find help...
  14. i modify the code Reading Input Buffer Events...

    i modify the code Reading Input Buffer Events
    but the result was also the same ~
    next is the changed

    while (1) {
    // Wait for the events.

    if (! ReadConsoleInput(
    ...
  15. I thinke about it, I just wanna try the Mouse...

    I thinke about it, I just wanna try the Mouse Event.
    I add the
    if( InputInfo.EventType != MOUSE_EVENT) continue;
    but the result has nothing change.the value Y was also wrong.
    it increase to...
  16. thank for your reply

    thank for your reply
  17. Confuse With The Simple Things~~the console programming.look for help!

    The code like this:

    #include <stdio.h>#include <windows.h>


    int main(int argc, char *argv[])
    {
    DWORD cNumRead, fdwMode, i, numInput;
    INPUT_RECORD irInBuf[128];
    INPUT_RECORD...
Results 1 to 17 of 17