Thread: Palindrome Program Help!

  1. #16
    Registered User
    Join Date
    Nov 2011
    Posts
    31
    Actually, forget Lacan. He's just nuts.

  2. #17
    Registered User
    Join Date
    Nov 2011
    Posts
    31
    *commentary about how off-topic I am
    *more commentary about how excuses don't make good programming
    *more tedious commentary about the definition of 'validity' and how meaning means something and you're wrong and I'm right

  3. #18
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by galvadon View Post
    @commontater

    Explain. "Valid"? I've taken formal logic and I'm guessing it doesn't mean the same thing. I think you mean that I didn't have to add the null character, which I thought about but was tired and wanted to go to bed. But I guess there's always improvement no matter how perfect you think you are.
    Read up on C's "rules of scope"... which governs where and for how long a variable is valid...


    This is garbage code but it should give you the idea...
    Code:
    int dummyfunc(int x)  // x is valid only in this function
     {
        int z = x;           // z is valid throught the function
         x = 3 + x; 
       { 
          int y;              // y is valid only until the closing brace
          y = x + 2;
        }
        
       while (z > 0)
         {  int q = x;    // q is valid only in the while loop
             q += x;
             z--; 
          }  
      return x;
    }
    And you throught all those braces were just for show, didn't ya???

  4. #19
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by galvadon View Post
    *commentary about how off-topic I am
    *more commentary about how excuses don't make good programming
    *more tedious commentary about the definition of 'validity' and how meaning means something and you're wrong and I'm right
    What the heck have you been smoking?

    GEES!

  5. #20
    Registered User
    Join Date
    Jul 2011
    Posts
    25
    I'm curious why a final project is accepted without modular code or good format, but eh.

  6. #21
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Amberlampz View Post
    I'm curious why a final project is accepted without modular code or good format, but eh.
    It will be graded as submitted... if he wrote "I ride a tricycle" on a page and turned it in, he should expect the grade it's worth.

  7. #22
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,613
    Quote Originally Posted by galvadon View Post
    Well, he pretty much had the whole thing already, and "giving it to him" is easily equated with "read from the book/self-taught/raising your hand and asking the teacher". I guess you could make the case that he would learn more on his own, but I think that's just a romantic myth of independence that misunderstands how human beings work -- I recommend reading from Saussure to Lacan before basing your anger on sweeping assumptions about the human condition you probably aren't aware that you're making. Edit: Sweeping assumptions made in the folk-privacy of one's mind that don't consider how many years of epistemological study have gone into how annoyingly coercive "common sense" is.
    You only posted your prior homework with one or two lines of bull........ dude, come on. I don't really want to understand your ........ philosophy. If you want to help people who've almost got it you could actually bother to explain exactly what they did wrong, like we do all the time. That way if you make a mistake in your code you at least look like you know what you're doing.

  8. #23
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by galvadon View Post
    Well, he pretty much had the whole thing already, and "giving it to him" is easily equated with "read from the book/self-taught/raising your hand and asking the teacher".
    And... when his teacher checks here --and they do-- it's just as easily equated with cheating on homework... and the grade that gets you.

    You didn't help him... you may well have sabotaged him.


    I guess you could make the case that he would learn more on his own, but I think that's just a romantic myth of independence that misunderstands how human beings work -- I recommend reading from Saussure to Lacan before basing your anger on sweeping assumptions about the human condition you probably aren't aware that you're making. Edit: Sweeping assumptions made in the folk-privacy of one's mind that don't consider how many years of epistemological study have gone into how annoyingly coercive "common sense" is.
    And what do the studies say about nonsense? I'm thinking you're something of an expert on that topic.

  9. #24
    Registered User
    Join Date
    Nov 2011
    Posts
    31
    The following words are vaguely insulting: "bull", "philosophy", "bother to explain", "like we do", "look like you know","nonsense".

    "sabotaged" - I'm sure whoever checks here will contemplate whether raising the "cheating" flag is 1) worth his time (based on the performance of both studentEdit: s thus far, etc.) and 2) whether it's accurate to use the word "cheating" when the code I put up could easily have been found on the notes of a study group or in the book or with a google search and probably understood, since Edit: 3) whoever checks here and has an impact on grading will remember something about every resource, including the internet, being included in the information available for project completion.

    "nonsense" - Well, I could say the very idea of "nonsense" is an imperialistic language-game, but you'd probably say that's "nonsense". Then we can talk about fear and castrated masculinity, which I think is applicable outside Lacanian psychoanalysis, frankly. Probably even outside the set of nonsensical things. That seems like a suspiciously infinite set, if I do say so.
    Last edited by galvadon; 12-12-2011 at 05:12 PM.

  10. #25
    Registered User
    Join Date
    Nov 2011
    Posts
    31
    Also, it looks like "string2" is "valid" from 18 to 30.

  11. #26
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,613
    Quote Originally Posted by galvadon View Post
    The following words are vaguely insulting: "bull", "philosophy", "bother to explain", "like we do", "look like you know","nonsense".
    Unfortunately, taking words apart like that destroys meaning, and in fact you have lost complete track of who's said what. So I suggest, if you have anything else to say, that you read my post again. And really, thank you but I don't need any book recommendations at this time. I can't work in any more reading time.

  12. #27
    Registered User
    Join Date
    Nov 2011
    Posts
    31
    Well, I haven't lost track of who said what, and nothing I typed implies that. The quotes function like quotes generally do: they refer to a context of usage where the meaning, in this case, is clearly ..............ry. More specifically, it's an ad hominem that attacks my ability to read and comprehend without actually dealing with what I said .... and accuses me of cheating. It also claims I'm an expert on nonsense, which could be the same as saying I'm an expert on something lots of people don't understand, something that is therefore hard, therefore making me a genius, which I am. Or it could mean I'm an expert on things that don't syntactically obtain, which would be false - and a tired criticism based on a lack of exposure which a few moments of self-reflection would reveal, provided one isn't developmentally arrested. <<and that, sir, is an ad hominem

  13. #28
    Registered User
    Join Date
    Nov 2011
    Posts
    31
    Also: Oh man, what are you reading?!?!?!?! I'm reading Harry Potter!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  14. #29
    Registered User
    Join Date
    Nov 2011
    Location
    Saratoga, California, USA
    Posts
    334
    So this is a philosophy thread... well then,

    "If it is correct, it will compile. If it runs, it compiled. If it doesn't run, it is not correct." Oh yawn, formal logic is so dreary.

    Just because it compiles, doesn't mean it will run, and just because is runs, doesn't mean it works, and just because it works, doesn't mean it is correct.

    @galvadon

    And your code, my friend, was anything but correct. Which is fine, you're learning, and we've all learned by making mistakes. But then, how do you think you are helping anyone learn programming by simply posting your program, if learning requires making mistakes and figuring them out? (I know, I know... a slight stench of hypocrisy surrounds me as I handed you your corrected code in your thread, which you seem to have ignored /shrug). So, even if your code was correct and you were the Guru of C, you haven't helped the OP in any way.
    Last edited by Tclausex; 12-12-2011 at 06:55 PM.

  15. #30
    Registered User
    Join Date
    Nov 2011
    Posts
    31
    It wasn't any more "correct" than what I had. You're just defining "correct" however you feel like it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Palindrome-kinda program with pointers
    By porsche911nfs in forum C++ Programming
    Replies: 27
    Last Post: 04-23-2009, 09:16 PM
  2. Need help , Palindrome program
    By amigoloko in forum C++ Programming
    Replies: 9
    Last Post: 07-11-2005, 12:07 PM
  3. Palindrome Program using Memory mapping
    By rrsanch in forum C++ Programming
    Replies: 1
    Last Post: 09-24-2004, 11:49 PM
  4. Palindrome program help please
    By hunter_04 in forum C++ Programming
    Replies: 7
    Last Post: 09-20-2004, 07:38 PM
  5. C++ Palindrome program help
    By hunter_04 in forum C++ Programming
    Replies: 8
    Last Post: 09-19-2004, 09:23 PM