Search:

Type: Posts; User: spongefreddie

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    14,135

    Hello Cprogramming World

    The only two members I still recognize are Salem and laserlight. Good to know you're still in the game. :)

    No questions... just decided to poke my head in here after several years' absence.

    sf
  2. Replies
    5
    Views
    5,956

    What textbook/course produced these kinds of...

    What textbook/course produced these kinds of arcane directions?
  3. Replies
    8
    Views
    1,628

    Excellent question and observation! I initially...

    Excellent question and observation! I initially learned C so that I could create my own text adventure (with "real-time" fighting and other non-standard features - it's still a work in progress,...
  4. Replies
    13
    Views
    1,922

    Feeling a bit entitled, are we? lol

    Feeling a bit entitled, are we? lol
  5. Replies
    7
    Views
    5,186

    Muzgi, I had this problem in my first textbook!...

    Muzgi, I had this problem in my first textbook! Ahh, memories... :)
  6. Replies
    12
    Views
    1,607

    I agree with the other posters; the knowledge you...

    I agree with the other posters; the knowledge you seem to be missing here is how arrays work and how the indirection operator references element values. The best place I personally know of to read...
  7. You are requesting help with C++ code in the C...

    You are requesting help with C++ code in the C forum. While there is a solution in C, is this what you meant to do?
  8. I apologize. Believe it or not, I was ignorant of...

    I apologize. Believe it or not, I was ignorant of that rule. It won't happen again.

    I mistakenly thought that the comments I included would be instructive, as they explained the reasons for my...
  9. Sorry about the dual replies; I attempted to edit...

    Sorry about the dual replies; I attempted to edit my post and the server stopped responding. When the server's flatulence was finished, I was rewarded with two permanent posts, and an inabilty to...
  10. Here's how I made it work in code::blocks: ...

    Here's how I made it work in code::blocks:



    /* A simple program in which the user picks 2 numbers and does mathematical operation ( +, -, * or / ) */

    #include <stdio.h> //this is all...
  11. Here's how I made it work in code::blocks: ...

    Here's how I made it work in code::blocks:



    /* A simple program in which the user picks 2 numbers and does mathematical operation ( +, -, * or / ) */

    #include <stdio.h> //this is all...
  12. Re: the string literal... I thought that...

    Re: the string literal... I thought that initializing a character array string literal (as opposed to initializing a pointer-to-char string literal) made modification of individual array elements...
  13. Thanks for this info!!! I think I need to make...

    Thanks for this info!!! I think I need to make some adjustments to my debugger messages, so they include notification of segmentation faults. I actually agree with all of you; I'd rather be using...
  14. failed return value (non-zero); code changed as per suggestion, still have question

    Here's the same program, with altered code, as per suggestion by AndrewHunter and tabstop.

    Now, here's why I'm still puzzled: when I run the program, again, everything seems to do what it's...
  15. My modus operandi is to keep re-reading the...

    My modus operandi is to keep re-reading the chapter and testing new ideas with the compiler until I finally get it right. Then I always document the struggle so that I never forget it. I have to hit...
  16. Thanks for your input.

    Thanks for your input.
  17. tabstop, I'm not trying to argue with you, I'm...

    tabstop, I'm not trying to argue with you, I'm just trying to understand: why does beany.str print out the string that originally came from testing, if the allocated space isn't large enough, and...
  18. I'm not sure if that's because I haven't gotten...

    I'm not sure if that's because I haven't gotten to the chapter on strings yet (that's 16, and I'm on 8), or if my textbook is too old (pub. 2002). The skeleton the book provided contained the...
  19. While I'm scrambling to figure out how I screwed...

    While I'm scrambling to figure out how I screwed this up, could you tell me if the following code would be a better way to allocate the proper space:


    char * space = new char[x.ct];


    I'm...
  20. can't find what's making main return a non-zero value

    Hi Folks,

    Can anyone tell me why this console program errors out *after* it has correctly performed both of the show() functions? The program compiles without error or warning, which is why I...
  21. Replies
    9
    Views
    14,909

    Thank you for that clarification. I was...

    Thank you for that clarification. I was mistakenly thinking that the memory's data would be reset with *different* garbage values, for some crazy reason.
  22. Replies
    9
    Views
    14,909

    I figured that trying to print structure members...

    I figured that trying to print structure members after the memory was freed was a no-no, since doesn't the status of the pointed-to location become undefined at that point? I was just peeking under...
  23. Replies
    9
    Views
    14,909

    using delete on a structure pointer

    Hi everyone! I finished up my C programming book back in December, then took a break. I'm back and studying C++ now, and this is my first question.

    I completed the exercise successfully, in terms...
  24. Thanks for all your great work!!! :)

    Thanks for all your great work!!! :)
  25. Just wondered what the current status is... The...

    Just wondered what the current status is... The search function still can't find any of my posts or threads (searching by my user name).
Results 1 to 25 of 87
Page 1 of 4 1 2 3 4