CarHandler constructor receives a pointer to a Car but you are passing a pointer to a Cars
Type: Posts; User: force of will
CarHandler constructor receives a pointer to a Car but you are passing a pointer to a Cars
Thanks adeyblue, i didin't wan't to reinvent the wheel :P
Im currently facing an issue and can't find the information about this, the problem is my applications needs to be locale independent.
When accessing a database i get a string representing a number...
don't you need a intruction
.SUFIXXES: .o .c
to tell make to look out for .c and .o files ?
as to
.c.o
Your makefile also help you reducing compile time, if you make it right, something like this
HOSTC = gcc #c compiler
HOSTCXX = g++ ...
I presume you have a files called class[x].cpp if you have you should compile like this
g++ -Wall -g -o main main.cpp class1.cpp class2.cpp ... class7.cpp
off course all that typing is cumbersome...
in a quick look maybe because your forgot to initialize k to 0 ?
You are totally correct. Thanks
One more little issue if i have
class LinkedList
{
public:
friend class Iterator;
Thanks for the feedback guys
i need friending on the list iterator because the list has a method to acept a iterator and remove the node it currently points, followed your advice and come...
I know many uses of friend keyword usually are a sign of bad design, i've implemented a simple Doubly Linked List Class, and a LinkedListIterator to use with the LinkedList class.
For that i...
Please clarify who wanna write the pseudo code or make a design for a program ?
My bad i just deleted that post, im guessing im seeing things lol :P
Im a little rusty but correct me if im right wrong guys, if we define a assignment operator =
for instance
class Test
{
....
yap it should be
result[index+ occurances] = '\0';
you're totally right, i was also in the C forums and was 2:00 AM my bad.
Didint use string objects because the Fredir told he was using an array of characters
Tell me the bug (I'm also always...
One way would be
char *p = "This is zack";
char *result = (char *)malloc(sizeof(char) * strlen(p) * 2); //multiplying by 2 because the worst case scenario would be a string in wich all...
I tough you're refering to bytes packing order. Its true that inside the bytes themself nothing change.
It as to do with Networking comunication, it seems that most protocols (if not all) work...
It does apply exactly to byte packing order >.<
The first need to care about in which machine the program is running because of the difference between Big and Little Ending save bytes in memory.
Big endian saves the most significant byte in...