Thread: Help with Xcode

  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    25

    Help with Xcode

    I'm currently working on a project that simply converts a DMX value to a 100% value.

    I have all the code I need and it works properly, but when i try to run it in xcode, it only shows the first number I type. I can type something larger or more than 1 character and it will still affect it the same, but it doesn't show up until the program outputs the converted result.

    If I run it in Terminal it works perfect, the issue is only in xcode.
    Any suggestions?

    Thanks

  2. #2
    Registered User
    Join Date
    Sep 2008
    Posts
    200
    Could be a buffering issue - I've had a similar one with KDevelop. Try flushing your output stream after each write and see if that helps.

  3. #3
    Registered User
    Join Date
    Sep 2012
    Posts
    25
    that didn't work. on "cin" i can type any number i want, but only the first character shows up.

    it's really annoying.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C Code in Xcode
    By rmcinnes in forum C Programming
    Replies: 2
    Last Post: 04-11-2011, 07:27 AM
  2. Warning from xcode
    By skiabox in forum C++ Programming
    Replies: 4
    Last Post: 11-25-2010, 08:20 AM
  3. getline under Xcode on a Mac
    By Dino in forum C++ Programming
    Replies: 7
    Last Post: 12-26-2009, 11:37 AM
  4. Need help from you Xcode users
    By Memloop in forum Tech Board
    Replies: 7
    Last Post: 09-22-2009, 10:27 AM
  5. mac os x xcode
    By magus2500x in forum C++ Programming
    Replies: 2
    Last Post: 11-03-2005, 12:12 AM