Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <69d954a3eb3e76ddc471ce29d6eea06454b46bd8@i2pn2.org>
Deutsch   English   Français   Italiano  
<69d954a3eb3e76ddc471ce29d6eea06454b46bd8@i2pn2.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: fir <fir@grunge.pl>
Newsgroups: comp.lang.c
Subject: Re: enum sets
Date: Thu, 29 Aug 2024 14:10:55 +0200
Organization: i2pn2 (i2pn.org)
Message-ID: <69d954a3eb3e76ddc471ce29d6eea06454b46bd8@i2pn2.org>
References: <vaoclb$3lfbf$1@dont-email.me> <21d096d342279f8bcbb47f264401d3848c4e00aa@i2pn2.org> <vapmhq$3ullf$3@dont-email.me> <d25a5d97d8e6a28e97f4eebbb57bc5f249323a30@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 29 Aug 2024 12:10:56 -0000 (UTC)
Injection-Info: i2pn2.org;
	logging-data="137535"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="+ydHcGjgSeBt3Wz3WTfKefUptpAWaXduqfw5xdfsuS0";
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
X-Spam-Checker-Version: SpamAssassin 4.0.0
In-Reply-To: <d25a5d97d8e6a28e97f4eebbb57bc5f249323a30@i2pn2.org>
Bytes: 1603
Lines: 25

fir wrote:
>
> as to enums i dislike them a lot.. realy sometimes is better tu use
> 'asd' and sometimes even strings and comepare by strcomp
>

im not sure though how to make 'shgshg' (name it a char literal form of 
adhoc enums or tags) up to 8 chars work as 8 chars would suffice in many 
cases

asked but no one answered

long long unsigned tag ;

void foo(long long unsigned tag)
{
  if(tag=='warsaw') printf("warsaw");
  if(tag=='paris')  printf("paris");
  if(tag=='new york') printf("new york");


}


foo('paris');