Giter Site home page Giter Site logo

basic_c_examples's Introduction

basic_c_examples

Short console apps demonstrating basic С language concepts

array 1.cpp - poiner access to array elements
array 2.cpp - dynamic memory allocation
array 3.cpp - ways to pass (multi-dimentional) array into function

ArrayRev.cpp - shows that array allocaton in C and Visual Basic are different at low-level
ArrayRev VB (directory) - the same

checkzero.cpp - on importance to initialize vars

class 1.cpp - calling constructors
class 2.cpp - calling copy constructors
class 3.cpp - static members and friend functions

CMultiArr.cpp
New_multiArr.cpp
Dinamic_multiarr.cpp - creating arbitrary multi-dimentional dinamic arrays

Division.cpp - as simple as it sounds
empty.cpp - i can`t understand this program (
file.cpp - stdio file access

for sequence.cpp - oneliner prog!
for_style.cpp - for decoration example

functions 1.cpp - passing arguments by pointer and by reference
functions 2.cpp - juggling with referencing-dereferencing
functions 3.cpp - using global vars inside a function

incrementer.cpp - written just to estimate how many elementary operations can i afford to get, say, 1 second delay
inc_dec_comparation.cpp - the same

IntOrExtVarDefs.cpp - declare vars outside of a cycle, compiler is a dumb thing

matrix.cpp - matrix arithmetic

multiply 1.cpp - factorization example
multiply 2.cpp - another factorization example

NumberGuesser.cpp - magical prog that guesses the number you propose

permutations 1.cpp - prints out P(k,n)
permutations 2.cpp - another try to print P(k,n)

parentheses 1.cpp - prints out all words of length (2*N)>0 that represent valid nested curly braces "(" and ")" (That was fun!)
parentheses.cpp - the same

PasSeries.cpp - prints out Pascal`s triangular array members, see wiki

pointer 0.cpp
pointer 1.cpp
pointer 1_1.cpp
pointer 2.cpp - void pointers
pointer 3.cpp - pointers on const
pointer 4.cpp - constant pointers
pointer 5.cpp - pointer arithmetic
pointer 6.cpp
pointer 7.cpp - pointers and references are the same damn thing!

polynom.cpp - lets solve quadratic equation

prime integers.cpp - prints out primes

rpn.cpp - my guess is that the prog parses math expressions
sizeof.cpp - as simple as it sounds
sqr comparation.cpp - pow function testing
string.cpp - some string operations

type cast 1.cpp - unexplicit type casting
type cast 2.cpp - explicit type casting

union.cpp - shows what is a unit at low-level

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.