<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Subprograme by Ciobanu Andreea</title>
      <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h</link>
      <description>Functii, proceduri, recursia , domeniu de vizibilitate, tipuri structura și rolul</description>
      <language>en-us</language>
      <pubDate>2025-10-03 10:28:53 UTC</pubDate>
      <lastBuildDate>2025-11-13 19:30:49 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet.net/icons/8.0/svg/1f47e.svg</url>
      </image>
      <item>
         <title>Definiție</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3670724249</link>
         <description><![CDATA[<p>Un <strong>subprogram în C++</strong> este o <strong><mark>secvență de instrucțiuni grupate sub un nume propriu</mark></strong>, care îndeplinește o anumită funcție și poate fi apelată oricând în cadrul programului principal sau din alte subprograme.</p><p>În C++, subprogramele se numesc <strong><mark>funcții</mark></strong>. Ele pot primi <strong><mark>parametri</mark></strong> (date de intrare) și pot <strong>returna o valoare</strong> programului care le-a apelat.</p>]]></description>
         <enclosure url="https://padlet-uploads-usc1.storage.googleapis.com/4486942494/22297deda889711ed4bfecbbea4fbe0b/____________2025_11_07_000028763.png" />
         <pubDate>2025-11-06 21:52:40 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3670724249</guid>
      </item>
      <item>
         <title>Primul meu program</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3670740062</link>
         <description><![CDATA[<p><a rel="noopener noreferrer nofollow" href="https://www.onlinegdb.com/edit/Gv07iVMls">https://www.onlinegdb.com/edit/Gv07iVMls</a></p>]]></description>
         <enclosure url="https://upload.wikimedia.org/wikipedia/commons/d/de/Cat_c%2B%2B.png" />
         <pubDate>2025-11-06 22:14:56 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3670740062</guid>
      </item>
      <item>
         <title></title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679686826</link>
         <description><![CDATA[<p>Cum să înveți programarea în 60 minute</p>]]></description>
         <enclosure url="https://www.youtube.com/watch?pdlt=1&amp;v=ZzaPdXTrSb8" />
         <pubDate>2025-11-12 17:40:59 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679686826</guid>
      </item>
      <item>
         <title>Gândește-te așa:</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679809138</link>
         <description><![CDATA[<p>Ai un program mare, ca un robot care face mai multe lucruri — calculează, desenează, scrie pe ecran.<br></p><p>Fiecare lucru mic pe care îl face robotul poate fi pus într-o „cutiuță specială” — asta este un <strong>subprogram</strong>.</p>]]></description>
         <enclosure url="https://media0.giphy.com/media/v1.Y2lkPWNhYmM5OTE4bnF1aGdnZHVkMTZ1NnFjNzlmNW1mY2wya2RobGxqcHpzODloNWpqNSZlcD12MV9naWZzX3NlYXJjaCZjdD1n/ZNnQvIYzIBmZAbrBR7/giphy.gif" />
         <pubDate>2025-11-12 19:04:12 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679809138</guid>
      </item>
      <item>
         <title>👩‍💻 În C++, există două tipuri principale de subprograme:</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679810761</link>
         <description><![CDATA[<ol><li><p><strong><mark>Funcții</mark></strong> – fac o acțiune și pot întoarce un rezultat.<br>👉 De exemplu, o funcție care calculează suma a două numere.</p></li><li><p><strong><mark>Proceduri</mark></strong> – fac o acțiune, dar nu întorc un rezultat (în C++ sunt tot funcții, dar cu tipul void)</p></li></ol>]]></description>
         <enclosure url="" />
         <pubDate>2025-11-12 19:05:30 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679810761</guid>
      </item>
      <item>
         <title>Un subprogram din C++ poate fi comparat cu o păpușă Matrioșka </title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679818898</link>
         <description><![CDATA[<p><br/></p><ul><li><p><strong><mark>Programul principal</mark></strong> (main) este <strong>păpușa mare</strong>, ea conține toate celelalte.</p></li><li><p><strong><mark>Subprogramele</mark></strong> (funcțiile) sunt <strong>păpușile mai mici</strong> din interior, fiecare are un rol special, face o parte din munca întregului program.</p><p><br/></p><p><br/></p><p>Când programul mare are nevoie de ceva, <strong>deschide păpușa mare</strong>, găsește <strong>păpușa potrivită (funcția)</strong>, o folosește, apoi o pune înapoi.</p></li></ul>]]></description>
         <enclosure url="https://media1.giphy.com/media/v1.Y2lkPWNhYmM5OTE4bHVweG85cGF1aDN0NTFwaWw2MXVoYzBmZXV2ODhtNW11eG5rZHM1eSZlcD12MV9naWZzX3NlYXJjaCZjdD1n/3oEjHWPTo7c0ajPwty/giphy.gif" />
         <pubDate>2025-11-12 19:11:37 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679818898</guid>
      </item>
      <item>
         <title>Tu cu ce poți compara un subprogram ?</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679824253</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2025-11-12 19:15:48 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679824253</guid>
      </item>
      <item>
         <title></title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679833617</link>
         <description><![CDATA[<p> <strong>1. Subprograme standard</strong><br>Sunt deja făcute, gata de folosit — ca niște jucării cumpărate din magazin 🧸.<br>Nu trebuie să le construim noi, doar le chemăm să ne ajute.<br>Exemplu: sqrt(16) calculează rădăcina pătrată a lui 16.</p><p><br></p><p> <strong>2. Subprograme făcute de utilizator</strong><br>Astea sunt create chiar de noi 👩‍💻, când avem nevoie de ceva special.<br>De exemplu, putem face o funcție care adună două numere sau care scrie un mesaj frumos pe ecran.</p><p><br></p><p> <strong>3. Subprograme apelate ca instrucțiuni</strong><br>Sunt funcții care <strong>nu dau un rezultat</strong>, ci doar fac ceva.<br>De exemplu, pot curăța ecranul sau muta un text într-un loc nou.<br>Ele sunt ca un ajutor care face o treabă, dar nu ne aduce un răspuns.</p><p><br></p><p><strong>4. Subprograme apelate ca operanzi</strong><br>Acestea <strong>ne dau un rezultat</strong> — adică fac o treabă și ne spun răspunsul.<br>De exemplu: x = pow(3,2); – funcția calculează 3 la puterea 2 și dă înapoi 9.</p>]]></description>
         <enclosure url="https://padlet-uploads-usc1.storage.googleapis.com/4486942494/9e365edab007c3412da1d5c31214d222/____________2025_11_12_212249192.png" />
         <pubDate>2025-11-12 19:23:25 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679833617</guid>
      </item>
      <item>
         <title></title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679861129</link>
         <description><![CDATA[<p><a rel="noopener noreferrer nofollow" href="https://wordwall.net/resource/101918613/clasificarea-subprogramelor">https://wordwall.net/resource/101918613/clasificarea-subprogramelor</a></p>]]></description>
         <enclosure url="https://media4.giphy.com/media/v1.Y2lkPWNhYmM5OTE4ODhpcjI3ZDV6eHFhbWhmMndheTl2YnYxc2Q5bTdvZ2dmamoxeGYxYSZlcD12MV9naWZzX3NlYXJjaCZjdD1n/8zjxfpuutpJFRnlM2h/giphy.gif" />
         <pubDate>2025-11-12 19:45:48 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679861129</guid>
      </item>
      <item>
         <title>În limbajul C/C++ se utilizează declaraţii şi definiţii de funcţii.</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679866311</link>
         <description><![CDATA[<p><mark>Declaraţia</mark> conţine antetul funcţiei şi informează compilatorul asupra tipului, numelui funcţiei şi a listei parametrilor formali (în care se poate indica tipul parametrilor formali şi numele acestora). </p><p>Declaraţiile de funcţii se numesc <mark>prototipuri</mark>, şi sunt constituite din <mark>antetul funcţiei</mark>. </p>]]></description>
         <enclosure url="https://padlet-uploads-usc1.storage.googleapis.com/4486942494/1a6881e3d491b5b22e04e5d78c1e4acd/____________2025_11_12_214935314.png" />
         <pubDate>2025-11-12 19:49:40 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679866311</guid>
      </item>
      <item>
         <title>De ce e bine să avem subprograme?</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679869627</link>
         <description><![CDATA[<p><br/></p><p>1. Nu mai scrii același cod de multe ori</p><p><br/></p><p>2. Codul tău e mai curat și mai ușor de înțeles</p><p><br/></p><p>3. Poți împărți probleme mari în probleme mici și ușor de rezolvat</p>]]></description>
         <enclosure url="https://media1.giphy.com/media/v1.Y2lkPWNhYmM5OTE4YWtuMHE5MGN6bHVndHM0MnJ6dHdsNHNybnJnd2l2cWY4azg5MzcwcyZlcD12MV9naWZzX3NlYXJjaCZjdD1n/WopRgEnlY5aNT4yGER/giphy.gif" />
         <pubDate>2025-11-12 19:52:30 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679869627</guid>
      </item>
      <item>
         <title>Structura</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679872348</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads-usc1.storage.googleapis.com/4486942494/e3ba27b28feb76481fc14a1617e9f227/____________2025_11_12_215432866.png" />
         <pubDate>2025-11-12 19:54:37 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679872348</guid>
      </item>
      <item>
         <title>1. Subprograme care returnează o valoare (funcții)</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679875773</link>
         <description><![CDATA[<p>Acestea primesc ceva, fac o treabă și îți dau ceva înapoi.</p><p><br></p><p>Au un tip de date: int, double, char etc.</p><p><br></p><p>Folosim când vrem <strong>să calculăm ceva</strong> și să folosim rezultatul.</p>]]></description>
         <enclosure url="https://padlet-uploads-usc1.storage.googleapis.com/4486942494/9dc35812f2a76cdb7626a52f725deb6f/____________2025_11_12_215924668.png" />
         <pubDate>2025-11-12 19:57:36 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679875773</guid>
      </item>
      <item>
         <title>2. Subprograme care nu returnează valoare (proceduri sau funcții void)</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679876797</link>
         <description><![CDATA[<p>Acestea fac doar o acțiune, nu dau nimic înapoi.</p><p><br></p><p>În C++ se scriu cu void.</p><p><br></p><p>Folosim când vrem doar să <strong>afișăm ceva</strong> sau să <strong>facem o treabă</strong>.</p>]]></description>
         <enclosure url="https://padlet-uploads-usc1.storage.googleapis.com/4486942494/fd7ce30c5837db2681d334890653d0d8/____________2025_11_12_215902835.png" />
         <pubDate>2025-11-12 19:58:22 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679876797</guid>
      </item>
      <item>
         <title></title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679880854</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2025-11-12 20:01:59 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679880854</guid>
      </item>
      <item>
         <title>Domeniul de vizibilitate spune unde într-un program poți folosi o variabilă sau un subprogram.</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679884659</link>
         <description><![CDATA[<p>Practic, te ajută să știi în ce locuri din cod poți accesa ceva.</p>]]></description>
         <enclosure url="https://padlet-uploads-usc1.storage.googleapis.com/4486942494/c43f279e5d830c40bd3598daf33f628a/____________2025_11_12_220509376.png" />
         <pubDate>2025-11-12 20:05:12 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679884659</guid>
      </item>
      <item>
         <title>a) Domeniu local</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679886085</link>
         <description><![CDATA[<p>O variabilă este locală dacă este declarată în interiorul unei funcții sau a unui bloc { }.</p><p><br></p><p>Aceasta există doar în acel bloc și dispare când blocul se termină.</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-11-12 20:06:26 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679886085</guid>
      </item>
      <item>
         <title>b) Domeniu global</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679886353</link>
         <description><![CDATA[<p>O variabilă este globală dacă este declarată în afara tuturor funcțiilor.</p><p><br/></p><p>Aceasta poate fi folosită în orice funcție din program.</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-11-12 20:06:39 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679886353</guid>
      </item>
      <item>
         <title>c) Domeniu de bloc</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679886539</link>
         <description><![CDATA[<p>Variabilele declarate în interiorul unui bloc de cod { } (de exemplu într-un if, for) există doar în acel bloc.</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-11-12 20:06:47 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679886539</guid>
      </item>
      <item>
         <title>Verifică-ți cunoștințele!</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679893872</link>
         <description><![CDATA[<p><a rel="noopener noreferrer nofollow" href="https://wordwall.net/resource/101920300/untitled2">https://wordwall.net/resource/101920300/untitled2</a></p>]]></description>
         <enclosure url="https://media1.giphy.com/media/v1.Y2lkPWNhYmM5OTE4dHBwMmlibmF1d3NlbHd3d2dqZmcwanRjMGZxOG9lcnZyZGFuOWM2NyZlcD12MV9naWZzX3NlYXJjaCZjdD1n/c5RzZOHPgry80/giphy.gif" />
         <pubDate>2025-11-12 20:13:15 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679893872</guid>
      </item>
      <item>
         <title>1. Ce este recursia?</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679898753</link>
         <description><![CDATA[<p>Recursia este atunci când o funcție se apelează pe ea însăși pentru a rezolva o problemă.</p><p><br></p><p>Gândește-te la ea ca la o oglindă infinită: problema mare se împarte în probleme mai mici până ajungi la cazul de bază, care se poate rezolva direct.</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-11-12 20:17:33 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679898753</guid>
      </item>
      <item>
         <title></title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679901169</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads-usc1.storage.googleapis.com/4486942494/e84895342cb856879f53dbeb1367fa34/____________2025_11_12_221941346.png" />
         <pubDate>2025-11-12 20:19:43 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679901169</guid>
      </item>
      <item>
         <title>2. Componentele unei funcții recursive</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679902030</link>
         <description><![CDATA[<p>O funcție recursivă are două părți importante:</p><p><br/></p><p><mark>Cazul de bază</mark> – situația simplă care se poate rezolva fără recursie (stop)</p><p><br/></p><p><mark>Cazul recursiv</mark> – apelul funcției pe ea însăși pentru a rezolva o problemă mai mică</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-11-12 20:20:38 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679902030</guid>
      </item>
      <item>
         <title>Un exemplu de recursie este șirul lui Fibonacci</title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679904578</link>
         <description><![CDATA[<p>Șirul lui Fibonacci este o <strong>succesiune de numere</strong> unde:</p>]]></description>
         <enclosure url="https://padlet-uploads-usc1.storage.googleapis.com/4486942494/f0f8296f062d4a53bdd6c4c938d1c51e/____________2025_11_12_222401544.png" />
         <pubDate>2025-11-12 20:22:32 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679904578</guid>
      </item>
      <item>
         <title></title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679906847</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads-usc1.storage.googleapis.com/4486942494/aac43213484e87d2ce3f2a27abf3d937/____________2025_11_12_222431647.png" />
         <pubDate>2025-11-12 20:24:34 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679906847</guid>
      </item>
      <item>
         <title></title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679907414</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads-usc1.storage.googleapis.com/4486942494/349d7512f39f2e673d612e1937360ada/____________2025_11_12_222506162.png" />
         <pubDate>2025-11-12 20:25:08 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679907414</guid>
      </item>
      <item>
         <title></title>
         <author>ciobannuandreea</author>
         <link>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679908429</link>
         <description><![CDATA[<p><a rel="noopener noreferrer nofollow" href="https://create.kahoot.it/details/af954559-6d58-4eeb-81e7-d87c9ef6a9a1">https://create.kahoot.it/details/af954559-6d58-4eeb-81e7-d87c9ef6a9a1</a></p>]]></description>
         <enclosure url="https://media1.giphy.com/media/v1.Y2lkPWNhYmM5OTE4bWw4Mm5pcDA1ZGNianNxYjRhbHUyeDBsNDd1NTkweTRxMnVvczdhciZlcD12MV9naWZzX3NlYXJjaCZjdD1n/o0vwzuFwCGAFO/giphy.gif" />
         <pubDate>2025-11-12 20:26:09 UTC</pubDate>
         <guid>https://padlet.com/ciobannuandreea/94p4jouc1v146a9h/wish/3679908429</guid>
      </item>
   </channel>
</rss>
