Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old Dec 8, 2012, 04:04 AM   #1
Adrian00
macrumors newbie
 
Join Date: Dec 2012
Xcode 4.5.2 - Execution stops after CIN input

Hello,

I am very new to programming, especially in C++ so I am sorry if I suck at describing the problem.

I am currently trying to run a programme to just simply input a value and output the value again.

Quote:
#include <iostream>
using namespace std;

int main()
{

int length;

cout << "Please enter length: ";
cin >> length;

cout << length;



return 0;
}
However, when I run the programme it stops after I input the value for CIN and never gives me any output.

I've researched on google and there seems to be a problem with the preprocessors of the debugger in earlier versions. However I couldn't find any of these settings in my Xcode.

The problem seems similar to this, however the solutions don't resolve my problem and I also don't have any of the macros (or at least can't find them).


Does somebody know what to do here?

Lastly, please try and explain it step by step, so that I can follow it. :-)
Adrian00 is offline   0 Reply With Quote

 
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:51 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC