ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Someone Unknown <someone_lists@bk.ru>
To: community@altlinux.ru
Subject: Re: [JT][Comm] Re: [Comm] Вопрос по программированию на языке Си
Date: Sat, 18 Jan 2003 14:43:47 +0300
Message-ID: <200301181443.47265.someone_lists@bk.ru> (raw)
In-Reply-To: <822192252.20030116111129@mercuri.mk.ua>

В сообщении от 16 Январь 2003 12:11 isa написал:
> AB> P.P.S. Сам я чистой воды perl'овщик, Си знаю на уровне "когда-то
> в отпуске AB> читал Кернигана", так что просьба ногами сильно не
> бить.
>
>     Можно читать строку, выкусывать разделители /t,' ' как
> разделители полей и /n как разделители строк, если нужно могу
> накрапать кусочек и кинуть приватом

Угу... А можно написать объектную либу для этого дела... А еще лучше 
использовать corba - она для того и нужна...
Не, определенно, народ сошел с ума.

#include <stdio.h>

int main(int argc,char **argv)
{
	float f[7];
	FILE *f=fopen(argv[1],"r");
	while(!feof(f)) {
		fscanf("%f %f %f %f %f %f 
%f",&f[0],&f[1],&f[2],&f[3],&f[4],&f[5],&f[6]);
		printf("Как-вам-тут-надо-это-печатать: 1 => %f, 3 => %f и 
т.д.\n",f[0],f[2]);
	}
	fclose(f);
	return 0;
}



      reply	other threads:[~2003-01-18 11:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-15 20:30 Andrey Brindeew
2003-01-15 21:09 ` Anton Kovalenko
2003-01-16  5:54 ` [Comm] Re: [Comm]Вопрос " "Инженер"
2003-01-17 13:57   ` [Comm] Re: Вопрос " Alexey Tourbin
2003-01-16  9:11 ` [Comm] Re: [Comm] " isa
2003-01-18 11:43   ` Someone Unknown [this message]

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=200301181443.47265.someone_lists@bk.ru \
    --to=someone_lists@bk.ru \
    --cc=community@altlinux.ru \
    /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