- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Software Dev.
- Interests
- RPG's, DnD, Playing Guitar, any programming language, linux, reading fantasy and sci-fi novels, anime,…
I have some questions about the logical not operator in C++ and Visual C++. I have posted another question relating to the logical not operator. I just can't seem to wrap my head around the uses of this operator. From what I have read so far the logical not operator … |
|
Re:
Hi everybody Thanks again for your helps in my last thread. Now, I have some more problems. :( 50 Errors for this program. Certainly, a basic problem within the structure of class "Block". This assignment is all about "Class and objects". We can use functions, but no arrays. [code=cplusplus] #include … |
|
I have some more basic questions about using overloaded operators. This is just a hypothetical question. Say I have 2 overloaded operators functions defined for a class. The overloaded operator= function and the overloaded+ function. Now I want to create the overloaded operator+=. Can I define that function in terms … |
|
I have a question regarding when to use delete to free memory used by a pointer. I have a class function that uses dynamically allocated memory and I want to properly use delete to free up the space when I am done with it. [code=c++] // Overloaded addition operator. CSimpleString … |
|
I have a few questions about c strings, string literals, c++ string objects and how pointers and constantness all come together. I am wondering why a c string can be set like this but can't be changed dynamically with an assignment operator like this. [CODE] char str [] = "string1"; … |
|
I have some simple syntax questions about constructing a vector from an array. I just read Narue's "C and C++ timesaving tips and tricks" sticky. And I have come across something that I have seen elsewhere that I didn't really understand, and that is the following code assigns integers from … |
|
I have seen that I can use a variable as the specification for the dimension of a one-dimensional array to be allocated by the "new" keyword. The book I'm reading explains that this can be extended to two or more dimensions but with a restriction, only the left-most dimension can … |
|
Hi everyone this is my first post on these forums and I hope that someone can clear up a simple question for me...Right now I am reading Ivor Horton's Beginning Visual c++ 2008 and in chapter four he gives an example program for finding prime numbers using pointers and a … |