thanks for the help (and the link)
it solved my problem (just to run into another problem a couple of lines later)
:)
Type: Posts; User: angelscars
thanks for the help (and the link)
it solved my problem (just to run into another problem a couple of lines later)
:)
ah, I kinda changed my post while you replied.. let me try out your code then :)
thanks
hi,
I am trying to write a function that gets an outputstream, a schedule(which is just a list pointers to items), and a function.
this function should be performed on each item in the schedule,...
here is the changed code, I compiled and tested it and it works perfectly (well, solves your problem at least) for me.
#include <iostream>
#include <iomanip>
#include <fstream>
#include...
I think your problem is that you are just writing everything to the file without inserting spaces or anything. thats why everything you insert gets attached to eachother.
if you would change the...
thanks a lot Daved (again), the forward declaration fixed the problem! :)
I tried putting the class declarations in the same file, but it still gives the same error messages.
I'll try some other things to avoid this problem, and let you know what happens.
If anybody...
thanks for the reply. I'll toss both the class-declarations in one file then
:)
hi,
I'm working on some assignment for school.
Thanks to some previous help on this board I already finished the basics.
Now I am writing the more complex stuff. I tried compiling what I wrote...
a few posts ago I mentioned the scheduleitems are actually intervals.
eg [100 , 200] where 100 is the start, and 200 is the end.
here is the implementation of the operators again (now WITH the...
right, again I forgot the returns.
now it works like it should.
thank you!
thanks for the nice comment on my coding. :)
there is one more thing bugging me about this code.
if I change the definition for operator<< in schedule.cc a bit ( by adding an extra std::endl; )...
you're right, I totally forgot about the return-statements in the definition of the operators.
thanks so much :D
hi
thanks for your reply.
why should I implement operator> etc as member functions?
they dont need any of the private stuff of the class.
I could compile my program without any problems...
thanks for having a look.
here is the main() function I am using to test it.
its not very nicely written, but its good enough to test the inserting and deleting of scheduleitems.
#include...
hi
I am a student in computer science and I'm having some trouble with our latest assignment. (Part of) the assignment is to insert elements into a sorted list.
The elements are some kind of...