Search:

Type: Posts; User: Bones

Search: Search took 0.01 seconds; generated 35 minute(s) ago.

  1. Replies
    7
    Views
    3,400

    Cheers

    Thanks ....I managed to get my program working with append....
  2. Replies
    7
    Views
    3,400

    thanks...but that doesn't work.....

    thanks...but that doesn't work.....
  3. Replies
    4
    Views
    2,091

    Not sure if this is what you want..

    All you have to do is declare teh function with the keyword friend infront of it....


    class two; // needed for frifunc declaration

    class one
    {
    private:
    int data;...
  4. Replies
    7
    Views
    3,400

    Not sure how to use append???

    Not sure how to use append???
  5. Replies
    7
    Views
    3,400

    Add not overwrite to a file

    I have to write a program that emulates the Unix cat command. The program accepts between 2 to 9 files from dos command line.
    eg concat file 1 file 2 file3 ...... // concat being the name of my...
  6. Replies
    2
    Views
    4,024

    Thanks...thats what I thought...now just to give...

    Thanks...thats what I thought...now just to give it a try...

    Thanks also for the links....I'm sure they will help.

    Cheers
  7. Replies
    2
    Views
    4,024

    copy multiple files to a destination file

    I have to write a program that emulates the Unix cat command. The program accepts between 2 to 9 files from dos command line.
    eg concat file 1 file 2 file3 ...... // concat being the name of my...
  8. Replies
    7
    Views
    1,714

    try this

    when you accept the value from the user use any of the following



    cin.get(aString, 50 ) // accept a string up to 50 or '\n'
    cin.get(astring,50,'$') // accept to 40 or '$' is found
  9. Replies
    14
    Views
    3,569

    ??

    There are a few things wrong with your program, but what are you trying to do?? I can't help you unless you tell me what you program should do....
  10. Replies
    4
    Views
    2,869

    try this

    format for one number at a time...




    cout << setiosflags(ios::fixed) // fixed
    << setiosflags(ios::showpoint) // always show decimal
    << setprecision(2) // two decimal places
    ...
  11. Replies
    1
    Views
    2,003

    destructor with a link list

    In the program given, I have to insert a destructor to the class that will delete all the links when a linklist object is destroyed. I also need a message to display in the destructor that the...
  12. Thread: destructors

    by Bones
    Replies
    3
    Views
    974

    destructors

    In my program I have to put a destructor in the class which will delete all the links when a linklist object is distroyed. I have to delete each link as it goes, displaying a message that the...
  13. Thread: Inheritance

    by Bones
    Replies
    5
    Views
    1,147

    Ok....now I have to change it to an Array of...

    Ok....now I have to change it to an Array of 10...



    * const int SIZE = 10;
    String s[SIZE]= {
    {"root:!:0:0::/:/bin/ksh"},
    ...
  14. Thread: Inheritance

    by Bones
    Replies
    5
    Views
    1,147

    Thanks .... it all worked...

    Thanks .... it all worked...
  15. Thread: Inheritance

    by Bones
    Replies
    5
    Views
    1,147

    Inheritance

    What I'm trying to do is pass a string from my derived class to my base class. A function called nextToken() should return a String object up to the delimiter(in this case ':').
    This string ...
  16. Thread: Convert Time

    by Bones
    Replies
    1
    Views
    1,999

    Convert Time

    For one of my assignments we are given the following code...



    #include <iostream>
    #include <string>
    #include <conio.h>
    using namespace std;...
  17. Replies
    5
    Views
    1,474

    Conversion functions

    I have to Add to the Time class the conversion function for converting from a long (seconds 77777) to a Time object....I have no idea what to do...this is the code I have so far....




    class...
  18. Thread: Conversions

    by Bones
    Replies
    4
    Views
    1,241

    Lookin' right at it!!!!

    Always the smallest thing can seem so great, we just don't see it at all.....

    Thanks.....you were right.....my program runs perfectly.....

    Cheers
  19. Thread: Conversions

    by Bones
    Replies
    4
    Views
    1,241

    No idea whats wrong???? Conversion

    I have no idea why my program won't work right.....I still can't compare the fractions.

    Still won't convert from int to float ..... values end up being 0....
    I have attached most of my program...
  20. Thread: Conversions

    by Bones
    Replies
    4
    Views
    1,241

    Conversions

    I am using a class called Fraction with this format...



    class Fraction // the Fraction class has two parts
    {
    private:
    int denom;
    int...
  21. c++ code a destructor to delete the dynamically allocated array!!!

    In my code I have to define a class called Array, it simulates a dynamic array of integers and I also have to code a constructor. This all seems to work fine, but I also have to code a destructor...
  22. Thread: Flush !!

    by Bones
    Replies
    2
    Views
    1,113

    Flush !!

    While reading data from a file to be loaded into an array, if an error occurs ont he input....an error message should be displayed and the rest of the line should be flushed....and continue on with...
Results 1 to 22 of 22