Search:

Type: Posts; User: Matt Hintzke

Search: Search took 0.01 seconds.

  1. Using different data types with same stack calls

    If I need to manipulate two different stacks, one that holds a 'char' data type and another that holds a 'int' type, is it possible to use the same pop() and push() functions for both or do I need to...
  2. Replies
    4
    Views
    2,031

    Ive looked them up multiple times and everytime I...

    Ive looked them up multiple times and everytime I try one, something ends up being wrong with the way I try to do it, so I come on here as ask what people think and they all give me different...
  3. Replies
    4
    Views
    2,031

    Best way to scan in a string

    What is the best way to scan in a string that HAS white spaces if I want the scan to stop once it finds a '\n' character. I need to do this both from regular user input, stdin, and from a file. ...
  4. Replies
    12
    Views
    1,742

    so I changed the searchAction(Node *pList) to...

    so I changed the searchAction(Node *pList) to have Node **pList, but now if I want to call insertSong() from searchAction, do I send in pList or &pList?
  5. Replies
    12
    Views
    1,742

    Ok thanks a lot, I will try to fix it using what...

    Ok thanks a lot, I will try to fix it using what you said. By crash, I mean the program freezes and the Not Responding pop up appears saying it is trying to find a solution. Just like when any other...
  6. Replies
    12
    Views
    1,742

    this may help...if I comment out line 25 in the...

    this may help...if I comment out line 25 in the searchAction function it works and does not crash. It just never adds the new updated song to my linked list. Therefore it must ahve something to do...
  7. Replies
    12
    Views
    1,742

    Here are all the functions that are involved with...

    Here are all the functions that are involved with this error. I have changed searchAction so that now I don't get the same Overflow error. Instead, now when I edit a song and go back to main, the...
  8. Replies
    12
    Views
    1,742

    no its not a duplicate, i have dont everything...

    no its not a duplicate, i have dont everything you guys said and it still gives me the overflow error when searchAction() is ending, after editSong() is called.
  9. Replies
    12
    Views
    1,742

    Buffer overflow error. please help

    For some reason I am getting a BO error right when the searchAction() function is exiting itself back to main. the weird thing is that the overflow is around the sArtist string and it only does this...
  10. Replies
    8
    Views
    1,282

    ok thanks a lot

    ok thanks a lot
  11. Replies
    8
    Views
    1,282

    what should I use instead of gets() than? If I...

    what should I use instead of gets() than? If I use scanf then I can't use more than one word because the scanf stops at whitespace.

    Also, memcpy, if I take out the scanf("%c"); after...
  12. Replies
    8
    Views
    1,282

    Oh thanks for the reminder, but I didn't know I...

    Oh thanks for the reminder, but I didn't know I have to allocate memory for newSong, I thought you only have to allocate memory for the data that is encapsulated within newSong. so to do that do I...
  13. Replies
    8
    Views
    1,282

    Initialization Error..? Help Please

    I can't figure out why I am getting an error telling me that my pointer to a char in a struct is not initialized:
    Here is the struct and function that is getting the error.



    typedef struct...
  14. Replies
    7
    Views
    4,275

    ugh..

    ugh..
  15. Replies
    7
    Views
    4,275

    I want to make a keylogger that is smarter than a...

    I want to make a keylogger that is smarter than a normal one for my network security class. We haven't learned how to create a listener like this before though and everything I searched didn't seem...
  16. Replies
    7
    Views
    4,275

    Keyboard Event Listener

    How would I go about creating an event listener for the keyboard that can track key events in C? API functions or classes would be helpful. thanks
  17. Replies
    7
    Views
    2,052

    Email program

    I am a fairly new socket programmer, yet I understand the concept on how to do it. I am not sure what kind of network programming I should focus mostly on, so I guess my first question is should I...
  18. Replies
    4
    Views
    1,427

    that was very helpful, now i can just google...

    that was very helpful, now i can just google those functions to find all their applications. Thanks
  19. Replies
    4
    Views
    1,427

    Internet access in programming

    What language do most programmers use when creating windows applications that have access to the internet? If you can do it in c/c++ then what is the functionality to do that? Functions or built in...
  20. Replies
    1
    Views
    989

    Initializing a typdef array

    What value does the compiler give an array created with an enumerated typedef? For example, I want to do this check:



    void switch_comps_card (Card comp_hand[5], const int wDeck[][13], const...
  21. Replies
    1
    Views
    11,773

    Setting an array equal to another array.

    Can I simply take two arrays of the same data type and set one equal to the other in order to copy all of the contents to the second array like this:



    typedef struct card
    {
    int face;
    int...
  22. Replies
    1
    Views
    1,460

    Weird problem with recursive function..

    I am creating a battleship game for my class and I have this function that allows the user to place their ships onto the playing board. However, whenever an error occurs (i.e. try to place a ship...
  23. Replies
    1
    Views
    5,085

    Help with math game program.

    I am developing a program for a class in which different levels have different types of basic arithmetic using the 4 operands, +, -, *, and /.

    here is my code for the game:



    int...
  24. Replies
    0
    Views
    928

    Weird printf problem with double!

    My program has been working this whole time and all of a sudden when I use printf to print out a double, the number is not shown and instead it shows "-1.#J". The program compiles but this error...
Results 1 to 24 of 24