Search:

Type: Posts; User: core_cpp

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Compilers

    by core_cpp
    Replies
    8
    Views
    1,572

    Ummm... if you want to play with .NET maybe. LOL...

    Ummm... if you want to play with .NET maybe. LOL

    Hopefully I'll be retired when the day comes that I can't find a decent paying job without going there. Ugh. Fortunately linux isn't going...
  2. Thread: Compilers

    by core_cpp
    Replies
    8
    Views
    1,572

    I do use Borland for my Windows GUI stuff. When...

    I do use Borland for my Windows GUI stuff. When I _can_, but that's getting harder by the day.

    Market demands are gonna make me learn MFC one of these days I think... been putting it off as long...
  3. Replies
    13
    Views
    4,401

    I'm guessing the problem is somewhere in this...

    I'm guessing the problem is somewhere in this code of yours:



    /*get input from user, that's fine*/


    Ummm hmmm.

    Is it possible one of your strings isn't null terminated? Maybe 'temp'?
  4. Yeah 'no' is the answer. Since your 'a'...

    Yeah 'no' is the answer. Since your 'a' variable is an int, why not just build an array of pointers to struct pro and index it that way?
  5. Replies
    7
    Views
    1,028

    I dislike it when tutorials say this. Yeah I...

    I dislike it when tutorials say this. Yeah I know what they're trying to convey, but it can lead a person to think that they can't set one member and then immediately read a different member of the...
  6. Replies
    7
    Views
    1,028

    They can save memory, probably not important to...

    They can save memory, probably not important to you personally unless you're writing embedded stuff.
    Unions allow you to access the same data in different ways, easier than using bitwise operations...
  7. Replies
    5
    Views
    1,302

    Yes, I know, and that's the goal! The whole...

    Yes, I know, and that's the goal!

    The whole point is sizeof() needs to report the size of the struct _without_ that last "dummy" member. My problem was no matter what I did I was adding 1 byte,...
  8. Replies
    5
    Views
    1,302

    Wow, had no clue they legalized that. Thanks,...

    Wow, had no clue they legalized that. Thanks, that was just the magic solution I was looking for! I don't know if my old 2002 compiler is fully C99 compliant but it didn't complain about the [], so...
  9. Replies
    2
    Views
    709

    In functiion make_array(int _c, NODEPTR...

    In functiion make_array(int _c, NODEPTR *array_ptr):

    array_ptr = malloc(_c*sizeof(NODEPTR));


    That malloc() call isn't going to change the value of array_ptr to the caller, which is what you...
  10. Replies
    2
    Views
    1,038

    I'm with anon- It most likely simply refers to...

    I'm with anon-

    It most likely simply refers to a C pointer, and I might add I've never once seen that exact phrase used. But if one hangs out on Win32 VB and C# forums, (and hate to put Delphi in...
  11. Thread: Loops forever

    by core_cpp
    Replies
    8
    Views
    1,454

    - You cannot open a file for "r" before even...

    - You cannot open a file for "r" before even creating it. If the file exists, under unix, you may get results but not what you expected. If the file doesn't exist then 'fw' is NULL throughout...
  12. Replies
    1
    Views
    1,729

    While I don't have your course syllabus in front...

    While I don't have your course syllabus in front of me, I can safely say you're probably making it too hard on yourself. No need to go character-by-character. Read the integer as an actual integer...
  13. Replies
    8
    Views
    1,690

    While I can't presume to speak for quzah, I'm...

    While I can't presume to speak for quzah, I'm assuming he was just referring to your original post when you said:



    That jumped out at me right away before even reading the replies. So it...
  14. Replies
    1
    Views
    1,666

    You asked for ideas rather than the solution, so...

    You asked for ideas rather than the solution, so I will offer this:

    - You can process each line by itself without consideration of the line that was before/after it, so that simplifies things. ...
  15. Replies
    5
    Views
    1,302

    char myarray[0] in struct

    I know this topic is in the usenet C FAQ, but they just offer a one-sentence answer saying it's not strictly in adherence to the standard but not much else, so here goes:

    I was given an API for...
  16. Thread: We're Moved!

    by core_cpp
    Replies
    19
    Views
    12,774

    My ISP was slow as nails to get the updated DNS,...

    My ISP was slow as nails to get the updated DNS, so I was unable to visit for several days. Bummer.

    Couple of suggestions to make such move smoother: 1. In the days/weeks before the move...
  17. Replies
    4
    Views
    1,653

    Because 32768 is the maximum positive number of a...

    Because 32768 is the maximum positive number of a signed short, and 65536 is 1 more than the maximum value of an unsigned short. I'm not sure why a simple cast to signed wouldn't have worked here,...
  18. Replies
    10
    Views
    4,318

    Just an update: Well, he let up a bit and...

    Just an update:

    Well, he let up a bit and we can now do this the "right" way: Have the exe call a second batch file thus inheriting the variables normally. So at least the practical problem...
  19. I'll address your first issue and you can...

    I'll address your first issue and you can probably take it from there.

    The reason you found you needed two getchar()'s in your second code snippet was because the newline character was still in...
  20. Replies
    20
    Views
    3,096

    If the terms are meaningless by themselves (and I...

    If the terms are meaningless by themselves (and I would tend to agree), then why did you make the comment that "Typically the last dimension is called the "row".

    That one sentence alone is the...
  21. Replies
    8
    Views
    2,112

    Ohhh the character set. If that's what he means,...

    Ohhh the character set. If that's what he means, then that is simple:

    Content-Type: text/html; charset=utf-8
  22. Replies
    32
    Views
    4,903

    Until they add a realloc[] language construct...

    Until they add a realloc[] language construct (never), it can't do the "exact same thing". Well technically I suppose your statement was correct, since malloc only alloc's it, but you get my point. ...
  23. Replies
    20
    Views
    3,096

    Huh? Yes, the last dimension is the one which is...

    Huh? Yes, the last dimension is the one which is laid out contiguously in memory. So the last subscript refers to the column within that row.

    int arr[ROWS][COLS];

    Now I know this is what you...
  24. Replies
    8
    Views
    2,112

    Content-Encoding and Accept-Encoding are...

    Content-Encoding and Accept-Encoding are essentially just used for compression during the transfer. I don't know what you mean by "HTML encoding" but I don't see how gzip and deflate could possibly...
  25. Replies
    7
    Views
    10,751

    I had never seen GLUT so I just went and checked...

    I had never seen GLUT so I just went and checked out the API. I fully expected to see at least a userdef void* somewhere in there that you could set that would get passed back to your registered...
Results 1 to 25 of 32
Page 1 of 2 1 2