• 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
C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C


  • Subject: C
  • From: Michael Kozerew <email@hidden>
  • Date: Sat, 30 Aug 2003 00:32:39 +0600

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]);
}
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 )?
_______________________________________________
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.

  • Follow-Ups:
    • Re: C
      • From: David Thorp <email@hidden>
    • Re: C
      • From: Neil Earnshaw <email@hidden>
    • Re: C
      • From: Dave Rosborough <email@hidden>
    • Re: C
      • From: Andrew Pinski <email@hidden>
  • Prev by Date: Re: tweaking Panther's NSTabView
  • Next by Date: Re: C
  • Previous by thread: feedback on printing strategy
  • Next by thread: Re: C
  • Index(es):
    • Date
    • Thread