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.
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.
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.
#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.