Search:

Type: Posts; User: dmkanz07

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Sorting Array

    by dmkanz07
    Replies
    14
    Views
    2,545

    Okay - thank you

    Okay - thank you
  2. Thread: Sorting Array

    by dmkanz07
    Replies
    14
    Views
    2,545

    That was helpful Dave. Now I still do not...

    That was helpful Dave. Now I still do not understand how C opens a binary file, extracts a specific field and then sorts it but that field. Again I think understand how C is comparing the values...
  3. Thread: Sorting Array

    by dmkanz07
    Replies
    14
    Views
    2,545

    Here is my original sort program for a text file...

    Here is my original sort program for a text file I created manually



    #include <stdio.h>
    #include <string.h>

    /* Function main begins program execution */
    int main()
    {
  4. Thread: Sorting Array

    by dmkanz07
    Replies
    14
    Views
    2,545

    Okay - I am trying to select the element but when...

    Okay - I am trying to select the element but when I try to scan in the elements I am not sure if the syntax is right


    /* Load horseData with default information */
    struct horseData sortHorse...
  5. Thread: Sorting Array

    by dmkanz07
    Replies
    14
    Views
    2,545

    Quzah I am not trying to be a pain but I dont...

    Quzah

    I am not trying to be a pain but I dont understand how in the array I can sort the structure.

    My program has the user enter in a horse and it attributes

    i.e
    name, date of birth,...
  6. Thread: Sorting Array

    by dmkanz07
    Replies
    14
    Views
    2,545

    I am not even getting to the sort - it crash at...

    I am not even getting to the sort - it crash at the while piece of the code. Any ideas why

    Thanks

    DMKanz07
  7. Thread: Sorting Array

    by dmkanz07
    Replies
    14
    Views
    2,545

    I thought my post was broken down. Thanks ...

    I thought my post was broken down.

    Thanks

    DMKanz07
  8. Thread: Sorting Array

    by dmkanz07
    Replies
    14
    Views
    2,545

    Sorting Array

    Hello all,

    I am working on a project and I am having some difficulties sorting. I am trying to read in from a binary file and sort the structure but I am not sure I have it setup correctly. Any...
  9. Replies
    2
    Views
    1,385

    Thank you

    Thank you
  10. Replies
    2
    Views
    1,385

    Clearing Screen

    Is there a way in C to clear the screen in a console application? I would like to clear the screen everytime my main menu pulls up

    Thanks

    DMKanz07
  11. Replies
    12
    Views
    3,283

    Different Route

    Okay guys I went a different direction. But I have a question about using a binary file. If I want to create horses.dat what format do I need to delimit the individial strings.

    Here is my code
    ...
  12. Replies
    12
    Views
    3,283

    Sorry about that I was focusing so much on the...

    Sorry about that I was focusing so much on the while loop I didnt check my syntax.

    Here is my code after checking it. It compiles but I get a windows error when I try to run it. Exer1_w8b.exe...
  13. Replies
    12
    Views
    3,283

    Okay I tried this but when I compile I get a...

    Okay I tried this but when I compile I get a parse error. I am trying to take the records in horses.txt and pass them to the structure horse and then print the structure to make sure it is passing...
  14. Replies
    12
    Views
    3,283

    I hope I am explaining this right (noob) What...

    I hope I am explaining this right (noob)

    What I am trying to do is read the data from a file into the structure defined as horse.

    So what I did is defined the structure


    typedef struct {
    ...
  15. Replies
    12
    Views
    3,283

    Array of Structures

    Hello everyone,

    I am writing a program that use structures and I have a couple questions. First if I am reading the data from a text file in to an array of structure how is the data laid out in...
  16. Replies
    9
    Views
    7,026

    Nadroj, I am but I just trying to get one word...

    Nadroj,

    I am but I just trying to get one word to work first. Dang I know == compares dont know why I used =.

    C is still very new to me, i should say programming is new to me

    Thanks for...
  17. Replies
    9
    Views
    7,026

    Okay I have been trying to figure out how you...

    Okay I have been trying to figure out how you test to see if the last to character are equal to 'ed' and I am stumped

    I tired




    if ( secondLast = "e" && last = "d" )
    printf( "%c\n", s...
  18. Replies
    9
    Views
    7,026

    Okay I am stuck on how i can read a series of...

    Okay I am stuck on how i can read a series of strings and print only those strings that ended with the letters "ed"

    Here is what I thought I could do is find the length of the string and the...
  19. Replies
    9
    Views
    7,026

    Printing only certain characters

    Hello Everyone,

    Is there a command that will print only certain characters. I am looking at the strstr command but not sure if this is right.

    What I am trying to do is have the user enter a...
  20. Replies
    7
    Views
    9,171

    What is the difference between gets and fgets? I...

    What is the difference between gets and fgets? I found examples of fgetc but not fgets ( Deitel C how to program ).

    DMKanz07
  21. Replies
    7
    Views
    9,171

    Does toupper only convert one character at a...

    Does toupper only convert one character at a time?

    Thanks

    DMKanz07
  22. Replies
    7
    Views
    9,171

    toupper command

    Hello everyone,

    I am working on a problem and I am not sure of the syntax for the toupper command. What I am trying to solve is when a user enters a string of characters C goes out and changes...
  23. Replies
    19
    Views
    4,024

    would the syntax be fopen ( "%s", filename, '"r"...

    would the syntax be fopen ( "%s", filename, '"r" )...

    Thanks

    DMKanz07
  24. Replies
    19
    Views
    4,024

    /* Fopen opens file; exits program if file cannot...

    /* Fopen opens file; exits program if file cannot be opened */
    if ( ( cfPtr = fopen( "unsorted_file.txt", "r" ) ) == NULL ) {
    printf( "File could not be opened\n" );
    } /* End if */...
  25. Replies
    19
    Views
    4,024

    Thanks Quzah and Koni I will attempt writing...

    Thanks Quzah and Koni

    I will attempt writing the function prototypes and post what I come up with.

    Thanks again for all the help you guys are awesome

    DMKanz07
Results 1 to 25 of 42
Page 1 of 2 1 2