Search:

Type: Posts; User: zolfaghar

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    3,583

    I should have perhaps added more about my...

    I should have perhaps added more about my question. I need some help figuring out why I do not see a clickable box to click and then see the visual representation of the expression tree created by...
  2. Replies
    1
    Views
    3,583

    Having trouble with clickable window

    This code compiles, but the window does not have a clickable button in it.


    using
    System;

    using
    System.Windows.Forms;

    using
  3. Replies
    12
    Views
    14,508

    The problem with this is that Microsoft disables...

    The problem with this is that Microsoft disables %n in it's visual C++ runtime, which MinGw uses. Here is more info on it: gynvael.coldwind//vx.log
  4. Replies
    12
    Views
    14,508

    MinGw uses 4.9.3. I'll create another executable...

    MinGw uses 4.9.3. I'll create another executable with just the relevant parameters and see how it turns out.
  5. Replies
    12
    Views
    14,508

    I am using MinGw on Windows10. Thanks.

    I am using MinGw on Windows10. Thanks.
  6. Replies
    12
    Views
    14,508

    Yea. Same result. Thanks.

    Yea. Same result. Thanks.
  7. Replies
    12
    Views
    14,508

    Thanks. I might be something with my IDE or the...

    Thanks. I might be something with my IDE or the environment. I get

    $ 151.exeIntegers:
    425 651 1a9 425
    1a9 1A9 0x1a9 0X1A9
    +425 425 0000425 0000425
    17 21 11 17
    61817 170571 f179 61817
    7500...
  8. Replies
    12
    Views
    14,508

    Yes. Here is the entire code: #include...

    Yes. Here is the entire code:

    #include <stdio.h>int main (void)
    {
    char c = 'X';
    char s[] = "abcdefghijklmnopqrstuvwxyz";
    int i = 425;
    short int j = 17;
    unsigned int u = 0xf179U;
    long int l...
  9. Replies
    12
    Views
    14,508

    printing %n values

    I do not get the output I believe I should get from the following code:

    printf ("This%n is fun.%n\n", &c1, &c2);
    printf ("c1 = %i, c2 = %i\n", c1, c2);

    Gives me:


    Thisc1 = 1951167338, c2...
  10. Replies
    11
    Views
    9,369

    Thanks. The last comments prompted me to look...

    Thanks. The last comments prompted me to look into what opaque pointers were; so they were much appreciated. Just to reword, it seems using CAPS for the name of new structure may overlap with other...
  11. Replies
    11
    Views
    9,369

    really appreciate the comments laser.

    really appreciate the comments laser.
  12. Replies
    11
    Views
    9,369

    This is a great point Dutch. Thanks.

    This is a great point Dutch. Thanks.
  13. Replies
    11
    Views
    9,369

    Thank you so much. Nodef () was my own attempt...

    Thank you so much. Nodef () was my own attempt at devoting a function to creation of new nodes, while the rest of the code had the node creation in it. I'll remove the redundant code.
  14. Replies
    11
    Views
    9,369

    passing pointers to structures

    The following code seems to work. I appreciate any comments you can make on how to improve it please. The tough part for me was treating the pointers to the list slightly differently from the...
  15. Replies
    5
    Views
    6,919

    Thanks. I am not discounting the benefits of...

    Thanks. I am not discounting the benefits of education. I have a Master's in Telecommunications. I have not had the opportunity to focus on programming before in a professional context; I have done...
  16. Replies
    5
    Views
    6,919

    After your first C book

    I am almost done with my first book in C. I am so glad you guys told me switch to another book. Which for me it was Stephen Kochan's book; the first book I had was outdated. It was a good book...
  17. Replies
    3
    Views
    10,384

    using macros for multilevel debug

    Hi
    I am following a text, and in it, the author suggests implementing multi level debug messages with a macro definition so you can execute the program as follows:


    a.out -d3

    And it would...
  18. Replies
    4
    Views
    3,902

    Thanks.

    Thanks.
  19. Replies
    4
    Views
    3,902

    Got it. Ok so just try to make sure I understand...

    Got it. Ok so just try to make sure I understand some of the stuff, but don't get bogged down with details. Thanks.
  20. Replies
    4
    Views
    3,902

    c preprocessor functions

    I am working on converting the shift functionality implemented below into a macro



    #include <stdio.h>
    unsigned int shift (unsigned int value, int n)
    {
    if ( n > 0 )
    value <<= n;
    ...
  21. Replies
    2
    Views
    12,675

    Yup; thanks. It works //This program is...

    Yup; thanks. It works


    //This program is supposed to calculated the minimum of three values
    #define MIN(a,b) ((a) < (b) ? (a) : (b) )
    #define ONE(a,b) MIN(a,b)
    #define TWO(b,c) MIN(b,c)...
  22. Replies
    2
    Views
    12,675

    macro to find the minimum of three numbers

    Can this be done in a more efficient way?


    //This program is supposed to calculated the minimum of three values
    #define MIN(a,b) ((a) < (b) ? (a) : (b) )
    #define ONE(a,b) MIN(a,b)
    #define...
  23. Replies
    4
    Views
    4,249

    Thanks. It worked. I moved the content to another...

    Thanks. It worked. I moved the content to another file. Here is the corrected file:

    #include <stdio.h>
    int count, x10=1;
    #define printx(n) printint (x ## n)
    #define printint(var) printf( # var...
  24. Replies
    4
    Views
    4,249

    yes; it runs. I am not sure why it did not...

    yes; it runs. I am not sure why it did not earlier. I added some more stuff, and now I get error messages. Here is what I have:

    #include <stdio.h>
    int count, x;
    #define printx(n) printint (x ##...
  25. Replies
    4
    Views
    4,249

    # operator in C

    I am reading about the preprocessor features and functions. The author states "If you place a # in front of a parameter in a macro definition, the preprocessor creates a constant string out of the...
Results 1 to 25 of 97
Page 1 of 4 1 2 3 4