Search:

Type: Posts; User: Who

Search: Search took 0.00 seconds.

  1. Replies
    13
    Views
    4,159

    Yeah, sorry about that. I would use the...

    Yeah, sorry about that. I would use the formatting tool in the compiler but I have to do this on a website, so I can't format it :(
  2. Replies
    13
    Views
    4,159

    Yeah, I fixed that. I got confused so I looked...

    Yeah, I fixed that. I got confused so I looked online for some help first. Heres the fixed code


    int isReverse( int a[], int b[], int i )
    {
    int z;
    for (z = 0; z < i; z++)
    {
    if (a[z] !=...
  3. Replies
    13
    Views
    4,159

    Some questions on C coding :)

    Hey guys, so I have a couple questions left in which I need to figure out, however I just cant seem to get it. My brain is frying from the headaches its giving me :/

    Anywho, heres the questions:
    ...
  4. Replies
    2
    Views
    897

    Using arrays in functions

    Hey guys, so I'm having a bit of trouble putting an array in a function. I get an error in line 51 saying, "the subscripted value is neither array nor pointer nor vector." Forgive me if it might be...
  5. Replies
    3
    Views
    917

    how to sort out and drop the lowest int?

    hey guys, IM SO CLOSE to finishing this program, however I need help on how to sort out and drop the lowest int, between 8 ints. Is there any way I can do this?

    I have these ints:
    grade1, grade2,...
  6. DOH. Absolutely. Sorry for asking you to explain...

    DOH. Absolutely. Sorry for asking you to explain an obvious answer. I should've looked more closely. Thanks for your help!
  7. Could you please elaborate on that? I know what...

    Could you please elaborate on that? I know what you mean, but I'm not sure what I need to do to treat it as a pointer.

    Thanks for your time
  8. printf an int that was defined in another function?

    Hi all,
    I'm making my way through most of this assignment that I have, but now it seems like I've run into a bit of a roadblock. The issue that I'm having is not being able to printf a series of...
  9. Replies
    1
    Views
    729

    Help with "if" and "else"

    Hey all, I'm having a bit of trouble with if and else. I am supposed to make this program that asks the user to enter an even number. If the number is even, it is supposed to reply, "Thanks!" If the...
  10. Replies
    3
    Views
    955

    Oh that's interesting. I didn't know you...

    Oh that's interesting. I didn't know you literally type the word number for all numbers to go through. I feel like a dummy. Hehe.

    It helps alot when you actually say it out. Thanks man <3
  11. Replies
    3
    Views
    955

    2 quick questions on C!

    Hi guys, I have 2 quick questions on C.

    If I have a function, thisfunction (), if i want to apply multiple numbers into it, like 37, 0, 100, etc. how would i go about doing that? I'm really...
  12. You're right, it was just of the many things I've...

    You're right, it was just of the many things I've tried to get it to work. Thanks for helping out! I'm also trying to do it for another function and I'm following the steps you've shown, passing the...
  13. Printf ints that are modified in another function?

    Hello again, I'm having a terrible time getting this to work. Through the generous help of people here on the forums, I have gotten it to record the date and I can printf it either on the same...
  14. Oh I see, that fixed it, thank you! Just to...

    Oh I see, that fixed it, thank you!
    Just to clarify though, do I only need to not include the (&) when I am using the (int*) or do I not need to have it even when I am not using the (*)?
    Thanks for...
  15. I followed your advice and used the ...

    I followed your advice and used the
    printf("%d/%d/%d", month, day, year); to manually put the"/" the date out, however, when i call on the ints outside the function, its a bunch of numbers...
  16. hm, when i try to do it, the program would...

    hm, when i try to do it, the program would freeze. and now that i look at it, it made a lot more sense in my mind than it did on screen. Heres what its supposed to to look like:
    Enter purchase date...
  17. Ah, I see, it makes sense. In our class we...

    Ah, I see, it makes sense. In our class we haven't been taught strings yet, as I am still a C newbie. I was thinking about manually printf the (/) and then scanf the numbers in, and then combining...
  18. Simple C programming question when using scanf! :)

    Hey guys, I'm having trouble trying to figure out why the program throws out the steps that I've written it to do, when the user would input the / character when writing in the mm/dd/yyyy. I realized...
  19. Replies
    2
    Views
    1,722

    How to properly use a function?

    Hi guys, so I'm getting myself really confused with functions and I don't really understand them. I am given a simple task which is:


    The following program is supposed to calculate and print the...
  20. YAY! I

    YAY! I <3 YOU! I knew it was something really small. Thanks again! :D
  21. Ultra noob programming help regarding printf and floats!

    Hi all, I am having a hard time with some of my homework, specifically regarding how to printf floats. I can't seem to print the number i want out using float, it just becomes a jumbled mess.

    ...
Results 1 to 21 of 21