Giter Site home page Giter Site logo

xxczaki / cpp Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 31 KB

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

License: MIT License

C++ 100.00%
cpp cplusplus scripts cs computer-science classes school tasks learning experimenting collection hacktoberfest

cpp's Introduction

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

cpp's People

Contributors

xxczaki avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.