Search:

Type: Posts; User: force of will

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,397

    CarHandler constructor receives a pointer to a...

    CarHandler constructor receives a pointer to a Car but you are passing a pointer to a Cars
  2. Thanks adeyblue, i didin't wan't to reinvent the...

    Thanks adeyblue, i didin't wan't to reinvent the wheel :P
  3. String conversion to floating point[Digit grouping]

    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...
  4. Replies
    5
    Views
    3,008

    don't you need a intruction .SUFIXXES: .o...

    don't you need a intruction


    .SUFIXXES: .o .c

    to tell make to look out for .c and .o files ?

    as to

    .c.o
  5. Replies
    13
    Views
    2,935

    Your makefile also help you reducing compile...

    Your makefile also help you reducing compile time, if you make it right, something like this



    HOSTC = gcc #c compiler
    HOSTCXX = g++ ...
  6. Replies
    13
    Views
    2,935

    I presume you have a files called class[x].cpp if...

    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...
  7. Replies
    2
    Views
    1,270

    in a quick look maybe because your forgot to...

    in a quick look maybe because your forgot to initialize k to 0 ?
  8. You are totally correct. Thanks One more little...

    You are totally correct. Thanks
    One more little issue if i have




    class LinkedList
    {
    public:
    friend class Iterator;
  9. Thanks for the feedback guys i need...

    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...
  10. Is this a missusing of the friend keyword ?

    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...
  11. Replies
    4
    Views
    3,459

    Please clarify who wanna write the pseudo code or...

    Please clarify who wanna write the pseudo code or make a design for a program ?
  12. Replies
    20
    Views
    2,578

    My bad i just deleted that post, im guessing im...

    My bad i just deleted that post, im guessing im seeing things lol :P
  13. Replies
    20
    Views
    2,578

    Im a little rusty but correct me if im right...

    Im a little rusty but correct me if im right wrong guys, if we define a assignment operator =

    for instance




    class Test
    {
    ....
  14. Replies
    33
    Views
    2,870

    yap it should be result[index+ occurances] =...

    yap it should be


    result[index+ occurances] = '\0';
  15. Replies
    33
    Views
    2,870

    you're totally right, i was also in the C forums...

    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...
  16. Replies
    33
    Views
    2,870

    One way would be char *p = "This is...

    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...
  17. Replies
    17
    Views
    25,630

    I tough you're refering to bytes packing order....

    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...
  18. Replies
    17
    Views
    25,630

    It does apply exactly to byte packing order >.

    It does apply exactly to byte packing order >.<
  19. Replies
    17
    Views
    25,630

    The first need to care about in which machine the...

    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...
Results 1 to 19 of 21