Arranging a file into alphabetical order.

This is a discussion on Arranging a file into alphabetical order. within the C Programming forums, part of the General Programming Boards category; FTN95? As in Fortran 95? Really? Well, I'm not familiar with it, but ... uh ... well, that seems bizarre. ...

  1. #16
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    FTN95? As in Fortran 95? Really?

    Well, I'm not familiar with it, but ... uh ... well, that seems bizarre. The example compiles fine with gcc, and converting from void* to char* really shouldn't be an error, so right now I'm giving a thumbs down to this FTN95 thing.

  2. #17
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    What that error message is saying is that qsort on your compiler, needs a const char pointer, instead of a const void pointer. Which is *really* non-standard.

    Can you d/l and use a newer, free compiler? I've not heard of "FTN95 silverfrost", but based on this, I'm *not* impressed.

  3. #18
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,295
    I would expect any C compiler to have a problem with the first line:
    Code:
    #<stdio.h>
    the word 'include' should be in there.

    "an error" is never the right thing to say on a forum. Always post exact error or crash messages.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  4. #19
    Registered User
    Join Date
    Feb 2009
    Posts
    10
    Thanks guys,
    appreciate all the trouble u went through to sort it out, i'll be sure to read up a bit more before I come here again to pester y'all.

    Night!

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File Writing Problem
    By polskash in forum C Programming
    Replies: 3
    Last Post: 02-13-2009, 09:47 AM
  2. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  5. Replies: 3
    Last Post: 03-04-2005, 01:46 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21