From: Yakov Bezrukov <subst@gorodok.net> To: community@altlinux.ru Subject: Re: [Comm] warnings Date: Mon, 28 Jun 2004 18:05:20 +0700 Message-ID: <200406281805.20773.subst@gorodok.net> (raw) In-Reply-To: <1661334712.20040628172534@ngs.ru> On Monday 28 June 2004 17:25, php-coder wrote: > 0000100101011110100100101::28.06.2004::011000100100100010011110010001 >0 > > Здравствуйте, Yakov! > > Отвечаю на Ваше письмо: > > А судя по этому: > > unsigned char *tracks_names_array > > никак не он :) > > А если написать так: unsigned char *tracks_names_array[] - то это > будет он? > Компилятор ругаться будет, не знает как память выделить. Я бы сделал следующим образом: unsigned char **tracks_names_array; tracks_names_array = new char*[size]; tracks_names_array[i] = buff_pointer; .... //работа с массивом .... delete[] tracks_names_array; > >> > Вполне логично ругается :) ты присваиваешь элементу массива > >> > символов указатель на символ. > > Подразумевается, что я присваиваю элементу массива указателей > указатель на строку, считанную getline. -- Best regards, Yakov Bezrukov mailto: subst@gorodok.net ICQ: 176524902 JID: nebulam51@jabber.ru
next prev parent reply other threads:[~2004-06-28 11:05 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-06-28 9:10 php-coder 2004-06-28 9:27 ` Yakov Bezrukov 2004-06-28 9:36 ` Re[2]: " php-coder 2004-06-28 9:45 ` Yakov Bezrukov 2004-06-28 10:25 ` Re[2]: " php-coder 2004-06-28 11:05 ` Yakov Bezrukov [this message] 2004-06-29 4:00 ` php-coder 2004-06-28 9:30 ` php-coder 2004-06-28 10:51 ` Andrey Rahmatullin 2004-06-29 3:50 ` Re[2]: " php-coder 2004-06-28 9:40 ` Andrey Rahmatullin
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=200406281805.20773.subst@gorodok.net \ --to=subst@gorodok.net \ --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