Hi,
I am writing a Windows Form program, and currently it has 3 Lists. I need to loop through all three, and use each possible combination, so am using three nested for loops.
I found that if...
Type: Posts; User: Swerve
Hi,
I am writing a Windows Form program, and currently it has 3 Lists. I need to loop through all three, and use each possible combination, so am using three nested for loops.
I found that if...
Thanks laserlight, I've never heard of this before, and it seems to fit what I'm trying to do exactly.
Appreciated, as was the help with my last thread. I have not replied to that thread as I...
Hi all,
Looking for some direction on how to implement my class functions.
I drew a class diagram to show my inheritance structure:
http://i42.tinypic.com/2qjdttd.jpg
I'm trying to use an...
Thanks laserlight!
I'm going to spend some time going though it so I understand it properly.
Thanks for helping me out :)
Hi,
I have a string and I'm trying to replaces unwanted characters with a space character.
So if have the string "A string of TEXT!" and I replace the chars "sT" I end up with "A tring of EX...
I got it working in the end.
Thanks to everyone who helped out.
this was more about the separation of the files more than anything else.
It is a nice template for me to use now in the future.
Everyone thanks so much for your help.
I have tried everything and am getting a problem with some kind of unresovled external.
Hey hk_mp5kpdw thanks so much!
I've followed your instructions as best I can, and it is indeed compiling further now.
here is my code right now:
main.cpp :
Hi,
I have been wrestling with this program all day and am looking for some help.
I have never separated a program up before into separate files (main.cpp, base.h and base.cpp).
What I'm...
Hi there,
I'm trying to use cURL in a C++ app, but being new to using libraries, I've having trouble in setting up my program.
I've spent some time following the guides in Google, but they all...
Hi,
I'm starting to learn UML and at school we are using Rational Rose Enterprise edition.
This is not exactly within my budget.
I've searched and found quite a few, but ended up suffering...
Hi,
I am trying to do the following:
1) Call a function
2) Ask the user for the datamember values
3) Create the object
4) Return to main() a pointer to the object
5) Push that pointer into...
Hi,
I am hoping for some general advice on how to create a user interface, by use of a processor class.
The program I am creating uses inheritance.
I am creating the following...
Bubba, Daved and iMalc thanks soo much for your help! :)
I've played and changed stuff here and there, and this is the result:
I'm asking the user for the node to delete, based on a...
OK, I decided to start the program from the beginning again.
Using:
List<Base *>listname;
I am trying to delete a specific node from the list. Here is the case inwhich it happens:
Hi,
I have a program, which uses a vector to store some pointers.
The program works fine.
I'm trying to convert it to use a doubly linked list now though.
At the top of the program I...
Thanks for helping iMalc, but I'm still having problems.
Did I make a mistake with what you suggested?
main.cpp:
#include <iostream>
#include "node.h"
#include "doublylinkedlist.h"
*SOLVED*
Hi there,
I'm trying to construct my first Doubly Linked List, but am having trouble compiling.
This is my program:
main.cpp :
Is it not necessary to always return 0 when main() is of type int?
I thought it was always good to return 0 to signify that main() had executed successfully.
Thanks brewbuck!
I seem to have it working now, this is what I did:
Header file (the class interface) 'Base.h' :
class Base
{
Hi there,
Up until now I've only ever used a main.cpp file and a class.h header file, but am trying to improve my separating of class interface and implementation.
I have the following problem...
Thanks laserlight!
Great tips!
:)
Ahh Ok.
bool operator==(const Base& leftparameter, const Base& rightparameter)
{
if(leftparameter.getNo() == rightparameter.getNo())
{
return true;
}
Hi there,
I'm just starting to try out Operator Overloading and wrote a basic definition for the equality operator ==.
base.h :
class Base
{
public:
Hey thanks bithub!
reading up on this, it converts the string to a c-style string, hence the error of "to 'const char *' "
Great to learn this.
Thanks buddy :)