<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="https://publishpress.com/"
	>

<channel>
	<title>اورلود کردن عملگر ایندکس در ++C</title>
	<atom:link href="https://melec.ir/tag/%D8%A7%D9%88%D8%B1%D9%84%D9%88%D8%AF-%DA%A9%D8%B1%D8%AF%D9%86-%D8%B9%D9%85%D9%84%DA%AF%D8%B1-%D8%A7%DB%8C%D9%86%D8%AF%DA%A9%D8%B3-%D8%AF%D8%B1-c/feed/" rel="self" type="application/rss+xml" />
	<link>https://melec.ir/tag/اورلود-کردن-عملگر-ایندکس-در-c/</link>
	<description>آموزش الکترونیک,آموزش رزبری پای,آموزش راه اندازی ماژول و سنسور,آموزش آردوینو,نرم افزار های الکترونیک, طراحیPCB,برنامه نویسی میکروکنترلرها ARM AVR PIC FPGA</description>
	<lastBuildDate>Thu, 30 Jul 2020 07:28:12 +0000</lastBuildDate>
	<language>fa-IR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://melec.ir/micromilad/wp-content/uploads/2016/02/logo-1.png</url>
	<title>اورلود کردن عملگر ایندکس در ++C</title>
	<link>https://melec.ir/tag/اورلود-کردن-عملگر-ایندکس-در-c/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>اورلود کردن عملگر ایندکس در ++C</title>
		<link>https://melec.ir/%d8%a7%d9%88%d8%b1%d9%84%d9%88%d8%af-%da%a9%d8%b1%d8%af%d9%86-%d8%b9%d9%85%d9%84%da%af%d8%b1-%d8%a7%db%8c%d9%86%d8%af%da%a9%d8%b3-%d8%af%d8%b1-cpp/</link>
					<comments>https://melec.ir/%d8%a7%d9%88%d8%b1%d9%84%d9%88%d8%af-%da%a9%d8%b1%d8%af%d9%86-%d8%b9%d9%85%d9%84%da%af%d8%b1-%d8%a7%db%8c%d9%86%d8%af%da%a9%d8%b3-%d8%af%d8%b1-cpp/#respond</comments>
		
		<dc:creator><![CDATA[احسان پناهی]]></dc:creator>
		<pubDate>Thu, 30 Jul 2020 07:28:12 +0000</pubDate>
				<category><![CDATA[آموزش زبان ++C]]></category>
		<category><![CDATA[آموزش گام به گام برنامه نویسی به زبان ++c]]></category>
		<category><![CDATA[++Subscripting [] Operator Overloading in C]]></category>
		<category><![CDATA[اورلود کردن عملگر ایندکس در ++C]]></category>
		<category><![CDATA[C++ PROGRAMMING]]></category>
		<category><![CDATA[انواع عملگرها در ++C]]></category>
		<category><![CDATA[c++ programming language]]></category>
		<category><![CDATA[اورلود عملگرها در ++C]]></category>
		<category><![CDATA[C++ Functions]]></category>
		<category><![CDATA[C++ operator]]></category>
		<category><![CDATA[++Overloading in C]]></category>
		<category><![CDATA[آموزش ++C]]></category>
		<category><![CDATA[Overload عملگر ++C]]></category>
		<category><![CDATA[آموزش برنامه نویسی c++ از مبتدی تا پیشرفته]]></category>
		<category><![CDATA[Overload کردن عملگر در ++C]]></category>
		<guid isPermaLink="false">https://melec.ir/?p=31246</guid>

					<description><![CDATA[<p>عملگر ایندکس معمولاً برای دسترسی به عناصر یک آرایه استفاده می‌شود. این عملگر را می‌توان برای بهبود کارایی آرایه‌های ++C اورلود کرد. مثال زیر نحوه اورلود این عملگر را نشان می‌دهد. #include &#60;iostream&#62; using namespace std; const int SIZE = 10; class safearay { private: int arr[SIZE]; public: safearay() { register int i; for(i = 0; i &#60; SIZE; i++) { arr[i] = i; } } int &#38;operator[](int i) { if( i &#62; SIZE ) { cout &#60;&#60; "Index out of bounds" &#60;&#60;endl; // return first element. return arr[0]; } return arr[i]; } }; int main() { safearay A; cout &#60;&#60; "Value of A[2] : " &#60;&#60; A[2] &#60;&#60;endl; cout &#60;&#60; "Value of A[5] : " &#60;&#60; A[5]&#60;&#60;endl; cout &#60;&#60; "Value of A[12] : " &#60;&#60; A[12]&#60;&#60;endl; return 0; } خروجی زیر از اجرای کد فوق حاصل شده است. Value of A[2] : 2 Value of A[5] : 5 Index &#8230;</p>
<p>برای مشاهده این مطلب بصورت کامل روی لینک زیر کلیک کنید:<br />
<a href="https://melec.ir/%d8%a7%d9%88%d8%b1%d9%84%d9%88%d8%af-%da%a9%d8%b1%d8%af%d9%86-%d8%b9%d9%85%d9%84%da%af%d8%b1-%d8%a7%db%8c%d9%86%d8%af%da%a9%d8%b3-%d8%af%d8%b1-cpp/">اورلود کردن عملگر ایندکس در ++C</a></p>
]]></description>
		
					<wfw:commentRss>https://melec.ir/%d8%a7%d9%88%d8%b1%d9%84%d9%88%d8%af-%da%a9%d8%b1%d8%af%d9%86-%d8%b9%d9%85%d9%84%da%af%d8%b1-%d8%a7%db%8c%d9%86%d8%af%da%a9%d8%b3-%d8%af%d8%b1-cpp/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<series:name><![CDATA[cpp programming language]]></series:name>
	</item>
	</channel>
</rss>
