Search:

Type: Posts; User: NinjaFish

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. More or less, all my C primer Plus 5th edition...

    More or less, all my C primer Plus 5th edition book tells me about .h files is why you'd use them, how not to use them, and how to call them in a program. I'v not come across anything in it. And...
  2. Does this mean header files go into a specific...

    Does this mean header files go into a specific type of filer, or is it just a text document? Because from what i'v tried, it didn't work.
  3. C and .h files -- how do they work // how do you use them?

    I'v had my guesses at how .h files work. I'v read up why to use them, however i'v not come across any good explanation that says "Here dummy, this is how you make them work".

    My initial guess is,...
  4. Replies
    3
    Views
    1,599

    How to implement a pause

    Just for the sake of wanting my own programs to not scroll off endlessly (Gets annoying after a time), I am wondering if C has any way to pause the program after it scrolls through a determined (or...
  5. Replies
    28
    Views
    2,547

    Thanks alot. I'll give this a good looking over...

    Thanks alot. I'll give this a good looking over and hopefully I can use this to make my own table and such. Thanks alot :)
  6. Replies
    28
    Views
    2,547

    Well as of now I can't do anything. Since my I'm...

    Well as of now I can't do anything. Since my I'm going to have to use pow(), I need to convert my code to double. However, doing so doesn't seem to be producing the same output I want (as in, it...
  7. Replies
    28
    Views
    2,547

    Its given in percent, and apparently that is...

    Its given in percent, and apparently that is supposed to change it do decimal(Thats what the explanation with the formula said anyways.

    And floating point was optional of three others to make the...
  8. Replies
    28
    Views
    2,547

    Well I just tried changing the variables from...

    Well I just tried changing the variables from 'int' to double, and everything just went to hell.
  9. Replies
    28
    Views
    2,547

    Don't worry, took me a few hours of typing...

    Don't worry, took me a few hours of typing principle into my code to get used to typing it right.
  10. Replies
    28
    Views
    2,547

    edited

    edited
  11. Replies
    28
    Views
    2,547

    Ah, I assume pow uses double, since i'm getting...

    Ah, I assume pow uses double, since i'm getting conversion errors all over the place now *facepalm*
  12. Replies
    28
    Views
    2,547

    I would of done with with scanf and printf the...

    I would of done with with scanf and printf the entire time if I could of aha. It's a requirement, which is stupid, I know.
    And term is entered by user.
  13. Replies
    28
    Views
    2,547

    A few of those term's didn't really make much...

    A few of those term's didn't really make much sense to me, unfortunately, lol.
  14. Replies
    28
    Views
    2,547

    As of right now, no. I tried payment =...

    As of right now, no. I tried

    payment = (myarray[0] * myarray[1]) / 1 - (pow(myarray[1] (-myarray[2])) );
    However, now 'i'm getting myarray[1] cannot be used as a function' and it worked a minute...
  15. Replies
    28
    Views
    2,547

    I probably should of pasted my entire code, I...

    I probably should of pasted my entire code, I will if you'd like, but it's because the requirements of the program require me to use a separate function to get the three data values you said, and...
  16. Replies
    28
    Views
    2,547

    There are also dozens of variations to that, such...

    There are also dozens of variations to that, such as --i, ++i and i--.
    It's also why I said my loop is probably wrong. You didn't really say anything I hadn't already pointed out.
  17. Replies
    28
    Views
    2,547

    Question regarding loop and mathematics

    As of right now, i'v spent the better half of the past 24 hours trying to make my program output the right answers to a given formula, using printf. I'll post the given equation, what I got out of...
  18. Replies
    7
    Views
    943

    Thanks for clearing that up :). Also, now i'm...

    Thanks for clearing that up :).

    Also, now i'm running into a few compiler errors on the 'while' section.


    do{ //Printf showing options to user as what each number represents for...
  19. Replies
    7
    Views
    943

    Excellent idea :). My book actually never...

    Excellent idea :). My book actually never mentioned Do loops, and in C++ I never understood the difference between do and while loops. But I def see why you'd use them more often in C :). Thanks alot!
  20. Replies
    7
    Views
    943

    Anyone know a fix to this?

    I'v been altering my program (for my own reasons I suppose. Just trying to get some more understanding of how different things work). At first, it worked fine, still does except for one small...
  21. Replies
    1
    Views
    786

    Question about clearing prompt

    Nevermind, can be removed. just figured it out
  22. Replies
    55
    Views
    5,987

    Now I understand what you mean. I never realized...

    Now I understand what you mean. I never realized that the values we're automatically passed into the main function this way. I thought you had to return the entire array back. But changing my return...
  23. Replies
    55
    Views
    5,987

    So keeping my int menu(void) function the same...

    So keeping my int menu(void) function the same will still work?
    Because after changing each element in the array to what I want it to be, I return myarray[]; but the program will either compile and...
  24. Replies
    55
    Views
    5,987

    Oh alright.

    Oh alright.
  25. Replies
    55
    Views
    5,987

    I guess this means I could simply just use int...

    I guess this means I could simply just use int menu (int *myarray, int size_10) and it will give me the space I need to store them

    Also, do I need anything specific in my menu function for the...
Results 1 to 25 of 64
Page 1 of 3 1 2 3