Forum: C++ Apr 1st, 2008 |
| Replies: 11 Views: 1,204 It seems as though you've done everything up until this point. For this section you need to:
somehow prompt the user for some coordinates
use these coordinates to form some lines
sum the... |
Forum: C++ Mar 12th, 2008 |
| Replies: 20 Views: 2,878 Sorry dougy83, you are correct, and thanks for helping my understanding. :) |
Forum: C++ Mar 10th, 2008 |
| Replies: 2 Views: 1,464 You write it like this:
int main()
{
int x, y;
cin >> x;
cin >> y;
if (x==0 && y==0)
// the && means and, use || for or
{ |
Forum: C++ Mar 10th, 2008 |
| Replies: 20 Views: 2,878 You use const in this situation because the strings aren't going to change, you want them to remain constant.
The char * is an object type in C++ that literally means "pointer to char". The char... |
Forum: C++ Nov 30th, 2007 |
| Replies: 7 Views: 8,218 I'm pretty sure this should work:
char c;
cin >> c;
I haven't tried it, but it only allows for a one character input I think... |