Search Results

Showing results 1 to 5 of 5
Search took 0.01 seconds.
Search: Posts Made By: darkagn ; Forum: C++ and child forums
Forum: C++ Apr 1st, 2008
Replies: 11
Views: 1,204
Posted By darkagn
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
Posted By darkagn
Sorry dougy83, you are correct, and thanks for helping my understanding. :)
Forum: C++ Mar 10th, 2008
Replies: 2
Views: 1,464
Posted By darkagn
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
Posted By darkagn
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
Posted By darkagn
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...
Showing results 1 to 5 of 5

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC