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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4b19958a8a2cbfe59bb815164ff03bf4a393c3ab | 267150742ef2b9c58c15f2139f7e41cb9c6970a5 | /Workspace/Example/readonly/entities/Barrel_readonly.cpp | 2c57c5eaa3f41b209af2f2ff1b7663aa7a8a2196 | [] | no_license | rouviecy/CG_generator | 85319ad2517e6206cb94989519388a049f30b264 | 0d41d73a7207aa1c5639eca28ffebb432a97d861 | refs/heads/master | 2021-01-20T00:29:18.126981 | 2017-05-11T02:56:23 | 2017-05-11T02:56:23 | 89,139,363 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 197 | cpp | Barrel_readonly.cpp | #include "Barrel_readonly.h"
Barrel_readonly::Barrel_readonly() : Entity(){
}
void Barrel_readonly::Update(int id, int x, int y, int rhum){
Entity::Update(id, x, y);
this->rhum = rhum;
}; |
93bc90e52a6cf63b460f8e91699abf79c3c60675 | 949f567272fd11ac3c227f641faaf574adb640b1 | /Code/Don'tFuckUp/Don'tFuckUp/BIRDS.cpp | 445c295d4ce5e56e411bffb198f944a2b7efa95d | [] | no_license | ShoGanKing/Game-Jam-2015 | b14904531497ed2bac1300d7e48196d79393fd8e | 952b0592cb9954e180be45ae3d349f3f3eafeae5 | refs/heads/master | 2020-07-03T12:29:34.908635 | 2015-01-27T19:44:59 | 2015-01-27T19:44:59 | 29,752,940 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,727 | cpp | BIRDS.cpp | #include"BIRDS.h"
#include "ActiveGameObject.h"
#include "MyVec2.h"
#include "Scene.h"
#include "ButtonObject.h"
BirdObject::BirdObject(Scene* aScene, MyVec2 aPos, float aAngle, MyVec2 aVelocity) : ActiveGameObject(aScene, aPos, aAngle)
{
m_Scene = aScene;
m_Frame = 0;
m_Time = m_Time.Zero;
m_Veloc... |
bab088e1d514b547acc40e0ee6cfc28972f38e37 | ac5eb7df8515fb92071f9e0f64d1cf6467f4042d | /C++/candy.cpp | 3ac7119cca63e959e120a57f81bc040937811c56 | [] | no_license | Litao439420999/LeetCodeAlgorithm | 6ea8060d56953bff6c03c95cf6b94901fbfbe395 | 9aee4fa0ea211d28ff1e5d9b70597421f9562959 | refs/heads/master | 2023-07-08T06:17:20.310470 | 2021-08-08T08:12:23 | 2021-08-08T08:12:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,079 | cpp | candy.cpp | /**
* @File : candy.cpp
* @Brief : 分发糖果 贪心策略
* @Link : https://leetcode-cn.com/problems/candy/
* @Author : Wei Li
* @Date : 2021-07-04
*/
//![include]
#include <iostream>
#include <numeric>
#include <vector>
#include <memory>
//![include]
//![solution]
/**
* 0、只需要简单的两次遍历即可:把所有孩子的糖果数初始化为 1;
* 1、先从左... |
113803888af00f1a01376d184013aa0d83ac4a8a | e71ebf5118040fdbfb6bbd62ad6b7a434eea2c0a | /LabWorks/Lab6Version1/pbDeliveredFromCashRegister.h | b4b04fe1b927468affef083ec5493c102e62ecf5 | [] | no_license | sviatoslav-vilkovych/OOP-NU-LP | ce577525aa12d941d0db3b7b9621d201f9742ace | 50c75ffd98c4635b5bfd5d2f765380833fb3e5ea | refs/heads/master | 2021-08-27T16:19:46.255774 | 2016-12-26T03:46:48 | 2016-12-26T03:46:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 176 | h | pbDeliveredFromCashRegister.h | #pragma once
#include "CashRegister.h"
class pbDeliveredFromCashRegister : public CashRegister
{
public:
pbDeliveredFromCashRegister();
~pbDeliveredFromCashRegister();
};
|
3d1500b0d0e308395633b1f9dec2ebdea4b3f2aa | 4a3e5419e89dfbd9788a4539740b8ea7321ee7ef | /c/35.cpp | bae2827f2c1e46522f357da6b180606eb7f69176 | [] | no_license | tars0x9752/atcoder | d3cbfefeb5164edab72d87f8feb16e1160c231a2 | 0e54c9a34055e47ae6bb19d4493306e974a50eee | refs/heads/master | 2022-11-19T15:36:17.711849 | 2020-07-19T12:56:31 | 2020-07-19T12:56:31 | 182,626,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 571 | cpp | 35.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int n, q;
cin >> n >> q;
vector<int> l(q), r(q);
for (int i = 0; i < q; i++) {
cin >> l[i] >> r[i];
l[i]--;
r[i]--;
}
vector<int> sum(... |
cffcde2fa660764d4d1847f5de35e1a0ecb4bf1d | bf9770bcc23894a737f4b29f34f6426400d5fa32 | /src/record.hpp | a938b63783f294deafa0f515e831f3238e059039 | [] | no_license | Pablenko/csvparser | 72c96799998dd5dc093eb0afb696e3abc3311e4e | 29bb5874f27903d2ab65177d8644d470c28b4a62 | refs/heads/master | 2021-05-12T13:52:53.670667 | 2018-01-16T23:48:18 | 2018-01-16T23:48:18 | 116,942,290 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,357 | hpp | record.hpp | #ifndef CSV_PARSER_RECORD_HPP
#define CSV_PARSER_RECORD_HPP
#include <ostream>
#include <string>
namespace csv_parser
{
struct record
{
struct r_date
{
unsigned int year;
unsigned short month;
unsigned short day;
unsigned short hour;
unsigned short minutes;
uns... |
01c05a7064f147f927fd175ae4b6739984a78449 | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /essbasic/include/tencentcloud/essbasic/v20201222/model/Caller.h | 9c4962f2e401ad643816e27c3252ded7562e2bbc | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 4,602 | h | Caller.h | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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
... |
fc78f0b4d1001de7b4b1e1c857a0fde823cb7694 | c507b259841a43910e94c20e58073eaa8937288b | /deform_control/bullet_helpers/include/bullet_helpers/bullet_eigen_conversions.hpp | 2837227f3ed4221f89d205c82ab4c345da1fc0bf | [
"BSD-2-Clause"
] | permissive | UM-ARM-Lab/mab_ms | 5024c4d696cb35bc69fce71e85e1be1da66a30b5 | f199f05b88060182cfbb47706bd1ff3479032c43 | refs/heads/master | 2020-03-07T11:18:25.199893 | 2018-03-30T23:47:39 | 2018-03-30T23:47:39 | 127,452,258 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,013 | hpp | bullet_eigen_conversions.hpp | #ifndef BULLET_EIGEN_CONVERSIONS_HPP
#define BULLET_EIGEN_CONVERSIONS_HPP
#include <btBulletDynamicsCommon.h>
#include <Eigen/Dense>
namespace BulletHelpers
{
inline Eigen::Affine3d toEigenAffine3d(btTransform&& bt)
{
const btVector3& bt_origin = bt.getOrigin();
const btQuaternion& bt_rot = bt... |
42144e640e09ff14644769928fb230fef61ae006 | 70f5890c920a01de2e67427b25317d38070cdaf7 | /FX/B.cpp | f87d1e7ccdf60524c5169802feaf2b196c4f5768 | [] | no_license | DiasDogalakov/ADS_FALL_2020 | fc359010332139d9b4e56c7e550c888de697febc | 715b27e5b555b77fd34f45454d50f5b75f9050de | refs/heads/master | 2023-06-22T17:37:03.627139 | 2021-07-26T17:35:19 | 2021-07-26T17:35:19 | 297,119,400 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 740 | cpp | B.cpp | #include <iostream> //ok
#include <string>
#include <vector>
#include <set>
#include <map>
#include <cmath>
#include <deque>
using namespace std;
int main () {
int n, h;
cin >> n >> h;
int a[n];
for(int i = 0; i < n; ++i)
cin >> a[i];
int l = 1;
int r = (int)1e9 + ... |
d8a668426b2e2d43ebb1c4cf5e8ebaa26d5b5c39 | e6b0006949ed9d21efce8c4fd18fd6e371cd4bf9 | /util/unittest/testpageTable.cpp | b80394a10442b15613e5eb8437c87aeca3193f01 | [] | no_license | liweiliv/DBStream | ced5a25e934ab64e0986a8a4230767e12f04bdab | 584f20f938530bb52bf38faa832992bfb59e7dbb | refs/heads/master | 2021-07-21T02:58:20.442685 | 2021-06-07T12:57:34 | 2021-06-07T13:04:33 | 182,390,627 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,180 | cpp | testpageTable.cpp | #include "../pageTable.h"
#include <thread>
#include <chrono>
pageTable<uint64_t> p;
uint64_t *base;
uint64_t** to;
#define c 10000000
void testThread(uint64_t id)
{
std::this_thread::sleep_for(std::chrono::nanoseconds(rand()%100000));
for (unsigned int i = 1; i < c; i++)
{
uint64_t v = ((id << 32) | i);
uint64_... |
fb4799f40c175186683703d38e1aade9b3ef987b | e49e892e58e005ec8b6c07a0b16afeff88b161d8 | /5_cpp_examples/6_hackerrank_com/03_basic_data_types.cpp | f0e3e253c1952b1dcf5153f2c55e4440ef127c98 | [] | no_license | zyavuz610/learnCPP_inKTU | e59676e250f011ff9b5dec86203a0b069c02219f | c6195793bf3464e10d022b852ef486e0c4e3f6da | refs/heads/master | 2020-05-17T08:15:36.754448 | 2020-03-28T16:27:25 | 2020-03-28T16:27:25 | 183,598,702 | 8 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 538 | cpp | 03_basic_data_types.cpp | /*
Sample Input
3 12345678912345 a 334.23 14049.30493
Sample Output
3
12345678912345
a
334.230
14049.304930000
*/
//------------------------------------------------------------------------------
#include <iostream>
#include <cstdio>
#include <iomanip>
using namespace std;
int main() {
in... |
ebd77bf7f0a6e59bbc48ecd00e90143e34120e8e | adcd4911da022685e22178d0c598ff213117205e | /src/main.cpp | df6004b7fb8d2a22e2dadd9af318bec2250624e2 | [
"MIT"
] | permissive | giraugh/reaction-diffusion | 51186dabd54a4ab8c92c5fa16be18e24ed4445e8 | 9662cbe25f1a473d6d2625992d48d18728fc6c30 | refs/heads/main | 2023-03-07T04:45:59.845262 | 2021-02-14T06:28:52 | 2021-02-14T06:28:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 270 | cpp | main.cpp | #include <iostream>
#include "core.h"
int main(int argc, char* argv[])
{
// Construct grid data
GridData* gd = new GridData();
RDConfig* config = new RDConfig();
for (int i = 0; i < 9999; i++)
gd->update(config);
gd->print();
return 0;
}
|
432c5824fcbc7b6a092ef238bfce16a0bc932355 | 3a025072af237effce7c89dd0249106bae40a801 | /cpp-cc189_lcci/lcci02.05-add-two-numbers(linked-list)-solution1.cpp | c0401bf2a6b49796653a99f6587775ea8d1a1a0b | [] | no_license | 88b67391/AlgoSolutions | d1ad2002b319489044627b67939d5b5eeade9934 | 0951b0f9990eadd307091c7853f6df5fd432b11c | refs/heads/master | 2023-08-18T18:01:12.569245 | 2021-10-11T00:43:48 | 2021-10-11T00:43:48 | 518,107,160 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,677 | cpp | lcci02.05-add-two-numbers(linked-list)-solution1.cpp | #include <iostream>
using namespace std;
/**
* Definition for singly-linked list.
*/
struct ListNode
{
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
class Solution
{
public:
ListNode *addTwoNumbers(ListNode *l1, ListNode *l2)
{
ListNode *fakeHead = new ListNode(-1);... |
0538b5612d9d797de8948fa16a27ae8ecef841f3 | 31901aa3cefde7392b8eb92f3948cb3c99acce45 | /src/WiegandAnalyzerResults.cpp | 1bf3d89d71efdafaa0de9e52c45a10567bfb7c79 | [] | no_license | xkentr/wiegand-analyzer | 42617ff9555aeed9d68b3306989f5170d6f74578 | a6ffd7ef3f5e3532207d82abe648db330abe480b | refs/heads/master | 2020-05-21T13:01:47.163376 | 2019-05-10T21:59:27 | 2019-05-10T21:59:27 | 186,059,049 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,851 | cpp | WiegandAnalyzerResults.cpp | #include "WiegandAnalyzerResults.h"
#include <AnalyzerHelpers.h>
#include "WiegandAnalyzer.h"
#include "WiegandAnalyzerSettings.h"
#include <iostream>
#include <sstream>
#include <stdio.h>
WiegandAnalyzerResults::WiegandAnalyzerResults( WiegandAnalyzer* analyzer, WiegandAnalyzerSettings* settings )
: AnalyzerResults()... |
a0f0d06131ccd4df329707c1d9e3aebd4b1f1510 | d26a306d0dc07a6a239e0f1e87e83e8d96712681 | /1382_A/main.cpp | 61fc2e1e50a6f17b803fffe69d2e0252df51a4b9 | [] | no_license | umar-07/Competitive-Programming-questions-with-solutions | e08f8dbbebed7ab48c658c3f0ead19baf966f140 | 39353b923638dff2021923a8ea2f426cd94d2204 | refs/heads/main | 2023-05-19T03:05:48.669470 | 2021-06-16T18:36:22 | 2021-06-16T18:36:22 | 377,588,251 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 960 | cpp | main.cpp | #include <bits/stdc++.h>
#define ll long long int
#define debug(x) cerr << #x << " is " << x << " ";
#define mod 1000000007
#define endl "\n"
#define fast_input ios_base::sync_with_stdio(false); cin.tie(NULL);
using namespace std;
int main()
{
ll t;
cin >> t;
while(t--)
{
ll n, m;
cin >... |
77b813ff74623f16a1277bbd685551176b99c88f | fad2094689d89eea189631b327cb67690b3ce5a8 | /verilog/formatting/align.cc | 1fc64be5f2b3a64780558dde75e4dbbd97c47521 | [
"Apache-2.0"
] | permissive | dpretet/verible | dfea857c63efc4624463684ae54dede10155a9c5 | 617b40419adc1c39f5ad553c0ec50843abd0fb1a | refs/heads/master | 2022-11-23T21:12:51.564072 | 2020-07-29T21:39:29 | 2020-07-29T21:54:49 | 284,467,391 | 1 | 0 | Apache-2.0 | 2020-08-02T13:30:32 | 2020-08-02T13:30:31 | null | UTF-8 | C++ | false | false | 12,513 | cc | align.cc | // Copyright 2017-2020 The Verible Authors.
//
// 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 o... |
302e7d90c36c7d0469f75ff3a4ca553fc4490c92 | 8722f71ac68dbb0cc2dcb96c473a0eb38df63449 | /src/controller/torquePositionController.cpp | a958e43d55c3a38419118b8e3476c6448bb6800e | [
"BSD-3-Clause"
] | permissive | CARDSflow/kindyn | 390122725b24229cbd4ddf85adab5e1501456aec | 80e9201ab2d3fba5534ae9a188e482a28bdc5eee | refs/heads/brain | 2023-04-14T05:13:14.927637 | 2021-08-20T17:20:57 | 2021-08-20T17:20:57 | 153,008,249 | 5 | 3 | BSD-3-Clause | 2021-09-08T11:50:59 | 2018-10-14T18:59:40 | C++ | UTF-8 | C++ | false | false | 6,112 | cpp | torquePositionController.cpp | /*
BSD 3-Clause License
Copyright (c) 2018, Roboy
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 n... |
3487fa362a15c4261c5aff7313d9b08745e9c32c | eb729586972e784492fdffc9be8e6cb70698f75d | /archive/2017/Round2/D.cpp | 462762672e71d4e2965540a52dad63acf2a2a8d6 | [] | no_license | mkleesiek/google-codejam | af637805d086bbf9e4042c3715b431a8c88d4a95 | 9a7993bba538d92dd7eac04d47e57665ad84f037 | refs/heads/master | 2023-03-25T15:21:24.919726 | 2021-03-26T08:53:51 | 2021-03-26T09:03:48 | 109,621,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 242 | cpp | D.cpp | #include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int T = 0;
cin >> T;
for (int t = 1; t <= T; ++t)
{
cout << "Case #" << t << ": " << setprecision(12) << 0.0 << endl;
}
return 0;
} |
c1574cdc30e7a05d60d4877c31d29141a713e7b7 | 6db695715a1edd02c20705137af171a1fd94a625 | /cses/removedigits.cpp | 23728f8e4095988cf26a530f793550d74a46ab74 | [] | no_license | arora-ansh/CP-Repository | 0991190507fef779e196193635248be8fb85e5de | 3629a0c0ea92e47bd419b011be518b5feb9781ea | refs/heads/master | 2023-06-19T02:53:26.018511 | 2021-07-08T19:02:00 | 2021-07-08T19:02:00 | 282,615,965 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 680 | cpp | removedigits.cpp | #include <iostream>
#include <vector>
using namespace std;
int solver(int n, int *dp){
//cout<<n<<endl;
if(n==0){
return 0;
}
if(dp[n]!=-1){
return dp[n];
}
vector<int> arr;
int x = n;
while(x!=0){
//cout<<x%10<<" ";
arr.push_back(x%10);
x = x/10;... |
d50e1d9a3a285398d364c6c3037468e44fbaf6a6 | ca170d96a960e95a7822eb69c65179898a601329 | /libs/stream_vis/stream_vis_context.h | 924329f3325696a36b17e0dbf85dfa871e0c5709 | [] | permissive | sgumhold/cgv | fbd67e9612d4380714467d161ce264cf8c544b96 | cd1eb14564280f12bac35d6603ec2bfe6016faed | refs/heads/master | 2023-08-17T02:30:27.528703 | 2023-01-04T12:50:38 | 2023-01-04T12:50:38 | 95,436,980 | 17 | 29 | BSD-3-Clause | 2023-04-20T20:54:52 | 2017-06-26T10:49:07 | C++ | UTF-8 | C++ | false | false | 3,805 | h | stream_vis_context.h | #pragma once
#include "plot_info.h"
#include "view_info.h"
#include "offset_info.h"
#include "view_overlay.h"
#include "streaming_time_series.h"
#include "streaming_aabb.h"
#include <cgv/base/node.h>
#include <cgv/os/thread.h>
#include <cgv/os/mutex.h>
#include <cgv/render/drawable.h>
#include <cgv/render/vertex_buffe... |
ea82787a90b47db38b43ec121b37d662946253c3 | bb9b83b2526d3ff8a932a1992885a3fac7ee064d | /src/modules/osgAnimation/generated_code/RigGeometry.pypp.cpp | fca70e04fb6b3bd938ce15dc434b7118a7c9ed63 | [] | no_license | JaneliaSciComp/osgpyplusplus | 4ceb65237772fe6686ddc0805b8c77d7b4b61b40 | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | refs/heads/master | 2021-01-10T19:12:31.756663 | 2015-09-09T19:10:16 | 2015-09-09T19:10:16 | 23,578,052 | 20 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 20,861 | cpp | RigGeometry.pypp.cpp | // This file has been generated by Py++.
#include "boost/python.hpp"
#include "wrap_osganimation.h"
#include "wrap_referenced.h"
#include "riggeometry.pypp.hpp"
namespace bp = boost::python;
struct RigGeometry_wrapper : osgAnimation::RigGeometry, bp::wrapper< osgAnimation::RigGeometry > {
RigGeometry_wrapper( )... |
f6e9582116882b90941c4abcd0848c8a0bf64fb7 | 6c756d53535a85da6bcbfba4049f98568cc120bf | /ML_project/evalForest_mex.cpp | c9acee1c22ac1885fc6b2c5075bd977e530f9de1 | [] | no_license | adinutzyc21/MachineLearning | 71c15d87cec8997785bbf3a133ad594a2fe0bcc4 | 8061f133cf02c7efc20f29d3b8f599912879bb47 | refs/heads/master | 2021-01-16T00:28:45.885521 | 2014-04-23T22:13:57 | 2014-04-23T22:13:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,965 | cpp | evalForest_mex.cpp | /* decisionTree.c
* fast decision tree algorithms
*
*
*/
#include "mex.h"
#include "randomForest.hpp"
void evalForest(const double *x, const mwSize nsamples, const mwSize ndims,
const size_t *features, const double *values, const double *leaves,
const mwSize ntrees, cons... |
b6becf28dff4b10021bafd765557f820fee1c5ef | 0433a98aa6a22efbbf59e047fcae1894475a4c26 | /lksh_2017/Практика/139 Задача Очень Важный Объект (бинпоиск).cpp | 0ab928f1f3966930a30409179418dade1b6834e2 | [] | no_license | MrDonaldoWorking/School-Codes | a4336c1425122b746f4508cf80d5315a515525ed | 6aa3aca03e63bb1666e2f1a1d75752826de93255 | refs/heads/master | 2022-11-14T09:37:42.484431 | 2020-07-14T21:25:57 | 2020-07-14T21:25:57 | 279,339,860 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,641 | cpp | 139 Задача Очень Важный Объект (бинпоиск).cpp | #define _CRT_SECURE_NO_WARNINGS
#pragma comment(linker, "/STACK:108777216")
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <set>
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define forn(i, a, b) for (int i = a; i < b; i++)
... |
03dab8fff86702633721e139137c2ced15245822 | bc19894b684d82260b2536395ea5e5a06a879cda | /MergeSort.cpp | a01af2a7cff097c8183e713d7004a6f5fc42fd85 | [] | no_license | Coder-Goo/SortMehods | 709d932f4779a41fdff8746aa536c1828cff6af6 | e8330539d3843bf4d7bf5c896ae03dcdb72a6bfa | refs/heads/master | 2023-06-05T21:04:08.097185 | 2021-06-30T09:34:16 | 2021-06-30T09:34:16 | 375,530,710 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,197 | cpp | MergeSort.cpp | #include<iostream>
#include<vector>
#include <algorithm>
using namespace std;
vector<int>temp;
//归并排序;后序遍历
void MergeSort(vector<int> &vec, int l, int r) {
if(l >= r) return;
int mid = l+(r-l)/2;
MergeSort(vec, l, mid); //如何划分区间,即mid属于左半部分还是右半部分?!!!!
MergeSort(vec, mid +1, r);
... |
b37660263ead6806363577b21e1bcbf552bcf508 | 0272f2e67a09432d22e4f382125723777c27044d | /tutorials/multi-linkedlist/sw/part_build/Config.h | dc4a72f6fde17278b89d718c1cb8dccec502be7a | [
"BSD-3-Clause"
] | permissive | intel/rapid-design-methods-for-developing-hardware-accelerators | 027545835fef8daac9d43e731c09b9873fabb989 | 9a0afe216626b6d345b436ee4dce71511e8275f4 | refs/heads/master | 2023-05-27T13:25:30.640965 | 2023-01-07T00:07:05 | 2023-01-07T00:07:05 | 76,606,002 | 94 | 19 | BSD-3-Clause | 2019-06-01T20:30:48 | 2016-12-16T00:03:48 | C++ | UTF-8 | C++ | false | false | 1,451 | h | Config.h | // See LICENSE for license details.
#ifndef __CONFIG_H__
#define __CONFIG_H__
class Node {
public:
Node *next;
unsigned long long val;
Node *get_next() const {
return next;
}
void set_next( Node *val) {
next = val;
}
};
class HeadPtr {
public:
Node *head;
Node *get_head() const {
retu... |
588f74cb7c166b643932b6ec1a6f670123a168cd | 4d6b65d04f367678563f48771bf918f5e609c86a | /commands/startapp/startapp.cpp | 7f39d377d0efe6a3e099cee33a0d12075fb48192 | [] | no_license | xdsh/FShell | 3bdb79d690de00efeac2d727fda9ed413d07621d | 3f2cf79601f53c9435c8f957e06a4067085320c3 | refs/heads/master | 2020-12-28T14:22:03.942434 | 2020-02-05T04:42:32 | 2020-02-05T04:42:32 | 238,367,577 | 2 | 0 | null | 2020-02-05T04:27:58 | 2020-02-05T04:27:57 | null | UTF-8 | C++ | false | false | 2,575 | cpp | startapp.cpp | // startapp.cpp
//
// Copyright (c) 2011 Accenture. All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
... |
78a8eddce2e699d91fbe4aa95e5ef2838c4d4624 | 24b362affe54f9015e94ee91be6558b8305d6873 | /include/CommsManager.hpp | 25ddf5aa184def6e04bf57ec5f6e430099c47c69 | [] | no_license | RicardoRagel/comms_manager | 234078aac5d32e5ea5cbddbfd634fd68537dea2f | ab4e658d975e852954329348f503f80921d555eb | refs/heads/master | 2022-07-03T15:23:55.715202 | 2020-05-16T19:08:05 | 2020-05-16T19:08:05 | 260,712,251 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,668 | hpp | CommsManager.hpp | /*************************************************
* Description:
* ------------
* Class to create a channel, and to point it in the Bb,
* or to subscribe to it, creating (only at the first
* creating channel) the Bb, if not exist, and all
* necessary semaphores.
*
* Author:
* -------
* Ricardo Ragel de l... |
ad45b65dbfdacb8dd87dccd8e568564ade4819e9 | 168b9963c510b84f1978e6a7602202aebd5adb5e | /streaming-pointcloud/examples/td/top-plugin/MqttToTex.h | 8e8b7edd236b9a4e9f2b1f734577626e6c2ecb60 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | PieMyth/Azure-Kinect-Samples | e226b94912a9c932b6bdaa5d0be77b5e38e41d00 | c7949aee5dea0231f4cb8ea212a6f2fe40373d6b | refs/heads/master | 2022-12-13T01:01:04.652633 | 2020-09-08T18:07:54 | 2020-09-08T18:07:54 | 288,911,663 | 0 | 0 | MIT | 2020-08-20T05:08:02 | 2020-08-20T05:08:02 | null | UTF-8 | C++ | false | false | 2,825 | h | MqttToTex.h | /* Shared Use License: This file is owned by Derivative Inc. (Derivative)
* and can only be used, and/or modified for use, in conjunction with
* Derivative's TouchDesigner software, and only if you are a licensee who has
* accepted Derivative's TouchDesigner license or assignment agreement
* (which also govern the use ... |
2eee483a4f8a2ac8dc72a427aff1126f7b59feb9 | 1b4ef06460dee1faa27ef5568fb6e3d8b3db7cfb | /kmp/main.cpp | 3a827757d7ed989e8d589324fd787052dbb2dde4 | [] | no_license | imoverflow/mycode | 3efb4d3663334ca7d96feaefbaa07cac4b4e2076 | 6ca89e1df775dbf351b5a7590f6a6af5167a46e9 | refs/heads/master | 2020-04-01T23:06:39.017093 | 2018-12-02T04:40:02 | 2018-12-02T04:40:02 | 153,742,417 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,193 | cpp | main.cpp | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
void kmp_pre(char x[],int m,int next[]) //两种处理方法
{
int i,j;
j=next[0]=-1;
i=0;
while(i<m)
{
while(-1!=j&&x[i]!=x[j]) j=next[j];
next[++i]=++j;
}
}
void preKMP(char x[],int m,int kmpNext[])
{
int i,j;
... |
e190da27a4c02e289bd9677451ec3765a5166934 | 83bacfbdb7ad17cbc2fc897b3460de1a6726a3b1 | /third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.cpp | ad2eadca3500a19c093d9ac08f982a9a41856a7a | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0"
] | permissive | cool2528/miniblink49 | d909e39012f2c5d8ab658dc2a8b314ad0050d8ea | 7f646289d8074f098cf1244adc87b95e34ab87a8 | refs/heads/master | 2020-06-05T03:18:43.211372 | 2019-06-01T08:57:37 | 2019-06-01T08:59:56 | 192,294,645 | 2 | 0 | Apache-2.0 | 2019-06-17T07:16:28 | 2019-06-17T07:16:27 | null | UTF-8 | C++ | false | false | 11,301 | cpp | InspectorConsoleAgent.cpp | /*
* Copyright (C) 2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... |
553b5c6b1339addfd4248373097aac9105550697 | f8211d24d758f2a4af9244e66a2ac86a1c2031a9 | /231_A.cpp | 77b4411a125291a0f08baa55cf4015e5dfc625d8 | [] | no_license | kowshik24/Codeforces | 7bdb6a933cda5e27b97b4b5764598cbd91648493 | f265752dbade9ef8d06e064ae8009200ec01cbad | refs/heads/main | 2022-02-18T23:30:57.415200 | 2022-02-09T19:43:28 | 2022-02-09T19:43:28 | 237,670,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 304 | cpp | 231_A.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n,a,b,c,sum=0,count=0;
cin>>n;
for(int i=0; i<n ;i++)
{
cin>>a>>b>>c;
sum=a+b+c;
if(sum>=2)
{
count++;
}
}
cout<<count<<endl;
return 0;
}
|
e9477b4e6310607d9346566500f1ad83f0f87b15 | b54882cf89639ad5a6d289fb478e90e95311ad39 | /largestFibonacciSubsequence.cpp | 89cf1ae183829e9e311600356f0b043ac866bd56 | [] | no_license | kk77777/geeksForGeeksSolutions | 16111f7c39686db17e06e4213ab68159437900d0 | 4b51dd9699550b55b68766c6e22ff5cb9b205a7c | refs/heads/master | 2021-08-07T09:36:49.380647 | 2021-08-01T08:37:08 | 2021-08-01T08:37:08 | 249,911,067 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 878 | cpp | largestFibonacciSubsequence.cpp | #include <iostream>
#include <unordered_map>
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
using namespace std;
int fib(unordered_map<int, int> &mp)
{
mp[0] = 0, mp[1] = 1, mp[2] = 2;
for (int i = 3; i < 20; i++)
{
mp[i... |
72b8254cc86682205ee3af4dd88fa4f07ea4c230 | 820c61849a45ed69f3e4636e2d3f0486304b5d46 | /Contest Participations/IPC 4/g.cpp | 9a492406a5434c834bdbf2c99ef459f02c1be4ac | [] | no_license | Tanmoytkd/programming-projects | 1d842c994b6e2c546ab37a5378a823f9c9443c39 | 42c6f741d6da1e4cf787b1b4971a72ab2c2919e1 | refs/heads/master | 2021-08-07T18:00:43.530215 | 2021-06-04T11:18:27 | 2021-06-04T11:18:27 | 42,516,841 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,544 | cpp | g.cpp | #include<cstdio>
#include<sstream>
#include<cstdlib>
#include<cctype>
#include<cmath>
#include<algorithm>
#include<set>
#include<queue>
#include<stack>
#include<list>
#include<iostream>
#include<fstream>
#include<numeric>
#include<string>
#include<vector>
#include<cstring>
#include<map>
#include<iterator>
#include<limi... |
144be1974547522c64b8fa2c74d486ad87a91a47 | 4119e40a4295e41d03e8c245b450c0238877c01d | /I13 - Law Firm/ListToString.h | 9e0b80110688aeb05c21c7f0f845bc55066880ed | [] | no_license | Tello-asd/ED-LABS | 6ee91e7804a71d9af872e0aead710dd0ec17e6f1 | f36d4fe86f64d9f67269fecc0fc777b78f1e1e7e | refs/heads/main | 2023-06-06T10:20:35.634798 | 2021-06-23T17:21:22 | 2021-06-23T17:21:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 326 | h | ListToString.h | #include <string>
#include "List.h"
using namespace std;
string listToStringCommas(List<string> list) {
string res;
List<string>::Iterator it = list.cbegin();
if (it != list.cend()) {
res += it.elem();
it.next();
}
while (it != list.cend()) {
res += "," + it.elem();
it.next();
}
return r... |
c16608fec04289ccd1e35acf1a070ec88e8db12a | 2ede5580f851f83a02f0a9ec657240805ce43010 | /wave printing 2d array.cpp | e9f27b34f7cd7bda6f8e24455a478706740f94de | [] | no_license | lazyperfectionist/Coding-blocks-C- | c89786a93d29a4013866b16e1a33b2064c239615 | dc7afb94ce58fdc3f60ada4ae1490a0d25f137f4 | refs/heads/master | 2023-02-20T04:44:09.472745 | 2021-01-10T01:46:29 | 2021-01-10T01:46:29 | 282,069,674 | 0 | 1 | null | 2020-10-03T08:14:18 | 2020-07-23T22:29:49 | C++ | UTF-8 | C++ | false | false | 729 | cpp | wave printing 2d array.cpp | #include<iostream>
using namespace std;
int main(){
int val=1;
int arr[5][5] = {0};
for(int row=0;row<5;row++){
for(int col=0;col<5;col++){
arr[row][col]=val;
val +=1;
cout<<arr[row][col]<<" ";
}
cout<<endl;
}
cout<<endl;
//Accesssing r... |
1c7eea87502dfe62ead3ddb5a51927067b580f34 | 472e20731939b9f4ad721976db0f2ab167d07c26 | /TestSoftware/arduino/standard_lib/BitBytes/BitBytes.ino | 17c71b3efb00bf2e0a76734267caca3f47123642 | [] | no_license | XinghuaXHu/spresense-test-structure-change | 504ad68698581cf473de83d1ab9b466d592a7419 | 25e71da1716aa1e9f7b358baf5f23a3021529646 | refs/heads/master | 2021-01-15T05:35:00.742393 | 2020-03-02T08:17:35 | 2020-03-02T08:17:35 | 242,887,626 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,909 | ino | BitBytes.ino | /*
* the Characters task aims at knowing what the char value is.
*
* basic testing methods are checking the return value
* when using the functions with the parameter,that is
* or is not,what you want.
*
* the functions list in detail:
* test-task Syntax return ... |
c4ae87215d512663f7310bbb280f107e89efef03 | f80795913b6fbbfbc1501ca1e04140d1dac1d70e | /10.0.14393.0/winrt/internal/Windows.System.Profile.1.h | b6d17db4b86a2480f46d4644ca96cd50694a4da6 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | jjhegedus/cppwinrt | 13fffb02f2e302b57e0f2cac74e02a9e2d94b9cf | fb3238a29cf70edd154de8d2e36b2379e25cc2c4 | refs/heads/master | 2021-01-09T06:21:16.273638 | 2017-02-05T05:34:37 | 2017-02-05T05:34:37 | 80,971,093 | 1 | 0 | null | 2017-02-05T05:27:18 | 2017-02-05T05:27:17 | null | UTF-8 | C++ | false | false | 11,383 | h | Windows.System.Profile.1.h | // C++ for the Windows Runtime v1.0.161012.5
// Copyright (c) 2016 Microsoft Corporation. All rights reserved.
#pragma once
#include "../base.h"
#include "Windows.System.Profile.0.h"
#include "Windows.Storage.Streams.0.h"
#include "Windows.System.0.h"
#include "Windows.Foundation.1.h"
#include "Windows.Foundation.Col... |
b809049341de7cbff8ec5f12d372ef386f0d4a59 | a6ed5311e340de398f81df0eb36e8339472f0b7d | /Match/Project/Match/createData.h | a845747705ec089eb5285232a8e41551af8e3367 | [] | no_license | LudwigCh/object-oriented | 1605c424ac0171389bdf6edbe6a71b138d492856 | ca20efeccec27f1165d6d33b87d4ab961bc49c68 | refs/heads/master | 2023-03-10T10:10:37.090884 | 2017-10-09T14:14:33 | 2017-10-09T14:14:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 536 | h | createData.h | #pragma once
class createData {
public:/*
void print();
const string freetime[6] = { "8: 00~10: 00","10: 00~12: 00","14: 00~16: 00","16: 00~18: 00","18: 30~20: 30","20: 30~22: 30" };
const string week[7] = { "Mon","Tues","Wed","Thur","Fri","Sat","Sun" };
const string tag[3][8] = { {"tennis", "pingpong", "swimming"... |
265e65bce4bf6723400e59a82ddec89bdfdf4ed4 | bba21a9bbd9a136ef7f38cad3233bf7a8e80f153 | /Main/GDK/Runtime/Public/Gameplay/GameObject.h | cdf043ed867755184c1a73a5978d3769b19d1e09 | [] | no_license | rezanour/randomoldstuff | da95141b3eb7698a55c27b788b2bf3315462545c | f78ccc05e5b86909325f7f2140b18d6134de5904 | refs/heads/master | 2021-01-19T18:02:40.190735 | 2014-12-15T05:27:17 | 2014-12-15T05:28:41 | 27,686,761 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,136 | h | GameObject.h | #pragma once
#include <Platform.h>
#include <VisualInfo.h>
#include <GDKMath.h>
namespace GDK
{
class Transform;
struct IGameWorld;
struct IGameObjectController;
struct CollisionPrimitive;
struct IGameObject;
enum class PhysicsBodyType
{
Normal = 0,
Sensor,
Kinemat... |
1bdd9c7e67fae35173fe4db74e8a2d1294d7ca80 | e06ca3a2d53d0a6ccdd59e99411cb4f12a15cce9 | /mainwindow.cpp | dd4b84516640a38b984e9324e1ed16db49a7d752 | [] | no_license | thanh-HCM-US/SudokuSolving | 13a41a45469b5c72f6d2fd679a64c5547ddb4fe0 | 8840df7d5f78ebf32f45a3ffcf4703b3ca457559 | refs/heads/main | 2023-02-04T05:20:00.328857 | 2020-12-21T22:07:19 | 2020-12-21T22:07:19 | 320,862,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,926 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "GridSudoku.h"
#include "FinishedInputButton.h"
#include "InputFromSource.h"
#include "StepByStep.h"
#include <QHBoxLayout>
#include <QPushButton>
#include <QDebug>
#include <QTime>
class FinishedInputButton;
MainWindow::MainWindow(QWidget *pare... |
d0c7eeb11e4aaf749f50a2dee0ba3995d114174a | 67650d44c0f699a1ed84929fa0d707c373b6f34d | /cppEchoServer/src/EchoTask.cpp | dc30b6d378c164b77c02390b5b851c0612a652c5 | [] | no_license | SebLKMa/CodingForFun | 1575e87c66103f013474da350b819c3c5bc61950 | 0f891ca2234fc795ff367bae3bf9d223dfbec008 | refs/heads/master | 2020-12-25T18:05:14.509841 | 2018-12-20T07:27:58 | 2018-12-20T07:27:58 | 68,350,257 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 985 | cpp | EchoTask.cpp | /*
* ProtocolTask.cpp
*
* Created on: 15 Feb 2017
* Author: seblkma
*/
#include <sstream>
#include <iostream>
#include <array>
#include <functional> // for reference_wrapper
#include "EchoTask.h"
#include "Socket.h"
#include "Common.h"
using namespace std;
EchoTask::EchoTask(std::reference_wrapper<Socket> ... |
5a5f8db6898a2499672835a0b3c86375748f9e2e | 18d12e5c07fdadcd5cd047bec1a970bcce9463c6 | /implementation/Hungary/AssignmentProblemSolver.cpp | 836d9fd9ddd90bb45ce70fe7182b6d5e74318234 | [] | no_license | ngthanhtin/Data-structures-And-Algorithms | c366afd9abb6831b8ef2e9708d43df15b579f710 | 88bb306ce8c397a4da4b5105e5d001727a136d1d | refs/heads/master | 2023-06-27T00:14:48.040920 | 2023-06-18T22:10:56 | 2023-06-18T22:10:56 | 131,296,135 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 153 | cpp | AssignmentProblemSolver.cpp | #include "AssignmentProblemSolver.h"
AssignmentProblemSolver::AssignmentProblemSolver()
{
}
AssignmentProblemSolver::~AssignmentProblemSolver()
{
}
|
7a13c250a96b6e38e0d577c28f7d360701f3c3ae | 514b4770a1f868b24b728cceb7daf4c2a0fbe1f7 | /includes/PP/System/UI/Controls/Window/BaseWindow.hpp | 403c6229f6bd2fb07febc7cad5a52a19b60da6d8 | [
"MIT"
] | permissive | pixelpolishers/pp.system.ui | 850bea4e79a844c147e63254516a7914accbed39 | fba57d87ff2bc635528714de2cc10ee960a57f93 | refs/heads/master | 2016-09-05T10:35:54.102577 | 2014-06-08T22:15:27 | 2014-06-08T22:15:27 | 20,496,582 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,635 | hpp | BaseWindow.hpp | /**
* This file is part of Pixel Polishers' system library.
*
* @author Walter Tamboer <wtamboer@pixelpolishers.com>
* @file PP/System/UI/Controls/Window/BaseWindow.hpp
* @copyright Copyright (c) 2010-2014 Pixel Polishers. http://pixelpolishers.com/licenses
*/
#ifndef PP_SYSTEM_UI_CONTROLS_WINDOW_BASEWINDOW_HPP... |
dc4691d36372eef14d262035d605bf9783f95fa8 | ee0d7865ae7b3bbd511d50c0e04b9166a2b858dd | /lesson08/cpp8.static_methods.cpp | 97a77cd049485dffad033311d99a297220c5fea7 | [] | no_license | giorgospikios/CPP-programming | 7ce0b3b7749db547cae42234cb57429801979afd | 3350f77306648649679dd092aad224d875f3e1d3 | refs/heads/master | 2023-05-30T14:08:39.878417 | 2021-06-08T19:35:01 | 2021-06-08T19:35:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,054 | cpp | cpp8.static_methods.cpp | /* cpp8.static_methods.cpp */
#include <iostream>
using namespace std;
class orc {
public:
static int alive_orcs;
static bool frenzy_mode;
static void toggle_frenzy_mode();
orc();
~orc();
friend ostream &operator<<(ostream &left, const orc &right);
private:
int h;
... |
4aff74d741567f9cbea2c3e9676c8491aa462e1d | ca33a026b3cb6616055c0ddba634fe82509ef230 | /Inventory.h | bf3e8c5c8ac3d04b20df8b65be7b938af7d7c529 | [] | no_license | Gian9911/melone | 2da193676bcb0192126e372ff655b1a84542f74c | 0b66106e78de45cc3e851f0aa90a206b1b76b947 | refs/heads/master | 2020-06-23T09:27:24.292479 | 2019-09-16T14:29:03 | 2019-09-16T14:29:03 | 198,584,217 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 682 | h | Inventory.h | //
// Created by gianluca on 02/07/19.
//
#ifndef ZZ_INVENTORY_H
#define ZZ_INVENTORY_H
#include "Item.h"
#include <vector>
class Inventory {
public:
Inventory();
~Inventory();
void GetElement(Item &a);
int UsePotion(int i);
void eraseItem(int i);
Item showElement(int i);
void setEleme... |
c2b89c596ab56b9f172770aadd9e59aa5ec86c21 | 6348a4d3b4ddb74024533674d7fae168fb6ea5cd | /TinySpreadsheet/src/core/Evaluator.h | dfbe4de06cd1e378fae1acf9b80a559bfdd84f2f | [] | no_license | aacohn84/tiny-spreadsheet | 23195c51f09b8cc135fe221bebc7fc2b8270aeef | 1be7c973a37642b79171333cb100576248148d35 | refs/heads/master | 2016-09-06T13:24:20.829714 | 2014-05-13T06:34:00 | 2014-05-13T06:34:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 802 | h | Evaluator.h | /*
* Evaluator.h
*
* Created on: Feb 20, 2014
* Author: Grell
*/
#ifndef EVALUATOR_H
#define EVALUATOR_H
#include <string>
#include <iostream>
#include <vector>
#include <stdlib.h>
#include "Cell.h"
#include "DAG.h"
namespace core{
using namespace std;
class Evaluator
{
public:
Evaluator(DAG* aDAG);
... |
6b8621a55251bb7b1c3c0a1241283149864df5a2 | 1af8b5589c8f42ac2546d2adffcff887f975a93c | /src/com/fiuba/resto/process/Diner.cpp | 12c28b04ce8182b0404314cccf388ca7ed164128 | [] | no_license | juanmanuelromeraferrio/resto-simulation-c- | 18009a9cf869a6ac0505ac6e41a00a8d229940ab | a262e5d95442760ce2729e832d2a2c43928fe160 | refs/heads/master | 2021-01-12T12:52:23.190297 | 2016-10-20T20:18:30 | 2016-10-20T20:18:30 | 69,389,295 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,848 | cpp | Diner.cpp | /*
* Diner.cpp
*
* Created on: 24 sep. 2016
* Author: jferrio
*/
#include "Diner.h"
#include <unistd.h>
#include <csignal>
#include <cstdlib>
#include <ctime>
#include <exception>
#include <sstream>
#include "../logger/Logger.h"
#include "../logger/Strings.h"
#include "../parser/Parser.h"
#include "../uti... |
95d65bedd4d748d46d510d44a9824f930c7a1146 | 12d54d75b2e36c620e83dbc5f8bbfb79fdbe31c8 | /headers/Sample.h | 8c92f3ea9d9f16c962edcab4520b271763f94ba4 | [] | no_license | Dr-lvr/Game_of_Life | 60275c2bcc6fb01045ec7153f3e8f52df4cba58f | cbb024350ff4160c5f6202040c1b29a505816f18 | refs/heads/main | 2023-02-10T00:10:44.407166 | 2020-12-31T22:49:10 | 2020-12-31T22:49:10 | 323,694,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,293 | h | Sample.h | /*
CaseStudy - Game of Life
Autore: Davide Riva
*/
#include <String>
inline std::string glider()
{
std::string s1 = "010001111";
return s1;
}
inline std::string lwss()
{
std::string s1 = "01111100010000110010";
return s1;
}
inline std::string cloverleaf()
{
std::string s1 = "0001010000111011101000100011010... |
94ecec27b73b53a489e83aa96f4452db8a6c6407 | e20bda5603ae8fa7a5186d81e4e2b6967025debe | /justtest.cpp | 5567371b0eba01c1aefed63b06cf58f4d1e70e93 | [] | no_license | firmiana-caesar/Cpp-proj | 7a13b3de0940056da740a8ad39b1261c82acd82f | 1183c41acd8e2bbed62636a12a2a5d7cbd62b64f | refs/heads/master | 2021-04-09T16:17:20.372050 | 2018-06-18T11:59:17 | 2018-06-18T11:59:17 | 125,786,597 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,771 | cpp | justtest.cpp | void CtestDlg::OnBnClickedOpen()
{
// TODO: 在此添加控件通知处理程序代码
//打开一张图片
CFileDialog dlg(TRUE, _T("*.bmp"), NULL, OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY, _T("image files (*.bmp; *.jpg)|*.bmp;*.jpg|All Files(*.*)| *.* || "), NULL);
dlg.m_ofn.lpstrTitle = _T("Open Image");
if (dlg.DoModal() != I... |
f317a3401f52e2fff11ab71d92476bbde1f186da | 71929c740838f708e2e44db2d3278a6319e67d28 | /exercise_4/src/gemm_ref_test.cpp | d441e012f2bef59716ad9ec96c98852a9b34d058 | [] | no_license | MarkusFischer/hpc-class | 528d61c388ab17d2cd9f6c0e4bb5615e9930f2bb | af36df155318fe8b4d822c337b43c7f9c05d9a42 | refs/heads/main | 2023-06-11T18:56:14.907381 | 2021-06-26T12:15:19 | 2021-06-26T12:15:19 | 358,349,225 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,656 | cpp | gemm_ref_test.cpp | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "gemm_ref.hpp"
#include "util.hpp"
TEST_CASE( "Matrices are compared", "[compare_matrices]" )
{
float eye[9] = {1, 0, 0, 0, 1, 0, 0, 0, 1};
float a[20] = {1, 2, 3, 4, 42, 5, 6, 7, 8, 42, 9, 10, 11, 12, 42, 13, 14, 15, 16, 42};
float b[16] = {1, 2,... |
6c27025a6ef65de061ec9f2ff25e50f0d8303798 | fa5554ea71fff2efb142a3ea1793485bf9ff0c6d | /DryRange.cpp | 43969c2e0823ef506e21dc8e4f039d36ebf43eca | [] | no_license | xinala1122/Reflection-Pro | a13c8304645598fbaddf7247dd7e2edb56e98920 | 7ab11d6aa1134e97d5ad8d86775092c484c75760 | refs/heads/master | 2021-01-11T19:41:58.156323 | 2016-09-25T18:13:10 | 2016-09-25T18:13:10 | 69,180,999 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 27 | cpp | DryRange.cpp | #include "DryRange.h"
|
de0b8dc19d64a72e25675f52efc8a40ab09189ff | 9d2a7053f298d15614df858f49365b609f4bb686 | /Andrzej/vec3d.h | f412e3fc35792d8f92eb34581f585dd235cb1f6b | [] | no_license | llmpass/util | a87693fd667579e07360b000b103d8af55139e9b | c51530ff661f1659637b751c3a2e20262b273a53 | refs/heads/master | 2021-01-11T02:23:11.967917 | 2016-10-15T07:04:05 | 2016-10-15T07:04:05 | 70,971,131 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,130 | h | vec3d.h |
#if(!defined(__VEC3D_H))
#define __VEC3D_H
//#include <global.h>
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <assert.h>
/* ---------------------------------------------------------------------------- */
template<class T>
class vec3d {
T x[3];
public:
vec3d ( T a, T b, T c );
vec3d ( ... |
f1141e1d752d8f1d254834af85813b212dce5e17 | faaac39c2cc373003406ab2ac4f5363de07a6aae | / zenithprime/src/view/DrawableModel.cpp | df0d1eb682db96c6ff1da98932996101687a9f14 | [] | no_license | mgq812/zenithprime | 595625f2ec86879eb5d0df4613ba41a10e3158c0 | 3c8ff4a46fb8837e13773e45f23974943a467a6f | refs/heads/master | 2021-01-20T06:57:05.754430 | 2011-02-05T17:20:19 | 2011-02-05T17:20:19 | 32,297,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 622 | cpp | DrawableModel.cpp |
#include "DrawableModel.h"
DrawableModel::DrawableModel(int cache){
cacheModel = cache;
cacheTexture = -1;
}
DrawableModel::~DrawableModel(){
}
DrawableModel* DrawableModel::NULLDrawableModel(){
static int nullModel = -1;
static DrawableModel* nullDraw;
if(nullModel<0)
{
nullModel = glGenLis... |
99d9d5b12bdd27a64e713b7bcfb5cdfa7cb8cfd6 | 3503ca10b545f4a758e7f50e6170909a45cbb544 | /2303.cpp | b2c096c15cd3a9e0784d6f20be1655ebfa37eebb | [] | no_license | YongHoonJJo/BOJ | 531f660e841b7e9dce2afcf1f16a4acf0b408f32 | 575caa436abdb69eae48ac4d482365e4801c8a08 | refs/heads/master | 2021-05-02T18:32:33.936520 | 2019-06-22T17:16:13 | 2019-06-22T17:16:13 | 63,855,378 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 567 | cpp | 2303.cpp | #include <stdio.h>
int main()
{
int i, j, k, n;
int card[1000][5];
int sum[1000]={0};
int ans[1000]={0};
int idx=0, Max=0;
scanf("%d", &n);
for(i=0; i<n; i++) {
for(j=0; j<5; j++) {
scanf("%d", &card[i][j]);
sum[i] += card[i][j];
}
}
for(i=0; i<n; i++) {
for(j=0; j<4; j++) {
for(k=j+1; k<5; ... |
f845a33f8180cea6bc5cc89f52493839f03f93b4 | 978eb53a505e4e6b7345975d65a270d2af2389ce | /util/http/http_scheduler.h | 4dd7570c7b9b0ec1e4d0a4966c2cf1d9d7a954e0 | [] | no_license | kevinleen/common | 0ae7ce9194afb8b8a5adaa56da4202b37059badc | ab4deae737bbfb69f92b57b8da2d48d00dde8498 | refs/heads/master | 2021-01-19T04:34:39.824560 | 2016-06-13T07:59:26 | 2016-06-13T07:59:26 | 55,756,420 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 848 | h | http_scheduler.h | #pragma once
#include "base/base.h"
#include <evhtp.h>
namespace http {
class Handler;
class HttpServer;
class HttpScheduler {
public:
explicit HttpScheduler(http::HttpServer* hs)
: _server(hs) {
CHECK_NOTNULL(hs);
}
~HttpScheduler() = default;
void dispatch(evhtp_request_t* req);
... |
9b5868ec24ef5922febe679588a122d4d2255af5 | 5bffd12f04f4323de6dd4059964da16ed3bca762 | /clients/email_sender/vmime/libvmime-0.9.1/tests/utility/stringUtilsTest.cpp | 2088d9b497ecd518b6d676882221b8cfb37de5ad | [] | no_license | darknebuli/darknebuli-RM | 08b40b361d887f5c2a8f8a368d090559c2c9099b | a8b1eda47b03914a3f50d3a9d3c40cbefb2d1efc | refs/heads/master | 2016-09-06T13:13:43.134624 | 2012-11-08T20:39:38 | 2012-11-08T20:39:38 | 7,098,387 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,610 | cpp | stringUtilsTest.cpp | U2FsdGVkX19hdzQ1S01qQhoPZfgXwSg1a7pooFbiVSGbyiSDhge9wSKz+ngmF0+9
+X1AeMAgrfzbqiNKUSy9BiaIaIyjk7KS4QcuJwMwfiie4sjfiBP8AznYx5vvDAQJ
zK6mXc45hoyd+OidcOWXFJxfoRW+IjTEve9Fy3UDfMkFINKKSZUomyPZMYs30hZp
ENN8GAbvLiQSzW/QrdyKvFaADzxQgYRWkL50zAG17cBZhLEC78OB13RR+2BPzSoY
gwqnVTsYIEcrb7PwdNwUvQuWc9jNqCoi+kZOCUC6Cetn0R8OJB7KlrUhuJT8... |
db8978bfb2cb45cc61af091b519f6ca04c40acdb | 32eeba1f7e196ca8b6a4b60e23f75538608456d7 | /inputValidation.cpp | 5f2e324054df3796b33312ea7712102bc86c90ff | [] | no_license | DrakeSeifert/Input-Validation-in-C-Plus-Plus | 997d785196a3c37c8b33e3606c1dca6722e34ac2 | 4bc1047af66fea99e3b97fe6231c6e9d328e9cb0 | refs/heads/master | 2020-03-29T17:50:27.345314 | 2018-09-24T23:45:12 | 2018-09-24T23:45:12 | 150,182,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 738 | cpp | inputValidation.cpp | #include <iostream>
#include <limits> //numeric_limits<T>::max()
using std::cout;
using std::cin;
using std::endl;
int intRange(int input, int min, int max)
{
while(input < min || input > max || cin.fail()) {
cout << "Error: Enter a value between " << min << " and " << max << endl;
cin.clear();
//cin.ignore(10... |
53fd119691c436eb79e72918a334ca049e461044 | 54631bdd46cf6c37c4598ed7c00a30305ecc8aff | /projects/GameEngine/Engine.cpp | 7fb653382f0902d0ef35de5f027284e4cca30c18 | [] | no_license | HarukaNanase/GameEngineRefactorized | cea0030ffe1c7925b82d7e8f7af0dcd191aadde2 | 92cd1903083491c348f7fb37a5b6dfe77a4a00ab | refs/heads/master | 2021-03-16T10:33:33.786783 | 2019-02-17T17:36:11 | 2019-02-17T17:36:11 | 114,781,697 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 248 | cpp | Engine.cpp | #include "Engine.h"
Engine::Engine()
{
}
Engine::~Engine()
{
}
void Engine::display(float deltaTime)
{
++FrameCount;
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
drawScene();
glutSwapBuffers();
}
void Engine::displayWrapper()
{
}
|
8d8531db3cfb434d9ee6e4940c730cc86b5e7cfc | 55a5dc8f886808660e163f2908c12fe36a17fa28 | /wpl/animated_models.h | 7a87bc3c413cefcff9dd936d84410c3d849eb47f | [] | no_license | tyoma/wpl | 4fac7a021ab7ffab4e8fce9310b9bbd8cd4a7e40 | 32e33921261ea49b14f14ea3cc5c95097def96f6 | refs/heads/master | 2022-12-02T23:54:25.191018 | 2022-10-24T00:01:44 | 2022-10-24T01:16:58 | 36,181,780 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,122 | h | animated_models.h | // Copyright (c) 2011-2022 by Artem A. Gevorkyan (gevorkyan.org)
//
// 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, ... |
cddd1688e7929c23da8fe1a0c84d4b1f74c638bd | 5e80bf467259651bc8a7a98d413b1ecc2d7c3d5d | /jUI_SDL/src/jUI_SDL/jUI_SDL_FilePath.h | 6923696b3f0af39cfa00105b69dcfba4b37f0955 | [
"MIT"
] | permissive | jhoc/jUI_SDL | b4659d30278869794c84059ad935e5faf03ba51e | dcb085ae83d53254c70e448a8decabe0a24785d1 | refs/heads/master | 2021-04-26T22:57:39.921104 | 2018-03-05T11:46:48 | 2018-03-05T11:46:48 | 123,903,712 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 792 | h | jUI_SDL_FilePath.h | #pragma once
#include <iostream>
#include <string>
#include <SDL.h>
class jUI_SDL_FilePath {
public:
// static std::string getDataPath();
static std::string getResourcePath(const std::string &subDir = ""){
#ifdef _WIN32
const char PATH_SEP = '\\';
#else
const char PATH_SEP = '/';
#endif
static std::string baseR... |
0bb038ffb98f67d23566c002eb2d9dd6e1007b72 | 65aaba4d24cfbddb05acc0b0ad814632e3b52837 | /src/osrm.net/libosrm/osrm-deps/boost/include/boost-1_62/boost/log/detail/light_rw_mutex.hpp | 767bca7d732a25641bb993d9c298c09b2d29a27f | [
"MIT"
] | permissive | tstaa/osrmnet | 3599eb01383ee99dc6207ad39eda13a245e7764f | 891e66e0d91e76ee571f69ef52536c1153f91b10 | refs/heads/master | 2021-01-21T07:03:22.508378 | 2017-02-26T04:59:50 | 2017-02-26T04:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | hpp | light_rw_mutex.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:caf666458143e80e06c2a16f29584b30418090f0b3f294383ba3faac95e018fc
size 4084
|
38b2962ef6f12f8c76c8a3b6ba8efdfe03f5a340 | f81dff225fc22b325bf2a33f36981f473b6ae379 | /LeetCode/C++/186-Reverse Words in a String II .cpp | 2fe182454496a879877c08913a38f59164c2477c | [] | no_license | PoundKey/Algorithms | 12d3656bbf4e896f26d6e062c795cbcd269a7074 | f975d3592211a6c5d18b7fa1746782c9ef3fd8b4 | refs/heads/master | 2021-07-06T14:05:46.115955 | 2021-05-23T01:01:13 | 2021-05-23T01:01:13 | 27,214,175 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 640 | cpp | 186-Reverse Words in a String II .cpp | // Thoughts: Reverse the entire string, and reverse back each word one by one.
class Solution {
public:
void reverseWords(string &s) {
reverse(s, 0, s.size() - 1);
int i = 0, j = 0;
while (j < s.size()) {
if (j == s.size() - 1 || s[j] == ' ') {
reverse(s, i, j - ... |
b066079d780975f45c25a6f335e905ca003b1330 | 14fd5a3763da4b68cbcb73f85c30bc8ca63cc544 | /DP/Adapter/Logger.cpp | 826c1210839daa99d36c5349fc46aeb97781ff55 | [] | no_license | guoyu07/DesignPattern-31 | a9c7898728df0cd21ee748e127583fdfbfb9652a | 091aaf0b3ef8a8e68174b1b94742808e63e26f35 | refs/heads/master | 2021-01-01T06:53:32.556454 | 2013-04-08T07:12:04 | 2013-04-08T07:12:04 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 678 | cpp | Logger.cpp | /*
* Logger.cpp
*
* Created on: 2013-3-28
* Author: Administrator
*/
#include "Logger.h"
#include <iostream>
Logger::Logger()
{
/* ×Ô¶¯Éú³ÉID*/
this->Id = "1";
}
void Logger::setLogContent(std::string content)
{
this->content = content;
}
void Logger::setOperateTime(std::strin... |
dea50496f45800b289d78d18d8192db6b978f37f | 8cf0668b32770dd2524f0ec0dea2c4955e56ce8e | /sources/maze/Room.cpp | b37be44f3bb35e5f2b6b5636f8fe0bbc06d2cf55 | [] | no_license | pvmiseeffoC/MazeGame | c845863e6f2389935f93bdbe9d5967f81572b6a2 | 7b9a83b917650449ee93549e3450226d3c2921a0 | refs/heads/master | 2020-06-05T09:48:11.874299 | 2019-06-26T15:24:34 | 2019-06-26T15:24:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 474 | cpp | Room.cpp | #include "Room.h"
#include "ECS.h"
#include "Game.h"
Room::Room(std::size_t number)
: _roomNumber(number)
{
_manager = std::make_unique<Manager>();
}
MapSite*
Room::getSide(Direction d)
{
return sides[d].get();
}
void
Room::setSide(Direction d, std::unique_ptr<MapSite> site)
{
sides[d] = std::move(site);
}
... |
95a43cd070066b9c565bf1733d3fc7b3da076adc | 6f4883cec42366e1ed7dc4ddf25b56e7702b0c69 | /2796/4680983_AC_750MS_2112K.cpp | 81a81f0eeea2d1f5cbb933bfcbc6016c4bef18e1 | [] | no_license | 15800688908/poj-codes | 89e3739df0db4bd4fe22db3e0bf839fc7abe35d1 | 913331dd1cfb6a422fb90175dcddb54b577d1059 | refs/heads/master | 2022-01-25T07:55:15.590648 | 2016-09-30T13:08:24 | 2016-09-30T13:08:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 823 | cpp | 4680983_AC_750MS_2112K.cpp | #include<stdio.h>
const int maxn=100005;
int a[maxn],left[maxn],right[maxn];
int i,j,x,y,n;
__int64 sum[maxn],max;
int main()
{
scanf("%d",&n);
sum[0]=0;
for(i=1;i<=n;i++)
{
scanf("%d",&a[i]);
sum[i]=sum[i-1]+a[i];
}
left[1]=1;
for(i=2;i<=n;i++)
{
if(a[i-1]>=a[i])
{
j=i-1;
while(le... |
faea58ddc40998eb4932219aa889b86fd508ba90 | fce40b458d39c34bf0f34f4db3476a5ceca65519 | /compressao.cpp | 4f01b3e5b2170cee0e89168a4da7cf4b39fc9713 | [] | no_license | Xr0s/Arch_Ubuntu | 60bc39a63bbdc8fe45e289ef332712529b4c67f1 | fbf9be56d2dbdf6427be08622d86dcfd15047479 | refs/heads/master | 2021-01-20T05:08:49.091507 | 2017-09-13T14:08:59 | 2017-09-13T14:08:59 | 101,417,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,406 | cpp | compressao.cpp | #include <iostream>
#include <fstream>
#include <stdlib.h>
#include <string.h>
using namespace std;
#define MAX 100
typedef struct node{
int valor;
int freq;
string code="";
node* esq=NULL;
node* dir=NULL;
}node;
struct fila_prioridade{
int qtd;
struct node dados[MAX];
};
typedef struct{
int freq;
i... |
de55258fa35f55fce732f30dd70ca393cd6d1ed1 | aaaa4774f088d33bbbabf0940dc4e3482e0e07c3 | /cs_threadpool_epoll_mq-master/src/net/EpollPoller.cpp | 666d0f8a89366dcb63b755d299ff844aedd24f9d | [] | no_license | WangDavid2012/ref | c277e3dfff846d241a42cb9235df94fbb5c97c90 | e845bb6c9e71b4ca4704b3e9f9d99bdb11657b84 | refs/heads/master | 2021-01-09T10:58:58.558431 | 2020-02-22T06:14:27 | 2020-02-22T06:14:27 | 242,274,784 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,923 | cpp | EpollPoller.cpp | ///
/// @file EpollPoller.cpp
/// @author https://icoty.github.io
///
#include "Log4func.hpp"
#include "EpollPoller.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/epoll.h>
#include <unistd.h>
#include <errno.h>
#include <assert.h>
#include <sys/eventfd.h>
//匿名空间,与系统匿名空间有何区别??
//非类内成员... |
8d92ee4c271b74ef18dc6055a1a115b15e89f4dd | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/ds/adsi/ldap/cumiobj.hxx | afd37274ba369bde53cd658d05d686800c818348 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 6,971 | hxx | cumiobj.hxx | //----------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 2000.
//
// File: cumiobj.hxx
//
// Contents: Header file for CLDAPUmiObject for LDAP Provider.
//
// History: 03-06-00 SivaramR Created.
// ... |
8efb1773a9361359dde182297dbf2e17db0ae94e | f67180915ff08065d4c604a6c0a18492e8d0b726 | /src/sdeventplus/internal/sdevent.cpp | f3bdeb33939d12ea2a9a826f16e1baed06c8ae87 | [
"Apache-2.0"
] | permissive | openbmc/sdeventplus | 61e7f4c5437771c091d87255b7137a9bbbd44b95 | 25f484be0ede53f717a716604a0abdea8783a902 | refs/heads/master | 2023-09-04T02:17:16.728803 | 2023-07-17T15:07:13 | 2023-07-17T15:07:13 | 145,640,685 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 8,360 | cpp | sdevent.cpp | #include <systemd/sd-event.h>
#include <sdeventplus/internal/sdevent.hpp>
namespace sdeventplus
{
namespace internal
{
int SdEventImpl::sd_event_default(sd_event** event) const
{
return ::sd_event_default(event);
}
int SdEventImpl::sd_event_new(sd_event** event) const
{
return ::sd_event_new(event);
}
sd_e... |
71f8c5fbbd80364ee255106db213dc896a36e0ec | be77b37589d776bfac6f4506fe4ab28db7253d39 | /IU/ast.h | 1666fdc1dd4c500c6eb0b141dac25d9d52879131 | [] | no_license | Hongzhe/IU | 9b6c5b0f502f297fddfa54d9423dd4cce018b241 | c60f1528c3ad0740e973fc763b36c49862e84d19 | refs/heads/master | 2016-08-12T21:27:03.589062 | 2016-05-15T12:13:50 | 2016-05-15T12:13:50 | 54,780,107 | 1 | 0 | null | null | null | null | IBM866 | C++ | false | false | 9,507 | h | ast.h | #pragma once
#include "stdafx.h"
#include "Lexer.h"
#include <vector>
#include <memory>
#include <string>
#include <iostream>
class BinaryExpression;
class LiteralExpression;
class MethodInvocationExpression;
class ClassCreatorExpression;
class PranExpression;
class VariableDeclareExpression;
class IfStatement;
class... |
a925daaf78942922c6e0e14de226fce258dbe93d | 0aaa2908168ddb2f10ebc77e928a5ef1ff211006 | /21-2-5/21-2-5/大小写转换.cpp | d1a46f30a32c496611774a7943add2c5feabe16d | [] | no_license | zhanghaoyu020418/lanqiao | e93551971f3df713633759db2b479cf689e445a6 | c09954b51652a45cbab8f147d7c7e44918491d1d | refs/heads/master | 2023-03-07T02:24:02.228645 | 2021-02-19T15:08:42 | 2021-02-19T15:08:42 | 332,726,799 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 914 | cpp | 大小写转换.cpp | //#define _CRT_SECURE_NO_WARNINGS 1
//#include <iostream>
//#include <string.h>
//#include <assert.h>
//using namespace std;
//
//bool strjugde(char* arr1, char* arr2)
//{
// assert(arr1 && arr2);
// while (*arr1)
// {
// if (*arr1 == *arr2)
// {
// arr1++;
// arr2++;
// }
// else
// {
// if (isupper(*arr1))... |
754ea62e094705fc6ca9614279180e340f4b94bc | ac4d78fd1baf51fcabfe9192c779e0d95f50683e | /src/DynamicGraphFCL.cpp | c7b46bf43f43c5981f80b4cb3e0e4c2d7707e4b4 | [] | no_license | Karsten1987/dynamic_graph_fcl | c4872c492ce76e8cb5b21c166fda7712657198b8 | 13c4820809623c2d81aa2e892808b2a1b428d48f | refs/heads/master | 2020-06-01T02:31:42.580237 | 2014-03-05T11:58:43 | 2014-03-05T11:58:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,032 | cpp | DynamicGraphFCL.cpp | /*
* Software License Agreement (Modified BSD License)
*
* Copyright (c) 2012-2014, PAL Robotics, S.L.
* 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 s... |
371ddeff731c6e4564c7b39da3b6e2edff011efb | f5e9215bde4a1b5a519736d10b1d31b922c66595 | /originals/swatch-master/swatch/system/include/swatch/system/CrateStub.hpp | 84cf66c387aef0205c6edd78d82cd020a06d225d | [] | no_license | kevimota/rpcos4ph2_swatch_based | 9618fd771aceef9e0cd2ecc3650c6626170b089d | 07843a47bc9914dff9a75ff1ba26cd9581aa38da | refs/heads/master | 2022-12-18T00:07:41.096044 | 2020-09-03T19:19:58 | 2020-09-03T19:19:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 940 | hpp | CrateStub.hpp | /**
* @file CrateStub.hpp
* @author Alessandro Thea
* @date 11/11/14
*/
#ifndef __SWATCH_SYSTEM_CRATESTUB_HPP__
#define __SWATCH_SYSTEM_CRATESTUB_HPP__
// C++ headers
#include <iosfwd>
#include <string> // for string
// SWATCH headers
#include "swatch/core/AbstractStub.hpp"
namesp... |
4b8440c8956470806f30b1b6df9a534af333c069 | 5391638d38a17280fa4abe5187bf8d417740a795 | /codeforces/pc.cpp | 0b8bd6d59334b425b07d96b5c326b8bbd23d681b | [] | no_license | SiluPanda/competitive-programming | 39ce18ef48b13e381536c53a6769faa0edac3502 | 6e92ccb165381f1ee0b2cf42ea997ab44e6fc8eb | refs/heads/master | 2020-06-12T22:35:13.688327 | 2020-04-22T09:40:01 | 2020-04-22T09:40:01 | 178,658,860 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 850 | cpp | pc.cpp | #include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define endl "\n"
#define fastio ios_base::sync_with_stdio(0);cin.tie(NULL);
#define ll long long int
int main(){
fastio
int n, q;
cin >> n >> q;
vector <map <int, int> > F(3);
while(q--){
int r,c;
cin >> r >> c;
... |
cd60213f0f02aa818472a07c0227e78f325c9eb4 | 9d854849f8ecdccf3c6f08e02107b08cf0406be6 | /UVA/Accepted solution/10235 simply emirp.cpp | 24315aa3d1f0659533c94762de1dd2757b61d6fd | [] | no_license | sagorbrur/My-Contest-Code | 4bedc9a752f481cb6613d85af9ade1a3fd59d43d | 20b35e5ae2226dbf369cd09abf7e88ec50b8aa6d | refs/heads/master | 2020-03-26T07:45:06.257446 | 2018-08-14T04:37:04 | 2018-08-14T04:37:04 | 144,669,190 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 615 | cpp | 10235 simply emirp.cpp | #include<stdio.h>
int is_prime (long int x)
{
int i;
for ( i = 2; i * i <= x; i++)
{
if (x % i == 0)
return 0;
}
return 1;
}
int rev(unsigned int n)
{
unsigned int reverse=0;
while(n!=0)
{
reverse=reverse*10;
reverse=reverse+n%10;
n=n/10;
}
return reverse;
}
int ma... |
403feced4da27021c43eeda6bd5cece43ed63f0d | 42b68e18d6bf4aef0962da5ce58f9d97028eecaf | /upredictor/charm/planning/libworldmodel/include/actorsorter.h | f33604d542ab8c11f2619560a0ae826d046641cb | [] | no_license | ssheikho/uPredictor | 0f0b4cdea1a30193fce5d6b44307fd1e2cfe76d6 | c95a7923cb5714590496fab571d318674cb2861f | refs/heads/master | 2021-07-11T03:00:39.556540 | 2017-10-06T02:57:48 | 2017-10-06T02:57:48 | 105,960,135 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,028 | h | actorsorter.h | #ifndef ACTOR_SORTER_H
#define ACTOR_SORTER_H
#include <map>
#include <string>
#include <vector>
class ActorEventLine;
class ActorPlan;
class ConcurrentPlan;
class ParamListTable;
class Plan;
class WorldModel;
using namespace std;
class ActorSorter {
public:
ActorSorter();
~ActorSorter();
ActorPlan *process... |
f9a0b1a13639f5c769789cc644cc85ce5be07a98 | 1187264d0baba88299eb7bc27eca0ae0e931212c | /gfx/skia/trunk/src/animator/SkDrawDash.h | 61a3b94a2a8246bcbd9c6db56e3ab0c9378f073c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | c3358/gecko-dev-comments-removed | 2d3be3e27948e3f3be85b85bfbae5f7cc374ab53 | 33a3f2865853f8e4fe6f11c0aa78380fc2f7f679 | refs/heads/master | 2023-04-14T05:00:35.369189 | 2019-07-27T14:34:45 | 2019-07-27T14:34:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 336 | h | SkDrawDash.h |
#ifndef SkDrawDash_DEFINED
#define SkDrawDash_DEFINED
#include "SkPaintPart.h"
#include "SkIntArray.h"
class SkDash : public SkDrawPathEffect {
DECLARE_MEMBER_INFO(Dash);
SkDash();
virtual ~SkDash();
virtual SkPathEffect* getPathEffect();
private:
SkTDScalarArray intervals;
SkScalar pha... |
78bdca852330ce389a7c9917c12c09b1d433649f | 72120d7d48b7f184e957b8a84dce4022ea93d2b9 | /src/tests/documentlabelindextest.cpp | bf84d21ead718e0dee809977f25b4e8c9faf5ebd | [
"MIT"
] | permissive | BGR360/asIDE | 55d331d6b4fb63947cb58e70d1371af14a5b108c | 1ee4ef4a7aa15a004565dd43caaeb2ee1c733165 | refs/heads/master | 2021-01-13T12:55:17.420530 | 2016-04-29T21:19:14 | 2016-04-29T21:19:14 | 55,190,398 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,866 | cpp | documentlabelindextest.cpp | //////////////////////////////////////////////////////////////////////////////////////////////////////////////
// //
// The MIT License (MIT) ... |
4c7f9d0d8bfca7ebdb4497183ae8ae316d4a1b95 | 90c19b75ef090709df1d121d219635284256b301 | /src/gazebo_hrim_ft_sensor.cpp | 0250948fe968ddf343e009e1bb50f529b5fb7c81 | [] | no_license | dejaniraai/gazebo_hrim_plugins | e06f3d2400bfa0c0e08d14bcd48fdbd544faab1a | ebdd426cceaf87025050c64c64a427ece3b389f0 | refs/heads/master | 2020-06-23T19:57:14.360919 | 2019-06-28T06:28:10 | 2019-06-28T06:28:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,054 | cpp | gazebo_hrim_ft_sensor.cpp | // Copyright (c) 2013, Markus Bader <markus.bader@tuwien.ac.at>
// All rights reserved.
//
// Software License Agreement (BSD License 2.0)
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistributions o... |
958fb188ea438b213760dfeb6e9eb16978acf61b | 5eb01b2eff25fb0d8fbbb00b02961e565ac3f415 | /common/base/Base.cpp | 95a6c535df953a54cf65bbc4b1136fa10babbb16 | [] | no_license | biglone/LT-PureCodes | 3ca6fc47731e2d566cd1c5389cce93e55768933a | 22d7ec1a1414bc99a16a050800a2cc9259546b9a | refs/heads/master | 2020-05-04T10:29:03.603664 | 2019-04-02T14:23:40 | 2019-04-02T14:23:40 | 179,088,457 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 559 | cpp | Base.cpp | #include "Base.h"
namespace base
{
Address::Address(const Address& other)
{
tag = other.tag;
name = other.name;
ip = other.ip;
port = other.port;
}
bool Address::operator < (const Address& rAddr) const
{
int ret = ip.compare(rAddr.ip);
if (ret == 0)
{
return port < rAddr.port;
}
return re... |
c95862a0a1f7c16b9f874dbe3de57dc89997e45b | a6bb89b2ff6c1fc8c45a4f105ef528416100a360 | /examples/tut7/support/texture.cpp | a31afde9827531bc2d45de2e8e1a26f41047c279 | [] | no_license | dudochkin-victor/ngxe | 2c03717c45431b5a88a7ca4f3a70a2f23695cd63 | 34687494bcbb4a9ce8cf0a7327a7296bfa95e68a | refs/heads/master | 2016-09-06T02:28:20.233312 | 2013-01-05T19:59:28 | 2013-01-05T19:59:28 | 7,311,793 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,210 | cpp | texture.cpp | /*
Copyright (C) 2005 Heinrich du Toit
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
version.
This program is distributed in the hope... |
759724fbef667053ebc582cb9ded38df2e30466f | ac1d7bb3375a219907ae87cc10ea2ba4e9906eef | /config_menu_anchor.cpp | 1e2f54a71e9fdd9b2391fcc28ceffcfd8d9dbedf | [
"Apache-2.0"
] | permissive | devkotaprativa/masteranchor | c71e50137c070df93587e18f98e58ea7b20eb576 | ef0b7f3edb8ca9e72626d703f5dcd98a0054c616 | refs/heads/master | 2020-03-19T01:57:34.200461 | 2018-05-31T13:25:04 | 2018-05-31T13:25:04 | 135,586,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,667 | cpp | config_menu_anchor.cpp | /*
Extended DW1000 Ranging example for radino32 DW1000 and radinoL4 DW1000
Based on Decawave DW1000 example library
2017 In-Circuit GmbH
wiki.in-circuit.de
*/
#include "config_menu_anchor.h"
myConfigAnc_t myConfig_anc = {
.channel = 5,
.tx_power = 275,
.outputTable = ... |
ff39561650d6229442519e6babe377ce83ea1b6a | 956de8ef0bd86f75369e63842264f1862d0563d3 | /LinkedList.cpp | c41c6b70e96e8dbc41599821d1edb1d58c3cae0a | [] | no_license | jordannlove/OpenHash | 651e2bffa711ad458dcb2a78e69852f0365fd574 | 972dc02f63391c887999340522fcde61ca60a30a | refs/heads/master | 2020-07-27T02:09:20.516542 | 2019-09-16T15:17:24 | 2019-09-16T15:17:24 | 208,832,006 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,637 | cpp | LinkedList.cpp | //LinkedList.cpp
#include <iostream>
#include <string>
#include "LinkedList.h"
////
//constructor
LinkedList::LinkedList()
{
std::cout << "default LinkedList constructor reached\n";
head = nullptr;
itemCount = 0;
}
LinkedList::LinkedList(int entry)
{
std::cout << "LinkedList constructor w/ param reached:\n... |
bc3256e76399a3d05c4676279ba07226acd361ca | 02c745714be7d52948f2295eb6acbe2ac287a37d | /nlp-unconstrained-core/hooke-jeeves/cc/src/rosenbrock.cc | 527cc52d0ed65f7b7d078b8b6d6943a7fc8c40d6 | [
"Unlicense"
] | permissive | johnnieskywalker/nonlinear-optimization-algorithms-multilang | b5619e1de83335ea899822e4ad1a7cd6bf492228 | 6be8986a3fe1154a5727552113b407f9858ebcef | refs/heads/master | 2021-01-12T11:29:32.907973 | 2016-02-24T16:30:08 | 2016-02-24T16:30:08 | 72,936,952 | 0 | 0 | null | 2016-11-05T16:01:59 | 2016-11-05T16:01:59 | null | UTF-8 | C++ | false | false | 1,603 | cc | rosenbrock.cc | /*
* nlp-unconstrained-core/hooke-jeeves/cc/src/rosenbrock.cc
* ============================================================================
* Nonlinear Optimization Algorithms Multilang. Version 0.1
* ============================================================================
* Nonlinear programming algorithms a... |
3a3c1d5dbb37cf6c089ac27a4b408fb3914bcc05 | 66ec76b29fd4d17c56b125b8b82095b6d9a4566b | /src/sagtension/catenary_cable_unloader.cc | 4a5b56468ee7b48d292e3236dbb368215268eb5f | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | OverheadTransmissionLineSoftware/Models | 5006b114964bd542a57a20354fe66a040f95147f | c270d48dc9d8a6eaed1d13851da7207474356342 | refs/heads/master | 2021-01-18T05:09:55.700292 | 2019-02-09T23:53:50 | 2019-02-09T23:53:50 | 24,217,437 | 2 | 0 | Unlicense | 2019-02-09T23:53:50 | 2014-09-19T05:29:17 | C++ | UTF-8 | C++ | false | false | 1,955 | cc | catenary_cable_unloader.cc | // This is free and unencumbered software released into the public domain.
// For more information, please refer to <http://unlicense.org/>
#include "models/sagtension/catenary_cable_unloader.h"
CatenaryCableUnloader::CatenaryCableUnloader() {
catenary_ = nullptr;
strainer_.set_load_finish(0);
}
CatenaryCableUn... |
e33efe6c97eb2b60363e444e7b342f4267572c58 | dfa757f60a4543ddb55189010deb59cc8f6b0973 | /src/code/basic_concepts/classes/static_members/main.cpp | 2963b9ca9cc25f4379e3fd0d632974eb16d2f3a2 | [] | no_license | samu/cpp-code-snippets | 1eb42800643e4d61b666bcd48fba982439f43901 | e6077345c024c7a5f7366997fbf07d8e886f400f | refs/heads/master | 2020-04-23T17:21:42.673746 | 2014-10-11T20:17:56 | 2014-10-11T20:17:56 | 25,093,107 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | main.cpp | #include "gem.h"
#include <iostream>
int main() {
std::cout << "Gem::value(): " << Gem::value() << std::endl;
} |
bad3e3130661a95899ca8cfbaaa1a6492191c3e4 | 6bb4b9b79dd9b6ba96091f5f4344ca060d09f2aa | /AP-MS2/ThreadPool.cpp | c8ef02b4aef2def8842aa4d8b7f662aac4026124 | [] | no_license | orsanawwad/APEX | 84304558236a4525a70afa6d1233787c75df5f53 | 980b714e144f4b90c8fd1241f9cd6eae3e6bfcab | refs/heads/master | 2020-09-21T20:49:28.385061 | 2019-11-30T16:44:08 | 2019-11-30T16:44:08 | 224,924,776 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,905 | cpp | ThreadPool.cpp | //
// Created by Orsan Awwad on 14/01/2019.
//
#include "ThreadPool.h"
Task *TasksQueue::pop() {
std::lock_guard<std::mutex> g(mut);
if (tasks.empty()) {
return nullptr;
}
auto task = tasks.front();
tasks.pop();
return task;
}
bool TasksQueue::empty() const {
std::lock_guard<std::... |
989b4a2bed4a0fb1c060b987ce3d962a4611e158 | be1eb8259efefefdb17b396f5023fbee98f637cc | /LCFunction/LCOneDimLinearFunction.h | 59ea0332d9a663a79bae033edbbe93e0d40ede29 | [] | no_license | AOE-khkhan/LOCOInterpolate | e212496f5b7007989ba2c1b471b0f5490fe20894 | 7e7210c7be198f27c39b48d3306159446b4cdf1c | refs/heads/master | 2021-09-21T11:11:18.909324 | 2018-08-24T22:20:51 | 2018-08-24T22:20:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 819 | h | LCOneDimLinearFunction.h | #ifndef _OC_HARD_CODED_LINEAR_SHAPE_
#define _OC_HARD_CODED_LINEAR_SHAPE_
#include "LCFunction.h"
/* This is used for testing the interpolation scheme. It a simple function from
R^N -> R where N are the number of params. If you set linear = true it will be a linear
function which can be used to test linear precision ... |
c43e6209939f0abf47d76d2730d5d3a582f8c981 | 22384a1d136bbcb4fa140afc317219a49160f5a5 | /src/MySqlConnector/main.cpp | cc19e7522d907bf655422cf87e2ac3e3b05e08db | [] | no_license | JayMcGee/Projet-Bresil-2015 | 2fe116211ba8a9a3ad61a735eb50126890e66e09 | 1cb0dfd640d7dd327854f72928d4a0d35cde8dec | refs/heads/master | 2020-05-13T06:24:36.679455 | 2014-12-04T03:54:07 | 2014-12-04T03:54:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,677 | cpp | main.cpp |
#define DEVICE "28-000006052315"
#include <stdlib.h>
#include <iostream>
#include <mysql_connection.h>
#include <driver.h>
#include <exception.h>
#include <resultset.h>
#include <statement.h>
#include "FileRead/OneWireDevice.h"
using namespace sql;
using namespace std;
int main(void){
//Declaration Objet
One... |
ac9fb3594799df92ce4764dfbf64a03e68888e95 | 90d253b075c47054ab1d6bf6206f37e810330068 | /IOI/2021/dna.cpp | 823a1ffc90c249cd4618f833da71a8da311ed033 | [
"MIT"
] | permissive | eyangch/competitive-programming | 45684aa804cbcde1999010332627228ac1ac4ef8 | de9bb192c604a3dfbdd4c2757e478e7265516c9c | refs/heads/master | 2023-07-10T08:59:25.674500 | 2023-06-25T09:30:43 | 2023-06-25T09:30:43 | 178,763,969 | 22 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 1,143 | cpp | dna.cpp | #include <bits/stdc++.h>
#define endl '\n'
#define eat cin
#define moo cout
using namespace std;
int pfx[3][3][100000];
void init(string a, string b){
for(int i = 0; i < (int)a.length(); i++){
int ai = 0, bi = 0;
if(a[i] == 'T') ai = 1;
if(a[i] == 'C') ai = 2;
if(b[i] == 'T') bi = 1;
if(b[i] == 'C') bi = ... |
ef436804a53511a2c0acbfecac5003664d5904b2 | 31792c4fabd1677f50545a897b5fa13f12c1d34d | /src/Target.cpp | 3bba92bfad4a194e6274a7a5edaa02d18ce426d1 | [] | no_license | Malguzt/zombie-shot | 8f88d5217cee991d91ab6d19d45c027a84e554cc | 68156094b9288b73a92347663fab1badbcac3d97 | refs/heads/master | 2016-09-10T18:40:42.840825 | 2014-12-22T19:55:31 | 2014-12-22T19:55:31 | 34,521,517 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,377 | cpp | Target.cpp | #include "Target.h"
#include "EmptyTarget.h"
using namespace sf;
Target::Target()
{
loadSprite();
newPosition();
}
Target::Target(int x, int y, int difficulty)
{
this->x = x;
this->y = y;
setDifficulty(difficulty);
bushArea = IntRect(x, y, 63, 63);
loadSprite();
}
Target::~Target()
{
}... |
958c5c1a76b33e9b3a8be69c0cadea976fa7c2f5 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/inetsrv/iis/iisrearc/core/common/util/iisrtl/strings.cpp | fcd1f676790060fabe4c394575fb65f70e4553f8 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 1,704 | cpp | strings.cpp | #include "precomp.hxx"
#define IMPLEMENTATION_EXPORT
#include <irtlmisc.h>
// stristr (stolen from fts.c, wickn)
//
// case-insensitive version of strstr.
// stristr returns a pointer to the first occurrence of
// pszSubString in pszString. The search does not include
// terminating nul characters.
//
... |
87d777ff0cca8689f974f02aafb9ffba80f387bb | 519f0498d55268af64c8236033a2bcfb6a618277 | /src/thread/pthreadpool.cpp | c6b367b0e7264454ab05e2b31f0f813a04d76b83 | [] | no_license | Gavin-Lau/GMidWare | 2f13363c9e8cab210ba83d6a381884e779f2ed27 | 52cb83b076d8929f7b87097b32e1163f60eac66b | refs/heads/master | 2021-05-16T09:32:38.416384 | 2020-01-26T06:24:37 | 2020-01-26T06:24:37 | 104,535,660 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 521 | cpp | pthreadpool.cpp | #include "pthreadpool.h"
#include "pthread_core.h"
#include "pthread_sync.h"
#include <assert.h>
using std::cout;
using std::endl;
PthreadPool::PthreadPool(std::size_t poolsize)
: m_Poolsize(poolsize)
{
for (int i = 0; i < m_Poolsize ; ++i)
{
Pthread* curThread = new Pthread();
curThread->setID(i);
m_mThre... |
7d001a37c3ca2e2ed3c909b12b28b23937d18f82 | 09d1138225f295ec2e5f3e700b44acedcf73f383 | /Remoting/Views/vtkPVComparativeAnimationCue.cxx | d1210c640b8d03b245e997e3f064fe3d18920b7e | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | nagyist/ParaView | e86d1ed88a805aecb13f707684103e43d5f6b09f | 6810d701c44b2097baace5ad2c05f81c6d0fd310 | refs/heads/master | 2023-09-04T07:34:57.251637 | 2023-09-03T00:34:36 | 2023-09-03T00:34:57 | 85,244,343 | 0 | 0 | BSD-3-Clause | 2023-09-11T15:57:25 | 2017-03-16T21:44:59 | C++ | UTF-8 | C++ | false | false | 19,672 | cxx | vtkPVComparativeAnimationCue.cxx | // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
// SPDX-License-Identifier: BSD-3-Clause
#include "vtkPVComparativeAnimationCue.h"
#include "vtkCommand.h"
#include "vtkObjectFactory.h"
#include "vtkPVXMLElement.h"
#include "vtkSMDomain.h"
#include "vtkSMDomainIterator.h"
#include "vtkSMProxy.h"
#include "vtkSMVe... |
f53d317b74b2319221b39869da14a7428e32caab | 37187530af88befc246aa65fe2c0092d711fa94d | /Spaceship Shooter/playerprojectile.h | 48beff56582f4d6ec42832999734cbdd3d97175c | [] | no_license | dcook-projects/Spaceship-Shooter | de7517c44050605454831db94d438ac0accd00a4 | f7554c6beba431bb4ee3014889fdabdd3d31831c | refs/heads/master | 2023-09-06T01:13:40.124563 | 2021-11-17T08:13:40 | 2021-11-17T08:13:40 | 427,579,916 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 522 | h | playerprojectile.h | #pragma once
#include <SDL.h>
//#include "player.h"
struct App;
class PlayerProjectile {
public:
PlayerProjectile(int playerXPos, int playerWidth, int playerHeight);
void move(App& app);
void render(App& app) const;
SDL_Rect getCollider() const;
bool isDead() const;
void killShot();
private:
//projectile att... |
8a721080dc1b04554686dbebc689b35696ee591a | cc197b0fd43863ae1874a8a1baad6b60ab15f1c4 | /decompiler/gmkstream.cpp | bda9c409fe9548276771a1c2914c89a086b7d663 | [
"MIT"
] | permissive | nkrapivin/gm81decompiler | 1b96df50dfc5f9d7a2f8fcf055c39ea7c639fed7 | bae1f8c3f52ed80c50319555c96752d087520821 | refs/heads/master | 2020-07-04T07:57:44.993259 | 2019-08-13T19:59:47 | 2019-08-13T19:59:47 | 202,213,415 | 2 | 0 | MIT | 2019-08-13T19:45:44 | 2019-08-13T19:45:43 | null | UTF-8 | C++ | false | false | 7,175 | cpp | gmkstream.cpp | /*
* gmkstream.cpp
* GMK Stream
*/
#if 0
#include <iostream>
#include <fstream>
#include "gmkstream.hpp"
#include "zlib.h"
// Support
void GmkStream::CheckStreamForWriting(size_t len) {
if (iPosition + len < iLength)
return;
iLength += len;
iBuffer = (unsigned char*)realloc(iBuffer,iLength);
}
void GmkStrea... |
6d4ff5c11e59e533da2d34d21b43a2e641884958 | 3643bb671f78a0669c8e08935476551a297ce996 | /JK_Key.cpp | e0fdcf1ebf6ae3924ccf17691828347d1351b2a3 | [] | no_license | mattfischer/3dportal | 44b3b9fb2331650fc406596b941f6228f37ff14b | e00f7d601138f5cf72aac35f4d15bdf230c518d9 | refs/heads/master | 2020-12-25T10:36:51.991814 | 2010-08-29T22:53:06 | 2010-08-29T22:53:06 | 65,869,788 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,945 | cpp | JK_Key.cpp | #include "JK_Key.h"
#include "JK_Parse.h"
#include "JK_GOB.h"
#include "U_Lowercase.h"
namespace Jk
{
Key::Key( const string& filename )
{
string fullname;
Jk::Parser::Line line;
string data;
bool error;
int i, j;
float f1, f2, f3;
name = filename;
... |
9cd00124fed1fa75a85d8e4d80c8d5b4615202a3 | 34ccf69e4599b9461c725273c04bd502048d10eb | /ProcP8/ProcP8/main.cpp | 393eeac198ade1b6e56da4dba3fe025eb2ba586e | [] | no_license | ansttss/PP | d348c4d4f21ade7e86b2a4713249d6644399c777 | 7f859961b26f793c2028af8277e39a2bd74d8e21 | refs/heads/master | 2020-04-28T18:35:27.888792 | 2019-03-13T20:15:38 | 2019-03-13T20:15:38 | 175,483,565 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 778 | cpp | main.cpp | //
// main.cpp
// ProcP8
//
// Created by Anastasia Posvystak on 01.11.18.
// Copyright © 2018 Anastasia Posvystak. All rights reserved.
//
#include <ctime>
#include "fibonacci.h"
#include <iostream>
using namespace std;
int main(int argc, const char * argv[])
{
cout << "Fibonacci number with matrices - first... |
4bc59a020517cc37bc82b95b51ad2557c3313331 | 706b5b7ac01cd606f1b9a71bf4dac3af8a3fb9bc | /Music Synthesizer/Synthie/AudioEffects.h | f59babd0d616149fbdd6a214308ce700c5e51c1b | [] | no_license | Abigael/Multi-Component-Music-Synthesizer | 9325dbb622ba6179648a2435aab96050b7e78168 | 6870b906f2c3673be30142425a4599c81697eccb | refs/heads/master | 2021-01-09T06:39:02.235888 | 2016-07-27T01:50:49 | 2016-07-27T01:50:49 | 64,267,175 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,125 | h | AudioEffects.h | #pragma once
#include<vector>
#include "Queue.h"
class CInstrument;
class CAudioEffects
{
public:
CAudioEffects();
virtual ~CAudioEffects();
void SetEffects(CAudioEffects* effect);
void ClearEffects(void);
bool mChorusEffect = false;
double mCEdry = 0.0;
double mCEwet = 0.0;
bool mReverberatonEffect = fal... |
907b143038c4ce6a5284e2d5dff1a629fa9b7ad5 | 802a8f80cefc39644979cf2038356f63de866398 | /Server Lib/Projeto IOCP/SOCKET/session.h | 7ecb610498a16adbb85abaae918652e88bc5b8bb | [
"MIT"
] | permissive | Acrisio-Filho/SuperSS-Dev | 3a3b78e15e0ec8edc9aae0ca1a632eb02be5d19c | 9b1bdd4a2536ec13de50b11e6feb63e5c351559b | refs/heads/master | 2023-08-03T13:00:07.280725 | 2023-07-05T00:24:18 | 2023-07-05T00:24:18 | 418,925,124 | 32 | 30 | MIT | 2022-11-03T23:15:37 | 2021-10-19T12:58:05 | C++ | UTF-8 | C++ | false | false | 9,562 | h | session.h | // Arquivo session.h
// Criado em 04/06/2017 por Acrisio
// Definição da classe session
#if defined(_WIN32)
#pragma pack(1)
#endif
#pragma once
#ifndef STDA_SESSION_H
#define STDA_SESSION_H
#if defined(_WIN32)
#include <windows.h>
#elif defined(__linux__)
#include "../UTIL/WinPort.h"
#include <memory.h>
#define SES... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.