<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580587</guid>
        <pubDate>Mon, 17 Jan 2005 18:15:12 +0000</pubDate>
        <title>Проблема с clrscr()</title>
        <link>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580587</link>
        <description><![CDATA[мяут: :) В Visual C++ управление консолью можно соуществлять через WinAPI]]></description>
        <author>мяут</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580391</guid>
        <pubDate>Mon, 17 Jan 2005 14:54:15 +0000</pubDate>
        <title>Проблема с clrscr()</title>
        <link>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580391</link>
        <description><![CDATA[h2all: Действительно на курсах стоит Borland, а дома VC. А нельзя ли борландский conio.h подключать к проэктам на VC, и если нельзя, подскажите где можно почитать о vc&#39;s функциях по работе со цветом (textcolor, cputs и т.д.)?]]></description>
        <author>h2all</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580303</guid>
        <pubDate>Mon, 17 Jan 2005 13:58:45 +0000</pubDate>
        <title>Проблема с clrscr()</title>
        <link>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580303</link>
        <description><![CDATA[trainer: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=79788&view=findpost&p=580291'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Adil &#064; <time class="tag-quote__quoted-time" datetime="2005-01-17T13:46:49+00:00">17.01.05, 13:46</time></span><div class='quote '>Может тебе все-таки на борланд перейти?</div></div>Или вернуться? :)]]></description>
        <author>trainer</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580291</guid>
        <pubDate>Mon, 17 Jan 2005 13:46:49 +0000</pubDate>
        <title>Проблема с clrscr()</title>
        <link>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580291</link>
        <description><![CDATA[Adil: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>h2all</span><div class='quote '>trainer, ты говоришь что в conio.h нет clrscr, но я на курсах использовал именно его </div></div><br>
в микрософтофском conio.h нет clrscr.<br>
И textbackground там тоже нет :)<br>
<br>
Может тебе все-таки на борланд перейти?]]></description>
        <author>Adil</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580277</guid>
        <pubDate>Mon, 17 Jan 2005 13:38:07 +0000</pubDate>
        <title>Проблема с clrscr()</title>
        <link>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580277</link>
        <description><![CDATA[h2all: Спасибо всем кто ответил. Получилось. Как быстро со всем разобрались.<br>
<strong class='tag-b'>trainer</strong>, ты говоришь что в conio.h нет clrscr, но я на курсах использовал именно его &lt;_&lt; .<br>
P.S. А что нужно подключить чтобы заработала функция textbackground(), а то на курсах работает а дома нет :(]]></description>
        <author>h2all</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580266</guid>
        <pubDate>Mon, 17 Jan 2005 13:30:52 +0000</pubDate>
        <title>Проблема с clrscr()</title>
        <link>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580266</link>
        <description><![CDATA[trainer: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=79788&view=findpost&p=580257'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Lyrik &#064; <time class="tag-quote__quoted-time" datetime="2005-01-17T13:24:54+00:00">17.01.05, 13:24</time></span><div class='quote '>Или подключить conio.h</div></div>В котором нет clrscr :)]]></description>
        <author>trainer</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580264</guid>
        <pubDate>Mon, 17 Jan 2005 13:30:17 +0000</pubDate>
        <title>Проблема с clrscr()</title>
        <link>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580264</link>
        <description><![CDATA[CBP: <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">/*Some non-Microsoft versions of C++ provide a clrscr function for clearing the screen in a DOS application.</div><div class="code_line">However, there is no Win32 Application Programming Interface (API) or C-Runtime function that will perform this function.</div><div class="code_line">&nbsp;</div><div class="code_line">There are two ways to accomplish this task for a Win32 console application. The first method is to use the system function as follows:*/</div><div class="code_line">&nbsp;</div><div class="code_line">#include &#60;stdlib.h&#62;</div><div class="code_line">&nbsp;</div><div class="code_line">void main()</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; system(&quot;cls&quot;);</div><div class="code_line">}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">/*</div><div class="code_line">The second method is to write a function that will programmatically clear the screen.</div><div class="code_line">That method is described in the More Information section which follows. </div><div class="code_line">MORE INFORMATION</div><div class="code_line">The following function clears the screen: */</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;/* Standard error macro for reporting API errors */ </div><div class="code_line">&nbsp;#define PERR(bSuccess, api){if(!(bSuccess)) printf(&quot;%s:Error %d from %s \ </div><div class="code_line">&nbsp;&nbsp; &nbsp;on line %d\n&quot;, __FILE__, GetLastError(), api, __LINE__);}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;void cls( HANDLE hConsole )</div><div class="code_line">&nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp;COORD coordScreen = { 0, 0 }; &nbsp; &nbsp;/* here&#39;s where we&#39;ll home the</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cursor */ </div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL bSuccess;</div><div class="code_line">&nbsp;&nbsp; &nbsp;DWORD cCharsWritten;</div><div class="code_line">&nbsp;&nbsp; &nbsp;CONSOLE_SCREEN_BUFFER_INFO csbi; /* to get buffer info */ </div><div class="code_line">&nbsp;&nbsp; &nbsp;DWORD dwConSize; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* number of character cells in</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;the current buffer */ </div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;/* get the number of character cells in the current buffer */ </div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;bSuccess = GetConsoleScreenBufferInfo( hConsole, &amp;csbi );</div><div class="code_line">&nbsp;&nbsp; &nbsp;PERR( bSuccess, &quot;GetConsoleScreenBufferInfo&quot; );</div><div class="code_line">&nbsp;&nbsp; &nbsp;dwConSize = csbi.dwSize.X * csbi.dwSize.Y;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;/* fill the entire screen with blanks */ </div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;bSuccess = FillConsoleOutputCharacter( hConsole, (TCHAR) &#39; &#39;,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; dwConSize, coordScreen, &amp;cCharsWritten );</div><div class="code_line">&nbsp;&nbsp; &nbsp;PERR( bSuccess, &quot;FillConsoleOutputCharacter&quot; );</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;/* get the current text attribute */ </div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;bSuccess = GetConsoleScreenBufferInfo( hConsole, &amp;csbi );</div><div class="code_line">&nbsp;&nbsp; &nbsp;PERR( bSuccess, &quot;ConsoleScreenBufferInfo&quot; );</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;/* now set the buffer&#39;s attributes accordingly */ </div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;bSuccess = FillConsoleOutputAttribute( hConsole, csbi.wAttributes,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; dwConSize, coordScreen, &amp;cCharsWritten );</div><div class="code_line">&nbsp;&nbsp; &nbsp;PERR( bSuccess, &quot;FillConsoleOutputAttribute&quot; );</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;/* put the cursor at (0, 0) */ </div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;bSuccess = SetConsoleCursorPosition( hConsole, coordScreen );</div><div class="code_line">&nbsp;&nbsp; &nbsp;PERR( bSuccess, &quot;SetConsoleCursorPosition&quot; );</div><div class="code_line">&nbsp;&nbsp; &nbsp;return;</div><div class="code_line">&nbsp;}</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>CBP</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580257</guid>
        <pubDate>Mon, 17 Jan 2005 13:24:54 +0000</pubDate>
        <title>Проблема с clrscr()</title>
        <link>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580257</link>
        <description><![CDATA[Lyrik: Или подключить conio.h  :)]]></description>
        <author>Lyrik</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580253</guid>
        <pubDate>Mon, 17 Jan 2005 13:23:50 +0000</pubDate>
        <title>Проблема с clrscr()</title>
        <link>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580253</link>
        <description><![CDATA[Adil: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=79788&view=findpost&p=580224'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>h2all &#064; <time class="tag-quote__quoted-time" datetime="2005-01-17T13:07:57+00:00">17.01.05, 13:07</time></span><div class='quote '>clrscr</div></div> - нету в VC, импользуй <strong class='tag-b'>system(&quot;cls&quot;);</strong> <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2005-01-17T13:24:33+00:00">17.01.05, 13:24</time></span></span><br>
P.S. #include &lt;stdlib.h&gt;]]></description>
        <author>Adil</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580224</guid>
        <pubDate>Mon, 17 Jan 2005 13:07:57 +0000</pubDate>
        <title>Проблема с clrscr()</title>
        <link>https://forum.sources.ru/index.php?showtopic=79788&amp;view=findpost&amp;p=580224</link>
        <description><![CDATA[h2all: <strong class='tag-b'>ОСь:</strong> Windows<br>
<strong class='tag-b'>Компилятор:</strong> VC++6(cl.exe)<br>
Здравствуйте. Подскажите пожалуйста в чем может быть проблема. При компиляции программы с вызовом функции clrsrc(), компилятор выдает ошибку:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">error C2065: &#39;clrscr&#39; : undeclared identifier</div></ol></div></div></div></div><br>
Насколько мне известно, эта функция описывается в файле conio.h, но он подключен. Его замена ни чем не помогла. <br>
P.S. Не сочтите мой вопрос ламерским, просто я только начал изучать язык C :rolleyes:.]]></description>
        <author>h2all</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      </channel>
      </rss>
	