ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Хихин Руслан" <hihin@rambler.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] c language question
Date: Sat, 4 Nov 2006 22:17:52 +0300
Message-ID: <200611042218.00506@ruslandh> (raw)
In-Reply-To: <c00cf0611041055h2388c1e2lb0a1dd2407133b1f@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 832 bytes --]

Здравствуйте Michael Holzman
  В сообщении от Saturday 04 November 2006 21:55 Michael Holzman 
написал(a):
 > Я, наверное, чего-то не понимаю. Поэтому, вопрос: почему никто не
 >
 > рассматривал что-нибудь вроде
 >
 >
 >
 > for(i = 0; a[i] && a[i] == '0'; i++);
 >
 > if(a[i] == '.')
 >
 >    i++;
 >
 > printf("%s\n", a+i);
Честно - не понял алгоритм :)
Хотя идею - понял - просто отбросить целую часть и ведущие нули из 
строки, а то, что осталось от строки выдать на печать. Просто 
1) следующим действием может оказаться прибавить к полученному числу 
какую-нибудь константу или т.п.
2) а если там 0.011 ?

-- 
  А ещё говорят так  (fortune):
 
> service holywar start
ээ. а копирайт ставить кто будет? :)
		-- gns in smoke-room@
________________________________________________________________________
С уважением Хихин Руслан

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-11-04 19:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-04 16:14 Andrey Rybak
2006-11-04 16:18 ` Eugene Ostapets
2006-11-04 17:39   ` Хихин Руслан
2006-11-04 17:59     ` Eugene Ostapets
2006-11-04 18:41       ` Хихин Руслан
2006-11-04 18:55         ` Michael Holzman
2006-11-04 19:17           ` Хихин Руслан [this message]
2006-11-04 20:32             ` Michael Holzman
2006-11-04 17:44   ` Andrey Rybak
2006-11-04 17:53     ` Eugene Ostapets
2006-11-04 18:24       ` Andrey Rybak
2006-11-04 18:30         ` Eugene Ostapets
2006-11-04 18:51           ` Andrey Rybak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200611042218.00506@ruslandh \
    --to=hihin@rambler.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git