Search:

Type: Posts; User: dukebdx12

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    2,017

    another way for "this" pointer

    here is my code for a .cpp of a header file. My question is: is there another way to write this than using "this" pointer?



    #include "Integer.h"

    Integer::Integer() //once Integer object is...
  2. Replies
    9
    Views
    3,273

    my code: #ifndef INTEGER_H #define...

    my code:



    #ifndef INTEGER_H
    #define INTEGER_H

    class Integer
    {
    private:
  3. Replies
    9
    Views
    3,273

    ok thanks. I fixed those errors. Now I am getting...

    ok thanks. I fixed those errors. Now I am getting 4 errors and they are all dealing with the bool line. Not sure what is wrong because I wrote it how I thought the diagram showed. And cpjust line of...
  4. Replies
    9
    Views
    3,273

    rhs? and what about the operators ++ and -- . I...

    rhs? and what about the operators ++ and -- . I keep getting errors "error C2675: unary '--' : 'Integer' does not define this operator or a conversion to a type acceptable to the predefined operator"...
  5. Replies
    9
    Views
    3,273

    using UML diagram to write a header

    This is the diagram:

    Integer
    -number: int
    +Integer():
    +Integer(num: int):
    +~Integer():
    +getInt(): int
    +operator<(Integer): bool
    +operator++(): int
  6. Replies
    6
    Views
    1,326

    thankyou...i got it fixed now

    thankyou...i got it fixed now
  7. Replies
    6
    Views
    1,326

    trouble with quick sort

    Here I have code but I am getting 4 errors. When I use the quicksort the 4 errors occur.

    1. stating the 'partition': identifier not found
    2-4. swap: identifier not found

    I have highlighted...
  8. need help...c++ using strings...difficult for me

    can someone help me out here. I have 2 documents named Emma and Letter. The file contained Emma has a lot of introductory material which I need to skip. Easiest way is to hunt for the string "Chapter...
  9. Replies
    11
    Views
    1,787

    yea i had to code working perfect until i...

    yea i had to code working perfect until i realized I had to put something in to ask the user to pick out of 2 files for this program to loop through. For that i used an if else statement and now i...
  10. Replies
    11
    Views
    1,787

    yes it does...first 2 lines are words im...

    yes it does...first 2 lines are words



    im new to this...how do i set it? also, since i am using a switch someone had helped me previously with this and used an array. i think i might have some...
  11. Replies
    11
    Views
    1,787

    thanks. I have used both those ideas which has...

    thanks. I have used both those ideas which has shortened my code. My output for each number is still 0 for each number 1-9 instead of the tallied number it came up with.
  12. Replies
    11
    Views
    1,787

    using a switch statement

    here is my code. Here is a quick review of what i need to do: open a file of a list of numbers and get the first number and tally it for that number. Ex. number is 4563 it tallys 1 for number 4. And...
  13. Replies
    5
    Views
    3,761

    thanks your right. I am in an intro class so just...

    thanks your right. I am in an intro class so just learning right now. Reason I had that was because I had it all written out like in 1-2 lines then decided to split it up into separate lines.
  14. Replies
    5
    Views
    3,761

    teacher said to exclude the rule of having 2...

    teacher said to exclude the rule of having 2 numbers in a column. Also not having "" the program will not compile and run.
  15. Replies
    5
    Views
    3,761

    Bingo Card Program. Any input?

    http://i31.tinypic.com/350mh5w.jpg

    If you can't read it let me know (click to inlarge)but it is a bingo card and it generates random numbers in each row with FREE being in the middle and never...
  16. Replies
    9
    Views
    1,854

    got to remember i am very new at this and really...

    got to remember i am very new at this and really only know a limited of things. I read the faq for invalid errors and understood most of the code but some things I havn't seen before in class and...
  17. Replies
    9
    Views
    1,854

    thanks for the input. I'm starting to like this...

    thanks for the input. I'm starting to like this forum. Very quick reply's. I'm sure I will be on here for awhile as I learning c++ and taking the class right now and love it.



    yea your right.(I...
  18. Replies
    9
    Views
    1,854

    Additions to my program

    I have tried on another site to get some input by did not get any help so I am going to try here. I have wrote this for my class and was wondering if there were any additions you could suggest me to...
Results 1 to 18 of 18