User Profile
Collapse
-
I appreciate all the responses!! I looked into Valgrind. It is for a linix based system. I use a Windows version (Dev C++). Then, I could not download the other one mentioned with Valgrind. Next, I tried the BoundChecker, and it is only for Visual C++ (microsoft version I believe). Do you know of any more to try? - CTYD -
Memory Leaks in C++ Code
Is there any software out there that someone can recommend for memory leaks in C++ code. I prefer something easy to use and free if possible. - CTYD -
Try this site. It is one of the best I have found for a tutorial.
<http://www.cprogrammin g.com/tutorial.html>
CTYDLeave a comment:
-
Got It You All! I appreciate your help like always! This will help me make my code a little easier to read next time I post! - CTYDLeave a comment:
-
[code=c]
#include <iosteam.h>
int main()
{
cout << "Testing Color for Code" << endl;
return 0;
}
[/code]
Testing - CTYDCode:cout << "Testing Color for Code" << endl;
Leave a comment:
-
I am not sure I understand. What you mean by typing "code=c"? Where do you type that at? Do you type "code=c" in the text box right before you type or copy your code in the text box??? - CTYDLeave a comment:
-
How Do You Add Colored Code in the Forums
I was wondering how some people have colored code and others do not. How do I get the colored code to show up in the forum? I think you can read it better. I was just curious so I can do it in the future. - SEOT -
CodeTilYaDrop replied to Function Arguement is Part of a Linked List - > How to access element in linked list?in CThis is not exactly what I was looking for. I found another way to solve this problem, and I am coding it now. It is probably not the best way though. I will try to put a better example of what I am looking for a little later today when I get more time. This was not a good example. I know there is a better way to do this than what I got now though. ty- CTYDLeave a comment:
-
Also, another way to help you find your errors that I just recently discovered is throwing your code on another compiler. Each compiler gives you different language on the errors, and you might be able to figure it out on the other compiler. I just thought I would add my two cents. Best of luck- CTYDLeave a comment:
-
CodeTilYaDrop started a topic Function Arguement is Part of a Linked List - > How to access element in linked list?in CFunction Arguement is Part of a Linked List - > How to access element in linked list?
Hello,
I can not figure this code out! I have a function that needs to access an element of the the linked list as an argument. Could someone give me an example of the syntax? Do you have any examples of using an element as the arguement in a linked list in a function???
Here is a simplified verison of what I am trying to do:
struct ListNode
{
int value;
struct ListNode *next... -
CodeTilYaDrop replied to What is the proper way to combine C++ files (with g++) to avoid link (ld) errors?in CSometimes a good way to find out an error is to drop it into another compiler. Different compilers tell you different things. This helped me a few times. - CTYDLeave a comment:
-
I found it. You put cin.ignore(); before a getline to make it pick up two words. It was buried on the internet- CTYDLeave a comment:
-
cin does not take in two words in C++
I was using cin to get one word in my program when a user enters from a keyboard. Now, I need to get two words from a user inputing from a keyboard, but the cin >> statement does not work? Any ideas.....pleas e help me - CTYD -
Error Message--> Never Seen Before And I Can't Resolve
Hello,
Usually I can figure out the errors after a while in C++, but this one is getting on my last nerve. Does anyone know what the following means:
Pool.cpp:65: error: no 'void Pool::removeCon testant(std::st ring)' member function declared in class 'Pool'
Thanks for any help you can give. Also, I can't post my code because it is a class assignment for the whole class. I would post if I could. -
The operator overloader example does not register yet with me. I do understand my teacher's example a little more after looking at it though! This is good!
Then, I really appreciate the information about the 'this->'. This makes it a little more clear to me. Thank U- CTYDLeave a comment:
-
Explain Operator Overloaders & This-> to me me.
Could someone please help me understand some code. My teacher went over it last week, but I am lost on it still. Here is the code:
BigNum BigNum::operato r+(const BigNum &b) {
return this->plus(b);
}
I would like two things explained to me about this code. First, what is an operator overloader used for? Then, what is 'this->' for in the code above.
Thanks - CTYD -
I found my answer in a C++ book. It does give me the absolute value. PROB SOLVED--- CTYDLeave a comment:
-
Can Someone Interpret This Code For Me
I can not figure out what this code does. Can someone interpret it for me please. Here it is:
int T;
int number;
T = abs(number);
Does it give the absolut value of the number?? - CTYD -
I sent you a private message instead of posting it here. It is a homework question, and I don't think my teacher would like the answer posted here. Thank you for any help- CTYDLeave a comment:
-
Help Again Tonight- Undeclared (first use this function)
I need help again. This is probably an easy fix, but I can not figure this out. It is late, and this probably explains why I can't figure it out. This is my error
'positive' undeclared (first use this function)
Can anyone point me in the right direction to fix my code based off this error message??? Thanks in Advance- CTYD
No activity results to display
Show More
Leave a comment: