<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Need help in C]]></title><description><![CDATA[<p dir="auto">Assignment එකකට C දන්න උදව් කරන්න පුළුවන් කෙනෙක් ඉන්නවද? ටිකක් urgent.</p>
]]></description><link>https://lankadevelopers.lk/topic/62/need-help-in-c</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 02:45:33 GMT</lastBuildDate><atom:link href="https://lankadevelopers.lk/topic/62.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 31 Dec 2018 04:14:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Need help in C on Thu, 10 Jan 2019 14:07:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/71">@Dilshan-Lakshitha</a> Machan first of all this is a community and it's not a place where you get other people to code for free of charge. Even if we wanted to I'm pretty sure most of us don't have enough time but what we can do is help you when you get stuck in some place or you don't know what to do next. Without out giving an effort, there won't be any help.</p>
<p dir="auto">Ok now let me give you a basic idea how this should be developed.</p>
<ol>
<li>
<p dir="auto">Get all the Menu Items and prices into a  <em>.txt file</em></p>
<p dir="auto">eg: - Fried Rice 180<br />
Fried Noodles 200<br />
etc.</p>
</li>
<li>
<p dir="auto">Using file reading function read them at the start and get it into a 2D array and print them accordingly.</p>
<p dir="auto">it should be showed to select. (This may vary according to user's preference)<br />
eg:-</p>
<ol>
<li>Fried Rice - Rs. 180</li>
<li>Fried Noodles - Rs 200<br />
etc.<br />
999.Done</li>
</ol>
</li>
<li>
<p dir="auto">Let the user select using the input method. Make sure the above said is in a loop. I prefer while loop.</p>
</li>
<li>
<p dir="auto">Each time the user selects an item add it to an array. I recommend using just numbers as you already have food items on another array.<br />
eg:-</p>
<pre><code>      int foodArr[200] = {2,5,9}
</code></pre>
</li>
<li>
<p dir="auto">Then at the end of the ordering process when user hits that 999 or Done. Calculate the ordered food array and print it out.</p>
</li>
</ol>
<p dir="auto">Try this method and see. Else come back to us and someone else or me would be able to help you.</p>
]]></description><link>https://lankadevelopers.lk/post/558</link><guid isPermaLink="true">https://lankadevelopers.lk/post/558</guid><dc:creator><![CDATA[lahirunc]]></dc:creator><pubDate>Thu, 10 Jan 2019 14:07:41 GMT</pubDate></item><item><title><![CDATA[Reply to Need help in C on Mon, 31 Dec 2018 05:39:45 GMT]]></title><description><![CDATA[<p dir="auto">hotel reservation system එකක් හදන්නේ. මට කරන්න තියෙන්නේ කෑම ඔර්ඩර් කරන function එක.total එක final bill එකට calculate වෙන්න ඕනේ.code එකක් හම්බුනා ඒක complex වැඩි.  මේ පහල තියන එකේ idea එක අරගෙන GNU GCC Compiler එකට ලියන්න ඕනේ.</p>
<p dir="auto"><a href="https://pastebin.com/TZNUsGSW" target="_blank" rel="noopener noreferrer nofollow ugc">https://pastebin.com/TZNUsGSW</a></p>
]]></description><link>https://lankadevelopers.lk/post/392</link><guid isPermaLink="true">https://lankadevelopers.lk/post/392</guid><dc:creator><![CDATA[Dilshan Lakshitha]]></dc:creator><pubDate>Mon, 31 Dec 2018 05:39:45 GMT</pubDate></item><item><title><![CDATA[Reply to Need help in C on Mon, 31 Dec 2018 05:06:41 GMT]]></title><description><![CDATA[<p dir="auto">c nam karala na hebei c++ nam karala thiyenawa. mokadda karanna one kiyala dannko kattiya help karai</p>
]]></description><link>https://lankadevelopers.lk/post/391</link><guid isPermaLink="true">https://lankadevelopers.lk/post/391</guid><dc:creator><![CDATA[root]]></dc:creator><pubDate>Mon, 31 Dec 2018 05:06:41 GMT</pubDate></item></channel></rss>