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...
Type: Posts; User: dukebdx12
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...
my code:
#ifndef INTEGER_H
#define INTEGER_H
class Integer
{
private:
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...
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"...
This is the diagram:
Integer
-number: int
+Integer():
+Integer(num: int):
+~Integer():
+getInt(): int
+operator<(Integer): bool
+operator++(): int
thankyou...i got it fixed now
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...
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...
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...
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...
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.
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...
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.
teacher said to exclude the rule of having 2 numbers in a column. Also not having "" the program will not compile and run.
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...
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...
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...
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...