<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: C program to Implement Morse code to text conversion and vice-versa.	</title>
	<atom:link href="https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-to-implement-morse-code-to-text-conversion-and-vice-versa/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-to-implement-morse-code-to-text-conversion-and-vice-versa/</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sat, 07 Feb 2015 04:06:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>
		By: vicky_dx		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-to-implement-morse-code-to-text-conversion-and-vice-versa/comment-page-1/#comment-79784</link>

		<dc:creator><![CDATA[vicky_dx]]></dc:creator>
		<pubDate>Sat, 07 Feb 2015 04:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1146#comment-79784</guid>

					<description><![CDATA[// new_morse_code.cpp : Defines the entry point for the console application.
//

// morse_code.cpp : Defines the entry point for the console application.
//

#include 
#include 
#include 

char * morse_alpha[] = {
	&quot;.-&quot;, &quot;-...&quot;, &quot;-.-.&quot;, &quot;-..&quot;, &quot;.&quot;, &quot;..-.&quot;,
	&quot;--.&quot;, &quot;....&quot;, &quot;..&quot;, &quot;.---&quot;, &quot;-.-&quot;, &quot;.-..&quot;,
	&quot;--&quot;, &quot;-.&quot;, &quot;---&quot;, &quot;.--.&quot;, &quot;--.-&quot;, &quot;.-.&quot;,
	&quot;...&quot;, &quot;-&quot;, &quot;..-&quot;, &quot;...-&quot;, &quot;.--&quot;, &quot;-..-&quot;,
	&quot;-.--&quot;, &quot;--..&quot;
};
char *morse_num[] = {
	&quot;-----&quot;, &quot;.----&quot;, &quot;..---&quot;,
	&quot;...--&quot;, &quot;....-&quot;, &quot;.....&quot;,
	&quot;-....&quot;, &quot;--...&quot;, &quot;---..&quot;,
	&quot;----.&quot;
};

void find_morse(char *s);
int main()
{

	char str[500];

	printf(&quot;Enter anything : &quot;);
	while (1)
	{
		scanf(&quot;%s&quot;, str);	//You can use gets function too;
		find_morse(str);
		printf(&quot;\n&quot;);
	}
	return 0;

}
void find_morse(char *s)
{
	while (*s)
	{
		switch (toupper(*s))
		{
		case &#039;A&#039;:
			printf(&quot;%s&quot;, morse_alpha[&#039;A&#039; - 65]);
			s++;
			break;
		case &#039;B&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;B&#039; - 65]);
			s++;
			break;
		case &#039;C&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;C&#039; - 65]);
			s++;
			break;
		case &#039;D&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;D&#039; - 65]);
			s++;
			break;
		case &#039;E&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;E&#039; - 65]);
			s++;
			break;
		case &#039;F&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;F&#039; - 65]);
			s++;
			break;
		case &#039;G&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;G&#039; - 65]);
			s++;
			break;
		case &#039;H&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;H&#039; - 65]);
			s++;
			break;
		case &#039;I&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;I&#039; - 65]);
			s++;
			break;
		case &#039;J&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;J&#039; - 65]);
			s++;
			break;
		case &#039;K&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;K&#039; - 65]);
			s++;
			break;
		case &#039;L&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;L&#039; - 65]);
			s++;
			break;
		case &#039;M&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;M&#039; - 65]);
			s++;
			break;
		case &#039;N&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;N&#039; - 65]);
			s++;
			break;
		case &#039;O&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;O&#039; - 65]);
			s++;
			break;
		case &#039;P&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;P&#039; - 65]);
			s++;
			break;
		case &#039;Q&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;Q&#039; - 65]);
			s++;
			break;
		case &#039;R&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;R&#039; - 65]);
			s++;
			break;
		case &#039;S&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;S&#039; - 65]);
			s++;
			break;
		case &#039;T&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;T&#039; - 65]);
			s++;
			break;
		case &#039;U&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;U&#039; - 65]);
			s++;
			break;
		case &#039;V&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;V&#039; - 65]);
			s++;
			break;
		case &#039;W&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;W&#039; - 65]);
			s++;
			break;
		case &#039;X&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;X&#039; - 65]);
			s++;
			break;
		case &#039;Y&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;Y&#039; - 65]);
			s++;
			break;
		case &#039;Z&#039;:
			printf(&quot; %s&quot;, morse_alpha[&#039;Z&#039; - 65]);
			s++;
			break;
		case &#039;0&#039;:
			printf(&quot; %s&quot;, morse_num[0]);
			s++;
			break;
		case &#039;1&#039;:
			printf(&quot; %s&quot;, morse_num[1]);
			s++;
			break;
		case &#039;2&#039;:
			printf(&quot; %s&quot;, morse_num[2]);
			s++;
			break;
		case &#039;3&#039;:
			printf(&quot; %s&quot;, morse_num[3]);
			s++;
			break;
		case &#039;4&#039;:
			printf(&quot; %s&quot;, morse_num[4]);
			s++;
			break;
		case &#039;5&#039;:
			printf(&quot; %s&quot;, morse_num[5]);
			s++;
			break;
		case &#039;6&#039;:
			printf(&quot; %s&quot;, morse_num[6]);
			s++;
			break;
		case &#039;7&#039;:
			printf(&quot; %s&quot;, morse_num[7]);
			s++;
			break;
		case &#039;8&#039;:
			printf(&quot; %s&quot;, morse_num[8]);
			s++;
			break;
		case &#039;9&#039;:
			printf(&quot; %s&quot;, morse_num[9]);
			s++;
			break;
		default:
			return;
		}
		//s++;
	}
}]]></description>
			<content:encoded><![CDATA[<p>// new_morse_code.cpp : Defines the entry point for the console application.<br />
//</p>
<p>// morse_code.cpp : Defines the entry point for the console application.<br />
//</p>
<p>#include<br />
#include<br />
#include </p>
<p>char * morse_alpha[] = {<br />
	&#8220;.-&#8220;, &#8220;-&#8230;&#8221;, &#8220;-.-.&#8221;, &#8220;-..&#8221;, &#8220;.&#8221;, &#8220;..-.&#8221;,<br />
	&#8220;&#8211;.&#8221;, &#8220;&#8230;.&#8221;, &#8220;..&#8221;, &#8220;.&#8212;&#8220;, &#8220;-.-&#8220;, &#8220;.-..&#8221;,<br />
	&#8220;&#8211;&#8220;, &#8220;-.&#8221;, &#8220;&#8212;&#8220;, &#8220;.&#8211;.&#8221;, &#8220;&#8211;.-&#8220;, &#8220;.-.&#8221;,<br />
	&#8220;&#8230;&#8221;, &#8220;-&#8220;, &#8220;..-&#8220;, &#8220;&#8230;-&#8220;, &#8220;.&#8211;&#8220;, &#8220;-..-&#8220;,<br />
	&#8220;-.&#8211;&#8220;, &#8220;&#8211;..&#8221;<br />
};<br />
char *morse_num[] = {<br />
	&#8220;&#8212;&#8211;&#8220;, &#8220;.&#8212;-&#8220;, &#8220;..&#8212;&#8220;,<br />
	&#8220;&#8230;&#8211;&#8220;, &#8220;&#8230;.-&#8220;, &#8220;&#8230;..&#8221;,<br />
	&#8220;-&#8230;.&#8221;, &#8220;&#8211;&#8230;&#8221;, &#8220;&#8212;..&#8221;,<br />
	&#8220;&#8212;-.&#8221;<br />
};</p>
<p>void find_morse(char *s);<br />
int main()<br />
{</p>
<p>	char str[500];</p>
<p>	printf(&#8220;Enter anything : &#8220;);<br />
	while (1)<br />
	{<br />
		scanf(&#8220;%s&#8221;, str);	//You can use gets function too;<br />
		find_morse(str);<br />
		printf(&#8220;\n&#8221;);<br />
	}<br />
	return 0;</p>
<p>}<br />
void find_morse(char *s)<br />
{<br />
	while (*s)<br />
	{<br />
		switch (toupper(*s))<br />
		{<br />
		case &#8216;A&#8217;:<br />
			printf(&#8220;%s&#8221;, morse_alpha[&#8216;A&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;B&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;B&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;C&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;C&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;D&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;D&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;E&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;E&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;F&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;F&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;G&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;G&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;H&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;H&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;I&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;I&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;J&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;J&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;K&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;K&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;L&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;L&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;M&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;M&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;N&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;N&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;O&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;O&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;P&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;P&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;Q&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;Q&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;R&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;R&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;S&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;S&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;T&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;T&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;U&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;U&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;V&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;V&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;W&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;W&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;X&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;X&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;Y&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;Y&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;Z&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_alpha[&#8216;Z&#8217; &#8211; 65]);<br />
			s++;<br />
			break;<br />
		case &#8216;0&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_num[0]);<br />
			s++;<br />
			break;<br />
		case &#8216;1&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_num[1]);<br />
			s++;<br />
			break;<br />
		case &#8216;2&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_num[2]);<br />
			s++;<br />
			break;<br />
		case &#8216;3&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_num[3]);<br />
			s++;<br />
			break;<br />
		case &#8216;4&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_num[4]);<br />
			s++;<br />
			break;<br />
		case &#8216;5&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_num[5]);<br />
			s++;<br />
			break;<br />
		case &#8216;6&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_num[6]);<br />
			s++;<br />
			break;<br />
		case &#8216;7&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_num[7]);<br />
			s++;<br />
			break;<br />
		case &#8216;8&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_num[8]);<br />
			s++;<br />
			break;<br />
		case &#8216;9&#8217;:<br />
			printf(&#8221; %s&#8221;, morse_num[9]);<br />
			s++;<br />
			break;<br />
		default:<br />
			return;<br />
		}<br />
		//s++;<br />
	}<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: amarnath		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-to-implement-morse-code-to-text-conversion-and-vice-versa/comment-page-1/#comment-9786</link>

		<dc:creator><![CDATA[amarnath]]></dc:creator>
		<pubDate>Wed, 15 May 2013 11:46:23 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1146#comment-9786</guid>

					<description><![CDATA[and for loop starts from 0- (n-1) correct me if i am wrong .]]></description>
			<content:encoded><![CDATA[<p>and for loop starts from 0- (n-1) correct me if i am wrong .</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: amarnath		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-to-implement-morse-code-to-text-conversion-and-vice-versa/comment-page-1/#comment-9785</link>

		<dc:creator><![CDATA[amarnath]]></dc:creator>
		<pubDate>Wed, 15 May 2013 11:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1146#comment-9785</guid>

					<description><![CDATA[i think L is . _ . . (dit dah dit dit)]]></description>
			<content:encoded><![CDATA[<p>i think L is . _ . . (dit dah dit dit)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: surendar		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-to-implement-morse-code-to-text-conversion-and-vice-versa/comment-page-1/#comment-9316</link>

		<dc:creator><![CDATA[surendar]]></dc:creator>
		<pubDate>Wed, 12 Dec 2012 12:10:43 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1146#comment-9316</guid>

					<description><![CDATA[This is great but even though you encode a normal string into a morse string how can you decode the morse string to normal string , i&#039;m having trouble in seperating a mourse character . 

my choice is get the string in a array and for each character is converted into a morse string and stored in a 2-Dimentional array .

but it occupies a lot of space and time , can someone suggest someidea .....

thanks in advance.]]></description>
			<content:encoded><![CDATA[<p>This is great but even though you encode a normal string into a morse string how can you decode the morse string to normal string , i&#8217;m having trouble in seperating a mourse character . </p>
<p>my choice is get the string in a array and for each character is converted into a morse string and stored in a 2-Dimentional array .</p>
<p>but it occupies a lot of space and time , can someone suggest someidea &#8230;..</p>
<p>thanks in advance.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
