Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. darr01

    Olympus MOS332S optical disk driver for WinXP

    Thanks Murray, guess that's what I suspected. Anyway, thanks for ur help. Appreciate it. Regards, Darr
  2. darr01

    Olympus MOS332S optical disk driver for WinXP

    Hi, guys. I am trying to find Olympus Optical Disk (model MOS332S)driver to be used for WinXP. Don't know whether it exist or not as it is quite an old drive already (around 1997). Have tried to find the driver at www.driverguide.com (they have the Macintosh version but not Windows version)...
  3. darr01

    Problem with editing FILE

    Additional information that I gathered for this problem: I use ftell to check the position of the pointers while adding each record. The problem lies in the addition of the first record. Sometimes (this occurs at random) when I add the first record to a new file (txt file), the position of the...
  4. darr01

    Problem with editing FILE

    Hi, guys. I have another problem which have been trying to solve without any solution for more than a month. I am doing a simple database program using the struct data structure. I managed to do add, delete, search and display the records entered without any problems but when it comes to edit...
  5. darr01

    How to return a array string to main program

    Thanks guys for the info. Regards, Darryl
  6. darr01

    How to return a array string to main program

    Hi guys. I have a function which needs to return a string (which is in an array)back to the main program. The function prototype is: char arrString(void); char arrString() { char tempString1[15], tempString2[15]; statements... statements... strcpy(tempString1, tempString2)...
  7. darr01

    How to change DOS background to white for screen capture

    Thanks guys for the fast respond. Appreciate it very much. Darr
  8. darr01

    How to change DOS background to white for screen capture

    Hi, guys. I am doing a computer project and need to print out some DOS screen capture of my progam. In order to save lots of ink, I need to change my black DOS background to white and the text to black. Can this be done in Windows XP Professional or do I need do it using a graphic program...
  9. darr01

    How to detect if int input is not a digit

    Thanks guys for all your input. Appreciate it very much. I will all ur answers a try. Darr
  10. darr01

    How to detect if int input is not a digit

    Hi, guys. How do you detect whether an input with 'int' datatype is an integer and not letters or other characters? Is there a built-in function in C that allows one to do this? I know that if I use the 'char' datatype, I can check whether the input is a digit or not by using isdigit(int c)...
  11. darr01

    How to convert a string into float or double

    Thanks, guys for the solutions. Regards, Darryl
  12. darr01

    How to convert a string into float or double

    Hi, guys. I am having trouble converting numbers (which is in String datatype) into float or double. I need to add these numbers and return the sum of it to 2 decimal points. I know this is quite easy but I have search in quite a lot of info but don't know exactly how to use any methods or...
  13. darr01

    How to Capture String Input ?

    Thanks for the fast response. Will give it a try. Regards, Darryl
  14. darr01

    How to Capture String Input ?

    Can anyone show me how to capture a string that is input by a user? I am coding a simple console (DOS based) interface that needs some user input. For e.g. asking a user to input their name and search an array or link-list for that name. I know I can use System.in.read() to capture integer but...
  15. darr01

    Problem with leftover characters in FILE input

    Hi, brudnakm. Thanks for your response. I am actually pretty new to C and find it really interesting. So much to learn, so little time. I guess I lack practical experience. That's why I find this forum a good way to improve my skills. Well, thanks again. Regards, Darryl H.
  16. darr01

    Problem with leftover characters in FILE input

    Hi, Brudnakm. Thanks for your fast response. Here is my code. I've shortened it to exclude certain lines as it is too long. //Declaring pointer to FILE FILE *bookPtr; //Defining structure struct bookData { char isbn[14]; char title[100]; char author[100]; char publisher[100]; char...
  17. darr01

    Problem with leftover characters in FILE input

    Hi, guys. I am having problem with my FILE input. Whenever I input a structured data into my FILE, my first record displays correctly. But the subsequent entries contain the left over characters from the previous input. Say for e.g. I entered a title for a book as: Teach Yourself C Programming...
  18. darr01

    Problem in search function to read data in file using fseek and fread

    Hi, gonzilla. Thanks for your reply. Yes, I have realize that my problem lies in the fact that I have added formatting into my file. The file should only contain only my input. Now it's working fine after I remove ISBN No, Book Name etc. Thanks for all who reply. You guys have been very...
  19. darr01

    Problem in search function to read data in file using fseek and fread

    Hi, shail. Thanks for the suggestion. Actually, I am quite new to C. How do I build a parser ur talking about? Don't know if my above way is a good way of coding. Is there a better way of doing it? Thanks again, Darryl
  20. darr01

    Problem in search function to read data in file using fseek and fread

    Hi, guys. Got some problem coding fread and fseek. I have a structure as below: struct bookData { char isbn_no[14]; char BookName[100]; char Author[100]; char Publisher[100]; } item; FILE *bookPtr; //Pointer to the FILE I have managed to create a file (bookdata.txt) to enter data into. The...

Part and Inventory Search

Back
Top