Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sd-ca:teme:tema3-2024 [2024/05/12 15:11]
robert.grancsa [Cel mai popular]
sd-ca:teme:tema3-2024 [2024/05/19 11:41] (current)
robert.grancsa [Tema 3 SD]
Line 21: Line 21:
 Unde id.moodle este id-ul vostru de pe Teams/​Moodle,​ de exemplu andrei.popescu. Dacă doriți să faceți tema singuri, lucru care nu este recomandat, puteți să scrieți un singur nume. Unde id.moodle este id-ul vostru de pe Teams/​Moodle,​ de exemplu andrei.popescu. Dacă doriți să faceți tema singuri, lucru care nu este recomandat, puteți să scrieți un singur nume.
 </​note>​ </​note>​
 +
 +<note warning>​Atentie! Doar o persoana trebuie sa incarce tema pe moodle, nu trimiteti temele de 2 ori. Punctajele vor fi adaugate la amandoua persoanele pe baza id-ului de moodle</​note>​
  
 ===== Actualizări ===== ===== Actualizări =====
 +
 +  * 14.05 (00:23) - adaugat precizari indexare
  
 ===== Obiective ===== ===== Obiective =====
Line 203: Line 207:
   * Titlul unei postări poate avea maxim 280 de caractere   * Titlul unei postări poate avea maxim 280 de caractere
   * ID-ul unei postări va fi un număr întreg pozitiv, unic pentru fiecare postare   * ID-ul unei postări va fi un număr întreg pozitiv, unic pentru fiecare postare
 +
 +<note important>​Indexarea se va face de la 1</​note>​
  
 ==== Repost ==== ==== Repost ====
  
-''​%%repost <​nume>​ <​post-id>​ [<repost-id>]%%''​+''​%%repost <​nume>​ <​post-id>​ [repost-id]%%''​
  
 Creează un repost la o postare existentă. Dacă comanda ''​%%repost%%''​ are un repost id, atunci se consideră că este un repost la un repost. Creează un repost la o postare existentă. Dacă comanda ''​%%repost%%''​ are un repost id, atunci se consideră că este un repost la un repost.
Line 236: Line 242:
 ''​%%common-repost <​post>​ <​repost-id-1>​ <​repost-id-2>​%%''​ ''​%%common-repost <​post>​ <​repost-id-1>​ <​repost-id-2>​%%''​
  
-Găsește primul repost comun al două reposturi. ​Dacă nu există, se va afișa "No common reposts for ''​%%<​repost-id-1>​%%''​ and ''​%%<​repost-id-2>​%%''"​+Găsește primul repost comun al două reposturi.
  
 Exemplu: Exemplu:
Line 249: Line 255:
 ==== Like ==== ==== Like ====
  
-''​%%like <​nume>​ <​post-id>​ [<repost-id>]%%''​+''​%%like <​nume>​ <​post-id>​ [repost-id]%%''​
  
 Adaugă un like la o postare sau repostare. Dacă se dă repost id, atunci se va adăuga like-ul la repostare. Adaugă un like la o postare sau repostare. Dacă se dă repost id, atunci se va adăuga like-ul la repostare.
Line 258: Line 264:
 > create Mihai "Titlu postare" ​ > create Mihai "Titlu postare" ​
 < Created "Titlu postare"​ for Mihai  < Created "Titlu postare"​ for Mihai 
-> like Alex +> like Alex 1
 < Alex liked "Titlu postare" ​ < Alex liked "Titlu postare" ​
-> like Alex +> like Alex 1
 < Alex unliked "Titlu postare"​ < Alex unliked "Titlu postare"​
 </​code>​ </​code>​
Line 284: Line 290:
 > create Mihai "​Opinie nepopulară" ​ > create Mihai "​Opinie nepopulară" ​
 > repost Alex 1  > repost Alex 1 
-> like Alex 1  +> like Alex 1 2 
-> like Ana 1  +> like Ana 1 2 
-> ratio  +> ratio  
-< Post got ratio'​d by repost ​1+< Post got ratio'​d by repost ​2
 </​code>​ </​code>​
  
Line 298: Line 304:
 ==== Delete Post/Repost ==== ==== Delete Post/Repost ====
  
-''​%%delete <​post-id>​ [<repost-id>]%%''​+''​%%delete <​post-id>​ [repost-id]%%''​
  
 Șterge o postare sau un repost. Odată ce o postare sau un repost a fost șters, toate reposturile care depind de aceasta vor fi șterse. Șterge o postare sau un repost. Odată ce o postare sau un repost a fost șters, toate reposturile care depind de aceasta vor fi șterse.
Line 307: Line 313:
  
 <​code>​ <​code>​
-> delete ​+> delete ​1
 < Deleted "Titlu postare"​ < Deleted "Titlu postare"​
 </​code>​ </​code>​
Line 313: Line 319:
 ==== Get likes ==== ==== Get likes ====
  
-''​%%get-likes <​post-id>​ [<repost-id>]%%''​+''​%%get-likes <​post-id>​ [repost-id]%%''​
  
 Afișează numărul de like-uri pentru o postare sau repostare. Afișează numărul de like-uri pentru o postare sau repostare.
Line 322: Line 328:
 > get-likes 1 2  > get-likes 1 2 
 < Repost #2 has 5 likes  < Repost #2 has 5 likes 
-> get-likes ​+> get-likes ​1
 < Post "Titlu postare"​ has 0 likes < Post "Titlu postare"​ has 0 likes
 </​code>​ </​code>​
Line 328: Line 334:
 ==== Get reposts ==== ==== Get reposts ====
  
-''​%%get-reposts <post/repost-id>%%''​+''​%%get-reposts <post> [repost-id]%%''​
  
 Afișează toată ierarhia de reposturi pentru un post/​repost. Afișează toată ierarhia de reposturi pentru un post/​repost.
Line 466: Line 472:
   * Coding style si claritatea explicatiilor din README - 10p   * Coding style si claritatea explicatiilor din README - 10p
  
 +Tema trebuie incarcata pe [[https://​curs.upb.ro/​2023/​mod/​assign/​view.php?​id=172809|moodle]],​ si arhiva va contine:
 +
 +  * Fisierele sursa (toate .c si .h)
 +  * Makefile
 +  * README.md
 ===== FAQ ===== ===== FAQ =====
  
Line 481: Line 492:
  
 ===== Checker ===== ===== Checker =====
 +
 +Link-ul de la checker se poate gasi [[https://​github.com/​sd-pub/​tema3-2024|aici]].
  
 <note important>​Atenție,​ checkerul rulează toate testele cu valgrind. Dacă aveți erori de valgrind nu primiți punctajul pe checkerul de pe moodle. Pentru a activa valgrind-ul pe checker, apasați tasta ''​%%v%%''​ si va aparea chenarul rosu.</​note>​ <note important>​Atenție,​ checkerul rulează toate testele cu valgrind. Dacă aveți erori de valgrind nu primiți punctajul pe checkerul de pe moodle. Pentru a activa valgrind-ul pe checker, apasați tasta ''​%%v%%''​ si va aparea chenarul rosu.</​note>​
sd-ca/teme/tema3-2024.1715515916.txt.gz · Last modified: 2024/05/12 15:11 by robert.grancsa
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0