Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 40

Thread: What is wrong with this code?

  1. #11
    Join Date
    Jul 2002
    Posts
    1,388
    Rep Power
    0

    Default

    Wow ... so the last revisions I did were garbage. Haven't practiced sorting or searching as yet so I am going to redo it during holidays. In the meantime, will try to post progress of this interesting coursework I am doing.
    Sharing is caring? Then what if I care too much? A precarious situation, indeed...
    http://ip-check.org/ip-check.png

  2. #12
    Join Date
    Sep 2005
    Posts
    1,281
    Rep Power
    0

    Default

    noob here with a noob question... code i see here is written in Java?
    Zee
    -----
    To find yourself, think for yourself Socrates 469 BC

  3. #13
    Join Date
    Mar 2006
    Posts
    325
    Rep Power
    0

    Default

    i think its C. theres a java section for that kind of code
    1337

  4. #14
    Join Date
    Jul 2002
    Posts
    1,388
    Rep Power
    0

    Default

    It's indeed C. You may probably be able to judge it from the presence of a scanf or printf function.
    Sharing is caring? Then what if I care too much? A precarious situation, indeed...
    http://ip-check.org/ip-check.png

  5. #15
    Join Date
    Sep 2005
    Posts
    1,281
    Rep Power
    0

    Default

    Quote Originally Posted by wiel View Post
    i think its C. theres a java section for that kind of code
    Ohh ... I didn't even notice I was in any section at all.. but carry on gentlemen! I'll be watching this thread.


    Quote Originally Posted by carey View Post
    It's indeed C. You may probably be able to judge it from the presence of a scanf or printf function.
    Thnx for the tip! I've only done Java (basic skills classes i would call them).. but the code does look similar..
    Last edited by techdude; Apr 8, 2012 at 06:05 AM.
    Zee
    -----
    To find yourself, think for yourself Socrates 469 BC

  6. #16
    Join Date
    Dec 2004
    Posts
    261
    Rep Power
    0

    Default

    i did the code for coures work the other day..........
    I am str88,no curves no bends.
    nokia rocks(iphone too)

    21.5 emachice 1080p .... intel core 2 quad q6600 ... 4gig ocz memory ....h/d 320g....gpu ati hd 5750 1gddr5..m/B..intel

  7. #17
    Join Date
    Jul 2002
    Posts
    1,388
    Rep Power
    0

    Default

    On some new code.

    Why does input result in a crash here? http://www.pastebay.net/442462

    I am thinking fgets may the the proper way?
    Last edited by carey; Apr 11, 2012 at 08:12 AM.
    Sharing is caring? Then what if I care too much? A precarious situation, indeed...
    http://ip-check.org/ip-check.png

  8. #18
    Join Date
    Jul 2002
    Posts
    1,388
    Rep Power
    0

    Default

    Same thing happens here: http://www.pastebay.net/442801
    Sharing is caring? Then what if I care too much? A precarious situation, indeed...
    http://ip-check.org/ip-check.png

  9. #19
    Join Date
    Mar 2006
    Posts
    325
    Rep Power
    0

    Default

    probably happens because youre trying to store a string inside a pointer which isnt allowed.
    http://ideone.com/o7ms4

    scroll down to see the output
    1337

  10. #20
    Join Date
    Jul 2002
    Posts
    1,388
    Rep Power
    0

    Default

    Quote Originally Posted by wiel View Post
    probably happens because youre trying to store a string inside a pointer which isnt allowed.
    http://ideone.com/o7ms4

    scroll down to see the output
    This works in my compiler but doesn't work on ideone.com: http://ideone.com/LbeTp

    Guess this compiler needs to be more strict.
    Sharing is caring? Then what if I care too much? A precarious situation, indeed...
    http://ip-check.org/ip-check.png

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •