Search:

Type: Posts; User: uural4792

Search: Search took 0.01 seconds.

  1. Replies
    18
    Views
    3,028

    I see.. Although the first reply fixed my...

    I see..

    Although the first reply fixed my problem I will definitely bookmark this page to make sure I know what I'm doing if I face function errors in the future. You guys have been a great help....
  2. Replies
    18
    Views
    3,028

    These simple fixes drive me insane.. Thank you so...

    These simple fixes drive me insane.. Thank you so much. I appreciate your help. Fixed my problem!
  3. Replies
    18
    Views
    3,028

    Getting a function to return a string

    I'm creating a program that rates bowlers based on their average score and assigns a star value for their performance(ex : *** means their average is between 170 and 199) and I need to create a...
  4. Replies
    4
    Views
    987

    I'm getting one warning which is saying "char...

    I'm getting one warning which is saying "char format, different type arg (arg2)" which I don't really understand. We learned about argc and argv today in class and I still don't understand it fully. ...
  5. Replies
    4
    Views
    987

    A bit more complicated problem

    So I'm finally starting to get the hang of the loops and such and we were introduced to a bunch of new stuff today and had to write what to me seemed like a pretty complicated code. I looked at this...
  6. Replies
    7
    Views
    1,127

    Yes I do that. The file name for this...

    Yes I do that.

    The file name for this assignment was ex03 and I built the program by typing "gcc ex03.c -o ex03"

    I should start writing "gcc -Wall -o ex03 ex03.c" ?
  7. Replies
    7
    Views
    1,127

    *facepalm* Okay thank you. It's working...

    *facepalm*

    Okay thank you. It's working perfect now that i changed those. And my compiler doesn't have warnings, our professor forces us to use putty which doesn't have that option as far as we've...
  8. Replies
    7
    Views
    1,127

    while loop help

    I'm trying to do a problem for my class and it states that i have to use the code



    while(scanf("%lf", &salary) == 1) {

    }

    Now the code I have works when I use %d instead of %lf and I've...
  9. Replies
    16
    Views
    3,574

    Haha something like that.. :wink:

    Haha something like that.. :wink:
  10. Replies
    16
    Views
    3,574

    Alright guys so I went and got some help from a...

    Alright guys so I went and got some help from a TA and found the mistakes I was making. I needed another variable besides sum and n to make this work. The final code I ended up with was


    ...
  11. Replies
    16
    Views
    3,574

    I see.. This is my new code : int n,...

    I see..

    This is my new code :


    int n, sum;
    printf("Enter Non-Zero Integer\n");
    scanf("%d", &n);
    sum = 0;
    for( ; n >= 2 *n; ++n){
  12. Replies
    16
    Views
    3,574

    First off, thanks a lot for your help I...

    First off, thanks a lot for your help I appreciate it.

    I've fixed the things you said and have this as my code now :


    int n;
    printf("Enter A Non-Zero Integer\n");
    scanf("%d", &n);
    for( ;...
  13. Replies
    16
    Views
    3,574

    I have the following code and I'm not getting the...

    I have the following code and I'm not getting the result I want and I was wondering if you guys could lead me in the right direction.


    int n;
    printf("Enter Non-Zero Integer\n");
    scanf("%d",n);...
  14. Replies
    16
    Views
    3,574

    simple summation question

    I'm completely new to C programming, and programming in general, and I just have a quick question.

    If I am trying to find the sum of the integers from n to 2*n (ex : if n = = 5, then sum = 5 + 6...
Results 1 to 14 of 14