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++PartIII/bjarneStroustrupC++PartIII/Chapter21Exercise11.cpp | /*
TITLE GUI Order & files Chapter21Exercise11.cpp
"Bjarne Stroustrup "C++ Programming: Principles and Practice.""
COMMENT
Objective: Provide a GUI interface for entering Orders into files.
Input: -
Output: -
Author: <NAME>
Date: 28. 02. 2017
*/
#include <iostream>
#include <fstream... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter5Exercise8.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Sum of integers Chapter5Exercise8.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Input a set of numbers and sum the first n of them.
Error handling performed im... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20Exercise19Def.cpp | /*
TITLE Iterator for List Chapter20Exercise19Def.cpp
"<NAME> "C++ Programming: Principles and Practice.""
COMMENT
Objective: Define a range-checked iterator for list
(a bidirectional iterator).
Input: -
Output: -
Author: <NAME>
Date: 24. 02. 2017
*/
//-----------------------... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter27Exercise7.cpp | /*
TITLE Intrusive vs non-intrusive Chapter27Exercise7.cpp
COMMENT
Objective: What are the advantages and disadvantages of intrusive
containers compared to C++ standard (non-intrusive)
containers? Make lists of pros and cons.
Input: -
Output: -
Author: <NAME>
Date: 13.... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter8Exercise15.cpp | /*
TITLE Constant arguments Chapter8Exercise15.cpp
<NAME> "Programming: Principles and Practice Using C++"
COMMENT
Objective: Write a finction that has as argument const int.
Why declaring a parameter passed by value as
constant?
To signify to the caller that the parameter
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter11Exercise10.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE String separation Chapter11Exercise10.cpp
<NAME>ustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Create a function that returns
vector of whitespace separated substrings
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/classesFundamentals/operatorOverload.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/classesFundamentals/operatorOverload.cpp<gh_stars>1-10
/*
TITLE Operator Overloading in classes operatorOverload.cpp
COMMENT
Objective: Add two (algebraic)vectors using classes and operator overload.
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Drill.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Drill.cpp
/*
TITLE Implement Class Point Chapter10Drill.h
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: 1. Write a class Point representing a point in 2D plane.
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter26Drill4.cpp | /*
TITLE Test Binary_search with strings Chapter26Drill4.cpp
COMMENT
Objective: Repeat the tests with sequence of strings
such as: { Bohr , Darwin , Einstein , Lavoisier , Newton , Turing }
Input: -
Output: -
Author: <NAME>
Date: 31.05.2017
*/
#include <iostream>
#include <fstream>... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise11.cpp | /*
TITLE Calculate a sum Chapter3Exercise_11.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Convert the currencies to a single unit and
accumulate their total sum.
Input: Requests coins as number of pennies,
nickels,... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter27Exercise5.cpp | /*
TITLE Intrusive Doubly Linked List in C++ vs C Chapter27Exercise5.cpp
COMMENT
Objective: Compare the results of Exercises 3 and 4.
Input: -
Output: -
Author: <NAME>
Date: 13.06.2017
*/
#include <iostream>
/*
C++ Implementation:
- all functions encapsulated: less parameters, conte... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20Exercise19.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20Exercise19.cpp
/*
TITLE Iterator for List Chapter20Exercise19.cpp
"<NAME> "C++ Programming: Principles and Practice.""
COMMENT
Objective: Define a range-checked iterator for list
(a bidirectional it... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Drill8.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Drill8.cpp
/*
TITLE 2D Matrix IO Chapter24Drill8.cpp
COMMENT
Objective: Read six ints into a Matrix<int, 2> m(2, 3)
and print them out.
Input: -
Output: -
Author: <NAME>
Date: 0... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Exercise6.cpp | /*
TITLE Word-number conversion Chapter4Exercise6.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: To establish a connection between an input number
and its name.
Input: Requests a number either as digit or spelled out
and converts it to cor... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Exercise7.cpp | /*
TITLE Code Refactoring - Generalize Type Chapter24Exercise7.cpp
COMMENT
Objective: Rewrite the Gaussian elimination program without using the Matrix library;
that is, use built-in arrays or vectors instead of Matrixes.
Input: -
Output: -
Author: <NAME>
Date: 07.05.2017
*/
#incl... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise11Def.cpp | /*
TITLE Linked list Chapter17Exercise11.cpp
"<NAME>ustrup "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Complete and run the example from 17.10.1.
Input: -
Output: -
Author: <NAME>
Date: 07.12.2015
*/
/*
Member function: insert()
It inserts new link obj... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Exercise13.cpp | /*
TITLE Sieve of Eratosthenes Chapter4Exercise13.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Find prime numbers from 1 to 100 using
the Sieve of Eratosthenes algorithm,
based on the exclusion of all composite numbers
composed o... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Exercise4.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Guess the number Chapter4Exercise4.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Finds a random number within [1,100],
with 7 quesses the most.
Input... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter21Exercise4.cpp | /*
TITLE Implement count_if() Chapter21Exercise4.cpp
"Bjarne Stroustrup "C++ Programming: Principles and Practice.""
COMMENT
Objective:
Input: -
Output: -
Author: <NAME>
Date: 27. 02. 2017
*/
#include <iostream>
#include <vector>
template <class Iterator, class Predicate>
size_t count_i... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3TryThis2.cpp | /*
TITLE I/O & variables Chapter3TryThis2.cpp
<NAME>up "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.
Ou... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20TryThis8.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<gh_stars>1-10
/*
TITLE Containers comparison Chapter20TryThis8.cpp
"<NAME>roustrup "C++ Programming: Principles and Practice.""
COMMENT
Objective: Redo the previous Try This using containers of
type int, initialized t... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter6TryThis1.cpp | <gh_stars>1-10
/*
TITLE Calculator Chapter6TryThis1.cpp
<NAME> "Programming: Principles and Practice Using C++"
COMMENT
Objective: Make a first attempt to sketch an outline of a
calculator that evaluates compound
expressions, considering operator precedence.
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter8Exercise11.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter8Exercise11.cpp
/*
TITLE Max element Chapter8Exercise11.cpp
Bjarne Stroustrup "Programming: Principles and Practice Usi... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Exercise3.cpp | /*
TITLE Binding arguments with Function objects Chapter24Exercise3.cpp
COMMENT
Objective: Write an apply(f,a) that can takes a void f(T&), a T f(const T&), and
their function object equivalents. Hint: Boost::bind.
I'm clearly not getting something right.
Input: -
Output: -
Author... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter13Exercise19Def.cpp | /*
TITLE Star Chapter13Exercise19Def.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 Lines
and different filling colors.
Output:
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter16Exercise6Def.cpp | /*
TITLE Analog clock Chapter16Exercise6Def.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: -
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter9Exercise4.cpp | /*
TITLE Code Indentation Chapter9Exercise4.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Indent the code.
Input:
Output:
Author: <NAME>
Date: 16.03.2015
*/
#include <iostream>
struct X
{
void f(int x)
{
struct Y
{
int f(){... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Exercise1.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Exercise1.cpp
/*
TITLE Read numbers from file and sum Chapter10Exercise1.cpp
Bjarne Stroustrup "Programming: Principles and Pra... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/classesFundamentals/overloadedConstnes.cpp | <gh_stars>1-10
/*
TITLE Constant and non-constant member functions overloadedConstnes.cpp
COMMENT
Objective: Call the overloaded function from const and non-const objects.
Input: -
Output: It calls a function according the callee.
Author: <NAME>
Date: 10.10.2014
*/
#include "s... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Exercise12.cpp | <gh_stars>1-10
/*
TITLE Word in a file Chapter10Exercise12.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: It prints the line containing a specific word in a file.
Input: -
Output: -
Author: <NAME>
Date: 07.05.2015
*/
#include <iostr... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/Chapter21Exercise11/Chapter21Exercise11/Chapter21Exercise14.cpp | <filename>Visual Studio 2010/Projects/Chapter21Exercise11/Chapter21Exercise11/Chapter21Exercise14.cpp
/*
TITLE Text statistics Chapter21Exercise14.cpp
"<NAME> "C++ Programming: Principles and Practice.""
COMMENT
Objective: Write a program (using the output from the previous exercise) to answer
questi... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter2Exercise3.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter2Exercise3.cpp<gh_stars>1-10
/*
TITLE Directing the computer Chapter2Exercise3.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Pseudo code;
I... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/testingPrograms/unit_length_exch.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Unit length conversion unit_length_exch.cpp
COMMENT
Objective: To convert different length units to SI.
(Implemented using: swith(constance expression)
{ case'variable' break;} , statements)
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20TryThis6.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20TryThis6.cpp
/*
TITLE Bidirectional Advance Chapter20TryThis6.cpp
"<NAME>roustrup "C++ Programming: Principles and Practice.""
COMMENT
Objective: Modify the function advance() to accept negative
a... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Exercise16.cpp | /*
TITLE Mode Chapter4Exercise16.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Object: Find the mode of a set of positive numbers.
Input: -
Output: Prints the most occuring value(s).
Author: <NAME>
Data: 01.04.2015
*/
#include <iostream>
#... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter6Exercise10.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter6Exercise10.cpp<gh_stars>1-10
/*
TITLE Combination/ Permutaion Calculator Chapter6Exercise10.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Implement a permutation/calc... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter27TryThis3.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE From C to C++ Doubly Linked List Chapter27TryThis3.cpp
COMMENT
Objective: Rewrite the intrusive list example in C++, showing how to
make it shorter and easier to use without making the code
slower or the... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/testingPrograms/vect_bleep.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Reading data into vector object vect_bleep.cpp
COMMENT
Objective: Introduce vector objects and their member functions.
Input: Requests a string.
Output: Prints the input-word if it's not
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter7Exercise10.cpp | /*
TITLE Propose 3 & Implement 1 feature Chapter7Exercise10.cpp
"Software - Principles and Practice using C++" by <NAME>"
COMMENT
Objective: Propose three possible improvemenets and implement
one.
Proposals:
1. Include epxression in '{' '}'.
2. Include trigonometric funct... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter19Exercise2.cpp | <gh_stars>1-10
/*
TITLE Inner product Chapter19Exercise2.cpp
"<NAME>up "C++ Programming: Principles and Practice.""
COMMENT
Objcective: A function that calculates inner product
of vectors of any type.
Input: -
Output: -
Author: <NAME>
Date: 21.1.2016
*/
#include <iostream>
#i... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter12Exercise5.cpp | /*
TITLE Frame around rectangle Chapter12Exercise5.cpp
<NAME>ustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Draw a 1/4-inch frame around a rectangle
with size 3/4 the height of the screen
and 2/3 the width.
Input: -
Output: Graph on screen.
Author:... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise5.cpp | /*
TITLE Find char in C-string Chapter17Exercise5.cpp
"<NAME>up "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Write a function char* find(const char* s, const char* x),
that finds first occurence of the C-style string x in s.
Input: -
Output: -
Author: <NAME>
Date: 02... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Exercise3.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Exercise3.cpp<gh_stars>1-10
/*
TITLE City Distances Chapter4Exercise3.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Calculates total distance, min, max, mean d... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Exercise5.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<gh_stars>1-10
/*
TITLE Partial Pivot Gaussian Elimination Chapter24Exercise5.cpp
COMMENT
Objective: Try the Gaussian elimination program with
A={ {O 1} {1 O} } and b=={ 5 6 } and watch it fail.
Then, try elim_with... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter25Exercise6.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Hidden Infinite loop Chapter25Exercise6.cpp
COMMENT
Objective: Write an infinite loop that is hard to recognize as an infinite loop.
A loop that isn't really infinite because it terminates after completel... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise13.cpp | /*
TITLE Binary tree Chapter14Exercise13.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 p... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter19Exercise15.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE GUI to "Hunt the wumpus" Chapter19Exercise15.cpp
"Bjarne Stroustrup "C++ Programming: Principles and Practice.""
COMMENT
Objective: Modify the previous exercise to allow the user
to mark rooms on the map based on ... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise9.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE String Comparison Chapter3Exercise9.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective:
Input: Requests an integer. (entered as string)
Output: Prin... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter12Exercise1.cpp | /*
TITLE Rectangle and Polygone Chapter12Exercise1.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Draw a rectangle using class Rectangle (red lines)
and class Polygon (blue lines).
Input: -
Output: Graph on screen.
Author: <NAME>
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter12Exercise7.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter12Exercise7.cpp
/*
TITLE Draw a house Chapter12Exercise7.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20TryThis1.cpp | /*
TITLE Improving "ugly" code Chapter20TryThis1.cpp
"<NAME> "C++ Programming: Principles and Practice.""
COMMENT
Objective: If you were able how would you change Jill's code
to get rid of the ugliness?
Input: -
Output: -
Author: <NAME>
Date: 17. 02. 2017
*/
#include <iostream>
#i... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter15Exercise11.cpp | <gh_stars>1-10
/*
TITLE Read a data file, scale and plot Chapter15Exercise9.cpp
"Bjarne Stroustrup "Programming Principles and Practices Using C++""
COMMENT
Objective: Read a data file containig mean maximum temperatures
for each month of the year, for two locations and
plot them together.... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/testingPrograms/exept_examp.cpp | <gh_stars>1-10
/*
TITLE Exceptions example exept_examp.cpp
COMMENT
Objective: Introduce the notion of exceptions and error handling.
Input: Out of range values, Bad Arguments, Bad Input.
Output: Program response according to the error handling procedures.
Author... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter23Exercise16.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter23Exercise16.cpp<gh_stars>1-10
/*
TITLE Regex expresses any pattern Chapter23Exercise16.cpp
COMMENT
Objective: Prove that the pat... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17TryThis.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Try This Chapter17TryThis.cpp
"<NAME>ustrup "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Apply sizeof() operator to the fundamental types.
Input: -
Output: -
Author: <NAME>
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter25Drill1.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Bit shifting & multiplication Chapter25Drill1.cpp
COMMENT
Objective: 1. Run the code with v being of type int. (-> overflow) after 35th doubling
2. Run the same code with v being of type unsigned int. (on more bit... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/testingPrograms/strng_rpr_dlt.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Delete Repeated Words strng_rpr_dlt.cpp
COMMENT
Objective: Deletes repeatedly occurring strings .
Input: Requests input strings.
Output: Prints repeated strings, if occur.
Author: <NAME>
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Exercise7.cpp | /*
TITLE Calculator with word/number input Chapter4Exercise7.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Implement basic algebraic calculator.(+,-,*,/,%)
with input where digits can either be typed as
digits or by name ("zero") string.
I... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18TryThis2.cpp | /*
TITLE Custom vector Chapter18TryThis2.cpp
"<NAME> "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Implement the vector example from Chapter 18,
compile, run and check error messages when use
operator[] to assign new values to elements.
Input: -
Output: -
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Exercise2.cpp | /*
TITLE Median Chapter4Exercise2.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Correct Chapter 4.6.2 code to include mode
for both odd and even data sets
Input:
Output:
Author: <NAME>
Data: 01.04.2015
*/
#include "../.... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter18Exercise10.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<gh_stars>1-10
/*
TITLE Buffer Length Chapter18Exercise10.cpp
"<NAME> "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Reimplement the function from Chapter 18.6.2
to handle non-zero terminated... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise17.cpp | /*
TITLE std::exception class hierarchy Chapter14Exercise17.cpp
"<NAME> "Programming Principles and Practices Using C++""
COMMENT
Objective: Draw a class hierarchy for the std::exception C++ standard library.
It's consisted of a set of labeled boxes located on different lines.
Note: Drawin... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter4Exercise8.cpp | <gh_stars>1-10
/*
TITLE Grains of rice Chapter4Exercise8.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Show how many iterations (squares)
are needed to grow from initial value to final value.
(8 iterations:10e+3; 14 iterations: ... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter19Exercise11Defv2.cpp | <gh_stars>1-10
/*
TITLE Ownership management through reference counting Chapter19Exercise11Defv2.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 cou... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter27TryThis3Def.cpp | /*
TITLE From C to C++ Doubly Linked List Chapter27TryThis3Def.cpp
COMMENT
Objective: Rewrite the intrusive list example in C++, showing how to
make it shorter and easier to use without making the code
slower or the objects bigger.
Note: Be aware of locally defined pointers, especially... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter9Exercise15.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-
/*
TITLE Class Money Chapter9Exercise15.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Add data member currency and supporting functions.
Data members: Member function... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Drill1.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Drill1.cpp
/*
TITLE Free-store allocated arrays Chapter17Drill1.cpp
"<NAME>ustrup "C++ Programming: Principles and Practice.""
COMM... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/Algorithms/Algorithms/PrimalityTestNoFactorization.cpp | <gh_stars>1-10
/*
TITLE Find primary numbers PrimalityTestNoFactorization.cpp
COMMENT
Objective: Find prime numbers without using
explicit factorization.
Input: -
Output: -
Author: <NAME>
Date: 1.03.2016
*/
#include <iostream>
#include <cmath>
bool isPrime(double, int);
//======... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise8.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise8.cpp
/*
TITLE Input buffers and strings Chapter17Exercise8.cpp
"Bjarne Stroustrup "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Write characters from std::cin into std::string.
... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise3.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise3.cpp
/*
TITLE Invalid name declaration Chapter3Exercise3.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: To test the compiler responce
to i... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter9Exercise8.cpp | /*
TITLE Class Book Chapter9Exercise8.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective:
Data members: Function members: Overloaded operators: Helper Functions:
userName get_user_name(); operator<< valid_input();
libraryCardNumbe... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise6.cpp | /*
TITLE Comparison & Ordering Chapter3Exercise6.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Put in order three input numbers;
Next to each other if they are equal.
Input: Requests 3 numbers.
Output: Prints numbers in order.
Author: <N... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter13Exercise18Def.cpp | /*
TITLE Regular Polygon Chapter13Exercise18def.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: NOT WORK... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter26Exercise13.cpp | <filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter26Exercise13.cpp
/*
TITLE Random length string sorting Chapter26Exercise13.cpp
COMMENT
Objective: Write a program that generates random length [0,100) strings
and sorts them using std::sort.
Me... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3TryThis3.cpp | <reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup-<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3TryThis3.cpp
/*
TITLE Program flow Chapter3TryThis3.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C+... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/testingPrograms/in_stream.cpp | /*
TITLE User input type conversion vect_temp.cpp
COMMENT
Objective: Introduce stringstream for separating
data input and data interpretation.
Type conversion using stringstream property
of indirect data input.
Input: Requests different types of variables.
O... |
Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | Visual Studio 2010/Projects/bjarneStroustrupC++PartII/bjarneStroustrupCFLTK/Chapter14Exercise7Version2.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 lin... |
gmalaquias/benchmark-metodos-ordenacao | benchmark/Project-C/Source.cpp | #include "Header.h"
int main(){
OrdenacaoMain();
//pausa sem mostrar msg
system("pause>null");
return 0;
} |
ondesly/arkanoid | Classes/Physics/Body.cpp | //
// Body.cpp
// Arkanoid
//
// Created by <NAME> <<EMAIL>> on 02.03.2021.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include "Body.h"
cocos2d::Rect ar::Body::getVisibleRect() {
if (mIsVisibleRectDirty) {
const auto &transform = getNodeToParentTransform();
cocos2d::Vec3 p0;
... |
ondesly/arkanoid | Classes/Objects/Ball.cpp | <reponame>ondesly/arkanoid<filename>Classes/Objects/Ball.cpp
//
// Ball.cpp
// Arkanoid
//
// Created by <NAME> <<EMAIL>> on 04.03.2021.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include <base/CCEventDispatcher.h>
#include "Resources.h"
#include "Ball.h"
ar::Ball *ar::Ball::create(const std::string &... |
ondesly/arkanoid | Classes/Resources.cpp | <gh_stars>0
//
// Resources.cpp
// Arkanoid
//
// Created by <NAME> <<EMAIL>> on 04.03.2021.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include "Resources.h"
namespace ar {
namespace texture {
namespace bg {
const char *bg = "bg";
}
namespace game {
... |
ondesly/arkanoid | Classes/Nodes/Blocks.cpp | <filename>Classes/Nodes/Blocks.cpp
//
// Blocks.cpp
// Arkanoid
//
// Created by <NAME> <<EMAIL>> on 04.03.2021.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include <random>
#include "Objects/Block.h"
#include "Physics/Physics.h"
#include "Resources.h"
#include "Blocks.h"
ar::Blocks *ar::Blocks::create... |
ondesly/arkanoid | Classes/Nodes/Frame.cpp | <gh_stars>0
//
// Frame.cpp
// Arkanoid
//
// Created by <NAME> <<EMAIL>> on 04.03.2021.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include <2d/CCSpriteFrameCache.h>
#include "Physics/RectangleBody.h"
#include "Physics/Physics.h"
#include "Resources.h"
#include "Frame.h"
ar::Frame *ar::Frame::create(c... |
ondesly/arkanoid | Classes/Physics/Physics.cpp | <reponame>ondesly/arkanoid
//
// Physics.cpp
// Arkanoid
//
// Created by <NAME> <<EMAIL>> on 02.03.2021.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include <cmath>
#include <base/CCDirector.h>
#include <base/CCScheduler.h>
#include "Physics/Body.h"
#include "Physics.h"
ar::Physics::Physics(size_t ti... |
ondesly/arkanoid | Classes/Nodes/Dialog.cpp | <gh_stars>0
//
// Dialog.cpp
// Arkanoid
//
// Created by <NAME> <<EMAIL>> on 04.03.2021.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include <ui/UIButton.h>
#include "Resources.h"
#include "Dialog.h"
namespace {
const char *cButtonTitle = "REPLAY";
const float cTitleSize = 1.F;
const flo... |
ondesly/arkanoid | Classes/Objects/Platform.cpp | <filename>Classes/Objects/Platform.cpp
//
// Platform.cpp
// Arkanoid
//
// Created by <NAME> <<EMAIL>> on 02.03.2021.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include "Platform.h"
ar::Platform *ar::Platform::createWithSpriteFrameName(const std::string &name) {
auto platform = new(std::nothrow) Pl... |
ondesly/arkanoid | Classes/Objects/Block.cpp | <gh_stars>0
//
// Block.cpp
// Arkanoid
//
// Created by <NAME> <<EMAIL>> on 03.03.2021.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include <base/CCEventDispatcher.h>
#include "Resources.h"
#include "Block.h"
namespace {
const cocos2d::Color3B cRed{255, 0, 0};
const cocos2d::Color3B cGreen{0,... |
ondesly/arkanoid | Classes/Nodes/Header.cpp | <gh_stars>0
//
// Header.cpp
// Arkanoid
//
// Created by <NAME> <<EMAIL>> on 04.03.2021.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include <string>
#include <2d/CCLabel.h>
#include <2d/CCSprite.h>
#include "Resources.h"
#include "Header.h"
namespace {
const char *cScoreTitle = "SCORE";
}
ar:... |
ondesly/arkanoid | Classes/Scenes/GameScene.cpp | //
// GameScene.cpp
// Arkanoid
//
// Created by <NAME> <<EMAIL>> on 02.03.2021.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include <base/CCEventListenerTouch.h>
#include "Nodes/Blocks.h"
#include "Nodes/Dialog.h"
#include "Nodes/Frame.h"
#include "Nodes/Header.h"
#include "Objects/Ball.h"
#include "Obj... |
ondesly/arkanoid | Classes/Physics/CircleBody.cpp | //
// CircleBody.cpp
// Arkanoid
//
// Created by <NAME> <<EMAIL>> on 04.03.2021.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include "CircleBody.h"
ar::CircleBody *ar::CircleBody::create() {
auto body = new(std::nothrow) CircleBody();
if (body && body->init()) {
body->autorelease();
... |
zergylord/MyCaffe | src/caffe/test/test_power_layer.cpp | <gh_stars>0
// Copyright 2014 BVLC and contributors.
#include <algorithm>
#include <vector>
#include "cuda_runtime.h"
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/vision_layers.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
#incl... |
zergylord/MyCaffe | src/caffe/test/test_neuron_layer.cpp | // Copyright 2014 BVLC and contributors.
#include <cstring>
#include <vector>
#include "cuda_runtime.h"
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/vision_layers.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
#include "caffe/test... |
zergylord/MyCaffe | src/caffe/test/test_data_layer.cpp | // Copyright 2014 BVLC and contributors.
#include <string>
#include <vector>
#include "cuda_runtime.h"
#include "leveldb/db.h"
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/vision_layers.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe... |
zergylord/MyCaffe | src/caffe/layers/qnet_loss_layer.cpp | <filename>src/caffe/layers/qnet_loss_layer.cpp
#include <algorithm>
#include <limits>
#include <vector>
#include "caffe/common.hpp"
#include "caffe/layer.hpp"
#include "caffe/syncedmem.hpp"
#include "caffe/vision_layers.hpp"
#include "caffe/util/math_functions.hpp"
#include <stdio.h>
namespace caffe {
template <typ... |
AndySmile/BachelorThesis | DemoApp/Src/TerrainAbstract.cpp | /**
* DempApp - Abstract Grid Terrain Model.
*
* @author <NAME>\<<EMAIL>\>
* @file Src/AbstractTerrain.cpp
* @version 1.2.0 09-Jan-15
* @copyright Copyright (c) 2014-2015 by <NAME>. All rights reserved. (http://andysmiles4games.com)
* @ingroup demoapp
*/
#include <TerrainAbstract.h>
Terra... |
AndySmile/BachelorThesis | DemoApp/Src/Test/SimpleLib/DataCollectionTest.cpp | /**
* @version 1.0.1 03-Jan-15
* @copyright Copyright (c) 2014-2015 by <NAME>. All rights reserved. (http://andysmiles4games.com)
*/
#include <Test/SimpleLib/DataCollectionTest.h>
#include <SimpleLib/DataCollection.h>
/**
* DemoApp UnitTest Namespace.
*
* This namespace includes all test cases.
*/
namespa... |
AndySmile/BachelorThesis | DemoApp/Src/Test/TerrainDescriptorWaterTest.cpp | /**
* @version 1.1.0 04-Jan-15
* @copyright Copyright (c) 2014-2015 by <NAME>. All rights reserved. (http://andysmiles4games.com)
*/
#include <Test/TerrainDescriptorWaterTest.h>
#include <TerrainDescriptorWater.h>
#include <TerrainMesh.h>
namespace DemoAppTest
{
void TerrainDescriptorWaterTest::processTe... |
AndySmile/BachelorThesis | Prototypes/MeshTerrainDemo/Src/AppMain.cpp | <filename>Prototypes/MeshTerrainDemo/Src/AppMain.cpp
/**
* @version 1.0.0 21-Dec-14
* @copyright Copyright (c) 2014 by <NAME>. All rights reserved. (http://andysmiles4games.com)
*/
#include <SimpleLib/SimpleLib.h>
#include <SimpleLib/Application.h>
#include <DemoScene.h>
#include <stdlib.h>
int main(void)
{
... |
AndySmile/BachelorThesis | DemoApp/Src/Test/TerrainEnvironmentTest.cpp | /**
* @version 2.0.0 09-Jan-15
* @copyright Copyright (c) 2014-2015 by <NAME>. All rights reserved. (http://andysmiles4games.com)
*/
#include <Test/TerrainEnvironmentTest.h>
#include <TerrainEnvironment.h>
#include <TerrainDescriptorWater.h>
#include <TerrainMesh.h>
namespace DemoAppTest
{
void TerrainEn... |
AndySmile/BachelorThesis | DemoApp/Src/EntityWater.cpp | /**
* @version 1.1.0 09-Jan-15
* @copyright Copyright (c) 2014-2015 by <NAME>. All rights reserved. (http://andysmiles4games.com)
*/
#include <EntityWater.h>
#include <SimpleLib/OpenGLHelper.h>
#include <SFML/OpenGL.hpp>
EntityWater::EntityWater(void) :
EntityAbstract(),
_meshId(0),
_width(0),
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.