• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C


  • Subject: Re: C
  • From: Andrew Pinski <email@hidden>
  • Date: Fri, 29 Aug 2003 14:46:20 -0400 (EDT)

> hi, i`am learning C, and i has faced a problem
> int main()
> {
> int temp[31];
> int index, total;
> index = 0;
> do
> {
> printf("temp #%d, \
> to quit type 555: ", index);
> scanf("%d", &temp[index]);

index++; /* You forgot to increment the index. */

> }
> while (index < 31 && temps[index-1] != 555);
> }
> maybe someone say what i do wrong(why the cycle does not stop on 555,
> and values are not remembered )?

Thanks,
Andrew Pinski


> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >C (From: Michael Kozerew <email@hidden>)

  • Prev by Date: C
  • Next by Date: Re: C
  • Previous by thread: C
  • Next by thread: Re: C
  • Index(es):
    • Date
    • Thread