Search:

Type: Posts; User: matthughes

Page 1 of 2 1 2

Search: Search took 0.02 seconds; generated 24 minute(s) ago.

  1. Replies
    5
    Views
    1,291

    i have to use sscanf and i am not familiar with...

    i have to use sscanf and i am not familiar with this
  2. Replies
    5
    Views
    1,291

    sscanf problems

    I have made a program to accept integers only however if i put a 25e in it it still works how do i fix it?



    char line[MAXLINE];
    int error, n;

    do
    {
    printf("Input a positive integer: ...
  3. I got vb 2005 and after you hit build and start...

    I got vb 2005 and after you hit build and start without debugging it will give you errors and then it will say win32 exception .... then it will ask you to debugg it now. It is all in the handbook
  4. Replies
    8
    Views
    2,167

    Wow thanks for explaining it like that the way I...

    Wow thanks for explaining it like that the way I had it I couldnt sort the grades between students and the class average and the first one that pulled up would distort the averages of the other...
  5. Replies
    8
    Views
    2,167

    I am so novice beginner that this is all I come...

    I am so novice beginner that this is all I come up with


    for (i = 0; i < length; i++)
    {
    if(class[i].grade == 'A' && class[i].student_id == 1)
    total += 4, gradecnt +=1;...
  6. Replies
    8
    Views
    2,167

    I cleaned it up and put that snippet of code in ....

    I cleaned it up and put that snippet of code in . It prints out the name and Grade like this
    Walker A
    Walker B
    I need to add the grades of each student and divide them by the grades and show the...
  7. Replies
    8
    Views
    2,167

    gpa program not working

    I am trying to complete an example in my book and I dont want to go any further until I complete it. It wants me write a function that prints the average for each student in a class and prints the...
  8. Replies
    8
    Views
    1,901

    Thanks MacGyver!!

    Thanks MacGyver!!
  9. Replies
    8
    Views
    1,901

    So passing a structure as a parameter is not...

    So passing a structure as a parameter is not allowed?
  10. Replies
    8
    Views
    1,901

    Can you elaborate MacGyver?

    Can you elaborate MacGyver?
  11. Replies
    8
    Views
    1,901

    pointer to structure question

    What is the advantage of usinga pointer to a structure as a parameter to a funciton, instead of the structure itself?
    I think it makes it more efficient because the structure is not copied. Am I...
  12. Thread: recursive ?

    by matthughes
    Replies
    6
    Views
    1,447

    reply

    easy does it I didnt mean to make u upset
  13. Thread: am I blind

    by matthughes
    Replies
    5
    Views
    1,254

    Thank you for the thorough explanation i was...

    Thank you for the thorough explanation i was getting wrapped around the == when I thought it was supposed to be = and well you have outdone yourself!
  14. Thread: element ?

    by matthughes
    Replies
    7
    Views
    1,385

    i got it people it returns the number of elements...

    i got it people it returns the number of elements equal to x!!!
  15. Thread: am I blind

    by matthughes
    Replies
    5
    Views
    1,254

    am I blind

    int Count(float A[], int Size, float X)
    {
    if (Size <= 0)
    {
    return 0;
    }
    else
    return (A[0] == X) + count(A + 1, Size - 1, X);
    }
  16. Thread: element ?

    by matthughes
    Replies
    7
    Views
    1,385

    instead of a it was supposed to be return 0;

    instead of a it was supposed to be
    return 0;
  17. Thread: element ?

    by matthughes
    Replies
    7
    Views
    1,385

    Does it return the number of elements in a then?

    Does it return the number of elements in a then?
  18. Thread: element ?

    by matthughes
    Replies
    7
    Views
    1,385

    element ?

    I have a question about the elements of A in the following:



    int Tally(float A[], int Size, float X)
    {
    if (Size <= 0){ /* to see if it is 0 or neg numb and returns a*/
    return...
  19. Replies
    3
    Views
    1,220

    I get it I am so stupid if negative number is not...

    I get it I am so stupid if negative number is not equal to 0 and the--N just keeps decreasing it keepin it from ever equaling zero wow!
  20. Replies
    3
    Views
    1,220

    Ugly recursion

    I think i have a bad function



    void fill_me(int A[ ], int N)
    {
    if (N != 0) /* if N is not equal to zero do*/
    {
    --N; /*decrease N*/
    A[N] = N;/* this...
  21. Thread: recursive ?

    by matthughes
    Replies
    6
    Views
    1,447

    Thanks you guys shood be c professors your make...

    Thanks you guys shood be c professors your make me understand better than my instructors
  22. Thread: recursive ?

    by matthughes
    Replies
    6
    Views
    1,447

    recursive ?

    Given this snippet i know it sets the first element of the array A to zero but what about the rest of the arrays dont they increase while the size decrements untilz size is 0?



    void Mystery...
  23. Replies
    4
    Views
    1,096

    if i had char a[ ] = "cba", *p = a; then ++*P...

    if i had
    char a[ ] = "cba", *p = a;
    then ++*P would b equal to c right??i am confused now
  24. Replies
    4
    Views
    1,096

    expression question

    I have a question is *++p and ++*p legal expressions i have seen *++p used however i have not seen ++*p put in to use
  25. Replies
    12
    Views
    2,587

    Ok it is a transportation element I still am...

    Ok it is a transportation element I still am boggled as to how to make the ouput look like
    Numbers entered: 2 3 4 5 6 9 8 7
    next pass:
Results 1 to 25 of 27
Page 1 of 2 1 2