Search:

Type: Posts; User: BSmith4740

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,486

    Randomizing dealing program C

    #include <stdio.h>

    #include <stdlib.h>

    #include <time.h>

    struct card {
    char *face;
    char *suit;
    };
  2. Replies
    18
    Views
    2,648

    I am a dumb arse tabstop think you.

    I am a dumb arse tabstop think you.
  3. Replies
    18
    Views
    2,648

    The avg would print as the first number it...

    The avg would print as the first number it obtained. Someone with no programming skills like myself would think if it were grabbing the first number it would divide the number by 5 because that's in...
  4. Replies
    18
    Views
    2,648

    void printname ( Grade *t ) { int i; int...

    void printname ( Grade *t )
    {
    int i;
    int total = 0;
    float avg;

    printf("&#37;s\n", t->firstname);
    printf("%s\n", t->lastname);

    for ( i = 0; i < 5; i++ ){
  5. Replies
    18
    Views
    2,648

    #include #include ...

    #include <stdio.h>
    #include <stdlib.h>



    typedef struct Grade {
    char *firstname;
    char *lastname;
    int *grades;
    } Grade;
  6. Replies
    18
    Views
    2,648

    However it will not divide the first number by 5...

    However it will not divide the first number by 5 which makes no sense to me. If the total = 0 and its grabbing the first number . It should atleast divide the first number by 5 not just print the...
  7. Replies
    18
    Views
    2,648

    #include #include ...

    #include <stdio.h>
    #include <stdlib.h>



    typedef struct Grade {
    char *firstname;
    char *lastname;
    int *grades;
    } Grade;
  8. Replies
    18
    Views
    2,648

    #include #include ...

    #include <stdio.h>
    #include <stdlib.h>



    typedef struct Grade {
    char *firstname;
    char *lastname;
    int *grades;
    } Grade;
  9. Replies
    18
    Views
    2,648

    Structures in C

    I am trying to write a program involving structures. The program must have a function that prints the first name and last name for a given student. This function has to calculate the student's...
  10. Replies
    2
    Views
    1,413

    I think I figured it out. Thanks anyway.

    I think I figured it out. Thanks anyway.
  11. Replies
    2
    Views
    1,413

    printing char **array;

    #include <stdio.h>

    int main(void)
    {

    char **array;

    while ( **array != '\0' ){
    printf("%s",*array);
    printf("\n");
  12. Pointers, malloc, and free are the only way to do...

    Pointers, malloc, and free are the only way to do this?


    Is this better? Eliza.

    Guess teach just expects us to pick this up on our own. lol Is malloc and free C or C++? I am assuming...
  13. I changed size to 1 at the beginning of main. I...

    I changed size to 1 at the beginning of main. I thought maybe my for loop was off for copying the array. I still get a segmentation fault.

    How do you resize an array in C if you can't declare...
  14. not print.

    not print.
  15. change the function prototype to int...

    change the function prototype to




    int *addInt ( int [ ], int, int);



    Warning go away but it does print. It just says segmentation fault.
  16. However, I can't do all of this in main. You...

    However, I can't do all of this in main. You have to use functions to write the program. For instance I can't declare.

    int a [ 20 ];

    The program has to print only what the user adds and stop...
  17. I am trying to access an array add intengers to...

    I am trying to access an array add intengers to it, delete whatever the user wants to delete from the array and sort it.
  18. I didn't make temp an intenger of arrays on line...

    I didn't make temp an intenger of arrays on line 94?
  19. The first warning is on line 31

    The first warning is on line 31
  20. casting problems warnings segmentation fault.

    #include <stdio.h>
    2 #include <stdlib.h>
    3 /* function prototypes */
    4 int printMenu();
    5 void printArray ( int [ ], int );
    6 int addInt ( int [ ], int, int);
    7 int delINT ( int [...
  21. Replies
    32
    Views
    5,626

    argument = values values have types int,...

    argument = values

    values have types int, float, long, double, unsigned intenger, etc

    Specify those value types when you define the function.

    function prototype

    return name ( take in )
    {
  22. Replies
    32
    Views
    5,626

    If the above is true. One could think of the...

    If the above is true. One could think of the function call has x

    length = x (what i take in);

    x() is just substituting whatever is in the blocks?




    return value x ( what I take in )
  23. Replies
    32
    Views
    5,626

    but if you look in the function prototype I am...

    but if you look in the function prototype I am returning an intenger. Whatever the function takes in the function prototype it has to be there in the function call. If that is true. I don't see...
  24. Replies
    32
    Views
    5,626

    Obviously it does not

    Obviously it does not
  25. Replies
    32
    Views
    5,626

    An amateur like myself would also think that ...

    An amateur like myself would also think that

    length = stringlength (count);

    should also work if the above worked.
Results 1 to 25 of 93
Page 1 of 4 1 2 3 4