Mark_Co
asked on
New user to C++ on a Mac using xcode. Trying to use IDE correctly
First, I'm very new to programming and C++ so if I made a huge flaw in the code below, forgive me...it's possible I screwed up bigtime. I am trying to make a very, very basic program just so I can get started using xcode on my Mac instead of codeblocks on my pc to compile C++ programs
The above code outputs:
when I type in the 6 numbers ( as '1 2 3 4 5 6')and hit enter, the rest of the program does not run(the cout << a << b;). I tried running the program from bash also but that too was not working. I'm feeling really dumb right now. Can someone tell me what I'm doing wrong?
#include <iostream>
using namespace std;
int main(int argc, const char * argv[])
{
int a,b,c,d,e,f,g;
cout << "Enter 6 numbers: ";
cin >> a >> b >> c >> d >> e >> f >> g;
cout << a << b;
return 0;
}
The above code outputs:
Enter 6 numbers:
when I type in the 6 numbers ( as '1 2 3 4 5 6')and hit enter, the rest of the program does not run(the cout << a << b;). I tried running the program from bash also but that too was not working. I'm feeling really dumb right now. Can someone tell me what I'm doing wrong?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i apologize for this stupid question. I went back to xcode and got it fixed right away. Going to bed now, hahaha
ASKER