Search:

Type: Posts; User: angelscars

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    1,693

    thanks for the help (and the link) it solved my...

    thanks for the help (and the link)
    it solved my problem (just to run into another problem a couple of lines later)

    :)
  2. Replies
    6
    Views
    1,693

    ah, I kinda changed my post while you replied.....

    ah, I kinda changed my post while you replied.. let me try out your code then :)

    thanks
  3. Replies
    6
    Views
    1,693

    passing a function as an argument

    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,...
  4. Thread: File Output

    by angelscars
    Replies
    34
    Views
    2,383

    here is the changed code, I compiled and tested...

    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...
  5. Thread: File Output

    by angelscars
    Replies
    34
    Views
    2,383

    I think your problem is that you are just writing...

    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...
  6. thanks a lot Daved (again), the forward...

    thanks a lot Daved (again), the forward declaration fixed the problem! :)
  7. I tried putting the class declarations in the...

    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...
  8. thanks for the reply. I'll toss both the...

    thanks for the reply. I'll toss both the class-declarations in one file then
    :)
  9. adding an #include stops my program from compiling

    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...
  10. Replies
    16
    Views
    2,301

    a few posts ago I mentioned the scheduleitems are...

    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...
  11. Replies
    16
    Views
    2,301

    right, again I forgot the returns. now it works...

    right, again I forgot the returns.
    now it works like it should.

    thank you!
  12. Replies
    16
    Views
    2,301

    thanks for the nice comment on my coding. :) ...

    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; )...
  13. Replies
    16
    Views
    2,301

    you're right, I totally forgot about the...

    you're right, I totally forgot about the return-statements in the definition of the operators.

    thanks so much :D
  14. Replies
    16
    Views
    2,301

    hi thanks for your reply. why should I...

    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...
  15. Replies
    16
    Views
    2,301

    thanks for having a look. here is the main()...

    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...
  16. Replies
    16
    Views
    2,301

    inserting in a sorted list

    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...
Results 1 to 16 of 16