Search:

Type: Posts; User: BKurosawa

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,085

    I know that. My question is how do I capture the...

    I know that. My question is how do I capture the input that I put in when I run the program? How do I get the input into the csis.dat file?
  2. Replies
    6
    Views
    1,085

    capturing program input

    For my program I used csis statements like




    cout<< "Hello" << endl;
    csis<< "Hello" << endl;
  3. Replies
    9
    Views
    1,190

    I changed my code (see below) and there are still...

    I changed my code (see below) and there are still problems. Namely, It completely skips over the input for the author and the performer. For example, say I put in B for book then the next output is:...
  4. Replies
    9
    Views
    1,190

    I didn't actually put a real author name when I...

    I didn't actually put a real author name when I was inputting the authors name... I used random letters.
    >> another bug is that if you don't type B or R, you'll have an uninitialized pointer in the...
  5. Replies
    9
    Views
    1,190

    In addition, I found the program also works...

    In addition, I found the program also works perfectly if I do not have any spaces in any of my words. The problem arises when I try to do spaces. How do I fix this?
  6. Replies
    9
    Views
    1,190

    I just noticed something. My program runs...

    I just noticed something. My program runs perfectly if I only put in one letter for each input. What does this mean and how do I fix it?
  7. Replies
    9
    Views
    1,190

    Do you think the reason I am having these...

    Do you think the reason I am having these problems is because I am using char? How would I use std::string instead?
  8. Replies
    9
    Views
    1,190

    virtual functions

    Hi, I have make an abstract base class called Holding and I have to make two derived classes that use some virtual functions. I have already made these classes but on top of all this I have to make a...
  9. Replies
    3
    Views
    1,145

    How do I call the base class constructor directly?

    How do I call the base class constructor directly?
  10. Replies
    3
    Views
    1,145

    What is wrong with this class?

    I have a derived class called CaseString that is supposed to capitalize and decapitalize the characters of a string. What is wrong with the code?




    //case.h

    #ifndef CaseString_H
    #define...
  11. Replies
    11
    Views
    1,178

    >> The order in which you do things is a bit...

    >> The order in which you do things is a bit wrong.

    How so?
  12. Replies
    11
    Views
    1,178

    What if I do this? : ReverseString...

    What if I do this? :




    ReverseString ReverseString::operator ~()
    {
    int k = 0;
    char *temp = buf;
    for(int i = stringlength-1; i>=(stringlength/2); i--)
  13. Replies
    11
    Views
    1,178

    The temp points to buf... why is that a problem?

    The temp points to buf... why is that a problem?
  14. Replies
    11
    Views
    1,178

    I have the test up there. I might be wrong but I...

    I have the test up there. I might be wrong but I think that the output should be:
    Purusha
    ahsuruP
    Purusha

    How do I fix it? Thanks
  15. Replies
    9
    Views
    1,398

    I mean is there anything wrong with the code?...

    I mean is there anything wrong with the code? Because the program crashes when I run it. When I debug it breaks it opens up a new set of code in the ostream library and it points to this:



    ...
  16. Replies
    9
    Views
    1,398

    Do you know how I can fix my class? Thanks

    Do you know how I can fix my class? Thanks
  17. Replies
    11
    Views
    1,178

    I posted the function (~operator) but I'll post...

    I posted the function (~operator) but I'll post the entire header and source code:




    //reverse.h

    #ifndef ReverseString_H
    #define ReverseString_H
  18. Replies
    11
    Views
    1,178

    reverse the string

    For my driver I have to reverse the strings in a string literal by means of a class called ReverseString. I will show you guys my function below that is supposed to reverse my string. I will also...
  19. Replies
    9
    Views
    1,398

    Don't the variables initialize if I write: ...

    Don't the variables initialize if I write:




    class CaseString: public String
  20. Replies
    9
    Views
    1,398

    the size and stringlength variables seem to work...

    the size and stringlength variables seem to work correctly when I look at their values in the debugger.
  21. Replies
    9
    Views
    1,398

    derived class

    Hi, what is wrong with my derived class called CaseString. The purpose of the class is to convert all the characters in a string object to both uppercase and lowercase without modifying the original...
  22. Thread: String Class

    by BKurosawa
    Replies
    117
    Views
    18,855

    what is wrong with this code? ...

    what is wrong with this code?




    ReverseString ReverseString::operator ~()
    {
    int k = 0;
    char *temp = new char[size];
    for(int i = stringlength-1; i>=(stringlength/2); i--)
  23. Thread: String Class

    by BKurosawa
    Replies
    117
    Views
    18,855

    You are right temp= buf; should not be there. No...

    You are right temp= buf; should not be there. No I did not define conversion of char* to ReverseString.
  24. Thread: String Class

    by BKurosawa
    Replies
    117
    Views
    18,855

    I still don't have it. What is wrong with this?...

    I still don't have it. What is wrong with this? Thanks for the help BTW.




    ReverseString ReverseString::operator ~()
    {
    int k = 0;
    char *temp = new char[size];
    temp = buf;
  25. Thread: String Class

    by BKurosawa
    Replies
    117
    Views
    18,855

    [QUOTE=matsp;662798] I changed the code and it...

    I changed the code and it is still doing the same thing




    ReverseString ReverseString::operator ~()
    {
    int k = 0;
    char *temp = buf;
    for(int i = stringlength; i>=(i/2); i--)
Results 1 to 25 of 109
Page 1 of 5 1 2 3 4