Search:

Type: Posts; User: OCcounty

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,460

    Thanks, I got it.

    Thanks, I got it.
  2. Replies
    2
    Views
    1,460

    Difference between int* and int * ?

    Difference between int* and int * and for that matter char* and char *?Does it make any difference...
  3. Well thanks for your replies. I would like...

    Well thanks for your replies.
    I would like discuss this further..
    So static variables in class,are being shared among the different objects for that class.
    Static variables in general are being...
  4. Difference between static variable and global variable in C++?

    Difference between static variable and global variable in C++?
  5. Replies
    4
    Views
    1,479

    Need help understanding overload program

    Hello,

    I have a question regarding following code. It is overloading plus (+) operator.


    #include <iostream>
    using namespace std;
    class CVector {
    public:
    int x,y;
  6. Replies
    8
    Views
    2,089

    Hello claudiu, I would be interested in...

    Hello claudiu,

    I would be interested in joining the developer's group and have joined the forum at SourceForge.net.
    Looking forward to be of some help to the team..
    occounty.
  7. Replies
    6
    Views
    16,745

    Yeah that worked. Thanks..

    Yeah that worked. Thanks..
  8. Replies
    6
    Views
    16,745

    Thanks for your responses. I tried following...

    Thanks for your responses. I tried following thing, but does not seems to be working either.



    #include <iostream.h>

    using namespace std;

    int main(int argc, char **argv)
    {
  9. Replies
    6
    Views
    16,745

    Hello World in C++ with CodeLite

    Hello,
    I am using Codelite compiler Version: V2.7.0.4375 (latest) and trying to compile a simple hello world program:


    #include <stdio.h>

    int main(int argc, char **argv)
    {
    cout << "Hello...
  10. Replies
    23
    Views
    2,785

    append(head, num). So append has head of an...

    append(head, num). So append has head of an initialized linked list and num which would scaned and passed to append. So all arguments are initialized. And I have tried using void and list is not...
  11. Replies
    23
    Views
    2,785

    Here is the snippet which works fine. My...

    Here is the snippet which works fine.
    My question now is the function append does not work with void return type. It works fine with a dummy return variable of an int. Any clue why is this...
  12. Thread: Linked List

    by OCcounty
    Replies
    30
    Views
    5,240

    I agree last free is not necessary.

    I agree last free is not necessary.
  13. Thread: Linked List

    by OCcounty
    Replies
    30
    Views
    5,240

    I think it is necessary since the while loop is...

    I think it is necessary since the while loop is curr != NULL, so it is not going to free the last member with curr->next =NULL.
  14. Thread: Linked List

    by OCcounty
    Replies
    30
    Views
    5,240

    This works : curr = head; while(curr!=...

    This works :


    curr = head;
    while(curr!= NULL)
    {

    temp =curr->next;
    free(curr);
    curr = temp;
  15. Thread: Linked List

    by OCcounty
    Replies
    30
    Views
    5,240

    Do you mean something like this: curr =head;...

    Do you mean something like this:


    curr =head;
    while(curr!= NULL)
    {
    curr =curr->next;
    free(curr);
    }
  16. Replies
    23
    Views
    2,785

    Thanks for your help so far... Using *p I am...

    Thanks for your help so far...

    Using *p I am trying to reach the end of the linked list. So should I construct an linked list and then try to append it?
  17. Thread: Linked List

    by OCcounty
    Replies
    30
    Views
    5,240

    But if I try to execute this program I get...

    But if I try to execute this program I get "Program Received signal SIGTRAP" warnig and I do not get any output?

    So my question is, should I apply another loop to free the memory, I mean some...
  18. Replies
    23
    Views
    2,785

    I tried with this function. For some reason, void...

    I tried with this function. For some reason, void with append is not working. I tried using an int return type. Well this works but now I am receiving "SIGSEGV" at the statement: q->link = temp; in...
  19. Thread: Linked List

    by OCcounty
    Replies
    30
    Views
    5,240

    If I try to free memory as in shown in the...

    If I try to free memory as in shown in the snippet, I get warning stating "Invalid Address specified to RtlFreeHeap" and "Program Received signal SIGTRAP".

    Can anybody suggest correct way of...
  20. Replies
    23
    Views
    2,785

    I do get warnings but I am not getting any of...

    I do get warnings but I am not getting any of them now!!
  21. Replies
    23
    Views
    2,785

    No compiler gives 0 errors and 0 warnings. It is...

    No compiler gives 0 errors and 0 warnings. It is during the run I encounter this error.
    I stated the return type for append() and after that I do not receive any SIGSEGV error. Now the output...
  22. Replies
    23
    Views
    2,785

    Compiler gives the error"Program Received signal...

    Compiler gives the error"Program Received signal SIGSEGV".
  23. Replies
    23
    Views
    2,785

    I did not understand. Can you explain in details...

    I did not understand. Can you explain in details ? Please.
  24. Replies
    23
    Views
    2,785

    I did not understand. Can you explain in details...

    I did not understand. Can you explain in details ? Please.
  25. Replies
    23
    Views
    2,785

    In above snippet, I am receiving signal SIGSEGV...

    In above snippet, I am receiving signal SIGSEGV at lines:
    1. append(p,num);
    2. r = *q;
Results 1 to 25 of 30
Page 1 of 2 1 2