PDA

View Full Version : Програмиститие... PHP/C++/C/HTML



wolfy96
03-26-2010, 20:14
Тука пишете заглавието(на кое се пише) /средата(програма за писане)/следтова някаква програма или графиране.... и след това я обяснявате...

:-o
Пример:
C++/
Dev-c++/Dev-cpp
p=plus=+
#include<iostream>
using namespace
int main()
{
double a,sum;
char b;
sum=a;
cin>>a;
while(b!='=')
{
cin>>b;
cin>>a;
if(b=='='){break;}
if(b=='+'){sum=sum+a;}
if(b=='-'){sum=sum-a;}
if(b=='*'){sum=sum*a;}
if(b=='/'){sum=sum/a;}
}
cout<<sum<<endl;
system("PAUSE");
return 0;
}

Това може да се каже че е най-Simple Calculator... :grin: :grin: :grin: :-D :-D :-D


Моля само програмиститие да пишат....
Хората които неразбират, моля гледайте в други сайтове кое какво прави :?

tqnko
03-26-2010, 21:11
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="bg" lang="bg" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta http-equiv="Content-Style-Type" content="text/css">
<link href="../design/site.css?v=20081128v1" rel="stylesheet" type="text/css" media="screen,projection" />
<!--[if IE]>
<link href="../design/iesite.css?v=20081128v1" rel="stylesheet" type="text/css" media="all" />
<![endif]-->
<link rel="top" href="./index.php" title="TeenProblem.net Форуми" />
<link rel="search" href="./search.php" title="Търсене" />
<link rel="help" href="./faq.php" title="Въпроси/Отговори" />
<link rel="author" href="./memberlist.php" title="Потребители" />
<link rel="prev" href="viewtopic.php?t=327221&amp;view=previous" title="Предишната тема" />
<link rel="next" href="viewtopic.php?t=327221&amp;view=next" title="Следващата тема" />
<link rel="up" href="viewforum.php?f=20" title="Информационни технологии" />
<link rel="chapter forum" href="viewforum.php?f=1" title="Новини и съобщения" />
<link rel="chapter forum" href="viewforum.php?f=2" title="Любов" />
<link rel="chapter forum" href="viewforum.php?f=3" title="Секс" />

<link rel="chapter forum" href="viewforum.php?f=4" title="Здравни проблеми и болести" />
<link rel="chapter forum" href="viewforum.php?f=5" title="Училище и приятели" />
<link rel="chapter forum" href="viewforum.php?f=6" title="У дома" />
<link rel="chapter forum" href="viewforum.php?f=8" title="Козметика и диети" />
<link rel="chapter forum" href="viewforum.php?f=32" title="Др.Тийн - проблемите си имат решения" />
<link rel="chapter forum" href="viewforum.php?f=9" title="Предложения, похвали, критики и въпроси към сайта и екипа ни" />
<link rel="chapter forum" href="viewforum.php?f=10" title="За България и тези, които я напуснаха" />
<link rel="chapter forum" href="viewforum.php?f=12" title="Музика и ТВ" />
<link rel="chapter forum" href="viewforum.php?f=16" title="Тийн Учител - есета, теми, съчинения..." />
<link rel="chapter forum" href="viewforum.php?f=13" title="Фън, фън и пак фън" />
<link rel="chapter forum" href="viewforum.php?f=19" title="Спорт и здраве" />
<link rel="chapter forum" href="viewforum.php?f=20" title="Информационни технологии" />
<link rel="chapter forum" href="viewforum.php?f=21" title="Лично творчество" />
<link rel="chapter forum" href="viewforum.php?f=29" title="Наука, Култура, Изкуство" />
<link rel="chapter forum" href="viewforum.php?f=11" title="Всичко тийн накуп" />
<link rel="chapter forum" href="viewforum.php?f=23" title="Кофата" />
<link rel="chapter forum" href="viewforum.php?f=25" title="Политика" />

<link rel="chapter forum" href="viewforum.php?f=26" title="Философия и Религия" />
<link rel="chapter forum" href="viewforum.php?f=28" title="Борса - Купувам/Продавам" />
<link rel="chapter forum" href="viewforum.php?f=30" title="Бъдещи мами :)" />
<link rel="chapter forum" href="viewforum.php?f=31" title="Пълнолетник" />
<title>TeenProblem.net :: Преглед на тема - Програмиститие... PHP/C++/C/HTML</title>

<script type="text/javascript" src="/js/jquery.js?v=20081128v1"></script>
<script type="text/javascript" src="/js/functions.js?v=20081128v1"></script>
<style type="text/css">
table,caption,tbody,thead,tr,th,td {
vertical-align:top;
font-size:12px !important;
font-family:Verdana,Arial,Helvetica,sans-serif;
}
#contents {width:902px;margin:3px 0 0 50px;}
div.login h2 {font-size:1em;}
div.login p a {color:#000;}
div.login p a:hover {text-decoration:underline; color:#006F9F;}
div.login ul li a:hover {text-decoration:underline;}
div.login input {height:16px;}
div.friends a, #footer a, div.login a {text-decoration:none;}
div.friends a:hover,#footer a:hover {text-decoration:underline;color:#33669D;}
input {vertical-align:baseline;height:auto;}
table th, table td {padding:3px;}
table th.thHead, table th.thTop, table th.thCornerL, table th.thSides {text-align:center;}
td.CatLeft .gen, td.CatRight .gen, b .gen {font-weight:bold;}
* html input {vertical-align:top;}
*:first-child+html input {vertical-align:top;}
div.login {background: URL('/design/forum_r_balloon.gif') no-repeat 1px top !important;}
div.opticons a.chngicon {background: URL('/design/top_star.gif') no-repeat left top;}
div.opticons a.tletter {margin-top:2px;margin-left:27px;}
div.opticons a.chngicon {margin-left:28px;}
<!--
/*
The original xandred Theme for phpBB version 2+
Created by subBlue design
http://www.subBlue.com

NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
theme administration centre. When you have finalised your style you could cut the final CSS code
and place it in an external file, deleting this section to save bandwidth.
*/

/* General page style. The scroll bar colours only visible in IE5.5+ */
/*body {
background:#BF2025 url(/im/bg.jpg) repeat-x;
margin:0px; color:#444444;
scrollbar-face-color: #DEE3E7;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #DEE3E7;
scrollbar-3dlight-color: #D1D7DC;
scrollbar-arrow-color: #444444;
scrollbar-track-color: #EFEFEF;
scrollbar-darkshadow-color: #98AAB1;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
*/

/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
a:link,a:active,a:visited { color:#006F9F; text-decoration:underline; }
a:hover { text-decoration: none; color:#006F9F; }
hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}

/* This is the border line & background colour round the entire page */
.bodyline { background-color: #fff; border:solid 0px #B32124;}
#rb {border:solid 5px #B32124;}

/* This is the outline round the main forum tables */
.forumline { background-color: #E7E7E7; border: 0px #006699 solid; }

/* Main table cell colours and backgrounds */
td.row1 { background-color: #fff; }
td.row2 { background-color: #fff; }
td.row3 { background-color: #fff; }

/*
This is for the table cell above the Topics, Post & Last posts on the index.php page
By default this is the fading out gradiated silver background.
However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
background-color: #FFFFFF;
background-image: url(templates/xandred/images/cellpic2.jpg);
background-repeat: repeat-y;
}

/* Header cells - the blue and silver gradient backgrounds */
th {
color: #FFFFFF; font-size: 12px; font-weight : bold;
background-color: #0076A8; height: 34px;
/*background-image: url(templates/xandred/images/cellpic3.gif);*/
}

td.cat,td.catHead,td.catSides,td.catLeft,td.catRig ht,td.catBottom {
/*background-image: url(templates/xandred/images/cellpic1.gif);*/
background-color:#B0D4EE; border: #FFFFFF; border-style: solid;
}

/*
Setting additional nice inner borders for the main table cells.
The names indicate which sides the border will be on.
Don't worry if you don't understand this, just ignore it :-)
*/
td.cat,td.catHead,td.catBottom {
height: 24px;
border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight ,th.thBottom,th.thCornerL,th.thCornerR {
font-weight: bold; border: #FFFFFF; border-style: solid; height: 24px;
}
td.row3Right,td.spaceRow {
background-color: #85BFE5; border: #FFFFFF; border-style: solid;
}

th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; }
th.thSides,td.catSides,td.spaceRow { border-width: 0px 0px 0px 0px; }
th.thRight,td.catRight,td.row3Right { border-width: 0px 0px 0px 0px; }
th.thLeft,td.catLeft { border-width: 0px 0px 0px 0px; }
th.thBottom,td.catBottom { border-width: 0px 0px 0px 0px; }
th.thTop { border-width: 0px 0px 0px 0px; }
th.thCornerL { border-width: 0px 0px 0px 0px; }
th.thCornerR { border-width: 0px 0px 0px 0px; }

/* The largest text used in the index page title and toptic title etc. */
.maintitle {
font-weight: bold; text-decoration:none; font-size: 20px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
text-decoration: none; line-height : 120%; color : #000000;
}

/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; }
.gen,.genmed,.gensmall { color : #000000; }
a.gen,a.genmed,a.gensmall { color: #444444; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #9966cb; text-decoration: bold; }

/* The register, login, search etc links at the top of the page */
/*.mainmenu { font-size : 11px; color : #fff }*/
a.mainmenu {font-weight:bold;}
/*a.mainmenu:hover{ color:#FFFFFF;
text-decoration:none;
background-color:#9966cb;
padding: 3px; }
a.mainmenu:visited { font-size: 11px;
color:#fff;
text-decoration:none;
font-weight:bold;
padding: 3px; }*/


#stats a.newls{ font-size: 11px;
color:#006F9F; padding:0 0 0 12px; display:block; margin:0 0 3px 0; float:left; clear:both; background-position:left 5px;}

/* Forum category titles */
.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color:#006F9F;}
a.cattitle { text-decoration: none; }
a.cattitle:hover{ text-decoration: underline;}

/* Forum title: Text and link to the forums used in: index.php */
.forumlink { font-weight: bold; font-size: 12px; color : #444444; }
/*a.forumlink { text-decoration: none; }
a.forumlink:hover{ text-decoration: underline; }*/

/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav { font-weight: bold; font-size: 11px; color : #000000;}
a.nav { text-decoration: none; color : #444444; }
a.nav:hover { text-decoration: bold; }

/* titles for the topics: could specify viewed link colour too */
.topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #000000; }


/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name { font-size : 11px; color : #000000;}

/* Location, number of posts, post date etc */
.postdetails { font-size : 10px; color : #000000; }

/* The content of the posts (body of text) */
.postbody { font-size : 12px; line-height: 18px}
a.postlink:link { text-decoration: none; color : #444444 }
a.postlink:visited { text-decoration: none; color : #5F5F5F; }
a.postlink:hover { text-decoration: bold; color : #9966cb}

/* Quote & Code blocks */
.code {
font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #BF5E4D;
background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

.quote {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

/* Copyright and bottom info */
.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;}
a.copyright { color: #444444; text-decoration: none;}
a.copyright:hover { color: #000000; text-decoration: bold;}

/* Form elements */
input,textarea, select {
color : #000000;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
border-color : #000000;
}

/* The text input fields background colour */
input.post, textarea.post, select {
background-color : #FFFFFF;
border: solid 1px #006F9F;
}

input { text-indent : 2px; }

/* The buttons used for bbCode styling in message post */
input.button {
background-color : #EFEFEF;
color : #000000;
font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;
}

/* The main submit button option */
input.mainoption {
background-color : #FAFAFA;
font-weight : bold;
border: solid 1px #006F9F;
}

/* None-bold submit button */
input.liteoption {
background-color : #FAFAFA;
font-weight : normal;
border: solid 1px #006F9F;
}

/* This is the line in the posting page which shows the rollover
help line. This is actually a text box, but if set to be the same
colour as the background no one will know ;)
*/
.helpline { background-color: #DEE3E7; border-style: none; }

/* ########### TOP LINKS #################### */
.top-links-container {
float: center;
background: url(http://www.teenproblem.net/i/lenta.jpg) no-repeat center;
z-index:1;
width: 100%;
height: 22px;
position:relative;
top:0px;
}
.top-links {
font-family: Arial;
font-size: 11px;
color: 6d6d6d;
padding-top: 3px;
padding-left: 45px;
}
.top-links-active {
color: red;
font-size: 11px;
}
.top-links a {
color: 6d6d6d;
font-family: Arial;
font-size: 11px;
text-decoration: none;
}
.top-links a:hover {
color: 6d6d6d;
font-family: Arial;
font-size: 11px;
text-decoration: underline;
}
#top_links{
width: 770px;
background-color: #68A7DF;
height: 22px;
}
#top_links td{
width: 106px;
}
#top_links a{
font-size: 11px;
color: #064e7e;
text-transform: uppercase;
text-decoration: none;
}
#top_links a:hover{
font-size: 11px;
color: #064e7e;
text-transform: uppercase;
text-decoration: underline;
}

/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("templates/xandred/formIE.css");
-->
</style>
<script language="Javascript" type="text/javascript">
<!--
if ( 0 )
{
window.open('privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>

</head>

<body bgcolor="#E5E5E5" text="#000000" link="#444444" vlink="#5F5F5F">

<div id="halfbg"></div>
<div id="frame">
<div id="header">
<div class="opticons">
[/url]
(/)
Начало ("]
</div>
<div class="search">

<form action="/search.html" name="searchform" id="searchform" method="get">
<input name="search_query" id="search_query" type="text" value="Потърси тук" onfocus="clearform(this,'Потърси тук')" onblur="clearform(this,'Потърси тук')" /><button type="submit"></button>
</form>
</div>
<ul class="clearfix">
[url="/)
Форум (/f/)
Учител (/school/)

Новини (/news/)
Статии (/articles/)
Др. Тийн (/dr.teen/)
Teen ID (/teenid/)
Звезди (/stars/)
[/list]

</div>
<div id="mainbody">
<div class="pubBox">
<div class="topAdv">

<script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'https://r.ibg.bg/www/delivery/ajs.php':'http://r.ibg.bg/www/delivery/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=4");
document.write ('&amp;cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
document.write ("&amp;loc=" + escape(window.location));
if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript>http://r.ibg.bg/www/delivery/avw.php?zoneid=4&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=aa 914391 ('http://r.ibg.bg/www/delivery/ck.php?n=aa914391&amp;cb=INSERT_RANDOM_NUMBER_HERE')</noscript>



</div>
<div class="pub">

<p class="white">
2694 лексикона

40126 профила

29824 снимки


1972 публикации
<!--a href="privmsg.php?folder=inbox" class="newls">Нямате нови съобщения</a>
Профил (profile.php?mode=editprofile)
<a href="login.php?logout=true&amp;sid=28266b1ecb51efc97ea21839 93f29489" class="newls">Изход [ tqnko ]</a-->
</p>
</div>

</div>
<div id="content">
<h2 class="title">
<div class="rightlogo circle"></div>

Последни новини
</h2>
<ul class="listBox clearfix">
<li >
http://www.teenproblem.net/i/18461/5804_1269618706_s.jpg (/news/s/18461.html)
<h3>Край с намръщените физиономии на снимки (/news/s/18461.html)</h3>


Немски специалисти в областта на снимачната техника съ...</p>


<li class="last" >
http://www.teenproblem.net/i/18460/4601_1269617508_s.jpg (/news/s/18460.html)
<h3>Жизел Бюндхен слиза от модния подиум (/news/s/18460.html)</h3>


Бразилският супермодел от немски произход Жизел Бюндхе...</p>

<li >
http://www.teenproblem.net/i/18459/2297_1269616558_s.jpg (/news/s/18459.html)
<h3>Прощалното турне на Scorpions минава и през България! (/news/s/18459.html)</h3>



Както по-рано тази седмица TeenProblem.net писа &ndash;...</p>

<li class="last" >
http://www.teenproblem.net/i/18458/2632_1269615643_s.jpg (/news/s/18458.html)
<h3>Малката русалка отива на екскурзия до Шанхай (/news/s/18458.html)</h3>


Символът на датската столица Копенхаген, и една от най...</p>


[/list]
</div>
<div id="sidebar">
<div class="login">

<h2>Здравей, tqnko</h2>

<!-- <a href="http://ad.investor.bg/adclick.php?bannerid=12594&zoneid=1240&source=&dest=http%3A%2F%2Fsolvex.bg%2F%3FAC%3D51%26CID%3D1 76%26utm_source%3Dteenproblem%26utm_medium%3Dbanne r%26utm_campaign%3D8%252Bdekemvri" class="voiceacademy" target="_NEW">
</a> -->
<a href="/teenid/tqnko" class="mybutt">моят
профил</a>

<ul>
Редактирай своя профил (/teenid/editprofile.php)
Създай лексикон (/teenid/settings.php?do=newlexicon)
Публикувай текст (/teenid/settings.php?do=newpost)
Качи снимка (/teenid/settings.php?do=newimage)
Добави линк (/teenid/settings.php?do=newlink)

<li class="mymessage">
Моите съобщения (/f/privmsg.php)

Моите приятели (/teenid/friends/)
Други настройки (/teenid/settings.php?do=othersettings)
Изход (login.php?logout=true&amp;sid=28266b1ecb51efc97ea2183 993f29489)
[/list]


</div>
</div>
<div class="clear"></div>



<div id="contents">
<a name="top"></a>
<table width="100%" cellspacing="0" cellpadding="10" border="0">
<tr>
<td width="100%" class="bodyline" valign="top"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="100%">


<table width="100%" border="0" cellpadding="2" cellspacing="0" bgcolor="#F1EFF0" style="border:solid 1px #026C9C;">
<tr>
<td height="30" align="center" valign="middle" nowrap="nowrap">
<TABLE width="100%" cellspacing="0" cellpadding="0" border="0"><TR><TD>http://www.teenproblem.net/i/t.gif
<span class="mainmenu"> Начало (/f/) Търсене (search.php) Потребители (memberlist.php) Потребителски групи (groupcp.php)
Настройки за форума (profile.php?mode=editprofile)

</span>


</TD><TD align=left>http://www.teenproblem.net/i/t.gif
Ех... лято, море - вижте офертите! (http://www.nasamnatam.com/more.html)



</TD></TD></TABLE>


</tr>
</table>
</td>
</tr>
</table><table width="100%" cellspacing="2" cellpadding="2" border="0">

<tr>
<td align="left" valign="bottom" colspan="2">Програмиститие... PHP/C++/C/HTML (viewtopic.php?t=327221&amp;start=0&amp;postdays=0&amp;postord er=asc&amp;highlight=)

<span class="gensmall">

</span></td>
</tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="left" valign="bottom" nowrap="nowrap"><span class="nav">templates/xandred/images/lang_bulgarian/post.gif (posting.php?mode=newtopic&amp;f=20) templates/xandred/images/lang_bulgarian/reply.gif (posting.php?mode=reply&amp;t=327221)</span></td>

<td align="left" valign="middle" width="100%"><span class="nav"> TeenProblem.net Форуми (index.php)
-> Информационни технологии (viewforum.php?f=20)</span></td>
</tr>
</table>

<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr align="right">
<td class="catHead" colspan="2" height="28"><span class="nav">Предишната тема (viewtopic.php?t=327221&amp;view=previous) :: Следващата тема (viewtopic.php?t=327221&amp;view=next) </span></td>

</tr>

<tr>
<th class="thLeft" width="150" height="26" nowrap="nowrap">Автор</th>
<th class="thRight" nowrap="nowrap">Съобщение</th>
</tr>
<tr>
<td width="150" align="left" valign="top" class="row1"><span class="name"><a name="7046225"></a>wolfy96</span>
<span class="postdetails">Новак
images/rank/2.gif
http://www.testriffic.com/resultfiles/21509wolf.jpg

Регистриран на: 22 Мар 2010
Мнения: 5
</span>
</td>

<td class="row1" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">templates/xandred/images/icon_minipost_new.gif (viewtopic.php?p=7046225#7046225)<span class="postdetails">Пуснато на: Пет Мар 26, 2010 11:14 pm<span class="gen"> </span> Заглавие: Програмиститие... PHP/C++/C/HTML</span></td>
<td valign="top" nowrap="nowrap">templates/xandred/images/lang_bulgarian/icon_quote.gif (posting.php?mode=quote&amp;p=7046225) </td>
</tr>
<tr>
<td colspan="2"><hr /></td>

</tr>
<tr>
<td colspan="2"><span class="postbody">Тука пишете заглавието(на кое се пише) /средата(програма за писане)/следтова някаква програма или графиране.... и след това я обяснявате...





images/smiles/c050.gif


Пример:


C++/


Dev-c++/Dev-cpp



p=plus=+


#include&lt;iostream&gt;


using namespace


int main()


{


double a,sum;


char b;



sum=a;


cin&gt;&gt;a;


while(b!='=')


{


cin&gt;&gt;b;


cin&gt;&gt;a;


if(b=='='){break;}



if(b=='+'){sum=sum+a;}


if(b=='-'){sum=sum-a;}


if(b=='*'){sum=sum*a;}


if(b=='/'){sum=sum/a;}


}


cout&lt;&lt;sum&lt;&lt;endl;


system(&quot;PAUSE&quot;);



return 0;


}





Това може да се каже че е най-Simple Calculator... images/smiles/bp.gif images/smiles/bp.gif images/smiles/bp.gif images/smiles/ap.gif images/smiles/ap.gif images/smiles/ap.gif








Моля само програмиститие да пишат....


Хората които неразбират, моля гледайте в други сайтове кое какво прави images/smiles/bl.gif</span><span class="gensmall"></span></td>
</tr>
</table></td>
</tr>
<tr>
<td class="row1" width="150" align="left" valign="middle"><span class="nav">Върнете се в началото (#top)</span></td>
<td class="row1" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">

<tr>
<td valign="middle" nowrap="nowrap">templates/xandred/images/lang_bulgarian/icon_profile.gif (profile.php?mode=viewprofile&amp;u=1115447) templates/xandred/images/lang_bulgarian/icon_pm.gif (privmsg.php?mode=post&amp;u=1115447) <script language="JavaScript" type="text/javascript"><!--

if ( navigator.userAgent.toLowerCase().indexOf('mozilla ') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
document.write(' ');
else
document.write('</td><td></td><td valign="top" nowrap="nowrap"><div style="position:relative"><div style="position:absolute"></div><div style="position:absolute;left:3px;top:-1px"></div></div>');

//--></script><noscript></noscript></td>
</tr>
</table></td>
</tr>
<tr>
<td class="spaceRow" colspan="2" height="1">templates/xandred/images/spacer.gif</td>
</tr>

<tr align="center">
<td class="catBottom" colspan="2" height="28"><table cellspacing="0" cellpadding="0" border="0">
<tr><form method="post" action="viewtopic.php?t=327221&amp;start=0">
<td align="center"><span class="gensmall">Покажи мнения от преди: <select name="postdays"><option value="0" selected="selected">Всички мнения</option><option value="1">1 Ден</option><option value="7">7 Дни</option><option value="14">2 Седмици</option><option value="30">1 Месеца</option><option value="90">3 Месеца</option><option value="180">6 Месеца</option><option value="364">1 Година</option></select> <select name="postorder"><option value="asc" selected="selected">Първо най-старите</option><option value="desc">Първо най-новите</option></select> <input type="submit" value="Давай!" class="liteoption" name="submit" /></span></td>

</form></tr>
</table></td>
</tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="middle" nowrap="nowrap"><span class="nav">templates/xandred/images/lang_bulgarian/post.gif (posting.php?mode=newtopic&amp;f=20) templates/xandred/images/lang_bulgarian/reply.gif (posting.php?mode=reply&amp;t=327221)</span></td>
<td align="left" valign="middle" width="100%"><span class="nav"> TeenProblem.net Форуми (index.php)
-> Информационни технологии (viewforum.php?f=20)</span></td>

<td align="right" valign="top" nowrap="nowrap"><span class="gensmall">Часовете са според зоната GMT + 3 Часа</span>
<span class="nav"></span>
</td>
</tr>
<tr>
<td align="left" colspan="3"><span class="nav">Страница 1 от 1</span></td>
</tr>

<tr><td align="center" colspan="3">

<script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'https://r.ibg.bg/www/delivery/ajs.php':'http://r.ibg.bg/www/delivery/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=3");
document.write ('&amp;cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
document.write ("&amp;loc=" + escape(window.location));
if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript>http://r.ibg.bg/www/delivery/avw.php?zoneid=3&amp;cb=987654321&amp;n=a2456453 ('http://r.ibg.bg/www/delivery/ck.php?n=a2456453&amp;cb=987654321')</noscript>

</td></tr>
</table>

<table width="100%" cellspacing="2" border="0" align="center">
<tr>
<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">Наблюдавайте тази тема за отговори (viewtopic.php?t=327221&amp;watch=topic&amp;start=0&amp;sid=28 266b1ecb51efc97ea2183993f29489)</span>




</td>
<td align="right" valign="top" nowrap="nowrap"><form method="get" name="jumpbox" action="viewforum.php" onSubmit="if(document.jumpbox.f.value == -1){return false;}"><table cellspacing="0" cellpadding="0" border="0">
<tr>
<td nowrap="nowrap"><span class="gensmall">Идете на:<select name="f" onchange="if(this.options[this.selectedIndex].value != -1){ forms['jumpbox'].submit() }"><option value="-1">Изберете форум</option><option value="-1"></option><option value="-1">Новини и съобщения</option><option value="-1">----------------</option><option value="1">Новини и съобщения</option><option value="-1"></option><option value="-1">Тийн интереси и проблеми</option><option value="-1">----------------</option><option value="2">Любов</option><option value="3">Секс</option><option value="4">Здравни проблеми и болести</option><option value="5">Училище и приятели</option><option value="6">У дома</option><option value="8">Козметика и диети</option><option value="32">Др.Тийн - проблемите си имат решения</option><option value="-1"></option><option value="-1">За ТeenProblem.net</option><option value="-1">----------------</option><option value="9">Предложения, похвали, критики и въпроси към сайта и екипа ни</option><option value="-1"></option><option value="-1">По малко от всичко</option><option value="-1">----------------</option><option value="10">За България и тези, които я напуснаха</option><option value="12">Музика и ТВ</option><option value="16">Тийн Учител - есета, теми, съчинения...</option><option value="13">Фън, фън и пак фън</option><option value="19">Спорт и здраве</option><option value="20"selected="selected">Информационни технологии</option><option value="21">Лично творчество</option><option value="29">Наука, Култура, Изкуство</option><option value="11">Всичко тийн накуп</option><option value="23">Кофата</option><option value="25">Политика</option><option value="26">Философия и Религия</option><option value="28">Борса - Купувам/Продавам</option><option value="30">Бъдещи мами :)</option><option value="31">Пълнолетник</option></select><input type="hidden" name="sid" value="28266b1ecb51efc97ea2183993f29489" /><input type="submit" value="Давай!" class="liteoption" /></span></td>

</tr>
</table></form>
<span class="gensmall">Можете да пускате нови теми
Можете да отговаряте на темите
Можете да променяте съобщенията си
Можете да изтривате съобщенията си
Можете да гласувате в анкети
</span></td>

</tr>

</table>
<div align="center">


</td>
</tr>
</table>
</div>
<!--div id="sidebar">
<div class="login">
<form method="post" action="login.php">
<h2>Изход [ tqnko ]</h2>
<div>
<label for="username">Потребител:</label>
<input type="text" name="username" value="" />
</div>
<div>
<label for="password">Парола:</label>
<input type="password" name="password" value="" maxlength="32" />
</div>



<input type="checkbox" class="checkbox" name="autologin" /> Запомни ме на този компютър
Забравена парола (profile.php?mode=sendpassword)
Регистрация (profile.php?mode=register)
</p>
<button class="enter" name="login" type="submit">Вход</button>
</form>

</div>
<div style="text-align:center;"><iframe id='af514c97' name='af514c97' src='http://ad.investor.bg/adframe.php?n=af514c97&amp;what=zone:687' framespacing='0' frameborder='no' scrolling='no' width='160' height='600'>http://ad.investor.bg/adview.php?what=zone:687&amp;n=af514c97 ('http://ad.investor.bg/adclick.php?n=af514c97')</iframe></div>
</div-->

<div class="clear"></div>


<div class="friends">
Новини (http://www.dnes.bg/) |
Финанси (http://www.investor.bg/) |
Спорт (http://www.gol.bg/) |
Лайфстайл (http://www.tialoto.bg/) |
Коли (http://www.automedia.bg/) |
Запознанства (http://www.aha.bg/) |
Музика (http://mp3.dnes.bg/) |
Снимки (http://www.snimka.bg/) |
Туризъм (http://www.nasamnatam.com/) |
Каталог (http://www.start.bg/) |
Блог (http://blog.bg/) |
Работа (http://www.rabota.bg/) |
<a target="_blanc" href="http://www.puls.bg
" title="">Здраве</a> |
Тийн (http://www.teenproblem.net/)
</div>

</div>
<div id="footer">
<ul>

Контакти (http://www.teenproblem.net/s/1191.html)


Реклама (http://reklama.investor.bg/)



Кариери (http://ibg.bg/id-148/Кариери.html)


Пишете ни (javascript:window.open('http://help.ibg.bg/index.php?site=9&amp;ref=','','width=492,height=393,re sizable=no,scrollbars=no'); void(0))

<li class="last">
Блог (http://ibgtechsupport.blog.bg/)


[/list]
<div class="footerlogo" style="background:#fff;"></div>



Инвестор.БГ АД (http://www.ibg.bg) <span>&copy; 2001-2008</span> Teenproblem.net (http://www.teenproblem.net) Всички права запазени. (http://ibg.bg/id-157/)


</p>
<p style="padding:3px 0 0 167px;clear:left;float:none;">
Investor.BG AD (http://www.ibg.bg) <span>&copy; 2001-2008</span> Teenproblem.net (http://www.teenproblem.net) <span>All rights reserved. Contact us:</span> info@teenproblem.net | Advertising (http://reklama.investor.bg/setLanguage-3/)

</p>
</div>
<div style="display:none; float:right">



<script type="text/javascript">
<!--
d=document;
d.write('<a href="http://www.tyxo.bg/?2417" title="Tyxo.bg counter" target=" blank"><img width="1" height="1" border="0" alt="Tyxo.bg counter"');
d.write(' src="http://cnt.tyxo.bg/2417?rnd='+Math.round(Math.random()*2147483647));
d.write('&sp='+screen.width+'x'+screen.height+'&r='+escape(d.referrer)+'" /><\/a>');
//-->
</script>
<noscript>http://cnt.tyxo.bg/2417 (http://www.tyxo.bg/?2417)</noscript>



</div>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>

<script type="text/javascript">
_uacct = "UA-493074-11";
urchinTracker();
</script>


<script type="text/javascript">
var _rsCI="bg-investorbg";
var _rsCG="0";
var _rsDN="//secure-it.imrworldwide.com/";
var _rsIP=1;
</script>
<script type="text/javascript" src="//secure-it.imrworldwide.com/v53.js"></script>
<noscript>
<div>//secure-it.imrworldwide.com/cgi-bin/m?ci=bg-investorbg&amp;cg=0&cc=1</div>
</noscript>



<script type="text/javascript">
<![CDATA[//><!--
var pp_gemius_identifier = new String('nLDlFoQcZSZ9fvFVtJoMMJa1fSqd8C8gJhyFTvpqPj H.B7');
//--><!]]>
</script>
<script type="text/javascript" src="http://www.teenproblem.net/xgemius.js"></script>

<script src="http://httpoolbg.nuggad.net/rc?nuggn=1782510139&amp;nuggsid=1948324110" type="text/javascript"></script>

<script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'https://r.ibg.bg/www/delivery/ajs.php':'http://r.ibg.bg/www/delivery/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write (\"<scr\"+\"ipt type='text/javascript' src='\"+m3_u);
document.write (\"?zoneid=31\");
document.write ('&amp;cb=' + m3_r);
if (document.MAX_used != ',') document.write (\"&amp;exclude=\" + document.MAX_used);
document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
document.write (\"&amp;loc=\" + escape(window.location));
if (document.referrer) document.write (\"&amp;referer=\" + escape(document.referrer));
if (document.context) document.write (\"&context=\" + escape(document.context));
if (document.mmm_fo) document.write (\"&amp;mmm_fo=1\");
document.write (\"'><\/scr\"+\"ipt>\");
//]]>--></script><noscript>http://r.ibg.bg/www/delivery/avw.php?zoneid=31&amp;cb=63546844&amp;n=a7395a3d ('http://r.ibg.bg/www/delivery/ck.php?n=a7395a3d&amp;cb=63546844')</noscript>

</body>
</html>
това може да се каже, че е тъпичък форум

Outlaw87
03-27-2010, 15:29
темата е много глупава. докато бях модератор в Дата.бг подредих много добре раздела програмиране и там има подобни теми, в които повече от тук има кой да пише пък и вече има немалко примери.

Nam3less3
03-27-2010, 22:26
Който иска да правим алгоритмични програмки на c++ да ми пише лично съобщение. Примерно алгоритми за двумерни масиви, рекурсии и т.н. За упражнение и губене на време :)

asp1r1n94
03-28-2010, 00:19
Аз още съм на паскал...

Nam3less3
03-28-2010, 01:27
Аз още съм на паскал...Е синтаксиса на езика не е от голямо значение, стига да поддържа структурите от данни и операциите, необходими за алгоритъма.

ivanstef
03-28-2010, 18:34
Аз още съм на паскал...Е синтаксиса на езика не е от голямо значение, стига да поддържа структурите от данни и операциите, необходими за алгоритъма.

Те него вече и по олимпиади не го признават.