Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
/ cpp Public archive

Collection of C++ scripts I made during Computer Science classes

License

Notifications You must be signed in to change notification settings

xxczaki/cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CPP

Collection of C++ scripts I made during Computer Science classes.

Disclaimer

C++ is not my primary programming language and my understanding of it is very limited. Keep that in mind before exploring the scripts.

Currently available scripts:

  • a.cpp - prints a big letter A, accepts size as a parameter.
  • euklides.cpp - calculates the greatest common divisor (GCD) of a number, uses recursive function.
  • fibonacci.cpp - prints the nth fibonacci number.
  • fibonacci-recursive.cpp - prints the nth fibonacci number (recursive).
  • k.cpp - prints a big letter K, accepts size as a parameter.
  • kolo.cpp - prints a circle, accepts radius as a parameter.
  • miejsca-zerowe.cpp - calculates zero places of a quadratic function.
  • 2na10.cpp - binary to decimal conversion.
  • 10na2.cpp - decimal to binary conversion.
  • 8na10.cpp - octal to decimal conversion.
  • 10naDowolny.cpp - decimal to selected system conversion.
  • macierz.cpp - rotates 3x3 matrix 90 degrees to the right.
  • 322.cpp - creates an array with 10 random integers and does some stuff on it.
  • ciagi.cpp - checks sequence monotony.
  • bubble-sort.cpp - bubble-sorts an array.
  • bucket-sort.cpp - bucket-sorts an array.
  • count-sort.cpp - count-sorts an array.
  • insert-sort.cpp - insert-sorts an array.
  • merge-sort.cpp - merge-sorts an array.
  • select-sort.cpp - select-sorts an array.
  • quicksort.cpp - sorts an array using quicksort algorithm.
  • minmax.cpp - checks the largest and smallest integer in an array, shows the repetitions if necessary.
  • minmax2d.cpp - checks the largest and smallest integer in a 2 dimensional array, shows the repetitions if necessary.
  • rectangle-method.cpp - calculates an approximate area between 2 selected points (p, q) of any mathematical function, by placing a selected number of rectangles.
  • trapezium-method.cpp - calculates an approximate area between 2 selected points (p, q) of any mathematical function, by placing a selected number of trapeziums.
  • find-text.cpp - checks whether a given string is present in another string.
  • find-text-binary.cpp - checks whether a given string is present in another string, using an interesting method, which uses binary system.
  • palindrom.cpp - checks whether 2 given strings are palindromes.
  • anagram.cpp - checks whether 2 given strings are anagrams.
  • newton-raphson.cpp - root-finding algorithm.
  • factorial-recursive.cpp - calculates factorial of a given number using a recursive method.
  • nww.cpp - calculates the least common multiple of a number, uses recursive functions.
  • divide-and-conquer.cpp - checks the largest and smallest integer in an array using the divide and conquer method.
  • text-sort.cpp - sorts a given string.
  • zero-spot.cpp - calculates approximate zero places of a given mathematical function.
  • rpn.cpp - converts expressions from infix notation to reverse polish notation using a shunting-yard algorithm implemented using vectors and regular expressions.

Why are you calling a C++ program a script?

Because I can.

License

MIT