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++PartIV/bjarneStroustrupC++PartIV/Chapter26Exercise10.cpp | /*
TITLE Test Graph_lib from Text I/O Chapter26Exercise10.cpp
COMMENT
Objective: Use the text-based interface from Exercise 9 to write
a better test for the graphical interface library.
Input: -
Output: -
Author: <NAME>
Date: 07.06.2017
*/
#include <iostream>
#include <fstream>
#incl... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter5Exercise5.cpp | /*
TITLE Temperature units convertion Chapter5Exercise5.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Add a function that converts from Kelvin to Celsius.
Input: Prompt message.
Output: Conversion result.
Author: <NAME>
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter21Exercise13.cpp | /*
TITLE Clean up text file Chapter21Exercise13.cpp
"<NAME>up "C++ Programming: Principles and Practice.""
COMMENT
Objective: "clean up" a text file for use in a word query program;
that is, replace punctuation with whitespace,
put words into lower case,
replace "don't" with "do not" (etc.... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter19Exercise10.cpp | /*
TITLE Auto_ptr Chapter19Exercise10.cpp
"<NAME>up "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Implement a simple auto_ptr supporting:
constructor, destructor, ->, *, and release();
Input: -
Output: -
Author: <NAME>
Date: 24.1.2016
*/
#include <iostream... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18Exercise4Def.cpp | /*
TITLE Compare strings Chapter18Exercise4Def.cpp
"<NAME> "C++ Programming: Principles and Practice.""
COMMENT
Objcective:- Test the functions for non-zero
terminated strings.
- Modify the functions to handle
non-zero terminated strings.
The modification to handle non-zero ... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter19TryThis3.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE RAII & auto_ptr Chapter19TryThis3.cpp
"Bjarne Stroustrup "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Modify the function reserve() to use auto_ptr.
Can't access allocated memory - no... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise7.cpp | /*
TITLE String comparison Chapter3Exercise7.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Put in order three strings;
Next to each other if they are equal.
Useful terms: Hamming distance. ASCII char values.
Input: Req... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter13Exercise19.cpp | /*
TITLE Star Chapter13Exercise19.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Create class Star.
One parameter should be number of point.
Draw stars with differently colored line
and different filling colors.
Output: // No filli... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter11TryThis3.cpp | /*
TITLE Floating number manipultors Chapter11TryThis3.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: I / O data in:
fixed , scientific and general notation.
Input: 1234567.89
Ouput: 1.23457e+006 1234567.890000 1.234568e+006
Author: <NAME>... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/classesFundamentals/recursion_example.cpp | /*
TITLE Alphabet Permutations recursion_example.cpp
COMMENT
Objective: Implement alpabet string permutations (without repetiotion) using recursion
Input:
Output: All possible letter permutations of the English alphabet
Author: <NAME>
Date: 01.01.2015
*/
#include "../../std_lib... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Exercise8.cpp | <gh_stars>1-10
/*
TITLE Animate the Gaussian Elimination Chapter24Exercise8.cpp
COMMENT
Objective: Animate the Gaussian Elimination.
Input: -
Output: -
Author: <NAME>
Date: 07.05.2017
*/
#include <iostream>
#include <iomanip>
#include <sstream>
#include <vector>
#include <array>
#include <nu... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise14.cpp | /*
TITLE Binary tree Chapter14Exercise14.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Define Binary_Tree class derived from Shape.
Modify it to include a parameter indicating
whether the connection between two nodes is:
- arrow po... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/testingPrograms/roundUpto2digit.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
int roundUpto2digit(int cents){
// convert cents to string
string lenmeasurement = to_string(cents);
// measure its length, corresponding to digits
double len = lenmeasurement.length();
double base = 10;
double numberOfTruncateDigit... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter15Exercise1.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter15Exercise1.cpp
/*
TITLE Iterative factorial Chapter15Exercise1.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Implement an iterative factorial function.
Compare it t... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter11Exercise4.cpp | /*
TITLE Character Classification Chapter11Exercise4.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Accepts string input and classifies each of its characters.
Prints the number of occurences of each character.
Input: -
Output: -
Author: <NAME>
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter5TryThis7.cpp | <gh_stars>1-10
/*
TITLE Result Estimation Chapter5TryThis7.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Calculate an approximate value for the result.
Input: -
Output: -
Author: <NAME>
Date: 1.2.2015
*/
#include <iostre... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter25Exercise7.cpp | /*
TITLE Hex values in a range Chapter25Exercise7.cpp
COMMENT
Objective: Write out the hexadecimal values from 0 to 400;
and from -200 to 200.
Input: -
Output: -
Author: <NAME>
Date: 13.05.2017
*/
#include <iostream>
void print_hex(int from, int to)
{
for (int i = from; i < to;... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter16Exercise6.cpp | /*
TITLE Analog clock Chapter16Exercise6.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Make an "Analog Clock", that is, a clock with hands that move;
get the time from OS library; find functions that wait for short
period of time.
Input: -
O... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter13Exercise5.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<gh_stars>1-10
/*
TITLE Connection points with Circle and Ellipse Chapter13Exercise5.cpp
"<NAME>ustrup "Programming Principles and Practices Using C++""
COMMENT
Objective: (virtual funtions?) Define functions:
n(), s(),... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20TryThis2.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Find & remove errors Chapter20TryThis2.cpp
"<NAME> "C++ Programming: Principles and Practice.""
COMMENT
Objective: Find and remove errors in the improved code
from Try This 1. (Makred with: !)
Input: -
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter13Exercise4.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Connection points in rectangle Chapter13Exercise4.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Define functions:
n(), s(), e(), w(), center(),
ne(), se(), sw() and... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter5Exercise7.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Solution to the quadratic equation Chapter5Exercise7.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Object: Find the roots of a quadratic equation
and throw exception if over complex nu... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter2Exercise5.cpp | /*
TITLE Terms Chapter2Exercise5.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Define the terms from the chapter.
Input: -
Output: -
Author: <NAME>
Date: 10.04.2014
*/
#include "../../std_lib_facilities.h"
/*
Term: ... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter26Exercise14.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter26Exercise14.cpp
/*
TITLE Random length string sorting Chapter26Exercise14.cpp
COMMENT
Objective: Write a program that generates random length [0,100) strings
and store them in std::map (or std::set?) ... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter15Exercise9.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Read a data file, scale and plot Chapter15Exercise9.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Read a data file containig heights in inches, scale it
and represent it g... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter27Exercise8.cpp | <gh_stars>1-10
/*
TITLE Machine Lexicographical Order Chapter27Exercise8.cpp
COMMENT
Objective: What is the lexicographical order on your machine?
Write out every character on your keyboard together with its
integer value;
then, write the characters out in the order determine... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Exercise12.cpp | /*
TITLE Prime numbers Chapter4Exercise12.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Find prime numbers from 1 to max.
Input: Prompts the user to type value for max.
Output: All the primes from 1 to max.
Author: <NAME>
Date... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter23Exercise12.cpp | /*
TITLE Find & replace dates in file Chapter23Exercise12.cpp
COMMENT
Objective: Write a program, based on the program thai finds lines containing dates,
that finds all dates and reformats them to the ISO yyyy/mm/dd format.
The program should take an input file and produce an output file... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/classesFundamentals/classTemplates.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/classesFundamentals/classTemplates.cpp
/*
TITLE Class templates classTemplates.cpp
COMMENT
Objective: Define a class,
class members using template type parameters.
Input: -
Output: Prin... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise13Def.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Linked list Chapter17Exercise13.cpp
"<NAME>up "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Modify Link to include struct God,
containing members of type string:
name, mytholo... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter8Exercise14.cpp | <gh_stars>1-10
/*
TITLE Find statisics Chapter8Exercise14.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Write a function that returns
all the lengths, min and max length,
and the lexicographically first and last
of str... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise11.cpp | /*
TITLE Linked list Chapter17Exercise11.cpp
"Bjarne Stroustrup "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Complete and run the example from 17.10.1.
Input: -
Output: -
Author: <NAME>
Date: 07.12.2015
*/
#include <iostream>
#include <string>
#include "Chapte... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter11Exercise5.cpp | /*
TITLE Replace puntucation with whitespace Chapter11Exercise5.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Accepts text and replaces punctuation with whitespce.
Input: -
Output: -
Date: 02.07.2015
Author: <NAME>
*/
#include <iostream>
#include... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter5TryThis4.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter5TryThis4.cpp
/*
TITLE Exception Chapter5TryThis4.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Demonstrate uncaught exception throw.
Input: -
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter13Exercise6.cpp | /*
TITLE Draw a class diagram Chapter13Exercise6.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Draw a class diagram.
Define a Box class that is
a rectangle with a Text label.
Output:
Author: 17.09.2015
Date: <NAME>
*/
#include "GUI.h... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter13Exercise13.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE RGB matrix Chapter13Exercise13.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Draw the color matrix from 13.10,
without the lines around each color
Input: -
Outpu... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter21Exercise9.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter21Exercise9.cpp<gh_stars>1-10
/*
TITLE class Purchase & Order Chapter21Exercise9.cpp
"Bjarne Stroustrup "C++ Programming: Principle... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18Exercise11v4.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Skip List Chapter18Exercise11v2.cpp
"<NAME> "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Research and implement the data structure:
Skip List.
References to the p... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20Exercise9.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20Exercise9.cpp<gh_stars>1-10
/*
TITLE Count words in Document Chapter20Exercise9.cpp
"<NAME> "C++ Programming: Principles and Practice.""
COMMENT
Objective: Define a function that counts the words in
Doc... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter21Exercise2.cpp | /*
TITLE STL algorithms Chapter21Exercise2.cpp
"Bjarne Stroustrup "C++ Programming: Principles and Practice.""
COMMENT
Objective: Find a reliable STL documentation and
list every standard library algorithm.
Input: -
Output: -
Author: <NAME>
Date: 27. 02. 2017
*/
/*
Functions
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter7Exercise3.cpp | /*
TITLE Constant variables Chapter7Exercise3.cpp
<NAME>up "Programming: Principles and Practice Using C++"
COMMENT
Objective: Provide constant variables declarations/ definitions
using specific identifier; they can't be reassigned.
Define a constant variable by using the following sy... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise8.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise8.cpp
/*
TITLE Parity check Chapter3Exercise8.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Determine the parity of an integer.
Useful ter... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter27TryThis1.cpp | /*
TITLE C-style string concatenation Chapter27TryThis1.cpp
COMMENT
Objective: Test cat(). Why 2? We left a beginner's performance error in cat();
find it and remove it. We "forgot" to comment our code.
Add comments suitable for someone who can be assumed to know the
standard C-strin... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4TryThis.cpp | /*
TITLE Selection Blocks Chapter4TryThis.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Implement a currency converter using
if - else (if) block.
Input: -
Output: -
Author: <NAME>, Kirov
Date: 01.04.2... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter7exercise2.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter7exercise2.cpp<gh_stars>1-10
/*
TITLE Add variable reassignment Chapter7Exercise2.cpp
Bjarne Stroustrup "Programming: Principles and Prac... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter7Exercise7.cpp | /*
TITLE Change keywords of help & quit Chapter7Exercise7.cpp
"Software - Principles and Practice using C++" by <NAME>"
COMMENT
Objective: Call function help using the keyword: H.
Quit using: Q.
Input: -
Output: -
Author: <NAME>
Date: 28.02.2015
*/
#include <iostream>
#i... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Drill.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Drill.cpp<gh_stars>1-10
/*
TITLE Class inheritane/overrloading Chapter14Drill.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: 1. Define class B1 with virtual function vf() and
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter5Exercise11.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter5Exercise11.cpp
/*
TITLE Fibonacci numbers Chapter5Exercise11.cpp
<NAME>ustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Compute the first N Fibonacci numbers.
Input: N (the nu... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise1.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise1.cpp
/*
TITLE Class Smiley and Frowny Chapter14Exercise1.cpp
"<NAME>up "Programming Principles and Practices Using C++""
COMMENT
Objective: Derive class Smiley and Frowny from class Circle.
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter25Exercise17.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Array_ref Chapter25Exercise17.cpp
COMMENT
Objective: Proof that Array_ref handles inheritance correctly by trying
to get a Rectangle* into std::vector<Circle*> using
Array_ref<Shape*>, without u... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter11Exercise7.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Create a dictionary Chapter11Exercise7.cpp
<NAME>ustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Create a dictionary from a multipage text.
Code from Chapter 11.7 used instead of the... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise8.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise8.cpp
/*
TITLE Regular Octagon Chapter14Exercise8.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Define a class Regular Octagon
and write a test f... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter11TryThis4.cpp | /*
TITLE Fields Chapter11TryThis4.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Implement a data table using fields to determine cell width / spacing.
Input: -
Ouput: -
Author: <NAME>
Data: 20.05.2015
*/
#include <iostream>
#include <ioman... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter8Exercise9.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter8Exercise9.cpp
/*
TITLE Generate random number Chapter8exercise9.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++
COMMENT
Objective: Write a finction that generates random numbers
wi... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter19Exercise14.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter19Exercise14.cpp
/*
TITLE GUI to "Hunt the wumpus" Chapter19Exercise14.cpp
"Bjarne Stroustrup "C++ Programming: Principles and Practice.""
COMMENT
Objective: Provide a simple GUI interface output to the
"Hunt t... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter5Exercise6.cpp | /*
TITLE Temperature conversion Chapter5Exercise6.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Convert temperature Celsius to Fahrenheit
and vice versa.
Input: Select conversion,
enter the selected units of measurement.
O... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18Exercise6.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18Exercise6.cpp
/*
TITLE Compare strings Chapter18Exercise6.cpp
"<NAME>ustrup "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Modify cat_dot() function to concatenate two strings
addi... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20Drill.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20Drill.cpp<gh_stars>1-10
/*
TITLE Containers comparison Chapter20Drill.cpp
"<NAME>ustrup "C++ Programming: Principles and Practice.""
COMMENT
Objective: 1. Define an arrray of integers to:
{ 0, ... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter8Drillmy.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter8Drillmy.cpp
/*
TITLE File managemenent Chapter8Drillmy.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMME... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter5Exercise3.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Parameter check Chapter5Exercise3.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Check whether the input parameter's value
is reasonable and ... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18Drill1.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18Drill1.cpp<gh_stars>1-10
/*
TITLE Arrays Chapter18TryDriil1.cpp
"Bjarne Stroustrup "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Drill 1 : arrays part.
Input: -
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Exercise1.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Do Try This Chapter4Exercise1.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Redo Try This. Included for completeness.
Input:
Output:
Author: <... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter27TryThis2.cpp | <gh_stars>1-10
/*
TITLE strcpy() implementation Chapter27TryThis2.cpp
COMMENT
Objective: Is this implementation of strcpy() correct? Explain why.
Not correct: returns the end of the dest string.
Input: -
Output: -
Author: <NAME>
Date: 09.06.2017
*/
#include <stdio.h>
#include <std... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise3.cpp | /*
TITLE Abstract class instantiation Chapter14Exercise3.cpp
"<NAME>up "Programming Principles and Practices Using C++""
COMMENT
Objective: Define an abstract class and try to instantiate it.
Input: -
Output: -
Author: 27.09.2015
Date: <NAME>
*/
#include "Graph.h"
#include "Simple_wind... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Exercise21.cpp | /*
TITLE Find Names & Score Chapter4Exercise21.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Store and find unique names and scores.
Input: Name followed by its score.
(Input termination: "No more")
search score
Ou... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18Exercise4.cpp | <gh_stars>1-10
/*
TITLE Compare strings Chapter18Exercise4.cpp
"Bjarne Stroustrup "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Test the functions for non-zero terminated strings.
Modify the functions to handle non-zero terminated strings.
Input: -
Output: -
Author: <N... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/testingPrograms/letter_number.cpp | /*
TITLE Type char manipulation unit_length_exch.cpp
COMMENT
Objective: To manipulate characters using
algebraic operations and integers.
Input: -
Output: It prints two arrays:
char and int, associated with each other.
Author: <NAME>
Date: 01.01.2015
*/... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Backup Files/bjarneStroustrupCFLTK/Original-Sep-18-2015-0950AM.Chapter13Exercise6.cpp | <filename>Visual Studio 2010/Backup Files/bjarneStroustrupCFLTK/Original-Sep-18-2015-0950AM.Chapter13Exercise6.cpp
/*
TITLE Draw a class diagram Chapter13Exercise6.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Draw a class diagram.
Define a Box class that is... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter13Exercise18Version2.cpp | <gh_stars>1-10
/*
TITLE Regular Polygon Chapter13Exercise18Version2.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Create a class RegularPolygon that
instantiates an objects using as
paremeters: the points of the
corners of the polygon.
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter13Exercise18Version2Def.cpp | /*
TITLE Regular Polygon Chapter13Exercise18Version2Def.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Create a class RegularPolygon that
instantiates an objects using as
paremeters: the points of the
corners of the polygon.
Output:
Aut... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Exercise7.cpp | /*
TITLE Roman numerals Chapter10Exercise7.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Include calculations with Roman numerals.
Input: -
Output: -
Author: <NAME>
Data: 15.02.2015
*/
/*
Calculator Grammar:
Calculation:
Pri... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/testingPrograms/staticMembers.cpp | /*
TITLE Number of instantiated objects staticMembers.cpp
COMMENT
Objective: Implement object counter using static members.
Input: -
Output: Print the number of instantiated objects.
Author: <NAME>
Date: 01.10.2014
*/
#include "stdafx.h"
using namespace std;
// class definiti... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter6Exercise4.cpp | /*
TITLE Names & Score Chapter6Exercise4.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Store unique names and scores.
Redo Exercise 19 from Chapter 4
using a single vector if type
Name_value.
Input: Name followe... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter5TryThis2.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<gh_stars>1-10
/*
TITLE Type errors Chapter5TryThis2.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Observe the response from the type errors.
Input: -
Out... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter23Exercise6.cpp | /*
TITLE Find dates in file Chapter23Exercise6.cpp
COMMENT
Objective: Write a program that finds dates in a file and displays
the line containing the date and its number.
Start with regular expression for simple formats like:
12/24/2017. Add more formats later.
Input: -
Outpu... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter23Exercise5.cpp | <gh_stars>1-10
/*
TITLE Multimap vs unordered_multimap Chapter23Exercise5.cpp
COMMENT
Objective: Time multimap vs unordered_multimap.
Input: -
Output: sample size & time written in file
There are 2 gnuplot scripts ploting the data.
Author: <NAME>
Date: 27.04.2017
*/
#include <... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Exercise15.cpp | /*
TITLE First n primes Chapter4Exercise15.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Find first n prime numbers.
Input: Type number of primes to be found.
Output: Prints first n primes.
Author: <NAME>
Date: 5.1 . 2015
*/... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise13.cpp | /*
TITLE Linked list Chapter17Exercise13.cpp
"<NAME>up "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Modify Link to include struct God,
containing members of type string:
name, mythology, vehicle, weapon.
Write: print_all(), add_ordered() functions.
Inpu... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter13Exercise2.cpp | /*
TITLE Rounded box Chapter13Exercise2.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Define a class Box which draws four lines and four arcs.
Draw a rounded box.
Superellipse could be used as well!
Input: -
Output:
Author: 10.09.2015
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14TryThis.cpp | /*
TITLE Class inheritane/overriding Chapter14TryThis.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Define three classes and
overload virtual function
of a base class in a derived
class and analyse its behavior
when invoked.
Inpu... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter8Drill2.cpp | <gh_stars>1-10
/*
TITLE Swap functions Chapter8Drill2.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Parameter passing and paramater type.
Input: -
Output: -
Author: <NAME>
Data: 01.03.2015
*/
#include <iostream>
void swap_v(... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter11Exercise3.cpp | /*
TITLE I/O integers in different bases Chapter11Exercise3.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Reads input using decimal, octal or hexadecimal preffixes,
prints them in their original form and in decimal in a table.
Input: -
Output: -
A... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Exercise3.cpp | /*
TITLE Read file & calculate statistics Chapter10Exercise3.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Write a function that reads a file containing
data in the format (hour, temp) and calculates
mean and median temperatures.
Input: -
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter5TryThis9.cpp | /*
TITLE Pre & Post Conditions Chapter5TryThis9.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Find values that doesn't hold for both
conditions.
Input: -
Output: -
Author: <NAME>
Date: 1.2.2015
*/
#include <iostr... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise7.cpp | /*
TITLE Stripped_Closed_Polyline Chapter14Exercise7.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Define a class where the closed polyline is
"filled" by drawing varying-pixel-wide-spaced
horizontal lines across the inside
area. (Consider li... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Exercise2.cpp | /*
TITLE Function objects Chapter24Exercise2.cpp
COMMENT
Objective: Do exercise 1 again, but with function objects,
rather than functions.
Input: -
Output: -
Author: <NAME>
Date: 05.05.2017
*/
#include <iostream>
#include "Matrix.h"
#include "MatrixIO.h"
using namespace Numeric_l... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4TryThis5.cpp | /*
TITLE Function square() Chapter4TryThis5.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Implement square function using addition.
Input: -
Output: -
Author: <NAME>, Kirov
Date: 01. 04. 2015
*/
#include "../std... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise9.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise9.cpp
/*
TITLE Group container Chapter14Exercise9.cpp
"<NAME> "Programming Principles and Practices Using C++""
CO... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter16Exercise9CalcDef.cpp | /*
TITLE Redirecting Calculator I/O Chapter16Exercise9CalcDef.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: -
Input: -
Output: -
Author: <NAME>
Data:
*/
/*
Calculator Grammar:
Calculation:
Redirect Input
Redirect Output
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter27Exercise11.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE C features not found in C++ Chapter27Exercise11.cpp
COMMENT
Objective: Make a list of C language features not adopted by C++.
Input: -
Output: -
Author: <NAME>
Date: 16.06.2017
*/
/*
C features... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter26Exercise2.cpp | /*
TITLE Generalise binary_search and its tests Chapter26Exercise2.cpp
COMMENT
Objective: Modify the testing of binary_search to deal with arbitrary element types.
Then, test it with string sequences and floating-point sequences.
Input: -
Output: -
Author: <NAME>
Date: 31.05.2017
*/... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/classesFundamentals/constantMemberObjects.cpp | /*
TITLE Properties of constant objects constantMemberObjects.cpp
COMMENT
Objective: Initialize a constant class object
and show that its members are immutable.
(Read-only property).
Input: -
Output: It prints value of constant object
Author: <NAME>
Date: 1.10.... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18Exercise3.cpp | /*
TITLE Compare strings Chapter18Exercise3.cpp
"<NAME> "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Write a function that compares C-style string
and returns negative value if first argument
lexicographically before the second, positive
value otherwise and 0 of they... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter11Exercise7Def.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Create a dictionary Chapter11Exercise7Def.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Create a dictionary from a multipage text.
Code from Chapter 11.7 used ... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Drill2.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Drill2.cpp
/*
TITLE Sizeof Matrix Chapter24Drill2.cpp
COMMENT
Objective: Print out the size as reported by sizeof of
Matrix<int> a(10), Matrix<int> b(10),
Matrix<double> c(10), Matrix<int... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise3.cpp | /*
TITLE To lower C-string Chapter17Exercise3.cpp
"<NAME>ustrup "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Write a function void to_lower(char *s).
That converts C-style string to lower case.
Input: -
Output: -
Author: <NAME>
Date: 02.12.2015
*/
#in... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/classesFundamentals/classPointers.cpp | /* TITLE Class pointers classPointers.cpp
COMMENT
Objective: Introduce class pointers and expressions.
Input: -
Output: Prints area of a class.
Author: <NAME>
Date: 1.10.2015
*/
#include "stdafx.h"
using namespace std;
// class definition
class Rectangle{
int wid... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise5.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise5.cpp
/*
TITLE Algebraic operations Chapter3Exercise5.cpp
<NAME> "Programming: Principles and Practice Using C++"
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter25Exercise3.cpp | /*
TITLE Integer bit patterns Chapter25Exercise3.cpp
COMMENT
Objective: Initialize a 32-bit signed integer with the bit
pattern and print the result:
- a. all zeroes.
- b. all ones.
- c. altenating 1's and 0's, with LSB: 1.
- d. altenating 1's and 0's, with LSB: 0.
- ... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter8Exercise2.cpp | /*
TITLE Print vector content Chapter8Exercise2.cpp
<NAME>ustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Create a print function that prints the content of
vector of ints to cout.
Input: -
Output: Contents of the vector.
Author: <NAME>
Data: 0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.