Forum: C++
Apr 10th, 2008, 1:57 PM
|
|
Replies: 9
Views: 290
Re: File Handeling.
I found a nice tutorial on this and I came up with the following code.
int main()
{
Passenger p [2]; //an array of type passenger
ofstream writerFile("passengers.ros", ios::binary); //for writing...
|
Forum: C++
Apr 10th, 2008, 11:40 AM
|
|
Replies: 9
Views: 290
|
Forum: C++
Apr 10th, 2008, 10:06 AM
|
|
Replies: 9
Views: 290
Re: File Handeling.
I would have but sadly I'm in university now so I'll have to wait till I get home to paste in the actual code I'm using (I typed what's there from memory).
When you say print out the data for each...
|
Forum: C++
Apr 10th, 2008, 9:25 AM
|
|
Replies: 9
Views: 290
File Handeling.
Hi.
I'm writing a simple little rogram for an assignment. It;s for a hypotechical travel agency to create a passenger for a flight. I've written a class for the passenger and had no trouble but,...
|
Forum: Java
Mar 7th, 2008, 2:56 PM
|
|
Replies: 3
Views: 207
Re: Thread waiting.
I tryed putting the synchronized(bag) around my run methods and it works :D. I think I understand now. Bag is the method that both threads were trying to work on, so I had to call bag.wait() other...
|
Forum: Java
Mar 6th, 2008, 7:42 AM
|
|
Replies: 3
Views: 207
Thread waiting.
I'm having a problem making threads wait on one another. What I'm doing is just a very simple program that has two classes, one that takes "sweets" from a bag called the child and another that puts...
|
Forum: Java
Nov 15th, 2007, 1:25 PM
|
|
Replies: 5
Views: 339
Re: Network Programming Help.
Thanks guys, I got that code in the link to work (after a few hours and about 5 pints of cofee !! :) ). I have all my methods worked out so putting the program together should be a breeze. Thanks...
|
Forum: Java
Nov 11th, 2007, 9:37 AM
|
|
Replies: 5
Views: 339
Network Programming Help.
Hi all.
I'm a second year soft ware engineering student and we've been given an assignment in network programming. The assignment specification is to take a URL as a command line argument, download...
|