Search:

Type: Posts; User: The111

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thanks Grumpy, glad I got a couple good answers...

    Thanks Grumpy, glad I got a couple good answers out of all the arguments I caused inadvertently!

    Still no books recommended, but on my own searching today I found this one... looks like it might...
  2. Recommend a text that explains the physical implementation of C

    I saw some truths in the popular thread below "why new programming students aren't fairing well." I am currently in an online MSCS program, but my undergrad is in Aero Eng and not CS. Because of my...
  3. Replies
    9
    Views
    2,351

    That makes perfect sense, but it seems slightly...

    That makes perfect sense, but it seems slightly at odds with what the text says.

    The text says that getint() will break a stream into integers. It doesn't say that getint() will need another...
  4. Replies
    9
    Views
    2,351

    Sorry if I wasn't clear, but my intent was not to...

    Sorry if I wasn't clear, but my intent was not to compare C with Java, it was to compare two different learning tools. I am getting along pretty with the syntax and other rules as presented in the...
  5. Replies
    9
    Views
    2,351

    Oh, so I guess you're saying another function...

    Oh, so I guess you're saying another function would be clearing the ungetch() buffer?

    That makes sense, I guess... but yeah it is very unclear how this function is intended to be used... or what...
  6. Replies
    9
    Views
    2,351

    K&R Chap 5, getint() bug?

    As a newbie it is hard to reconcile bugs in the K&R text vs simply things that I do not understand. Also, sometimes the requirements for the sample programs are a little bit vague as to what exactly...
  7. Replies
    2
    Views
    5,232

    Good call, thanks. Shame on me for not figuring...

    Good call, thanks. Shame on me for not figuring it out... shame on K&R for the typo. :-P

    Still trying to wrap my head around all of the code but at least it compiles now.
  8. Replies
    2
    Views
    5,232

    K&R 5.6, stumped again

    Yet another noobie K&R question. I'm trying the example in section 5.6 which uses readlines(), qsort(), and writelines() in sequence. The entire messy code is posted way below, but my problem is...
  9. Replies
    23
    Views
    4,004

    Ok then, back to my original logic treating it...

    Ok then, back to my original logic treating it only as an example in a book... in the context of that example, where getop() is the only function that calls ungetch(), is it possible to trigger the...
  10. Replies
    23
    Views
    4,004

    You know, I stared at the original code some more...

    You know, I stared at the original code some more and now I think my confusion is not with getch() or ungetch(). It is with getop(). Since getop() always calls getch() before calling ungetch(), it...
  11. Replies
    23
    Views
    4,004

    The compiler is Tiny C Compiler. Also, the...

    The compiler is Tiny C Compiler. Also, the ungetch() that I'm using is completely defined in the example, it's not a library function. The author explains his code as:

    When an extra char is...
  12. Replies
    23
    Views
    4,004

    I literally thought the same thing myself. ...

    I literally thought the same thing myself.

    However, my weakest skill at this point in time is reading other people's code, and I figure with a real job in software that is something I'll have to...
  13. Replies
    23
    Views
    4,004

    Awesome, thanks for the explanations all, and...

    Awesome, thanks for the explanations all, and thanks for the link Andrew. I had never heard the term undefined behavior before, but it makes sense.

    Any thoughts on the second half of my question?...
  14. Replies
    23
    Views
    4,004

    K&R Ch4 Polish calculator, two questions

    The entire code below for reference:

    Whenever I try out a code sample from a book like this, I always make it a point to break it. The "MAXOP" defined in the book was 100. So for grins I changed...
  15. Replies
    33
    Views
    5,328

    Correct... I looked through the winbase.h file...

    [/QUOTE]

    Correct... I looked through the winbase.h file before and couldn't find anything which looked like a definition for FindFirstFile, but after looking again I've found some lines:
    ...
  16. Replies
    33
    Views
    5,328

    Good info... I will try to process it all. ...

    Good info... I will try to process it all. Probably more than I need to know at this point, but I guess I asked for it with all my digging. :-) Thanks.
  17. Replies
    33
    Views
    5,328

    I didn't change my mind, I perhaps used the wrong...

    I didn't change my mind, I perhaps used the wrong words, which I am not even sure at this moment.

    Can I call it a "standard C program" if I #include windows.h? If not, then I apologize for the...
  18. Replies
    33
    Views
    5,328

    And now you're being obtuse. I never once said...

    And now you're being obtuse. I never once said that it *should* have such a thing, nor that I thought it did.

    In fact, in my OP I recognized all of that. Did you read that? :devil:

    My...
  19. Replies
    33
    Views
    5,328

    Well, correct me if I'm wrong (newbie alert), but...

    Well, correct me if I'm wrong (newbie alert), but the difference in my brain is that Windows API is written in C. While C... is C. Which I thought was mostly written in assembly language (which I...
  20. Replies
    33
    Views
    5,328

    Awesome, I've been hazed! And I agree, I'm sure...

    Awesome, I've been hazed! And I agree, I'm sure it could have been much worse, and I'm sure I've been a bigger jerk to people on other forums for asking stupid questions repeatedly. :D
  21. Replies
    33
    Views
    5,328

    Thank you, I guess that helps most. I did sort...

    Thank you, I guess that helps most. I did sort of find a reference to it in winbase.h that I missed before. I know I don't *need* this info to solve my problem... it's more just curiosity. Coming...
  22. Replies
    33
    Views
    5,328

    Well, if you look at the example here:...

    Well, if you look at the example here:
    FindFirstFile Function (Windows)

    There are only 3 #include lines at the top of the program, and none of those .h files define the function "FindFirstFile"...
  23. Replies
    33
    Views
    5,328

    Thank you so much everybody for the quick...

    Thank you so much everybody for the quick answers.





    Really stupid question incoming:

    I don't really have experience using external API's. So if I am using a function called...
  24. Replies
    33
    Views
    5,328

    Thanks for the reply. I am pretty sure I'd like...

    Thanks for the reply. I am pretty sure I'd like to stick with Windows.

    I just found out about something called dirent.h, is that something that could help me?
  25. Replies
    33
    Views
    5,328

    Advice needed for how to approach project

    I am a relatively new programmer with a decent foundation in Java (went through the entire Headfirst book last month), but I am much weaker with C/C++. I plan on going through a more comprehensive...
Results 1 to 25 of 36
Page 1 of 2 1 2