how to make it work

Liste des GroupesRevenir à l c 
Sujet : how to make it work
De : fir (at) *nospam* grunge.pl (fir)
Groupes : comp.lang.c
Date : 29. Aug 2024, 14:25:23
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <877194bd8a95b9acb03db317ee000e94cce2834d@i2pn2.org>
User-Agent : Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
see such code
long long unsigned tag ;
void foo(long long unsigned tag)
{
  if(tag=='warsaw') printf("\nwarsaw");
  if(tag=='paris')  printf("\nparis");
  if(tag=='new york') printf("\nnew york");
  if(tag=='old york') printf("\nold york");
  if(tag=='very old york') printf("\nvery old york");
}
int main(void)
{
  foo('warsaw');
  foo('paris');
  foo('new york');
  foo('old york');
  foo('very old york');
  return 'bye';
}
and maybe guess the result (or how it should be)
(later i may tell you)
the problem is how to make it work i want to use that kind of
'tags' and would like to use it assuming at least 8 characters
work okay i mean the code above would "catch" only on proper tag and
each one would be printed one time
right now it dont - is thsi a way to make it work
(maybe except the last one as i understand
  if(tag=='old york') printf("\nold york");
  if(tag=='very old york') printf("\nvery old york");
may be treated as the same
(i need it to work on 32 bit old mingw/gcc)
?

Date Sujet#  Auteur
29 Aug 24 * how to make it work12fir
29 Aug 24 +* Re: how to make it work6Ben Bacarisse
29 Aug 24 i`* Re: how to make it work5fir
29 Aug 24 i +* Re: how to make it work2Ben Bacarisse
29 Aug 24 i i`- Re: how to make it work1fir
29 Aug 24 i `* Re: how to make it work2James Kuyper
29 Aug 24 i  `- Re: how to make it work1fir
29 Aug 24 +* Re: how to make it work2Kaz Kylheku
29 Aug 24 i`- Re: how to make it work1fir
29 Aug 24 `* Re: how to make it work3Bonita Montero
29 Aug 24  `* Re: how to make it work2fir
31 Aug 24   `- Re: how to make it work1Bonita Montero

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal