Search:

Type: Posts; User: gp364481

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Nice, thank you. Im writting c++ code and its...

    Nice, thank you.

    Im writting c++ code and its complaining about me using strcpy and strcmp.
    Should I not use those? Is it risky?
  2. How do I display all warning messages using Visual Studio 2005?

    Hey,
    I'm trying to show all the warning messages of my c++ program, similar to a -Wall command for linux. How can I do that?

    Right now I am using the command:
    >: cl /EHsc myProgram.cpp
  3. Replies
    7
    Views
    1,530

    wait do i have to do "walk" through the linked...

    wait do i have to do "walk" through the linked list and free each node individually?


    while(head){
    temp = head;
    head = head->nextPtr;
    free(temp);
    }
  4. Replies
    7
    Views
    1,530

    Cool, thank you. I've been at it for a while and...

    Cool, thank you.
    I've been at it for a while and I am overcomplicating things.

    Thanks again.
  5. Replies
    7
    Views
    1,530

    Simple Doubly-Linked List question.

    Hey guys,
    my list is NULL in the beginning.
    do I have to make a special case for when inserting the first element of the doubly linked list? I am having trouble with pointing to the previous...
  6. it hurts ... my eyes ... !! Way too many...

    it hurts ... my eyes ... !!

    Way too many brackets. The way jeff formatted the code makes much more sence.
  7. Replies
    10
    Views
    1,273

    See, that was my problem. I was passing in a node...

    See, that was my problem. I was passing in a node with identical data but it wasnt the actual/same object as the one inside the linked list. I've now realized that it has to be the same object and...
  8. Replies
    10
    Views
    1,273

    Like i said in my post. I am working on the...

    Like i said in my post. I am working on the special case where the node to be removed is the head of the list. I am not finished with it yet. I just got stuck on how to compare nodes so I figured I'd...
  9. Replies
    10
    Views
    1,273

    when comparing two linked list elements, what...

    when comparing two linked list elements, what exactly is compared?
    The addresses?
  10. Replies
    10
    Views
    1,273

    A basic linked list question

    Hey, Im trying to delete a specified node from a linked list.
    I've inlcuded my whole program but the problem is in removeNode() function.
    The program never enters the if statement in removeNode()
    ...
  11. Replies
    5
    Views
    1,156

    Okay, thank you.

    Okay, thank you.
  12. Replies
    5
    Views
    1,156

    Yes, you are correct. Thank you very much. Do...

    Yes, you are correct. Thank you very much.
    Do you care to explain why exactly that happens?
  13. Replies
    5
    Views
    1,156

    Ummm, why isnt this working?

    int main(void){
    int size, start;
    char *string = "Two words";

    size = (int) strlen(string);
    start = 0;

    reverseString(string, start, size - 1);

    return 0;
  14. Replies
    4
    Views
    7,174

    ah, I understand now. Thanks!

    ah, I understand now. Thanks!
  15. Replies
    4
    Views
    7,174

    woot! thanks Salem. Works fine without crashes...

    woot! thanks Salem. Works fine without crashes now.

    I have a question though. When I do


    buffer = (char *) malloc(size+1);

    printf("%d\n", strlen(buffer));
  16. Replies
    4
    Views
    7,174

    Heap Corruption Detected -- Malloc issues

    Hi I wrote a program that takes a string of words and reverses the order of the words: String : two words ----> words two

    The program seems to do what I intended but crashes right after...
  17. Replies
    11
    Views
    1,398

    Okay, that was subtle. Thanks guys.

    Okay, that was subtle. Thanks guys.
  18. Replies
    11
    Views
    1,398

    Yeah, whatever[80], line[80];

    Yeah, whatever[80], line[80];
  19. Replies
    11
    Views
    1,398

    Is that why it was bombing? I was trying to input...

    Is that why it was bombing? I was trying to input NULL in the char variable?
  20. Replies
    11
    Views
    1,398

    I was just using example names. You can replace...

    I was just using example names. You can replace the line with whatever.



    char *string;
    char line[80];
    char whatever[80];

    while(fgets(line,80,fin) != NULL) {
    string = strtok(line, "...
  21. Replies
    11
    Views
    1,398

    Okay, so if I have something like: string...

    Okay, so if I have something like:



    string = strtok(line," \n\t");


    how could I copy the value pointed to by "string" into a variable of type char?
  22. Replies
    11
    Views
    1,398

    newbie question about strings

    Hey, I have a quick question.

    Looking at this code:



    char *string;
    char line[80];

    strcpy(line, string);
  23. Replies
    2
    Views
    2,569

    fread() questions.

    Hey guys,
    im reading a binary file and then using fprintf to write the data to a text file.
    the sequence of each line is first, an (unsigned char) that determines the length of the string that...
  24. Replies
    20
    Views
    2,762

    Hey mats, Its just part of the assignment. No...

    Hey mats, Its just part of the assignment. No choice in the matter.
    I have to use fwrite with a non-fixed record size.
  25. Replies
    20
    Views
    2,762

    MK27 thanks for your thoughts. I will have to do...

    MK27 thanks for your thoughts. I will have to do some more thinking on this. It is a pain in the butt.
    Its not a problem to write to a binary file but I am having problems writting only the...
Results 1 to 25 of 60
Page 1 of 3 1 2 3