Search:

Type: Posts; User: Idle

Search: Search took 0.01 seconds.

  1. Thread: Terms used in C

    by Idle
    Replies
    12
    Views
    3,133

    According to my second edition C/C++ Programmer's...

    According to my second edition C/C++ Programmer's Reference (Herbert Schildt), it goes like this:


    type variable_name; /* declaration - all variables must be declared prior to use */
    type...
  2. Replies
    2
    Views
    840

    Pragma. ;) #pragma comment (lib,...

    Pragma. ;)

    #pragma comment (lib, "myfirstlib.lib")
    #pragma comment (lib, "../path/to/myotherlib.lib")
  3. Replies
    3
    Views
    1,145

    Pity. Thanks for your reply, however. :)

    Pity.
    Thanks for your reply, however. :)
  4. Replies
    3
    Views
    1,145

    'ere's an odd one for ye

    Perhaps someone could explain to me why the following enum is perfectly valid if I compile my sources using the .c extension, but gives me the error message "error C2059: syntax error : 'constant'"...
  5. Replies
    4
    Views
    8,121

    I'll probably find my answer in the GNU fileutils...

    I'll probably find my answer in the GNU fileutils package. Thanks.
  6. Replies
    3
    Views
    1,597

    How about this: free (Button->Items); // not...

    How about this:

    free (Button->Items); // not sure if this works
    free (Button); // this should work just fine, but frees the entire struct rather than just 'Items'
  7. Replies
    4
    Views
    8,121

    It's the string stuff that's getting to me,...

    It's the string stuff that's getting to me, rather than the theory or logics, hrm.
    I thought I'd be making some progress here... Now, let's see:

    p = strchr (path, '/');
    while (*p)
    {
    if...
  8. Replies
    4
    Views
    8,121

    Well, one of my "greatest" weakness when it comes...

    Well, one of my "greatest" weakness when it comes to programming are string manipulations. Even the most basic ones seem to get me all puzzled.


    void _mkpath (char *path)
    {
    char *s, *dir =...
  9. Replies
    4
    Views
    8,121

    mkdir and multiple directories

    It just came to my attention that mkdir won't accept parameters such as "c:/firstdir/seconddir" for creating "firstdir" in the root and "seconddir" under "firstdir".
    Of course I can create...
  10. Replies
    4
    Views
    5,142

    "Now that I come to think of it..." - Thanks,...

    "Now that I come to think of it..." - Thanks, that answered my question! :)

    Edit: Oops!
  11. Replies
    4
    Views
    5,142

    Less than or equal - precedence in for loops

    Some thing that I've been wondering about for a while, is the precedence of < (less than) and <= (less than or equal). As far as I know, these operators have the same precedence.

    Now, take this...
Results 1 to 11 of 11