repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter8Exercise5.cpp
<gh_stars>1-10 /* TITLE Reverse order of vector of int Chapter8Exercise5.cpp <NAME> "Programming: Principles and Practice Using C++" COMMENT Objective: Write two functions that reverse the order of elements in a vector of integeres: - return the same vector with reversed elements. -...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/Chapter21Exercise11/Chapter21Exercise11/Chapter21Exercise15.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<filename>Visual Studio 2010/Projects/Chapter21Exercise11/Chapter21Exercise11/Chapter21Exercise15.cpp /* TITLE Text statistics GUI Chapter21Exercise15.cpp "Bjarne Stroustrup "C++ Programming: Principles and Practice."" COMMENT ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter26Exercise5.cpp
<gh_stars>1-10 /* TITLE Check for unwanted effects Chapter26Exercise5.cpp COMMENT Objective: Add a test to the set of binary_search tests to try to catch the (unlikely) error of a binary_search modifying the sequence. Input: - Output: - Author: <NAME> Date: 01.06.2017 */ #inclu...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter5Exercise13.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter5Exercise13.cpp /* TITLE Game: "Bulls & Cows" Chapter5Exercise13.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Guess the value and position of a set of 4 ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter6Drill1.cpp
/* TITLE Compile and run the code Chapter6Drill1.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: 1. Debug calculator02buggy.cpp from http://www.stroustrup.com/Programming/calculator02buggy.cpp Input: - Output: - Author: <...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter9Drill5.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter9Drill5.cpp /* TITLE Test Class Date Chapter9Drill5.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Test all the versions of the Date class. Instantiate a...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter8Exercise13.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<gh_stars>1-10 /* TITLE Print untill Chapter8Exercise13.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++ COMMENT Objective: Write a function that prints the elements of a vector till i...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter12Drill.cpp
/* TITLE Create a simple window Chapter12Drill.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: 1. Make a simple window. 2. Add all the examples from Chapter 12.7, one by one. 3. Make a minor change on each of the examples. Input: - ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter21Exercise7.cpp
/* TITLE Binary search Chapter21Exercise7.cpp "<NAME>up "C++ Programming: Principles and Practice."" COMMENT Objective: Implement a `binary_search()` function for `std::vector` and `std::list`. Test it. How much do they resemble each other? Input: - Output: - Author: <NAME> ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/testingPrograms/testCalc.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/testingPrograms/testCalc.cpp<gh_stars>1-10 /* TITLE Test calculator testCalc.cpp COMMENT Objective: Test the code of the calculator2.cpp. Test the link between the (.h;.cpp)files. Input: Type ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18Exercise12Def.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- /* TITLE "Hunt the Lumpus" Chapter18Exercise12.cpp "Bjarne Stroustrup "C++ Programming: Principles and Practice."" COMMENT Objcective: Implement the game: "Hunt the Lumpus". Input: - Output: - Author: <NAME> ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/classesFundamentals/func_call.cpp
/* TITLE Definition, declaration, function call, preprocessor directive: #include,extern func_call.cpp COMMENT Objective: Introduce functions declaration and preprocessor directives. Input: Requests a number. Function Input: Returned result from externally defined function: square, return type...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/classesFundamentals/sumto30.cpp
/* TITLE Sum to 30 sumTo30.cpp Objective: Are any 3 of the following numbers: 1,3,5,7,9,13,15 summing up to 30. Input: - Output: The triples that sums up to 30. Date: 08.04.2015 Author: <NAME> */ #include"stdafx.h" int main(){ cout << "Find which three numbers from...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Exercise6.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Exercise6.cpp /* TITLE dot_product() and scale_and_add() Chapter24Exercise6.cpp COMMENT Objective: In the Gaussian elimination example, replace the vector operations dot_product() and scale_and_ad...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/classesFundamentals/func_def.cpp
/* TITLE Definition, declaration, #include, function call func_def.cpp COMMENT Objective: Introduce functions declaration and usage in third sorce code file. Input: - Output: Returns type int named: sqr. (Square of a number.) Author: <NAME> Date: 01.01.2015 */ #include "../../std...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter8Drilluse.cpp
<gh_stars>1-10 /* TITLE File managemenent Chapter8Drilluse.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: 1. Create three files: use.cpp my.h my.cpp Input: - Output: - Author: <NAME> Date: 28.02.2015 */ #incl...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Exercise4.cpp
<gh_stars>1-10 /* TITLE File I/O & Statistics Chapter10Exercise4.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: 1. Populate a file with temperature readings in the format (hour, temperature, unit), where hour: [0, 23], temperature: [min, max],...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3TryThis.cpp
/* TITLE I/O & variables Chapter3TryThis.cpp <NAME>ustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Input/Output commands, Introducing to: object, type, name, value options. Basic algebraic operations: * Input: Requests input information. ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter19Exercise11Def.cpp
/* TITLE Ownership management through reference counting Chapter19Exercise11.cpp "<NAME> "C++ Programming: Principles and Practice."" COMMENT Objcective: Design and implement a counted_ptr<T> that is a type that holds a pointer to an object of type T and a pointer to a "use count" (an int) sh...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter21TryThis1.cpp
/* TITLE find() implementations Chapter21TryThis1.cpp "<NAME> "C++ Programming: Principles and Practice."" COMMENT Objective: Write, test the functions find() and construct an argument for their being equivalent. Both functions have complexity linear on the size of the input data, i.e. : O(n)...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter22Exercise5.cpp
<gh_stars>1-10 /* TITLE Hello World Chapter22Exercise5.cpp COMMEN Objective: Write a "Hello, World!" program in each of the languages mentioned in this chapter. Input: Output: Author: <NAME> Date: 08.03.2017 */ // Ada with Ada.Text_IO; use Ada.Text_IO; procedure Hello is begin Put_Lin...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter19Drill.cpp
<gh_stars>1-10 /* TITLE Templates Chapter19Drill.cpp "Bjarne Stroustrup "C++ Programming: Principles and Practice."" COMMENT Objcective: Input: - Output: - Author: <NAME> Date: 20.1.2016 */ #include <iostream> #include <sstream> #include <string> #include <vector> #include <typeinfo> ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter25Exercise2.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter25Exercise2.cpp /* TITLE Words with hex Chapter25Exercise2.cpp COMMENT Objective: Make a list of words that can be spelled with hexadecimal notation. Read o as 0, read 1 as l read 2 as to, etc. F...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24TryThis1.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- /* TITLE Rounding Error Chapter24TryThis1.cpp COMMENT Objective: Replace 333 in the example with 10 and run the example again. What result would you expect? What result did you get? You have been warned! ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter7Exercise13.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- /* TITLE Revisit two exercises Chapter7Exercise13.cpp "Software - Principles and Practice using C++" by <NAME>" COMMENT Objective: Revisit two exercises from Chapter 4 and 5. Clean up the code and check for bugs. ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter7Exercise1.cpp
/* TITLE Expand calculator Chapter7Exercise1.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Allow user defined variables with names involving underscores. Enter an epxresion and end it with '=' and CR, to evaluate. Input: - Ou...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/classesFundamentals/circleCircumference.cpp
/* TITILE Circumference of a circle circleCircumference.cpp COMMENT Objective: Find circumference of a circle. Introduction to ways of object initialization: assignment, function, uniform. Input: - Output: Prints the circumference of a circle. Author: <NAME> ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter22Exercise6.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter22Exercise6.cpp /* TITLE Program in every language Chapter22Exercise6.cpp COMMEN Objective: For each language mentioned in this chapter, look at a popular textbook and see what is used as the first comple...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise6.cpp
/* TITLE Memory exhaustion Chapter17Exercise6.cpp "<NAME>ustrup "C++ Programming: Principles and Practice."" COMMENT Objcective: Find a way to "exhaust your machine's memory". Expected: Actual limit is the address space of a pointer (32 - bit) -> 2^32 = 4 GB. + virtual memory? ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter9Exercise11.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter9Exercise11.cpp /* TITLE Expand class Date Chapter9Exercise11.h Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Create a function for class Date: next_workday(); ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise12.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<gh_stars>1-10 /* TITLE Linked list Chapter17Exercise11.cpp "Bjarne Stroustrup "C++ Programming: Principles and Practice."" COMMENT Objcective: Why are there two different definitions of find()? I...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter16Exercise8.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- /* TITLE Currency Converter Chapter16Exercis8.cpp "<NAME> "Programming Principles and Practices Using C++"" COMMENT Objective: Provide a currency converter. Read the conversion rates from file on startup. Enter...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/classesFundamentals/classConstructorInheritance.cpp
<gh_stars>1-10 /* TITLE Class Constructor initialization classConstructorInheritance.cpp COMMENT Objective: Initialize a constructor of a base class, calling it from within the derived class constructor member initialization list. Input: - Output: It prints the statemen...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter15Exercise3.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter15Exercise3.cpp /* TITLE Reset Class Data Members Chapter15Exercise3.cpp "<NAME>up "Programming Principles and Practices Using C++"" COMMENT Objective: Add new constructor argument that controls precision. Inp...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4TryThis2.cpp
/* TITLE Selection Blocks Chapter4TryThis2.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Implement a currency converter using switch - case: break; selection construct. Input: - Output: - Author: <NAME>, Kirov ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter7Exercise6.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- /* TITLE Add Help Function Chapter7Exercise6.h "Software - Principles and Practice using C++" by <NAME>" COMMENT Objective: Add a function that gives information about the calculator functionality, capacity a...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter19Exercise1.cpp
/* TITLE Accumulate sum Chapter19Exercise1.cpp "Bjarne Stroustrup "C++ Programming: Principles and Practice."" COMMENT Objcective: A function that that adds a vector elements of an object of any type to which elements can be added. Input: - Output: - Author: <NAME> Dat...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter26BinarySearch.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter26BinarySearch.cpp /* TITLE BinarySearch Chapter26BinarySearch.cpp COMMENT Objective: Write a binary search. How do you know it is correct? Input: - Output: - Author: <NAME> Date: 30....
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/classesFundamentals/functionTemplate.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/classesFundamentals/functionTemplate.cpp<gh_stars>1-10 /* TITLE Use swap function with any primitive type funtionTemplate.cpp COMMENT Objective: Generalise function input types. Input: Elements of any pri...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter16Exercise4Def.cpp
/* TITLE Drawing GUI Chapter16Exercise4Def.cpp "<NAME> "Programming Principles and Practices Using C++"" COMMENT Objective: Make a menu with items that make a circle, a square, an equilateral triangle, and a hexagon respectively. Make an input box for giving coordinate pair, and plac...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/testingPrograms/nThFibonacci.cpp
/* TITLE Calculate the n-th Fibonacci number nThFibonacci.cpp COMMENT Objective: Calculates the n-th fibonacci number using the golden ratio. Input: Prompts for the number(index) of the Fionacci in the sequence. Output: Prints its value. (up to the 46th before overflow) Author: <N...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise8KnuthVolimeII.cpp
/* TITLE Middle-square two digit numbers KnuthVolumeIIChapter3Exercise8.cpp "The art of computer programming, Volume II" by <NAME> COMMENT Objective: Find the period of zero convergence of all 2-digit-seed randomly generated numbers using the middle square method. !!! Method is not fully develo...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/testingPrograms/input_example.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- /* TITLE Input function input_example.cpp COMMENT Objective: Input commands, Introducing to: object, type, name, value. Input: Requests input information. Output: Prints the requested info along with...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter23Exercise7.cpp
/* TITLE Find credit card numbers in file Chapter23Exercise7.cpp COMMENT Objective: Write a program that finds redit card numbers in a file and displays the line containing the date and its number. Input: - Output: - Author: <NAME> Date: 27.04.2017 */ #include <iostream> #include <fs...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise5.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- /* TITLE Stripped_Rectangle Chapter14Exercise5.cpp "<NAME> "Programming Principles and Practices Using C++"" COMMENT Objective: Define a class where the rectangle is "filled" by drawing one-pixel-wide hor...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/testingPrograms/strng_comparison.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/testingPrograms/strng_comparison.cpp /* TITLE Basic String Operators string_comparison.cpp Bjarne Stroustrup's "C++ Programming: Principles and Practice." COMMENT Objective: Introduces relational operators over st...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Drill1.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Drill1.cpp /* TITLE Size of built-in types Chapter24Drill1.cpp COMMENT Objective: Print the size of a char, a short, an int, a long, a float, a double, an int*, and a double*. (use siz...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter25Exercise1.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter25Exercise1.cpp<gh_stars>1-10 /* TITLE Do Try This Exercise Chapter25Exercise1.cpp COMMENT Objective: If you haven't already, do the Try this exercises in this chapter. Input: - Output...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter8Drill3.cpp
<gh_stars>1-10 /* TITLE Namespaces implementation Chapter8Drill3.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Global, namespace, class, function, block scope. Input: - Output: - Author: <NAME> Data: 01.03.2015 */ #include <iostream> #inclu...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18Exercise11.cpp
<gh_stars>1-10 /* TITLE Skip List Chapter18Exercise11.cpp "<NAME> "C++ Programming: Principles and Practice."" COMMENT Objcective: Research and implement the data structure: Skip List. References to the papers by <NAME>: http://epaperpress.com/sortsearch/download/skip...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18TryThis1.cpp
/* TITLE Linked list Chapter18TryThis.cpp "Bjarne Stroustrup "C++ Programming: Principles and Practice."" COMMENT Objcective: Construction and destruction of objects. Input: - Output: - Author: <NAME> Date: 21.12.2015 */ #include <iostream> #include <string> #include <vector> st...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter25Exercise4.cpp
<gh_stars>1-10 /* TITLE Bitwise logical operators Chapter25Exercise4.cpp COMMENT Objective: Add the bitwise logical operators &, |, ^ , and ~ to the calculator from Chapter 7. Input: - Output: - Author: <NAME> Date: 13.05.2017 */ #include <iostream> #include <fstream> #include <sst...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20Exercise15.cpp
/* TITLE pvector Chapter20Exercise15.cpp "<NAME>up "C++ Programming: Principles and Practice."" COMMENT Objective: Define a `pvector` to be like `vector` of pointers except that it contains pointer to objects and its destructor deletes each object. Input: - Output: - Author: <N...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18Exercise1.cpp
/* TITLE String Copy Chapter18Exercise1.cpp "<NAME> "C++ Programming: Principles and Practice."" COMMENT Objcective: Write a function that copies a C-style string into free store memory and returns a pointer to it. Use dereference operatator: *, instead of subscripting: []; ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise15.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise15.cpp /* TITLE Iterator Chapter14Exercise15.cpp "<NAME> "Programming Principles and Practices Using C++"" COMMENT Objective: Define a class Iterator with pure virtual function next() that return...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter21Drill2.cpp
<gh_stars>1-10 /* TITLE Map use Chapter21Drill2.cpp "<NAME>up "C++ Programming: Principles and Practice."" COMMENT Objective: After each line print the container. 1. Define a std::map<std::string, int> msi. 2. Insert 10 (name, value) pairs into it. 3. Output the pairs in any wanted format. ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter21Exercise1.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<gh_stars>1-10 /* TITLE Do all Try This Chapter21Exercise1.cpp "Bjarne Stroustrup "C++ Programming: Principles and Practice."" COMMENT Objective: Input: - Output: - Author: <NAME> Date: 26. 02. 2017 */ #inclu...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise2.cpp
<gh_stars>1-10 /* TITLE Copy Shape Chapter14Exercise2and3.cpp "<NAME> "Programming Principles and Practices Using C++"" COMMENT Objective: Try to copy Shape. Input: - Output: - Author: 27.09.2015 Date: <NAME> */ #include "Graph.h" #include "Simple_window.h" #include <iostream> int...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter12Exercise11.cpp
/* TITLE Confocal Polygons Chapter12Exercise11.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Draw regular confocal polygons. The innermost should be an equalateral triangle, enclosed by a square, enclosed by a pentagon, etc. Touching s...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Exercise9.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Exercise9.cpp /* TITLE Tempates and Generalization Chapter24Exercise9.cpp COMMENT Objective: Rewrite the non-member apply() functions to return a Matrix of the return type of the function applied; ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter16Exercise4.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- /* TITLE Drawing GUI Chapter16Exercise4.cpp "<NAME> "Programming Principles and Practices Using C++"" COMMENT Objective: Make a menu with items that make a circle, a square, an equilateral triangle, and a hexagon res...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter16Exercise7.cpp
/* TITLE Airplane animation Chapter16Exercise7.cpp "<NAME> "Programming Principles and Practices Using C++"" COMMENT Objective: Make an image of an airplane "fly around" in a window. Have a "start" and "stop" button. Input: - Output: - Author: 18.10.2015 Date: <NAME> */ #incl...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter16Exercise2.cpp
<gh_stars>1-10 /* TITLE Checkerboard window Chapter16Exercise2.cpp "<NAME> "Programming Principles and Practices Using C++"" COMMENT Objective: Define class based on Window 4 x 4 checkerboard of square buttons. When pressed a button persorms a simple action: prints own coordinates, changes c...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter13Exercise3.cpp
/* TITLE Arrow Chapter13Exercise3.cpp "<NAME>up "Programming Principles and Practices Using C++"" COMMENT Objective: Define a class Arrow which draws a line with an arrow head. Output: Author: 15.09.2015 Date: <NAME> */ #include "GUI.h" #include "Simple_window.h" #incl...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20Exercise5.cpp
<gh_stars>1-10 /* TITLE >>operator for vector Chapter20Exercise5.cpp "<NAME>ustrup "C++ Programming: Principles and Practice."" COMMENT Objective: Define <<operator and >>operator for vector. Input: - Output: - Author: <NAME> Date: 19. 02. 2017 */ #include <iostream> #include <vector> #...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18Exercise11v2Def.cpp
<gh_stars>1-10 /* TITLE Skip List Chapter18Exercise11v2Def.cpp "<NAME>ustrup "C++ Programming: Principles and Practice."" COMMENT Objcective: Research and implement the data structure: Skip List. Input: - Output: - Author: <NAME> Date: 27.12.2015 */ //-----------...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Exercise9.cpp
<gh_stars>1-10 /* TITLE Merge two files with sorted words Chapter10Exercise9.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Write a program that takes two files containing sorted whitspace-separated words and merges them, preserving order. I...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise4.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise4.cpp<gh_stars>1-10 /* TITLE Copy C-string to free store Chapter17Exercise4.cpp "Bjarne Stroustrup "C++ Programming: Principles and Practice."" COMMENT Objcective: Write a function char* strdup(char*)...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20TryThis4.cpp
<gh_stars>1-10 /* TITLE Correct the error Chapter20TryThis4.cpp "<NAME>up "C++ Programming: Principles and Practice."" COMMENT Objective: Find and remove the error in the code. Input: - Output: - Author: <NAME> Date: 17. 02. 2017 */ #include <iostream> #include <vector> double* get_f...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter6Exercise7.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter6Exercise7.cpp<gh_stars>1-10 /* TITLE Grammar for logical expressions Chapter6Exercise7.cpp <NAME> "Programming: Principles and Practice Using C++" COMMENT Objective: Write a grammar for logical expressions. ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter13Exercise15.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter13Exercise15.cpp<gh_stars>1-10 /* TITLE Right triangle Tile Chapter13Exercise15.cpp "<NAME>up "Programming Principles and Practices Using C++"" COMMENT Objective: Tile a window with right triangles. Input: - ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter7exercise4.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter7exercise4.cpp /* TITLE Define Symbol Table Chapter7Exercises4.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Define a class Symbol_table to hold and manipulate ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter12Exercise10.cpp
/* TITLE Draw a diagram Chapter12Exercise10.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Draw the FLTK and helper GUI headers and source files hierarchical diagram, from Chapter 12.8. Input: - Output: Graph on screen. ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter9Drill2.cpp
<gh_stars>1-10 /* TITLE Test Class Date Chapter9Drill2.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Test all the versions of the Date class. Instantiate an object, called "today" and initialize it (to 25 June 1978.) Intstantiate a second ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20TryThis5.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20TryThis5.cpp /* TITLE Vector: push_front() Chapter20TryThis5.cpp "<NAME>ustrup "C++ Programming: Principles and Practice."" COMMENT Objective: Implement push_front() for vector and compare it to pu...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise1.cpp
<gh_stars>1-10 /* TITLE Pointer value Chapter17Exercise1.cpp "Bjarne Stroustrup "C++ Programming: Principles and Practice."" COMMENT Objcective: What is the output format of a pionter value. Input: - Output: - Author: <NAME> Date: 02.12.2015 */ #include <iostream> // static int arr[...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20Exercise18Def.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<gh_stars>1-10 /* TITLE Range-checked iterator Chapter20Exercise18Def.cpp "<NAME>ustrup "C++ Programming: Principles and Practice."" COMMENT Objective: Define a range-checked iterator for Vector. Input: - Output: - ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Exercise11.cpp
/* TITLE Prime numbers Chapter4Exercise11.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Find prime numbers from 1 to 100. Input: - Output: 2 3 5 7 11 13 ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Exercise14.cpp
/* TITLE Sieve of Eratosthenes Chapter4Exercise14.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Find prime numbers from 1 to max using the Sieve of Eratosthenes algorithm, based on the exclusion of all composite numbers composed ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter23Exercise4.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter23Exercise4.cpp<gh_stars>1-10 /* TITLE Mail_file on real emails Chapter23Exercise4.cpp COMMENT Objective: Apply the previous program on real list of emails and extract the lines containing the subject. ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter16Exercise1.cpp
/* TITLE My window Chapter16Exercise1.cpp "<NAME> "Programming Principles and Practices Using C++"" COMMENT Objective: Define class based on Window with two buttons: quit, next. Input: - Output: - Author: 18.10.2015 Date: <NAME> */ #include <iostream> #include "GUI.h" #include "Grap...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Drill.cpp
<gh_stars>1-10 /* TITLE I/O parsing Chapter4Drill.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Test each step. Input: - Output: - Author: <NAME>, Kirov Date: 01. 04. 2015 */ #include "../std_lib_facili...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter7Exercise12.cpp
/* TITLE Implement reassignment Chapter7Exercise12.cpp "Software - Principles and Practice using C++" by <NAME>" COMMENT Objective: Implement reassignment for the used defined variables. Already provided in all of the previous exercises. Advantages of reassignment: - the...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter11Exercise6.cpp
/* TITLE Text edit and character replacement Chapter11Exercise6.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Accepts text and replaces punctuation with whitespce, keeping hyphens within words untouched, replaces apostrophes in words: can't and ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Drill7.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Drill7.cpp /* TITLE Complex numbers Chapter24Drill7.cpp COMMENT Objective: Read ten complex<double>s from std::cin and put them into a Matrix. Calculate and output the sum of the ten comp...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18Exercise5.cpp
<gh_stars>1-10 /* TITLE Concatenate strings Chapter18Exercise5.cpp "<NAME>roustrup "C++ Programming: Principles and Practice."" COMMENT Objcective: Write a function, cat_dot(), that concatenated two strings with a dot in between. Input: - Output: - Author: <NAME> Date: 25.12.2015 */ ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise16.cpp
/* TITLE Controller Chapter14Exercise16.cpp "<NAME> "Programming Principles and Practices Using C++"" COMMENT Objective: Define class Controller with four virtual functions on(), off(), set_level(int) and show(). Dervive at least two classes from Controller. One should be a simple t...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter12Exercise4.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- /* TITLE Checkers Board Chapter12Exercise4.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Draw a checkers board 8-by-8 alternating white and red. Input: - Out...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18Exercise12.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- /* TITLE "Hunt the Lumpus" Chapter18Exercise12.cpp "Bjarne Stroustrup "C++ Programming: Principles and Practice."" COMMENT Objcective: Implement the game: "Hunt the Lumpus". Command format: move: s ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter11Exercise8.cpp
/* TITLE Binary files Chapter11Exercise8.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: It reads and writed to binary files. Input: Output: Date: 24.08.2015 Author: <NAME> */ #include <iostream> #include <fstream> #include <string> #inclu...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter21TryThis5.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter21TryThis5.cpp /* TITLE Unordered map Chapter21TryThis5.cpp "Bjarne Stroustrup "C++ Programming: Principles and Practice."" COMMENT Objective: Write a small program using #include <unordered_map>. I...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter26Exercise12.cpp
/* TITLE Random floating point numbers sorting Chapter26Exercise12.cpp COMMENT Objective: Write a program that generates random floating-point numbers and sorts them using std::sort. Measure the time used to sort 500,000 doubles and 5,000,000 doubles. Input: - Output: Size: 500.000 T...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter25Exercise11.cpp
/* TITLE Bitset manipulation Chapter25Exercise11.cpp COMMENT Objective: Redo previous exercise using bitset. Bitset, Y U no iterators? Output: - Author: <NAME> Date: 15.05.2017 */ #include <iostream> #include <bitset> template<size_t N> void set_bits_in_range(size_t s, size_t e, std::bits...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20Exercise14.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- /* TITLE Singly Linked List Chapter20Exercise14.cpp "<NAME> "C++ Programming: Principles and Practice."" COMMENT Objective: Define a singly-linked list, `slist`, in the style of `std::list`. Which operations from...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter19TryThis1.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- /* TITLE Possible problems Chapter19TryThis1.cpp "Bjarne Stroustrup "C++ Programming: Principles and Practice."" COMMENT Objcective: - Bad allocation. - Out of range error. Input: - Output: - Author: <NAME> ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter23TryThis1.cpp
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<gh_stars>1-10 /* TITLE Better Error Handling Chapter23TryThis1.cpp COMMENT Objective: What would be a better error handling? Modify Mail_file's constructor to handle likely formatting errors related to the use o...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17TryThis2.cpp
/* TITLE Try This 2 Chapter17TryThis2.cpp "Bjarne Stroustrup "C++ Programming: Principles and Practice."" COMMENT Objcective: Analyze the behavior of class constructors and destructors. Input: - Output: - Author: <NAME> Date: 26.11.2015 */ #include <iostream> #include <string> c...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter15Drill2.cpp
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter15Drill2.cpp /* TITLE Drill 2 Chapter15Drill1.cpp "<NAME> "Programming Principles and Practices Using C++"" COMMENT Objective: 1. Define a strcuct Person with string name and int age members. 2. Define ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Exercise11.cpp
/* TITLE Sum integers from file Chapter10Exercise11.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: This program reads file containing text and numbers and sum only the numbers. Input: - Output: - Author: <NAME> Date: 07.05.2015 */ ...
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter19Exercise8.cpp
<gh_stars>1-10 /* TITLE Allocator Chapter19Exercise8.cpp "<NAME> "C++ Programming: Principles and Practice."" COMMENT Objcective: Implement an allocator (19.3.6) using malloc() and free() (B.10.4). Get vector as defined by the end of 19.4 to work for few simple cases. Input: - Output: - ...