2kolok_SP

gorazd avatargorazd
Public01/06/2025 3:57 PM42 snippets
2024-12.cpp
2024-11.cpp
2024-10.cpp
2024-9.cpp
2024-8.cpp
2024_7.cpp
2024-6.cpp
2024_5.cpp
2024_4.cpp
2024_3.cpp
2024_2.cpp
2024_1.cpp
5dop.cpp
12dop.cpp
11dop.cpp
10dop.cpp
9dop.cpp
7dop.cpp
6dop.cpp
4dop.cpp
3dop.cpp
2dop.cpp
1dop.cpp
zad19.cpp
zad18.cpp
  • /2

2024-12

01/12/2025 4:17 PM
2024-12.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;


char findCapital(char* s, int len)
{
    if(isupper(s[0]))

2024-11

01/12/2025 4:17 PM
2024-11.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;




int main() {

2024-10

01/12/2025 4:16 PM
2024-10.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;

bool soglaska(char a)
{
    a = tolower(a);
    return(a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u');

2024-9

01/12/2025 4:16 PM
2024-9.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;


char findCapital(char* s, int len)
{
    if(ispunct(s[0]))

2024-8

01/12/2025 4:16 PM
2024-8.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;




int main() {

2024_7

01/12/2025 4:16 PM
2024_7.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;

bool soglaska(char a)
{
    a = tolower(a);
    if (!isalpha(a))

2024-6

01/12/2025 4:15 PM
2024-6.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;


void sequence(int n, int i, bool descendI)
{
    if(n - 3*i <= 0)

2024_5

01/12/2025 4:15 PM
2024_5.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;




int main() {

2024_4

01/12/2025 4:15 PM
2024_4.cpp
#include <iostream>
#include <cstring>
#include <iomanip>
using namespace std;


int countItUp(char *s, char *str) {
    int len = strlen(str);
    int count = 0;
    char *p = s;

2024_3

01/12/2025 4:14 PM
2024_3.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;


void sequence(int n, int i, bool descendI)
{
    if(n - 5*i <= 0)

2024_2

01/12/2025 4:14 PM
2024_2.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;




int main() {

2024_1

01/12/2025 4:14 PM
2024_1.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;

int countItUp(char* s, char* s_)
{
    int counter = 0;
    const char *p = strstr(s, s_);

5dop

01/12/2025 4:13 PM
5dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;



bool validIndex(int i, int j, int m, int n)
{

12dop

01/08/2025 8:52 PM
12dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;

bool isCool(int a, int i, int j) {
    return (a%2 == (i+j)%2);
}

11dop

01/08/2025 8:51 PM
11dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;

void transform(int* arr, int n) {
    int d = *arr;
    if (abs(d)>=n) {

10dop

01/08/2025 8:51 PM
10dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;

int brojNaCifri(int a);

int spoeni(int i, int j) {

9dop

01/08/2025 8:51 PM
9dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;

int countSvrz(char* s) {
    char s_copy[100];
    strcpy(s_copy, s);

7dop

01/08/2025 8:50 PM
7dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
using namespace std;

bool positive(int *arr, int len)
{
    for (int i = 0; i < len; i++)
        if (arr[i] < 0)
            return false;

6dop

01/08/2025 8:50 PM
6dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
using namespace std;

void swap(int *a, int *b)
{
    int temp = *a;
    *a = *b;
    *b = temp;

4dop

01/08/2025 8:50 PM
4dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;


int main() {
    int m,n;

3dop

01/08/2025 8:50 PM
3dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;

void Function(char *s, int len) {
    int count = 0;
    for (int i = 0; i < len; i++) {

2dop

01/08/2025 8:49 PM
2dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;

int main() {
    int n;
    cin >> n;

1dop

01/08/2025 8:49 PM
1dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;

bool isPalindrome(char* s, int len) {
    int start = 0, end = len - 1;
    while (start < end) {
        if (s[start]!=s[end])

zad19

01/06/2025 4:05 PM
zad19.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;

void transform(char* s,int x, int len) {
    if (len == 0) return;
    if (isalpha(s[0])) {
        if (isupper(s[0])) { //uppercase

zad18

01/06/2025 4:05 PM
zad18.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;


int main() {
    int n;
    cin>>n;