Thanks, didn't think to do a man select!! yes have the serial resources. Thanks to all!
Type: Posts; User: rhysmeister
Thanks, didn't think to do a man select!! yes have the serial resources. Thanks to all!
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...
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,...
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!
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...
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()...
It's a legacy application running on an ancient dos machine. Can't really start messing around with the whole structure.
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...
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>...
Thanks for your thoughts!
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...
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?
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...
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...
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...
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...
Could anyone supply me with an algoritm to convert decimal numbers to other bases, 2 to 10 and above 10 if possible. Many thanks.