Greetings,

I think there's at least one other lister using xCode.  My question this time 
is how to test prompting for a value, or send command line parameters.

For example, if I compile/run the following C++ in terminal, I get the expected 
result:

#include <iostream>
using namespace std;

int main (int argc, const char *argv[]) {
int val;
cout << "Enter a value: ";
cin >> val
cout << "You entered " << val;
}

When I enter the above as a command line tool project and go to the build 
results under product in the project navigator it appears to prompt for the 
value, but no matter what I enter, val is set to 1.  I don't think this is a 
coding issue since its a pretty basic program and as stated, the output is as 
expected in the command line.

If noone out there is using xCode, perhaps I should abandon the idea of 
developing in an IDE, but this seems to be a more marketable skill to acquire 
since this is now the main stream methodology.

TIA for any assistance on or off list and best regards.
Geoff
<--- Mac Access At Mac Access Dot Net --->

To reply to this post, please address your message to mac-access@mac-access.net

You can find an archive of all messages posted    to the Mac-Access forum at 
either the list's own dedicated web archive:
<http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html>
or at the public Mail Archive:
<http://www.mail-archive.com/mac-access@mac-access.net/>.
Subscribe to the list's RSS feed from:
<http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml>

The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus and 
worm-free!

Please remember to update your membership options periodically by visiting the 
list website at:
<http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/>

Reply via email to