Search:

Type: Posts; User: Buckeye Bing

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    763

    Trying to write to file via function. Loop writes...

    Trying to write to file via function. Loop writes to screen properly but same syntax in the write_report function 'i' does not increment. ??? Thanks for help.

    Before anybody answers this... I see...
  2. Replies
    2
    Views
    763

    For loop not looping

    Trying to write to file via function. Loop writes to screen properly but same syntax in the write_report function 'i' does not increment. ??? Thanks for help.



    #include <stdio.h>#include...
  3. Thanks much. Appreciate the help.:biggrin: ...

    Thanks much. Appreciate the help.:biggrin:

    Looks like I got a little sloppy but also learned a couple things. Works now. For loop also needed to define low and high but does return the correct...
  4. Developing an enhancement to existing program... with errors.

    I had written, with considerable help from this forum, a program the computes the vapor liquid equilibria of a mixture. Now adding a second part that uses the VLE arrays to compute various 'states'...
  5. Replies
    6
    Views
    1,514

    Success

    Thank you for the detailed lesson. All seems so simple now. Also understand clearly now how sizeof is used to determine array length and size_t is used as a for loop variable. Good learning there.
    ...
  6. Replies
    6
    Views
    1,514

    I'm misinterpreting something. Getting errors I...

    I'm misinterpreting something. Getting errors I don't understand. Doesn't help that I'm still new to arrays/pointers. Punching above my weight, but trying to learn.


    Goal is to pass the array of...
  7. Replies
    5
    Views
    1,335

    Use getch(0) to pause your program. It will...

    Use getch(0) to pause your program. It will continue when you hit any key.
    If you want it to be the 'return' key' its a little more involved.
  8. Replies
    6
    Views
    1,514

    Your return statement is malformed. :o:o:o Think...

    Your return statement is malformed. :o:o:o
    Think I'd know better by now.

    Also a bit chagrined I've omitted some of the keywords handed to me on a platter. :o

    Your other corrections and...
  9. Replies
    6
    Views
    1,514

    Expected expression... error

    I've revised calc_abv function proposed by laseright and hodor by shifting the array of coefficients to main(). In this manner I can use the same code for the inverse function, calc abw for abv. Just...
  10. Replies
    27
    Views
    2,714

    Thank you for your review and advice. Yes, I...

    Thank you for your review and advice.


    Yes, I found that eventually. In fact, the pointer created the problem. The first pass returned a correct value of 100 (boil pt of water). When the...
  11. Replies
    27
    Views
    2,714

    Until we have a quantum theory of non ideal...

    Until we have a quantum theory of non ideal mixtures...:biggrin:

    I think there's some pretty good data out there but mostly behind pay walls. Dortmund Data Bank is a good source but they are only...
  12. Replies
    27
    Views
    2,714

    For the record: The source data are from Perry's...

    For the record: The source data are from Perry's Chemical Engineering Handbook - 7th ed. Table 2-111 "Densities of Mixtures of (ethanol and water) at 20 deg C. Edwin Croissant fit the data at...
  13. Replies
    27
    Views
    2,714

    [COLOR=#333333] Nice lesson in display. Thank...

    [COLOR=#333333]

    Nice lesson in display. Thank you for that.



    Astute. :cool:
  14. Replies
    27
    Views
    2,714

    Not constants, per se; but coefficients to an...

    Not constants, per se; but coefficients to an empirical model. Valid only at 20 deg C. I would have preferred to use the original octic polynomial shown in the image.
    16201

    But without an...
  15. Replies
    27
    Views
    2,714

    Wow! Just simply wow. I wouldn't have expected...

    Wow!

    Just simply wow. I wouldn't have expected such a thorough and constructive review of my code. Besides improving my program your suggestions have expanded my knowledge of good programming...
  16. Replies
    27
    Views
    2,714

    True. For brevity, I only showed the section of...

    True. For brevity, I only showed the section of code I thought pertinent to the perceived problem. Further, I updated V1 with some features from V2 that do work. Btw, the V1 psat declaration does...
  17. Replies
    27
    Views
    2,714

    Thank you so much for your review and comments....

    Thank you so much for your review and comments. Assistance through the use of ones time is an appreciated gift. To squander that by misstatement or error is discourteous at best. My apologies on that...
  18. Replies
    27
    Views
    2,714

    Thank you laserlight. Passing seed_temp by...

    Thank you laserlight.
    Passing seed_temp by reference does work fine. But it takes a while to run through all the iterations

    The psat declaration is "float calc_psat (float, float, float , float...
  19. Replies
    27
    Views
    2,714

    Pointer help

    Hello, I am a self taught in C, and new at that. I think its a stretch to call myself a programmer. :)

    In the first snippet, I pass the variable seed_temp to the psat function and it works...
Results 1 to 19 of 19