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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
565e65fd53dcb6d369cec4a9a7481dbc743152de | 59b2d9114592a1151713996a8888456a7fbfe56c | /poj/1200.cpp | 26c1a31dcbd854b0771c7bd22ce24d8d72e040e7 | [] | no_license | 111qqz/ACM-ICPC | 8a8e8f5653d8b6dc43524ef96b2cf473135e28bf | 0a1022bf13ddf1c1e3a705efcc4a12df506f5ed2 | refs/heads/master | 2022-04-02T21:43:33.759517 | 2020-01-18T14:14:07 | 2020-01-18T14:14:07 | 98,531,401 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,625 | cpp | 1200.cpp | /* ***********************************************
Author :111qqz
Created Time :2016年11月22日 星期二 19时43分10秒
File Name :code/poj/1200.cpp
************************************************ */
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#inc... |
6eadb7062b0018844dc1e750e9212d1077137412 | dd949f215d968f2ee69bf85571fd63e4f085a869 | /subarchitectures/vision.sa/branches/dora-yr4-20120620/src/c++/vision/components/TomGine/GLWindow/GLXWindow.cpp | caf468bc97f5bf2d251b306b156ed266216b6c34 | [] | no_license | marc-hanheide/cogx | a3fd395805f1b0ad7d713a05b9256312757b37a9 | cb9a9c9cdfeba02afac6a83d03b7c6bb778edb95 | refs/heads/master | 2022-03-16T23:36:21.951317 | 2013-12-10T23:49:07 | 2013-12-10T23:49:07 | 219,460,352 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,857 | cpp | GLXWindow.cpp |
#ifdef LINUX
#include "GLWindow/GLWindow.h"
#include <stdio.h>
#include <stdexcept>
#include <vector>
namespace blortGLWindow{
void GLWindow::init(unsigned int width, unsigned int height, const char* name){
GLint att[] = { GLX_RGBA, GLX_DEPTH_SIZE, 24, GLX_DOUBLEBUFFER, None };
dpy = XOpenDisplay(NULL);
if(dpy ... |
572e2c5b89c465d9f26acb9f7e1f3e0a08d03b16 | 06fc6636f58d1d6ef594b9ab16b073154d0e8e20 | /State.h | e31cdb40c812e660f57703d79e1f99bf09cb171a | [] | no_license | luchdotcom/project_Automat | bfef37fceaa1f5e654eeee0435456600e7439bcb | fcaad44e8d76af33481a22e4e7a8d5f8c638fdab | refs/heads/master | 2022-11-20T03:19:29.357239 | 2020-07-14T23:15:54 | 2020-07-14T23:15:54 | 279,705,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 926 | h | State.h | //
// Created by Lachezar on 14.7.2020 г..
//
#ifndef PROJECT_AUTOMAT_STATE_H
#define PROJECT_AUTOMAT_STATE_H
template< typename T>
class State {
public:
State( const char *nameState, int countState, int state );//todo
State();//todo
State(const State&);//todo
State&operator=(const State &);//todo
... |
97e910e35976d3358dffa47348ea80117fce3bf6 | c1f92b626443f8d227bc9d8d7081c7c1d8bc4af6 | /src/Utils.h | 0bfe2c4d24a952d8b6297becb17642096afb77d8 | [] | no_license | SFry23/ocrcorrector | 976e10f8bcbf4db8d2b4ec4e4201caf95bcc3674 | 09d72126b4a5bc1339db831ac8730f0a2a223a51 | refs/heads/master | 2021-01-01T17:28:19.352023 | 2013-02-22T22:57:18 | 2013-02-22T22:57:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,192 | h | Utils.h | #ifndef Utils_h
#define Utils_h
#include <QtCore>
#include <string>
#include "SubstitutionMatrix.h"
class Alignment
{
// Constructor and Destructor
public:
Alignment(std::string strA, std::string strB, double score);
~Alignment();
// Attributes
private:
std::string _strA, _st... |
9a8046e3992c4b596b2c272dc5f9605e22e125af | d82c8e0968ac3ba3ca0e924291a737b6b953e14e | /grapher/source/AbstractGraph.cpp | 7f6ba443b81872e0726aaccdfefcb847efdd5642 | [] | no_license | Dicksonlab/MateBook | 57d90a1bd5f40793f6bdeea528d08e355cca0343 | 22142bc7ebdd7f8cb3f3da17c4bba1df04486e1b | refs/heads/master | 2021-03-27T10:44:46.961783 | 2019-06-21T16:38:31 | 2019-06-21T16:38:31 | 101,189,573 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 203 | cpp | AbstractGraph.cpp | #include "AbstractGraph.hpp"
AbstractGraph::AbstractGraph(QVector3D offset) : offset_(offset)
{
}
AbstractGraph::~AbstractGraph()
{
}
QVector3D AbstractGraph::getOffset() const
{
return offset_;
} |
38a107c1005d90e04592699954fb25af0d2a0932 | e6541559015858339b93f42eef2f8e0b1d110119 | /modules/task_3/yasakova_a_linear_filtering/main.cpp | 19b53f844e156ffe0fcc74c986604e338483ff27 | [] | no_license | AleksandraSavosina/pp_2019_autumn | 54e95c20d541c2cc6552abdcb0c5777a87d5417e | d12127bcfe36d01ef218114849b80dd6416c7eca | refs/heads/master | 2020-09-11T01:40:23.923521 | 2020-01-11T00:40:47 | 2020-01-11T00:40:47 | 210,308,447 | 0 | 0 | null | 2019-09-23T08:54:41 | 2019-09-23T08:54:40 | null | UTF-8 | C++ | false | false | 3,109 | cpp | main.cpp | // Copyright 2019 Yasakova Anastasia
#include <gtest-mpi-listener.hpp>
#include <gtest/gtest.h>
#include <vector>
#include <algorithm>
#include "../../../modules/task_3/yasakova_a_linear_filtering/linear_filtering.h"
TEST(Linear_Filtering_MPI, test1) {
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
if (ra... |
1a2f07d1bf0a0cf33e16f876707d02d797d0755f | da95a3a4bc39c0fcbcc664d40a2c167618e7bdfa | /lab2.7.cpp | 35cbe0ef00766f77ffbff880b0e68eb696b5687b | [] | no_license | theaksharapathak/c-prog-assignments | 002085672b0a8222bb58329452bfa988b28de32a | f15f4dc26bae1be7e441e163df07252665fd03da | refs/heads/master | 2020-09-27T00:35:30.701152 | 2019-12-28T06:31:12 | 2019-12-28T06:31:12 | 226,378,894 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 205 | cpp | lab2.7.cpp | #include<stdio.h>
#include<math.h>
main()
{
int p,r,t,c;
printf("enter the values of p,r,t\n");
scanf("%d %d %d",&p,&r,&t);
c=p*(pow((1+r/100),t));
printf("compound interest = %d",c);
return 0;
}
|
ca04d5cfd1cec593bfe61980ec3d1e9421de1e3a | 8f267f2f54ac5d58f9715eb57e1d279cb5e31e80 | /src/games/enums/starcraft2units.hpp | 346b05a4d7a8c6fb4eb6d6bdc5eb0ebb927601d7 | [] | no_license | LodePublishing/Evolution-Forge-2 | d455293b1736abcbacc5277b77aad1e4699b0671 | bca5dcd7c652d3b4525a8159bc58d24d5b9b4c4e | refs/heads/master | 2021-03-27T10:56:03.473667 | 2016-12-01T10:38:12 | 2016-12-01T10:38:12 | 67,313,513 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 181 | hpp | starcraft2units.hpp | #ifndef _GAMES_ENUMS_STARCRAFT2UNITS_HPP
#define _GAMES_ENUMS_STARCRAFT2UNITS_HPP
enum eStarCraft2Units
{
NONE,
MAX_UNIT_TYPE_NUM
};
#endif // _GAMES_ENUMS_STARCRAFT2UNITS_HPP |
aa4558e08242ded4d9be4846624e52c61d51d71e | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Source/ThirdParty/WebRTC/rev.12643/include/Mac/webrtc/modules/audio_processing/aec/aec_core.h | 1155bc38b08629ebbb3561d207742f8537210ef8 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 5,367 | h | aec_core.h | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
825ec3c8817293e9cf81bacd478590755f203217 | 930dbea88123ab186872c74dde39bca099afc3b3 | /19-Remove-Nth-Node-From-End-of-List.cpp | 9e0c9a35b344eb77ca131d0a7c728a85c2c85bec | [] | no_license | erictaur/leetcode-progress-cpp | b24edcb1470b0069f97b17520dbe68b5a8fa3d0d | 8c2f366551112bf15693480592f86ab91dcc9554 | refs/heads/main | 2023-08-23T20:33:39.447649 | 2021-10-08T20:09:25 | 2021-10-08T20:09:25 | 334,852,736 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 915 | cpp | 19-Remove-Nth-Node-From-End-of-List.cpp | class Solution {
public:
ListNode* removeNthFromEnd(ListNode* head, int n) {
ListNode* ph = new ListNode();
ph->next = head;
ListNode* slow = ph;
ListNode* fast = ph;
for(int i=0; i<n; i++) fast = fast->next;
while(fast->next){
s... |
9635d839387a686c499501a6a5d9a954aa9597ac | ee26254b2bf65a40472da95c1f60685dcba60c27 | /bindings/python/src/OpenSpaceToolkitIOPy/URL/Query.cpp | 6645c55b4e0f7503f171e11de7aab2457ab173c2 | [
"Apache-2.0",
"BSL-1.0"
] | permissive | verstaen/open-space-toolkit-io | 9f6088f2993aea897d804584edbfce806f99f5f5 | 0bc79d4573d9b9faf70534c3e4d8575587c083c8 | refs/heads/master | 2021-02-18T21:01:12.281963 | 2020-01-21T00:14:52 | 2020-01-21T00:14:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,422 | cpp | Query.cpp | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Open Space Toolkit ▸ I/O
/// @file bindings/python/src/OpenSpaceToolkitIOPy/URL/Query.cpp
/// @author Lucas Brémond <luc... |
ee9ef385ca887f6c59c59c951b02c4e8b7fa6835 | f441e4963dcb2c12c2ef5eed2386c88c274b07b4 | /unstructure_data/NativeSCHISMOutput.cpp | c6229b87a5a4cc738d13d8ab4f36be2a5e18775e | [
"Apache-2.0"
] | permissive | schism-dev/schism_visit_plugin | a0328f538bc0ac40a0112b14e3ca5ba444a8e0fb | dfbcf456aed4d7529a66ece968ac1a246ef52227 | refs/heads/master | 2023-08-11T16:58:58.303081 | 2023-08-10T21:49:24 | 2023-08-10T21:49:24 | 201,563,479 | 3 | 1 | Apache-2.0 | 2023-07-10T17:14:04 | 2019-08-10T01:32:19 | C++ | UTF-8 | C++ | false | false | 23,323 | cpp | NativeSCHISMOutput.cpp | #include "NativeSCHISMOutput.h"
#include "MeshConstants.h"
#include "SCHISMFileUtil.h"
#include <sstream>
#include <stdlib.h>
#include <algorithm>
const int DATA_NUM_BYTE = 4;
const int MAX_CELL_NODE = MeshConstants::MAX_NUM_NODE_PER_CELL;
const int DEFAULT_INT_VALUE = -9999;
const float DEFAULT... |
aa48a1799e746222b4082921153de82600b049d1 | d4c6151c86413dfd0881706a08aff5953a4aa28b | /zircon/system/dev/test/ddk-lifecycle/gen/llcpp/fidl.cc | 3906e0628d2157972890a5c6cc61ea029b568f42 | [
"BSD-3-Clause",
"MIT"
] | permissive | opensource-assist/fuschia | 64e0494fe0c299cf19a500925e115a75d6347a10 | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | refs/heads/master | 2022-11-02T02:11:41.392221 | 2019-12-27T00:43:47 | 2019-12-27T00:43:47 | 230,425,920 | 0 | 1 | BSD-3-Clause | 2022-10-03T10:28:51 | 2019-12-27T10:43:28 | C++ | UTF-8 | C++ | false | false | 43,607 | cc | fidl.cc | // WARNING: This file is machine generated by fidlgen.
#include <fuchsia/device/lifecycle/test/llcpp/fidl.h>
#include <memory>
namespace llcpp {
namespace fuchsia {
namespace device {
namespace lifecycle {
namespace test {
void ::llcpp::fuchsia::device::lifecycle::test::TestDevice_SubscribeToLifecycle_Result::SizeA... |
120fb7ed231ba348342c98496db475f289c0c429 | 42ab733e143d02091d13424fb4df16379d5bba0d | /third_party/spirv-tools/source/opt/build_module.cpp | 3b606dc2b5edcd4bdd14cfdab5289a86f774abb7 | [
"Apache-2.0",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-generic-cla"
] | permissive | google/filament | 11cd37ac68790fcf8b33416b7d8d8870e48181f0 | 0aa0efe1599798d887fa6e33c412c09e81bea1bf | refs/heads/main | 2023-08-29T17:58:22.496956 | 2023-08-28T17:27:38 | 2023-08-28T17:27:38 | 143,455,116 | 16,631 | 1,961 | Apache-2.0 | 2023-09-14T16:23:39 | 2018-08-03T17:26:00 | C++ | UTF-8 | C++ | false | false | 3,334 | cpp | build_module.cpp | // Copyright (c) 2016 Google Inc.
//
// 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... |
85232771ae1c551a65673da1c536a81fddb765d9 | 33c12d0d070363dec10a3c79d1fc85d41cd8939c | /BCIREBORN/BCIProcEngine/P300Util.cpp | ec1b33bec1e07f2f1110cca2da88feedac1b03da | [] | no_license | jwnicholas99/Brain-Computer-Interface-for-Detection-of-Emotions | ca0e4748a08b301f268a14fb03ec07819fed86ce | 8efb4c116fa4d47f5fe73e15000d97492c747d2c | refs/heads/master | 2020-04-18T15:13:21.289269 | 2019-01-28T04:39:33 | 2019-01-28T04:39:33 | 167,564,848 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,363 | cpp | P300Util.cpp | #include "stdafx.h"
#include <atlstr.h>
#include "..\L_SignalProcessing\P300SignalProc.h"
using namespace System;
using namespace System::Collections;
using namespace System::Runtime::InteropServices;
using namespace BCILib::P300;
namespace BCILib
{
namespace Processor {
public ref class P300Util
{
public:
... |
0c2d179774c6c328196227b0a20b1ecda6544a0f | fdcc44bdc1924f6c6b11acca019a9ce56e31084d | /Matrix.h | 9380e26b42b90b3b6028a5f1654a7db460692d40 | [] | no_license | MakeevVlad/Realization-of-matrices | 09bdf0860853183c6ab672ca2c5efbc63accf763 | 42540acbccc985d260e3a9351d194de03368804d | refs/heads/master | 2021-06-17T02:03:55.613972 | 2021-01-05T23:59:27 | 2021-01-05T23:59:27 | 130,420,602 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,842 | h | Matrix.h | #pragma once
#include <iostream>
#include <vector>
class Matrix
{
private:
//Сама матрица
std::vector<std::vector<double>> Data;
// функции Друзья: Ввод
friend std::istream& operator >> (std::istream&, Matrix&);
// функции Друзья: Вывод
friend std::ostream& operator << (std::ostream&, const... |
fc195e1265107bd37667499de28eaf744937b0cc | 95ae7dfa9ee578f1b24a65986ff78bf77ceca0c5 | /Engine/lib/openal-soft/core/filters/nfc.h | 33f67a5f24b3ac2357ea21cd7d1a37d2ac80305e | [
"MIT",
"LicenseRef-scancode-unknown",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LicenseRef-scancode-other-copyleft",
"LGPL-2.0-only"
] | permissive | TorqueGameEngines/Torque3D | 4e1f6a05cc0928980c8c7c20bcdd680eaa6dcee8 | a445a4364664e299196bd551d213844486080145 | refs/heads/development | 2023-09-03T12:40:40.658487 | 2023-08-24T14:44:43 | 2023-08-24T14:44:43 | 267,440,108 | 1,192 | 178 | MIT | 2023-09-13T14:28:16 | 2020-05-27T22:35:54 | C++ | UTF-8 | C++ | false | false | 1,780 | h | nfc.h | #ifndef CORE_FILTERS_NFC_H
#define CORE_FILTERS_NFC_H
#include <cstddef>
#include "alspan.h"
struct NfcFilter1 {
float base_gain, gain;
float b1, a1;
float z[1];
};
struct NfcFilter2 {
float base_gain, gain;
float b1, b2, a1, a2;
float z[2];
};
struct NfcFilter3 {
float base_gain, gain;
... |
2d2695612660f7dda516bbc998c7942cd4db2cf4 | 2cfb31bf995318540bd1a7b6e19eb8b12cb8acd9 | /LightOJ/1021_(Bitmask_dp).cpp | 46d837b4fb269b8ef5b47a3a7058f6818fcdd6ba | [] | no_license | aurko96/Competitive-Programming | cf6265456450355e04c34acf9b7500b1cc30fd58 | 7b5a22d077f29145b92caef0883734ca40096227 | refs/heads/master | 2020-03-18T15:08:14.533253 | 2018-05-25T19:07:25 | 2018-05-25T19:07:25 | 134,889,195 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,209 | cpp | 1021_(Bitmask_dp).cpp | #include<bits/stdc++.h>
#define LL long long
using namespace std;
int n,base,num[20],len;
string str;
LL dp[1<<16][20];
int Set(int N,int pos){return N = N | (1<<pos);}
int Reset(int N,int pos){return N = N & ~(1<<pos);}
bool Check(int N,int pos){return (bool)(N & (1<<pos));}
LL call(int mask,int val)
{
if(mask==... |
bdcd6a16704ec7548943af2b2461f7067464e010 | f2861ba1a64f8d8b05b68b485beff2590de95b3c | /src/res/pdecoder.h | 4bf7e99ba87bbb926f0c7db0027d5d95adffd86b | [] | no_license | venid/liteng | 0cfd574deedd142544c08bd555005a3c6409c231 | c705b76b2f5f7acdbc6088fcfe31e47bf5a793ac | refs/heads/master | 2020-04-06T07:04:48.886632 | 2016-10-23T20:01:31 | 2016-10-23T20:01:31 | 40,650,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 269 | h | pdecoder.h |
#pragma once
#include "resource.h"
#include <string>
class Object;
class ProgramDecoder : public ResDecoder
{ public:
ProgramDecoder(ResManager *theManager, const char* ext) : ResDecoder(theManager, ext)
{}
Object* decode(const std::string &theName);
};
|
afbd37972e47e4859977453ed7393d24e2d0938b | 0a447323231cebdb8a22d0623f70ea12d4a8efc4 | /src/fluid/banaccount.h | 214a52db249db5428208b06314bba2a4a67599f5 | [
"MIT"
] | permissive | duality-solutions/Dynamic | 06ae668ef5b55b598fa4721f6e16766016f51db7 | 7e31544f63ec85024cf46801965930c02a706fb0 | refs/heads/main | 2021-12-26T00:14:56.287647 | 2021-08-21T03:00:10 | 2021-08-21T03:00:10 | 108,872,749 | 64 | 41 | NOASSERTION | 2021-12-17T02:22:50 | 2017-10-30T15:46:23 | C++ | UTF-8 | C++ | false | false | 3,369 | h | banaccount.h | // Copyright (c) 2019-2021 Duality Blockchain Solutions Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef FLUID_BANACCOUNT_H
#define FLUID_BANACCOUNT_H
#include "dbwrapper.h"
#include "serialize.h"
#include "sy... |
535f52c332d3ae66941f61b485871f39c530f813 | 48a1f2b3cc613ae2548b0acdb3721828b1fde802 | /lesvelos.cpp | c0abdf21473f0b17a5227731d65f31467910ade9 | [] | no_license | TitiCrou/TAC | dfbe4fd6b36ce4d681b3afa73f7265aabf206487 | bb0f8a843c683907896dcb4796ac509008ec48b2 | refs/heads/master | 2020-07-12T15:50:21.480805 | 2016-12-11T21:05:01 | 2016-12-11T21:05:01 | 73,904,815 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 144 | cpp | lesvelos.cpp | #include "lesvelos.h"
/**
* @brief Constructeur de LesVelos héritant de LesVehicules
*/
LesVelos::LesVelos(): LesVehicules() {
}
|
6b9609c984c59a254ee990c5df47bd971068deab | ebb0fda44012fbf0e048a90330e08b9105bb69a5 | /src/adapterremoval/trimmed_reads.cc | 651a6f7985a8445f4bd8e50541a3ce52b501c6ac | [] | no_license | wzthu/Rbowtie2 | ba0d821af53d3c9bc8b565ecd1cf4a025a826289 | a77df26d5104326040eb0b1c21cae27aaba758f2 | refs/heads/master | 2023-03-05T04:17:11.035844 | 2023-02-24T08:58:48 | 2023-02-24T08:58:48 | 100,760,373 | 3 | 7 | null | 2023-02-24T08:47:36 | 2017-08-19T00:53:09 | C++ | UTF-8 | C++ | false | false | 6,260 | cc | trimmed_reads.cc | /*************************************************************************\
* AdapterRemoval - cleaning next-generation sequencing reads *
* *
* Copyright (C) 2011 by Stinus Lindgreen - stinus@binf.ku.dk *
* Copyright (C) 20... |
5c5a941ebafa8783b881c62708486f8288b89b4f | d5c4d2eec7c311ba5bcb4ea3df14c47edb028e14 | /4_module/ex01/ClapTrap.cpp | 3fdfa6096a3871f5993985a8cc9cf7fba4e77413 | [] | no_license | olegroom/CPP | 8d903cb9bce0f6bf9736050bc089afa270e0f7ea | 07e0034ec53fb284d4908a7ee6ed553532a13a40 | refs/heads/main | 2023-07-15T10:41:26.074180 | 2021-08-23T16:31:22 | 2021-08-23T16:31:22 | 388,804,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,245 | cpp | ClapTrap.cpp | #include "ClapTrap.hpp"
ClapTrap::ClapTrap() {
this->name = "default";
this->hit_points = 10;
this->energy_points = 10;
this->attack_dmg = 0;
std::cout << "ClapTrap " << name << " is created." << std::endl;
}
ClapTrap::ClapTrap(std::string name) {
this->name = name;
this->hit_points = 10;
this->energy_points ... |
92b41ff3203842aa716d160bbacb20a72a16df1c | 0758066960d0990bd4ce76805f93d9bc7c2b9b0f | /SDL Work/String Editor/StringProperties.cpp | c0da12f3200386e4bb7f0e0981600eb0d5b23bf8 | [] | no_license | mrsalt/USU | 4acf7ecf84663491582a834f31f69cfd17938d58 | 49cbc7bbc597f6780338f11bf341c86579bb3c02 | refs/heads/master | 2020-08-26T22:39:36.728764 | 2019-10-24T00:50:08 | 2019-10-24T02:18:11 | 217,167,673 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,432 | cpp | StringProperties.cpp | // StringProperties.cpp : implementation file
//
#include "stdafx.h"
#include "String Editor.h"
#include "StringProperties.h"
#include "StringInfo.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
///////////////////////////////////////////////////////... |
48a3da1ad31d829ecaf25a729fd328039f4c1b90 | 0f5acd29a47cf232dfffa2715835e0fb1e05a1d8 | /LidarHandler/LidarHandler.h | 2e07c2365b809c3273157dddca45cb9e3a59de00 | [] | no_license | dj-boy/LidarHandler | 8805278bbbb491500e02d51477eac8de711ae887 | 5845905246b76e35dc3cbe89cc50095996a88367 | refs/heads/master | 2022-02-23T15:45:16.903762 | 2019-08-02T11:36:46 | 2019-08-02T11:36:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,291 | h | LidarHandler.h | //#include <vector>
#ifndef DATAPOINT_H
#define DATAPOINT_H
#include "DataPoint.h"
#endif
// Exported func. to python, just to run the original cpp program
void CallMain();
// Display distance values of some lasers for testing
void DisplayDistance(const std::vector<DataPoint>& frame, int& cycle_counter);
// Writes c... |
5e4aec4b9b2caa720b8999d7aba676a2aaa38594 | 1482cd4ca87b24d7a28d8d195bc4bb3396b998d7 | /ZigZag Conversion.cpp | 1e385f2a38154da4a50fc2dc29a10e6bf3b00977 | [
"MIT"
] | permissive | Xe0n0/LeetCode | 964f36c75576d48dfdceb5b36bbfc022a2ddc77b | a7a383d88d222edaadd52b317e848f06632a569a | refs/heads/master | 2020-04-16T08:02:15.010990 | 2016-03-11T04:26:52 | 2016-03-11T04:26:52 | 12,356,023 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 715 | cpp | ZigZag Conversion.cpp | //WTF, I wrote j++ at first in sencond iner loop!
class Solution {
public:
string convert(string s, int nRows) {
// Start typing your C/C++ solution below
// DO NOT write int main() function
vector<string> vs;
vs.resize(nRows, "");
for (int i = 0; i < s.size();) {
... |
14e0289d269de9d8a50f388ea6e16db6b3d7390e | 989ece5cc3c2a0046958c34af14aebd12e4df7a6 | /ACM2/MemorizeDFS/1978How many ways.cpp | 5cb3781297e279f53340d09b4aceef4a9fb9d503 | [] | no_license | thinking-bzf/Cpp-coding | 14d178782585a3521ca14b58efb4bec72dd03ace | 7112193373136db4a9892974754546d81bf0c1f7 | refs/heads/main | 2023-05-07T19:38:11.424348 | 2021-05-21T02:19:35 | 2021-05-21T02:19:35 | 318,162,754 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 894 | cpp | 1978How many ways.cpp | #include <iostream>
#include <cstring>
using namespace std;
int Map[105][105];
int ans[105][105];
int n, m;
int check(int x, int y)
{
if (x < 1 || x > m || y < 1 || y > n)
return false;
return true;
}
int dfs(int x, int y)
{
if (ans[x][y] >= 0)
return ans[x][y];
ans[x][y] = 0;
for (... |
a315859a9ba700a108ad2f2bf7ae18fa8879d6c5 | 29bc72d5c0f240144c2e0373c84652a2d7f847d3 | /swap.cpp | 9810638c11482c4936dd0f0a090e32e6abeacd8d | [] | no_license | anishsingh935/C- | 858180493ce930ee5870ade20de3818ae64c21c3 | c13890b94a14ec00fe0e14918456ec3dbbcf0ef6 | refs/heads/main | 2023-04-04T06:41:41.020178 | 2021-04-01T03:34:20 | 2021-04-01T03:34:20 | 337,416,632 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 962 | cpp | swap.cpp | #include <iostream>
using namespace std;
class aman;
class anish
{
private:
int val1;
friend void exchange(anish &, aman &);
public:
void set_data(int a)
{
val1 = a;
}
void display ()
{
cout<<"The value of class 1 :"<<val1<<endl;
}
};
class aman
{
... |
4db63688fd233cdcd118ba1970f8f0220fa5e58b | 8896488231f2b3699ccc59fa5111129bfa87d184 | /Example/src/PlatformBackground.cpp | 9ef766c82626e660fe1ce5dab413f97876e2613b | [
"LicenseRef-scancode-warranty-disclaimer",
"Zlib"
] | permissive | brucelevis/xygine | b42c677629a3b4827781fa4a1a981114ccdc8bfe | fa88196456741fff9e4d8403861c6ad30fa2ee00 | refs/heads/master | 2020-12-02T17:48:04.584058 | 2017-04-15T12:01:50 | 2017-04-15T12:01:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,450 | cpp | PlatformBackground.cpp | /*********************************************************************
Matt Marchant 2014 - 2017
http://trederia.blogspot.com
xygine - Zlib license.
This software is provided 'as-is', without any express or
implied warranty. In no event will the authors be held
liable for any damages arising from the use of this soft... |
da776dd374ae19109165c8adc4042dfb067f6b24 | 328ebfdbcef076ce0e930715f9bd786d7498185b | /lang/c++/beginning-c++-programming-udemy/2nd pass/11-functions/1-what-is-a-function/3-function-definition.cpp | 29cf7c3f745c7f5f73b6936a8b81f93277a8d5b6 | [] | no_license | pnowak2/learnjs | b618e6f9563b3e86be0b1a21d647698e289daec0 | f8842b4e9e5d2eae6fb4e0d663b6699d74c90e9c | refs/heads/master | 2023-08-30T05:04:00.227920 | 2023-08-18T10:58:24 | 2023-08-18T10:58:24 | 41,912,571 | 3 | 0 | null | 2023-03-31T06:58:40 | 2015-09-04T11:36:13 | Python | UTF-8 | C++ | false | false | 375 | cpp | 3-function-definition.cpp | #include <iostream>
#include <iomanip>
#include <cctype>
#include <cstring>
#include <math.h>
using namespace std;
double area_circle(double radius) {
return 3.14 * radius * radius;
}
int main()
{
double radius {};
cout << "whats r: ";
cin >> radius;
double area = area_circle(radius);
cout ... |
99f018ec03f07242ac3e71ea55f253c6cf105b25 | 376e1818d427b5e4d32fa6dd6c7b71e9fd88afdb | /databases/cstore/patches/patch-src_Operators_HashJoin.h | a5c2803d6a5b3bb690ce9406c08fcc388266dea2 | [] | no_license | NetBSD/pkgsrc | a0732c023519650ef821ab89c23ab6ab59e25bdb | d042034ec4896cc5b47ed6f2e5b8802d9bc5c556 | refs/heads/trunk | 2023-09-01T07:40:12.138283 | 2023-09-01T05:25:19 | 2023-09-01T05:25:19 | 88,439,572 | 321 | 138 | null | 2023-07-12T22:34:14 | 2017-04-16T20:04:15 | null | UTF-8 | C++ | false | false | 375 | h | patch-src_Operators_HashJoin.h | $NetBSD: patch-src_Operators_HashJoin.h,v 1.1 2011/12/20 13:42:47 wiz Exp $
Add missing header.
--- src/Operators/HashJoin.h.orig 2006-09-29 18:20:44.000000000 +0000
+++ src/Operators/HashJoin.h
@@ -44,7 +44,7 @@
#include "../Wrappers/MultiBlock.h"
#include "../Util/HashMap.h"
#include <math.h>
-#include <hash_map... |
2ad178c3010f039410bf90fcfcc3873b4253f02c | 77e326a82238692ace489e60ac59500007686c32 | /Embedded_Computer/src/Demo/StaticWalking/StaticWalk.cpp | b1ee001ff7063a8c9ee2069607b2302b59664990 | [] | no_license | glocklueng/RobotFoot | aff1d5cd1d19d543a501b828a98f060703cdb592 | 9fbcc9679b7c8239f9f789e7bcc35cc3b81a58d7 | refs/heads/master | 2021-01-18T11:46:11.438806 | 2014-01-03T02:58:32 | 2014-01-03T02:58:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,932 | cpp | StaticWalk.cpp | /**
******************************************************************************^M
* @file StaticWalk.cpp
* @author Mathieu Drapeau
* @date 2013-09-20
* @brief Class to test mouvement on robot
******************************************************************************^M
*/
#include "StaticWalk.h"
#incl... |
c7d49f0da00b59e32687cfabea7fe5aa5cea9fa8 | 2e3da064d91723cc60f3c8f52f53becb4bbb3b04 | /src/ofxNanoVG.h | f7a7bb81a271e5591bb701ca380d2a411cf73f17 | [
"MIT"
] | permissive | tiagosr/ofxNanoVG | eaaddfbdee22d99894266c569ad7007d58120c61 | 655c3b2a08746b41f5263bc87fb2a4dabc1ef404 | refs/heads/master | 2021-01-19T02:55:24.781636 | 2016-07-02T03:46:19 | 2016-07-02T03:46:19 | 54,085,008 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,230 | h | ofxNanoVG.h | #pragma once
#include "ofMain.h"
#include "nanovg/src/nanovg.h"
#include "nanovg/src/nanovg_gl.h"
NVGcontext *nvgCreateOFX(int flags);
void nvgDeleteOFX(NVGcontext *ctx);
int nvglCreateImageFromHandleOF(NVGcontext* ctx, GLuint textureId, int w, int h, int flags);
GLuint nvglImageHandleOF(NVGcontext* ctx, i... |
d477f36b901855f836dc406d8e802f402a569777 | a4b1fef1b0cc03dd2eb97285aa1b5d3073624544 | /include/particle_filter/CompareParticleWeights.h | aa6a1a089ab2b39f768fa73ff12c1ed83099a30f | [
"MIT"
] | permissive | bit-bots/particle_filter | aff10ebe5d1c1abdefb44c2515ca5b337c4b741f | ca2a8adff7c9211b7688828062964d75164fcdbd | refs/heads/master | 2023-05-11T15:55:55.824347 | 2023-05-03T17:23:45 | 2023-05-03T17:23:45 | 174,552,523 | 10 | 5 | MIT | 2023-05-03T17:20:36 | 2019-03-08T14:32:45 | C++ | UTF-8 | C++ | false | false | 990 | h | CompareParticleWeights.h | #ifndef COMPAREPARTICLEWEIGHTS_H
#define COMPAREPARTICLEWEIGHTS_H
#include "particle_filter/Particle.h"
namespace particle_filter {
/**
* @class CompareParticleWeights
*
* @author Stephan Wirth
*
* @brief Class with one operator to compare two pointers of particles according
* to the weight of the parti... |
1ad497cb1cc06ad835547972301f8c6521ddbbba | 90b6f6517f3119901920fd568efc8139a199255d | /src/Util/ShaderProperty.cpp | 6e7ec825bef3401fdcb62a1fe97a56ea3b14768b | [
"MIT"
] | permissive | jjzhang166/3DRasEngine | d80c469d8799d00e64f746d2f6ac6e3e7dfa2da3 | f97d23d11eab14d94045c982b3c1807416c54bcc | refs/heads/master | 2023-04-15T16:49:22.604267 | 2017-06-17T06:41:17 | 2017-06-17T06:41:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 437 | cpp | ShaderProperty.cpp | //
// ShaderProperty.hpp
// 3DRasEngine
//
// Created by 于京平 on 2017/6/4.
// Copyright © 2017年 于京平. All rights reserved.
//
#ifndef ShaderProperty_hpp
#define ShaderProperty_hpp
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <functional>
#include <cmath>
#include "Light.hpp"
#include "BMPManage... |
9e9b406ce34567d4ed555ff170007204d041fb9d | 960a304609d6867faa2a282448e0d6bf13089cf9 | /clcenterkernel.h | e2b96346b3871e9e58b7d2886c64fc809fbf0cb0 | [] | no_license | plauth/fastica-reloaded | fd2a095743779dbf44ac58d9648a76a15336c013 | 4a5ae6dedafe5c1aca66871ec82013319b06a2fb | refs/heads/master | 2020-06-14T15:49:06.932523 | 2017-03-31T09:51:17 | 2017-03-31T09:51:17 | 75,163,650 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 408 | h | clcenterkernel.h | #ifndef CLCENTERKERNEL_H
#define CLCENTERKERNEL_H
#include <fstream>
#include <iostream>
#include "clmatrix.h"
#include "clutil.h"
class CLCenterKernel
{
private:
CLCenterKernel();
public:
static std::shared_ptr<CLMatrix> subtract(cl::Context context, cl::CommandQueue queue, std::shared_ptr<CL... |
a0d8d3b44cfd554c21760320fefe9b705f91e8f1 | d54ce5bdaa2cd6ee938c321c9aaf52442d2bc62a | /chat/psi/patches/patch-src_contactlistdragview.cpp | 8017376ce7d0f34850a735e0fa3b634757f8b493 | [] | no_license | coypoop/pkgsrc | 899b57e574b263fd8b5dd39a8d779a2b2fbd71ad | 719885e7936238c0c904204fd04a965319112daf | refs/heads/trunk | 2022-12-25T01:17:00.406760 | 2020-10-02T10:32:52 | 2020-10-02T10:32:52 | 294,749,666 | 0 | 0 | null | 2020-10-02T12:16:32 | 2020-09-11T16:45:35 | null | UTF-8 | C++ | false | false | 370 | cpp | patch-src_contactlistdragview.cpp | $NetBSD: patch-src_contactlistdragview.cpp,v 1.1 2020/06/18 13:55:15 nia Exp $
Fix Qt 5.15 build issues
--- src/contactlistdragview.cpp.orig 2018-11-02 00:15:39.000000000 +0000
+++ src/contactlistdragview.cpp
@@ -43,6 +43,7 @@
#include <QMimeData>
#include <QMouseEvent>
#include <QPainter>
+#include <QPainterPath>... |
bcef7aa4307c3652c056baf4519a6f7150ad514d | ff2258128349cfa8a85d3ed0525174b063db9195 | /Routing.h | a20d15e49fcd76c9bc1d63f21c45dd013ba413ec | [] | no_license | PauloFernandoSF/PauloFernando | 39ee5b64e498bada85c2a1afce5c0f96ca635c3c | e8afbec250bd7d9a71d1c672e3848b2ccd4fe0aa | refs/heads/master | 2022-12-22T01:16:29.305350 | 2020-10-02T18:41:37 | 2020-10-02T18:41:37 | 100,427,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,024 | h | Routing.h | #ifndef ROUTING_H_INCLUDED
#define ROUTING_H_INCLUDED
#include "Topology.h"
#include "Assignment.h"
#include <queue>
struct RouteCompare{
/**
* @brief Compare the cost of two routes.
* @param routeA Route to be compared with.
* @param routeB Route to compare.
* @return true if the cost of... |
0d37888a5d8ba835a24070eae905c80f45e3e08b | c80df697c0b66cd58a039c928574926bd6161a36 | /runtime/lib/ffi_dynamic_library.cc | 09e159f5226e8e41a62fb12e59799e3badaece35 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-unknown"
] | permissive | dart-lang/sdk | d4e50700dfc54b33c0a7a09fab1aa9623ebc84e5 | b25873f11c68772408f6a4aea5f5c961f31ac9f7 | refs/heads/master | 2023-08-31T11:13:09.400940 | 2023-08-31T09:10:57 | 2023-08-31T09:10:57 | 35,726,310 | 10,701 | 2,079 | BSD-3-Clause | 2023-09-14T10:34:15 | 2015-05-16T14:14:58 | Dart | UTF-8 | C++ | false | false | 17,023 | cc | ffi_dynamic_library.cc | // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "platform/globals.h"
#if defined(DART_HOST_OS_WINDOWS)
#include <Psapi.h>
#include <Windows.h>... |
8e300ae3319fd965aedaf1338f37fc04a258aaae | b87cc33dad2d25a774f081af72e0a8de6efe1cba | /P2/tmpl_2018-01_CP/TopLevelBVH.cpp | 3d7883e87f8e837039098469228bb93f6e9e7cea | [] | no_license | pasu/AG_Assignment | 2c3bd03a13703f7f7e561b907bcd3e83412742f5 | d35f4552b529ba5b4a23bc74210cfcba70096b66 | refs/heads/master | 2021-10-11T17:55:54.786910 | 2019-01-28T17:59:07 | 2019-01-28T17:59:07 | 157,724,885 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,280 | cpp | TopLevelBVH.cpp | #include "TopLevelBVH.h"
#include "precomp.h"
TopLevelBVH::TopLevelBVH( const std::vector<RTObject *> &objects ) : objects( objects ), tree_size( objects.size() * 2 - 1 )
{
// alloc memory for the tree
nodes = new TopLevelBVHNode[tree_size];
rebuild();
for ( unsigned int i = 0; i < RAYPACKET_RAYS_PER_PACKET; ++i... |
8edbe56b3912b25b138008672cba7f35b434ec7e | ccfe8875f9b762fa44891a00ab72c5c85cb9acbb | /waveshare_1_54/waveshare_1_54.ino | 012c732405daa41e96de6911b69c76671b29bd13 | [] | no_license | ChristophHu/adafruit_feather_m0_waveshare_1_45 | 2cb153fbb407329a107a0f6159348b6b55e9c7f3 | 4733658ed38bed3380ab579f09c4d0df9741339d | refs/heads/master | 2020-03-19T03:26:29.301346 | 2018-06-01T14:39:29 | 2018-06-01T14:39:29 | 135,728,006 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,330 | ino | waveshare_1_54.ino | // includes
#include <SPI.h> // standard Bibliothek
#include <epaper_1_54.h> // Klasse epd
#include "imagesdata.h" // Logos
int counter = 0;
void setup() { // Setup Code
Serial.be... |
9a9413986c56d9b9bc5f29ab8fc0e5167a8691a0 | db005ba00996105dc732ff5901d31d9d6e4b72e0 | /STM32_nrf24_remote_V1.0/STM32_nrf24_remote_V1.0.ino | 88c0e353f14ca185f5e21715a0c0766464c804bf | [] | no_license | kevinsagen47/NRF24-Projects | 28c4b12dea7960504e4fb710e2e53e2d94c77323 | 165c92c8307ca902a4c89cc5207538f70402b7ed | refs/heads/main | 2023-01-07T10:24:39.853159 | 2020-11-09T20:41:16 | 2020-11-09T20:41:16 | 311,459,746 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,141 | ino | STM32_nrf24_remote_V1.0.ino | /*
DIY Arduino based RC Transmitter
by Dejan Nedelkovski, www.HowToMechatronics.com
Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
*/
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
//#include <Wire.h>
// Define the digital inputs
float elapsedTime, currentTime, previousTime;
int c = 0;
RF... |
e4d5ff4fc83dd55015dc250051777932acbadf4f | e96c2bbb83ce181ef9f06a1bb4592b1abb4e3d1d | /given/Chapter11/pr11-19.cpp | 151c82565a7e0a6241a21569f4f924405550fef3 | [] | no_license | voidstarr/cs7b | 844d2db03ccf9a36fb9614ad30053ab9d1be22ea | bcd39a4adb07454a6c218cc202895b6b2469e9bd | refs/heads/master | 2020-12-31T00:17:23.692813 | 2017-05-16T18:27:52 | 2017-05-16T18:27:52 | 80,552,240 | 1 | 2 | null | 2017-02-14T21:30:21 | 2017-01-31T19:08:35 | C++ | UTF-8 | C++ | false | false | 577 | cpp | pr11-19.cpp | // This program demonstrates the type conversion operators for
// the Length class.
#include "Length2.h"
#include <iostream>
#include <string>
using namespace std;
int main()
{
Length distance(0);
double feet;
int inches;
distance.setLength(4, 6);
cout << "The Length object is " << dist... |
38ca703f1a2f212864d941e94b253d269c4963eb | 0e4db36d0fa5a0b0cea5b80375919020e11a7e6a | /Desktop/DumpSPI.cpp | 0384cf24ada3c7ae7438f0fe715b97c5eca6961f | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | sensics/IR_LED_DRV | 013f60329245ee069f94a16ce7e46f29d988b9ff | 113c08374f32feaff1415f3120c09d2e183462da | refs/heads/master | 2021-01-17T23:29:33.002714 | 2016-09-09T06:12:56 | 2016-09-09T06:13:45 | 39,975,215 | 15 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,281 | cpp | DumpSPI.cpp | /** @file
@brief Implementation
@date 2016
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2016 Sensics, Inc.
//
// 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 L... |
a909fd2d7b4509394c5109a1613e03c5927ce141 | 4ff0656cc84aa26f1fbe97a8782ced750250a9d6 | /Main project/SFML/Chargement.cpp | dc0510c04985be92c153848e0b8c7e453d6d134b | [] | no_license | YumeMun/Projet-Verdict | 076cc4535004efb3b386a411dfe7f8c72b4b91aa | 3c779d46aa02c4c5bf15f59952d2a7911c436b72 | refs/heads/master | 2022-03-28T09:42:33.460660 | 2020-01-10T00:20:33 | 2020-01-10T00:20:33 | 230,617,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,850 | cpp | Chargement.cpp | #include "Chargement.h"
#include "GameManager.h"
#include "ResourceManager.h"
Chargement::Chargement()
{
m_actualWindow = GameManager::Instance()->GetWindow();
isLoaded = false;
LoadThread = std::thread(&Chargement::Load, this);
LoadingBack.setSize(sf::Vector2f(1000, 30));
LoadingBack.setFillColor(sf::Color(50... |
7b7312d27bd26224bc3ddcd60ec2f0dfbcc3c791 | 08a5a9bcc9303c3d020505b57d8ad6fa577741c7 | /Codechef/Codechef-Practice/Beginner/POTATOES.cpp | 8e111de659f2fd2a9b90c29d6f835694e9da4837 | [] | no_license | saxena11ashish/CPP | 53fb34d05aa2775f7cc1a172b146143cf8c55a8d | f5ebeb970925e23b1c5ac1bf759958079a2876fb | refs/heads/master | 2023-01-29T22:28:51.537558 | 2020-12-09T12:16:48 | 2020-12-09T12:16:48 | 266,193,710 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 426 | cpp | POTATOES.cpp | #include<bits/stdc++.h>
using namespace std;
int findNextPrime(int n){
if(n==1)return 2;
if(n==2)return 3;
if(n%2==0)
return findNextPrime(n+1);
for(int i=3;i*i<=n;i++){
if(n%i==0)
return findNextPrime(n+1);
}
return n;
}
int main() {
int t;cin>>t;
while(t--)... |
6dcc02946b52265330b29987ab95d0b75230ef25 | e5f0409d08d75cb147edf55011aede492f92fa67 | /windowsprog/9/9.cpp | 66c6fe2ab039ebfad39ca191211ae06dce353904 | [] | no_license | vineethcosta/c-assignments | 0043b034fe7ab9eff791e3681c84ea75bb107d8e | 827a6cb6f46ba856d5a74298100fa70d15f9323c | refs/heads/master | 2020-04-22T00:54:23.776523 | 2019-03-18T03:51:50 | 2019-03-18T03:51:50 | 169,996,572 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,387 | cpp | 9.cpp | // 6.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include<Windows.h>
#include<iostream>
using namespace std;
//createprocess program
int main()
{
HANDLE thread;
DWORD ThreadID;
HANDLE hProcess = NULL;
HANDLE hThread = NULL;
STARTUPINFO si;
PROCESS_INFORMATION pi;
DWORD d... |
68b42c95dae3c222c357af162e855ccdeab70934 | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/arc/arc079/E/answers/453826_osupo.cpp | e584510b745add2b30dee36d25cc4363d76f921f | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,033 | cpp | 453826_osupo.cpp | #include <iostream>
#include <iomanip>
#include <cstdio>
#include <cassert>
#include <cstring>
#include <vector>
#include <valarray>
#include <array>
#include <queue>
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <algorithm>
#include <cmath>
#include <complex>
#include <random... |
50ee3d0ad4193cb1d5970da6c99600b624941fb2 | e26f3afefcc61ec22c7bb45be7023a8c7babd185 | /cpp/paranthesis.cpp | ea84f401c88b3211335be8a2a7fb63ccd106b7c2 | [] | no_license | csandeep23/practice | c840e972ac6fe6b12d11b268b7f8901631ef97bb | f226be91baf1c297d9bfb581cd1b0e327bddaa40 | refs/heads/master | 2021-01-20T04:16:05.993696 | 2019-03-22T02:04:11 | 2019-03-22T02:04:11 | 89,668,390 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 640 | cpp | paranthesis.cpp | #include<iostream>
using namespace std;
int power(int a,int b) {
int ret=1;
while (b>0){
ret*=a;
b--;
}
return ret;
}
int main(){
int n=4,y=0;
int i,j,x,count;
bool value[n];
i=power(2,n);
for(j=0;j<i;j++){
cout<<j<<endl;
x=j;
while(x>0){
... |
7fe90e84b9f8c6a326f3f25daa383ae183da21af | 970c2ce3feb6aac8358c4740268dbd35768de798 | /第六单元C++/NO.6.18/main.cpp | 32cc2700573ec88b0d40130df91eda01c934962e | [] | no_license | wxh17860752878/wang_xiaohong | b58bc9736201084e7f563df771483142452169c0 | 0a69b42790cf938ca6092a5c84a16995ade2a3dc | refs/heads/master | 2020-04-02T10:13:29.451415 | 2019-04-21T11:52:12 | 2019-04-21T11:52:12 | 154,329,767 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | cpp | main.cpp | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
int integerPower(int base,int exponent)
{
int sum;
sum=base;
for(int i=1;i<exponent;i++)
{
sum*=base;
}
return sum;
}
int main()
{
unsigned int base;
int exponent;
cin>>base;
cin>>exponent;
cout<<integ... |
376270e17ae17591519d27c66e33526128ec1706 | c97cb7e29c8e7319ba23a78f5bc30bdf1dbe0117 | /src/camera/camera.cpp | 8f6c59e7f9dfcd5e0089cbacdbc442e303cf21e8 | [] | no_license | nagato0614/nagatoRender | 5693211c5e971209bdcc03c8848a5ac2ea73a40b | 822d6f0d250e979a9355f789c23cc988e5842d75 | refs/heads/master | 2020-07-02T11:08:19.535123 | 2019-11-17T16:02:56 | 2019-11-17T16:02:56 | 201,505,961 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 484 | cpp | camera.cpp | //
// Created by 長井亨 on 2019-08-10.
//
#include "camera.hpp"
#include "math.hpp"
namespace nagato {
Camera::Camera(const Vector3f &lookfrom,
const Vector3f &up,
const Vector3f &lookat,
Float fov,
int width,
int height)
: lookfrom_(lookfro... |
8bacb30394479980ffd5d745cc1bd34ba92132e1 | 9ad40d7fff54f5e4f36ae974e33712a9beb7378e | /special_pair_brute.cpp | 31fbd771104f9c43fec79536659d9f74ebaf44df | [] | no_license | vikram-shaw/cpp | 7fcac406b003dd717abe43fc5f15ea253b486b1d | 8d4367dedef4e48aed649c8174cee74d38be09ea | refs/heads/master | 2023-01-31T19:13:04.363704 | 2020-12-20T05:50:24 | 2020-12-20T05:50:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251 | cpp | special_pair_brute.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
vector<int> v(n);
for(int i=0;i<n;i++)
cin>>v[i];
int count = 0;
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
if(!(v[i]&v[j]))
count++;
}
cout<<count<<'\n';
}
|
de19d82ce4afce41f2c6c5878290096bbbcdb9de | 54da97058e1319bf0bc1c60198558aeb6b004ecd | /Material/AceTable/AceReader/Blocks/DLWBlock.cpp | 81f9fe29e5db122f6ee636d2be481ea141fad45c | [
"BSD-3-Clause"
] | permissive | khurrumsaleem/helios | 202021d96490bd4ad117ccc1196799c019285e7a | fe7a06992abcf495d9b09d2d172b8cc6fdd67b80 | refs/heads/master | 2022-01-24T21:45:51.088917 | 2020-06-27T05:19:10 | 2020-06-27T05:19:10 | 205,647,629 | 0 | 0 | null | 2019-09-01T08:08:19 | 2019-09-01T08:08:19 | null | UTF-8 | C++ | false | false | 5,521 | cpp | DLWBlock.cpp | /*
Copyright (c) 2012, Esteban Pellegrino
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 of conditions and the fo... |
91749dec476ac4c769043301eeb78b510f60b160 | cd4587f46b5f1393e46459c7b7959455a847c0db | /source/digits_hits/include/GateWashOutActor.hh | 9b285c19f570ec8bec3a9c069d01133a491461d1 | [] | no_license | lynch829/Gate | 8072e7e30d855b15a9152a5884fc1357c07539bc | 02754973dbaeca343a7c3b9402521f45c05e9ccf | refs/heads/develop | 2021-01-24T20:13:11.821931 | 2016-07-12T11:23:15 | 2016-07-12T11:23:15 | 66,326,268 | 1 | 0 | null | 2016-08-23T02:33:29 | 2016-08-23T02:33:29 | null | UTF-8 | C++ | false | false | 2,073 | hh | GateWashOutActor.hh | /*----------------------
Copyright (C): OpenGATE Collaboration
This software is distributed under the terms
of the GNU Lesser General Public Licence (LGPL)
See GATE/LICENSE.txt for further details
----------------------*/
/*!
\class GateWashOutActor
\author I. Martinez-Rovira (immamartinez@gmail.com)
... |
fd5ce6f4f2781dd393b8f25163ee166c3e326052 | c24e7f85c586f6b610bfb735101575c1b5afb436 | /Hide-And-Seek/Hide-And-Seek_final/engineXML.h | c6b346f0136ba97bff6a8b4b9681786f198c9faa | [] | no_license | slinh/hide-and-seek | f84b2aebc52090f863d34873cba0062ea56842d9 | 7f31428a56b0d37ce13146f454d9ad3f9426d50e | refs/heads/master | 2021-01-13T01:54:29.064659 | 2014-05-06T21:19:06 | 2014-05-06T21:19:06 | 32,493,790 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,717 | h | engineXML.h | /*
LTE Game Engine SDK:
Copyright (C) 2006, SiberianSTAR <haxormail@gmail.com>
Based on Irrlicht 1.0:
Copyright (C) 2002-2006 Nikolaus Gebhardt
For conditions of distribution and use, see copyright notice in
engine.h
http://www.ltestudios.com
*/
#ifndef __engine_XML_H_INCLUDED... |
3a56f6e9f973d53d83f4e9ca879525ebbe351e93 | 4d911a3461d2d565b9fb45a53679d469be2cf72b | /elm_multiGPU.h | 6903afdcb6de612497257e42d44d137a30c1e826 | [] | no_license | lynch829/ELMdouble | 1e3c5a5a353b5e99d2de8344ee3c527d012ffd17 | 17ca31137eb7f7c3c44b45ee54c6ed1e75bf4d31 | refs/heads/master | 2021-01-06T21:25:32.565962 | 2015-08-28T15:15:50 | 2015-08-28T15:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,993 | h | elm_multiGPU.h | #ifndef ELM_H
#define ELM_H
#include "cuda.h"
#include <stdio.h>
#include <cublas_v2.h>
//Revision Feb. 15 13
//Change the label to double so this ELM can work with regression
//
//
class CElm {
public:
CElm( const char*, const char*, int C, int F, int Tr, int Te, int N, const char*);
//CElm(train... |
e4005c04c9b4469e2fe6912ecb495fd6f0ff5f31 | e080f2529ddf93a121f9afe069a93be7831fe5e5 | /lianbiaocaozuo/lianbiaocaozuo/lianbiaocaozuo.cpp | f2c20cab9247ece75df4f7620f3c1409d604f924 | [] | no_license | CuteXiaoKe/ExtraHomework | 38f2093f2dde1a21594a0a9f86d98a3cee8bb561 | 579baaff415f9ea9b322a8bfdb9f7330d91823f6 | refs/heads/master | 2021-01-25T12:07:23.011134 | 2013-11-19T12:39:32 | 2013-11-19T12:39:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,380 | cpp | lianbiaocaozuo.cpp | #include <iostream>
using namespace std;
struct Node
{
char data;
Node* next;
};
Node* create(char a[20])
{
Node* p=(Node*)malloc(sizeof(Node));
p->data=a[0];
Node* r=p;
for(int i=1;a[i]!='\0';i++)
{
Node* q=(Node*)malloc(sizeof(Node));
p->next=q;
q->data=a[i];
p=q;
p->next=NULL;
}
Node* f=r;
... |
dc450fc3a171894177dab2847cf13a47cd68fd05 | 76aab74b58991e2cf8076d6b4ed6f4deba1c57bd | /luogu/5375.cpp | ebc1694d711163165d7be08c0c5c7e9ffe64fa88 | [] | no_license | StudyingFather/my-code | 9c109660c16b18f9974d37a2a1d809db4d6ce50a | 8d02be445ac7affad58c2d71f3ef602f3d2801f6 | refs/heads/master | 2023-08-16T23:17:10.817659 | 2023-08-04T11:31:40 | 2023-08-04T11:31:40 | 149,898,152 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 816 | cpp | 5375.cpp | #include <iostream>
#include <queue>
#include <stack>
#include <algorithm>
using namespace std;
queue<int> q;
stack<int> s;
priority_queue<int> maxh;
priority_queue<int,vector<int>,greater<int> > minh;
bool a[5]={0,1,1,1,1};
int main()
{
int n;
cin>>n;
while(n--)
{
int op,v;
cin>>op>>v;
if(op==1)
{
q.pus... |
694388ded2379bbda01321dbcc3fab3847b4833e | 3022fe056fe03a2d13541a0c6eee9e16bd087b6a | /project_1/_main_/led.cpp | 6c466547088d3c1560ff4bccb9d93e0dfbb2010c | [] | no_license | mitchvoll/CISC340 | 523513b1b893c0f9e4961574c111a20568594f22 | 78948d8c9dd6018f483909cee69251530e0798a7 | refs/heads/master | 2020-12-30T21:47:54.171150 | 2015-11-24T22:07:23 | 2015-11-24T22:07:23 | 43,721,318 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,126 | cpp | led.cpp | #include <Adafruit_MotorShield.h>
#include <Adafruit_NeoPixel.h>
#include "Arduino.h"
#include "led.h"
#include <Adafruit_NeoPixel.h>
#define NUMPIXELS 16
// constructor
Led::Led(int data_pin) {
pin = data_pin;
pixels = Adafruit_NeoPixel(NUMPIXELS, pin, NEO_GRB + NEO_KHZ800);
pixels.begin();
pixels.setB... |
bc741fb1508efeb553b1a19309e1ed93eea982ab | cc05ea7c5865c296618c91bdc7f169dc5b23f70a | /EDRendererD3D/IndexBuffer.h | 7644cd6eb1fdd0648c1bd3f72845605567baba5b | [] | no_license | fullsaildevelopment/FSGDEngine | 2dab86c8578a2ca176b9d7d852a4cdb627998ee2 | 9fc325bfc6bf68906cf0b3034efc4ab7f1473612 | refs/heads/master | 2021-01-22T13:17:25.142686 | 2016-08-05T14:17:42 | 2016-08-05T14:17:42 | 65,510,640 | 5 | 1 | null | 2016-08-12T00:31:43 | 2016-08-12T00:31:43 | null | UTF-8 | C++ | false | false | 1,304 | h | IndexBuffer.h | #pragma once
namespace EDRendererD3D
{
/// A singleton class used to hold the index buffers used for rendering indexed geometry.
class IndexBuffer
{
private:
IndexBuffer(void);
IndexBuffer(const IndexBuffer &) {}
IndexBuffer &operator=(const IndexBuffer &) { return *this; }
... |
bd8b6b3916c8bc45e56edb04a70004598e4c6075 | 4868456cca40335cca743f98a2a1f698842cf8d7 | /server_june__esp32_2019.ino | 60ab270b7b385c88b30943970f913673d11dce12 | [] | no_license | ocaduacelab/featherroomserver | 5a2f744d4c63794aa74a42a0308355a62b30e558 | d7c84860172320b8f8bb1b1de81fcd6654bacac5 | refs/heads/master | 2020-05-02T16:34:26.306667 | 2019-10-23T01:31:28 | 2019-10-23T01:31:28 | 178,072,951 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,792 | ino | server_june__esp32_2019.ino | /************************
Web Room Server
ACE Lab June 2019
ESp32 update.
*************************/
#include <WiFi.h> // Include the Wi-Fi library
#include <WiFiClient.h> // Client WIFI library
#include <WebServer.h> // Web Server Library
#include <ESPmDNS.h> ... |
ae0ff42f06c9854f8b28cc80c33d4551f21071e0 | 903767e9e1bd7ae4c273621f2787e8e93ed38553 | /AtCoder/others/PAST/4/N.cpp | c34b5a80136570cfbbf2b318dd31f828ee893f4d | [] | no_license | itohdak/Competitive_Programming | 609e6a9e17a4fa21b8f3f7fc9bbc13204d7f7ac4 | e14ab7a92813755d97a85be4ead68620753a6d4b | refs/heads/master | 2023-08-04T08:57:55.546063 | 2023-08-01T21:09:28 | 2023-08-01T21:09:28 | 304,704,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,845 | cpp | N.cpp | #include <bits/stdc++.h>
#include <print.hpp>
using namespace std;
// #include <atcoder/all>
// using namespace atcoder;
#define ll long long
#define ld long double
#define REP(i,m,n) for(int i=(int)(m); i<(int)(n); i++)
#define rep(i,n) REP(i,0,n)
#define RREP(i,m,n) for(int i=(int)(m); i>=(int)(n); i--)
#define rrep(... |
ee14beb3de9aeb443a3d261269ca24493c3a56c5 | 3b6ee14ff27aa37882cee98f16de21daf60f48aa | /DWKernel/Point - Property.cpp | afe99f1ed4d14ef8f9fe55fe9b6a67dd585b6f35 | [] | no_license | seenunit/DesignWorld | 410aa01c274d9eac04b6ef52222d0273420f960b | 40d311b2ddf4dcc5c555689b3b4bf4a0c97f2c39 | refs/heads/client | 2021-01-18T21:21:03.688005 | 2017-07-01T07:57:19 | 2017-07-01T07:57:19 | 34,983,157 | 3 | 1 | null | 2016-04-04T12:35:26 | 2015-05-03T11:09:04 | C++ | UTF-8 | C++ | false | false | 2,654 | cpp | Point - Property.cpp | /* Point.cpp geometry
Date Author Remark
20-Nov-2013 srinivas Intail Version
$HISTORY$*/
#include "Point.h"
//Class Constructors
Point::Point(void):
Geometry(GEOM_POINT),
m_iDimension(4)
{
m_point.x = 0;
m_point.y = 0;
m_point.z = 0;
m_point.h = 0;
}
Point::Point(const Point... |
8e900fa908aa4abd118de28bef031c0603a02945 | 642742cd1138f8e0fd9bb19271af676d1ae5facc | /core/vector/Distance.cpp | ecc32fdf98d566cf8a74a6ebbb2f0a7b8feb35d2 | [] | no_license | cvjena/nice-core | d64f3b1b873047eb383ad116323f3f8617978886 | d9578e23f5f9818e7c777f6976eab535b74dc62f | refs/heads/master | 2021-01-20T05:32:01.068843 | 2019-02-01T16:17:13 | 2019-02-01T16:17:13 | 3,012,683 | 4 | 4 | null | 2018-10-22T20:37:52 | 2011-12-19T15:01:13 | C++ | UTF-8 | C++ | false | false | 1,551 | cpp | Distance.cpp |
#include <core/vector/Distance.h>
namespace NICE {
template<>
Ipp32f EuclidianDistance<Ipp32f>::doCalculate(const VectorT<Ipp32f>& v1, const VectorT<Ipp32f>& v2) const {
if(v1.size()!=v2.size())
fthrow(Exception, "Input vectors must have the same size.");
Ipp32f dist = 0;
#ifdef NICE_USELIB_IP... |
4f06ef70ab6206062a73063a28909b29d45f40d8 | 38b9daafe39f937b39eefc30501939fd47f7e668 | /tutorials/2WayCouplingOceanWave3D/EvalResults180628-Eta/51/alpha.water | df5f2ce6c9d423ae10117774b672fa69423481be | [] | no_license | rubynuaa/2-way-coupling | 3a292840d9f56255f38c5e31c6b30fcb52d9e1cf | a820b57dd2cac1170b937f8411bc861392d8fbaa | refs/heads/master | 2020-04-08T18:49:53.047796 | 2018-08-29T14:22:18 | 2018-08-29T14:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 159,544 | water | alpha.water | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.1 |
... |
2d5245e0be5570a2021e34942e6367bee6039368 | 892a9f506180c03979c8f714854aca467c33b02e | /Controller/include/Finger.h | 3d13ed1ce24833946ba853e29025162340b63b2d | [
"ISC"
] | permissive | ducminh296/Human_Interface_for_Robotic_Control | e0e4a7d5ca9932d9c8f1798408c0eb297f09cde4 | 6ce9df53a6620f112cfd29fd19bad13dd20bbea8 | refs/heads/master | 2021-01-19T16:20:57.582212 | 2016-04-05T15:04:04 | 2016-04-05T15:04:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,709 | h | Finger.h | //*****************************************************************************
//
// Finger.h
//
// Class responsible for modelling a finger on a hand.
//
// Copyright (c) 2015 Brandon To, Minh Mai, and Yuzhou Liu
// This code is licensed under BSD license (see LICENSE.txt for details)
//
// Created:
// December 28, 2... |
09850b388c2a69e50717a7d9eba5d3248905c69c | 30f2ad071c98cf66fd8861f23f805b1e74e19871 | /pclpp_viewer/src/vtk_viewer_node.cpp | 7d51e06b53b167170332c5bdbe649652fddddf2e | [] | no_license | walkingmachinegraveyard/wm_pcl_preprocessing | c292a330f9a4a90921959043033f19964bbc3526 | 9f22b92e37c0e09de96012e6cf2a634c985654a7 | refs/heads/master | 2021-06-18T17:14:52.493683 | 2017-06-22T03:38:54 | 2017-06-22T03:38:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | vtk_viewer_node.cpp | #include "../include/pclpp_viewer/vtk_viewer_nodelet.h"
int main(int argc, char **argv)
{
int i_arg = 0;
std::string viewer_name = "";
while (i_arg < argc) {
if (boost::starts_with(argv[i_arg], "__name:")) {
size_t header_len = strlen("__name:=");
viewer_name = std::string(a... |
aa2e4ae1261e05bd64659c1ced4d929957c50bb1 | 214ff7c2eb0bba4a504b17ba3e148396a5d3005c | /decision_asgn8.cc | 6dae63df8cdbfb90bfb65f029192b636e83f83d7 | [] | no_license | RahulBantode/c_cpp_practice | 08071b33fd859e9d0e04c69087e36ec77bcf9164 | 135276411ff2d60279340e665b922bc265571801 | refs/heads/main | 2023-05-15T04:01:03.475007 | 2021-06-14T06:27:25 | 2021-06-14T06:27:25 | 376,720,345 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 347 | cc | decision_asgn8.cc | #include<stdio.h>
int main()
{
int a=10,b=12,c=0;
int r1,r2,r3,r4,r5;
r1=(a!=6 && b>5); //op-1
printf("%d",r1);
r2=(a==9 || b<3);//op-0
printf("%d",r2);
r3=!(a<10);//op-1
printf("%d",r3);
r4=!(a>5 && c);//op-1
printf("%d",r4);
r5=(5 && c != 8 || !c);//op-1
printf("%d",r... |
c2980f19ffdaaf38eb8095149a3ceda09121fab4 | c7aa245e687b91bc1a7fe642f31be70d3c9c1ccf | /priyom_arduino1/priyom_arduino1.ino | dd6625a01f53db66155aca4f54f5d8d44d687411 | [] | no_license | Adilbek97/Arduino_projects | 224ddf77d8a1ab9afa8d3d008e1e7d9e24548e4b | a2b6863fed138e810a44c0a6b23f05316bafbcec | refs/heads/master | 2022-11-03T16:54:14.860526 | 2019-03-05T04:25:18 | 2019-03-05T04:25:18 | 173,740,587 | 0 | 1 | null | 2022-10-09T17:58:31 | 2019-03-04T12:26:05 | Python | UTF-8 | C++ | false | false | 390 | ino | priyom_arduino1.ino | #include<SoftwareSerial.h>
SoftwareSerial sstt(11,10);
char pr;
int led=8;
void setup() {
sstt.begin(9600);
pinMode(led,OUTPUT);
}
void loop() {
if(sstt.available()>0){
pr=sstt.read();
if(pr=='1'){
digitalWrite(led,HIGH);
delay(1000);}
else if(pr=='0'){
digitalWrite(led,LOW);
delay(1... |
eb44cee8e60f6c3eeca677bf7d53896557933b52 | 632a642c241fe5f40d0263e5cff4d9ea5e30bc59 | /include/readdy/model/topologies/GraphTopology.h | a3d15bf98d972e6e4fe0b00df580ec7cb6f2006d | [
"BSD-3-Clause"
] | permissive | readdy/readdy | b03bbcc8aabc634ed8dd31be4eaca206e1408248 | 97901fb4fdb1f708b31399a5c7b33c316769727f | refs/heads/master | 2022-07-20T05:58:11.614900 | 2022-07-11T13:59:29 | 2022-07-11T13:59:29 | 59,560,469 | 50 | 15 | BSD-3-Clause | 2022-07-11T13:59:31 | 2016-05-24T09:41:44 | C++ | UTF-8 | C++ | false | false | 9,713 | h | GraphTopology.h | /********************************************************************
* Copyright © 2018 Computational Molecular Biology Group, *
* Freie Universität Berlin (GER) *
* *
* Redistribution and use in source and ... |
ad727abb52c5b1060660913b8953781d5e967433 | 23ce72e8bc87babfb8ae17fcb1736eeb7710f0ec | /NosMemSync_Client/main.cpp | 5ad70538a9f4a9aef6f26891be044349ff3fb184 | [] | no_license | vltmedia/NosMemSync | 5cafe9f2c50888ece85ac8d9c0f1b625f94ca303 | f3db87c9e872d35a640f5a7609e1fec45f013f63 | refs/heads/master | 2023-02-06T08:58:17.578228 | 2020-12-28T01:01:14 | 2020-12-28T01:01:14 | 324,833,527 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | cpp | main.cpp | #include "mainwindow.h"
#include "tcp_client_a.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setOrganizationName("Justin Jaro");
a.setOrganizationDomain("vltbeta.ml");
a.setApplicationName("NosMemSync_Client");
//MainWindow w;
TCP... |
f5bf33763289d5ce7de33ff55673b98feb4ff407 | d87e36e4bc70788eac1474607185ce79838d5358 | /week-05/day-3/today_ success.cpp | 5ffa0c4b1850df75709e901d46c4f2731cfb36c7 | [] | no_license | greenfox-zerda-sparta/korompaidani | 0e5a3a580658a35c3245da3046bb86544a8b842f | ead60c4d18dd0feba9a0e49758dffdba8ffa3bda | refs/heads/master | 2021-01-12T18:15:09.459661 | 2017-03-31T09:41:51 | 2017-03-31T09:41:51 | 71,350,705 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 630 | cpp | today_ success.cpp | #include <iostream>
#include <string>
using namespace std:
string* char_star_array_to_string_array(char** input, int size) {
string* temp_array = new string[size];
for (int i = 0; i < size; i++) {
temp_array[i] = input[i];
}
return temp_array;
}
int main() {
char* arr_char[2];
arr_char[0] = "apple"... |
56767b2f788407cd7c591608cc0515be3885b977 | ca1a6c29426ec426d2cb8c598e0c6724424c254c | /medium/medium/Lily's Homework.cpp | a2de8d3851e10efd24a681aefb04af71789c4452 | [] | no_license | m98rohit/hackerrank-hard-and-above-problems | da67a900135eb36f5bc69162dcfa1b7e1966fb48 | edf97920196a4d69121c1ff05d29bcc69e5b73a5 | refs/heads/master | 2020-07-05T05:26:02.060469 | 2020-01-09T13:31:19 | 2020-01-09T13:31:19 | 202,536,864 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,671 | cpp | Lily's Homework.cpp | #include <iostream>
#include <algorithm>
using namespace std;
#define NULL 0
long long actual[500000],sorted[500000],c[500000],swaps,rev[500000],revo,revsorted[500000];
long long mod(long long a,long long b);
void hashe(long long s,long long index);
long long indexfinder(long long s);
struct liste
{ long long key,num;
... |
cb02fd922b8eba865bd351823f6a4c9c30b8efee | 475d4f05f1e9ef2f54b62d9c880ed164a56bc019 | /LD38/SMenu.cpp | 1a4b8d2c7ed2da3de385d2225cbd257b219d68f1 | [] | no_license | ScaredStorm/LD38 | e0db2abbe3fe962e04a7e48559b7fc191151b046 | 3a033b115acd284d2c470dde9b0d2dcfd23c8815 | refs/heads/master | 2021-01-19T23:46:58.501007 | 2017-04-24T08:59:39 | 2017-04-24T08:59:39 | 89,024,896 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,475 | cpp | SMenu.cpp | #include "SMenu.h"
#include "SPlaying.h"
#include <cmath>
namespace State {
SMenu::SMenu(Core::Game* game)
{
this->game = game;
}
SMenu::~SMenu()
{
}
void SMenu::initialize()
{
m_background.setTexture(game->resourceManager().textures["background"]);
m_planet.setTexture(game->resourceManager().textures... |
a30b97f60959c2a268a0e60cb9b1d40308dce205 | 1d01fe2f2b30ef3403ef18dde3d7dcfee105dd27 | /include/dmc/Traits/OpTrait.h | 1e3ff59116f3797493069ca7e968cd8971a1996c | [] | no_license | Joejiong/declarative-mlir-compiler | 84527354d30becc40d60ff80055fc177c2ec3adb | 949777aff86955f4963866dbaf71b91e776783f8 | refs/heads/master | 2023-01-01T21:36:37.666805 | 2020-09-22T15:05:52 | 2020-09-22T15:05:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,122 | h | OpTrait.h | #pragma once
#include "Kinds.h"
#include <mlir/IR/DialectImplementation.h>
namespace dmc {
namespace detail {
struct OpTraitStorage;
struct OpTraitsStorage;
} // end namespace detail
/// An attribute representing a parameterized op trait.
class OpTraitAttr : public mlir::Attribute::AttrBase<
Op... |
83165431c27be17c67128a4eae328c0a73ed2106 | add2f1602fae1568f7f4678bd7b30f1ce4d89512 | /CArmAngleCalCuLate/widget.h | 421bb921134a56101e73cd7872f2a02d304e131d | [] | no_license | dongdong-2009/SCR | 73cff44dac1bf1f05a1e03bda48824ba7b4d3b88 | e753d7777ba09d666d93d6dd1f21b37970c495eb | refs/heads/master | 2021-09-15T16:07:28.134927 | 2018-05-09T13:03:00 | 2018-05-09T13:03:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,831 | h | widget.h | #ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QMouseEvent>
#include <QButtonGroup>
#include <QPixmap>
#include <QLabel>
#include <QPainter>
#include "Eigen/Eigen"
#define labelOpenPictureWidth 600;
#define labelOpenPictureHeight 600;
using namespace Eigen;
namespace Ui {
class CArmWidget;
}
class ... |
17ae901f3c3d4ed6f2bd827aed8781c9ae883214 | f880de93b44b8017291114a9f01dadffcc330f1a | /section 2/color.cpp | 897eb1b0f563910a196b64bbf05013d8f9fc7337 | [] | no_license | shouvikbj/CPP-Practice | ca7efcfb1110bb3842f81664cf3192b097bad267 | fa96446af1a15ae2a2cdaf428e09fa2496aefe45 | refs/heads/master | 2022-07-27T21:44:15.232102 | 2020-05-19T20:55:35 | 2020-05-19T20:55:35 | 261,964,846 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | color.cpp | #include <iostream>
#include <string>
using namespace std;
int main(){
// int number = 0;
// cout << "Enter a number : ";
// cin >> number;
// printf("Your Id is : %d \n", (number + 3));
string my_color = "";
cout << "Enter your favourite color : ";
getline(cin, my_color);
cout << "Hey... |
cae5a221503a50180181b4bef2f34438ebaeb601 | 59f22160c25102edbae50773c5df601a98a74a04 | /HackerRank/Strange Counter.cpp | 6c88c801122b55126567547b3eebf1f293dc2b97 | [] | no_license | Brehm1983/Coding-Tree | 1826f5701548223683735566122c7aa192f2eefa | c3a5c6ec98e9f06786fdc440563b333d662d2e94 | refs/heads/master | 2023-07-06T14:37:42.174220 | 2020-10-22T17:12:37 | 2020-10-22T17:12:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 166 | cpp | Strange Counter.cpp | long strangeCounter(long t) {
long k=3,time=3;
while(t>time){
k=k+k;
time+=k;
}
time-=k;
time++;
return k-(t-time);
} |
9198689ec20308f40315a15d9d46d8e62c55af8a | 95a625a24d4a65f2ebbde12e94e1f69c5703f3a2 | /src/include/libbsp/reader.hh | 809970f6a6799e37c7f32c2eec389c66ea2c0e15 | [] | no_license | cagelight/libbsp | edcbff86a2f2c9c0f4b2d8c509dcc5ac5d1398b1 | b3c4cd91961a0cb66d40a593e53401f0a5c6b015 | refs/heads/master | 2023-08-08T00:05:16.659313 | 2023-07-23T03:53:42 | 2023-07-23T03:53:42 | 255,738,929 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,898 | hh | reader.hh | #pragma once
#include "file_fmt.hh"
#include <meadow/istring.hh>
#include <map>
#include <memory>
#include <span>
#include <string_view>
#include <vector>
namespace BSP {
struct Reader {
inline Reader() = default;
inline Reader(uint8_t const * base) { rebase(base); }
inline Reader(Reader const &) = defa... |
662aead88c5858087203751ff83bdb433b79651e | 751d443522f0b7733a2291625168a6405765c8d0 | /1712822_DictionaryGUI_source/DictionarySource/GeneratedFiles/qrc__DictionaryGUI.cpp | f2e460d8b23e7e0cc1cf7d12311fc083e1f29b2b | [
"MIT"
] | permissive | nktoan/ConsoleApplication-OxfordDictionary | 114ffe0b8eb8b15c520e828d79b2c40e0d9d558a | f0d78fa7e59e9f3abf54d1f1ba6c73a584f72848 | refs/heads/master | 2022-09-17T09:56:46.575332 | 2020-05-29T03:44:08 | 2020-05-29T03:44:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409,590 | cpp | qrc__DictionaryGUI.cpp | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.11.2
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static const unsi... |
21276f2abb8017ecd9d446e131f01e2fae930e73 | 8d7b033e6c0e84458d8c72e09c48a3b15f3f0834 | /src/eval/TypedNumber.hpp | 67a7324c060e08f4b6c1f6aadd4c06e8aada415a | [] | no_license | r0mai/tungsten | 4cdc9384da707839028bd97a5024b2575cb7438a | 7bb3df1938068de75624afac34d6447a7c0cc5e7 | refs/heads/master | 2021-01-10T18:43:46.823494 | 2015-06-17T15:03:24 | 2015-06-17T15:03:24 | 15,174,385 | 4 | 0 | null | 2015-05-04T22:31:52 | 2013-12-13T21:20:02 | C++ | UTF-8 | C++ | false | false | 1,506 | hpp | TypedNumber.hpp |
#ifndef EVAL_TYPEDNUMBER_HPP_
#define EVAL_TYPEDNUMBER_HPP_
#include "ast/Node.hpp"
#include <functional>
#include <type_traits>
#include <boost/variant.hpp>
namespace tungsten { namespace eval {
/**
* Simplifies operations with numeric operations when Rational is needed
* by default, but the result should be R... |
e87b5a242e10a666214e1ca7b8d6ff02f86e5830 | 54c9f08987155cf8b3ce9fc5324c39e78484ad52 | /C_Origin/Intermediate/Build/Win64/UE4Editor/Inc/C_Origin/C_OriginGameModeBase.generated.h | a8d9a812d120a3491d8e1be978fb163a2d027df4 | [] | no_license | HibikiGameWrok/C_Origin | ea665327c59adb90b38953b73f8ea88f47b7178c | 43c3bb86d0846e634035c1eed455cfcdb6785c9a | refs/heads/master | 2020-08-27T06:30:22.305505 | 2019-10-24T10:57:34 | 2019-10-24T10:57:34 | 217,270,623 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,373 | h | C_OriginGameModeBase.generated.h | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==============================================================... |
7402051d2613798db0847783dc0fa972304366e8 | e1bb0099dc91ca5875ba154a9b507705f383637e | /Ghost.cpp | 000c3ef3378cc9f7e253f502f1bb550830337cc5 | [] | no_license | matheusdfs/TheENDGame | 97361765d9f58f8931eb74e3e406e4c6bcaea1a1 | d4c47874630244e8c105e2aeec1ecb3094e1aa90 | refs/heads/main | 2023-04-18T03:31:45.886296 | 2021-05-04T00:56:17 | 2021-05-04T00:56:17 | 364,100,328 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,261 | cpp | Ghost.cpp | #include "Ghost.h"
Ghost::Ghost()
{
pl1 = NULL;
attacking = false;
attackdamage = false;
death = false;
cd = 0;
count = 0;
id = 1;
health = 10;
}
Ghost::Ghost(int posX, int posY, Player* pl)
{
pl1 = pl;
image.loadFromFile("Textures/Ghost.png");
image.createMaskFromColor(sf::Color::White);... |
e06b0972a4dd89eeb8b9f628ad37da3c7e34e02e | fbae30d07e119a6a90e0c0e47dddc7f4a5478eaf | /1086就不告诉你.cpp | cc1840793fab293f110408a7171db84129b4a315 | [] | no_license | KobeNorris/PTA-Practicing | 4d5783267741ae0455558ee589026b3a516807ba | 784b616336e9dccaa8472a91c9a0673b43f0b99a | refs/heads/master | 2022-09-18T20:26:29.895725 | 2020-06-05T22:32:35 | 2020-06-05T22:32:35 | 269,662,932 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 539 | cpp | 1086就不告诉你.cpp | #include <iostream>
#include <cstdio>
using namespace std;
int main(void)
{
int a, b, c, count = 0, num;
scanf("%d %d", &a, &b);
c = a * b;
while(c != 0)
{
c = c / 10;
count++;
}
c = a * b;
if(c == 0)
{
printf("0\n");
return 0;
}
int list[count];
for(int t = count - 1; t >= 0; t--)
{
num = c;
... |
180661ed625a1a821245c2d80e5d2a976c4686e7 | 44baa637240ff4636ffdbea2ce7ada6160b045d3 | /lab_8_Mul_Add_Reordering_and_Fusion/src/NvDlaAddMulRelu.h | 1fc97909c019c838ad53bd60f36d5d166243ab9e | [] | no_license | eopXD/onnc-tutorial | adb073da8c53610488a05068494733d05dd9b747 | af27b015f65339aa07c40d27ffb32fedee7ea692 | refs/heads/master | 2022-12-11T03:46:36.276220 | 2020-09-02T05:25:40 | 2020-09-02T06:40:52 | 292,464,075 | 0 | 0 | null | 2020-09-03T04:16:00 | 2020-09-03T04:15:59 | null | UTF-8 | C++ | false | false | 1,401 | h | NvDlaAddMulRelu.h | //===- NvDlaAddMulRelu.h ------------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===--------------------------------------------------------------------------===//
#ifndef TARGET_NVDLA_NVDLA_ADD_MUL_RELU_H
#define TARGET_NVDL... |
0ab8f63b59af585fabe81b17b7ad23220558bcbb | fbde40f9aea8b39e3f930a75090410d757e155cf | /Trunk/src/hearthstone-world/AchievementInterface.h | 2db313e540c151782fdaf7fd84c9f6aec4af5d68 | [] | no_license | Refuge89/Hearthstone | 666f127bad8188c5019a6351ee66d00c8c00e872 | e0127593dbedc7835856adc766b2f7a7d604b84f | refs/heads/master | 2021-01-18T01:52:48.029328 | 2013-01-26T19:32:56 | 2013-01-26T19:32:56 | 38,065,553 | 0 | 1 | null | 2015-06-25T18:08:33 | 2015-06-25T18:08:33 | null | UTF-8 | C++ | false | false | 9,788 | h | AchievementInterface.h | /***
* Demonstrike Core
*/
#pragma once
struct AchievementData
{
uint32 id;
bool completed;
uint32 date;
uint32 groupid;
uint32 num_criterias;
uint32 counter[32];
uint32 completionTimeLast;
bool m_isDirty;
};
enum AchievementFlags
{
ACHIEVEMENT_FLAG_COUNTER = 0x01,
ACHIEVEMENT_FLAG_LEVELUP = 0x04,
A... |
c1533ea16246b559020b5dbbd5a3f4f8c7282b17 | 84a7f7ff628a3bb6d318795a4c801df6ad2a9048 | /Project3/celestialbody.cpp | ce35c956bbd3f03983f44aa1559d0d9a8787983c | [] | no_license | emilblix/FYS-4150 | 8190d435d830452c30d6f5a3bc3ae547aa4b479e | 5f9ee79426f6d034ead0d4d7283ccf6ec544bb23 | refs/heads/master | 2021-01-20T12:38:10.590619 | 2014-12-08T07:32:02 | 2014-12-08T07:32:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 518 | cpp | celestialbody.cpp | #include <celestialbody.h>
#include <vec3.h>
CelestialBody::CelestialBody(double x, double y, double vx, double vy, double mass_, double radius_,char const *name_)
{
position = vec3(x,y,0);
velocity = vec3(vx,vy,0);
mass = mass_;
name = name_;
radius = radius_;
}
CelestialBody::Cel... |
1c157a4eb413b2dae7f7ada03d6f2c759a42057e | 9b1ad74d4aeddffe57df71b550fa1075eb980808 | /note.cpp | 53584ebf75fde08a9a96c74028fd146e040643d3 | [] | no_license | TwinIsland-CCC/RhythmGame_Project_1_00 | 85f99d9167af08b5ecc29cdd47d881c7becceed6 | cbf2e06e89fe53e8a4a190fdefac2822ed073b1c | refs/heads/main | 2023-04-24T02:31:35.979145 | 2021-05-09T17:07:49 | 2021-05-09T17:07:49 | 359,840,823 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 542 | cpp | note.cpp | #include "note.h"
Note::Note(QWidget *parent) : QWidget(parent)
{
}
Note::Note(QWidget *parent,double start_time,char typ,QString img)
: QWidget(parent),note_start_time(start_time),type(typ)
{
if(typ == 'Z' || typ == 'V')
{
move(320,0);
image = ":/key/key/key1.png";
}
else if(typ ==... |
7f37e111076f34c8cba7617ac2a1aa0abb4c4410 | 07e96e089b2e08f54d70ca6f3cdf557e51801589 | /clientui.cpp | 1bb59b17576c86af2994005642cb4b269face7c2 | [
"Apache-2.0"
] | permissive | AnuragNtl/GUI-based-GroupDownloader | 4e3209ab2e41073ad05c5730f4b534d170bbd069 | 760f41a33c05dabf4fead51d86070e1428616644 | refs/heads/master | 2020-04-04T13:10:54.588452 | 2018-11-11T14:45:14 | 2018-11-11T14:45:14 | 155,951,914 | 0 | 1 | null | 2018-11-11T14:45:15 | 2018-11-03T05:03:20 | C++ | UTF-8 | C++ | false | false | 481 | cpp | clientui.cpp | #include "clientui.h"
#include "ui_clientui.h"
ClientUI::ClientUI(QWidget *parent) :
QDialog(parent),
ui(new Ui::ClientUI)
{
ui->setupUi(this);
connect(ui->pushButton,&QPushButton :: clicked,this,&ClientUI :: onStart);
}
ClientUI::~ClientUI()
{
delete ui;
}
void ClientUI :: onStart(... |
66fbc03f76c357cead4ac6b165a6b8102dccd3c3 | 84897b6a25f876b21246c2c7e1404c9c411be987 | /src/src/crypto/Zip/RCZipCipher.cpp | 994dcab39ea2395ab7f12e5b2be09065c7d716a7 | [] | no_license | drivestudy/HaoZip | 07718a53e38bc5893477575ddf3fccfb3b18c5fd | 9e0564b4a11870224543357004653b798fd625e0 | refs/heads/master | 2021-07-24T06:33:24.651453 | 2017-11-05T01:19:18 | 2017-11-05T01:19:18 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,230 | cpp | RCZipCipher.cpp | /********************************************************************************
* 版权所有(C)2008,2009,2010,好压软件工作室,保留所有权利。 *
********************************************************************************
* 作者 : HaoZip *
* 版本 : 1.... |
a0f53a2b26f6e973d40e1a5572ba7fd76fee0597 | c380f6a18466c644726e3fb101534cf3b23adf60 | /CSCI2270Assignment6Part2.cpp | 13659b6dafb889b9024760168c10b24bcd0fe471 | [] | no_license | Travis024/Binary-Search-Trees-and-Linked-Lists | 74344b1c7eabf84dca44af746c51a9185cbbd622 | bbcb6818cd2f9c40eb54db06112464a3cdf361e8 | refs/heads/master | 2020-03-07T11:51:33.076000 | 2018-03-30T19:35:01 | 2018-03-30T19:35:01 | 127,465,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,797 | cpp | CSCI2270Assignment6Part2.cpp | #include <iostream>
#include <string>
#include "MovieTree.hpp"
using namespace std;
//The default MovieTree constructor
MovieTree::MovieTree(){
root = NULL;
};
//The deconstructor; it frees up all memory by deleting the tree.
MovieTree::~MovieTree(){
//Delete every node using post order transv... |
976deb383b7d754175f2eb4ca12eabfe2100cd65 | b94f5ad44a859e10d3d2798b6e07e267e6f06ed0 | /Programming Assignments/PA8/PA8/TransactionNode.h | 5c72f56f850c9987812a81ad151e7c66866bfc12 | [] | no_license | StuartLBrown/CPTS-122-Projects | b7caa0fa56637de374bcadc6b631c0a7661d6423 | f65fe1412067f8ae3fb293b03e8a8ab92a2169a0 | refs/heads/master | 2020-04-16T20:53:44.815727 | 2020-02-29T21:34:40 | 2020-02-29T21:34:40 | 165,909,304 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 536 | h | TransactionNode.h | #include "Node.h"
#pragma once
using std::cout;
using std::endl;
class TransactionNode : public Node {
private:
int units;
public:
//overloaded destructor
~TransactionNode(){
delete left, right;
}
//default constructor
TransactionNode(string _data = "", int _units = 0) : Node(_data){
units = _units;
}
//ge... |
2a2ed03b35e61c986196f7b5a7d10ae7aad5d7c3 | afa318a6d6579ce6af17a9169d8f6fa62ac1e614 | /digger/h/monster.cpp | 098dc143265bc6584db2fcb82cb9c6f5bf50dd9a | [
"GPL-2.0-only",
"Unlicense"
] | permissive | reenigne/reenigne | 21181e2de26f52d6ac602dfcdcc413ba1480e36e | ed57af09bf1641a475961bdd0ee033b7fa2d4572 | refs/heads/master | 2023-07-20T08:53:33.506823 | 2023-07-18T12:45:30 | 2023-07-18T12:45:30 | 284,729 | 128 | 24 | Unlicense | 2020-09-27T17:22:02 | 2009-08-22T01:04:37 | C++ | UTF-8 | C++ | false | false | 13,086 | cpp | monster.cpp | /* Digger Remastered
Copyright (c) Andrew Jenner 1998-2004 */
#include <stdlib.h>
#include "def.h"
#include "monster.h"
#include "main.h"
#include "sprite.h"
#include "digger.h"
#include "drawing.h"
#include "bags.h"
#include "sound.h"
#include "scores.h"
#include "record.h"
struct monster
{
Sint4 x,y,h,v,xr,yr,... |
b84d5c17f908796ae34c25d6a91363e478bc7761 | 65dfad863abf7727339ae243c87e4e34003a9420 | /Programming-II/player.cpp | 40e21a252581608f8627701415c23057e454e471 | [] | no_license | zhangke8/MSU-CS | 81cb542713a6ed102fd0a6a56ea0e9c203f9e10b | c6110a2e025bf5dba8e61e5e3e83e6fc2755dc2a | refs/heads/master | 2020-12-30T09:58:56.835952 | 2019-04-02T18:16:22 | 2019-04-02T18:16:22 | 99,250,960 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,575 | cpp | player.cpp | ///*
// * File: player.cpp
// * Author: zhangke8
// *
// * Created on March 27, 2014, 7:41 PM
// */
#include "player.h"
using std::pair;
#include<iostream>
using std::cout;
using std::endl;
#include <vector>
using std::vector;
#include<algorithm>
using std::copy;
using std::transform;
#include<iterator>
using std::... |
d9b103b0b138c770abcdf361aa6cf7b82755799b | 0233f37b124b87dfefc23f8cb817b97b676921aa | /ai_player.cpp | f4362b2ba8e7dff75a59155bcd45441ea5459efe | [] | no_license | patterson-tom/Tic-Tac-Toe-AI | a98f1100b808b04bcf3c81ff5a26b08d837b88fd | d83459704e830db72aeb5133287340b521ed033a | refs/heads/master | 2022-12-18T16:11:55.749270 | 2020-09-20T13:23:21 | 2020-09-20T13:23:21 | 294,797,144 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,866 | cpp | ai_player.cpp | #include "ai_player.h"
#include <limits.h>
#include <algorithm>
#include <iostream>
AIPlayer::AIPlayer(char symbol) {
this->symbol = symbol;
}
int AIPlayer::negamax(Board *board, int alpha, int beta, char player, int depth) {
std::vector<Move> validMoves = getValidMoves(board->getBoard(), player);
if (v... |
bc5ae04ffc3a045d13d308379ba3455ed411bde7 | a6ff63ad418ba4bbbdba2cf2381bf1cd64d1a3a7 | /LuoGu/p1801.cpp | dbd57c23096c3c0615d301ecb986389d7847117b | [] | no_license | Igronemyk/OI | 537eb08f9837d0d83166e10b768cf193520ba069 | eb706fd767ce5a3195681d2140f9e747dab5f12e | refs/heads/master | 2021-09-16T15:37:20.246679 | 2018-06-22T03:08:55 | 2018-06-22T03:08:55 | 103,484,287 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,156 | cpp | p1801.cpp | #include <cstdio>
#include <set>
#include <cstring>
using namespace std;
template<typename T>
T read() {
T result = 0;int f = 1;char c = getchar();
while(c > '9' || c < '0') {if(c == '-') f *= -1;c = getchar();}
while(c <= '9' && c >= '0') {result = result * 10 + c -'0';c = getchar();}
return result *... |
e42a6d925a6d6625dfae3a9b46fc8372c5ba464d | 0d0c3515eac7c7c0a27f3b9af835a6a5f7f912d2 | /Cap-Man/TeleportSystem.h | 88e4b4af19d1e258318e3ab4af88e930f286a120 | [] | no_license | nihk/Cap-Man | 00e9bec38b5a279179511a2a5089d99d7b14e8f6 | 0e644df3c36e23f0d03d723294beb92079c9e9ee | refs/heads/master | 2021-11-24T18:03:21.033877 | 2021-11-06T20:00:30 | 2021-11-06T20:00:30 | 100,821,276 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409 | h | TeleportSystem.h | #pragma once
#include "System.h"
#include "Constants.h"
#include "Point.h"
class Rect;
class TeleportSystem
: public System {
public:
TeleportSystem(Manager& manager);
~TeleportSystem();
void updateEntity(float delta, int entity) override;
private:
static void emerge(::Rect& rect /* out */, co... |
1797a99fff3acf801b3d76fa6c0875e060212b6e | 6ffc2bf383406e5adb0f05fc93a988047c5a5fc4 | /butano/include/bn_affine_bg_map_item.h | 94580070526d253cd619cdbba620aaa6ef3e056f | [
"Zlib"
] | permissive | aliakseikalosha/butano | c472d4e15765badba01a659b549429128a62ff55 | f08f7ae779813377b79b425fba23fbe848373fb6 | refs/heads/master | 2023-04-12T20:41:58.464019 | 2021-04-19T02:55:07 | 2021-04-19T02:55:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,683 | h | bn_affine_bg_map_item.h | /*
* Copyright (c) 2020-2021 Gustavo Valiente gustavo.valiente@protonmail.com
* zlib License, see LICENSE file.
*/
#ifndef BN_AFFINE_BG_MAP_ITEM_H
#define BN_AFFINE_BG_MAP_ITEM_H
/**
* @file
* bn::affine_bg_map_item header file.
*
* @ingroup affine_bg
* @ingroup bg_map
* @ingroup tool
*/
#include "bn_size.... |
4180429d57769fc37adc3fd34c78e1e26238c10e | 09072267801a1dd95d41ebeb79c9ee0026fca245 | /CS162 Project 4/CS162 Project 4/From Flip/vampire.cpp | e2eebe04cff9ba9f1eacd3fe751e23de79544537 | [] | no_license | buteaut/CS162 | 2c1457feccdc2c667a1dc73f32f92ea244787d91 | 4b55518ba9b2f87f7e3633261d98bd659fb38966 | refs/heads/master | 2021-03-24T12:25:10.255380 | 2018-03-29T03:17:35 | 2018-03-29T03:17:35 | 78,910,609 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,280 | cpp | vampire.cpp | /*********************************************************************************
** Program name: Project 3 (Vampire Implementation File)
** Author: Thomas Buteau
** Date: 2-19-17
** Description: Vampire implementation file. Attacks with 1D12, defends with 1D6,
** has 1 armor and 18 health. Has "charm" ability wh... |
fb2b4b9944d6fe7dbf5b53e853b006dce268adcb | 7e84f6faec578329cf659a68ba6044fd86d5cf5b | /couples/ofxTimeline/ofxTLVideoDepthAlignmentScrubber.cpp | b7c5db1ef10d8c18c9c5421c21fd677da18f43c4 | [] | no_license | DaneBettis/ofxRGBDepth | 6e3a5d51e9be1847176375f0d62cd73ac61aa8a6 | 07b47311126927a1b78f62306f876b1139c6e2d8 | refs/heads/master | 2020-12-25T11:05:46.264302 | 2012-07-02T18:31:50 | 2012-07-02T18:31:50 | 4,942,093 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,642 | cpp | ofxTLVideoDepthAlignmentScrubber.cpp | /*
* ofxTLVideoDepthAlignmentScrubber.cpp
* RGBDPostAlign
*
* Created by James George on 11/16/11.
* Copyright 2011 __MyCompanyName__. All rights reserved.
*
*/
#include "ofxTLVideoDepthAlignmentScrubber.h"
#include "ofxTimeline.h"
ofxTLVideoDepthAlignmentScrubber::ofxTLVideoDepthAlignmentScrubber(){
vide... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.