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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5445f99ecc25ab3d189d353ae6953b96197a52a0 | 028d6009f3beceba80316daa84b628496a210f8d | /uidesigner/com.nokia.sdt.referenceprojects.test/data2/UIQ_MultiPage_3_0/reference/src/UIQ_MultiPage_3_0MultiPageView.cpp | 2a0ae29a7769571c049af5f73ffbd6f5ce122d1c | [] | no_license | JamesLinus/oss.FCL.sftools.dev.ide.carbidecpp | fa50cafa69d3e317abf0db0f4e3e557150fd88b3 | 4420f338bc4e522c563f8899d81201857236a66a | refs/heads/master | 2020-12-30T16:45:28.474973 | 2010-10-20T16:19:31 | 2010-10-20T16:19:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,032 | cpp | UIQ_MultiPage_3_0MultiPageView.cpp | // [[[ begin generated region: do not modify [Generated System Includes]
#include <QikCommand.h>
#include <UIQ_MultiPage_3_0.rsg>
#include <eikenv.h>
#include <uikon.hrh>
#include <eikcmbut.h>
#include <eikbutb.h>
#include <guldef.h>
#include <gulbordr.h>
#include <eikchlst.h>
#include <QikColorSelector.h>
#... |
d00529455256d8e4b9b38af5f053830b82bf1466 | 439e969aeb8376ae9446c13b672df62d99695da7 | /Program/SnowDrop/Classes/Data/Animation/Animation.h | 4b817876966fff1910fca25985a10806abb802e0 | [] | no_license | KitchenKnife/SDP | 86c55c35f86c4875cf09c233df4d84299d2f8b56 | 9d4e4559feec1ab79d6f5e4207d3aa0e643a648d | refs/heads/master | 2021-01-12T09:07:13.914330 | 2016-12-19T16:30:43 | 2016-12-19T16:30:43 | 76,766,191 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 7,589 | h | Animation.h | /*
* Animation.h
*
* 2016/11/07 Osumi
*
*/
#pragma once
//========================
// 追加のインクルードはここから
//========================
#include"cocos2d.h"
#include"Constants.h"
//=====================================
// チップデータクラス
// 画像の1部分の位置とサイズのデータ
//=====================================
typedef cocos2d::Rect CChip;
/... |
6da91fc100a7fec964c38a44e6bf8d3761637a90 | 176c793689a660f81f59856b38344f61d2aa0a8c | /Hephaestus/Util.cpp | e235e3270963c30ca049dc15b4d277a549558957 | [] | no_license | alexpardes/hephaestus | 5ca35f730761521f172d7c7c9dfa94c174d8b639 | 44ee2e9c778320ce01f135c2487704dc255e99e6 | refs/heads/master | 2020-04-28T19:43:19.579939 | 2015-01-05T17:19:19 | 2015-01-05T17:19:19 | 15,566,697 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,565 | cpp | Util.cpp | #include "stdafx.h"
#include "Util.h"
const Vector2i Util::kLeft = Vector2i(-1, 0);
const Vector2i Util::kUp = Vector2i(0, -1);
const Vector2i Util::kRight = Vector2i(1, 0);
const Vector2i Util::kDown = Vector2i(0, 1);
Vector2f Util::MakeUnitVector(float angle) {
return Vector2f(std::cosf(angle), std::sinf(angle));... |
69faf2ea658b89338e1e3b627d275c655b3ab4dd | a467196e3f4171a43f3bca2d3f56ab06f2b7ecd2 | /Tile.h | 003276a85761dd897ab95bb77d9204d09283a502 | [] | no_license | rustykatz/Reversi | 7266e1b1ebb9807396a13537b6f44d2bdcbaa330 | 7de9fd03b3f74fa4085a113ea113aacfc394c4cf | refs/heads/master | 2020-04-30T13:24:20.939289 | 2019-03-21T02:53:04 | 2019-03-21T02:53:04 | 176,856,769 | 0 | 0 | null | 2019-03-21T02:44:46 | 2019-03-21T02:44:46 | null | UTF-8 | C++ | false | false | 263 | h | Tile.h | //
// Created by faraz098 on 2017-03-24.
//
#ifndef ASS5_TILE_H
#define ASS5_TILE_H
#include <iostream>
#include <assert.h>
#include <vector>
enum class Tile : char {
dirt='.', player ='@' , ai = 'O', possible = 'x'
};
#endif //ASS5_TILE_H
|
a8be566555ea430451b13d551dcd11fd9822573f | d0ddab934fc275ec7fa6f7129f57b74d1f2c036a | /bubblesort.cpp | f8aeb5a6233fb25d098e3542c08eba9e11578dd9 | [] | no_license | aayushashres/Process-Hierarchy---An-Example-of-Sorting-through-Inter-Process-Communication | 626ff2a2b646ef9ed6a4d67df5ec5e0f4e146d93 | 95ae0cc697b22ec6b334b3bdb639f9a5a133afb7 | refs/heads/main | 2023-05-16T05:59:38.615724 | 2021-05-30T16:51:42 | 2021-05-30T16:51:42 | 372,266,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,185 | cpp | bubblesort.cpp | #include "bubblesort.h"
#include <cstdio>
#include <string>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <fstream>
#include <unistd.h>
// reference https://www.geeksforgeeks.org/bubble-sort/
//returns sorted array
node** bubble_sort(node** sorterarray, int n, char order[1024], int attribute_numb... |
5f59100bb79ca6308d33154f974c26b2fdf794ba | cdf71efdabef48e1c18124bfc2c2dc7551a58741 | /taparser.h | 24865f44bdeea74685de908fcb85621c89288c48 | [] | no_license | Shenmue-Mods/shencon | 468ffe498563e8d1cef64763b590293649ff12eb | 4f059ca0ffe6ef10ab5d78429f030d0d5f7d8a55 | refs/heads/master | 2021-04-12T08:02:00.235854 | 2014-12-10T17:39:50 | 2014-12-10T17:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,645 | h | taparser.h | #ifndef TAPARSER_H
#define TAPARSER_H
#include "buffer.h"
class taparser {
public:
taparser(buffer *buf, const unsigned long ofs);
~taparser();
void dump();
enum {ISP_TSP_INSTR = 0, PARAM_CTRL = 1, TEXTURE_CTRL = 2, TSP_INSTR = 3};
private:
unsigned long globalParam[8];
unsigned long paraType;
... |
b0d23bc8c8d55952c529f1d4147846391cbce43b | 74f03dde193ef3fee81235a30fa483258466ce69 | /maximum_gap.cpp | 0b76ceb5ae1840da50068c0fd36efeffc6672780 | [] | no_license | teddy-hoo/leetcode | d3cf20c474c59681396f6ab793bb6b9ef13e0585 | 196c790aa2c77b0d5cb7c157add741949aebd26c | refs/heads/master | 2016-09-03T07:19:36.901033 | 2015-02-05T08:11:31 | 2015-02-05T08:11:31 | 17,579,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,588 | cpp | maximum_gap.cpp | // Bucket
struct Bucket {
int min;
int max;
Bucket() : min(-1), max(-1) {}
};
class Solution {
private:
void getMinAndMax(vector<int> num, int &min, int &max){
int len = num.size();
if(len <= 0){
return;
}
min = num[0];
max = num[0];
for(int i = 1; i < len; i++){
max = max < num[i] ... |
7ae141e6e76e9f2ec801cb1e8a4394399f76d388 | b4aff6c2d727ddc57ce02b28e0e1c0ea8366da2d | /MergeKSortedList.cpp | fc14e7f27dd1b1dcc8882b2569e414ec3d48bb84 | [] | no_license | superchee/algorithmscpp | efbc21980bdcf6c3cf6ce103d0fc5152d5a872aa | 2f8d1f7eb3adbac5474f45c065cd3ed726d3688c | refs/heads/master | 2020-07-28T16:03:39.215014 | 2020-03-22T04:37:19 | 2020-03-22T04:37:19 | 209,459,037 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,493 | cpp | MergeKSortedList.cpp | #include <cstddef>
#include <vector>
using namespace std;
/**
* Definition for singly-linked list.
* */
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
class Solution {
ListNode* mergeTwoLists(ListNode* l1, ListNode* l2) {
if(!l1 || !l... |
e35c40adfade0393a1500793e68d6e2cddba5c6a | 031e4d530346aab54ba32e5ec0aeb8ab1a783be1 | /Report 2/C41/0.01/p | b5a99722830ab4d4416a56654a947b2b546adfbf | [] | no_license | shyam97/modelling1 | 781ddcf6c16b6bd8f528b0f58bd19953f86716d9 | 68bd2ebc7960111b86bbff04af96003229618af7 | refs/heads/master | 2022-11-21T07:03:25.868074 | 2020-07-20T16:20:09 | 2020-07-20T16:20:09 | 262,878,324 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 683,163 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
03a0236bb9ab0240c597bb458f4f3b2b7cd5296f | f5dc059a4311bc542af480aa8e8784965d78c6e7 | /casa/Arrays/ArrayIter.tcc | 27096eba5197f18e442a0e0c03f75ba7948425c4 | [] | no_license | astro-informatics/casacore-1.7.0_patched | ec166dc4a13a34ed433dd799393e407d077a8599 | 8a7cbf4aa79937fba132cf36fea98f448cc230ea | refs/heads/master | 2021-01-17T05:26:35.733411 | 2015-03-24T11:08:55 | 2015-03-24T11:08:55 | 32,793,738 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,009 | tcc | ArrayIter.tcc | //# ArrayIter.cc: Iterate an Array cursor through another Array
//# Copyright (C) 1993,1994,1995,1997,1999,2003
//# Associated Universities, Inc. Washington DC, USA.
//#
//# This library is free software; you can redistribute it and/or modify it
//# under the terms of the GNU Library General Public License as published... |
2321c04a53943375819a4557176c6e58671cf767 | 5e5328ce68149e570df2981181470dd6dda4ea70 | /example/pthread/threadtest3.cpp | 3e66363028fc8742dfe3f07c833c55abbb4d0022 | [] | no_license | 0jakeschmidt/mutual-exclusion | 0783463b8cf44fd486f09adfd3b1430f4e5fe925 | f5b18f5db8536874bac565e7645056554d5ce253 | refs/heads/master | 2020-08-16T01:18:51.956714 | 2020-01-15T23:49:28 | 2020-01-15T23:49:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,605 | cpp | threadtest3.cpp | #include <cstdio>
#include <iostream>
#include <pthread.h>
#include <cstdlib>
#include <unistd.h>
using namespace std;
//function the first thread uses.
void * firstthread(void * noparam) {
int i;
//testing forks with threads, need to wait a couple of seconds here.
sleep(2);
for (i =0; i<10; i++) {
c... |
f86ade12fdb61bf66d3f97c444c30b0a5fb9a067 | 214dbcc732e0f6a49336164c793bd4af4754a6f7 | /Algorithmics/Problems from various contests/desen.cpp | c8e932a3fe510c8cebd97213ad92aeb85cac44fd | [] | no_license | IrinaMBejan/Personal-work-contests | f878c25507a8bfdab3f7af8d55b780d7632efecb | 4ab2841244a55d074d25e721aefa56431e508c43 | refs/heads/master | 2021-01-20T08:24:47.492233 | 2017-05-03T12:22:26 | 2017-05-03T12:22:26 | 90,142,452 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,069 | cpp | desen.cpp | #include <cstdio>
#define NMAX 1002
using namespace std;
FILE* fin=fopen("desen1.in","r");
FILE* fout=fopen("desen1.out","w");
int a[NMAX][NMAX],b[NMAX][NMAX],n,m;
int verif(int i, int j);
int main()
{
int i,j;
fscanf(fin,"%d %d",&n,&m);
for(i=1; i<=n; i++)
for(j=1; j<=m; j++)
fscanf(fi... |
0748a5d130a08104a5d716eaf5d463fde6c28cb5 | a4d051ef6b92519bcdbd6eeca4c8123d8613ffc7 | /src/Options.h | f1b7f125a5a718d3164517993430bd5e712bbad0 | [
"BSD-2-Clause"
] | permissive | LouisGallagher/Logger2 | 696afd77be4741db729ab260b8112472a1e67f81 | d0a8bdced4606410e1ca4d27d9a842d026c2df44 | refs/heads/master | 2020-05-29T08:50:09.320132 | 2017-02-01T16:04:37 | 2017-02-01T16:04:37 | 69,006,273 | 0 | 0 | null | 2016-09-23T08:39:42 | 2016-09-23T08:39:42 | null | UTF-8 | C++ | false | false | 4,696 | h | Options.h | #include <iostream>
#include <string>
#include <cstdlib>
#include <sys/types.h>
#include <unistd.h>
#include <boost/program_options.hpp>
#ifndef OPTIONS_H_
#define OPTIONS_H_
namespace po = boost::program_options;
class Options
{
public:
static const Options& get(int argc = 0, char ** argv = 0)
{
static con... |
430268bff9496f411ae387382ec1d562c206be7e | 3bea3e76d8db77cab9ee80f8cc9bf9bd46276407 | /src/test/storage/encoded_column_test.cpp | fe027bf1f796bc64fb25b45d8273eec4d028d68d | [
"MIT"
] | permissive | marcelja/hyrise | 0ee799c2c0bd0571f33580ce66236ee93cb44801 | f141344e140f7392ab8e42ae6538875c4c2e6b8b | refs/heads/master | 2018-07-14T12:02:49.432911 | 2018-02-19T17:48:28 | 2018-02-19T17:48:28 | 114,154,675 | 0 | 0 | MIT | 2018-06-01T13:37:15 | 2017-12-13T18:23:46 | C++ | UTF-8 | C++ | false | false | 7,197 | cpp | encoded_column_test.cpp | #include <boost/hana/at_key.hpp>
#include <memory>
#include <random>
#include "base_test.hpp"
#include "gtest/gtest.h"
#include "storage/column_encoding_utils.hpp"
#include "storage/create_iterable_from_column.hpp"
#include "storage/encoding_type.hpp"
#include "storage/resolve_encoded_column_type.hpp"
#include "stor... |
0ac76b1c55e957ed0d2632b3f499f62bf846962a | 82b09878c9a5063d54d8783c732971ae2941ab2c | /soapServer.cpp | 964052691f5cc23b709c0daad7c06efce162a445 | [] | no_license | funnywwh/gsoap-onvif | 0ab8456f16cadefcdb1408257f576bbc99c1c89f | 0e64731cc40368096560de6f379a76946c0c4b88 | refs/heads/master | 2023-07-08T19:26:28.986707 | 2021-08-11T08:10:09 | 2021-08-11T08:10:09 | 394,912,924 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 793,544 | cpp | soapServer.cpp | /* soapServer.cpp
Generated by gSOAP 2.8.17r from onvif.h
Copyright(C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved.
The generated code is released under one of the following licenses:
GPL or Genivia's license for commercial use.
This program is released under the GPL with the additional exemptio... |
92dad7bc284b08d318379cf6306dea34ad5fc624 | bc997f47b4cffef395f0ce85d72f113ceb1466e6 | /Baltic/baltic21_swaps.cpp | 4d55dcce373d2d3c55fe5440b2d4ea7abfd27e44 | [
"LicenseRef-scancode-public-domain"
] | permissive | koosaga/olympiad | 1f069dd480004c9df033b73d87004b765d77d622 | fcb87b58dc8b5715b3ae2fac788bd1b7cac9bffe | refs/heads/master | 2023-09-01T07:37:45.168803 | 2023-08-31T14:18:03 | 2023-08-31T14:18:03 | 45,691,895 | 246 | 49 | null | 2020-10-20T16:52:45 | 2015-11-06T16:01:57 | C++ | UTF-8 | C++ | false | false | 1,045 | cpp | baltic21_swaps.cpp | #include <bits/stdc++.h>
#include "swaps.h"
using namespace std;
using lint = long long;
using llf = long double;
using pi = pair<int, int>;
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(), (v).end()
void solve(int n, int _){
vector<int> ord(n);
iota(all(ord), 1);
while(n != (n & -n)) n += (n & -n);
for... |
bb9d0e9910b109b5ec0ae064618f7e0eea63db69 | e4604ca852749a029a0eee0fbf7ba153d6bc6994 | /src/server/poolserver/Database/ServerDatabaseEnv.cpp | 9cfa4b96c433f6f1a99ede8a069dfb03092ce1cd | [] | no_license | hrobeers/poolserver | c1f3eec144433ef6fa21f79a1c9fbcd379208fc9 | b140e8da98ce9091251443dbe0ed59b2500633e0 | refs/heads/master | 2021-01-13T10:02:31.315292 | 2014-10-29T16:59:25 | 2014-10-29T16:59:25 | 72,150,365 | 0 | 3 | null | 2016-10-27T21:39:01 | 2016-10-27T21:39:00 | null | UTF-8 | C++ | false | false | 73 | cpp | ServerDatabaseEnv.cpp | #include "ServerDatabaseEnv.h"
ServerDatabaseWorkerPoolMySQL sDatabase;
|
79f3787867a0907d5b61a42cc2bd3ad981ab6c4d | f594004a4ec1635668f5ba26b09bd15901a5a31e | /Prepar3D v4 SDK 4.3.29.25520/PDK/HmdSample/HmdSample.cpp | 59a99c0f24c8139a6caed20298cb64c6c20e29f5 | [] | no_license | agsdzj/P3D-V6.0 | a8dc2c744677927a16b36d1613c0e8a1fb929097 | 64db5e3270ea66eaa80022542496f9f28c4bf334 | refs/heads/master | 2023-03-16T19:59:29.641064 | 2019-06-30T07:28:54 | 2019-06-30T07:28:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,351 | cpp | HmdSample.cpp | ///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) Lockheed Martin Corporation 2017
// All rights reserved
//
// HmdSample.cpp
//
///////////////////////////////////////////////////////////////////////////////
#include "HmdSample.h"
#include "WorldDrawWindowCallback.h"
... |
69faf50a1b601ac46326cff98fe00250513b6108 | 0b79f0a0ddadee7ef45755e8d74693e2cc609c52 | /main/src/jumpnrun/mover/effect/PrologFujitsubo.cpp | 40f93cbe895c4c479366d226a94937a35ffc3345 | [
"MIT"
] | permissive | wonderhorn/mkfj | ec98fdf82766d376d99f55659b413ad423608a90 | 18d2dd290811662d87abefe2fe2e338ba9caf8a5 | refs/heads/master | 2022-11-24T18:34:23.665540 | 2020-07-26T10:58:31 | 2020-07-26T10:58:31 | 276,013,519 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,327 | cpp | PrologFujitsubo.cpp | #include"jumpnrun/mover/effect/Effect.h"
#include"jumpnrun/mover/character/Character.h"
#include"jumpnrun/GRAPHICS.h"
#include"jumpnrun/system/Parmanent.h"
using namespace jnr;
using namespace gfw;
using namespace gmtr;
using std::min;
using std::max;
RegisterMoverClass(PrologFujitsubo);
RegisterMoverClass(PrologHand)... |
918120466ef9951931f0b757992afdd6f222145f | 06d39b42c0df00dbc334a7e41c6178303ebd2633 | /Explanatory Dictionary/multimap.h | b1ee83f4bd0e59bd1a885b08e77065fa2f16200c | [] | no_license | mszab0310/Cpp | a93bfecd314ac4bf4a6659e7f71072d6fe91b10d | 572d8065fd98793a032344ff7870dbcf849f1c73 | refs/heads/master | 2023-05-06T04:46:34.369008 | 2021-05-25T10:32:00 | 2021-05-25T10:32:00 | 309,356,434 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,153 | h | multimap.h | #pragma once
#include <iostream>
#include <vector>
#include <functional>
#include "node.h"
#define HASHSIZE 1000
//templated class for the creation of a list based multimap
template <typename K, typename V>
class Multimap
{
//standard library hashing function
std::hash<K> hashFunction;
std::vector<Node<K, V>*> ele... |
0f670ec0ad06e178351862cb6984326e59a94d17 | 2cdf872caafaf0d8acefdba40a7663f122910f9a | /libraries/Mitov/Mitov_SchmittTrigger.h | e5b8fb7a19fe7f9d41f3e38e82479ef70a703574 | [
"MIT"
] | permissive | AlexRogalskiy/Duino | 39557285df4871b260740250e37cbc62897e32e6 | bef05838fe73970dea856779957fd3a3e406f295 | refs/heads/master | 2021-06-12T04:26:12.202107 | 2019-11-12T10:19:33 | 2019-11-12T10:19:33 | 164,288,034 | 0 | 0 | MIT | 2021-04-17T19:30:16 | 2019-01-06T08:12:52 | C++ | UTF-8 | C++ | false | false | 2,528 | h | Mitov_SchmittTrigger.h | ////////////////////////////////////////////////////////////////////////////////
// //
// This software is supplied under the terms of a license agreement or //
// nondisclosure agreement with Mitov Software and may not be copied ... |
65dc85853bc13b67a5a62c93997efb6725d23314 | 501656109d2e92441deb4cfc5ed0dccb50208935 | /ACM-master/vijos/noip/P1754.cpp | 63c12504e3695a295fa3c8e5f211a643f81eee61 | [] | no_license | ailyanlu1/Acm-icpc-6 | 32cb3c7c5760dd6fd2f1d641e4dd2b130e317fed | b4c86f65aeb8ce4f4949046a4d3ce9c390034f22 | refs/heads/master | 2020-03-23T13:55:38.122388 | 2014-10-01T03:11:58 | 2014-10-01T03:11:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,293 | cpp | P1754.cpp | #include <cstdio>
#include <iostream>
#include <vector>
#include <queue>
#include <memory.h>
using namespace std;
const int maxn = 1000;
int G[maxn][maxn];
int D[maxn][maxn]={0};
int price[maxn];
int n,m;
int main()
{
freopen("in.txt","r",stdin);
cin>>n>>m;
for(int i=1;i<=n;i++)
{
... |
c5f4cb28f9a00bf6761e7dbe25ad95d62e2022f6 | f20e965e19b749e84281cb35baea6787f815f777 | /Online/Online/ROMon/ROMon/Alarm.h | 60d1112b7736633244366eff99ae83fbbf6e0432 | [] | no_license | marromlam/lhcb-software | f677abc9c6a27aa82a9b68c062eab587e6883906 | f3a80ecab090d9ec1b33e12b987d3d743884dc24 | refs/heads/master | 2020-12-23T15:26:01.606128 | 2016-04-08T15:48:59 | 2016-04-08T15:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,657 | h | Alarm.h | // $Id: Alarm.h,v 1.2 2009-06-02 16:21:23 frankb Exp $
//====================================================================
// ROMon
//--------------------------------------------------------------------
//
// Package : ROMon
//
// Description: Base class for monitors for readout monitoring
// in... |
1864a6306d78bb30bbd8f838a33f4ae858b865d9 | 6e6fa8fd9524b2b0d78dabbf7ceddc6805c673a7 | /disTiler/tiramisu/blur_tir_serial.cpp | 4893b6a89e97055c6b3a06dcb93f8fc94854963f | [] | no_license | WillianJunior/doc-segToolsRev | 25a5234917b7d4c5fca20b910d7da4e6b153d4ef | afad0a53ce024c12d86c0fdc97d11e63993576eb | refs/heads/master | 2020-04-13T20:53:32.708999 | 2019-03-15T01:58:57 | 2019-03-15T01:58:57 | 163,442,347 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,897 | cpp | blur_tir_serial.cpp | #include <Halide.h>
#include "../include/tiramisu/core.h"
#include "blur_tir.h"
// using namespace tiramisu;
int main(int argc, char **argv) {
tiramisu::init();
// -------------------------------------------------------
// Layer I
// -------------------------------------------------------
tira... |
d922b599c9d81b067c5069d63abae3afe470c01e | d62701bf63f1562b17a8dc1ecd0865d98bd5b36b | /win32Consl/win32Consl.cpp | e75d81ebfc32533d79c302cf01922e47256db30e | [] | no_license | weskitt/WindowsFormsApp1 | 47cce314d27d8e7cac955233a378fe1d12617460 | 9a1f43e3322e9f517085ccc4ba19d1bf3d395fa5 | refs/heads/master | 2021-01-20T15:03:01.645416 | 2017-09-22T04:22:41 | 2017-09-22T04:22:41 | 90,705,792 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,341 | cpp | win32Consl.cpp | // win32Consl.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
HRESULT hr;
int main()
{
ios::sync_with_stdio(false);
//FILE *fp;
//fopen_s(&fp, "C://Users/Akitt/Music/record.pcm", "wb");
//CoInitialize(NULL);
//Hearing hearing;
//hearing.HearingInit();
//auto thr = bind(&Hearing::Record, hearing);
//threa... |
0b127c9eb877413a06a98652511d8b71d0b7ce43 | 483367cabdddcab520aa303a3eebb75cdf5dd948 | /Megacpu/IOAccess.h | 3baafa1d4f0a499f8ba5f42db9bb4d370dd20e17 | [] | no_license | Tetramatrix/megacpu | 5607299f8be18b5c2aae52e694fcada722a7974d | b717350bd2b6fe4c50b2bf8629121047a4cc2caf | refs/heads/master | 2021-01-19T23:32:20.822452 | 2019-09-13T08:15:05 | 2019-09-13T08:15:05 | 88,987,947 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | h | IOAccess.h | #ifndef __IO_ACCESS_H__
#define __IO_ACCESS_H__
#include <windows.h>
class IOAccess {
private:
HANDLE hDevice;
HANDLE hEvent;
DWORD dwBytesReturned;
public:
IOAccess();
~IOAccess();
bool openDriver();
void closeDriver();
void queryEvent();
void clearEvent();
void s... |
02ce2b8f8544be52a279aeaaeef60606bd8dbe65 | cfaa050719d91c047e9c8b4c993312308d4b81e2 | /1_arduino/Control_Cable_b_v1_3/Control_Cable_b_v1_3.ino | cf8da71257cdadac07952fed7e45a19e2592bbf5 | [] | no_license | daleal87/TFM | 92e4c250f0352139ca18ba928e3598378b909456 | 3514403799c99f379f135dbee811a77bbc94723c | refs/heads/master | 2020-03-11T18:47:23.338897 | 2018-09-10T13:25:00 | 2018-09-10T13:25:00 | 130,188,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,050 | ino | Control_Cable_b_v1_3.ino |
#include <ros.h>
#include <std_msgs/Int32.h>
#include <Wire.h>
#include <MD25IIC.h>
// MD25IIC METHODS:
// ----------------------- ------------------------
// | MOTOR | | BOARD |
// -------------------------- |-----------------------|
// 1 | setMotor1Speed(byte) | | getAddress(... |
58641904b3a108ec6912543f2369afd9978c6dc6 | 21ec2b51b9bd539f733c27f6d7ef014ff65adbaa | /debug/normalized_test.cpp | c16ac2d4af7b75d20d53827ee8ba0378489c5b76 | [] | no_license | DavidNexuss/Graphs | bd74eb568eb6b0d05ec2f68cb45c0cb231e552fc | e2c2c7dad5a6942fe74109c2ddb3b80c0f2ddd37 | refs/heads/master | 2021-05-24T08:22:27.506344 | 2020-04-10T06:32:09 | 2020-04-10T06:32:09 | 253,468,674 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 195 | cpp | normalized_test.cpp | #include "graph.h"
#include <iostream>
using namespace std;
int main()
{
int n; cin >> n;
AdjacencyMatrix mat(n);
mat.read_matrix();
cout << n << endl;
mat.write_matrix();
}
|
c04416fdbed491e98e20a15e52bbc3b6d21a1dd4 | 45e2f4505be1329d65741ddcf9bd7b6d8cac63af | /LiquidPhysics/include/SPHSolver.h | 7ce05e0a275f836ee00766c6df992a15a3467833 | [
"MIT"
] | permissive | GitDaroth/LiquidSimulation | 6d637e7ad85bf7f11d48fd50154cee77ddcfd3c2 | 4aafa808c2a7ccdc46579958b851c9296c8ef347 | refs/heads/master | 2023-01-21T23:55:28.762747 | 2020-12-02T22:42:12 | 2020-12-02T22:42:12 | 146,124,644 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,818 | h | SPHSolver.h | #pragma once
#include "PhysicSolver.h"
#include "Particles/SPHParticle.h"
#include "Kernels/DefaultKernel.h"
#include "Kernels/PressureKernel.h"
#include "Kernels/ViscosityKernel.h"
#include "SPHSpatialGrid.h"
#include <vector>
#include <algorithm>
#include <unordered_map>
#include "Collision/StaticCollisionBox.h"
#in... |
5d325c5b9323766f84df35c344cda804f5d8d2a4 | d3a8236edd0c198c493779ed9f98b95db8cf6288 | /latihan1/latihn1.cpp | 3b713d016d5427848d488d5152e535698451cf1d | [] | no_license | Amirul29/Praktikum5 | 39237a0a324d4b9606bb91f6d34156b24d2a087f | f9dbf24e70c5e80a75693b072e54373dc2533714 | refs/heads/master | 2020-04-06T17:15:35.309852 | 2018-11-17T08:19:27 | 2018-11-17T08:19:27 | 157,651,995 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 277 | cpp | latihn1.cpp | #include <iostream>
using namespace std;
void Luaspersegipanjang()
{
int panjang,lebar;
cout << "Masukkan panjang: "; cin >> panjang;
cout << "Masukkan lebar: "; cin >> lebar;
cout<<"Luas persegi: " << panjang*lebar;
}
int main()
{
Luaspersegipanjang();
return 0;
}
|
d8bff4da535514dc4297056c58ac6bb0199050a6 | 722f5d4c724647ce8c653e535008bbf4e422ad91 | /tests/linalg/linalg_mul2_x_p_p_test.h | 0e5e7a734960083e31aa80e0f65c5ca3cf8a5de7 | [
"BSL-1.0"
] | permissive | pavel-po/libtensor | b1509318dfffe8e3a90a40ba35bc890df71b825f | ec25485a73563403dfa75c3f7190e26ef1df7726 | refs/heads/master | 2021-01-25T09:09:03.310857 | 2017-03-22T21:19:22 | 2017-03-22T21:19:22 | 93,784,643 | 0 | 0 | null | 2017-06-08T19:29:26 | 2017-06-08T19:29:26 | null | UTF-8 | C++ | false | false | 514 | h | linalg_mul2_x_p_p_test.h | #ifndef LIBTENSOR_LINALG_MUL2_X_P_P_TEST_H
#define LIBTENSOR_LINALG_MUL2_X_P_P_TEST_H
#include "linalg_test_base.h"
namespace libtensor {
/** \brief Tests the libtensor::linalg class (mul2_x_p_p)
\ingroup libtensor_tests_linalg
**/
class linalg_mul2_x_p_p_test : public linalg_test_base {
public:
virtual v... |
ae994fc308687f52bd6ae1756f6b05a21c84b6ee | bf4feb2b43219f79290c449f842adac2dfe114be | /src/feature_tracker.cpp | ff94f5d6f795f1f1864a959dea9e8b100b27fac0 | [] | no_license | EpicDuckPotato/stereo_vo | 071c26014c29721449e4997b377ca5b933bfadee | b05863eca54a4acc918c047b5ebfabbc156a5909 | refs/heads/master | 2023-04-10T15:36:56.462819 | 2021-04-02T13:38:05 | 2021-04-02T13:38:05 | 258,333,174 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,129 | cpp | feature_tracker.cpp | #include "feature_tracker.hpp"
void FeatureTracker::init(const cv::Mat &image, const vector<cv::Point2f> &features,
const vector<size_t> &ids) {
feature_ids = ids;
feature_set = features;
size_t num_features = ids.size();
initial_features.clear();
for (size_t i = 0; i < num_feature... |
b0f95b4b41a59d8fc17181a0c1f73b218a5301ac | 14c53b7459cd19460caf17a9d8dfc8876c456ed2 | /Trabalho/T2/EX2/Organizador.cpp | d1f6d1bcf6ae0c0e404c9ae4c8ae17691ed3dfde | [] | no_license | nilzonalves/UFVExerciciosC- | 4a3d3c3d16cbe9dc255c4467c6f20b8d40f10ad1 | 4c9ad427588e09092d0d67ad1d472fb8eb93441d | refs/heads/master | 2020-05-17T21:37:12.607303 | 2019-04-29T01:14:42 | 2019-04-29T01:14:42 | 183,977,690 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,279 | cpp | Organizador.cpp | #include <stdio.h>
#include <iostream>
#include <string>
#include <iomanip>
#include "Organizador.h"
using namespace std;
Organizador::Organizador(){
setHora(0);
setSalario(0);
setDia(0);
}
Organizador::~Organizador(){
}
Organizador::Organizador(Organizador& obj) : Pessoa(obj){
this->salario = obj.salario;
thi... |
2b95ecbdcce821cae8184aa1f825b730fbfef01e | 41bf2e9fb47fc35a1ed1a3050b5729b2ee26e880 | /codeforces/1566/C.cpp | 142f5b39fa50cad4f6a7ced9be401e30ada66e8a | [] | no_license | ankur-kayal/Contests | 460bc35c5848a89873172afabf61de17678fc4d1 | 86521b002f6e35d86a19a6d0c9e8468fae535293 | refs/heads/main | 2023-08-13T11:35:51.353783 | 2021-09-12T14:45:00 | 2021-09-18T14:17:07 | 339,523,983 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,309 | cpp | C.cpp | #include <bits/stdc++.h>
using namespace std;
#define nl '\n'
void run_cases() {
int n;
cin >> n;
vector<string> bi(2);
cin >> bi[0] >> bi[1];
vector<bool> used_cols(n);
int mex = 0;
for(int i = 0; i < n; i++) {
set<int> uni;
for(int j = 0; j < 2; j++) {
uni.... |
eacfa1046b4b56013f0a2d109679e87f7a80ad83 | 1533226cbfa89b03ba179ee71c0963e4310aa868 | /HDOJ/hdu/hdu/2201.cpp | 98de7b3194f58cdcf2f46359d53f7b9f24010a24 | [] | no_license | yyzs/OnlineJudgeCode | 516934f5d6e7d19fc642902ac8cda6c1bbce10a6 | 358a9ed25478b34725160b825c3fb2e48bd955e2 | refs/heads/master | 2020-06-13T12:43:19.127449 | 2016-12-03T13:42:28 | 2016-12-03T13:42:28 | 75,379,452 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 133 | cpp | 2201.cpp | #include "stdio.h"
int main()
{
int n,m;
while(scanf("%d%d",&n,&m)==2)
printf("%.2lf\n",1.0/(double)n);
return 0;
}
|
308314b9f898de24a8a122b50552b507b5bedd34 | fe00c3ef72bf37d5641051341c43cf9659a7bdca | /LocalSearch/Commmon.h | 9aea1a834e384c2dc93c5a289fd402b6514904df | [] | no_license | zhiwuba/AlgorithmApp | bf14d179a4f937756d41fec3324c3d030103a4aa | 728e881a01a42d8f9b2675a105aba2dbac094113 | refs/heads/master | 2021-01-01T16:05:23.221204 | 2015-08-23T03:36:44 | 2015-08-23T03:36:44 | 19,451,576 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 320 | h | Commmon.h | #pragma once
#include <string>
#include "FileMD5.h"
class Commmon
{
public:
Commmon(void);
~Commmon(void);
static int get_word_hash_id(const char* word);
static int get_doc_hash_id(std::string& filepath);
static int get_file_md5(const char* filepath, char* md5 );
static bool is_alpha_char(char c);
};
|
63e6920c5d12c2f731870b77184dfdc6ae3665d9 | b9b300e189110a8effdea48fb26956fdabc534ea | /GameProject3D_01/player.h | 51acabc5e9faadf3e3c3959f7ad631dd9f13e828 | [] | no_license | iyotaA/GameProject3D_01 | f1f7032a984e81c51d8c0b6fe869564423a4be0e | 9d352f82cd887b996d4a19cabf39a6f02aff8cb5 | refs/heads/master | 2021-07-09T15:49:20.890128 | 2020-09-26T23:58:06 | 2020-09-26T23:58:06 | 221,925,517 | 0 | 0 | null | 2020-09-26T23:58:07 | 2019-11-15T13:04:35 | C++ | SHIFT_JIS | C++ | false | false | 2,959 | h | player.h | #ifndef PLAYER_H_
#define PLAYER_H_
#include "state_player.h"
class CCamera;
class CSkinModel;
class CNumber;
class CImage;
class CItem;
class CPlayer : public CGameObject
{
public:
void Init();
void Uninit();
void Update();
void Draw();
void DrawGUI();
const Vector3 GetAt() { return m_Position; }
std::vect... |
8cebf75a74df58c5888f1e8051e12a52dc896e03 | 56162fb08e9e69b96966dcba347108ccf909c288 | /src/texturedrigidwidgetrenderer.cpp | b71a143183164209c64b175dc8f8d8d437cf77a4 | [] | no_license | dpkay/fingerglass | 90ae3b180bb224b86310812e5e61f3c0a6f5c73d | e15c79faa7d86583ffbb494012bf624905a6b337 | refs/heads/master | 2021-01-01T16:19:32.566858 | 2012-07-28T16:03:52 | 2012-07-28T16:03:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,759 | cpp | texturedrigidwidgetrenderer.cpp | #include "texturedrigidwidgetrenderer.h"
#include "widgetattachment.h"
#include "ambiguousselectionattachment.h"
#include "variousattachments.h"
// --------------------------------------------------------
TexturedRigidWidgetRenderer::TexturedRigidWidgetRenderer(
RigidWidgetController * controller,
QString texture_na... |
f86683e965fdefe9321a61ec92e0ee834c60f784 | 684f52fc30cd6f2df3845d300e4f6be3cd6ec656 | /include/amis/OWBFGSBCMAPLauncherItem.h | 11fc84687ff4f52ac78281b629aef0964bb3cc17 | [
"Artistic-1.0-Perl"
] | permissive | mynlp/amis | 3eaae1ea5c9a15499db86a07222aae3dd6424c5a | c2b42390c747b2f7d9107fea2f620b86d5368c23 | refs/heads/master | 2021-06-08T19:37:53.704812 | 2016-11-11T07:24:17 | 2016-11-11T07:24:17 | 73,453,728 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,532 | h | OWBFGSBCMAPLauncherItem.h | //////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2006, Yusuke Miyao
// You may distribute under the terms of the Artistic License.
//
// Amis - A maximum entropy estimator
//
// Author: Yusuke Miyao (yusuke@is.s.u-tokyo.ac.jp)
// $Id: OWBFGSBCMAPLauncherItem.h,v 1.1.1.1 20... |
cc624dc3dd72b5a35992eb49b790ed6ba4ec3f87 | 1208cea905a7f12638bd5421aac61d4a558eb4ac | /game11/modellist.h | 892ba7b4a02eab70426e0a526e23a36e96c7bc6f | [] | no_license | weimingtom/game11 | b28c554444341a6632ec1a03cea6aacbe67f77d7 | f1e2e778baa471b910d044a7afc95fa9e89678d8 | refs/heads/master | 2020-04-09T11:42:16.728038 | 2014-01-02T02:24:59 | 2014-01-02T02:24:59 | 30,965,279 | 1 | 0 | null | 2015-02-18T12:48:35 | 2015-02-18T12:48:35 | null | UTF-8 | C++ | false | false | 1,198 | h | modellist.h | #ifndef INCLUDED_MODELLIST_H
#define INCLUDED_MODELLIST_H
#include "npdraw.h"
#include "nml.h"
#include "npsound.h"
#include "npobject.h"
//class Sprite;
//class Object;
/////////////////////////////////////////////////////
class ModelList {
class System {
class Number{
MyTexture mTexture;
Model* mMode... |
cb08023a5cc00637cc026981662aa727972b0f3f | 019b21bf99e09eff035bcd4ff7445542acc43bf1 | /src/server/HTTPRequestHandler.h | 45c512d142c7f78183a5b6dbc0fc1486f83f90d9 | [
"BSD-3-Clause"
] | permissive | SRCH2/srch2-ngn | 252c4f10277fef0018a6c21e7c82a873a303c3a8 | 925f36971aa6a8b31cdc59f7992790169e97ee00 | refs/heads/master | 2021-01-10T15:32:51.186548 | 2016-05-07T00:19:56 | 2016-05-07T00:19:56 | 49,683,870 | 14 | 7 | null | 2016-05-07T00:19:57 | 2016-01-15T00:12:16 | C++ | UTF-8 | C++ | false | false | 6,636 | h | HTTPRequestHandler.h | /*
* Copyright (c) 2016, SRCH2
* 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 ... |
28fea7d90d32f366421dbe9d49164286c8477d16 | 81c74937fd4586b264b9ff3242be616292d06bdf | /trunk/src/c++/include/freq/Results.h | 71dc894958d096f87a72b8d237dc7ba8c5974327 | [] | no_license | rahulkr007/sageCore | be877ff6bb2ee5825e5cc9b9d71e03ac32f4e29f | b1b19b95d80637b48fca789a09a8de16cdaad3ab | refs/heads/master | 2021-06-01T12:41:41.374258 | 2016-09-02T19:14:02 | 2016-09-02T19:14:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,629 | h | Results.h | #ifndef FREQ_RESULTS
#define FREQ_RESULTS
#include "maxfunapi/maxfunapi.h"
#include "output/Output.h"
#include "freq/Configuration.h"
#include "freq/Sample.h"
namespace SAGE {
namespace FREQ {
struct AlleleFrequencies
{
AlleleFrequencies() { founder_freqs.clear(); all_freqs.clear(); }
AlleleFrequencies(const ... |
bd3ce07c549c0cde26c32652caa304506b35c926 | 81aba100de7e89c550c8c0b3ed5252ade24eb230 | /include/parser.h | a68c1710180a002b91893c34e4af6d3afc12bbda | [] | no_license | JohnHonkanen/heuro | 3a285a3996782e5faa2d097f46a4c35bfc329f33 | 636aa0bf4c18ecfe46ef7001dcc25cb263e31649 | refs/heads/master | 2021-05-03T16:37:10.833131 | 2018-02-22T19:37:47 | 2018-02-22T19:37:47 | 120,439,794 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 652 | h | parser.h | /*
Name: John Honkanen, Lars Palm
Student ID: B00291253, B00294272
We declare that the following code was produced by John Honkanen (B00291253), Lars Palm (B00294272) as a group assignment for the Computer Game AI module and that this is our own work.
We are aware of the penalties incurred by submitting in full or ... |
abfe80e6d0588a1d79afb162e261452212a1704c | 7524106d9776f24311be4e6050cedd2a10e31282 | /algorithms/kmp/attempt3.cpp | 1699544092ac7b009a1f65279bf4409938de91f3 | [] | no_license | Exr0nProjects/learn_cpp | f0d0ab1fd26adaea18d711c3cce16d63e0b2a7dc | c0fcb9783fa4ce76701fe234599bc13876cc4083 | refs/heads/master | 2023-04-11T08:19:42.923015 | 2021-01-27T02:41:35 | 2021-01-27T02:41:35 | 180,021,931 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 502 | cpp | attempt3.cpp | // 3 oct 2020 23:33
#include <cstdio>
#include <cstring>
const int MX = 10000;
int P, k[MX];
char p[MX];
void kmp()
{
k[0] = -1;
for (int i=1; i<P; ++i)
{
for (k[i]=k[i-1]; ~k[i] && p[k[i]+1] != p[i];
k[i] = k[k[i]]);
if (p[k[i]+1] == p[i]) ++k[i]; // you must have this e... |
911e15ef762beb23fde1e93589e491c0cf4caf51 | 8cc3498e311d15c9a4394aaa341ef489b482dbe6 | /compiler/extensions/cpp/runtime/src/zserio/UniquePtr.h | 61d65cb3b3414068a16d91ffeab75c8b02d12ccb | [
"BSD-3-Clause"
] | permissive | ndsev/zserio | 3e55c064f72e86219a6da297f116d3dbb565a9a9 | c540c4a97fee4e08bfc6669a2cec0d2b8282d8f6 | refs/heads/master | 2023-08-24T14:56:10.750155 | 2023-08-11T19:36:54 | 2023-08-11T19:36:54 | 141,550,444 | 113 | 23 | BSD-3-Clause | 2023-08-30T11:14:47 | 2018-07-19T08:44:23 | Java | UTF-8 | C++ | false | false | 3,350 | h | UniquePtr.h | #ifndef ZSERIO_UNIQUE_PTR_H_INC
#define ZSERIO_UNIQUE_PTR_H_INC
#include <memory>
#include <type_traits>
#include "zserio/RebindAlloc.h"
#include "zserio/AllocatorHolder.h"
namespace zserio
{
namespace detail
{
/**
* Custom deleter to ensure proper deallocation of the unique_ptr.
*/
template <class ALLOC_T>
struc... |
71ed6a0284397f691dd58693a161a1b67d026cd2 | 7acbb1c1941bd6edae0a4217eb5d3513929324c0 | /GLibrary-CPP/sources/GError.h | 12e9dc401953b40c68dd81132f96f2ac3f298931 | [] | no_license | hungconcon/geofreylibrary | a5bfc96e0602298b5a7b53d4afe7395a993498f1 | 3abf3e1c31a245a79fa26b4bcf2e6e86fa258e4d | refs/heads/master | 2021-01-10T10:11:51.535513 | 2009-11-30T15:29:34 | 2009-11-30T15:29:34 | 46,771,895 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 165 | h | GError.h | #ifndef __GERROR_H__
# define __GERROR_H__
#include "GOStream.h"
#include "GExport.h"
class GEXPORTED GError : public GOStream
{
public:
};
#endif
|
2f771b57d96aacb04f08e34b1d03d4a70083a594 | 9081c6fef3c953dd0fe8c01d147397158666706c | /7_4/7_4.cpp | 06e5b601ab948c86a9b99bc4c6baeeff4ae73948 | [] | no_license | Desomafo/laboratory7 | c3ab3777bd9c8380ae2b1708c283ec6f9e0d0bca | 13caf999601b1ee7517a0ab3af6f988470aca16b | refs/heads/master | 2021-03-18T23:00:57.503683 | 2020-03-14T17:53:11 | 2020-03-14T17:53:11 | 247,108,191 | 0 | 0 | null | 2020-03-13T15:51:54 | 2020-03-13T15:51:53 | null | UTF-8 | C++ | false | false | 2,151 | cpp | 7_4.cpp | #include <iostream>
#include <cmath>
using namespace std;
double x[10] = {1.0986, 1.3863, 1.6094, 1.7918, 1.9459, 2.0794, 2.1972, 2.3026, 2.3979, 2.4849};
double y[10] = {13.811, 16.850, 19.176, 21.060, 22.642, 24.005, 25.203, 26.270, 27.233, 28.109};
double K, tau0;
double F, F1, F2, F3, Fa, Fb;
int Nexp = 10, Nit ... |
f715f3d6dd929bb4402d40ca2956814c9af42baa | 95f374301236308e4c3820e0deb5b02a1baa7f91 | /rymobile/frameworks/runtime-src/Classes/game/dntgGame/DntgSimpleTools.h | 661cc124174e4742e9db54ce58bc5393820bec32 | [] | no_license | aywlcn/510Game | 53f02b1a07818ad3661f1b2c0c8d52791b355b05 | 653490b2e0246fb7f37864a164d65236ab05a410 | refs/heads/master | 2020-07-04T05:04:27.937878 | 2019-08-13T23:19:36 | 2019-08-13T23:19:36 | 202,165,219 | 0 | 0 | null | 2019-08-13T14:45:44 | 2019-08-13T14:45:43 | null | UTF-8 | C++ | false | false | 1,413 | h | DntgSimpleTools.h | #ifndef _DNTG_SIMPLETOOLS_H_
#define _DNTG_SIMPLETOOLS_H_
#include "cocos2d.h"
#include "ui/CocosGUI.h"
#include "tools/manager/Move_Point_Manager.h"
USING_NS_CC;
using namespace ui;
namespace Dntg
{
///< 闪电类型
enum LINETYPE
{
PINK = 0,
BLUE,
YELLOW,
ALLTYPE
};
///< 简单的工具类
class SimpleTools
{
... |
ca510eb7ac7667460953d86046adcf29f5deddf3 | bf9b2a5b68b6f97af49fd8542a99a95542404557 | /src/dependencies/datk/src/optimization/discFunctions/SetFunctions.h | 6f620470051608681e73725e0473abbe0718c74f | [] | no_license | viv92/video-analytics | 7d6f2b4bddac7d981fe9cbbf8aae9cdba11d8e62 | c0d1b431ceb42c6734460ae4933f7df96f0666f9 | refs/heads/master | 2020-07-10T12:34:41.344895 | 2019-08-25T07:56:58 | 2019-08-25T07:56:58 | 204,263,798 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,822 | h | SetFunctions.h | /*
* Abstract base class header for implementing (not necessarily submodular) set functions. This implements all oracle functions of general set functions.
All set functions are defined on a ground set V = [n] = {1, 2, ..., n}. If the groundSet is not [n],
one will need to use a transformation function, which tra... |
07b4f628ce0327993b1d5a9f2419b50fa3ee8846 | cbbef8580d0571c84ab4ce5a559e0fb9d660f485 | /data/submissions/528844.cpp | 260843c1dd49216a275b250bfa035367373bba80 | [] | no_license | yuantailing/tsinsen | efb4c0297e096b8fa64a3390d6bde3cbaaddb217 | a92759dc965ed58a33536e8c6faaa19b0931afbc | refs/heads/main | 2023-07-08T11:44:32.294152 | 2021-08-09T19:34:07 | 2021-08-09T19:34:07 | 394,414,206 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 458 | cpp | 528844.cpp | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main()
{
int n,m;
cin>>n>>m;
int i,j;
for (i=1;i<=n;++i)
{
for (j=i;j>=1&&j>i-m;--j)
printf("%c",'A'-1+j);
if (i>=m){
cout<<endl;
continue;
... |
8f3b6d55304a20c4b2d0463c492c1be662bb26d9 | 80beaa4cfefec9abeaad6438e6c8cc611c8a90a8 | /SPIM.cpp | defe24a5739318d9c6554e51a98306bad715655b | [] | no_license | SJTUStevenDu/MIPS-Simulator | 4b5f92023d174578689ff761a4027a3bc74c6018 | acd12456e35e93985e5affc21622370606efa4a2 | refs/heads/master | 2020-03-16T11:07:38.152613 | 2018-05-08T17:37:58 | 2018-05-08T17:37:58 | 132,643,229 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,403 | cpp | SPIM.cpp | #include <iostream>
#include <map>
#include <queue>
#include <cmath>
#include <vector>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <fstream>
#include "Class.hpp"
#include "Decode.hpp"
#include "String_option.hpp"
#include "Instruction_Save.hpp"
using namespace std;
void Flow... |
0bca81733eb88e61ad66babeb8e100f804af0cdc | f91cbe3b643edff7d17a3790a5919d9ca0157d07 | /Code/GameSDK/GameDll/VehicleMovementHelicopterArcade.h | 0b328e040c0b906ab99ab1cf4cbf19b3e96a4d95 | [] | no_license | salilkanetkar/AI-Playing-Games | 5b66b166fc6c84853410bf37961b14933fa20509 | 7dd6965678cbeebb572ab924812acb9ceccabcf3 | refs/heads/master | 2021-01-21T18:46:11.320518 | 2016-09-15T16:14:51 | 2016-09-15T16:14:51 | 68,309,388 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,986 | h | VehicleMovementHelicopterArcade.h | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license belo... |
5368988f9d649e3ff034b579ca4aad19d076f841 | a9f09e79341992b4db9c2d7b24a5542e826d21f5 | /main.hh | 0942716c335bcc20b7d4217a6c34eedbe4f22395 | [] | no_license | kellywang95/p2p | 658a80c6da1ee530e28ab410ddccea30da1d5f21 | 670c35c29cc6b973fb0e3838238435aed0266278 | refs/heads/master | 2020-04-05T06:26:44.789154 | 2018-11-16T05:30:30 | 2018-11-16T05:30:30 | 156,638,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,650 | hh | main.hh | #ifndef P2PAPP_MAIN_HH
#define P2PAPP_MAIN_HH
#include <QDialog>
#include <QTextEdit>
#include <QLineEdit>
#include <QUdpSocket>
#include <QMutex>
#include <QTimer>
class NetSocket : public QUdpSocket
{
Q_OBJECT
public:
NetSocket(QObject *parent);
~NetSocket();
// Bind this socket to a P2Papp-specific defau... |
9d209898cd13fe40165291d428f8ae844113bc07 | 0bd7519a593628e060bc8f229fc5f0b9840d4526 | /example/7.timerone/Etimerone.cpp | 8c613c560b9ef8e6cd962498a4a1fb26b3c5b0b4 | [] | no_license | Hletian/ebox_stm32 | d2eedced11074212e46b04799ef3ec6dca756664 | 54369b0beb7b21696c5a688618c07d500c8dbfb4 | refs/heads/master | 2021-01-18T15:20:13.739044 | 2016-02-26T05:22:38 | 2016-02-26T05:22:38 | 52,923,667 | 1 | 0 | null | 2016-03-02T01:31:51 | 2016-03-02T01:31:50 | null | UTF-8 | C++ | false | false | 963 | cpp | Etimerone.cpp | /*
file : *.cpp
author : shentq
version: V1.0
date : 2015/7/5
Copyright 2015 shentq. All Rights Reserved.
*/
//STM32 RUN IN eBox
#include "ebox.h"
uint32_t x;
uint32_t xx;
uint8_t flag1;
uint8_t flag;
TIM timer2(TIM2);
TIMERONE t1;
void t2it()
{
xx++;
if(xx == 1000)
{
flag = 1;
xx = 0;
PB9.write... |
8dcab13077bd39b7b17a238c72d4dcf0ed80328d | bd7486a56e71b520d0016f170aafa9633d44f05b | /multiwinia/code/worldobject/centipede.h | f6df00b0d44b730b1d0d874d8039646a43e06a58 | [] | no_license | bsella/Darwinia-and-Multiwinia-Source-Code | 3bf1d7117f1be48a7038e2ab9f7d385bf82852d1 | 22f2069b9228a02c7e2953ace1ea63c2ef534e41 | refs/heads/master | 2022-05-31T18:35:59.264774 | 2022-04-24T22:40:30 | 2022-04-24T22:40:30 | 290,299,680 | 0 | 0 | null | 2020-08-25T19:02:29 | 2020-08-25T19:02:29 | null | UTF-8 | C++ | false | false | 1,941 | h | centipede.h |
#ifndef _included_centipede_h
#define _included_centipede_h
#include "worldobject/entity.h"
#define CENTIPEDE_MINSEARCHRANGE 75.0
#define CENTIPEDE_MAXSEARCHRANGE 150.0
#define CENTIPEDE_SPIRITEATRANGE 10.0
#define CENTIPEDE_NUMSPIRITSTOREGROW 4
#define CENTIPEDE_NUMSPIRITSTOREGROW_... |
830415a0d5483dc95b33a8c8f0d6c101eee9d70b | 5591b1d90c9b9ae4be83082707452e2382f5f824 | /CardMonitors/Rally.cpp | 24ba5dc11fb1e52c2695db779e96b90633067e03 | [] | no_license | gerwang/PlayGwent | 79dde971677a423c1708963878da332789b5260a | 3d1fd5f5e416b1ded1aa31817994e2e2e6152543 | refs/heads/master | 2023-02-20T20:52:37.073595 | 2022-11-29T11:29:50 | 2022-11-29T11:29:50 | 118,078,241 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,321 | cpp | Rally.cpp | //
// Created by Gerwa on 2017/9/9.
//
#include "Rally.h"
void Rally::slotOnHandSeleted(CardInfo *seletedCard, bool allowCancel) {
if (seletedCard->getCardName() == "Rally") {
//in fact rally will noe be in hand
GameController::controller()->defaultHandleHand(seletedCard, allowCancel);
}
}
vo... |
fd0a122869e1fa009ab8bc31f63477df1528098e | e6c4370f6c3224efb02e7afbee9be8a5d617fc41 | /USlave.cpp | f89d00a7d15ec34093e17ca3af43e60f792f908d | [] | no_license | 1e1/WSUSB-Mega1280 | 4b168540a6cedc1bc4c4e76f8fe0aac66ff646de | 1967f29c76262150ebca787c7cbe13d485c47d6c | refs/heads/master | 2021-01-18T15:18:57.195357 | 2014-11-13T21:41:57 | 2014-11-13T21:41:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 484 | cpp | USlave.cpp | #include "USlave.h"
/***********************************************************
* PUBLIC *
**********************************************************/
void USlave::check()
{
if (Serial.available()) {
LOGLN(">>> USB");
Core::setStream(&Serial);
... |
3cd97ee31e24b91463d94718883520e5ec8abde9 | dfe1f796a54143e5eb8661f3328ad29dbfa072d6 | /psx/_dump_/31/_dump_c_src_/diabpsx/source/lang.cpp | e9c687c3296d35bd80b54ebaa4c23096e44b7438 | [
"Unlicense"
] | permissive | diasurgical/scalpel | 0f73ad9be0750ce08eb747edc27aeff7931800cd | 8c631dff3236a70e6952b1f564d0dca8d2f4730f | refs/heads/master | 2021-06-10T18:07:03.533074 | 2020-04-16T04:08:35 | 2020-04-16T04:08:35 | 138,939,330 | 15 | 7 | Unlicense | 2019-08-27T08:45:36 | 2018-06-27T22:30:04 | C | UTF-8 | C++ | false | false | 1,562 | cpp | lang.cpp | // C:\diabpsx\SOURCE\LANG.CPP
#include "types.h"
// address: 0x800732E4
// size: 0x4
// line start: 83
// line end: 84
enum LANG_TYPE LANG_GetLang__Fv() {
}
// address: 0x800732F0
// line start: 91
// line end: 136
void LANG_SetDb__F10LANG_DB_NO(enum LANG_DB_NO NewLangDbNo) {
{
{
// address: 0xFFFFFFC0
... |
2a742b66f57e4c19f83c03d3bfa09172c1062f7f | 960d6f70d83484d2b531d79002b5cc7fa8ad8063 | /src/1641.cpp | bfbc6190b01ea66f1cf749f459fc875e2445f820 | [] | no_license | lintcoder/leetcode | 688ce547331f377b68512135dd1033780f080e2b | 384f316b5e713c0e15943cb4de6cf91ab0ff5881 | refs/heads/master | 2023-07-19T18:49:12.858631 | 2023-07-07T13:01:01 | 2023-07-07T13:01:01 | 74,862,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 371 | cpp | 1641.cpp | int countVowelStrings(int n) {
int ct = 0;
for (int i = 0; i < 5; ++i)
dfs(0, i, n, ct);
return ct;
}
void dfs(int index, int v, int n, int& ct)
{
if (index == n-1)
++ct;
else
{
for (int i = v; i < 5; ++i)
... |
a6715d368c98cd4432970fe1941e1e06ba4a7b12 | d9001a89dd935ef5571637dc29951db7700be654 | /CprHandMaster.cpp | 36cca8950e554c41af006f9ed54cfbee89fa39d5 | [] | no_license | ByronHsu/Cpr | ed86638dc48416d24472a362108f1b1dd0fd3a13 | 0b99ab2623be8dc703f2d20849b1bde2028ea5cc | refs/heads/master | 2021-01-13T11:17:05.431186 | 2017-01-15T16:18:00 | 2017-01-15T16:18:00 | 77,222,275 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,685 | cpp | CprHandMaster.cpp | /****************************************************************************
FileName [ CprHandMaster.cpp ]
Author [ Haowei Luan ]
Synopsis [ implement CprHandMaster member functions ]
****************************************************************************/
#include "CprHandMaster.h"
#includ... |
02b56d9f252c0f4009914aba4103fc830ab17cd2 | b59c97f2cbccff2157bbc2fb957742bae4b8855f | /LG/P1346.cpp | d48bbca51ad2dc3363bfc2575a2cd16def674db3 | [] | no_license | Yaser-wyx/ACM | bbeab36c0218ceaaa0e1895f7c6b5eea6df76386 | d0c784a9605dc697b4ea9d74c5bd141b2822fec3 | refs/heads/master | 2020-03-09T04:47:30.418231 | 2018-05-17T10:24:19 | 2018-05-17T10:24:19 | 122,565,642 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,075 | cpp | P1346.cpp | #include <bits/stdc++.h>
using namespace std;
/**
* Created with IntelliJ Clion.
* @author WXY
* @Date: 2018-04-14
* @Time: 15:24
* To change this template use File | Settings | File Templates.
*
*/
#define mset(t, x) memset(t,x,sizeof(t))
#define maxn 200
#define INF 777777777
int n, a, b;
int dis[maxn... |
afc5a1fb8bce1ec54ee2dbb679f45512de872267 | 45cfcd24403ab49321faca2bea18509977db695f | /HW_3/mat4.cpp | 8829a1f6e112fa9a4ba2c19b83a173c9bb3b5322 | [] | no_license | ChickenTarm/Interactive-Graphics | 0d84cf27a116a792c4d567776854e4aa78fc253e | 3ae15e2d83d65d4743e731ee1a8e147f3a159169 | refs/heads/master | 2021-01-20T12:04:29.078754 | 2017-04-14T04:25:06 | 2017-04-14T04:25:06 | 82,642,728 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,954 | cpp | mat4.cpp | #include "mat4.h"
#include "vec4.h"
#include <cmath>
#include <assert.h>
using namespace std;
mat4::mat4() {
vec4 fst(1, 0, 0, 0);
vec4 snd(0, 1, 0, 0);
vec4 trd(0, 0, 1, 0);
vec4 fth(0, 0, 0, 1);
this->data[0] = fst;
this->data[1] = snd;
this->data[2] = trd;
this->data[3] = fth;
}
ma... |
87ea7a7132ebd68ef7ebe9f6d805933b0faec3b1 | d727927f570136d560e0b1f066d5c08110ee74b9 | /main.cpp | 1ea98a39a07f7ffd2309dca53dc720e057d11563 | [] | no_license | MariusProgrammation/Test | 3933e63b7e17b89951206fa9aa7218c0f5d82d89 | 6b160efa1359309f2ac0d66f33dd4ff4efd7b8b5 | refs/heads/master | 2021-04-09T14:52:29.764847 | 2018-03-16T16:28:21 | 2018-03-16T16:28:21 | 125,540,610 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,805 | cpp | main.cpp | #include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <SFML/Audio/Music.hpp>
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include "Player.h"
#include "Bullet.h"
#include "Invador.h"
#include "PointsCounter.h"
#include "Background.h"
#include "MenuSpa... |
c7f7d004e4cc08da5ee0150632d3c546ce5c9463 | dfc198d5d619dcaeed0b9faa42b0c2b4a5014639 | /Firmware/Wordclock/ModeFiller.cpp | 14ed033c152ebac8daca8ed1be97802bb565ff9e | [
"MIT"
] | permissive | TetraSource/Wordclock | 58b893fcf118fba6c3decf534fe4a56466290dfe | e3a1c2d5d7126f05737274880f3477254b61e22e | refs/heads/master | 2020-03-28T20:35:21.749222 | 2019-09-30T22:51:46 | 2019-09-30T22:51:46 | 149,085,306 | 1 | 1 | MIT | 2019-02-18T20:50:41 | 2018-09-17T07:23:25 | C++ | UTF-8 | C++ | false | false | 1,825 | cpp | ModeFiller.cpp | #include "ModeFiller.hpp"
#include "Utilities.hpp"
#include "Wordclock.hpp"
namespace Wordclock
{
void ModeFillerUtilities::modeFillerPaint(
const TimeTypes &timeType, const uint8_t &scope,
const Directions &direction)
{
const Fraction amount = Utilities::getTimeProgress(timeType, scope);
uint8_t filledW = ... |
8f9c9598c3657c85af5cadf2660ac33ece947d99 | 5a9f7e7a9dfaba5b1aa44a580d6e2b1612d5ed51 | /LL_partition.cpp | 18689587a69b7a2be7cd99a65df21b6b30cea40c | [] | no_license | Ishikanagar07/data_structures | 628000db6f8a6b987a42e4ac6aee56a62342b006 | 407329b34bc7bcbe5969f7e15c1e17bd61cf237e | refs/heads/main | 2023-06-04T21:19:37.341590 | 2021-06-27T09:54:21 | 2021-06-27T09:54:21 | 366,239,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,262 | cpp | LL_partition.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
ListNode* partition(L... |
cd5886c14e64c0ac5390a47d1d0320f795d33ce3 | 559220b5652aeebd0bad094df35f4d450fafd682 | /Project/Light.h | 0adc5d297eb4ffbe3089401dcb35e6f95106f730 | [
"Apache-2.0"
] | permissive | KYovchevski/SlothRT | 119eea1ec8216916cc1349e694badcb0dd8037bc | 5f522b6d4b9f93242bfd3398e2589bcdfaeccbdb | refs/heads/master | 2022-04-04T04:43:21.280399 | 2020-02-11T02:27:07 | 2020-02-11T02:27:07 | 237,308,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 366 | h | Light.h | #pragma once
#include "Structs.h"
class Light
{
public:
Light(float3 a_Position, float a_Attenuation, Color a_Color = Color(255, 255, 255, 255));
float3 GetPosition() const;
Color GetColor() const;
float GetAttenuation() const;
Ray GetShadowRay(float3 a_From);
private:
float3 m_Position;
... |
aaf152c8cdbc45776021c3e612cba6ccb9325e39 | c0438cae3adfb762c87d2c43bc1095bc0c123627 | /Tree/Diameter.cpp | 49ec1dd46b1bb49b9c04d10c441f7bbacf37d873 | [] | no_license | SubhradeepSS/dsa | 6705ae2c27e73dd8b9eb3557fa5c255b54e6c746 | 3d4cf60c298e1c93ce458690f3e01940232d5099 | refs/heads/master | 2023-08-14T18:14:09.254692 | 2021-10-06T18:13:13 | 2021-10-06T18:13:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 511 | cpp | Diameter.cpp | int height(TreeNode* root){
if(!root)
return 0;
return 1+max(height(root->left),height(root->right));
}
int util(TreeNode* root){
if(!root)
return 0;
int lh=height(root->left),rh=height(root->right);
int ld=util(root->left),rd=util(root->right);
... |
b43e44d2ba05b321c7ff3a509a652e62ad40126f | 4ee9313a52d3be89b0e66e11f7f066fdaf96c554 | /src/main.cpp | 2a6caaa2759980eae246db92aeac19ba172e845e | [] | no_license | nilkun/mixedSDL2 | a2f8789a9143e461aecbfa5fb85a9e6d5c25cd1d | 3cd6d424b09ac3d359982d4211b7061ca7564988 | refs/heads/master | 2020-03-28T23:48:24.038375 | 2018-09-18T15:22:29 | 2018-09-18T15:22:29 | 149,309,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,157 | cpp | main.cpp | #include <SDL2/SDL.h>
// Engine files
#include "engine/headers/ScreenManager.h"
#include "engine/headers/Factory.h"
// Game files
#include "headers/EventHandler.h"
#include "headers/MovingEntity.h"
#include "headers/Vector2D.h"
#include "headers/Vehicle.h"
#include "engine/headers/GameEntity.h"
#include "headers/Gam... |
53d8f00199f34a8cb8aad77ef445965ed2d9c469 | e2181e9439866cbf1455fdff66e4e27879eb034e | /src_my/tools/merger/merger.cpp | b22f4e7b34a6cf78d0d8816457aec79d091aaa30 | [] | no_license | lineCode/game_server-1 | 3fb841d3a4973d47e9c2692bbf9b1e440c499e5d | d9178ee8a0a504e5873bee3616d323056c9c9764 | refs/heads/master | 2020-05-19T08:01:02.835874 | 2019-05-03T11:10:57 | 2019-05-03T11:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,883 | cpp | merger.cpp | // #include "utils/service_thread.hpp"
// #include "utils/log.hpp"
// #include "utils/assert.hpp"
// #include "db/connector.hpp"
// #include "proto/data_rank.pb.h"
// #include "utils/proto_utils.hpp"
// #include <boost/program_options.hpp>
// #include <string>
// #include <iostream>
// #include <list>
// #include <set>... |
bfdf5c2254a68b1681ded80a1198d6e31c27b9f6 | c3e538067cdf5b57fe2402dd8c3be6e87ab5d09d | /practicos/practico_0_2012/include/const.h | da0406b514c95318d90badb48a6e39caaff3f468 | [] | no_license | renzodgc/fing-compgraf2021 | 901191e7ae9c6a49c9d9ec35df4d175574aa6443 | f59f1a4a9e5ba80dd110dfbb008303812d4cd953 | refs/heads/main | 2023-06-04T18:39:14.175639 | 2021-06-23T20:28:01 | 2021-06-23T20:28:01 | 354,966,895 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 356 | h | const.h | #ifndef CONST_H
#define CONST_H
// Global dependencies
#include <string>
// Function return codes
const unsigned short OK = 0;
// Main errors
const unsigned short ERROR_MAIN_BAD_FORMATTING = 1;
// Function return messages
// Main errors
const std::string ERROR_MAIN_BAD_FORMATTING_MSG = "(Error, Main) - Bad formatte... |
ac0be145e01ca818d3ab829cef569848f06d68af | d3e44d47e89578bba0104d07437cd3a3cda8ca42 | /Classes/Hero/HerosThings.cpp | 3ac408ef5a1dd2c5ca10c596fed721689e0aad64 | [] | no_license | RoyBirds/BubblePlay | 5e8c9d406bf63c22daa4859bd271eb4885014148 | 4047d06e2a08760f29c55f92238b7c19c27bfa13 | refs/heads/master | 2021-01-02T08:56:43.880283 | 2015-06-26T09:31:54 | 2015-06-26T09:31:54 | 38,025,482 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 104 | cpp | HerosThings.cpp | //
// HerosThings.cpp
// BubblePlay
//
// Created by roy on 15/6/26.
//
//
#include "HerosThings.h"
|
8123b3a1f63f2312d510e26a210b8a9eecbfeeba | d326405b1f63a282291e59f050bf63eb436ccbb2 | /RrrRenderer/Scene.cpp | e5979fbac6a8552dc77c14c97834cca7784443fb | [] | no_license | asmei1/RrrRenderer | 5a37e24606f1dd40977ded746aa48d6af04111b4 | 42378be7fb17dbba9b4278882b3397aa753037ea | refs/heads/master | 2022-02-23T18:50:44.324592 | 2019-09-17T18:01:54 | 2019-09-17T18:01:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,688 | cpp | Scene.cpp | #include "Scene.h"
#include "Objects/Sphere.h"
#include "Lights/DirectionLight.h"
#include "Lights/PointLight.h"
#include "Intersection.h"
#include <random>
#include "Helpers/FunctionHelper.h"
Scene::Scene()
{
this->allObjectsPositionMatrix.insert_cols(0, arma::dvec4{ 0,0,0,0 });
Object_A::setAllObjectsPosition... |
195bf7ae542aac4f342ce0d3964a14a161649e53 | 0a673c7741965cd0c47164c526cd085a15ce99f4 | /E.cpp | 25da71d02bc3bd99380f90ce8b5e2626c0f9b5ca | [] | no_license | gustavohcs/SBC-2017-Regional | 9dd4c19640e0525134d4ebfb82475f1209936aba | c5c05698ab64de0b7343fcd147d77e7b0d34a147 | refs/heads/master | 2021-05-08T05:21:21.608311 | 2017-10-10T03:06:38 | 2017-10-10T03:06:38 | 106,336,651 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,431 | cpp | E.cpp | #include <iostream>
#include <set>
using namespace std;
int main(){
int N;
int X;
set<int> guarda[13];
for(int k=1;k<=12;k++){
guarda[k].insert(k%12);
guarda[k].insert((k+2)%12);
guarda[k].insert((k+4)%12);
guarda[k].insert((k+5)%12);
guarda[k].insert((k+7)%1... |
0bc753a3dfb30b823a7624f95fa89d563d3e549e | fa134e5f64c51ccc1c2cac9b9cb0186036e41563 | /GT/Aircraft.h | 94690d99d52826e08a57ca216435bc3516de6255 | [] | no_license | dlsyaim/gradthes | 70b626f08c5d64a1d19edc46d67637d9766437a6 | db6ba305cca09f273e99febda4a8347816429700 | refs/heads/master | 2016-08-11T10:44:45.165199 | 2010-07-19T05:44:40 | 2010-07-19T05:44:40 | 36,058,688 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,467 | h | Aircraft.h | #pragma once
#include "VRMLLoader.h"
class Terrain;
class Aircraft
{
public:
Aircraft(void);
virtual ~Aircraft(void);
// Load aircraft
void loadAircraft(const char* filePath);
// Draw function.
void draw(const RECT &rect, BOOL isTerrain = TRUE, BOOL isInstr = FALSE);
// Setters and getter... |
a8247a6e79c346f90da487e4c30d0b1ab327ae50 | c4f840be3b1d0e3a50ffceda730550b903a2e53a | /advanced/advanced-pat-cpp/1029/main.cpp | d8184815bbd5f301b17e3211c06e98a1ff4a1e1e | [] | no_license | mzorro/PAT | 7ea0fd270f4c41c2678174859f526b9940a57e5e | 8693671a58395d727aa14132ba1bdea713e01901 | refs/heads/master | 2021-01-22T23:54:16.363024 | 2016-12-22T06:10:03 | 2016-12-22T06:10:03 | 40,072,368 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 605 | cpp | main.cpp | #include <cstdio>
#define MAX_LEN 1000000
using namespace std;
int a1[MAX_LEN];
int a2[MAX_LEN];
int main() {
int N1, N2, N;
scanf_s("%d", &N1);
for (int i = 0; i < N1; i++) {
scanf_s("%d", &a1[i]);
}
scanf_s("%d", &N2);
for (int i = 0; i < N2; i++) {
scanf_s("%d", &a2[i]);
}
N = N1 + N2;
N = N % 2 == 0 ... |
f35030df6307d8dc5f6c78cb82d1c976265023ae | 3de3bb4e1f651b5bf200fe5a6ff9f4e358cad6cd | /main.cxx | 04c567700535c6bc48447f298bd42d4208ac02db | [
"MIT"
] | permissive | gaebor/vmt_test | 7d53f35b1177bde3234581947df7686b6b84fd53 | 0727f9f8f9290baca37453c5db8981b39b3e1ac0 | refs/heads/master | 2020-03-28T12:24:10.504381 | 2018-09-11T10:42:57 | 2018-09-11T10:42:57 | 148,294,068 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,933 | cxx | main.cxx | #include "f.h"
#include "f.hxx"
#include <chrono>
#include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <numeric>
#include <cmath>
typedef std::chrono::high_resolution_clock myclock;
template<class Type, template<class, class> typename Container, typename Allocator>
Type m... |
ad3c45d1677947690702e7255711dc9503e2a699 | d4c74a8001451840f3efb87f15856cdb9d5e9eb6 | /examples/native/mbed/test_driver_c++/test_HYPER_RAM/test_HYPER_RAM.cpp | 4d768611b147774e14714475a64a9ead7ecdd2a2 | [
"Apache-2.0"
] | permissive | danieldennett/gap_sdk | 3e4b4d187f03a28a761b08aed36a5e6a06f48e8d | 5667c899025a3a152dbf91e5c18e5b3e422d4ea6 | refs/heads/master | 2020-12-19T19:17:40.083131 | 2020-02-27T14:51:48 | 2020-02-27T14:51:48 | 235,814,026 | 1 | 0 | Apache-2.0 | 2020-01-23T14:39:59 | 2020-01-23T14:39:58 | null | UTF-8 | C++ | false | false | 4,181 | cpp | test_HYPER_RAM.cpp | #include "mbed.h"
#define BUFFER_SIZE 1024
#define CONF_REG_DEFAULT 0x8F1F
#define RXTX_ADDR 0x800
GAP_L2_DATA uint8_t txHyperbusSamples[BUFFER_SIZE];
GAP_L2_DATA uint8_t rxHyperbusSamples[BUFFER_SIZE];
#define ID0 0x0000
#define ID1 0x0002
/*
* CA bits 47 46 45 44-40 | 39-32 ... |
30bd54463f85ba5d13489eda4fbdf76925f8c45c | 617042f44ef02d88188584a8db87cd8aa576ddb8 | /LINE_follower.ino | f1aa2b3291029bb387320b16cf6884f14f61e2ea | [
"Apache-2.0"
] | permissive | XAEA-16/Obstracle-detector-car | 94d6268e8199d96958996d714f6b53b1b4f0a9be | a044c6119a2656261edc30150417192b2b4b8c35 | refs/heads/master | 2022-03-08T04:15:52.592975 | 2019-11-26T17:56:08 | 2019-11-26T17:56:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,312 | ino | LINE_follower.ino | /*------ Program for Line Follower Robot using Arduino----- */
/*-------definning Inputs------*/
#define LS 2 // left sensor
#define RS 3 // right sensor
/*-------definning Outputs------*/
#define LM1 4 // left motor
#define LM2 5 // left motor
#define RM1 6 // right motor
#define R... |
afb0a7586f7d28f75b30cc20d67cbedffee2a24d | 72c90af446dade8ce7457230c96caea10ebb2c17 | /slides/cpp-code/pq-usage.cpp | 1224cab3ae2646526fbb904aa34759d327414dbd | [] | no_license | kit-cpp-workshop/workshop-ss12-09 | 177812ceb7328d46275851e34d7bddae6eb91330 | aa5ce31882e2c47f3d7806f4f6745811d95c77e1 | refs/heads/master | 2020-12-24T13:35:45.365227 | 2014-04-29T16:19:16 | 2014-04-29T16:19:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 479 | cpp | pq-usage.cpp | // #include <priority_queue> #include <functional> // for greater<T>
struct Bar_t { int a, b; };
struct BartComp {
bool operator() (const Bar_t &lhs, const Bar_t &rhs) const {
return (lhs.a != rhs.a) ? (lhs.a < rhs.a) : (lhs.b < rhs.b);
}
};
std::priority_queue<int> pq1; // PQ of ints, ordering default =... |
5a0531888ec1d0e58965a7a0d97ca3dfee24005e | be14e50a83bc718d0c871b74eb218188eef5248a | /std_function.cpp | 275d1fd9dcef87d5a580fd1b038ea93d735f9342 | [] | no_license | russellboyd/studying | 405a0236affcd02236ef760f7c6aa18bc577870b | 93b30003c7ea513690fc693f21f73a8f42e13690 | refs/heads/master | 2022-04-18T20:42:57.295590 | 2020-03-30T15:49:02 | 2020-03-30T15:49:02 | 113,865,608 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 425 | cpp | std_function.cpp | #include <functional>
class LambdaStore
{
function<bool(double)> _stored_lambda;
public:
function<int(int)> get_abs() const
{
return [](int i) {return abs(i);};
}
void set_lambda(const function<bool(double)>& lambda)
{
_stored_lambda = lambda;
}
};
int main()
{
LambdaStore ls;
ls.set_lambd... |
b778ee793643ea67e1ecb87afbf49964582c6b67 | 539c338ea3b7e3f7d30f02b8a7206f8fefbfd3a6 | /gearchange.ino | 7d6d4fcabd9b9fb55ed428d666ca9bab35433982 | [] | no_license | UVigoMotorsport/gearchange | be0edb5211e5e264b907865edc95a748f7cab9f1 | 404c192e0115f3e41caa1646f4bd57054b89bdb1 | refs/heads/master | 2021-01-22T03:49:36.646893 | 2017-07-21T11:52:10 | 2017-07-21T11:52:10 | 92,406,672 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,730 | ino | gearchange.ino | #include "gearchange.h"
void loop()
{
if ((millis() - GEARLAST) > 25 && (!CHANGESTAGE))
{
if (!GEARCHG)
{
gearchange.writeMicroseconds(SGEARMID);
}
if (RELEASE)
{
if (!(PIND & ((1 << PORTD2) | (1 << PORTD3))))
{
RELEASE = 0;
}
}
else if (PIND & (1 << PORT... |
c9676cb22a9601ff367af368ba3eec430c06a312 | b34cf25802c55387defc54aed80faa2770b16d73 | /Comenter v2.0/loadInfo.h | c937b101d61a3edcedbf02ccc1f12525ec1cf4da | [
"Apache-2.0"
] | permissive | stefan1st/Comenter-v2.0 | d4223cca4112e422e316a9c34f1e3cdf46001174 | 89c7313c7a9d6d93af9a8d54b4f3ad1f499a6ef3 | refs/heads/master | 2021-01-11T02:24:38.026481 | 2014-01-16T09:05:26 | 2014-01-16T09:05:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 210 | h | loadInfo.h | #pragma once
#include <string>
#include <fstream>
using namespace std;
class loadInfo
{
private:
string nume_fisier;
string dataArray[8];
public:
loadInfo(string);
string getData(int);
~loadInfo(void);
}; |
729588fce387a36e2a1921dcc46b297160cc0cb3 | dc82345db9f503cb3dd0038781d4b0d92258ab3a | /PhotoshopPDFTool/CLayerSet.h | 9254e5123f59fed2b58a69a631f332579a395661 | [] | no_license | lsjsoft/PhotoshopPDFTool | 78fe0a9e683e694b28bee3a0f65e54f216567027 | 919ec55bba39775f9497c63f7b2429f986d8f829 | refs/heads/master | 2020-07-04T13:59:38.950948 | 2013-07-10T03:34:54 | 2013-07-10T03:34:54 | 11,280,320 | 3 | 1 | null | null | null | null | GB18030 | C++ | false | false | 7,264 | h | CLayerSet.h | // Machine generated IDispatch wrapper class(es) created with Add Class from Typelib Wizard
#import "C:\\Program Files\\Adobe\\Photoshop CS\\Plug-Ins\\Adobe Photoshop Only\\自动\\脚本支持.8li" no_namespace
// CLayerSet wrapper class
class CLayerSet : public COleDispatchDriver
{
public:
CLayerSet(){} // Calls COleDispat... |
ed788f9599641e449c5e8355da548294a7e76244 | 78ebca5d558e9f55f791b53c4ee3e60303524276 | /apps/bfs.cpp | 4b1767ed4666fa00555a545b52ce084c468353e4 | [] | no_license | atsmith3/GraphMat | 8912bc32bfd5c3dfa8d615c1caabb6a6a8f5fc1e | b017eb5987b4b59c120f474b10eefe63da62112f | refs/heads/master | 2020-11-23T19:07:02.517628 | 2019-12-17T22:22:34 | 2019-12-17T22:22:34 | 227,782,769 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,250 | cpp | bfs.cpp | // Andrew Smith
// BFS Baseline Application
// 121319
#include "bfs.h"
void initialize_bfs(Graph<vertex_t, edge_t>& graph, std::queue<uint64_t>* curr) {
for(auto it = graph.vertex.begin(); it != graph.vertex.end(); it++) {
it->property = false;
}
graph.vertex[0].property = true;
curr->push(0);
}
void do_... |
f55b9c640b877123e718233d88b4d710b4a968a5 | bb285e1849703530e40bfa39109d440b80b9cc88 | /0218_The_Skyline_Problem/Solution.h | 69f553130c4410a919e9bf4dfc34e2e46ae4cfd8 | [] | no_license | kkoala0864/LeetCode | 43fe84a63af1605a3034b072f4cd26683af1fd85 | 386f8f17a5507f3940ad1621fd36d2ae98950727 | refs/heads/master | 2023-07-14T12:49:04.735378 | 2021-08-15T08:17:04 | 2021-08-15T08:17:04 | 33,233,776 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | h | Solution.h | #include <vector>
#include <utility>
#include <queue>
using std::vector;
using std::pair;
using std::priority_queue;
class Solution {
public :
Solution() {}
vector<pair<int, int>> getSkyline(vector<vector<int>>& buildings);
private :
virtual ~Solution() {}
Solution& operator=(const Sol... |
def4698c521fc61df2ac1b40f012c0ce485dcff9 | 674b7aa4e384a99889d23d5ebb5760dab8e04f0d | /SimpleEngine/GameObject.h | 06c4eefda363b57d175a609201f2bff9bb6c4dae | [] | no_license | UserNameIsAlredyTaken/SimpleEngine | 2ad5f7e6fd510457c56dbb8d9a1f8b61464a79cb | bdb8373e73ad2ade810b5a609583d90c9fa4cee8 | refs/heads/main | 2023-04-26T12:09:00.001175 | 2021-05-23T08:32:18 | 2021-05-23T08:32:18 | 331,851,395 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,580 | h | GameObject.h | #pragma once
#include <DirectXMath.h>
#include <vector>
#include "FrameResource.h"
#include "Game.h"
#include "Transform.h"
#include "Components/BaseComponent.h"
#include "Components/MoveComponent.h"
#include "Components/RollComponent.h"
// #include "Components/InputComponent.h"
using namespace DirectX;
struct Rend... |
b26306ade10306c1ce566a91ee4059b15345afcb | 075506fe8a0e0206eb172ee26f52e6b4db391200 | /items/equipable_item.cpp | 8095f75998853ab27c015bdff0d7cd747cb8ab29 | [] | no_license | pcapel/CaveDiver | fc1f78be0f17bf1ca01bc5be5e5539fb67dd204f | e207e71fd7681573b0c2c3c2643da7b16fe3a4af | refs/heads/master | 2021-01-20T03:23:46.598058 | 2018-03-12T21:42:34 | 2018-03-12T21:42:34 | 89,537,716 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 120 | cpp | equipable_item.cpp | #include <string>
#include "equipable_item.h"
EquipableItem::EquipableItem(std::string ItemName) : Item(ItemName) {
}
|
e4de8bc545ce9710d8b95a96fe50e1a5cd3e15d8 | 364f9f353a1a24a6e1b7fd4d7a101ed96ea5ac90 | /Sources/Logger.h | 15f98e125a89a1b6de256eb76ff0a127d821d77b | [] | no_license | samuel-olivier/raytracer | fea28b987c7db0cab9cefda6133db7e4993ffda4 | 50a9eba63dd820628d190e2aeef27701c8585032 | refs/heads/master | 2021-05-27T18:49:30.232541 | 2014-06-12T19:17:29 | 2014-06-12T19:17:29 | 19,592,415 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,612 | h | Logger.h | #ifndef LOGGER_H
#define LOGGER_H
#include <QString>
#include <QObject>
#include <QMutex>
#include <atomic>
#define logger Logger::instance()
class Console;
class QStatusBar;
class Logger : public QObject
{
Q_OBJECT
public:
static Logger* instance();
Console* console() const;
void setCon... |
af23a25c5ab693a7035e97f4cb5fe57bb7f711ed | cffd28b971453f6d47b5f64f397d6446f7ccdc9b | /src/protocolgame.cpp | 01d1d7a270e549add387b9cba60c82f3154f142b | [
"Zlib"
] | permissive | Kadresiak/The-Forgotten-Client | a672c9e45178a1a95b934f15b36bfb44ac28b81e | 8b7979619ea76bc29581122440d09f241afc175d | refs/heads/master | 2023-03-18T10:51:07.294550 | 2020-09-01T01:56:31 | 2020-09-01T01:56:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 226,352 | cpp | protocolgame.cpp | /*
The Forgotten Client
Copyright (C) 2020 Saiyans King
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 software.
Permission is granted to anyone to use this software for any purpose,
in... |
827c5a8f2ab932e0935502034c12f2fbccbef4d6 | 46f992ec5ac6ad7bda1ef3e19cb7a6d601b5d680 | /misc/keep.hpp | 109fe2c512a1a40a1d6045abddf486c466069ca3 | [] | no_license | ANGSD/angsd | b4bfdb03fb6887e19835b0f461d3dea84828216c | 8a58e179d23a3230adf2fa4115e16ecf057a9695 | refs/heads/master | 2023-09-03T18:29:16.676109 | 2023-08-20T22:49:37 | 2023-08-20T22:49:37 | 21,312,324 | 194 | 70 | null | 2023-08-20T07:45:41 | 2014-06-28T22:38:46 | C++ | UTF-8 | C++ | false | false | 2,543 | hpp | keep.hpp | #pragma once
#include <cstdio>
#include <cstdlib>
#include <cstring>
template <typename T>
struct keep{
size_t m;//length of d array
size_t l;//number of elements with a set value
size_t first;//lowest index
size_t last;//highest index
T *d;
};
#ifndef kroundup32
#define kroundup32(x) (--(x), (x)|=(x)>>1, ... |
a3bab68d37023481cf133adda0062c1fa437907f | 120f0352e375444649a98d0970306e2010888290 | /LI_XU_projet_bezier/projet/src/main.cpp | e2d43f41bae8b6e4e8654af11cbf0dbaca1caf3d | [] | no_license | kevinxu-git/PAP_Project | 2006f9e499e884c81d1bd2eab4a57a4192ebe9d1 | 0a1d826d9ad979ceca5b6ea402887b25f55dec87 | refs/heads/master | 2021-06-15T19:28:08.976729 | 2021-02-24T14:25:35 | 2021-02-24T14:25:35 | 158,954,180 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,275 | cpp | main.cpp | #include "Point.h"
#include "Image.h"
#include "BezierCurve.h"
#include "FontV1.h"
#include "FontV2.h"
#include "FontV3.h"
int main() {
// Generate the letters of the class FontV1
char fileName1A[] = "./FontV1/FontV1_A.png";
FontV1 L1A(fileName1A);
L1A.A();
L1A.finishLetter();
char fileName1B[... |
ea3530ab51a755f2a163cbbf2bdcc5ed1f17e64d | b573902ab49bcb2b61c7e5ef34e67735724d5a2f | /DataStructures/LinkList/LinkList.hpp | a42b783d0eb84bf2b612e27e02a3a82ba32279b2 | [] | no_license | 50mengzhu/IntroductionToAlgorithmCode | 1fc9ac6efabaacf4e2934c65129aa5059cfeaba7 | 5dfc970fe1d551f0bcc9070bfae524f2240da669 | refs/heads/master | 2021-07-03T23:42:45.818390 | 2020-09-26T09:39:15 | 2020-09-26T09:39:15 | 171,135,390 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,663 | hpp | LinkList.hpp | #include <iostream>
#include "LinkList.h"
Node::Node()
{
next = nullptr;
}
Node::Node(int val)
{
data = val;
next = nullptr;
}
Node::Node(Node* T)
{
data = T -> data;
next = T -> next;
}
Node::~Node()
{
delete next;
}
LinkList::LinkList()
{
head = nullptr;
}
LinkList::~LinkList()
{
... |
9091ca7ee83a83d9eeff3f34b6a22ce5983385e4 | 7cb6ea6dae112b9fb7f357100abf6a1bd9984042 | /450 DSA Questions/7. Rotate array by one.cpp | dd96befa9d4482bed681628110b9ff653c80a17d | [] | no_license | hardik20sharma/Data_Structure_Algorithms_Practice | b172494fd9d04d66bdd4b7122abd5fb39528b0b7 | d764c7e44bbc4a05cb5f3e01fc21ccd036e5604e | refs/heads/main | 2023-07-04T23:11:58.111523 | 2021-08-27T14:07:29 | 2021-08-27T14:07:29 | 342,650,657 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | 7. Rotate array by one.cpp | #include<bits/stdc++.h>
using namespace std;
void Rotate_By_One (vector<int> &vec)
{
int temp = vec[0];
for(int i=0; i<vec.size() - 1; i++)
vec[i] = vec[i+1];
vec[vec.size()-1] = temp;
}
int main()
{
vector<int> vec {1, 2, 3, 4, 5, 6};
Rotate_By_One(vec);
for(int... |
8e01bb875935918394cd8c7cea9daf20bdd68b0b | 47eba68e913c8702f0bfcd0ee8a2796dee680dab | /C++/testy4/testy5.cpp | fbbcd1de9215231098ff5d0d142e569e103161a4 | [] | no_license | dereksalerno/Homework | 271fd3b8eebfa03d02a4494ce8382f32938c90da | 84997b9d497d8cfd6e1fc323ee9188c19b975b24 | refs/heads/main | 2023-01-22T17:16:59.160285 | 2020-12-08T15:36:48 | 2020-12-08T15:36:48 | 319,679,270 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 832 | cpp | testy5.cpp | #include<iostream>
using namespace std;
int main()
{
int count1 = 12;
int count2 = 17;
int count3 = 71;
if ((count1 <= count2) && (count1 <= count3))
{
if (count1 == count2)
cout << "count1: " << count1 << "count2: " << count2 << endl;
else if (count1 == count3)
cout << "count1: " << count1 << "count3: " << coun... |
a826bbb37c390d46fcef7eef9da748732c55862b | 5cb3aa9f250d8a7e29b63f46b4297de4bba0a198 | /linear-algebra/include/Cholesky.inl | a6e2418a082143f092afb25b3a95417925f46e38 | [
"MIT"
] | permissive | diwot/boundary-first-flattening | 7d6fc9f5ae7f2200521851d00075314138ada90a | 92dc81ee840708f1426ec2e368df1328235e0732 | refs/heads/master | 2020-05-17T06:31:27.719309 | 2019-04-26T05:13:20 | 2019-04-26T05:13:20 | 183,559,296 | 0 | 0 | null | 2019-04-26T04:54:01 | 2019-04-26T04:54:01 | null | UTF-8 | C++ | false | false | 1,573 | inl | Cholesky.inl | #include "SparseMatrix.h"
#include <Eigen/Sparse>
//extern Common common;
typedef Eigen::SimplicialLDLT<Eigen::SparseMatrix<double>> cholmod_factor;
inline cholmod_factor* cholmod_l_analyze(cholmod_sparse *C)
{
cholmod_factor* f = new cholmod_factor();
f->analyzePattern(*C);
return f;
}
inline bool cholmod_l_fac... |
a749456c215004cd9a4047dee174851f920e8ba3 | 3970f1a70df104f46443480d1ba86e246d8f3b22 | /vimrid-viewer/src/mri/MriVisualiser.h | dfa971d905a1eb896b292860c619ce7a14159ac5 | [] | no_license | zhan2016/vimrid | 9f8ea8a6eb98153300e6f8c1264b2c042c23ee22 | 28ae31d57b77df883be3b869f6b64695df441edb | refs/heads/master | 2021-01-20T16:24:36.247136 | 2009-07-28T18:32:31 | 2009-07-28T18:32:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,450 | h | MriVisualiser.h | /* TODO: Short description of file.
*
* TODO: Write detailed information.
*
* Created: 20-Apr-2009
* Author: Nick Bolton (njb4@aber.ac.uk)
*/
#ifndef MRIVISUALISER_H_
#define MRIVISUALISER_H_
#include "MriSet.h"
#include "../textures/LuminanceTexture.h"
#include "../textures/VTextureManager.h"
#include "../spri... |
f2bf0450b1ff81d3315e78bc58f11384e2bd3dfe | 72d69e41643bc756ac7c44471fdabe426e04eced | /aj_samples/hello_world_client/src/HelloWorldClient.cc | 0af3553ed7f70592d63a0fe36228defb8370a5bf | [] | no_license | alljoyn/extras-hackfest | 0bb145ddfc62e2d21b2eb18dad63796001ea9f27 | 725ae68584134ebfe23169b594b5a2deddd95ab3 | refs/heads/master | 2021-09-11T12:31:38.385310 | 2018-04-06T21:46:18 | 2018-04-06T21:46:18 | 112,537,013 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,362 | cc | HelloWorldClient.cc | /******************************************************************************
* Copyright (c) 2014, AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright not... |
84a4a4ded22a3cc12903ef30381e78e01ecabba1 | 0ac3c16e11057b97c898410619c8727b80827af4 | /face.cpp | f81761965d86918c1f416a2099438844470f8fb4 | [] | no_license | garytcfsh/edMFF | 75369789f88ca5fd858f444e1109a18846484b97 | 0455bf0c288ebeb17f675c280c089ffd6215d4b4 | refs/heads/master | 2022-09-27T11:45:19.813525 | 2020-06-03T04:25:24 | 2020-06-03T04:25:24 | 268,988,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,256 | cpp | face.cpp | #include "face.h"
#include <QDebug>
Face::Face()
{
}
void Face::addApex(float x, float y, float z)
{
apex.append( Node( x, y, z));
}
void Face::addApex(QVector3D vector)
{
apex.append( Node( vector));
}
void Face::addNodeOnFace(int n, float x, float y, float z, int t, double h, double f, int g)
{
node... |
a12cc8bcb8a383050064f1ec8549e6921b3c85c6 | aed6881c69dbe1635b72a98291240b0c775b3b84 | /NewModule/src/FrustumCullingGen.cpp | 024d5b6f802a005571fe886e938ac51ef991286b | [] | no_license | ohio-university-cs4900-spring-2019-2020/module-8-optimization-SiruiSong | 4785dc70a91b1f1b860644cbd11a8c89129382e9 | 6f886d7a87fb392e1d532ad93970f4b3b7f27833 | refs/heads/master | 2021-05-18T06:29:33.491925 | 2020-04-08T04:05:41 | 2020-04-08T04:05:41 | 251,158,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,184 | cpp | FrustumCullingGen.cpp | #include "FrustumCullingGen.h"
#include "ManagerGLView.h"
#include "GLView.h"
#include "Camera.h"
#include "Model.h"
#include "MGLFrustum.h"
using namespace Aftr;
using namespace std;
FrustumCullingGen::FrustumCullingGen() {
}
bool FrustumCullingGen::isCameraVisible(WO* wo) {
Camera* cam = Manager... |
3fa2e8a24fa70b3e5f3f95545928aad948fde859 | 3e81d8710433bdf6bfd8fcd4d970c7dfe7f29b80 | /baby_names/babies.cpp | bc12560ed468f4c9b70ed13c3476d9218e0abe46 | [] | no_license | jasont7/cpp-projects | 6d51e2bc60852ac3d18373e4bd899aee556b1721 | 284b78a6681ce87e819339e1397d3426f368a100 | refs/heads/main | 2023-02-14T16:23:18.268549 | 2021-01-01T03:39:46 | 2021-01-01T03:39:46 | 325,857,091 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,937 | cpp | babies.cpp | // CSC 116 - Fall 2020
// Jason Thomo (V00949336)
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <cassert>
#include <sstream>
#include <limits>
// The first year covered by the dataset
const int kFirstYear = 1920;
// The number of years in the dataset
const int kTotalYears = 100;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.