Thanks. I have tried this, but I get an error message saying 'get_date': is not a member of Transaction. Any ideas what I'm doing wrong?
Type: Posts; User: Sparkle1984
Thanks. I have tried this, but I get an error message saying 'get_date': is not a member of Transaction. Any ideas what I'm doing wrong?
How do I perform a search operation on the contents of a vector?
My vector looks like this (the beginning of it):
int main(void)
{
vector<Transaction> trans; //instantiates a vector...
My program has a vector of 50 objects like this :
trans.push_back(Transaction(1365,"Norwich","20030901","1200",12,005,"Nobody present"));
What I need to do is convert all the dates from...
Thanks, it's working fine now. :)
Thanks for your help.
But when I ran the program, it printed out the words "TRACKING ID", when I need it to print the actual tracking ID itself, which in this case is the number 1365.
I am writing a program in C which will extract data from an array.
The array contains the data: char test[] = "TRACKING ID: 1365 DATE: 20030901 TIME: 1200 ROUTE: 12 DRIVER: 005 STATUS: Nobody...