Search:

Type: Posts; User: rhysmeister

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    3,652

    Thanks, didn't think to do a man select!! yes...

    Thanks, didn't think to do a man select!! yes have the serial resources. Thanks to all!
  2. Replies
    10
    Views
    3,652

    Yes I know C. This is not a user defined function...

    Yes I know C. This is not a user defined function and it compiles under gcc / I thought gcc was pretty much standard c but maybe it's specific to it. The select statement is used to wait for data to...
  3. Replies
    10
    Views
    3,652

    OK, I posted a question about serial port...

    OK, I posted a question about serial port programming on www.linuxforum.com/forums. They suggested the use of ther select statement for something I want to do.


    select(fd+1, &rdfs, NULL, NULL,...
  4. Replies
    10
    Views
    3,652

    SELECT statement

    Can anyone point me in the direction of some documentation for the 'select' statement in C. Checked my reference books and google but can't find anything. Cheers!
  5. Replies
    5
    Views
    1,079

    Think I have something that's almost there but...

    Think I have something that's almost there but when I call it it doesn't seem to output any of the list items.



    void dolatest(string fname, BuckDoubleLinkedList<bookwithposition>& lst)
    {
    int...
  6. Replies
    5
    Views
    1,079

    Just want to get this clear. I can use this with...

    Just want to get this clear. I can use this with my current program, something like...



    ifstream is(fname.c_str(), ios::binary);//open binary input file
    std::const_iterator iRandom = lst.end()...
  7. Replies
    5
    Views
    1,079

    It's a legacy application running on an ancient...

    It's a legacy application running on an ancient dos machine. Can't really start messing around with the whole structure.
  8. Replies
    5
    Views
    1,079

    Adapting this function

    I've been messing around with a few new things. This function prints out entries from a binary file...



    void file2list(string fname, BuckDoubleLinkedList<bookwithposition>& lst)
    {
    int...
  9. Replies
    1
    Views
    820

    Small errors

    I have just added two variables to an object, which was already working, to a class of mine.. author and isbn. Here is a section of the code.



    #include<iostream>
    #include<fstream>...
  10. Replies
    6
    Views
    1,973

    Thanks for your thoughts!

    Thanks for your thoughts!
  11. Replies
    6
    Views
    1,973

    OK the information store should contain... 1....

    OK the information store should contain...

    1. Title
    2. Author
    3. Reference code
    4. Copy type.

    There would be an an unlimited number of these. This is simply a program to index research...
  12. Replies
    6
    Views
    1,973

    The information grouping will consist of 4/5 data...

    The information grouping will consist of 4/5 data items and any number of individual records. Can you explain why a linked list would be better?
  13. Replies
    6
    Views
    1,973

    Linked List or Binary Search Tree

    Quick question...

    I am writing a program to record entries with multiple data entries (4-5). I am just wondering which data structure would be best to store this in, a Linked list or a Binary...
  14. Replies
    4
    Views
    956

    Searching a binary file

    I am trying to write a function which searches a binary file for the occurance of a particular string of characters. I've made some progress but have got a little stuck. Here's what I have come up...
  15. Replies
    6
    Views
    3,120

    I've found this in a text book but am having...

    I've found this in a text book but am having trouble understanding it

    den2base(x, y) = 0 if x <= 0
    den2base(x, y) = den2base(x/y, y) mult 10) + (x mod y)

    I've tried to replicate...
  16. Replies
    6
    Views
    3,120

    Thank you both for your replies. I'm not using a...

    Thank you both for your replies. I'm not using a compatiable compiler for your example Doug, but thanks anyway. Salem having a little trouble with your suggestion think it will require a step where...
  17. Replies
    6
    Views
    3,120

    Converting denary to other bases

    Could anyone supply me with an algoritm to convert decimal numbers to other bases, 2 to 10 and above 10 if possible. Many thanks.
Results 1 to 17 of 17