Search:

Type: Posts; User: MSF1981

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: Career advice

    by MSF1981
    Replies
    1
    Views
    1,599

    Career advice

    Does anyone have any suggestions on how to get an entry level position as a C developer? I'm 28 and have an unrelated degree. I am just wrapping up a year long C programming course. A full on CS...
  2. Thread: File I/O

    by MSF1981
    Replies
    9
    Views
    3,384

    Because I'm a would-be programmer

    Because I'm a would-be programmer
  3. Thread: File I/O

    by MSF1981
    Replies
    9
    Views
    3,384

    Thanks for the help mates!

    Thanks for the help mates!
  4. Thread: File I/O

    by MSF1981
    Replies
    9
    Views
    3,384

    File I/O

    Okay, here is some low hanging fruit.

    I have a text file with a million rows (1 record per row). Each record is a string consisting of numbers, followed by an asterisk, followed by a single space....
  5. Replies
    31
    Views
    27,138

    Thanks! What would the syntax be if I were...

    Thanks!

    What would the syntax be if I were trying to compare structure members?



    typedef struct car
    {
    int year;
    char model[50];
  6. Replies
    31
    Views
    27,138

    Yup! Just realized that before coming back to...

    Yup! Just realized that before coming back to this posting. This fixed it!


    p_sortstring = sortstring;


    Thats funny, qsort is expecting a pointer to a function. Why does just passing the name...
  7. Replies
    31
    Views
    27,138

    After changing my call to qsort qsort( starr,...

    After changing my call to qsort
    qsort( starr, count, sizeof(char*), p_sortstring );
    and changing my function to
    static int sortstring( const void *str1, const void *str2 )
    {
    const char *rec1...
  8. Replies
    31
    Views
    27,138

    Thanks for the help!

    Thanks for the help!
  9. Replies
    31
    Views
    27,138

    Using qsort to sort an array of strings

    I understand that qsort will pass my function two char**'s and use it to sort my array of strings. Can someone help me with comparing two strings that were passed to my function as char**'s?

    ...
  10. Need help with allocating an array with calloc

    I have a binary file that has a large number of records in it. All I need to do is open the file and read it into memory. I am new to programming so bare with me. When my program reaches the...
  11. Replies
    4
    Views
    3,567

    Need help parsing string (homework)

    I'm trying to parse the following string and store it in a structure

    Example String:
    "01","35083","AL","HOLLY POND",86.617441,34.190085,3838,0.00095

    01 - Numeric code (int)
    35083 - Zip code...
  12. Replies
    2
    Views
    2,180

    How do you validate sscanf?

    I'm trying to fail when the string being parsed is 1. second field in string is too big, 2. Expected float is not a float, 3. more than 2 fields in string. What am I dong wrong?


    static int...
  13. Thank you very much carrotcake1029 and Elysia!

    Thank you very much carrotcake1029 and Elysia!
  14. That was helpful. Thank you. Can you explain the...

    That was helpful. Thank you. Can you explain the preprocessor directives in other.h?
  15. How to create a C project with multiple source files

    Hi All,

    How do I create a project using multiple source files?

    I understand the concept of including header files but I don't really know how to combine other source files.

    Here is what I...
  16. How to write a function which returns a structure

    What is the prototype and definition of a function which returns a structure?
  17. Replies
    8
    Views
    4,245

    Okay, I think I'm getting closer. My instructor...

    Okay, I think I'm getting closer. My instructor said not to use sizeof(stuArray). But that wasn't my only problem to begin with. I think my problem lies with accessing the average member of the...
  18. Replies
    8
    Views
    4,245

    it is supposed to average all the grades of each...

    it is supposed to average all the grades of each stuArray[i].grade.

    Maybe the rest of the code would help clarify things.
    http://www.box.net/shared/vtcg3h2mek
  19. Replies
    8
    Views
    4,245

    I'm getting a syntax error saying "invalid...

    I'm getting a syntax error saying "invalid operands to binary +"


    float classAverage[4];
    int i;
    int j;

    for (i = 0; i < sizeof(stuArray); i++)
    {
  20. Replies
    8
    Views
    4,245

    LOL! I spoke too soon. I had forgot to comment...

    LOL! I spoke too soon. I had forgot to comment out my old code. Uhhg!
  21. Replies
    8
    Views
    4,245

    Ahh ha!! Thanks!!! This worked for me... int...

    Ahh ha!! Thanks!!! This worked for me...


    int i;
    int j;

    for (i = 0; i < sizeof(stuArray); i++)
    {

    for (j = 0; j < sizeof(stuArray); j++)
  22. Replies
    8
    Views
    4,245

    using a for loop to initialize an array

    I can't seem to figure this out. How can I use a for loop to accomplish the following?


    classAverage[0] =
    (stuArray[0].grade[0] +
    stuArray[1].grade[0] +
    stuArray[2].grade[0] +
    ...
  23. Replies
    3
    Views
    1,239

    Thanks! I'll give that a shot!

    Thanks! I'll give that a shot!
  24. Replies
    3
    Views
    1,239

    Trouble with input validation

    I can't seem to control this loop the way I want. I want to scan and validate input, if input incorrect, then print an error message and scan input again. The input is validated correctly but instead...
  25. Replies
    5
    Views
    3,689

    Wow, autocompletion in Xcode is way better than...

    Wow, autocompletion in Xcode is way better than IntelliSense then. Autocompletion kicks on in Xcode when prototypes and variables are declared. Unlike in VS. So far I have only seen IntelliSense...
Results 1 to 25 of 39
Page 1 of 2 1 2