Thread: How do i search for files with C

  1. #1
    Registered User Master_Rondal's Avatar
    Join Date
    Oct 2002
    Posts
    9

    Talking How do i search for files with C

    Hi
    I was just wondering the code to search for....lets say the date...without haveing to prompt the user to enter it...how is it done?...


    Thank You


  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    *gasp* why in the hell do I see this question asked so much? The question itself is indeed one that a programmer will eventually ask but it seems that people forget that these boards come equipped with a search. I have answered this question on several occasions and even posted various code, and I'm not the only one do this!

    This question should make its way to the FAQ!

  3. #3
    Registered User Master_Rondal's Avatar
    Join Date
    Oct 2002
    Posts
    9
    i am a novice C programmer and i was just wonderin ...sorry...i'm new to this site as well...but i have another question...i program C out of MS visual C++ and wanted to use the exit() function...but the stupid editor/compiler didnt recognize my
    #include <stdlib.h> ...it shot me an error saying it wasnt valid...

    WTF!!!

  4. #4
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    post the exact error message, an invalid command may mean it was open (if you were editing it), check the header is in your include directory aswell as the .lib file for it

    stdlib (afaik) is part of ansi C, so make sure youre using an ansi compatible compiler.

    check the online help for the error messages
    Monday - what a way to spend a seventh of your life

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Logical errors with seach function
    By Taka in forum C Programming
    Replies: 4
    Last Post: 09-18-2006, 05:20 AM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM