blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b659df080594eb6cbc001da625b712ad2195a412 | 54dca467e7806c57515ff603899a726629cddb10 | /P256e5.8.cpp | 48b6ebdfbefa64cd1741906d55dafb93a718f261 | [] | no_license | Bambunote/cpp-codes.YBT | 56a9bba3e0890c1b24bfc652615fd9c0d7dcf435 | b64901a9418772d91bd0522c27755032365c6e0d | refs/heads/master | 2020-12-03T05:49:31.446621 | 2020-01-01T13:27:52 | 2020-01-01T13:27:52 | 231,219,452 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 821 | cpp | P256e5.8.cpp | #include<bits/stdc++.h>
using namespace std;
int u[8]={1,2,2,1,-1,-2,-2,-1},v[8]={-2,-1,1,2,2,1,-1,-2},
a[100][100]={0},num=0,search(int,int,int),print();
bool b[100][100]={0};
int main()
{
a[1][1]=1;b[1][1]=1;
search(1,1,2);
cout<<num<<endl;
return 0;
}
int search(int i,int j,int n)
{
int k,x,y;
... |
85d5bb867e37671296b5309193332b4478b240de | 9192c059d3ff01b56af3c77fde5e62123ec3e157 | /shared/network/messages/InputDebugMessage.cpp | c4d905523e7e966b7d534e5d0a93ae1b8e31a45a | [] | no_license | AescaFarstad/jollyRover | 1499f264d18b709e6271cf815f4dfdf5b1a83b89 | a451538c0e1487ce9f4b48dc7d6344d89ab1ba44 | refs/heads/master | 2022-10-23T16:47:16.818457 | 2020-06-17T21:58:19 | 2020-06-17T21:58:19 | 176,098,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 617 | cpp | InputDebugMessage.cpp | #include <InputDebugMessage.h>
InputDebugMessage::InputDebugMessage()
{
typeId = MESSAGE_TYPE::TYPE_INPUT_DEBUG_MSG;
action = DEBUG_ACTION::NONE;
}
std::string InputDebugMessage::getName() const
{
return "I-dbga";
}
void InputDebugMessage::serialize(BinarySerializer& serializer) const
{
InputMessage::serialize(s... |
b05de511cf34c981ce3c1d10c36213a6fb5c7b73 | c23b9d240786762834df065e3bac1c36b7ee15fa | /src/items/useable_items/Whetstone.cpp | c54aa58af0e9b817ed942c85fb8c8af677129a42 | [] | no_license | ThomasvLingen/Minor_CPP1 | c6274abaed6478d883f2a739765f4a6e6c315495 | 5c473053aa4259c56a870375aaa052b549f38313 | refs/heads/master | 2020-05-29T08:46:37.690361 | 2016-10-31T10:20:30 | 2016-10-31T10:20:30 | 69,468,638 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 601 | cpp | Whetstone.cpp | //
// Created by mafn on 10/28/16.
//
#include "Whetstone.hpp"
#include "player/Player.hpp"
namespace Items {
WhetStone::WhetStone()
: Item("A whetstone", "Used to sharpen your weapon", 1)
{
}
WhetStone::WhetStone(const WhetStone &obj)
: Item(obj._name, obj._description, obj._uses)
... |
a50afe1173c133abcae5dcbc7103d48ca4272b38 | 1052b509cd3871837e11ae19e4d3c7a4cbce0a48 | /TP3/TP3/test.cpp | 0b244fd57ac78398c997658809b4e53edf9d56ca | [] | no_license | j0bby/TP-C- | 9948e2a6e37d4325a354ec835aab2fdd4b44b33c | c51841633e167fc9be614f86ff1128a55537ee59 | refs/heads/master | 2021-01-10T10:28:18.721936 | 2015-12-13T20:34:31 | 2015-12-13T20:34:31 | 46,136,362 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 6,907 | cpp | test.cpp | #include <string>
#include <iostream>
#include "Cible.h"
#include "Collection.h"
#include "Graphe.h"
#include "Log.h"
using namespace std;
static void testLog();
static void testConstructLog();
static void testConstructLog2();
static void testCible();
static void testConstructCible();
static void testAjouterCible();
... |
e18f30661aabedcc6f24e1c4324fbffd9429f80f | d1f7ed3891d318cb3552c35a36d5c35fee3bc291 | /CSCE 221 Data Structures/programs/program2/binary_tree.h | 7605fc7c96605aadc3a0e8fd49eb067fcfc0dbef | [] | no_license | carstenhood/TAMU | 6b790430632882d481ec323413676af84f098693 | bde49ada8be7e8205c3fd3e3d16bcbba41a40572 | refs/heads/master | 2021-08-31T22:47:22.942477 | 2017-12-23T07:17:34 | 2017-12-23T07:17:34 | 114,523,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,359 | h | binary_tree.h | /* binary_tree.h:
* A C++ template which implements a binary tree ADT.
*/
#ifndef BINARYTREE_H
#define BINARYTREE_H
#include <iostream>
#include <deque>
#include "euler_tour.h"
using namespace std;
template <typename T>
class binary_tree {
public:
class child_exists_exception{};
... |
87f60debfadee78bb9803109e911b1a42a48d214 | 6204fae696932f831d18b77bc1ebcc2cb1bff1df | /codechef/DEC19/BINOFEV.cc | 743c0704292570d802a35e50a6d13b5ddf2e09c0 | [] | no_license | Pentagon03/competitive-programming | 3e725bab66ba75f5e8c8489bada41c5ee51fed91 | 8ca7cec0ff7bb7c096d4b8d7100840cef6ae0c99 | refs/heads/master | 2022-11-15T15:36:18.595463 | 2020-07-02T15:27:37 | 2020-07-02T15:27:37 | 287,737,119 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,918 | cc | BINOFEV.cc | #include <cstdio>
#include <algorithm>
#include <vector>
using int64 = long long;
using uint32 = unsigned int;
using uint64 = unsigned long long;
using uint128 = __uint128_t;
// if mod is not close to 2^(word_bits-1), it's faster to use comment lines
template <class word, class dword, class sword, word mod, word root... |
4ca94664b5236afb0e6c5ab6441e445065d2d07a | 3d2f173690bf6bf16658134d586404197af48176 | /cl_4.cpp | 684e722fecd85c8642816a3ddee6d6759a1d7862 | [] | no_license | kiri3L/signals | 87b7dde6cb3a8fe9df19e6a956331f6295184a41 | 98350c7984f05c1503c2ac05bed1323a291a2b04 | refs/heads/master | 2022-07-21T18:03:48.991385 | 2020-05-17T14:56:57 | 2020-05-17T14:56:57 | 264,691,043 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 58 | cpp | cl_4.cpp | //
// Created by k3l on 17.05.2020.
//
#include "cl_4.h"
|
fa647b29cc601e27caad1c6fd730a3e66941effa | 0734ac08ab40fa5477106c5535af32282b37989c | /Panorama/V3.h | d3205642fed71eb6a3174eba7ef423b9d9e58b0e | [] | no_license | gnishida/Graphics3 | 7622c2539b23ab1223bf776c7df41c1e30753cd2 | 9257612bc5bff354d8125e5d985771e0342c6cfe | refs/heads/master | 2016-09-06T18:02:07.062098 | 2014-10-06T00:35:51 | 2014-10-06T00:35:51 | 24,829,739 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,426 | h | V3.h | #pragma once
#include <ostream>
#include <istream>
#define _USE_MATH_DEFINES
#include <math.h>
#define DEG2RAD(x) ((float)((x)/180.0f*M_PI))
#define RAD2DEG(x) ((float)((x)*180.0f/M_PI))
#define WHITE 0xFFFFFFFF
#define BLACK 0xFF000000
#define RED 0xFF0000FF
#define GREEN 0xFF00FF00
#define BLUE 0xFFFF0000
using... |
432e7dbaf0ca645a2bb1fa05586cae344c6a81f3 | 4ab3450f07a40e1beade011694f96b958b3469b9 | /src/main.cpp | 98b17c5c109c0e671beb3f90cffd200a5cec7f78 | [
"MIT"
] | permissive | Anoncoin/oldrepo-backup | 7757ac50cf99a65eddf9efbc81f32db21257d5e0 | 7d4945d4c0219b2a7305a5adcd4ba994b44b30a9 | refs/heads/master | 2021-09-13T22:18:45.806041 | 2017-10-25T23:39:38 | 2017-10-25T23:39:38 | 9,835,666 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 266,751 | cpp | main.cpp | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2013-2017 The Anoncoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "a... |
658bd62449f52be2d1fcb7eccfae1d2bc31a1c53 | 8f2e62c96094541f8d5a2c9bad4579e52de28a24 | /Module3/Part10/Lab3.10.1/Lab3.10.1/Lab3101.cpp | a81ebe652893d05b1a20b876050950249eb97310 | [] | no_license | volodimirgoloshivskiy/CPA-Programing-Essentials-in-C-Page | 0e23f4cb39e126b2685b14344c283cf521369e1b | e7a0c58e6d6385a03d072e7c89872ff898928d60 | refs/heads/master | 2021-05-15T20:51:19.191275 | 2017-12-20T09:56:07 | 2017-12-20T09:56:07 | 107,803,555 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 931 | cpp | Lab3101.cpp | // Lab3101.cpp: определяет точку входа для консольного приложения.
//
#include "stdafx.h"
#include<iostream>
#include<cstdlib>
#include<ctime>
using namespace std;
bool IsPresent(int balls[], int val, int ballsCount) {
for (int i = 0; i < ballsCount; i++) {
if (balls[i] == val) return true;
}
return false;
}
in... |
69897190571ee527a74f8479c8489944c73faa93 | b0c66bbbe6dc0689a5ad240d15cdc8dea616a264 | /code/include/layer.h | 91dc03b2c73abd1f714887e9eb574b6ef662e0e7 | [] | no_license | tim86101/Timing-Aware-Fill-Insertion | f0858235a76fd623d871f1d8c18d5cbf4aae2d5d | 2b3dd9b60c281401d63e94ea7472a5c64327e492 | refs/heads/main | 2023-06-03T10:51:26.274840 | 2021-06-13T09:18:30 | 2021-06-13T09:18:30 | 376,488,617 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,416 | h | layer.h | #pragma once
#ifndef LAYER_H
#define LAYER_H
#include <iostream>
#include <list>
#include <string>
#include <map>
#include <vector>
#include <stdio.h>
#include "polygon.h"
#include <time.h>
#include <math.h>
#include <stdlib.h>
using namespace std;
bool compare_X( Polygon& first, Polygon& second);
bool compare_Y( Polyg... |
8a3246e3c809bad2ab35813bd8413893158f4caf | b8765e762b1087505189506a35cffce43638fba7 | /question/Codeforces/contest/Educational Codeforces Round 6/b/b.cpp | b0e88074cfe707268b77ad2a942a51aaff9e5c8e | [] | no_license | yaoling1997/desktop | 0d0782f44cca18ac97e806e919fc7c6446872a00 | 1053d1a30b1e45e82ceec90cfd3b31eec361c1e2 | refs/heads/master | 2022-02-17T12:50:54.349782 | 2019-05-18T06:13:03 | 2019-05-18T06:13:03 | 120,167,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 423 | cpp | b.cpp | #include<bits/stdc++.h>
using namespace std;
int a[20];
int x,y,i,ans;
int count(int x){
int re= 0;
while (x){
re+= a[x%10];
x/= 10;
}return re;
}
int main()
{
//freopen("1.in","r",stdin);
//freopen("1.out","w",stdout);
a[0]= 6;
a[1]= 2;
a[2]= 5;
a[3]= 5;
a[4]= 4;
a[5]= 5;
a[6]= 6;
a[7]= 3;
a[8]= 7;
... |
26eafac1881a604cb2d8b66845b615e0a2274722 | 8a9b88871d1bbe7af5619cdaa564e37a411d623c | /082_BJ_에디터/에디터.cpp | 3c839afdd2710e5fe1ddd2c122fc3ebe5c9b2f72 | [] | no_license | zxwnstn/AlgorithmPractice | 1249dab6e4bbf12e315f52db9166d71e34c420be | 5811bb2c2f9f308a8e554d6c8560af26a82d1398 | refs/heads/master | 2020-04-11T16:11:17.785651 | 2019-02-01T12:19:18 | 2019-02-01T12:19:18 | 161,915,621 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,052 | cpp | 에디터.cpp | #include<iostream>
#include<list>
#include<string>
using namespace std;
list<char> str;
void Print()
{
for (auto it = str.begin(); it != str.end(); it++)
cout << *it;
}
void Cmd(int n)
{
auto it = str.end();
it--;
while (n--)
{
char command;
cin >> command;
auto temp = it;
if (command == 'L')
{
... |
ad0da7f98b141eb969b2f93dc3e48a71045a821b | fa473804ff3eb6f1c67bcd4d7244a2e3255c7d5e | /Code/Test_Image_SVM_Prediction.cpp | cc372e18ff7e15567812f8ade1b447a148b0a234 | [] | no_license | zshanahmed/Communication-Assistant-for-Hearing-Impaired | 0ee9e0dd0c9ceae424acea6bea55e602c83e90d9 | d4e67610548874883b0e3dd0fb348bca6943f04b | refs/heads/master | 2020-12-18T17:16:38.687539 | 2020-01-22T21:11:06 | 2020-01-22T21:11:06 | 235,466,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,965 | cpp | Test_Image_SVM_Prediction.cpp | #include "opencv2/core/core.hpp"
#include "opencv2/flann/miniflann.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/photo/photo.hpp"
#include "opencv2/video/video.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/nonfree/features2d.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#... |
a949117ab5392f8f91590e7093e00ecaf30924b2 | 23e393f8c385a4e0f8f3d4b9e2d80f98657f4e1f | /ATL开发指南/Chap03/Chapter3_Server/Math.h | b5eb22807e333d6ab7fd1c0e52c00bdfe11f605d | [] | no_license | IgorYunusov/Mega-collection-cpp-1 | c7c09e3c76395bcbf95a304db6462a315db921ba | 42d07f16a379a8093b6ddc15675bf777eb10d480 | refs/heads/master | 2020-03-24T10:20:15.783034 | 2018-06-12T13:19:05 | 2018-06-12T13:19:05 | 142,653,486 | 3 | 1 | null | 2018-07-28T06:36:35 | 2018-07-28T06:36:35 | null | UTF-8 | C++ | false | false | 1,081 | h | Math.h | // Math.h : Declaration of the CMath
#ifndef __MATH_H_
#define __MATH_H_
#include "resource.h" // main symbols
#include "atldevguide.h"
/////////////////////////////////////////////////////////////////////////////
// CMath
class ATL_NO_VTABLE CMath :
public CComObjectRootEx<CComSingleThreadModel>,
publ... |
1f78af2bed5bd4f2231f5e80d3bcd52af450eeda | a24c661bc21baa0e30f51663b0b19278733e1d48 | /CPP/std11/tuple.cpp | e2d422376980375a02f605227e99205dd58d6099 | [] | no_license | lilijreey/Linux-learning | 8abf7ff8bd70d2b07409c868b530c1342ece6081 | efcfaa9a492eed17cb39c1ce8ef9aa986a17a3a5 | refs/heads/master | 2021-01-17T10:59:45.354876 | 2018-12-06T14:52:11 | 2018-12-06T14:52:11 | 6,418,499 | 15 | 16 | null | null | null | null | UTF-8 | C++ | false | false | 1,956 | cpp | tuple.cpp | /*
* Description: tuple 的使用
*
* EE tuple实现,内存布局
*/
//defined in "tuple" header file
#include <tuple>
#include <string>
#include <iostream>
#include <vector>
using namespace std;
struct SS {
SS(int a=0, int b=0) {}
int a;
int b;
};
int main() {
//EE std::make_tuple 构造一个tuple
tuple<int, std::string> t... |
7a954525cb17e37ec67043166ce3f3d5dde10aeb | 3b7920b08ccf0522128a0a294ac5abf8052d0606 | /Challenges/day11/src/main.cpp | 5f63157f1fb057cca3c7827637e72c2d5b752d15 | [] | no_license | benbios/AoC_2020 | 485f73b94a4a47130d1a922ba200874aa986ce24 | d0c9dd50eaba27256ef388664cd5d8d41286a934 | refs/heads/main | 2023-02-01T11:07:39.345342 | 2020-12-22T18:06:30 | 2020-12-22T18:06:30 | 317,483,750 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,727 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <fstream>
#include <memory>
// Forward declaration of Area
class Space;
class Area : public std::enable_shared_from_this<Area> {
friend class Space;
public:
Area() : m_x(0), m_y(0) {};
Area(const Area &area) : m_y(area.m_y), m_x(area.m_x), m_fixed(area.m_fix... |
c11111de3854d43190d6ee14211d460817f90fa7 | b59bf04b82e9b7f6a6b96f1dceb33863819667e3 | /json/src/laurena/json/iarchive_json.cpp | 495d0e29e7603f84d19f946a0ebab8e67c7dfa54 | [] | no_license | jmichael218/laurena | 34091a622e1c6867b75d048d94bde7b6a934d489 | 5ed6b0736fef7ae78fb6a737fe9b09e0706480ba | refs/heads/master | 2020-12-24T14:55:49.621637 | 2014-06-18T16:11:11 | 2014-06-18T16:11:11 | 39,240,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,420 | cpp | iarchive_json.cpp | ///
/// \file iarchive_json.cpp
/// \brief Class for a JSON input archive i.e a class to serialize a class from a JSON file format.
/// \author Frederic Manisse
/// \version 1.0
///
/// Class for a JSON input archive i.e a class to serialize a class from a JSON file format.
///
#include <laurena/json/iarchiv... |
f4da2b566b69cbbca51c547bf4ed503c33b6d039 | b018a5f204753b5a61a608b7db3a00d5cf15cc0b | /project.cpp | be7737b4734d68de94c8de36d9764051266da85d | [] | no_license | T-Arshad98/solar_system | c10c606fcd629cf9fac679eb849d26a02bb2e599 | f549289afd5457afef90ee2f752c6b750816b37e | refs/heads/main | 2023-04-18T10:17:23.508017 | 2021-04-19T02:16:42 | 2021-04-19T02:16:42 | 359,302,686 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,497 | cpp | project.cpp | /**
* @author:
*
* You may add more private data if it helps (it probably would)
* You may add more private methods if it helps (again, probably helpful)
*/
public class Rectangle implements Polygon
{
private int x1, x2, x3, x4, y1, y2, y3, y4;
public Rectangle(Location loc1, Location loc2, Location lo... |
a27a6060816289f1f6e96508007ac0eaa79628cb | 8ea9676643ee8e6e18b39184f8a32cfdaf167e0a | /engine/Camera.h | 5e7d674bc894b71ad64ef52b360a014af6b58635 | [
"Apache-2.0"
] | permissive | WinteryFox/VixenEngine | 3dcfd760c7880a45dc6f8b7992bf89ec32b79688 | ec535288eb3220dfff7effc3d109f8a2cb1f0a2d | refs/heads/master | 2021-06-25T03:05:04.221811 | 2019-05-16T21:46:02 | 2019-05-16T21:46:02 | 136,613,052 | 1 | 3 | Apache-2.0 | 2019-03-20T21:26:04 | 2018-06-08T11:57:52 | C | UTF-8 | C++ | false | false | 801 | h | Camera.h | #pragma once
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "Window.h"
namespace input {
using namespace glm;
class Camera {
private:
bool firstMouse = true;
double lastX = 0, lastY = 0;
vec3 position;
float horizontal = 3.14f;
floa... |
2739ac56b48cd8cfa224f40474c3188e4b28303d | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /DetectorDescription/RegSelLUT/RegSelLUT/RegSelEtaPhiModule.h | 0bed5be7fc54d0e721e46785f084f1ab832a2691 | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,489 | h | RegSelEtaPhiModule.h | // emacs: this is -*- c++ -*-
/*
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
*/
//
// @file RegSelEtaPhiModule.h
//
// a "module" with a region in eta-phi space with max and min
// coordinates in both eta and phi and a payload.
// designed so c... |
9562155823f4693022086eee1ff96820878d4be0 | 38fff7bdefd8d62a740d51329b50d0e1e49258bb | /projects/alembic/alembic_dump_info_fuzzer.cc | e3aa716aff4b5992dba7b8cf8749f5e6c276c03a | [
"Apache-2.0"
] | permissive | google/oss-fuzz | 026384c2ada61ef68b147548e830f60730c5e738 | f0275421f84b8f80ee767fb9230134ac97cb687b | refs/heads/master | 2023-08-31T23:30:28.157702 | 2023-08-31T21:49:30 | 2023-08-31T21:49:30 | 63,809,205 | 9,438 | 2,315 | Apache-2.0 | 2023-09-14T20:32:19 | 2016-07-20T19:39:50 | Shell | UTF-8 | C++ | false | false | 6,638 | cc | alembic_dump_info_fuzzer.cc | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
b8784fc6e54d4eb849b818d25839cbd6502989ce | 0933622e3aaabacb8f5153b070461334bd1e08bb | /code/include/znn/fft_common/codelets/detail/c2cf_22.hpp | 45e1daaba61c133f1e727b2a3378afeaea385ea3 | [] | no_license | Gxllii/winograd-fft-conv | df471e848f2061f8c0798d2687ed497f3b73db32 | a316383c37c09b2773ce80f7b0a81e14d11d7754 | refs/heads/master | 2023-03-22T10:56:32.687881 | 2018-09-19T19:56:57 | 2018-09-19T19:56:57 | 345,894,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398,090 | hpp | c2cf_22.hpp | //
// Copyright (C) 2018 Aleksandar Zlateski <zlateski@mit.edu>
// Copyright (C) 2018 Zhen Jia <zhenj@princeton.edu>
// ---------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as pu... |
25144f8def21257e3d2bc1c5c189f5b5e23f4e33 | bfcc2e269d38a81a589b121a26e496f5468f3f27 | /src/Tournament.h | 31443f74026427e128d41cee578b2c0950dc35eb | [] | no_license | atforche/425_Final_Project | 7fc4a2b6da696fc9938b9803d1d2d2389f8a22ff | 42128b1b21bdc1710c24a4e5789c4ef821c58c68 | refs/heads/master | 2022-12-13T21:46:56.136607 | 2020-09-07T23:12:56 | 2020-09-07T23:12:56 | 256,606,272 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,639 | h | Tournament.h | #ifndef TOURNAMENT_H
#define TOURNAMENT_H
#include "Simulation.h"
#include "Brain.h"
class Tournament {
private:
int mode;
Sim* simulation;
std::vector<Neural_Net> pred_population;
std::vector<double> pred_fitnesses;
std::vector<Neural_Net> prey_population;
std::vector<double> prey_fitnesses;
int... |
b846a8801d9ff567139daeb687a746278a91df06 | 4a245885c66fbdf0f4a713fceb2f8c576ec3d9d3 | /Slideshow/Slideshow.ino | 30d59472c2e715638a23ad4c1abd4630df5c2eca | [] | no_license | Microduino/Slideshow | a8ae991616e660d5c2ede391dcf094daf09750d5 | dc413850df0a26006e54e42dfd7f7b9029b68c08 | refs/heads/master | 2016-08-12T17:01:10.556158 | 2016-04-05T07:27:35 | 2016-04-05T07:27:35 | 53,645,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,313 | ino | Slideshow.ino | /*
* Copyright (c) 2014, Majenko Technologies
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list o... |
c35835066a195f4f0b4f46a9296b3aaa6f5083f6 | e580a61f21391e62e6c454a491f109ee0af809b3 | /Test_Progs/test_output.cpp | a2902336007c3874a3b4223c42b5fa82e3432b40 | [] | no_license | Wintermute21/string | 85fe5ef6cd1689a9a3c62fa94f166542dc0184a6 | 3819c9c4924bef9e5f38a859f6bb8343c88651f1 | refs/heads/master | 2020-12-24T17:44:51.648503 | 2012-11-08T19:25:00 | 2012-11-08T19:25:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 890 | cpp | test_output.cpp | /** string - Test: output, <<
*
* Needed: Output on string like "abc def"
*/
#ifdef STD_STRING
#include <string>
using std::string;
#else
#include "string.h"
using cs33001::string;
#endif
#include <iostream>
#include <sstream>
#include <cassert>
using std::cin;
using std::cout;
using std::cerr;
using st... |
a774baa8d851fe430794e7dc4c6992328934e750 | b74f10cfe4e342f84d667cbc1f592fe2c7381fff | /Q2.cpp | a894c5a82f6bc8c50e282fb6fb50f09295eb825a | [] | no_license | YukihoAA/MSPCC2014 | 9a13eebde1a0268b0a217596c1c126f257b9dd6a | 32ef190f1de8892ca76db127344bb1f6a339a6bb | refs/heads/master | 2020-03-20T17:41:52.265948 | 2018-06-16T08:04:20 | 2018-06-16T08:04:20 | 137,564,078 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 414 | cpp | Q2.cpp | #include <iostream>
#include <string>
#include <Windows.h>
using namespace std;
int main(void)
{
string str;
system("color f0");
cout << "문자열을 입력하세요: ";
cin >> str;
for(size_t i=0; i<str.length(); i++)
{
if(str[i]<'A' || str[i] > 'z' || str[i] > 'Z' && str[i] <'a')
continue;
str[i]>='a'?str[i]-=('a'-'... |
3a8b46bc21f041be57f2cfa410f448c8132829d0 | 8d79a78930d457a62f009ef4e3b085afcc7dacfc | /LeetCodeProblems/src/Challenges/2020/April/week1/contingElements.cpp | 0a6810d995d782321fd86a54227b190d7ac8bf79 | [] | no_license | usseif97/Problem-Solving | cf877dfdce7cb96d6ef8423b93aebf69d36f1734 | a0bf8ab46f419a7b9fcdb4413e494f2aa9e5c7d9 | refs/heads/master | 2022-12-18T18:05:55.197905 | 2020-10-02T12:53:46 | 2020-10-02T12:53:46 | 269,500,931 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 650 | cpp | contingElements.cpp | #include "contingElements.h"
#include <bits/stdc++.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
contingElements::contingElements() {
// TODO Auto-generated constructor stub
}
contingElements::~contingElements() {
// TODO Auto-generated destructor stub
}
int contingElements::... |
7f6b50e30f2fd50aba2bdda6fd58e5616ff557f7 | 4c7c9592e056c80f3499cdcbe16be8fa49321ad1 | /Game/EndScreenComponent.h | 87d3074fbe8578b866f7f7d27e950ddcb0fa1dcc | [] | no_license | Karrietje/Galaga | 00646c2983c189943b7872c686884d2a3cd52c40 | a4b5fe2de5bfebb372179b94d924a8c25d5e9710 | refs/heads/main | 2023-07-09T05:40:10.434977 | 2021-08-23T02:56:15 | 2021-08-23T02:56:15 | 397,385,490 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 542 | h | EndScreenComponent.h | #pragma once
#include <Component.h>
namespace dae
{
class Scene;
class TextComponent;
class EndScreenComponent final : public Component
{
public:
EndScreenComponent(Scene* pScene);
virtual void Initialize() override;
virtual void Update(float elapsedSec) override;
v... |
b4f50891e3a3c587ae343221d10979d02650ad20 | b4e38746046dc5d8d4f0a363aa75db68ed3b9c26 | /SIFTProgram/Source.cpp | 650dbfb93a3c45a46e98a91568329be9dbd40c10 | [] | no_license | YHaruoka/OpenCV_SIFT | abb1db54d86bbdeb631e1fb7136cf9575fb46d8a | 140bf69a3cdfb61e6365e4129fb73831c46383a4 | refs/heads/master | 2021-08-07T16:04:56.510826 | 2017-11-08T13:03:05 | 2017-11-08T13:03:05 | 109,843,188 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,871 | cpp | Source.cpp | // Open CV 2.4.13
#include <iostream>
#include <opencv2/opencv.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/nonfree/features2d.hpp>
using namespace cv;
using namespace std;
#if _DEBUG
#pragma comment(lib, "opencv_core2413d.lib")
#pragma comment(lib, "openc... |
b11ef8f90cc9f4bc7ff6d2832ba9d011b4a9943f | d87d06e2cc16402b0888aa7b2426ef3660f767bb | /Geometry/Ellipse.cpp | e1c57c145d9a92bf776a71d8cccbb7e334209aec | [] | no_license | hatcat/show.cpp | 28eaf89804e698ced86fc1b248b26ca0efef3f90 | eaf73c463aa4bebe83057bd4f7e6a8e6a559a047 | refs/heads/master | 2020-08-09T07:33:37.078100 | 2020-07-04T15:12:40 | 2020-07-04T15:12:40 | 214,037,122 | 13 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,001 | cpp | Ellipse.cpp | #include "Geometry.h"
#include "Slide.h"
namespace
{
using namespace std::experimental::io2d;
class ellipse : public show::slide
{
public:
ellipse(show::presentation name);
bool enter(show::show const&) override;
void render(unmanaged_output_surface&) override;
bool exit() override;
private:
show::bac... |
c8e151f3604a09a89602dbc64011e549154ad45e | 04e1968ffff40ff2d3b31f2d3da1da5fe64264a3 | /a_DEE_SLAVE_Vnico/c_DEE_Loop.ino | 0054e7ac1924469cab2ce684ac525f79d784b72e | [] | no_license | carolinebuttet/DEEArbre | b965c73f8fcd8b8dda78280d1724111141b9195a | 5352706451fa38618125a4967a61ad212e52332e | refs/heads/master | 2023-01-22T16:09:02.281301 | 2020-12-02T18:43:29 | 2020-12-02T18:43:29 | 308,383,955 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 198 | ino | c_DEE_Loop.ino | //THE LOOP FUNCTION
void loop() {
if(MSG_NEED_TO_BE_P){
if(numLinesS){
printMessage(lines, numLinesS);
}
MSG_NEED_TO_BE_P = false;
}
delay(100);
Watchdog.reset();
}
|
9354565ab5a6cd9f0bfe52215c7ed174b76cfa00 | 9e51f79eb557953673f3617ea99d4f8de4dffbea | /SDSoC/platforms/petalinux/project-spec/meta-user/recipes-apps/libfocserver/files/focserver/focserver_main.cpp | 552697ae15a9438631b1663c40a0586dd96fc679 | [
"BSD-3-Clause",
"FSFAP",
"MIT"
] | permissive | Xilinx/IIoT-EDDP | eeb4e651b951248c8e3c63b820a36082e7644099 | aa0b2392968479db397d34609eb6062ab128f21c | refs/heads/master | 2023-09-05T11:38:31.401541 | 2022-12-20T13:21:05 | 2022-12-20T13:21:05 | 104,806,091 | 82 | 36 | null | null | null | null | UTF-8 | C++ | false | false | 11,096 | cpp | focserver_main.cpp | /// \file focserver_main.cpp
/// \brief Implementation of the function focserver_main.
///
/// \version 1.0
/// \date 2017
/// \copyright SPDX: BSD-3-Clause 2016-2017 Trenz Electronic GmbH
#include "focserver_main.h"
#include <memory> // std::shared_ptr
#include <stdexcept> // std::exception
#include <... |
4a6db2fca7f01609d432a2af217fbd1d43ef80bd | 313cea8f7e6b84a60eb7da0b9f2d9678ef9be822 | /vectors/shader.h | 58afef2fc7a9b881d04c87d4bfcb8338d1355a9c | [] | no_license | mskafi/vectors | fe1c29d6fd4db6fa7f145ddefc745630ec930d6d | af3aabcd434f4dfe569c5882d094a1ad757b412b | refs/heads/master | 2021-06-24T02:32:30.709430 | 2014-09-04T12:24:43 | 2014-09-04T12:24:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 322 | h | shader.h | //
// shader.h
// vectors
//
// Created by arithma on 5/18/14.
//
//
#ifndef __vectors__shader__
#define __vectors__shader__
#include <iostream>
GLuint compileShader ( GLenum type, const char *shaderSrc );
GLuint compileShaderFromFile ( GLenum type, const char *filename);
#endif /* defined(__vectors__shader__) *... |
5394fd592997731117b8fe75068da7e1be99ddad | e1879c01cd8f827805861f82a6be14ccae004d8c | /FileManager/FileManager.h | b92d351157235746b3743ce8eb4dfec11f7aeede | [] | no_license | ojuneja/FileCatalogue | b4ae0b95d9375db0d5b2830b04e2c3512396ce38 | 55ecb1bee9398ccd2e2bf048962406d99fa325d8 | refs/heads/master | 2021-01-19T04:15:39.827026 | 2016-08-01T21:08:09 | 2016-08-01T21:08:09 | 49,588,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,652 | h | FileManager.h | #ifndef FILEMANAGER_H
#define FILEMANAGER_H
///////////////////////////////////////////////////////////////////
// FileManager.h - header file for FileManager class //
// ver 1.0 //
// //
// ... |
4e1055c3f20884eb323363366550e56d192879a1 | aae189bc0802d3068f138ba4e2e19c43720ca773 | /SaperA/SaperA/SaperA.cpp | cfc78bd9bc72382af22731972bf7a2c53493dc79 | [] | no_license | Schooller/Saper | 02d9132c442d2ef7a1b8197494355ff9ffde64df | a63c5036092573cdceecec78f4e8e5ed15e8c614 | refs/heads/master | 2021-04-26T16:48:04.617146 | 2018-04-10T05:06:00 | 2018-04-10T05:06:00 | 123,975,377 | 0 | 0 | null | null | null | null | MacCentralEurope | C++ | false | false | 9,293 | cpp | SaperA.cpp | // SaperA.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <ctime>
#include <string>
#include <conio.h>
#include <Windows.h>
using namespace std;
bool keyPlay = false, keyGame = false, retGame = false, keywin =false;
string level = "Beginner";
class Game... |
33b390a2ac7941277455044815242ca9ff406b0e | cbb8cc0b7d61961b1bb880435af5fb63b53454cd | /Check/v0.0.3/src/Corrector.CLI/cells/2016/516020910175/L62/MFC/3/3.h | c381d9f8b0d1a74d30f285722a7541bbb2f7b7cb | [] | no_license | StarkShang/Projects | 91ba09570fb3ee4e655ae3ae1b855d18524fcd74 | 5f6a3332db2ae1e2188a5aad2826d18022f2f57c | refs/heads/master | 2020-07-30T05:43:13.708514 | 2017-04-17T13:51:23 | 2017-04-17T13:51:23 | 73,653,507 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 433 | h | 3.h |
// 3.h : PROJECT_NAME 应用程序的主头文件
//
#pragma once
#ifndef __AFXWIN_H__
#error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件"
#endif
#include "resource.h" // 主符号
// CMy3App:
// 有关此类的实现,请参阅 3.cpp
//
class CMy3App : public CWinApp
{
public:
CMy3App();
// 重写
public:
virtual BOOL InitInstance();
// 实现
DECLARE_MESSAGE_MAP()
}... |
7f0d31b7161f190b70029b4835256e0663166a92 | c8c6d9c4ed1c3e7402c3ed920eb785dd5d874476 | /src/hubDB/include_stud/fileMgr.h | da9020621602ba4952c71360373e4737954fd9b4 | [] | no_license | GunniMueller/GMHUBDB | 119796da7f8476ff424d11dbf63f939c480d2da8 | 00e6253bb53415d8b187249dd09a1fba36ad0973 | refs/heads/master | 2021-01-10T17:46:42.419244 | 2015-12-19T20:13:54 | 2015-12-19T20:13:54 | 48,295,592 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 5,855 | h | fileMgr.h | //
// Die Klassendefinition enthaelt nur die zu implementierende
// Schnittstelle (public) ! Implementationsspezifische Details sind
// in geeigneter Weise zu ergaenzen.
//
// ------------------------------------------------------------------------
//
//
// Der File Manager erlaubt das Anlegen, Loeschen, Oeffnen, Schli... |
c83c7ba4c3221088c27f4045b87fd8d6786da97f | 509a769719381f82b0e3df92022638ed9882e211 | /hw6/Classes/RenderingEngine.cpp | e86e7a7c08ab8988241c5c166f7c5b6499c20475 | [] | no_license | ekreloff/4239Projects | 5eb7544501584617503ae202bca08280a109c315 | 28ded015173bbf12ce7892383ac27b8e2d2adb5b | refs/heads/master | 2021-04-09T17:16:45.754807 | 2014-04-29T03:07:03 | 2014-04-29T03:07:03 | 16,127,393 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,461 | cpp | RenderingEngine.cpp | //
// Generic renderer functions
// No OpenGL here
//
#include "RenderingEngine.h"
//
// Determine rotation direction
// 0 - match
// +1 clockwise
// -i counter-clockwise
float RenderingEngine::RotationDirection() const
{
float delta = desiredAngle - currentAngle;
if (delta==0)
return 0;
els... |
e3ef20194339e09d1f111cb7f4b7bd81697bf980 | f8d76935f342abceff51a90a2844110ac57a4d2e | /solution/srm382_charmingticketseasy.cpp | 96971022b522e9c77ac8b597927e00f10e12c82e | [] | no_license | rick-qiu/topcoder | b36cc5bc571f1cbc7be18fdc863a1800deeb5de1 | 04adddbdc49e35e10090d33618be90fc8d3b8e7d | refs/heads/master | 2021-01-01T05:59:41.264459 | 2014-05-22T06:14:43 | 2014-05-22T06:14:43 | 11,315,215 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 39,161 | cpp | srm382_charmingticketseasy.cpp | /*******************************************************************************
* Automatically generated code for TopCode SRM Problem
* Problem URL: http://community.topcoder.com/stat?c=problem_statement&pm=8470
*******************************************************************************/
#include <vector>
#... |
5eeed8482fcca87aea8f655b46e433ac350c09d1 | 112a0cb577e1423278efa7685d195c956d5f2e30 | /accepted/p10050_hartals/acm.cpp | 9da49ec90560d765ad890d6f9d9d1dafd849cecb | [] | no_license | sca1a/acm-valladolid | 8880f406545b29bbf790f74a2d5d73c5a1807119 | d539373779a8b4224160f45aa8d1c4272f48c281 | refs/heads/master | 2020-12-25T05:27:15.327812 | 2012-05-17T03:43:58 | 2012-05-17T03:43:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,031 | cpp | acm.cpp | /* @JUDGE_ID: 40922FK 10050 C++ */
/* @BEGIN_OF_SOURCE_CODE */
/**************************************************************************
Solution to Problem 10050 - Hartals
by: Francisco Dibar
date: Jan-01-2006
**************************************************************************/
//#define D... |
f7214bd4825d11242017776d7fa5dcd12a5b126a | 9fdd100e5b9ce106918851534a66f4b636658a0e | /sys/lib/lkuser/thread.cpp | d0c2d970d4b1840d575ea90e69867f0aec293c53 | [] | no_license | littlekernel/lkuser | d95f67e2bd56595ee7a2e9e05689a54995a6a49e | f81638fba695954f63785cf9536dfb31451048cc | refs/heads/master | 2022-06-14T05:58:08.600683 | 2022-05-30T03:06:52 | 2022-05-30T03:09:24 | 42,891,038 | 21 | 11 | null | null | null | null | UTF-8 | C++ | false | false | 3,025 | cpp | thread.cpp | /*
* Copyright (c) 2015-2022 Travis Geiselbrecht
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, m... |
a52ff859a73084594a289f5f0811bff347312764 | 4a2a31cf2047fa266e98bface74b1b42eca3b42a | /RiyadisiDevelopment/RiyadisiDev/TrainingFileCreator.cpp | f6a63f823b589984937fc61544dcb8684c5839ab | [] | no_license | SankaD/Riyadisi | d6b46e2a1e223e1f1dbb9c274d58018c394ee78c | 3f8faa3dbed06ca6ec4cf4c13d05944b36efecbb | refs/heads/master | 2021-03-27T12:39:08.577824 | 2013-12-07T03:34:11 | 2013-12-07T03:34:11 | 10,100,107 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,268 | cpp | TrainingFileCreator.cpp | #include "TrainingFileCreator.h"
TrainingFileCreator::TrainingFileCreator ( void ) {
}
TrainingFileCreator::~TrainingFileCreator ( void ) {
}
void TrainingFileCreator::trainUsingFile ( string fileName ) {
try {
int fileCount ;
ifstream listFileStream ( fileName );
if ( listFileStream.... |
e8829043a2a7cdd10a9d2c3e1301fc3cf4470430 | cfcd48c2307743554395ee775df2521093f25ddc | /chapter08/employee/employee_1/employee/main.cpp | 13c82e16da2e281d2283f7568f1d09cffcdecf90 | [] | no_license | KIJUNG-CHAE/cpp | 96a741ca5668c11ed6b6ece9e3ce3054cad3d6dc | b0bfc7efdd3c2625623863d42eb1292b15062e11 | refs/heads/master | 2020-12-05T21:13:15.032649 | 2020-02-04T15:53:36 | 2020-02-04T15:53:36 | 232,249,055 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | cpp | main.cpp | #include "department.h"
#include "permanant.h"
#include "Temp.h"
#include "employee.h"
int main() {
department dept;
Employee* emp;
emp = new permanant("kim", 1000000);
dept.AddEmp(emp);
dept.AddEmp(new permanant("Lee", 2000000));
dept.AddEmp(new permanant("Park", 1500000));
emp = new Temp("chae", "10... |
d2858b15f627493f05ef147af923049a91c46c0d | 6fd1492c8f46b8fd0f02145482397d6d8fa479be | /source/Effet.h | 1367fd569a201020eef88b68624d77108a8f9256 | [] | no_license | jgilliot/DungeonsAndDragons | a53fa6b6244dae83a8e25794b68df4cd83de3f71 | 055e41c4e356db3ead5a8648a3fac10289a82de9 | refs/heads/master | 2016-09-05T17:31:14.772051 | 2013-05-28T21:28:47 | 2013-05-28T21:28:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 613 | h | Effet.h | #ifndef EFFET_H
#define EFFET_H
class Effet{
public:
Effet();
Effet(char * nom,int pvMax,int pv,int mana,int manaMax,int force,int habilete,int intelligence,int endurance, int chance);
char * getNom();
int getBonus_pvMax();
int getBonus_pv();
int getBonus_mana();
int getBonus_manaMax();
int getBonus_force();
int getB... |
e16a95d57cc7ed2e37487f366ed95185930f4923 | 95121b915de3d4ed43b33ec605a543c2812c82c1 | /projects/proj3/sb-play.cpp | d6a1cf97ec390bb5689cc30c75b2e40150a3d9d3 | [] | no_license | Legoman6157/CS302_Spring-2020 | c976a5362da7dcf5f98f0211f3eb7fdb178db6f9 | ce4c8d0edcb1f7933e08a4da55902438672441e5 | refs/heads/master | 2022-04-16T09:07:03.367745 | 2020-04-10T20:40:29 | 2020-04-10T20:40:29 | 233,651,229 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,992 | cpp | sb-play.cpp | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctype.h>
#include <fstream>
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
#include "disjoint.h"
#define talloc(type, num) (type *) malloc(sizeof(type)*(num))
struct pixel {
int x,
y;
pixel() {};... |
f9fda0a5bdbf75b37b652ae24faa289cabd37810 | 2121420a74021ebfac4010975111664c69b4b9f0 | /Comp Sci/Programming Challenge - Chapter 7/Gratuity Calculator.cpp | 3a444548263473790676afee40ab8c975343560e | [] | no_license | CyberExplosion/Comp_Sci_1 | a0a0576b765e5a9b42f6a1ef558b255a851231ca | a88a971590052543c9fd7a83f06b080cdae0921f | refs/heads/master | 2022-04-11T16:35:04.204523 | 2020-02-24T10:24:40 | 2020-02-24T10:24:40 | 172,285,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,850 | cpp | Gratuity Calculator.cpp | //#include <iostream>
//#include <cmath>
//#include <iomanip>
//using namespace std;
//
//class Tips {
//private:
// double tax_rate;
//public:
// Tips() : tax_rate(0.065) {};
// Tips(double tax) : tax_rate(tax) {};
// double computeTip(double,double);
//};
//
//int main() {
// double tax,
// total,
// tip;
// char c... |
b844d7628fd2aa132ef8ffbba5e1e4bb132c3ab2 | dc341222eda712f06e6cb774d01009ae62c2032a | /classifier.cpp | f9ab20ad2636065798632508d1e097aa1cb2d4ec | [] | no_license | dntai/ML_FinalProject | 616851063eb0024d3f472e1527366247d986e42a | ede3253d79e16f3777fca6ec988a481bd2769b3e | refs/heads/master | 2021-05-10T16:37:47.717747 | 2015-06-16T03:05:17 | 2015-06-16T03:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,325 | cpp | classifier.cpp | #include "classifier.h"
classifier::classifier(QObject *parent) : QObject(parent)
{
//set SVM type and kernel
SVMParameters.svmType = cv::ml::SVM::C_SVC;
SVMParameters.kernelType = cv::ml::SVM::RBF;
//for RBF
SVMParameters.gamma = 0.1;
SVMParameters.C = 1;
}
classifier::~classifier()
{
}
voi... |
d93902cebc45201278469a8018e6a7675928c524 | e91a1eb816c822e75441e17fbedf03125a3fb6ee | /Snake/Poisons.cpp | 6f7922c3a17b65ae9a66e1548ea46e51f56fcaf7 | [] | no_license | dmitryshutkin/Snake | 677fbae0ee4276b4f231f8d3438bce15d8dd8eb4 | 949701b6c7578dc153d72ec61bec77c2c20d7081 | refs/heads/master | 2021-01-21T04:19:06.121941 | 2016-07-30T05:34:00 | 2016-07-30T05:34:00 | 47,473,912 | 0 | 0 | null | 2015-12-17T00:22:52 | 2015-12-05T21:47:13 | C++ | UTF-8 | C++ | false | false | 504 | cpp | Poisons.cpp | #include "Poisons.h"
#include "AbstractGameWorld.h"
#include <ctime>
#include <cstdlib>
Poisons::Poisons(AbstractGameWorld & w) : AbstractGameObject(w)
{
for (size_t i = 0; i < NumOfPoisons; ++i)
NewPoison();
}
void Poisons::NewPoison()
{
size_t x, y;
do {
srand(static_cast<unsigned int>(time(0)));
x ... |
8df9ff73aac0c6a859e8deb65472272bd0227a18 | dc33eb88ca508a3d4cc043fff402ccfa7babbac4 | /Sources/Backend/hermes/db/HMMailDBChangePeopleConversationsFlagsOperation.cpp | 6b3005c3c71b704c3ada0ba8daff43f41abd3822 | [
"BSD-3-Clause"
] | permissive | mquantin/dejalu | 395e03768a16ab04126eac011682903e8e3883b4 | c1c0b60c9c4a1d3f9ec5847058e4e55ebbb9a209 | refs/heads/master | 2022-01-12T10:24:36.783695 | 2019-01-08T05:39:39 | 2019-01-08T05:39:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,657 | cpp | HMMailDBChangePeopleConversationsFlagsOperation.cpp | // DejaLu
// Copyright (c) 2015 Hoa V. DINH. All rights reserved.
#include "HMMailDBChangePeopleConversationsFlagsOperation.h"
#include "HMMailDB.h"
using namespace hermes;
using namespace mailcore;
MailDBChangePeopleConversationsFlagsOperation::MailDBChangePeopleConversationsFlagsOperation()
{
mConversationsID... |
527af2c626c110af7caf42674996370e96699b1f | 50d345f9657d8cf08c0ebf27a62972411955d91e | /GenLib/Source/cWnd.h | 872235cd70e6eab9c0c280064b901016cc39594e | [] | no_license | davidlcarson/HexBoardPT | 3f3a88800cc2615bdbaa2156fd6368b2df28ce7f | 9edd22666eca45f4dd63e3e785fd8c42b2800fe7 | refs/heads/master | 2020-03-23T02:47:54.178938 | 2018-07-15T22:01:31 | 2018-07-15T22:01:31 | 140,992,613 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,738 | h | cWnd.h | #pragma once
//gamelib version
//4/19/04
#include "Globdefs.h"
//base window class: requires some derived functions
//----------------------------------------------------------------------+
class cWND{
protected:
WNDCLASSEX m_wc;
HWND m_hWnd;
HWND m_hParent;
//HDC m_hdc;
HBRUSH m_hBGBrush;
boo... |
9c684210659a687787d0595347c35fbaf91a2212 | aa7937baaae5466d40c485a31ecd222a8fe03c57 | /dx12CommonCore/src/RootParameter.cpp | 200c514ab86f828872badbae3140874a9b26e4ee | [] | no_license | shenyczz/KLibrary3D | ab2acfb36bb175abbb8f03bbd866d55827cfb044 | 61156579fccf70b63de78527695f7cd834155308 | refs/heads/master | 2020-11-24T13:47:08.249601 | 2020-07-24T06:38:40 | 2020-07-24T06:38:40 | 228,175,401 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,671 | cpp | RootParameter.cpp | #include "stdafx.h"
#include "RootParameter.h"
namespace dx12
{
RootParameter::RootParameter()
{
m_RootParam.ParameterType = (D3D12_ROOT_PARAMETER_TYPE)0xFFFFFFFF;
}
RootParameter::~RootParameter()
{
Clear();
}
void RootParameter::Clear()
{
if (m_RootParam.ParameterType == D3D12_ROOT_PARAMETER_TYPE_DE... |
659d4e5144c186e050591a81b345348c5406914a | 360f89927e43972664e1856cdfa4a11723491437 | /street_list.h | 3d451d107ea806443d125e4607abb6ff5ff71b28 | [] | no_license | nfejzic/cosy_sbg_cpp_assignment | ed777ed4fb58136cce04f2f90c0ea2e8ba91be25 | 600e19db9f1359466d70e3ae474b3095f5806621 | refs/heads/main | 2023-05-19T06:09:22.985325 | 2021-06-11T09:35:46 | 2021-06-11T09:35:46 | 375,970,785 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,084 | h | street_list.h | #ifndef STREET_LIST_H
#define STREET_LIST_H
#include "street.h"
#include <set>
#include <vector>
using namespace std;
class StreetList {
public:
/** Constructor
* - stream - reference to input stream of file with street data
* - cities - list containing relevant cities
*/
StreetList(ifstream &stream, Ci... |
ed374e80ca3c6942f4deadc29434b7463d53eba4 | 0ee065063f72a8391445cd114a0d902209692e6d | /src/globals.cpp | 1324483e0f4abf2aacb5d6599c41823629f06bde | [
"MIT"
] | permissive | Aslai/WinWidgets | 89ad0d62d1d74fbc65ebb4af988455ddfbdc4335 | 36fa30ab18bb2bee8e4ed3eda9159d43c43f24e0 | refs/heads/master | 2020-06-03T11:59:46.689398 | 2014-03-06T04:16:12 | 2014-03-06T04:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 100 | cpp | globals.cpp | #include "globals.h"
#include <windows.h>
namespace WinWidgets{
HINSTANCE Global::hInstance;
}
|
eb83ff563ae0750b08d2fe9b7931cc2da2f42b26 | 1965dc94ec82e0a2e898cb77409db934b8ecb943 | /Biopool/Sources/SimpleBond.h | e8d17ad54d1eff98e9ac05d7437a16008173aead | [] | no_license | LaylaHirsh/Victor | c74fe34dae7c25982b7bf797fba5bfbc1f9470c5 | a06a258de6a1ea15e03721efc591f299d66ae7b5 | refs/heads/master | 2021-01-24T02:23:34.892160 | 2014-08-19T14:07:30 | 2014-08-19T14:07:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,110 | h | SimpleBond.h |
#ifndef _SIMPLEBOND_H_
#define _SIMPLEBOND_H_
// Includes:
#include <algorithm>
#include <vector>
#include <string>
//#include <Debug.h>
#include <Identity.h>
using namespace std;
// Global constants, typedefs, etc. (to avoid):
/** @brief Defines chemical and abstract bonds between objects.
* eg.: c... |
a6db299899708d746059fc4ca69c4f28ff5caa2e | c5a9369ba9ed3b6343efad47c076bc60bdc952d3 | /cracking_the_coding_interview/ll/2.1/main.cpp | 4bf4f6331d61439edf87879e284df943c4feeb56 | [] | no_license | pv1551973/CPlusPlus | f04f560bae4ad2559a6d7ee6d2238dfa688adc88 | 2bfce13f7a33ad6645c9e349ab91243bdabf37df | refs/heads/master | 2023-08-22T13:40:43.265112 | 2023-08-02T22:25:41 | 2023-08-02T22:25:41 | 134,385,056 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,982 | cpp | main.cpp | #include "code.hpp"
#include <string>
#include <iostream>
#include <vector>
#include <cassert>
using std::string;
using std::cout;
using std::endl;
using std::vector;
void load_menu(void);
void rectify_menu (void);
void reverse_menu (void);
void print_menu(void);
list<node<string>>menu;
vector<string>menu_items{"past... |
a1c19fdd110877950d915a29611d4e0b4444033a | 5bc6d2f91576ef8b3c75028951860495aafad1cb | /src/fvm/src/modules/esbgkbase/GenericKineticIBDiscretization.h | 5f10b817c9fa11838d6a769d074c045f318f5a85 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | jamesmloy/fvm | 7b4f1ed619de52bb8215623beb3f8b2c27f628d3 | 13ba38f73da7fd19fa9eb8e44c51b0fd9c882614 | refs/heads/master | 2021-01-13T12:54:51.994777 | 2016-12-11T21:06:57 | 2016-12-11T21:06:57 | 72,786,954 | 0 | 0 | null | 2016-11-03T21:07:33 | 2016-11-03T21:07:33 | null | UTF-8 | C++ | false | false | 6,177 | h | GenericKineticIBDiscretization.h | // This file os part of FVM
// Copyright (c) 2012 FVM Authors
// See LICENSE file for terms.
#ifndef _GENERICKINETICIBDISCRETIZATION_H_
#define _GENERICKINETICIBDISCRETIZATION_H_
#include "CRMatrix.h"
#include "Field.h"
#include "MultiField.h"
#include "MultiFieldMatrix.h"
#include "Mesh.h"
#include "Discretization.h... |
77f8aad255d47d3eee104cc18940d7c701262997 | e5a37a543ca382ed3eaab28c37d267b04ad667c0 | /probrems/SRM412div1/easy.cpp | d8de53d584ea41831eb0ef14cad7772d8230d1b6 | [] | no_license | akawashiro/competitiveProgramming | 6dfbe626c2e2433d5e702e9431ee9de2c41337ed | ee8a582c80dbd5716ae900a02e8ea67ff8daae4b | refs/heads/master | 2018-09-02T19:49:22.460865 | 2018-06-30T05:45:51 | 2018-06-30T05:45:51 | 71,694,415 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 570 | cpp | easy.cpp | #include <cmath>
#include <vector>
using namespace std;
typedef long long LL;
class ForbiddenStrings
{
public:
long long countNotForbidden(int n)
{
if(n==1) return 3;
n-=2;
vector<LL> DP(9,1);
for(int i=0;i<n;i++)
{
vector<LL> v(9,0);
v[0]=DP[0]+DP[3]+DP[6];
v[1]=DP[0]+DP[3];
v[2]=... |
6d2d5ecfec920f1a987484fb795f10d6fa37e8f5 | ab2f919463f03516def67cb6a1ec2424400a4889 | /src/Entity/Components/RacingControlComponent.hpp | dea42d8d5b1a4699b8ee9ce86eecb7968ea97579 | [] | no_license | SimonNitzsche/OpCrux-Server | e8a4a4b08ea967d8ae40b848ee546a267b52097d | 969a2a133f349b554345d871b66bb791eb288bff | refs/heads/master | 2023-04-28T11:19:20.233977 | 2021-05-19T07:15:25 | 2021-05-19T07:15:25 | 131,524,032 | 14 | 4 | null | 2021-04-13T05:16:17 | 2018-04-29T19:39:06 | C | UTF-8 | C++ | false | false | 6,418 | hpp | RacingControlComponent.hpp | #ifndef __REPLICA__COMPONENTS__RACING_CONTROL_COMPONENT_HPP__
#define __REPLICA__COMPONENTS__RACING_CONTROL_COMPONENT_HPP__
#include "Entity/Components/Interface/IEntityComponent.hpp"
#include "Entity/Components/StatsComponent.hpp"
#include "Entity/Components/PhantomPhysicsComponent.hpp"
#include "Entity/Components/S... |
cca86eefc9fcbee0a420f90e6f90ee6a94e61a75 | 7c5df34d38e17bb83ace89b0bb41830c58a4f34f | /OrMax.h | 8e0ba2bce6c872fb3615397c2e3d1df6edda8aa5 | [] | no_license | Khoob/FrameWorkFlou | e1e93a17fa858e434e7900c0f5b6e2d94c3bcdf7 | 7292b5bd0fc687aae413dfd9de95550f35cb2912 | refs/heads/master | 2021-04-12T10:18:23.225529 | 2018-06-07T15:26:42 | 2018-06-07T15:26:42 | 126,242,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 422 | h | OrMax.h | #ifndef ORMAX_H
#define ORMAX_H
#include "Or.h"
namespace core {
template <class T>
class OrMax : public Or<T> {
public:
T evaluate(Expression<T>* l, Expression<T>* r) const;
};
template <class T> T OrMax<T>::evaluate(Expression<T>* l, Expression<T>* r) const {
T val;
if (l->evaluate() > r->ev... |
fa0260dda1cdd858a3b0de3ff72105af4e2a6bdc | 4739de0e939fd96cf89fd8df80a99417a56b3105 | /MinesweeperQt/mainwindow.cpp | a291a97a3ce77334e66edc5e6b823b5abb099de4 | [
"MIT"
] | permissive | PaintNinja/MinesweeperQt | b0286dc5bb3fbe3246e0df5afdc436f771b15121 | 5db6b0a4eeab3a8afc104947e36fe5666604aa1c | refs/heads/master | 2020-03-23T14:40:30.814996 | 2018-07-20T13:58:07 | 2018-07-20T13:58:07 | 141,692,081 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,450 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <iostream>
#include <stdio.h>
using namespace std;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_actionQuit_trigger... |
ce19b13797cb251176f3a2e13700f0d44c66acce | 67bda8efffcb432442a2ed16762ba70c852d7daa | /tut/passiveScalarsimpleFoam/tut/streetCanyon2D3/2600/k | 5de25d76eb85cbb8bd8f4b517702d73d26ca2267 | [] | no_license | YanWang2014/Gas-dispersion-by-OpenFOAM | 78b5e1f6d41656844cf8ecd7db2b54c80d2ea64a | 3d8340ec14b3b503342e5f46860f1796c21ae38c | refs/heads/master | 2020-04-10T18:24:37.081057 | 2016-09-17T02:31:18 | 2016-09-17T02:31:18 | 68,113,526 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 137,273 | k | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.1 |
... | |
2988390835bb9c8bb728832b3fa9e254aebf3580 | 35c3167cae7706538d340cea12da9970039f6a96 | /Sample/ListDirectories/TimeBasedFileSorting.h | e7d77b2980e3fe2e442366adcfdee5676157d199 | [] | no_license | arundas005/cpplab | e240ef5448fca175131ac539d939bee1ad781fc9 | c6e0ce6e83904848372b9a45b4ab991eaf97809e | refs/heads/master | 2021-07-30T16:00:51.347308 | 2021-07-24T17:42:49 | 2021-07-24T17:42:49 | 192,053,006 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 521 | h | TimeBasedFileSorting.h | #pragma once
#include <string>
#include <vector>
#include <filesystem>
namespace fs = std::filesystem;
class TimeBasedFileSorting
{
std::string _fullPath;
bool _directoriesOnly;
bool _sortAscending;
std::vector<fs::directory_entry> _contentList;
void sortContent();
void convertPathtoString(std::vector<std::stri... |
9dc3e6931cf8cd9d45fbb87845c657063df0a982 | 99f711303beb42a7edd17643a87422e815a004b1 | /animal.cpp | b42b9391bb2af7af7701edf09e53dd330408b652 | [] | no_license | wellheup/CS162_ZooTycoon | 5b773a97ce8aefca477c783af392c12068ff48c2 | 4f511a69ab15bff18ee50ed1e0e37f49e27bba8c | refs/heads/master | 2023-02-10T07:21:07.609498 | 2021-01-06T23:04:19 | 2021-01-06T23:04:19 | 327,449,143 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,086 | cpp | animal.cpp | /*********************************************************************
** Author: Phillip Wellheuser CS 162-400
** Date: 4/28/19
** Description: Implements Animal class
*********************************************************************/
#include <iostream>
#include <string>
#include "menuShell.hpp"
#... |
93ea1a47010fcefa26c814bce45a730fcfb117dc | f87666bdac0678d2ffffeef4cfa0ff4c25d89ec8 | /source/XML.cpp | 9657f63cfc2172a7cf71b44c272779b17dd62f8b | [] | no_license | jacikot/Photoshop | 3f98288fa69727df38784374bf3265c6f674f8e2 | 20f46a97e8400990b1fc94ac376882244f43d12c | refs/heads/master | 2023-04-03T12:36:23.635583 | 2021-04-06T09:49:54 | 2021-04-06T09:49:54 | 355,128,216 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,581 | cpp | XML.cpp | #include "rapidxml.hpp"
#include"rapidxml_print.hpp"
#include"rapidxml_iterators.hpp"
#include"XML.h"
#include<regex>
#include<algorithm>
#include<string>
#include<iostream>
#include<fstream>
#include<Windows.h>
#include"Rectangle.h"
#include"Errors.h"
//#include <sstream>
using namespace std;
using namespace rapidxml;... |
1d8b492cc1fe0bc049034563abe681c93d1f021a | 0475f27153a1081143804f0ecf99dd4476633575 | /c++primer/ch6/ex6.10/cpp/swap.cpp | 477c0fbd2c77cfe10517520a43126f6a71260f0d | [] | no_license | smc897/c-plus-plus-primer | 3a21e4a81bd2885ff85286fba86b4796f13e2760 | 35c5919c08cf14a7cd8070ce1819c77c08d0449b | refs/heads/main | 2023-03-01T01:13:58.545915 | 2021-02-14T19:30:27 | 2021-02-14T19:30:27 | 338,884,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 95 | cpp | swap.cpp | #include "../h/ex6_10.h"
void swap(int* a, int* b){
int tmp=*a;
*a=*b;
*b=tmp;
return;
}
|
9eda982ea8cd7d83a9db54bb35ccc0f1d4fadc86 | aae0e6a93832df2de49536751081c66b0c6fb7bd | /src/StateRenderer.cpp | fac5221956aaff8597a0289f72d2645d8de29ba4 | [] | no_license | christian-rauch/robot_state_renderer | 1d9ae2a09ef4d08e86420526f1fe15e642beb370 | 6fd72d178e9d41b2edfce2d19fb230a81510377b | refs/heads/master | 2020-03-20T02:57:04.521183 | 2019-10-03T12:58:41 | 2019-10-03T12:58:41 | 137,129,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,709 | cpp | StateRenderer.cpp | #include <StateRenderer.hpp>
#include <thread>
#include <eigen_conversions/eigen_msg.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/point_cloud2_iterator.h>
#define WINDOW_NAME "StateRenderer"
#define DISP_FREE_VIS "free_view_vis"
#define DISP_ROBO_VIS "robot_view_vis"
#include <experimental/filesystem>
na... |
adc33c871656cd4d431b3207efbedf471d0486a7 | accd24f44d82b9164310d56dc35e908edc97fd6c | /src/Grid.h | 7b0c1a1baed3e46fb34031e026366735a1973d14 | [
"MIT"
] | permissive | kocica/EvacuationSimulator | e192c2e398b0243e4c24a31fbf3cb5d64352cace | 5c12057292620211a41062796facb84b1b9d7fd7 | refs/heads/master | 2020-04-08T20:25:55.653616 | 2018-12-29T14:43:51 | 2018-12-29T14:43:51 | 159,698,939 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,481 | h | Grid.h | /**
* Cellular Automata Evacuation Model Considering Information
* Transfer in Building with Obstacles
*
* @file Grid.h
* @date 14/11/2018
*
* @author Filip Kocica <xkocic01@stud.fit.vutbr.cz>
* @author Ondrej Vasicek <xvasic25@stud.fit.vutbr.cz>
*
* @brief Implementation of Grid of Cells
*/
#pragma once... |
0f7ee8db0945e5300ebd7ab0b400ea4dd3b61f30 | 70f6639cc5b453e4985d37cacb7521f4736bc873 | /qEngineV2/qEngine/qVertexCache.cpp | b36bf7dfa497c4c9e753bbc8e1ecb6fcf2afa0ee | [] | no_license | qdot/np_boneyard | 7621e85af0d8b556c8b811f9ec5b2bb71940fe82 | 64147a92129097c60ebe0115ec54a8dd5a72c803 | refs/heads/master | 2020-05-04T20:13:17.533947 | 2010-08-09T02:02:57 | 2010-08-09T02:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,647 | cpp | qVertexCache.cpp | #include "qvertexcache.h"
namespace qEngine
{
// qVertexCache.cpp: implementation of the CVertexCache class.
//
//////////////////////////////////////////////////////////////////////
#include "qVertexCache.h"
#define SAFE_RELEASE(x) if (x) {x->Release(); x=NULL; }
////////////////////////////////////////////... |
e1b56bb1ea95cc0e258b2b2ece3cfb4343e3abc8 | 7b6c1950774a3ca0296123c1b3f9ac29e1972010 | /code/save_before/0730/2.cpp | bd9cbb6efb2b771a25c981c452feb0e469cd13ed | [
"MIT"
] | permissive | EGyeom/egyeom.github.io | ff0a05d6db65eb427efc464413c3032e12ef5e11 | 412d72cbc8e31c5fc36dc9ce39984c70ec170320 | refs/heads/main | 2023-08-29T02:50:37.872075 | 2021-11-05T09:47:59 | 2021-11-05T09:47:59 | 372,237,159 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,607 | cpp | 2.cpp | // 임의의 양의 정수 n에 대해, n이 어떤 양의 정수 x의 제곱인지 아닌지 판단하려 합니다.
// n이 양의 정수 x의 제곱이라면 x+1의 제곱을 리턴하고, n이 양의 정수 x의 제곱이 아니라면 -1을 리턴하는 함수를 완성하세요.
// 제한 사항
// n은 1이상, 50000000000000 이하인 양의 정수입니다.
// 입출력 예
// n return
// 121 144
// 3 -1
// 입출력 예 설명
// 입출력 예#1
// 121은 양의 정수 11의 제곱이므로, (11+1)를 제곱한 144를 리턴합니다.
// 입출력 예#2
// 3은 양의 정수의 제곱... |
89cece7ac70b6e600864f56a73a2a043396492c6 | 7def85a6390c5acc4c999c508ad65748e3c2382d | /jsonTest/muletest.cpp | 5922f38b27206344dc64e08242d8e031de78875e | [] | no_license | JishnuJayaraj/AdvPt | b0eaf6b5762ec90a0453dc73041d83beef5c7e06 | 6ab8e1193498b5109a0627d4bdaa29d494ee92cc | refs/heads/master | 2021-06-27T06:36:34.999430 | 2020-10-26T11:32:34 | 2020-10-26T11:32:34 | 171,672,034 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 511 | cpp | muletest.cpp | #include <iostream>
#include <vector>
#include <iterator>
main()
{
using namespace std;
std::vector<int> mule;
mule.push_back(3);
mule.push_back(10);
mule.push_back(48);
mule.push_back(32);
mule.push_back(11);
mule.push_back(56);
int t = 32;
for (int x : mule)
cout << x << " ";
int i = 0;
for ... |
e836904cc85199ac7a9ca87f5cb789ad2c8467ab | 6a661afe84e291d134d0a20db63c6884e8f53cde | /utils/cpp_libft/stoll_base.cpp | 7be0c7c6a14891cb6928dc986d1037cb18e473db | [] | no_license | AiratZa/webserv | 33a749e3795e283fa5ab5c893f5a1957aa8a407b | 9832cbab2c5aac7987b62a24ee54fee8360744f7 | refs/heads/master | 2023-03-21T11:51:08.090184 | 2021-03-16T16:53:40 | 2021-03-16T16:53:40 | 336,391,560 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 778 | cpp | stoll_base.cpp | //
// Created by airat on 21.02.2021.
//
#include "libft.hpp"
long long libft::stoll_base(const std::string& str, int base)
{
(void)base;
long long nb;
int i;
int minus;
nb = 0;
i = 0;
minus = 0;
while (isspace((int)str[i]))
i++;
if (str[i] == '-')
{
minus = 1;... |
dcfc858e9916315f2a9988643d8469a6ea4e0caf | da5c9b96d42cc280e3866c6fc242c7f85bc891f7 | /Samples/05_Window/Main.cpp | 31c72ab5ad283a358d8c3e38972931563744a51f | [
"MIT",
"Zlib"
] | permissive | parhelia512/alimer | 641699a65f07f5810527b1ae3785ea5d43b751bf | b46c8b7bdbf11f2f6305a10d5372dbc61b595ab1 | refs/heads/master | 2020-03-15T04:22:04.540043 | 2018-05-02T18:46:15 | 2018-05-02T18:46:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,263 | cpp | Main.cpp | //
// Alimer is based on the Turso3D codebase.
// Copyright (c) 2018 Amer Koleci and contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without... |
a28f6703a8d6df86d42ce210870bd239209b5e2d | 1e910e24f0ae1601d4004a4e908aeffb417e1b59 | /CaptureTheFlag/Code/Engine/Graphics/cSprite.h | e2a37eb2f7918ec9de499c3b9e4d0aace0452c78 | [] | no_license | rohan-more/Portfolio | 2c2ac3fdd4f02664ca775d0a0a98c880b5e0a9e1 | 054505da7c8f4c3cb5ff6796be005c963454c50c | refs/heads/master | 2022-06-23T06:30:25.745221 | 2022-06-16T15:27:31 | 2022-06-16T15:27:31 | 50,758,493 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,736 | h | cSprite.h | /*
A sprite is a quad (two triangle square) drawn in 2D
*/
#ifndef EAE6320_GRAPHICS_CSPRITE_H
#define EAE6320_GRAPHICS_CSPRITE_H
// Header Files
//=============
#include "SpriteData.h"
// Forward Declarations
//=====================
#ifdef EAE6320_PLATFORM_D3D
struct ID3D11Buffer;
#elif defined( EAE6320_PLATFORM_... |
d1e242e36566f1759b255e208f53c22327608dcc | 47fa4a728819c0a714bda21c57a0e77726306f55 | /src/mlt/models/pipeline.hpp | 68a7fc7b824ff55f137787cb737d02d335e36a35 | [
"MIT"
] | permissive | fedeallocati/mlt | 0c0461bf699de7bf9260266cca35512d87de3276 | 8614ee2c8c5211a3eefceb10a50576e0485cefd9 | refs/heads/master | 2021-06-11T13:02:26.697884 | 2016-11-03T15:45:16 | 2016-11-03T15:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,451 | hpp | pipeline.hpp | #ifndef MLT_MODELS_PIPELINE_HPP
#define MLT_MODELS_PIPELINE_HPP
#include <Eigen/Core>
#include "transformers/transformer_mixin.hpp"
namespace mlt {
namespace models {
// Forward declaration
template <class... Ts>
class Pipeline {
};
namespace internal {
template<size_t _Index, class _Pipline>
struct sub_pipe... |
5f87cd27ac4abaa1f0d421557a69387e20c063f6 | bb7645bab64acc5bc93429a6cdf43e1638237980 | /Official Windows Platform Sample/XAML vector-based drawing sample/[C++]-XAML vector-based drawing sample/C++/Scenario3.xaml.cpp | 7c8e345b139fb3e179fa24ed3fa0bd3a49a1e772 | [
"MIT"
] | permissive | Violet26/msdn-code-gallery-microsoft | 3b1d9cfb494dc06b0bd3d509b6b4762eae2e2312 | df0f5129fa839a6de8f0f7f7397a8b290c60ffbb | refs/heads/master | 2020-12-02T02:00:48.716941 | 2020-01-05T22:39:02 | 2020-01-05T22:39:02 | 230,851,047 | 1 | 0 | MIT | 2019-12-30T05:06:00 | 2019-12-30T05:05:59 | null | UTF-8 | C++ | false | false | 3,133 | cpp | Scenario3.xaml.cpp | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
/... |
b3aa240a21b97fe7687232cb91520a59845e2a43 | fec1dca0ce9e18c119b3740c7afb8b5060cea34d | /QtNetworkPlatform/command_login.h | e60832565550976e075a22685f31387a94b7fcad | [] | no_license | saga1979/QtIM | 99c4f50383ca7c8a8d3056d55c72689bca4c6777 | 550b591862b71263c683ce41da82f85b7d76568e | refs/heads/master | 2021-08-18T23:36:15.561338 | 2017-11-24T06:49:43 | 2017-11-24T06:49:43 | 107,350,707 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | h | command_login.h | #pragma once
#include "command_interface.h"
struct QTNETWORKPLATFORM_EXPORT CommandLogin : public Command
{
string id;
string pwd;
virtual int from_data(const string &) override;
virtual CommandType type() const override;
protected:
// Inherited via Command
virtual const string internal_to_data() const overri... |
8db4e71e6c53283688abcf63f84a82572c75c157 | 3f94b7a02800281c1b5f5551f83ef904e63c8faa | /Лабораторная15_4_Чубарева.cpp | f29999c1ff5f198e046fc9cde022d5dc46ec83fb | [] | no_license | Chubareva-Elizaveta/VVP_laboratornye | b039228cd28dbd3fd8ab35a1e0cdf2a51ebc8eaa | fc6126cad7b916361464846e0647e06464ac53f1 | refs/heads/main | 2023-02-16T12:03:24.675570 | 2021-01-14T14:45:24 | 2021-01-14T14:45:24 | 328,628,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | cpp | Лабораторная15_4_Чубарева.cpp | #include <iostream>
using namespace std;
int main()
{
int N;
cin >> N;
int a[N];
int i;
for (i = 0; i < N; ++i) {
cin >> a[i];
}
int min = 0, max = 0;
for (i = N - 1; i >= 0; --i) {
if (a[i] > a[max]) {
max = i;
}
if (a[i] < a[m... |
0a3d0a14630cc07449fdf4c63e555d7452821e98 | 80e44861e4c08629c93633c8bcd2e6de2c3cc8c5 | /tests/src/test_table_base_op.cpp | 1f38621b3c4e7c19b035eea65b58134de5f5eada | [
"Unlicense"
] | permissive | jia-kai/uSQL | 0c4e0f482ac7caa1f10d3354a2cef40d6d933b3f | 484dd93554e4635d8d128a71c48a0723de79fe20 | refs/heads/master | 2016-09-05T19:42:43.484067 | 2015-04-09T01:37:54 | 2015-04-09T01:37:54 | 25,256,347 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,275 | cpp | test_table_base_op.cpp | /*
* @Author: BlahGeek
* @Date: 2014-12-04
* @Last Modified by: BlahGeek
* @Last Modified time: 2014-12-21
*/
#include "./page_io_env.h"
#include "./utils.h"
#include "usql/db/table.h"
#include "usql/ds/btree.h"
#include "usql/datatype/int.h"
#include "usql/datatype/string.h"
#include "usql/exception.h"
using ... |
ed5b140897cf4b1b65c8abe7144c9d236bd31693 | fb1c2e0b2fb66a048de17700cab0cd9c08fd4550 | /Treasure Hunt/Treasure Hunt/Shaman.h | 9d972012b2d598d609ab4a9ff2ca6b0281e018ac | [
"MIT"
] | permissive | IosifGabriel/TreasureHunt | 6438508a7ae440c33ab565812cf8694b6d82bb2c | fd98a931f3a3b5c017e50606b54a8f360ada79ae | refs/heads/master | 2020-05-18T08:49:13.456395 | 2019-04-30T17:50:12 | 2019-04-30T17:50:12 | 184,306,560 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | h | Shaman.h | #pragma once
#include "agents.h"
class Shaman:public agents
{
int x, y;
bool FoundTreasure = false;
bool Blocked = false;
char Name = 'S';
public:
Shaman();
Shaman(int x, int y);
char ReturnName();
void move(map &Map);
bool ReturnFoundTreasure();
bool GotBlocked();
int getterx();... |
3fb5001fbc23fbfde40b22a9d72e1e4a29c26036 | 2ceabf71dd73dfaba6541b16ab9419a70265ea59 | /src/tests/catchy/test_utils.cpp | a01cffa2b88188ea0b0db83f8ecb7e9b86f041ee | [
"BSD-2-Clause"
] | permissive | cryptlex/botan | 4a7ef6ac5866174cffeb75b73269206c4ec7c204 | 92816309828aece4e23a97bac00bccbd8c5a03ee | refs/heads/master | 2020-05-29T11:39:53.119254 | 2015-10-05T20:45:18 | 2015-10-05T20:45:18 | 44,014,375 | 1 | 0 | null | 2015-10-10T14:43:07 | 2015-10-10T14:43:07 | null | UTF-8 | C++ | false | false | 6,207 | cpp | test_utils.cpp | // (C) 2015 Simon Warta (Kullo GmbH)
// Botan is released under the Simplified BSD License (see license.txt)
#include "catchy_tests.h"
#include <botan/calendar.h>
#include <botan/parsing.h>
#include <botan/internal/rounding.h>
using namespace Botan;
TEST_CASE("round_up strictly positive", "[utils]")
{
CHECK_T... |
e6155e6bdcbfe79621dd4fbd03ac893b38e7bcbe | 30cce5faeddaa8b1ef879bde9c2bbf2a5711096a | /09. Array/balikdaftar.cpp | f2286faa6d725ce5abe23dc98ee8e4f36dafa884 | [] | no_license | tustoz/toki | 1aa5d4f52c30cf4c29ecdb5d5b6c3ec8daa3538d | 20b53747b1e7b56b3f1a4c5a40efb4bdefeaecb2 | refs/heads/master | 2023-08-16T18:49:54.761270 | 2021-02-19T01:01:55 | 2021-02-19T01:01:55 | 340,212,755 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 218 | cpp | balikdaftar.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int n = 0, i[100];
while (scanf("d%", &a[x]) == 1){
x += 1;
}
for (int i = x - 1; i >= 0; i++){
cout << a[i] << endl;
}
} |
a65c8513d53c1c14bb079ac611d440a9d03ca4cf | ee8bb6b71932f9b9099de2c52db67f90a6eacdf3 | /BJ_2217_rope/BJ_2217_rope/2217.cpp | c2d5faaf9233dba0931574de2ca1a1f24458f37e | [] | no_license | eodhs0/Algorithm | fa1dbd86bf0c5c6cb766e94be2409ea2b99a8592 | 6d41be6e39c5e9c5b5b54bfb2b8cd0c3568b0a98 | refs/heads/master | 2021-08-19T06:41:16.120826 | 2017-11-25T00:56:50 | 2017-11-25T00:56:50 | 103,704,274 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | cpp | 2217.cpp | #include <iostream>
#include <algorithm>
using namespace std;
int main() {
int n;
cin >> n;
int *rope = new int[n];
for (int i = 0; i < n; i++) {
cin >> rope[i];
}
sort(rope, rope + n);
long int tempMax = 0;
long int realMax = 0;
for (int i = 0; i < n; i++) {
tempMax = rope[i] * (n-i);
if (tempMax... |
397c7ac7875496debe58660a9e5feae821b23a56 | c1ab6e5c2aad6879ae9a4055b273dbd0b824aa81 | /16932-모양_만들기.cpp | eab62f67510b2d88d0c1b21fc2e12f207bdcdbd4 | [] | no_license | arthur12practice/Algorithm | 9c4b2b3b5ac7f0656006161285af71e8c8be6e77 | d7b6ad2319c0ee51fbf8198c55bf628355ed3796 | refs/heads/master | 2023-08-18T07:45:43.608148 | 2021-10-12T06:40:11 | 2021-10-12T06:40:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,337 | cpp | 16932-모양_만들기.cpp | #include<bits/stdc++.h>
using namespace std;
int N,M;
int input[1001][1001];
int arr[1001][1001];
int ret=0;
int my[4]={0,1,0,-1};
int mx[4]={1,0,-1,0};
bool chk[1001][1001];
typedef struct Dat{
int y,x;
}dat;
void bfs(int y,int x){
queue<dat> q,tmp;
q.push({y,x});
while(!q.empty()){
int y... |
3cec14b2705095260463ff5d0c50fd40fc7021ea | 4509f3721d6ebea8fd7f4cb23450d2fe56060c77 | /src/engine/graphics/include/MaterialFactory.h | 03f4869b8fed60d7eb73a848f8945e330733f708 | [] | no_license | Kadowns/RIFE-Engine | 54fa0199a4ba6856f3d925cbcf035f60eb53a75f | 975373ef1e4104edbfcf5fddc5a065dd9e5b05a7 | refs/heads/master | 2020-03-28T02:50:08.366865 | 2019-05-24T15:55:00 | 2019-05-24T15:55:00 | 147,600,758 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | h | MaterialFactory.h | #pragma once
#include <MaterialBuilder.h>
#include <ShaderFactory.h>
namespace Rife::Graphics {
class MaterialFactory {
public:
static Material* defaultMaterial();
static Material* skyboxMaterial(Texture* cubemap);
static Material* surfaceMaterial(
Texture* diffuseTex,... |
fd1f09b9b9f2f0daedd417d781f1cee0800abebf | 34efeca8e6aaa1f28a88140d41b44bdbeb31b10f | /GUIInternal/GEAREditor/scenes/gearSceneHierarchy.h | 7c6d78ec121355ce099387e8cd852caf8ac8b96d | [] | no_license | arunmudhaliar/GEAR_Alpha | e1b7abc68bcba2582f2e6bbb38a55e808aa1d3b3 | 55120e1cdc71f833cf5a05c4830177e7ecd8c9ff | refs/heads/master | 2020-12-20T23:39:19.189604 | 2015-06-24T20:58:05 | 2015-06-24T20:58:05 | 13,659,721 | 0 | 0 | null | 2015-06-24T20:58:05 | 2013-10-17T20:03:21 | C++ | UTF-8 | C++ | false | false | 2,170 | h | gearSceneHierarchy.h | #ifndef GEARSCENEHIERARCHY_H
#define GEARSCENEHIERARCHY_H
#include "../gui/geWindow.h"
#include "../gui/geTreeView.h"
#include "../../../GEAREngine/src/mono/src/monoWrapper.h"
#include "../gui/geToolBarDropMenu.h"
class gearSceneHierarchy : public geWindow, public MEngineObserver, public MObject3dObserver, public MTr... |
a30dd30043353383eb1d6abb39e95d47fb2e687a | d968e4a9bc8c1eba231485313a457b2d86fd6b89 | /ENQUANTO.CPP | d4d45ed7cba613573cb5daeb43959b52d65a80c6 | [
"MIT"
] | permissive | diego-said/uni_cpp | c113a0daedb2d5ba3ffc860e2b2c0d16facab68c | 29d1db3e5939ac365b27632068e30ff3d68c3c50 | refs/heads/master | 2021-01-01T18:20:36.674517 | 2017-07-25T13:59:50 | 2017-07-25T13:59:50 | 98,312,062 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | cpp | ENQUANTO.CPP | #include<iostream.h>
#include<conio.h>
void main()
{
int s=0,n=0;
clrscr();
cout<<"Digite um numero:";
cin>>n;
while(n>=0)
{
if((n%2)==0)
{
s=s+n;
}
cout<<"Digite um numero:";
... |
73886aef1aee0219e7c429cf9380b3faf602a309 | 8ccd0b0a3b72cc30123128f7ab39b0bbe997eea6 | /030_Der Präprozessor/Code/Entscheidungen2/Entscheidungen2.ino | 58c1d65cd9650f66d2137867b693e4b217d03d99 | [
"Unlicense"
] | permissive | hobbyelektroniker/Arduino_Einstieg | d10c43cb02dd5407d4c6aa1d5e70703aaa631ffd | 53ff0ecfbedc449008a65385bf4f3a5f0eeea53e | refs/heads/master | 2023-06-21T23:31:25.280262 | 2021-07-29T19:12:56 | 2021-07-29T19:12:56 | 320,641,302 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 737 | ino | Entscheidungen2.ino | /*
Der leichte Einstieg in Arduino & Co.
Mit DEBUG - Ausgabe und Makro
Version 1.00, 16.05.2020
Der Hobbyelektroniker
https://community.hobbyelektroniker.ch
https://www.youtube.com/c/HobbyelektronikerCh
Der Code kann mit Quellenangabe frei verwendet werden.
*/
#define DEBUG
#define LED 13
#define ZEI... |
bd485b3b1769f083f59fd16d7877131c412f9bed | e52c4d1dbec3e0c001510bac184c0c3a3ed49cc6 | /Menu.cpp | 74b6845024cf90fa7548aa1339cd3587234b3fe4 | [] | no_license | salsama59/guerre_des_classes_tactics | 744510215f885bf245be6b7627d1169e9b429a6d | 092d7a6988099a46e04892b3ec0ad7211d2fc474 | refs/heads/master | 2021-09-06T03:02:32.546961 | 2018-02-01T21:42:41 | 2018-02-01T21:42:41 | 119,897,436 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,994 | cpp | Menu.cpp | #include <cstdlib>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <SDL/SDL_ttf.h>
#include <fmodex/fmod.h>
#include <ft2build.h>
#include "Menu.h"
#include "Jeu.h"
#include "Personnage.h"
#include "Etat.h"
#include "Groupe.h"
#include "SmenuEquipement.h"
#include <string>
#include <iostream>
#include <vector>... |
b823759bc679ca78a6193a6f6aaa6229e4535df4 | 6eeac7bf41dbba41133399c80f3fe11f9205898d | /CastleVania_SE102.J12/main.cpp | fe9533fbc71c8b5c934bdee4a21dd14707f7ad8d | [] | no_license | PhucPhan96/Game-4th | dbaf3cde2551db5dcefcce3e6440eb25d44c1170 | f462a9699dc2c5962b87f4bde45937a524a717cd | refs/heads/master | 2020-03-31T23:50:21.481476 | 2018-10-12T00:26:10 | 2018-10-12T00:26:10 | 152,671,621 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 554 | cpp | main.cpp | /* =============================================================
INTRODUCTION TO GAME PROGRAMMING SE102.J12
Game Name: Castle Vania
================================================================ */
#include <windows.h>
#define WINDOW_CLASS_NAME L"SampleWindow"
#define MAIN_WINDOW_TITLE L"Castle Vania"
#defi... |
9aef847c15f2b95d3ba45adceb5a70f211034064 | 3450a1d0d8becc537a1e80fc174a831d1f0b1a9f | /Lab/cse655/C++/Operator1.h | 822b44654fcfa6de083ad8a5f9e1b4e2bd79dee7 | [] | no_license | xu3z/CSE-655 | 1356303120b55422c17aeaba3c3b362c32237598 | 57f45c595c26a9e037dedf252de66f33b553e082 | refs/heads/master | 2020-12-28T22:45:57.460623 | 2014-02-09T05:42:31 | 2014-02-09T05:42:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 302 | h | Operator1.h | #ifndef _OPERATOR1_H_
#define _OPERATOR1_H_
#include "ID.h"
#include "ConflictRes.h"
class Expression1;
class Operator1:public Tokenizer
{
public:
Operator1(){};
ID id;
Expression1 *exp;
int curToken,no,altNum;
void parseOperator();
void printOperator();
int execOperator();
};
#endif
|
976bbe94250b7d65ec1a41326ced15a8ce8c0e37 | 95fce33718d6ca733e4e2b678e567c039fcd8c6d | /codejam/18_kickG_A.cpp | 83402c7b045d08ad3d37f3b0b559ea91f32fc9c0 | [] | no_license | hongjisung/algorithmsolve | 9cd4e1a82e8cae8afb84eb316d8496028719d2e9 | 47350c3b63529ace8070e7ba51b17d3330fa85df | refs/heads/master | 2022-07-23T17:36:16.570561 | 2022-07-07T08:11:08 | 2022-07-07T08:11:08 | 143,489,617 | 0 | 0 | null | 2018-08-04T02:37:27 | 2018-08-04T01:59:56 | C++ | UTF-8 | C++ | false | false | 2,825 | cpp | 18_kickG_A.cpp | #include <iostream>
#include <vector>
#include <set>
#include <algorithm>
using namespace std;
/*
1) O(N*2 log N)
sort the array,
for each NC2 cases find the value in array by using binary search
N = 7000 => 7000 * 7000 * log 7000 * 30(T) = 13014888179 ~= 10^10
the values can exist many times
2) O(N*2... |
f6f995088ddeedd7d0dd162d819f3ee382d73f59 | d375176fc2f2a5b91479d3488cabb840dcf019bd | /include/Bibim/GlyphSurface.h | e9237670ae437e3a3e653150e224c25727e43daf | [
"FTL",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"Zlib",
"LicenseRef-scancode-unknown-license-reference",
"curl",
"Libpng"
] | permissive | halak/bibim | ff91acc0bcbd9646cab2e5a3beb46da3dcaaa093 | ad01efa8aac4f074f64bf033ac0f1ed382060334 | refs/heads/master | 2021-07-15T05:38:49.234568 | 2021-07-07T01:36:18 | 2021-07-07T01:36:18 | 66,716,124 | 3 | 1 | null | 2018-03-23T08:17:56 | 2016-08-27T13:35:40 | C | UTF-8 | C++ | false | false | 2,250 | h | GlyphSurface.h | #pragma once
#ifndef __BIBIM_GLYPHSURFACE_H__
#define __BIBIM_GLYPHSURFACE_H__
#include <Bibim/FWD.h>
#include <Bibim/Rect.h>
#include <Bibim/DynamicTexture2D.h>
#include <Bibim/RectStorage.h>
namespace Bibim
{
class GlyphSurface
{
public:
struct Slot
{
... |
604e519a8f6e27fd87f54c48c15ab71c13a22652 | 302062f5d77bd444b289fb818998629d26c06f28 | /src/Rget_leaves.cpp | d90c9bdd3296e269bfd340e118c3e3c9f7a089e7 | [] | no_license | XuegongLab/HGC | 9b5bee65d4de9fefadc23f22521c197e56a58325 | 5aed07144cd4fd4e4af3fd6a00750a2959013113 | refs/heads/master | 2023-06-17T13:19:42.292714 | 2021-07-11T15:22:38 | 2021-07-11T15:22:38 | 316,749,262 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 763 | cpp | Rget_leaves.cpp | // [[Rcpp::depends(Rcpp)]]
#include <vector>
#include <stack>
#include <Rcpp.h>
using namespace Rcpp;
typedef std::vector<int> IVector;
typedef std::vector<double> NVector;
// print the leaves of the binary tree with preorder
// [[Rcpp::export]]
IntegerVector get_leaves(NumericMatrix hglink) {
int n = hglink.nrow... |
30daf984ea1cbfeb32cc9c7b694c045825498e1c | 604feacda299fbe236ca6d9c81e3c381b28440e5 | /code.ino | 72fe4e914fdc643ca82e8aaba64c0eed2313334b | [
"MIT"
] | permissive | seco/MoodLamp | ddda83ea8d8cbb4f92660abf7284a518e716c921 | 0fc7942b85ae0a0c05b3a338a600a9f6cff3e379 | refs/heads/master | 2021-01-13T07:06:36.874463 | 2017-02-09T19:34:46 | 2017-02-09T19:34:46 | 81,618,401 | 1 | 0 | null | 2017-02-11T00:12:45 | 2017-02-11T00:12:45 | null | UTF-8 | C++ | false | false | 3,475 | ino | code.ino | // Library
#include <ESP8266WiFi.h>
#include <Adafruit_NeoPixel.h>
#define MOOD_NUM 7
// NeoPixel Macros
#define PIN 6 // Which pin on the Arduino is connected to the NeoPixels?
#define NUMPIXELS 1 // How many NeoPixels are attached to the Arduino?
// Color macros
#define OFF 0
#def... |
689124881500fc71a4b262b34d67451817307230 | 2398c2a717214be48f3d93da89ba11155263757b | /Sem_06/PPO/Lab_03/tests/LoadDataTest.cpp | caeb7c746c259556adc587bf348fc391c2523180 | [] | no_license | lieroz/University | 9af687787e3c468b34e2bfb8ffeadf44f2063bc7 | c7ee70e77e6426045fac6c5b43aab10e1ffdcddb | refs/heads/master | 2020-04-06T19:53:40.479191 | 2019-01-19T09:16:35 | 2019-01-19T09:16:35 | 68,386,115 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,529 | cpp | LoadDataTest.cpp | //
// Created by lieroz on 22.05.18.
//
#include <QAction>
#include <QComboBox>
#include <QFileDialog>
#include <data/RuntimeStorage.h>
#include <LoadDataTest.h>
LoadDataTest::LoadDataTest(QObject *parent)
: QObject(parent)
{
}
void LoadDataTest::testLoadRouteFromGpx()
{
QFileDialog *dialog = window.findCh... |
39353f2351591504aa4722e97d4aee07d8e61073 | 8ea2d74dd452f5b50caed0fc79756fceded7a2ba | /ConsoleApplication13.cpp | 4537cbc9f0a4d7632cca0ab25998129735e474ef | [] | no_license | kimsh328/INFO450FavoriteThing | a7e47f9c335fdc72b0afe887fce6d62e0358dbec | fdd972535c543bc29c5abf37df5d2de6ee39704f | refs/heads/master | 2021-08-22T02:44:33.813925 | 2017-11-29T04:17:01 | 2017-11-29T04:17:01 | 112,425,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,460 | cpp | ConsoleApplication13.cpp | #include "stdafx.h"
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
const int READERROR = 100;
const int WRITEERROR = 200;
const int ARRAYSIZE = 100;
class FavoriteGame //a class that used to represent your favorite thing
{
string Name;
string Developer;... |
4f170fc08458394bc84c6998a83352838f80f22b | 5553a92a31975fb5abef887fd84065b64484313f | /src/subspace/subspace_simulator.h | 313970fdbb8365228f70c7a9111ffd74b456b7b9 | [] | no_license | rajaditya-m/Recalc_Final_Demo_Fork | 4c2ce450d976d9a32ec0d00ad8cc6a6d412e0ae7 | 35be877b37fb9351a3b811570ca582208bf1519a | refs/heads/master | 2021-03-24T10:46:21.408874 | 2015-05-29T22:44:15 | 2015-05-29T22:44:15 | 36,526,142 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 759 | h | subspace_simulator.h | #pragma once
#include "input_handler.h"
#include "single_domain_cubature.h"
#include "single_domain_basis_generator.h"
class SubspaceSimulator : public InputHandler
{
public:
// Mouse handlers
virtual int HandleMouseMove(QMouseEvent* e) { Q_UNUSED(e); return kNotHandled; }
virtual int HandleMousePress(QMouseEve... |
76c6e06d6addbf958281aaf2635d3c7a060a88f9 | 52c4f1bb45fd94291f3530f13e8a8cbae753088f | /Arctic 17.10.31/AADS_Client.cpp | 76474bdbd7fc0ebfaaabbe9ae9edaeebf7652885 | [] | no_license | bluedew26/LBC_projects | df064aed4a91cf2ff7d0f5a389b04b624e0905dd | 87173a385c300b06e5eb7020d0ab0519388c695d | refs/heads/master | 2021-07-23T22:24:04.671971 | 2017-10-31T05:00:28 | 2017-10-31T05:00:28 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 9,258 | cpp | AADS_Client.cpp | #include "stdafx.h"
#include "AADS_Client.h"
#include "libxl.h"
#include "config.h"
using namespace std;
using namespace libxl;
/*
float* AADS_Client::KaistRequest_widely(int data, int x, int y, int w, int h, float time)
{
float* a = new float;
*a = 3;
return a;
}
*/
double Rradians(double dir){
return dir * 1... |
68af2ed91408268af20928825c5a0ad636bbac8c | 9caa54be7225eab653c0c7b53b7033d65f3b176d | /LinkList/main.cpp | 3c670556cd2feb4024778ea5b164f8ad494c8171 | [] | no_license | JasonDoingGreat/DoubleLinkedList | ae4bfa31ec6c55e96ca7d9ee6c972a61f6f4196d | 51073846866cb6eecc692d4ca86f13450c3ccff0 | refs/heads/master | 2021-06-12T13:21:52.709690 | 2017-02-01T23:04:06 | 2017-02-01T23:04:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,611 | cpp | main.cpp | //
// main.cpp
// LinkList
//
// Created by Zezhou Li on 1/29/17.
// Copyright © 2017 Zezhou Li. All rights reserved.
//
#include <iostream>
using namespace std;
template <typename T>
class DLNode {
public:
T data;
DLNode *left;
DLNode *right;
DLNode(){
this->data = NULL;
thi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.