<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=8&amp;t=8144&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2014-08-15T13:33:06+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=8&amp;t=8144&amp;mode</id>
<entry>
<author><name><![CDATA[teedd]]></name></author>
<updated>2014-08-15T13:33:06+01:00</updated>
<published>2014-08-15T13:33:06+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91606#p91606</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91606#p91606"/>
<title type="html"><![CDATA[Re: Formatowanie stringu]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91606#p91606"><![CDATA[
Dziękuję za odpowiedź i podpowiedź.<br />Jeśli chodzi o to pierwsze, to będę mógł sprawdzić dopiero wieczorem.<br />Jeśli chodzi o to drugie, to już poprawiłem i odtąd będę grzeczny <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br />Pozdrowienia.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3636">teedd</a> — 15 sie 2014, o 13:33</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[xor]]></name></author>
<updated>2014-08-15T13:17:36+01:00</updated>
<published>2014-08-15T13:17:36+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91605#p91605</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91605#p91605"/>
<title type="html"><![CDATA[Re: Formatowanie stringu]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91605#p91605"><![CDATA[
<div class="quotetitle">teedd napisał(a):</div><div class="quotecontent"><br />jej sformatowaną wartość chcę podstawiać do zmiennej typu string<br /></div><br />[syntax=c]sprintf( swaga, &quot;%3.2f&quot;, wartosc_wagi);[/syntax]<br />lub <strong>sprintf_P(j.w)</strong> jeżeli wzorzec konwersji ma być PROGMEM.<br /><br />I jeszcze jedno: <a href="http://forum.atnel.pl/topic7402.html"  class="postlink">http://forum.atnel.pl/topic7402.html</a><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1774">xor</a> — 15 sie 2014, o 13:17</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[teedd]]></name></author>
<updated>2014-08-15T13:30:16+01:00</updated>
<published>2014-08-15T12:50:27+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91604#p91604</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91604#p91604"/>
<title type="html"><![CDATA[Re: Formatowanie stringu]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91604#p91604"><![CDATA[
Dziękuję za odpowiedź. Muszę to przetrawić <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><br />I jeszcze jedno pytanie.<br />Czy w środowisku Eclipse jest jakaś możliwość debugowania programu? Załóżmy, że wewnątrz programu mamy taki fragment :<br />[syntax=c]......<br />printf(&quot;The number 'num' is %d and the string 'str' is %s.\n&quot;, num, str);<br />......[/syntax]<br />i chciałbym na ekranie zobaczyć co wyprowadza na zewnątrz printf. Albo jaką wartość ma jakaś zmienna.<br />P.S. Wiem, że w Eclipse jest debugging - ale to mi też kompletnie nie wychodzi według helpa w Eclipse.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3636">teedd</a> — 15 sie 2014, o 12:50</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JanuszT]]></name></author>
<updated>2014-08-15T12:22:56+01:00</updated>
<published>2014-08-15T12:22:56+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91601#p91601</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91601#p91601"/>
<title type="html"><![CDATA[Re: Formatowanie stringu]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91601#p91601"><![CDATA[
Witam<br /><br />Może będzie Ci odpowiadać polecenie fcvt (musisz sprawdzić, opis tutaj <a href="http://www.indiabix.com/technical/c/strings/4"  class="postlink">http://www.indiabix.com/technical/c/strings/4</a>).<br /><br />Pozdrawiam<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4367">JanuszT</a> — 15 sie 2014, o 12:22</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[teedd]]></name></author>
<updated>2014-08-15T11:39:33+01:00</updated>
<published>2014-08-15T11:39:33+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91598#p91598</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91598#p91598"/>
<title type="html"><![CDATA[Re: Formatowanie stringu]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91598#p91598"><![CDATA[
To rozumiem (chyba)<br /><div class="quotetitle">xor napisał(a):</div><div class="quotecontent"><br />[syntax=c]char swaga&#91;&#93; = { '2', '.', '3', '4', '5', '\0' };[/syntax]<br /></div><br />Chyba niezbyt precyzyjnie opisałem problem. Chodzi mi o to, że zmienna <strong>wartosc_wagi</strong> będzie się zmieniać (będzie brana z generatora liczb pseudolosowch lub inaczej) i za każdym razem jej sformatowaną wartość chcę podstawiać do zmiennej typu string.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3636">teedd</a> — 15 sie 2014, o 11:39</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[xor]]></name></author>
<updated>2014-08-15T11:31:00+01:00</updated>
<published>2014-08-15T11:31:00+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91597#p91597</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91597#p91597"/>
<title type="html"><![CDATA[Re: Formatowanie stringu]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91597#p91597"><![CDATA[
[syntax=c]char swaga&#91;&#93; = { '2', '.', '3', '4', '5', '\0' };[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1774">xor</a> — 15 sie 2014, o 11:31</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[teedd]]></name></author>
<updated>2014-08-15T13:29:38+01:00</updated>
<published>2014-08-15T11:20:12+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91596#p91596</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91596#p91596"/>
<title type="html"><![CDATA[Formatowanie stringu]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=8144&amp;p=91596#p91596"><![CDATA[
Raczkuję w C - więc odpowiedź na moje pytanie jest pewnie prosta. Trochę szukałem po forum i w googlach - ale nie udało mi się znaleźć odpowiedzi. Ale do rzeczy.<br /><br />[syntax=c]double wartosc_wagi = 2.345;<br />printf( &quot;%3.2f&quot;,wartosc_wagi);[/syntax]<br /><br />i to się kompiluje.<br />Chciałbym jednak przypisać zmiennej typu string <strong>swaga</strong> sformatowaną wartość zmiennej <strong>wartosc_wagi</strong>. Coś w stylu <br /><br />[syntax=c]char swaga&#91;&#93; = .....[/syntax]<br /><br />Co wpisać zamiast kropek? Nie udaje mi się nic wykombinować. <br />Pozdrowienia.Pozdrowienia.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3636">teedd</a> — 15 sie 2014, o 11:20</p><hr />
]]></content>
</entry>
</feed>