Thread: What is wrong with my code?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User yann's Avatar
    Join Date
    Sep 2009
    Location
    Zagreb, Croatia
    Posts
    186
    Well, pn is still name.c, because I haven't changed it yet, what is wired is that program doesn't stop when it gets to scanf function, or when the searchn is higher than 2...
    Arduino rocks!

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by yann View Post
    Well, pn is still name.c, because I haven't changed it yet, what is wired is that program doesn't stop when it gets to scanf function, or when the searchn is higher than 2...
    That's because you used OR.


    Quzah.
    Last edited by quzah; 10-10-2009 at 06:38 AM.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What's wrong with my code?
    By x2x3i5x in forum C Programming
    Replies: 6
    Last Post: 09-28-2009, 11:52 AM
  2. what is wrong in this simple code
    By vikingcarioca in forum C Programming
    Replies: 4
    Last Post: 04-23-2009, 07:10 AM
  3. what is wrong with this code please
    By korbitz in forum Windows Programming
    Replies: 3
    Last Post: 03-05-2004, 10:11 AM
  4. I cant find what is wrong with this code
    By senegene in forum C Programming
    Replies: 1
    Last Post: 11-12-2002, 06:32 PM
  5. very simple code, please check to see whats wrong
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 10-10-2001, 12:51 AM