Article View: comp.lang.c
Article #1365Re: p = {1,0,0}
From: fir
Date: Sat, 07 Nov 2026 19:14
Date: Sat, 07 Nov 2026 19:14
111 lines
3331 bytes
3331 bytes
bartc pisze:
>>
>>
>> there is also option
>>
>> int rand { rand = rand()}
>
> Which means...?
check also this you got
a structure module
some
{
int x;
}
some is structure but also may be use as 'type'
main()
{
some;
some.x = 10;
some a,b,c;
a.x = 10 ;
}
now get an array of some
some[Y][X];
all a function part to it
some[Y][X] (int v)
{
int val;
for (int j=0; j<Y; j++}
for (int i=0; i<X; i++}
{
some[j][i].val = v;
}
}
some[100][100](3);
//creates table of 100x100 of some and calls on it so it feels up with 3
this kinda unnaturat to c cases where you want an array of int stright
so its good to have also such syntax
int some[Y][X] (int v)
{
for (int j=0; j<Y; j++}
for (int i=0; i<X; i++}
{
some[j][i] = v;
}
}
this one is virtually just the same as
some[Y][X] (int v)
{
int;
for (int j=0; j<Y; j++}
for (int i=0; i<X; i++}
{
some[j][i] = v;
}
}
some is structure that contains int but anonymous so you dont need to
name a field just write some = 29
it also kinda proves that this kind of syntax is more logical probaly on
ground of c
some {int}
//seems more logical than int some ..but here for historical reasons
"int some" may be used i think
NOTE i not "up think" (think up?) those construction i "down think" them
(think down them?)
the difference is those are consequences of what c already is but
watching those lacks c has and like 'listing' them so its thinking don
not thinking up i could say
Technical Details
Message-ID:
<11cntae$3nme2$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me> <11cae5m$318tq$1@dont-email.me> <11calrt$34gq3$1@dont-email.me> <11carqs$36m0o$1@dont-email.me> <11cb4hs$3a13l$1@dont-email.me> <11ccnkq$3pjhd$1@dont-email.me> <11ccobd$3ps4l$1@dont-email.me> <11cctee$3rtjh$1@dont-email.me> <11ccu0t$3s54f$1@dont-email.me> <11ccv4n$3sjn5$1@dont-email.me> <11cd05l$3t1er$1@dont-email.me> <11cd0q3$3ta28$1@dont-email.me> <11cd1vs$3tpfp$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: fir <profesor.fir@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: p = {1,0,0}
Date: Sat, 7 Nov 2026 20:14:13 +0100
Organization: A noiseless patient Spider
Lines: 111
Message-ID: <11cntae$3nme2$1@dont-email.me>
References: <11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me>
<11cae5m$318tq$1@dont-email.me> <11calrt$34gq3$1@dont-email.me>
<11carqs$36m0o$1@dont-email.me> <11cb4hs$3a13l$1@dont-email.me>
<11ccnkq$3pjhd$1@dont-email.me> <11ccobd$3ps4l$1@dont-email.me>
<11cctee$3rtjh$1@dont-email.me> <11ccu0t$3s54f$1@dont-email.me>
<11ccv4n$3sjn5$1@dont-email.me> <11cd05l$3t1er$1@dont-email.me>
<11cd0q3$3ta28$1@dont-email.me> <11cd1vs$3tpfp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 07 Nov 2026 19:14:22 +0000 (UTC)
Injection-Info: dont-email.me;
logging-data="3922370"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18f3n80tzzTm12YBS1QS6jx0qFZsg/5wxA="; posting-host="3ac0815c9a3a38f36520c61876cf5dcb"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101
Firefox/140.0 SeaMonkey/2.53.24
Cancel-Lock: sha1:KhAN1zNNH7LTsXFea0+A69UkKZg= sha256:RXPS6PAbl5RgHcDAcLkmCyCllr0OHNIZW8QIc39+Xns=
sha1:39/f4yg5oVaUbXye4MNFgJibTgU= sha256:H3NyuuY41Do5XVYrEYNnpqXmUtm50+Onh+dqvLAwUmM=
In-Reply-To: <11cd1vs$3tpfp$1@dont-email.me>