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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bcedaafc00183fd375d5db6f58d378baf1f91d94 | a97752b8d83d28d7a6eb0580a26dbb3c8afeacaf | /basic/basicActor.c++ | 5249fdad3d8ca355fb94a1bc27f24a23027f2741 | [
"MIT"
] | permissive | camilleg/vss | 1135b46d2775e448508075c1eff2372eb49e207e | b99bb5281a8cc09cf7045fb6c9315e74e281ec86 | refs/heads/main | 2023-06-07T00:13:59.320038 | 2023-06-06T21:02:04 | 2023-06-06T21:02:04 | 8,169,388 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,231 | basicActor.c++ | #include "basicActor.h"
ACTOR_SETUP(BasicActor, BasicActor)
extern void BASICinit(void);
extern int BASICstep(const char*);
extern void BASICterm(void);
extern void BASICflushoutput(void);
extern const char* BASICoutput(void);
BasicActor::BasicActor() :
VActor(),
fTerminated(0)
{
setTypeName("BasicActor");
BASIC... | |
c4c2101445b61524ab3a4aedc07e8cae0f742d3f | 71e7675390503901564239473b56ad26bdfa13db | /src/zoidfs/hints/zoidfs-hints.h | 81364cda2f51247fb71299f751e76bda4fa60fe9 | [] | no_license | radix-io-archived/iofsl | 1b5263f066da8ca50c7935009c142314410325d8 | 35f2973e8648ac66297df551516c06691383997a | refs/heads/main | 2023-06-30T13:59:18.734208 | 2013-09-11T15:24:26 | 2013-09-11T15:24:26 | 388,571,488 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,863 | h | zoidfs-hints.h | #ifndef SRC_ZOIDFS_HINTS_ZOIDFS_HINTS_C
#define SRC_ZOIDFS_HINTS_ZOIDFS_HINTS_C
#include "zoidfs.h"
#ifdef __cplusplus
/*
* We put all the zoidfs stuff in the zoidfs namespace
*/
namespace zoidfs
{
namespace hints
{
extern "C"
{
#endif /* __cplusplus */
/* predefined hints */
#define ZOIDFS_HINT_ENAB... |
c4bbed6a332a776d95757c3c371c4147bd56452b | 3305f6c72411a014ef693a3602bfb9e40f0775b6 | / n-m-p/NPM/IVObject.cpp | 56b214cc880e4de7e82ec7876834b14cc374e0fe | [] | no_license | tectronics/n-m-p | ccb30a0fab7cb90bb9c22c371f6fe53fd7ef9bcd | 5e735c7c50cec066044715d3092416040d8bb4f9 | refs/heads/master | 2018-01-11T15:02:07.502719 | 2013-04-04T22:51:47 | 2013-04-04T22:51:47 | 47,603,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,349 | cpp | IVObject.cpp | //#include "IVObject.h"
//
//using namespace std;
//
//SoSeparator *ReadScene(const char *filename)
//{
// SoSeparator *root;
// SoInput in;
//
// if (!in.openFile(filename))
// {
// cerr << "Error opening file " << filename << endl;
// exit(1);
// }
//
// root = SoDB::readAll(&in);
//
// if (root == NULL)
// cerr ... |
7a79f921a787983e3bbdaed825de3b3f9f1836e1 | 3655768adbd64e629096c568bafe1c5f434b4a9f | /Chapter 6/Test.cpp | 8c52294b5be6fbc605cf6b58e5e928fb4e924074 | [] | no_license | gatordan82/IntroductionToCppForFinancialEngineers | 8a6a56c7ba33fcedd1f8fdcdd27346464a985083 | 2bf6ea15bff1f82128938bf095ce374e9f02be1f | refs/heads/master | 2021-01-20T20:52:13.214634 | 2016-08-19T02:18:31 | 2016-08-19T02:18:31 | 63,662,274 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,401 | cpp | Test.cpp | #include <iostream>
#include "..\Book Files\Chapter06\Complex.hpp"
#include "Stack.h"
using namespace std;
Complex myFunc(const Complex& z)
{
return z * z;
}
Complex ComplexProduct(Complex* carr, int n)
{
Complex product = carr[0];
for (int j = 1; j < n; j++)
product *= carr[j];
return prod... |
d9239b37b56006b5320fac23bcc7fdbd190eb241 | cf418f41f6ac7e2316fd80a5695233e01d10afb9 | /tests/JSONRPCTestServer/main.cpp | 3a9ae752b2cf30f4dafdecece975ab5ace1f78ad | [
"Zlib"
] | permissive | wolfgang1991/CommonLibraries | 7757fe0cdcfa2911260a0f3e52ac4c79730490c5 | 07ec5aa06566bf21b6352caa3d57952edbd94d06 | refs/heads/master | 2023-08-21T14:30:44.137173 | 2023-05-30T23:17:55 | 2023-05-30T23:17:55 | 243,551,004 | 0 | 0 | NOASSERTION | 2023-09-12T11:09:46 | 2020-02-27T15:32:35 | C++ | UTF-8 | C++ | false | false | 3,920 | cpp | main.cpp | #include <timing.h>
#include <StringHelpers.h>
#include <JSONRPC2Server.h>
#include <JSONRPC2Client.h>
#include <SimpleSockets.h>
#include <CRC32.h>
#include <iostream>
#include <cassert>
#include <cerrno>
#include <cstring>
#include <list>
#include <utility>
#define RPC_PORT 62746
#define SPAM_PERIOD 1.0
#define D... |
a7fef6afe3c3fff09facb42886e20cc613921898 | 56a64f6acdaf9c32eb4a2256fab048e277862e1c | /03-D3D-Test/03-D3D-Test.cpp | 099b3a6ef7cace1a89341d0555ca658bddccfac0 | [] | no_license | lazyartist/Win-Direct3D | 671dfc9c5a2b174ae6f9034839f415836e3c7ea1 | 7d92082d91be7a8a47a3f4a8ec3300b998908fcf | refs/heads/master | 2020-07-27T13:22:50.042906 | 2019-11-05T08:25:43 | 2019-11-05T08:25:43 | 209,103,024 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,444 | cpp | 03-D3D-Test.cpp | //#define _XM_NO_INTRINSICS_
#include "pch.h"
#include <iostream>
#include <d3d9.h>
//#include <d3d.h>
//#pragma comment (lib, "d3d9.lib")
#include <DirectXMath.h>
#define PI 3.14159265359
using namespace std;
using namespace DirectX;
void TestMatrix();
void TestMatrixLinear();
void TestMatrixQuaternion();
void Te... |
8101b0e2e6c9f90bdeac04e16eff6de27441fdb7 | cb88ccece7e0526fb7ebafd4f92ac24e688d7ed0 | /main.cpp | c0b9637963f9c69087e009ea33eea9e3fda13fb2 | [] | no_license | marek231/mandelbrotset | 1c66ab2cc6c89b282e3664f46c6f931aaf9a7bfd | c266a19ce5dbc6261cb1072dd11fab544753197d | refs/heads/master | 2020-03-17T11:36:22.814281 | 2018-05-15T18:40:09 | 2018-05-15T18:40:09 | 133,557,414 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,001 | cpp | main.cpp | #include <SFML/Graphics.hpp>
#include <iostream>
#include <array>
#include <vector>
#include <thread>
static constexpr int IMAGE_WIDTH = 960;
static constexpr int IMAGE_HEIGHT = 540;
class Mandelbrot {
public:
Mandelbrot();
void UpdateImage(double zoom, double offset_X, double offset_Y, sf::Image& imag... |
00eeac662895630cbb4ab243906febc0fe8d885f | c3e67157a7247833e3cb311fbc5f22b66250d109 | /Server/InputListener.h | 383d07ede395d8f8eff27668f8509ac5abc1eab6 | [] | no_license | kaagreen/ICS | c2e17f88088feab3161ed73f25ec8915c2885b83 | 86e766ed26cf3071ed5128e86bf9ecbcabdad9fb | refs/heads/master | 2020-08-31T19:11:53.421454 | 2019-10-31T14:16:01 | 2019-10-31T14:16:01 | 218,763,721 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 163 | h | InputListener.h | #pragma once
#include <Windows.h>
#include <iostream>
class InputListener
{
public:
DWORD start(LPVOID mParams);
protected:
virtual std::string getSTDIn();
};
|
7303ed6268c33ab3312919f110f316b65ecb2587 | 0c4bd1b977cc714a8a6b2839f51c4247ecfd32b1 | /C++/nnForge/nnforge/nnforge.h | b148fc3504678e734310c8915b885aaee906677a | [
"Apache-2.0"
] | permissive | ishine/neuralLOGIC | 281d498b40159308815cee6327e6cf79c9426b16 | 3eb3b9980e7f7a7d87a77ef40b1794fb5137c459 | refs/heads/master | 2020-08-14T14:11:54.487922 | 2019-10-14T05:32:53 | 2019-10-14T05:32:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,879 | h | nnforge.h | /*
* Copyright 2011-2016 Maxim Milakov
*
* 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 applic... |
6b9683a20a6f1a5cea60f3d1d84934a364b2e04c | dbf18505b5f04bd743a6b57b85708258ad5e0398 | /benchmarks/sgolferval.cpp | 1f47e1e7a2048d6a644a05e66f5af4418bcc1ffd | [] | no_license | thanhtrunghuynh93/kangaroo | fbdbd7f14f1aa589d27a22153eca65d105bc460a | b1d1dfcd03919ec077a92ffb7056c99ad2f6418c | refs/heads/master | 2021-05-30T02:20:19.391474 | 2015-11-11T18:21:20 | 2015-11-11T18:21:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,955 | cpp | sgolferval.cpp | /*!
@file sgolferval.cpp
@brief The solution validator program for social golfer.
@details This is the source file for the solution validator for social golfer.
@author M.A.Hakim Newton hakim.newton@nicta.com.au
@author Duc Nghia Pham duc-nghia.pham@nicta.com.au
@date 25.07.2010 QRL NICTA www.nicta.com.au
*/
#i... |
66c573143dc2559fb782e1b27e2ee77a2bc200a5 | bcc78d050f364849fba418360a8d207df2efe064 | /src/rutils.h | 2e6049e44a1d48c12cbe28d8cd8a9c45cd008b52 | [] | no_license | skwashi/rigidgl | ac160e787210e7f23c981cc71cacc2f7af1a37d2 | bae8421b9c69400f903a987b7a4c910110a9b9ba | refs/heads/master | 2021-01-10T19:53:57.994074 | 2015-06-07T20:09:56 | 2015-06-07T20:09:56 | 35,351,145 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 622 | h | rutils.h | /**
* @author Jonas Ransjö
*/
#ifndef RUTILS_H
#define RUTILS_H
#include <FreeImage.h>
#include <string>
#include "rtypes.h"
#include "gl/mesh.h"
namespace rutils
{
std::string readFile(const std::string& filename);
std::string readFile(const char* filename);
FIBITMAP* loadImage(const char* fname);
bool loadIm... |
6127b10ad285d3248f7ec39b2278a1ffd261a6e4 | 9f81e16518deca908366de2998f73f70129124a4 | /summary/leetcode/873.最长的斐波那契子序列的长度.cpp | 2d5c7cb543ec933461a8d64675e5bf3517ba7421 | [] | no_license | Breesiu/note-algorithm | 47bec559c73f1807d68dc380f93577568e6e3682 | fbd6f01d84502ec2e760878cbb860c5e05fb0103 | refs/heads/master | 2023-07-16T15:37:00.315348 | 2021-09-05T14:30:56 | 2021-09-05T14:30:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 699 | cpp | 873.最长的斐波那契子序列的长度.cpp | class Solution {
public:
int lenLongestFibSubseq(vector<int>& arr) {
// dp[i][j]以i,j结尾的序列长度
int ans = 0;
int n=arr.size();
map<int,int> val2rank;
for(int i=0;i<n;i++)val2rank[arr[i]]=i;
vector<vector<int> > dp(n,vector<int>(n,2));
for(int i=1;i<n;i++)... |
6760c012eb3f83ad175784640df167f94fa2fee5 | 5e998be7b8a00599dbe5a513360f89a2adf3b6a4 | /translator/iCPrimaryExpression.cpp | 5997473f61c9814876b5d48149359821c591ded1 | [] | no_license | ecolog/IndustrialC | 017865c01bca616d52ddc4cdc2f971ee3f50b010 | 239bc97291642c3d63b175e616a3dfe64de27da2 | refs/heads/master | 2023-03-19T23:11:59.173670 | 2019-12-12T15:46:39 | 2019-12-12T15:46:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 814 | cpp | iCPrimaryExpression.cpp | #include "iCPrimaryExpression.h"
#include "CodeGenContext.h"
#include "ParserContext.h"
//=================================================================================================
//Code generator
//=================================================================================================
void ... |
ce0062bec6af537118d76eae38f683afb351ec8c | b50bc7c8a3ee966b05de80a318c94a8c2f616399 | /MPBCompositeShapeRoom.cpp | 96488ed28b7ce45ec6e71a8c4aa4231ac254630f | [] | no_license | mpb-cal/MPB-Game-Library | 8420e4c5613f985b9a6d4851ecb0ab0f84b9e69a | 8d1ead5288f84eb139139b8eb5ffaf52ab4442c8 | refs/heads/master | 2020-12-04T10:05:13.961280 | 2020-01-04T06:48:58 | 2020-01-04T06:48:58 | 231,721,364 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,005 | cpp | MPBCompositeShapeRoom.cpp |
#include "MPBGlobal.h"
#include "MPBOpenGL.h"
#include "MPBShape.h"
#include "MPBShapeBox.h"
#include "MPBShapeFrustum.h"
#include "MPBCompositeShapeRoom.h"
#include "mmgr.h"
MPBCompositeShapeRoom::MPBCompositeShapeRoom(
MPBFLOAT xPos, MPBFLOAT yPos, MPBFLOAT zPos,
MPBFLOAT width, MPBFLOAT height, MPBFLOAT depth,... |
c99768fb0b513db31546bc9cde322712e2c2fced | 56bb8d59f3c9bc145dcf556f34bccd38c8039a79 | /src/wasm/chaining_util.cpp | c03c7ac5b96a08856b9ea26b1c811bcadadcb4a5 | [
"Apache-2.0"
] | permissive | sleipnir/faasm | 69d774f0f341142c2ed888836ca519f863afcd04 | 71f2e474b8ce00ae1af73f24b2104be996a15266 | refs/heads/master | 2023-04-28T04:15:58.988357 | 2021-05-14T06:39:35 | 2021-05-14T06:39:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,170 | cpp | chaining_util.cpp | #include "WasmModule.h"
#include <faabric/scheduler/Scheduler.h>
#include <faabric/util/bytes.h>
#include <faabric/util/func.h>
#include <wasm/chaining.h>
namespace wasm {
int awaitChainedCall(unsigned int messageId)
{
int callTimeoutMs = faabric::util::getSystemConfig().chainedCallTimeout;
int returnCode =... |
8e9df38e0d87efb6816955d629ad6cbbb871e281 | df0d09f4ac3c7abcb079d32cea4cb8c1bdecc45c | /utils/img_morphology/img_morphology.cpp | 50d1cf587b176e3a853f70a84e08d541978f51a5 | [
"MIT"
] | permissive | nmalex/renderfarm.js-server | 3260c030c45326829abf4977baefe15fd675264d | 52e1ccb44f101693c41f923491b395ceb369b258 | refs/heads/master | 2022-09-05T09:09:17.563918 | 2021-09-20T09:03:19 | 2021-09-20T09:03:19 | 155,418,831 | 56 | 9 | NOASSERTION | 2021-03-23T05:54:33 | 2018-10-30T16:23:25 | TypeScript | UTF-8 | C++ | false | false | 1,460 | cpp | img_morphology.cpp | #include "stdafx.h"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv/highgui.h"
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
using namespace cv;
using namespace std;
int main(int argc, char** argv)
{
if (argc != 6)
{
cout << " Usage: img... |
1e0cca1fd78e9ea87e90e8fad4869a66e0686310 | e9fb3905a6baa65cd3765d0d6d18ebe3d2b07934 | /Src/PPLib/Cliagt.cpp | 18a42bdfb189ec27e2510a85c1ff1f1e228cc4b2 | [] | no_license | Shulikov-v/OpenPapyrus | bb2e26bdff669af58a1268ef84793ff9f25bb648 | 272cee0df983fb1d9cb0627ac627dbb15b2800cf | refs/heads/master | 2021-01-21T07:10:46.251906 | 2017-02-26T15:27:53 | 2017-02-26T15:27:53 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 68,785 | cpp | Cliagt.cpp | // CLIAGT.CPP
// Copyright (c) A.Sobolev 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
// @codepage windows-1251
// Соглашения с клиентами об условиях торговли
//
#include <pp.h>
#pragma hdrstop
#include <ppidata.h>
SLAPI PPClientAgreement::PPCli... |
163f36c7166f3301ede2cfc6e61590a64d753869 | 7addc813ddaa31ed381f1d2f9fa94a7915857fea | /Data Structures/Linear/Array/question4.cpp | 9aa5493bebb3615a571bb04a29ff15b49f1b46df | [] | no_license | JasbirCodeSpace/Spider-Task-2 | 595127ee45c9282753ebf69921ee8015a465cf0c | 637f6d0d2a8924950036327ebb2b959f6c227b81 | refs/heads/main | 2023-03-11T09:54:35.486541 | 2021-02-25T19:28:02 | 2021-02-25T19:28:02 | 329,349,675 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 965 | cpp | question4.cpp | //Question: https://practice.geeksforgeeks.org/problems/sort-an-array-of-0s-1s-and-2s/0
#include <bits/stdc++.h>
using namespace std;
#define RANGE 3
void sort_array(int *arr, int size)
{
int count[RANGE] = {0};
for (size_t i = 0; i < size; i++)
{
count[arr[i]]++;
}
int j = ... |
21a0e38fabf1a925864944375387533db66964be | d69528049d01201d170538207cc8ece7457553c7 | /.Archive/1071.greatest-common-divisor-of-strings/Solution.cpp | 0d002a813d689629a1e91f95186fda78eda11a5c | [] | no_license | lightjiao/LeetCode | 1125565fdfc581108f763150ff880e8654d98a00 | 513f60d14fdc942143f553a1decfca7034a9814c | refs/heads/master | 2021-07-14T01:33:29.188614 | 2021-03-18T14:31:23 | 2021-03-18T14:31:23 | 243,549,574 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,341 | cpp | Solution.cpp | /**
* 对于字符串 S 和 T,只有在 S = T + ... + T(T 与自身连接 1 次或多次)时,我们才认定 “T 能除尽 S”。
返回最长字符串 X,要求满足 X 能除尽 str1 且 X 能除尽 str2。
示例 1:
输入:str1 = "ABCABC", str2 = "ABC"
输出:"ABC"
示例 2:
输入:str1 = "ABABAB", str2 = "ABAB"
输出:"AB"
示例 3:
输入:str1 = "LEET", str2 = "CODE"
输出:""
提示:
1 <= str1.length <= 1000
1 <= str2.length <= 1000
str1[i] ... |
2fb8b5ce730d17046eff6699e1717a9b4e3dd4cf | 7fcd19b14e8e9b8da99d60496d8bc39fa1dddf08 | /greedy/spoj.cpp | 26363e343bce894d2d8c6015370773baaed06a36 | [] | no_license | balramsingh54/Data__stru_C- | e6103e230aef3bbc81761be56a42b4f828f5bb4d | 491277c57abe5f3ce7364689f50eedf780f01fa7 | refs/heads/master | 2020-06-16T12:31:51.961303 | 2019-08-02T16:01:08 | 2019-08-02T16:01:08 | 195,575,590 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 229 | cpp | spoj.cpp | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
cout<<"hello"<<endl;
int num, start, end;
for (int i = 0; i < num; i++)
{
cin>>start;
cin>>end;
}
return 0;
} |
4f0bb30c535c338205133af5d068ba25ca305117 | 447cfa0acc4a565a2ed7515bce5e12056e7583d9 | /PC_Tracker/APU.SDL.OLD.DONT.TOUCH/gme_vspc/std/debugger/Voice_Control.cpp | 775f802f014e5c8ff444f974c08eda8356b14af8 | [] | no_license | bepisTM/SNES-Tracker | 0608d4a32cd081183a01481b7768021b2576c286 | b98ebf5618d2acbfc6f60519868802092ff76410 | refs/heads/master | 2021-05-04T23:17:42.114218 | 2016-04-09T03:44:13 | 2016-04-09T03:44:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,863 | cpp | Voice_Control.cpp | #include "Voice_Control.h"
#include "gme/player/Music_Player.h"
Voice_Control::Voice_Control()
{
}
void Voice_Control::checkmouse_mute(Uint16 &x,Uint16 &y)
{
char changed=0;
SDL_Rect *r1 = &Screen::voice0vol;
SDL_Rect *r2 = &Screen::voice0pitch;
for (int i=0; i < 8; i++)
{
// if we click on the number... |
8a5657119a69bacb2cd6d38e117df2ba9d84ddd7 | 6c9fe85383c316d187a3d529c93cfa4e0bfc6143 | /popular/t1079.cpp | 202bdf4e295bf92fa1e5cc15e0ca16e2ae018637 | [] | no_license | OLDMAN007/jisuanke | 59d08f0f667b3fa02d92d83f1c094f7477e79a89 | c6f43a5a2da3ac3e5f240aff6d64e300307c5883 | refs/heads/master | 2020-12-01T06:06:31.731185 | 2020-02-28T06:06:23 | 2020-02-28T06:06:23 | 230,572,100 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 760 | cpp | t1079.cpp | //
// Created by OLD MAN on 2020/1/6.
//
//#include<bits/stdc++.h>
#include <iostream>
using namespace std;
int main(){
int n,m;
cin>>n>>m;
bool a[n];
int w=1;
for(int i=0;i<n;i++){
a[i]=true;
}
for(int i=1;i<=m;i++){
if(i==1){
for(int j=0;j<n;j++){
... |
cb82f284851111977ea0e76ddb5445cc94d1d481 | aae51c7874e7f814f3591d2ccbeb66eb74e9149c | /Codeforces/Round 479 Div 3/E/E.cpp | 44a312d5acbb6894088e01615af0e0b5167e08b1 | [] | no_license | cortesjpb/Programacion-Competitiva | 86adef35601e236dfdff3a41bb64f948aa1c097f | bf6d9984cebdbd2399879f6e828971055ad8e9cd | refs/heads/master | 2021-08-16T22:17:31.702740 | 2020-05-05T13:09:27 | 2020-05-05T13:09:27 | 176,312,126 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 820 | cpp | E.cpp | #include <bits/stdc++.h>
using namespace std;
int n, v[100010],length[100010];
vector<int>vs[100010];
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
freopen("entrada.txt","r",stdin);
cin>>n;
vector<int>vs[n];
for(int i=0;i<n;i++)
cin>>v[i];
for(int j=0;j<n;j++){
length[j]=1;
for(int i=... |
c73b32a53edb1a8935441c315a52f57c948cff00 | 93a718be753edc4ec5929858923012021034390d | /passwordcheck.cpp | 15c4451284ab09cfc3b8c32e1d61eea98e69de6c | [
"MIT"
] | permissive | aleezeh611/Password-Cracker-using-Distributed-Systems | 8aca6ceb5aa1567436659f5d2d93ebb98ccdbbc1 | 6d9b41a9f20672c458a34b377e004dddefd86a5c | refs/heads/main | 2023-07-18T15:52:42.672417 | 2021-09-11T22:05:57 | 2021-09-11T22:05:57 | 393,689,917 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,369 | cpp | passwordcheck.cpp | /*
Basic Logic:
-In our master machine (process id 0) we will read shadow.txt file and use tokenize function to parse the sentence to get salt and encrypted key
-Then we send the length of salt, length of key, salt and encrypted key to each of the slave processes to use to search for password.
-We will dynamically di... |
28750fbb3115da8cca56a7a5550051a09072c41c | e79cb86744b9cc5d46912f2f9acdb5ffd434f745 | /src/grt/src/fastroute/src/FastRoute.cpp | 798e68b92da5d16a4153faf75753ca10032fe842 | [
"BSD-3-Clause",
"MPL-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | The-OpenROAD-Project/OpenROAD | 555cbb00ec250bb09b9e4f9a7d1454e7ac7a01ab | 1f6ccc9066e7df4509ed391d87b01eadb4b3b197 | refs/heads/master | 2023-08-31T05:35:25.363354 | 2023-08-31T05:04:27 | 2023-08-31T05:04:27 | 218,110,222 | 979 | 461 | BSD-3-Clause | 2023-09-14T21:51:36 | 2019-10-28T17:48:14 | Verilog | UTF-8 | C++ | false | false | 40,730 | cpp | FastRoute.cpp | ////////////////////////////////////////////////////////////////////////////////
// Authors: Vitor Bandeira, Eder Matheus Monteiro e Isadora Oliveira
// (Advisor: Ricardo Reis)
//
// BSD 3-Clause License
//
// Copyright (c) 2019, Federal University of Rio Grande do Sul (UFRGS)
// All rights reserved.
//
// Red... |
526f1e5ba27d2e1bbb611038709e652964448645 | fa4232a6eadc3406a21994d851ef6731780e6cac | /src/[M] 845. Longest Mountain in Array.cpp | 52c81d6d6691ac87b90c5b9f66e710680663b2b2 | [] | no_license | freezer-glp/leetcode-submit | 8244bfcda0729bd24218e94a5fd8471763373ac0 | e3e8ff335b86a039df6ca2e5a9e7ed3ca8a05eb0 | refs/heads/master | 2021-09-20T09:03:00.515440 | 2021-09-09T14:20:22 | 2021-09-09T14:20:22 | 26,519,223 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | cpp | [M] 845. Longest Mountain in Array.cpp | /*
Let's call any (contiguous) subarray B (of A) a mountain if the following properties hold:
B.length >= 3
There exists some 0 < i < B.length - 1 such that B[0] < B[1] < ... B[i-1] < B[i] > B[i+1] > ... > B[B.length - 1]
(Note that B could be any subarray of A, including the entire array A.)
Given an array A of inte... |
fe00a4cad98c62eaff92d3ccb5c4e56d7f9b26bf | 55f2a154d1ce3f0b54714176a3d5182a25ea47f7 | /QFT/LorentzVector.h | 353fbb760b197f89edeabf6ab6926a42fc45eb1a | [] | no_license | zaynesember/CompPhys | 9c2f1478a2c8a69168448539103130f17cd3547f | 7be98ae37a3c2e0705669906e26bdd5cedad7920 | refs/heads/master | 2021-01-14T02:24:46.485321 | 2020-02-19T20:57:08 | 2020-02-19T20:57:08 | 242,570,308 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,262 | h | LorentzVector.h | #ifndef LORENTZVECTOR_H
#define LORENTZVECTOR_H
#include <cmath>
#include <math.h>
#include <string>
#include <iostream>
#include <sstream>
// Minimal four-vector class
class LorentzVector{
// Partially stolen from ROOT::TLorentzVector (https://root.cern.ch/doc/master/classTLorentzVector.html)
public:
LorentzVect... |
50ac54438f8ee32eb4de6464c88a195a530b95a6 | 2967fb4c6330941ca42fb8bdce47504050a32ae2 | /c++ project/Sword finger offer/O56/O56-3.cpp | d67b5b2e44f49446b1611ed65622dfb70804f366 | [] | no_license | wxx17395/Leetcode | 988ec692ac4f599fbd23f65b92e835972aff1bea | eb568d571e76fd4c2fc3eabadd547680516d2f1e | refs/heads/master | 2023-06-02T17:16:31.980772 | 2021-06-23T06:56:32 | 2021-06-23T06:56:32 | 281,373,596 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 380 | cpp | O56-3.cpp | #include <bits/stdc++.h>
using namespace std;
class Solution {
public:
int singleNumbers(vector<int>& nums) {
int res = nums[0];
for (int i = 1; i < nums.size(); ++i){
res = res ^ nums[i];
}
return res;
}
};
int main()
{
vector<int> nums{1,1,6,2,2,3,3};
cout... |
d5610913267a807f8e86d3bfca713f62c3045a07 | 741eadadf19dc7bd5acf9718ba27913d12a34ab7 | /src/SimpleMessenger.cpp | fd0a4526953f7544881d053e43f4d2ecfca50a5d | [
"MIT"
] | permissive | igormich/MessengerCPP | bf449251caf7b6ef34f48a540f82d37d684e4144 | fcc4d3e259ba5a395439cb341ecaaefc7e398ea3 | refs/heads/main | 2023-05-31T14:43:15.801986 | 2021-06-23T11:15:14 | 2021-06-23T11:15:14 | 379,202,074 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,400 | cpp | SimpleMessenger.cpp | // SimpleMessenger.cpp: определяет точку входа для приложения.
//
#include "SimpleMessenger.h"
#include "ChatServer.h"
#include "ChatClient.h"
#include "TcpServer.h"
#include "utils.h"
#include <iostream>
#include<sstream>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include<conio.h>
#... |
21d938c85be11c75576b2e43298445db607061cc | ac59696695eaf6271aa9d154fa1e34d267cb1851 | /leetcode53.cpp | 113e6ac7d6b5ce33426d094c34701a0e38b5aa08 | [] | no_license | hanwenlei/Leetcode | 35dc21805292e0b309e863c449a6117e66eac803 | e65d11f71be8a6d806f4aadcff5f6a4aeb695b1f | refs/heads/master | 2020-05-15T04:42:31.397408 | 2019-04-18T13:25:28 | 2019-04-18T13:25:28 | 182,091,998 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | cpp | leetcode53.cpp | #include<iostream>
#include<vector>
#include<algorithm>
#include<cstring>
using namespace std;
class Solution {
public:
int maxSubArray(vector<int>& nums) {
int length = nums.size();
vector<int> dp(length);
memcpy(dp.data(), nums.data(), length*sizeof(int));
for(int i ... |
95a51985568d6cb7965c01082a65c7ddca3e1639 | 5df1a677af9379c9a82f1b29359a65ad8cbc385e | /easyctf/xor.cpp | b27a36a408cf964677a12910c0ff02affb698b10 | [] | no_license | heyshb/Competitive-Programming | 92741a4e7234e1ebce685c1b870f1287bee18f1a | 363ef78d950afb53f0e5f1d2329f27dd7b9a44c2 | refs/heads/master | 2021-12-15T03:12:37.676111 | 2021-12-01T14:32:25 | 2021-12-01T14:32:25 | 122,315,094 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 366 | cpp | xor.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
char s[100];
//scanf("%s",s);
int len = 0;
char c = getchar();
while(c != '\n')
{
s[len++] = c;
c = getchar();
}
//printf("%s\n",s);
for (int i=0;i<=128;i++)
{
for (int j=0;j<len;j++)s[j] ^= i;
for (int j=0;j<len;j++)printf("%c",s[j]);puts(... |
312dc7ca4c4e5503fc40f5ec05d5a4ed4bf57a39 | ed4e9404a47e20a267d71ce305634cf75ea2aaca | /Subsystems/Vision.cpp | d61bf5d24189ffc92002d9a4f3fd1e31b7088081 | [] | no_license | FRCTeam1073-TheForceTeam/robot14 | 9cfbd66b5e9006e7116d2cad44584a7b0d5ebce0 | ee1b18849613a52799e8be89a0579771b1c973e8 | refs/heads/master | 2020-05-19T10:41:23.081962 | 2014-06-29T15:01:43 | 2014-06-29T15:01:43 | 15,571,667 | 0 | 0 | null | 2014-05-23T18:04:06 | 2014-01-01T23:12:41 | C++ | UTF-8 | C++ | false | false | 985 | cpp | Vision.cpp | /* FIRST Team 1073's RobotBuilder (0.0.2) for WPILibExtensions ---
Do not mix this code with any other version of RobotBuilder! */
#include "Vision.h"
#include "../Robotmap.h"
Vision::Vision() : Subsystem("Vision") {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
// END AUTOGENERATED CODE, SOURCE... |
6494895091d210ac25d56bb68a832dfc92ba992f | 51c795ce880d383623551271b30f0f4d266a998a | /src/zlibbuffer.h | f1a0bdc3cf946fdbc3a01e889380368d7ca6593d | [] | no_license | timofonic/proximodo | 53329f0720101514621fcbe4e06d07ed1d9afca3 | bb860b4d9c3460f94c7da4e0fc98fa88804265d0 | refs/heads/master | 2017-12-02T13:35:12.925643 | 2010-11-22T15:00:13 | 2010-11-22T15:00:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,018 | h | zlibbuffer.h | //------------------------------------------------------------------
//
//this file is part of Proximodo
//Copyright (C) 2004 Antony BOUCHER ( kuruden@users.sourceforge.net )
//
//This program is free software; you can redistribute it and/or
//modify it under the terms of the GNU General Public License
//as published b... |
4d41ab9fd600698291e4cef3b35c0f56c3d421ab | 2bf4c0b96359ef98939a56e8f42ae1231603e3f2 | /libdiscover/backends/FlatpakBackend/FlatpakFetchDataJob.h | 43266dac5837d894a5e9c10d46bd078facaa0754 | [] | no_license | 0fff5ec/discover | 80d6d9d3a1043de78d9976b9412c97ffb92f71dd | 718e6fdc1019f2a3153b1c45f79b90ec598a826d | refs/heads/master | 2023-01-04T03:00:11.951925 | 2020-10-29T20:42:01 | 2020-10-29T20:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 706 | h | FlatpakFetchDataJob.h | /*
* SPDX-FileCopyrightText: 2017 Jan Grulich <jgrulich@redhat.com>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef FLATPAKFETCHDATAJOB_H
#define FLATPAKFETCHDATAJOB_H
#include <QByteArray>
extern "C" {
#include <flatpak.h>
#include <glib.h>
}
class Flatpak... |
7cd260e86192ee7d09ca32498b3188cbf6134575 | a5568d035e6296b69cf73f168cad98c2913a6e74 | /LeetCode/34.在排序数组中查找元素的第一个和最后一个位置.cpp | ccfd60b4940383ddb554cd53f10ba5a7a68f479b | [] | no_license | zgzhengSEU/Algorithm-Learning | 820696b52ea9fe31a0ec53e12c6f83ba71babef9 | 094ec0dfd2edd4e64c2e861f8fc8c2c5b0eb16f8 | refs/heads/main | 2023-09-04T22:43:04.620494 | 2021-10-26T13:31:33 | 2021-10-26T13:31:33 | 393,593,294 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,872 | cpp | 34.在排序数组中查找元素的第一个和最后一个位置.cpp | /*
* @lc app=leetcode.cn id=34 lang=cpp
*
* [34] 在排序数组中查找元素的第一个和最后一个位置
*
* https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/description/
*
* algorithms
* Medium (42.48%)
* Likes: 1165
* Dislikes: 0
* Total Accepted: 317.7K
* Total Submissions: 748.1K
* Testcase... |
2fa7ab153b6d7fd66158156fdda33ffe7a503b26 | 87a2896f868dc13f89ecbb629d897f0ffe8a57e6 | /Code/877b.cpp | 846d8ca0a6ed03a0ea9ce0c9e68aff3622f77988 | [] | no_license | sahashoo/Daily | a20a4bce60b0903fde23bea9d5244c65a9ea3928 | c209cf800cbae850e2233a149d3cc8181b49fb5e | refs/heads/master | 2020-04-23T04:31:13.770829 | 2019-02-15T20:00:34 | 2019-02-15T20:00:34 | 170,910,172 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 427 | cpp | 877b.cpp | ///age yekam bekeshi beham is no problem ._.
#include<bits/stdc++.h>
using namespace std;
const int maxn=5e3+7;
int a[maxn],b[maxn];
int main(){
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
string s;cin>>s;
int n=s.size();
for(int i=0;i<n;i++)
a[i+1]=a[i]+(s[i]=='a'),
b[i+1]=b[i]+(s[i]=='b');
int m... |
318f863be5ac5033eebfd9bf64ce40c91cfa1e57 | f6089f3201c2d051aad4418d22c8857fdb33b651 | /498. Diagonal Traverse.cpp | f18eca9a9e91c96eb000db6d82aacf5bf1119cf0 | [] | no_license | RitikJainRJ/Leetcode-Practice | 3c1224bd568e3dfe86aad0ff71dafe1a7cf716bf | 3a6a2a9b7877da1047206776096d3c00cac468e1 | refs/heads/master | 2023-01-01T17:30:28.680131 | 2020-10-17T04:47:33 | 2020-10-17T04:47:33 | 262,249,540 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 651 | cpp | 498. Diagonal Traverse.cpp | class Solution {
public:
vector<int> findDiagonalOrder(vector<vector<int>>& mat) {
if(mat.size() == 0 || mat[0].size() == 0) return {};
int n = mat.size(), m = mat[0].size();
vector<int> res;
int i = 0, j = 0;
while(i < n && j < m){
while(0 <= i && i < n && 0 <... |
31561b69cbcb0b4bd50f86ae44e782ade6666dfd | 761afe0f6d97c5ed50b937ecd006901afb2c3e96 | /MPI/mpi_hello_world/helloWorld.cpp | a49d038805ec1760b8ef66d10dec5affbedbed7b | [] | no_license | sebas095/HPC | 819276c193344d663e1d39363c4bdcb0cdbd786d | f8b9fc860192df491b8f9fa6a41f44fe9850dc61 | refs/heads/master | 2020-04-19T10:51:10.094174 | 2016-11-23T18:42:39 | 2016-11-23T18:42:39 | 66,045,247 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 417 | cpp | helloWorld.cpp | #include <cstdio>
#include <iostream>
#include <mpi.h>
using namespace std;
int main(int argc, char *argv[]) {
int rank, size;
MPI::Init(argc, argv); // starts MPI
rank = MPI::COMM_WORLD.Get_rank(); // get current process id
size = MPI::COMM_WORLD.Get_size(); // get number of processes
cout << ... |
7446ac1f30457a80b996539001ada5b4cfeda580 | 0ea667c313cc7c3a899d292c31ceb39379c8771d | /14. DP/19b. Palindrome Partitioning II with cuts indices (LC#132) [DP].cpp | 396ff2f16e7aba9429b809177dc7f8901307854f | [] | no_license | prashkrans/DSA | 3503f923dfb81006ccfdcc463c64c3ffcaa8449f | c24e0aee76370f4efe5d18ec1cf8da3016a86094 | refs/heads/master | 2022-03-08T20:50:25.501832 | 2022-02-26T18:56:55 | 2022-02-26T18:56:55 | 126,618,737 | 0 | 0 | null | 2022-02-26T18:56:55 | 2018-03-24T16:33:44 | C++ | UTF-8 | C++ | false | false | 2,430 | cpp | 19b. Palindrome Partitioning II with cuts indices (LC#132) [DP].cpp | /* DP Problem 19 - Palindrome Partitioning II (LC#132)*/
// Running time = O(n^3) i.e. cubic
// Auxiliary space = O(n^2)
#include<iostream>
#include<vector>
using namespace std;
bool isPalin(string s, int i, int j) { // Can also use a bool matrix storing the values if substr(i, j) is a palindrome as in method 2
... |
0a422c77800d9d95bd459f16e16e7aa9158dffa5 | e733c651cf49087e7919089175b04ebb46ee6162 | /src/eva_loader.cc | 89ac4742e9ec61c7c8fd52f9fb18f6e129962192 | [] | no_license | gezhuang0717/mass-ana-t | a691a767eb3324b98a63d13b177966379a0f5c24 | c0d838eee7ddd5b6a1ef08ec06d4a7fd49e604fd | refs/heads/master | 2022-04-14T19:39:30.117876 | 2020-04-10T21:49:08 | 2020-04-10T21:49:08 | 254,737,716 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,394 | cc | eva_loader.cc |
/* Jochen Ketter, 16. Mai 2008
* Versuch, eine dat-Datei des MM6 auszulesen.
*
*/
#include <iostream>
//#include <iomanip>
#include <fstream>
#include <string>
#include <sstream>
#include <time.h>
//#include <vector>
#include <cmath> //Äquivalenter Aufrufz zu math.h?
//#include <math.h>
#include "collection.hh"
... |
0d0f086f5ef759232c7423a5f1eb309629b53217 | 55cfa1eed966766aeb72e54a1ed6f2591255e5c0 | /SpiralMatrix.cpp | aefd31b3ac4b82a2b679046c4f161be744d42f04 | [] | no_license | iCodeIN/leetcode-4 | 1bf2751c861ccf1652b0e5b096595e6874e568e3 | 9081802f99da6cfded421fe10052839bad449fd2 | refs/heads/master | 2023-01-13T07:22:53.362907 | 2020-11-13T03:56:20 | 2020-11-13T03:56:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,864 | cpp | SpiralMatrix.cpp | class Solution {
public:
vector<int> spiralOrder(vector<vector<int>>& matrix) {
vector<int>res;
if((matrix.size()==0) || (matrix[0].size()==0))
return res;
int i,j,rowbegin=0,rowend=matrix.size()-1,colbegin=0,colend=matrix[0].size()-1;
while((rowbegin<=rowend) && (colbe... |
47d85f65e5e2f94d93672dfb7062525c4952181d | 67eb9168c8c1d30dff10a2852e4416bedd3f58e1 | /.gitignore/Classes/GameScene.h | ec2cbb45c443c65f19b1dd6ad5967159664eac67 | [] | no_license | LTTTTTE/Cocos2dx.game.sautda | b4dc161b0b68fb563a59a8f12025c6066e613c29 | fc87faab4bca125f652bdb4d92432aed7ecba9df | refs/heads/master | 2020-03-17T08:52:39.773522 | 2019-04-13T03:25:04 | 2019-04-13T03:25:04 | 133,452,851 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,055 | h | GameScene.h | #include "cocos2d.h"
#pragma execution_character_set("utf-8")
USING_NS_CC;
class Player {
private:
double money;
int cardPower;
public:
int arr_player_card[3];
bool isCheck;
bool isHalf;
bool isCall;
bool isDie;
bool myTurn;
void setMoney() { money = 10000; }
void setMoney(doub... |
659223bee5867e73ba41692f997010fdbbf17cb3 | 1c1c1fed0952aeacb4ccd3ce9374f67f0e92cae6 | /9.cpp | 41bb95da218a36f20d54a52ca2da07ae01bd00b1 | [] | no_license | guipolicarpo/C | 1e0898de96b9fb9106dc5dc42c06f98d3d78f7a2 | acb61820d01993af7a574e0797c51be40be2aa4d | refs/heads/main | 2023-02-08T03:07:13.997048 | 2021-01-04T18:32:57 | 2021-01-04T18:32:57 | 326,767,171 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 372 | cpp | 9.cpp | #include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<locale.h>
main(){
setlocale(LC_ALL, "Portuguese");//habilita a acentuação para o português
float p,a,i;
printf("Digite o Peso em KG: ");
scanf("%f", &p);
printf("Digite a Altura em Metros: ");
scanf("%f", &a);
i=p/(a*... |
184606f0c1401e7527cf8ce130635574ac9cfc94 | 182bbadb0ee7f59f1abd154d06484e555a30c6d8 | /core/indigo-core/reaction/src/base_reaction_substructure_matcher.cpp | 687214a4e1907fc3a5305b0328b711224ab4fbb7 | [
"Apache-2.0"
] | permissive | epam/Indigo | 08559861adf474122366b6e2e499ed3aa56272d1 | 8e473e69f393c3a57ff75b7728999c5fb4cbf1a3 | refs/heads/master | 2023-09-02T10:14:46.843829 | 2023-08-25T08:39:24 | 2023-08-25T08:39:24 | 37,536,320 | 265 | 106 | Apache-2.0 | 2023-09-14T17:34:00 | 2015-06-16T14:45:56 | C++ | UTF-8 | C++ | false | false | 22,976 | cpp | base_reaction_substructure_matcher.cpp | /****************************************************************************
* Copyright (C) from 2009 to Present EPAM Systems.
*
* This file is part of Indigo toolkit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... |
ccd35b8f700f31405f9eff80a4f674f6a68b042a | 45dae9ac1e487ca45b53d54dc38a132f89a804f4 | /auv_ekf_localization/src/noise_oneD_kf.cpp | 842fb0f160dd3c6f5eb13f73e194be6e2e896b49 | [] | no_license | ignaciotb/smarc_base | 227c0a3daa00325a24741ca20d766290e0723e73 | 95f0cee7566dd42dacb5626a8cf7ecae3dd17b55 | refs/heads/master | 2018-07-16T07:54:17.297116 | 2018-04-09T09:41:46 | 2018-04-09T09:41:46 | 108,266,557 | 0 | 0 | null | 2017-10-25T12:25:34 | 2017-10-25T12:25:33 | null | UTF-8 | C++ | false | false | 483 | cpp | noise_oneD_kf.cpp | #include "noise_oneD_kf/noise_oneD_kf.hpp"
OneDKF::OneDKF(double mu_init, double sigma_init, double r, double q){
// Initial params
mu_ = mu_init;
sigma_ = sigma_init;
r_ = r;
q_ = q;
}
double OneDKF::filter(double input){
// Predict
double mu_hat = mu_;
double sigma_hat = sigma_ + r... |
db38c626d25b3283d9c696b0cd2d6cb8d3e28391 | 554dae615756ca43162041afc98ad7a99e90ae8f | /ConsoleApplication31/算法提高 简单加法.cpp | 1565e49c41506305c63aff72588cc653f5fe7561 | [] | no_license | David-Zanen/Algorithm | a015a0f8c11aa45b19278f4d3325c45a4291d53c | fc9bf10b04e1e58c4b3e907c609a190b3a0aee46 | refs/heads/master | 2020-04-27T06:45:09.789726 | 2017-02-09T09:33:49 | 2017-02-09T09:33:49 | 174,116,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | cpp | 算法提高 简单加法.cpp | /*#include<iostream>
using namespace std;
int main()
{
int he = 0;
for (int a = 0; a < 1000; a++)
{
int j = 0;
if (a % 3 == 0 || a % 5 == 0)
{
if (a != 0)
{
cout << a << endl;
}
j = a;
}
he += j;
}
cout << he << endl;
system("pause");
return 0;
}*/ |
cfc963c90dd5abb9940ac54e5e1283ce5a59a996 | d40855c89edbb26a2bdb5ce70467365c7cafd7d5 | /Ide/Interpreter.cpp | 23e29691409e7b462ac7a9d6c731e0a7980a42ec | [] | no_license | markorovi/Primer-Proyecto-Datos-II | 56f91b1e705290fecaeede43830ec3605550378b | fb6f81f8378bf8ad115146631cceee6a176719bd | refs/heads/master | 2023-04-17T11:12:55.669279 | 2021-05-05T12:54:19 | 2021-05-05T12:54:19 | 353,549,961 | 0 | 0 | null | 2021-04-27T06:58:45 | 2021-04-01T02:32:21 | C++ | UTF-8 | C++ | false | false | 43,902 | cpp | Interpreter.cpp | //
// Created by joel on 19/4/21.
//
#include "../Sockets/Parser.h"
#include "mainwindow.h"
#include <QJsonDocument>
#include <QJsonObject>
#include <QString>
#include "Interpreter.h"
Interpreter::Interpreter() {
keyWords.append("int");
keyWords.append("long");
keyWords.append("char");
keyWords.append... |
de1c531ee00fd296952619a49d79feaf2fa877d8 | e5efbbf17f8e20a54d0846b8cecb12120fa24270 | /User.h | 903c6f6d5617f7d3705eb323a955d6ee88a1b3e6 | [] | no_license | Rehaoulia/RDBMS | e2cfd0c51ad8bda249a056795a716024cd9c3606 | 0430cff6b81dc00c2cebee0ae3aca1e0c5fc7f8f | refs/heads/master | 2022-06-13T02:55:03.398610 | 2020-05-11T13:32:47 | 2020-05-11T13:32:47 | 263,051,310 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 498 | h | User.h | #ifndef USER_H
#define USER_H
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
class User
{
string username;
string password;
public:
void setUsername(string username)
{
this->username = username;
}
string getUsername()
{
return thi... |
5d143242a9c6d72892e92f7c6b9e2dbfd24dd952 | 4de4ab6973267f0a57dcc594f7170cc1051d67b1 | /math/prime-factors.h | 7c8f374d6ce2415416a6398ccd0567bd8719f281 | [] | no_license | ilpropheta/daje | c358f33106de8326ae6e3eed4850a3be3e190b38 | e76b9dc2d53492d50676ad43109294b33665ae9d | refs/heads/master | 2020-12-25T16:47:57.094988 | 2019-01-23T11:39:31 | 2019-01-23T11:39:31 | 38,163,724 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 852 | h | prime-factors.h | #include <cmath>
#include <vector>
std::vector<int> prime_factors_of(int n)
{
std::vector<int> factors;
while (n%2 == 0) // while n is even
{
factors.push_back(2);
n = n/2;
}
for (auto i=3; i <= std::sqrt(n); i+=2) // i is odd here (skip 2 numbers)
{
while (n%i == 0)
... |
4b1703c95e6fbbd1170ecc47979d4092038f8537 | 0263f671a43ccfc240b5800be9ad81ab9139af7f | /src/loss.h | 76a8e65a295cdfdd4de61ec85aec9ee84ab9ed7e | [] | no_license | MhYao2014/PMIVec | 02433644de22e55d613a24c9f7370efddecf1cb6 | 339b355d4fdd4d05db06ffc9cc1a0d347e8b213f | refs/heads/master | 2023-01-18T19:00:06.051058 | 2020-11-29T01:43:36 | 2020-11-29T01:43:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,551 | h | loss.h | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <memory>
#include <random>
#include <vector>
#include "matrix.h"
#include "model.h"
#inc... |
627135c07456eb109a7ebdb518e919d7ae0476d2 | fa306bcc990815d4504c58a9dede66afe59c318f | /src/marrhildreth.cpp | acece9a68d4b18d38030dad738f269b9e210c851 | [] | no_license | buzzcz/ZVI | 1bc15e4d5f19699d6f4f809f9e6c3e2a92b074c6 | ab28c3bfb16794300b9f3fdaf477610b8ea287fd | refs/heads/master | 2021-01-21T04:41:04.984709 | 2016-06-23T06:47:22 | 2016-06-23T06:47:22 | 54,061,277 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,234 | cpp | marrhildreth.cpp | #include "marrhildreth.h"
#include "ui_marrhildreth.h"
#include "QDebug"
MarrHildreth::MarrHildreth(cv::Mat *src, QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MarrHildreth)
{
ui->setupUi(this);
MarrHildreth::resize(parent->size());
prepareGUI();
cv::cvtColor(*src, img, CV_BGR2GRAY);
}
MarrHildreth... |
db9b1d3795cbaa7fd2d48ac4aef9ceb1a8aa2c1a | 2f1603e96c470b091193c93fbac78734ceb91767 | /src/F_euclidean.cpp | 47de9e7c20146b3941dbc9d89505d8004fc41867 | [] | no_license | YolandaKok/Recommender-System | 8e84aa78a05e2bb0247f50a5fb846ca2a55dca2f | de9215f345db9697e2f37013ddf9510547a0e99d | refs/heads/master | 2020-03-31T10:00:13.189914 | 2019-03-26T21:25:29 | 2019-03-26T21:25:29 | 152,118,743 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,623 | cpp | F_euclidean.cpp | #include "F.h"
#include <iostream>
#include <random>
#include "F_euclidean.h"
#include "H_euclidean.h"
#include <ctime>
#include <functional>
#include "H.h"
using namespace std;
F_euclidean::F_euclidean(int k, int tablesize, double dimension, double w):F(k, dimension) {
/* Generate Rk */
generateRk(k);
this->ta... |
414c4bd93791ba3cd81538815c643755b0a1b729 | ecddb70401ca5f5527e46cab79523bfe4f03567e | /Codeforces/908D.cpp | 3d26acc27966bf0232f0637c3a8249608fadf4c4 | [] | no_license | Hoikoro/procon | 176d80e4fbb42ceb4b6e713ecc9b6e8dd1b2f784 | 40bb6e3c36cedd22a37b3f5f296c423de5f7aac0 | refs/heads/master | 2021-01-21T20:43:04.551437 | 2018-08-13T15:52:18 | 2018-08-13T15:52:18 | 94,674,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,416 | cpp | 908D.cpp | #include <bits/stdc++.h>
using namespace std;
//make_tuple emplace_back next_permutation push_back make_pair second first setprecision
#if MYDEBUG
#include "lib/cp_debug.h"
#else
#define DBG(...) ;
#endif
using LL = long long;
constexpr LL LINF=334ll<<53;
constexpr int INF=15<<26;
constexpr LL MOD=1E9+7... |
f7e562c1ada92f8bf28506b85a2dc0602e09cd73 | e5091c3a8477fa12e1adfdb1f3d826eb6e9bb2be | /Other/shell_game.cpp | 093a9a3585f4aa4a07ff5817e50ab25567479e51 | [] | no_license | leonardoAnjos16/Competitive-Programming | 1db3793bfaa7b16fc9a2854c502b788a47f1bbe1 | 4c9390da44b2fa3c9ec4298783bfb3258b34574d | refs/heads/master | 2023-08-14T02:25:31.178582 | 2023-08-06T06:54:52 | 2023-08-06T06:54:52 | 230,381,501 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | cpp | shell_game.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout << setprecision(8) << fixed;
long double r, R, h;
cin >> r >> R >> h;
long double H = h / (R - r) * R;
long double theta = atan(H / R) / 2.0;
long double ans = min(R * t... |
d74262cad28be3add57e6a4b9641a126f9ec1a8a | 13a68c469c0a317cb86b98781ba63852a0d67b37 | /include/Matching.h | 5524e369a0e9297a8651996b975df5df3f473fa5 | [] | no_license | kdeleo/HOTVR | 25b110d549cca2363395d6f855154b6d0052963b | 3aa3cccd1eaf3929bf93aa66ad3c749d19f544c5 | refs/heads/master | 2020-12-06T01:35:02.874985 | 2016-07-26T13:25:00 | 2016-07-26T13:25:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,286 | h | Matching.h | #ifndef Matching_H
#define Matching_H
#include "SFrameTools/include/Objects.h"
#include <fastjet/PseudoJet.hh>
#include "SFrameTools/include/fwd.h"
#include "SFrameTools/include/boost_includes.h" // for shared_array
#include <TMVA/Reader.h>
#include "TVector3.h"
#include <limits>
#include <algorithm>
#include <memory>... |
bf5dc81b6d2b3a51e589185781f2caf09018d846 | a53b3537dd04e9c16ab9c1d656366d509c69231a | /gametreenode.h | 60080ed45d366238fb3949fd24a603dec7752b1c | [] | no_license | igloooo/cpp-project-five-in-a-row | 2e1fdad896e64918787ac5a6e4652bc73a7092b5 | 759e0e8b08bf3d3ac088ded58004e34f84bcc2f6 | refs/heads/master | 2021-06-02T21:03:43.140760 | 2018-08-08T08:54:06 | 2018-08-08T08:54:06 | 127,509,574 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,937 | h | gametreenode.h | /*
* File: gametreenode.h
* -----------------------------
* The file defines the interface for GameTreeNode class.
*/
#ifndef GAMETREENODE_H
#define GAMETREENODE_H
#include "gamemodel.h"
#include "coordinate.h"
#include <iostream>
#include <string>
#include <ostream>
using namespace std;
/*
* Class: GameTreeNod... |
1654c31c4680a00a896c30d1668a692de1cbcff8 | ab786d963e4e959cbf185b3673133c468f40e5f8 | /CPP1/sumcubes.cpp | e211f49f44925197255b86edbe6fbcfecb4358c0 | [
"MIT"
] | permissive | mrnettek/CPP | beb2a37c0238fb398b74ed771bb24d05bec9d0b7 | 25127ae2dea8c4841787ae94669c56a716ee2bea | refs/heads/master | 2021-06-28T19:17:38.106119 | 2020-12-31T18:52:29 | 2020-12-31T18:52:29 | 210,626,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 472 | cpp | sumcubes.cpp | // print sums of cubes
#include <iostream>
using namespace std;
int main() {
int limit;
cout << "Enter the number of rows to be seen: ";
cin >> limit;
for (int r = 1; r <= limit; r++) {
int total = 0;
for (int term = 1; term <= r; term++) {
cout << "cube " << term;
if (term ... |
e46c7156ee1103469cfb799e0f01d2e04cb852e6 | 5ab7032615235c10c68d738fa57aabd5bc46ea59 | /compote.cpp | 62b8434df22de4e88149a06cf614166aaa3305b3 | [] | no_license | g-akash/spoj_codes | 12866cd8da795febb672b74a565e41932abf6871 | a2bf08ecd8a20f896537b6fbf96a2542b8ecf5c0 | refs/heads/master | 2021-09-07T21:07:17.267517 | 2018-03-01T05:41:12 | 2018-03-01T05:41:12 | 66,132,917 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | cpp | compote.cpp | #include <iostream>
#include <vector>
#include <unordered_map>
#include <string>
#include <math.h>
#include <map>
#include <queue>
#include <algorithm>
using namespace std;
#define ll long long int
#define umm(x,y) unordered_map<x,y >
#define pb push_back
#define foi(n) for(int i=0;i<n;i++)
#define foj(n) for(int j=... |
2438d5578b5e38b4cde9d40b10d9a42597d12e7f | 5d52bc93a95bd590b3b492549a6738531168b0f9 | /constraint.cpp | 90ca8f8a0e5a0d5743b5867c0bf7fdf767b58f26 | [] | no_license | TimKrause2/caams-euler-parameters | b93773937b76b2f28b9fecf8ee4954070b446192 | 3567b22127b872d62480c4786842950da214c416 | refs/heads/master | 2022-05-20T11:56:23.465849 | 2022-05-01T17:37:40 | 2022-05-01T17:37:40 | 241,159,857 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,364 | cpp | constraint.cpp | #include "constraint.h"
#include <stdio.h>
#include <GL/gl.h>
#include <GL/freeglut.h>
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/transform.hpp>
#include <glm/gtc/type_ptr.hpp>
Constraint::Constraint(
Body *body1,
Body *body2):
body1(b... |
49c182eb7aa304b4758214bdebf1f4fbfce99fe7 | d352af82d968c645f5566ba31d809b811a229e1c | /src/utilities/GenException.hh | a3396f18b50ab7f672deb1fc9fd5ea32c8c1e465 | [
"MIT"
] | permissive | robertsj/libdetran | 9b20ce691cc8eaa84e3845483ac6ae9f80da40ce | be5e1cd00fecf3a16669d8e81f29557939088628 | refs/heads/dev | 2023-01-21T16:53:09.485828 | 2023-01-16T16:38:38 | 2023-01-16T16:38:38 | 3,748,964 | 8 | 10 | MIT | 2023-01-26T14:22:09 | 2012-03-17T16:28:54 | C++ | UTF-8 | C++ | false | false | 1,680 | hh | GenException.hh | //----------------------------------*-C++-*----------------------------------//
/**
* @file GenException.hh
* @author Jeremy Roberts
* @date 04/09/2011
* @brief GenException class definition.
* @note Modified version of K. Huff's class from cyclus
*/
//-------------------------------------------------... |
957f4510215a521a8a867763e26283610c8f3152 | 3df6011276af21ce94495a298b11f6ce038c222b | /src/thgemDetectorMessenger.cc | b73c52bd733332f921e541b944b834d73f831327 | [] | no_license | Virgo825/THGEM_Stop | ee30e280b0751301d83ed1f21b3fce55b3746db0 | fc9ec614e6f42ea7c7d30fae481bda4cb43b32e3 | refs/heads/master | 2022-04-18T12:39:54.473205 | 2020-04-12T03:19:54 | 2020-04-12T03:19:54 | 176,075,240 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,863 | cc | thgemDetectorMessenger.cc |
#include "thgemDetectorMessenger.hh"
#include "thgemDetectorConstruction.hh"
#include "thgemPhysics.hh"
#include "G4RunManager.hh"
#include "G4SystemOfUnits.hh"
#include "G4UnitsTable.hh"
#include "G4UIdirectory.hh"
#include "G4UIcmdWithAString.hh"
#include "G4UIcmdWithAnInteger.hh"
#include "G4UIcmdWi... |
bbf1351fb35940c4ac4c6348785022fdff4608e5 | 0f01dab3b868e94298fc54d5b449c71f435a56e3 | /游戏组件/子游戏/二人双扣/游戏客户端/DlgPlayVoice.cpp | 6f5c4eb09fa20c1b88150cfebd1e35341764b325 | [] | no_license | ydcrow/refFoxuc | c6284476ed530263a5ffb8f8e7d37251e393c0d2 | f85601c050bb5f24883c88bbef0982b16ff952e3 | refs/heads/master | 2023-02-07T06:03:06.317797 | 2020-12-26T02:49:37 | 2020-12-26T02:49:37 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,526 | cpp | DlgPlayVoice.cpp | // DlgPlayVoice.cpp : 实现文件
//
#include "stdafx.h"
#include "DlgPlayVoice.h"
#include "Windows.h"
#include ".\dlgplayvoice.h"
// CDlgPlayVoice 对话框
//////////////////////////////////////////////////////////////////////////
BEGIN_MESSAGE_MAP(CDlgPlayVoice, CSkinDialogEx)
ON_CBN_SELCHANGE(IDC_COMBO1,OnSelectChange)
O... |
4c458a286793e20728d298993bd88974483bf5f1 | 9aec6b424f3b4e0b85fd54c3a0b96f691c39f13f | /Luogu/Basics/P1000.cpp | 7e07854a0dd9bf6fd7363c32a64cc043afa3e0c2 | [
"MIT"
] | permissive | yechs/C-Algorithms | 2af994b4feda8e93b8d8ca9107fb47aff4680e4e | a2aaf927d8c8e0d89140a34d115ac49c0f489066 | refs/heads/master | 2021-09-10T09:30:29.003789 | 2018-03-23T15:32:26 | 2018-03-23T15:38:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,531 | cpp | P1000.cpp | // P1000 超级玛丽
// https://www.luogu.org/problemnew/show/P1000
#include <stdio.h>
int main(){
printf(
" ********\n"
" ************\n"
" ####....#.\n"
" #..###.....##....\n"
" ###.......###### ### ... |
770c9e3b053423aa38d0525332fdee2d9f4ac027 | 95dcf1b68eb966fd540767f9315c0bf55261ef75 | /build/pc/ACDK_4_14_0/acdk/acdk_xml/src/acdk/xml/parsers/DocumentBuilderFactory.h | f647054a9be902a97ae158106c174ff42ef0d0a6 | [] | no_license | quinsmpang/foundations.github.com | 9860f88d1227ae4efd0772b3adcf9d724075e4d1 | 7dcef9ae54b7e0026fd0b27b09626571c65e3435 | refs/heads/master | 2021-01-18T01:57:54.298696 | 2012-10-14T14:44:38 | 2012-10-14T14:44:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,332 | h | DocumentBuilderFactory.h | // -*- mode:C++; tab-width:2; c-basic-offset:2; indent-tabs-mode:nil -*-
//
// Copyright(C) 2000-2003 by Roger Rene Kommer / artefaktur, Kassel, Germany.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public License (LGPL).
//
//
// This l... |
b6d037dce0b4039065f85b911ecab6b4318ac7b2 | 4c822a527e9c36a5d881cf6976ab6dc684859b62 | /include/greylock/key.hpp | cb943aca7951c3555027c1e92263876caf38ee64 | [] | no_license | cdsalmons/greylock | f3dbbbb3d3f583776f8d51ea176823dbc5b2859a | 3b85a9932fb6b3d0eb196e6cccd9659c80a0636f | refs/heads/master | 2020-12-11T02:03:29.138519 | 2015-09-19T18:04:24 | 2015-09-19T18:04:24 | 45,578,889 | 1 | 0 | null | 2015-11-05T01:24:52 | 2015-11-05T01:24:51 | null | UTF-8 | C++ | false | false | 1,487 | hpp | key.hpp | #ifndef __INDEXES_KEY_HPP
#define __INDEXES_KEY_HPP
#include "greylock/core.hpp"
#include <string>
namespace ioremap { namespace greylock {
struct key {
std::string id;
eurl url;
uint64_t timestamp = 0;
std::vector<size_t> positions;
MSGPACK_DEFINE(id, url, positions, timestamp);
void set_timestamp(long tse... |
0a182b80ebfd958c057e132ced98032025e703b4 | c0f0941e3d6f62dbe6932da3d428ae2afed53b43 | /simulation/g4simulation/g4detectors/BeamLineMagnetSubsystem.h | ef484682f58be2508661c506de6716374970a956 | [] | no_license | sPHENIX-Collaboration/coresoftware | ffbb1bd5c107f45c1b3574996aba6693169281ea | 19748d09d1997dfc21522e8e3816246691f46512 | refs/heads/master | 2023-08-03T15:55:20.018519 | 2023-08-01T23:33:03 | 2023-08-01T23:33:03 | 34,742,432 | 39 | 208 | null | 2023-09-14T20:25:46 | 2015-04-28T16:29:55 | C++ | UTF-8 | C++ | false | false | 2,234 | h | BeamLineMagnetSubsystem.h | // Tell emacs that this is a C++ source
// -*- C++ -*-.
#ifndef G4DETECTORS_BEAMLINEMAGNETSUBSYSTEM_H
#define G4DETECTORS_BEAMLINEMAGNETSUBSYSTEM_H
#include "PHG4DetectorSubsystem.h"
#include <string> // for string
class BeamLineMagnetDetector;
class PHCompositeNode;
class PHG4Detector;
class PHG4DisplayAction;
cl... |
524bad1432db6e23b33696ac5da46314c06b88bb | a96b2cdbb446b845fcb0c14a6c2a775468a3e078 | /newWorld/distribution/distributeur/mainwindow.h | 489bce867443e1592016680ef8e61808e6c7f005 | [] | no_license | prostain/newWorld_catalogue | c18c9b15d2d4d633e2cfc5317adffdbbf1c60481 | 3e0fe04c36a0d97bc936566183de2d44ac8b6ee6 | refs/heads/master | 2021-04-18T21:29:40.386735 | 2018-06-01T13:00:52 | 2018-06-01T13:00:52 | 126,461,391 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 551 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include<QNetworkAccessManager>
#include<QJsonArray>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QNetworkAccessManager *pmyNWM,QString theName, QString theSurname, QString the... |
4cf67009cb164105adeffe490cb8c93f9915370e | ac30c7b64f773de916dfad7b65f851290f3182ce | /MainWindow/newplayerscreendialog.cpp | 99b1265e6cf197e48ac96d362b5ffb75e22ad542 | [] | no_license | SethMarkarian/CS205-Labs | 9bace5d921e78a1df2d4647517dda299fb96c2ef | 5b620a82de6fa964f7f95d5c60a70fa9a61633f7 | refs/heads/master | 2020-05-02T21:56:08.893258 | 2019-03-28T15:52:49 | 2019-03-28T15:52:49 | 178,235,581 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 981 | cpp | newplayerscreendialog.cpp | #include "newplayerscreendialog.h"
#include "ui_newplayerscreendialog.h"
NewPlayerScreenDialog::NewPlayerScreenDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::NewPlayerScreenDialog)
{
ui->setupUi(this);
}
NewPlayerScreenDialog::~NewPlayerScreenDialog()
{
delete ui;
}
void NewPlayerScreenDialog:... |
270ee837869392a09f011460c784782535bab932 | 057a475216e9beed41983481aafcaf109bbf58da | /src/Common/CurrentMetrics.cpp | b3dee29e02fcfbf4a7fe83cdc5cf3565ca44afdc | [
"Apache-2.0"
] | permissive | ClickHouse/ClickHouse | fece5204263a5b4d693854b6039699265f1bb27f | 6649328db809d51a694c358571539bc5820464be | refs/heads/master | 2023-08-31T18:48:36.615225 | 2023-08-31T17:51:24 | 2023-08-31T17:51:24 | 60,246,359 | 23,878 | 5,449 | Apache-2.0 | 2023-09-14T20:10:52 | 2016-06-02T08:28:18 | C++ | UTF-8 | C++ | false | false | 22,142 | cpp | CurrentMetrics.cpp | #include <Common/CurrentMetrics.h>
/// Available metrics. Add something here as you wish.
#define APPLY_FOR_BUILTIN_METRICS(M) \
M(Query, "Number of executing queries") \
M(Merge, "Number of executing background merges") \
M(Move, "Number of currently executing moves") \
M(PartMutation, "Number of mut... |
c84ec485b21fb6e0038bcb0fdc91c15fa8df643b | 432aeac234e03a0775cc23243e4d8d71e36a6dc5 | /Pointer/Pointer/main.cpp | 771c61136b12284278fbe1e4548c72dbd8abf02a | [] | no_license | KnifestRapGameMurder/Pointers | 7c28522ba3b014bff510010708d68d5cc32684b9 | c1fb9ed57b5c2d82bce8fb00d7f62a3e6726903b | refs/heads/master | 2020-08-20T20:42:58.197839 | 2019-10-18T17:54:20 | 2019-10-18T17:54:20 | 216,064,507 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,021 | cpp | main.cpp | #include<iostream>
using namespace std;
//#define POINTERS_BASICS
#define DECLARATION_OF_POINTERS
void main()
{
setlocale(LC_ALL, "");
#ifdef POINTERS_BASICS
int a = 2;
int *pa = &a;
cout << a << endl;
cout << &a << endl;
cout << pa << endl;
cout << *pa << endl;
int *pb;
int b = 3;
pb = &b;
cout << pb <<... |
ddc647164a4a5c9d2b522ffed8204d899d8e78f9 | 5070c5a5279f3a7a3c9ed09133037b0f774c4661 | /fuzzer-windows-master/ie_sandbox/HelloWorld/hook.cpp | 2b51804a57448ac6219a3a0541eaba88853e1f6e | [] | no_license | Trietptm-on-Security/font_suites | 6047a95534c3c03f412621fadd49c2662b948d0e | d23d222ae093806a57c60decf559575975cfa75c | refs/heads/master | 2018-04-13T15:50:09.562027 | 2016-07-29T08:28:24 | 2016-07-29T08:28:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,081 | cpp | hook.cpp | #include "stdafx.h"
#include "resource.h"
#include "HelloWorld_i.h"
#include "dllmain.h"
#include <Windows.h>
#include "hook.h"
#include "log.h"
BOOL install_hook(void) {
HINSTANCE dllHandle = NULL;
writeLog("[*] Installing hook....\r\n");
writeLog("[*] Looking for ole32.dll\r\n");
dllHandle = LoadLibrary((LPCWS... |
b283e01e6de0f774278e40497dd905ff54256cb7 | a10417092f4e47e98468d8d4f956f73d370e205d | /cs200_intro_to_programming/labs/lab3/task1_2.cpp | 81555846e5404ea7f30fc86efd786164151b2938 | [] | no_license | ghanisol/lums | da36e8b052f00104bba35b1eaf51ed0eb2beaf73 | 0407dbbcf326ee58629de5059eff181ea1ee0f07 | refs/heads/master | 2020-04-03T09:42:45.386971 | 2018-10-31T21:59:07 | 2018-10-31T21:59:07 | 155,173,951 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 322 | cpp | task1_2.cpp | #include <iostream>
#include <string>
using namespace std;
int main()
{
string name = "Faizan";
int length = name.length();
int i = 0;
char l = 0;
while (i <= length)
{
cout << "Enter the letter\n";
cin >> l;
if (l == name[i])
{
cout << "The " << i << "number is :" << l << endl;
i++;
}
}
... |
c993aa7dd1ee6dfdfb19f113f8ec9176577b8295 | dcee7da72687faac26f64139486e93d416af369d | /Effects/Tunel/moEffectTunel.cpp | ba6849370e9a1a5700c59e190051a962566557d2 | [] | no_license | moldeo/moldeoplugins | 871d0c70047b4074c0aa08c0f5dbe156a38b2dba | 609af7c5e4271723dfc3394343fabd0b431fb934 | refs/heads/master | 2022-02-14T17:39:50.461902 | 2022-02-07T11:30:28 | 2022-02-07T11:30:28 | 25,303,561 | 1 | 1 | null | null | null | null | ISO-8859-2 | C++ | false | false | 10,533 | cpp | moEffectTunel.cpp | /*******************************************************************************
moEffectTunel.cpp
****************************************************************************
* *
* This source is free softw... |
6585d668cc46548b22193cb07e53a27f234c1ec0 | 8956c3eca551051a080502acfb42432678d1cf97 | /udemy/deepdive/secondSection/palindrome/palindrome/palindrome.cpp | 2d3b6c568aa13faf1c843617ae43c53d0bb3b0bb | [] | no_license | aHojo/CPPLearning | 5ef4380f6ed6c1970f27844249ed1edb1e17328c | 497fa09cd91da20d74022394116aa68fbcb10241 | refs/heads/master | 2020-05-07T21:44:20.016741 | 2019-07-17T13:33:25 | 2019-07-17T13:33:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 572 | cpp | palindrome.cpp | // palindrome.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
int main()
{
int num, temp, rev, reversed = 0;
std::cout << "Enter a number to find out if palindrome: ";
std::cin >> num;
temp = num;
while (temp != 0) {
rev = temp % 10;... |
e016e8b2e0a562f08155d4c17b99bbf76ce51a09 | c291f81e729d070421443a1553892db4a4edd58b | /src/interactionMesh/TimedPoseContainer.h | fdbc2a036b3b0c6c935cf1e7a3c951c63489113f | [] | no_license | lyh458/InteractionModels_DemoCode | 2ed94d96b4453953a2dbcdf8f53b2983f25d6510 | ef46a10245a1e2c002c489b48baca4487ce447a0 | refs/heads/master | 2020-07-15T19:57:58.678927 | 2017-10-20T16:38:56 | 2017-10-20T16:38:56 | 205,638,579 | 1 | 0 | null | 2019-09-01T06:30:33 | 2019-09-01T06:30:32 | null | UTF-8 | C++ | false | false | 1,663 | h | TimedPoseContainer.h | /*
* TimedPoseContainer.h
*
* Created on: Feb 28, 2013
* Author: ddvogt
*/
#ifndef TIMEDPOSECONTAINER_H_
#define TIMEDPOSECONTAINER_H_
#include "Timer.h"
#include "PoseContainer.h"
namespace iMod {
///< Define a standard time type
typedef boost::posix_time::ptime Time_t;
///< Define a standard list of t... |
dd04b849a6091c984a749317b9b71bacd47d433b | c31fe707725cae00cbd7fe691fb9e42a7b24a52c | /C++ & SFML/2.Pato_Fodder/Codigo/Viento.cpp | dde17cd700e81f8c3618f03ac4cc731cbd6e4bec | [] | no_license | nlattessi/unl-vg | be90dbef3ea2e8583a7dbb4fe14bde427c5c6f3b | 96cbbd3604655fb36bcd44fac4213355c2acc249 | refs/heads/master | 2016-09-06T16:21:24.285941 | 2015-04-28T19:57:35 | 2015-04-28T19:57:35 | 34,751,988 | 0 | 0 | null | null | null | null | ISO-8859-3 | C++ | false | false | 786 | cpp | Viento.cpp | #include "Viento.h"
Viento::Viento()
{
dirViento = 0;
fuerzaViento = 0;
timerViento = 0.0f;
cambiaViento = 10.0f; //Cambio el viento cada 10 segundos
}
Viento::~Viento()
{
}
void Viento::Update(float _ft)
{
//Actualizo el viento y cambio
//su dirección y velocidad si
//se cumple el tiempo seteado
timerVient... |
11e88f72df34c9b07ea7bd602e5fc27bab4ebbbf | cef5f57c6243ab5f93e8b54cdfabb454c1502333 | /cpp/main.cpp | 618058de3ca0b2e270b6a9e0ce6a19897303972d | [] | no_license | uriellopes/PetFera | 239d48b70f617ba097e8f291cbfb1888d5ec110c | f05ffbd5dbc8d8810f366229b446ed22029dbe6a | refs/heads/master | 2022-03-30T23:55:41.154659 | 2019-11-25T13:34:03 | 2019-11-25T13:34:03 | 220,641,660 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 56,560 | cpp | main.cpp | #include <iostream>
using std::cin;
using std::cout;
using std::endl;
#include <algorithm>
using std::find_if;
#include <memory>
using std::shared_ptr;
#include <sstream>
using std::stringstream;
#include <fstream>
using std::ofstream;
using std::ifstream;
#include <vector>
using std::vector;
#include "../include... |
c64bc279ff82645cbecd52e7d6b80636b370fe74 | f0be8b268cb4405a9d40a1ea943a5352018173bb | /222 Count Complete Tree Nodes.cpp | ee3b5f4196fb72300a6e9a91efcb8502d612dfd2 | [] | no_license | iroot900/Algorithm-Practice-300-Plus | 1b2cdce48104dec540e045dfcab6290fefe60e4b | 5b97c69c991d2b2f330d7b667e79dd32b53e44f5 | refs/heads/master | 2020-07-10T21:34:39.125332 | 2015-09-01T21:40:20 | 2015-09-01T21:40:20 | 36,990,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 680 | cpp | 222 Count Complete Tree Nodes.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
// This one is very unique, as not in a usualy traverse way.
int countNodes(TreeNode* root... |
91fe9cb73a1d1375ce0346a8f78a34919b70e2f1 | ec2de16739cd71afef4a632a606e83444daf21b1 | /DevC++/Code power/doicoso.cpp | 3774b6ada680d1d5ad03a839e9fd521d6d4c4b42 | [] | no_license | minhcongnguyen1508/Code-Java-C--UET | f96bc409c720cb80aaa2f96da81b3870e0937292 | 24c8018fac67479e0fc01c2068c9ee1a7a700311 | refs/heads/master | 2020-04-22T00:21:17.478448 | 2019-02-10T12:58:07 | 2019-02-10T12:58:07 | 169,976,733 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 295 | cpp | doicoso.cpp |
# include <iostream>
# include <algorithm>
# include <string>
# include <vector>
using namespace std;
int main(){
long long n;
cin>> n;
vector <int> a;
if(n < 0) n = -n;
while(n!=0){
a.push_back(n%2);
n=n/2;
}
for(int i = a.size() - 1; i >= 0; i--){
cout<< a[i];
}
return 0;
}
|
cdd55ce8e5b6f47f245b252e288c4011844b182e | 26142d3dd05db1bfba6063fb316ec7f59d6ce268 | /Compopt/Nouna_PCVRP/qt-project/ver01/nouna_project/src/initialsolution.cpp | 4604aaea3e8b189d7832d397825d598ec5c9fa86 | [] | no_license | tikhoncheva/work | f9130e638d44d4418ea0ecec6d29b762b5a7ab86 | 9b1cc41a0e851df1506ffe0c4061087f33c7ba77 | refs/heads/master | 2021-01-21T12:36:04.777282 | 2016-01-13T10:09:35 | 2016-01-13T10:09:35 | 19,025,157 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,830 | cpp | initialsolution.cpp | #include "hrd/initialsolution.h"
bool compareTime ( const std::pair<double, int>& a,
const std::pair<double, int>& b)
{
return a.first > b.first;
}
bool isZero (const unsigned int a)
{
return a==0;
}
bool visited (std::pair<unsigned int, bool> a)
{
return !a.second;
}
/*
* returns ... |
be936c92772aa23b305853d27e90dc377e9eeabb | 2be6bac64906c13e9429491eeaec9290727a85ae | /20210311_AE0022.cpp | 6a56344a3f047c2015f696e01c1504e66fe34083 | [] | no_license | Renesys/algolab | 141b291a4c087366cd3ec8670ff352dd7f1e7ad3 | ec34b539410dc4944e97bbd5767e770c15a6f34f | refs/heads/master | 2021-06-22T22:08:28.614479 | 2021-04-05T11:35:31 | 2021-04-05T11:35:31 | 207,927,038 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,733 | cpp | 20210311_AE0022.cpp | #include<iostream>
#include<fstream>
#include<cstdio>
#include<deque>
#include<vector>
#include<string>
#include<algorithm>
#define MAX 10000007
using namespace std;
vector<int> prime;
int is_prime[10001];
int chk[10001];
int res;
void make_prime() {
int idx = 2;
for (int i = 1; i <= 10000; i++) {
is_prime[i] = ... |
0f9bfdd3d62745d6e88c7457374c9ce55ba5ca9b | 354f83b7e8edfd95b18c87e192a97afff0b062af | /Example/EZ_Start_Kit_Example/PHR/PHR.ino | 828a4e443cf01b7b00b49a84db050d807a417ca5 | [] | no_license | iCShopMgr/EZ_Start_Kit_for_BlocklyDuino_feat.liou | 743f404e6419e712d96d897fbcda3eca7f1efdc5 | 0d6a2ce7b0d4b5ed174f2ccac2782994246379cc | refs/heads/main | 2023-01-24T23:58:43.211032 | 2020-12-12T11:33:41 | 2020-12-12T11:33:41 | 320,814,636 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 724 | ino | PHR.ino | /*
* Generated using BlocklyDuino:
*
* https://github.com/MediaTek-Labs/BlocklyDuino-for-LinkIt
*
* Date: Mon, 13 Jul 2020 09:57:38 GMT
*/
#include "Wire.h"
#include "U8g2lib.h"
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);
int phr_value()
{
return analogRead(A1);
}
void setup... |
06508ce958e691938220b2da614052d2b3e1b3f7 | ab60b4c558ec2ee675824ecaf2dd685c409a19bd | /CoinFlipping/coin.h | 73e1975b2d36c0f33e3ce0ac160975aaed196e75 | [] | no_license | migodz/Qt-CoinFlippingGame | 494f00f4988d88987db2ca01756f025363345f3c | 6fcf93d1a0b0f4f4144e9fe7a599bd3172e35dd6 | refs/heads/master | 2022-11-13T04:48:16.647439 | 2020-07-10T11:48:51 | 2020-07-10T11:48:51 | 277,995,864 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 499 | h | coin.h | #ifndef COIN_H
#define COIN_H
#include <QPushButton>
#include <QTimer>
class Coin : public QPushButton
{
Q_OBJECT
public:
QTimer * timer1;
QTimer * timer2;
bool isFrontSide;
bool isAnimating = false;
bool isWon = false;
int posX, posY;
int min = 1;
int max = 8;
... |
d347edcdac452af8f55a8198c9e5930cd77187a9 | ed2e3a3a01b96b9cc9e4d2615843142d69f4a3cd | /GraphicsLib/Sprite.cpp | bf1395a9afaf2975c9f3dd29447ec7b1795140cc | [] | no_license | Kellers176/Snake | 800b7a30903db4f9f0038fb626aa0a64b0cd529a | 7ab9d3bec48e2306f9e9b04986d92a72e4739609 | refs/heads/master | 2020-03-28T08:32:09.022885 | 2018-09-08T22:04:40 | 2018-09-08T22:04:40 | 147,971,877 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,631 | cpp | Sprite.cpp | /*Author: Kelly Herstine
Class: EGP-310
<Section 01>
Assignment: Assignment 2
Certification of Authenticity:
I certify that this assignment is entirely my own work.*/
#include "Sprite.h"
Sprite::Sprite()
{
mLocationOfSpriteX = 0;
mLocationOfSpriteY = 0;
mHeightOfSprite = 10;
mWidthOfSprite = 10;
mF... |
5ee52bcaab94edf490bd2ebe5656346f91582fac | 35e036a7b1fdf3b5112b602193b8219d7abe5654 | /Source/CLLeaderboardTutorialPlugin/Private/LeaderboardPlugin.cpp | ceb971e60c03419733da818f8ce60511978ba4ef | [] | no_license | ialex32x/LeaderboardSlateTutorial | ded2f20eb4b87429ee1e5dea46ae14600bc2a857 | 4752a212f5ce8fa0958ada5dd51c815cea490b46 | refs/heads/master | 2022-10-24T20:27:42.823517 | 2020-06-11T05:54:42 | 2020-06-11T05:54:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 920 | cpp | LeaderboardPlugin.cpp | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "Modules/ModuleManager.h"
#include "ILeaderboardPlugin.h"
#include "LeaderboardStyle.h"
class FCLLeaderboardTutorialPlugin : public ICLLeaderboardTutorialPlugin
{
/** IModuleInterface implementation */
virtual void StartupModule() override;
vir... |
b3ff95bb362bd2088459934716404111a0e92833 | f1cfd30641a3e1f11ec73a8ab07ef28e40919989 | /VendingMachineAPI/src/CreamDecorator.h | 44cba742dff8c1da11f5325cee726c044d85b444 | [] | no_license | zalak13/C_Plus_Plus-Projects | 2d22f4925e58577076385552d3d7b06e5c81254b | c96f97577c74e5ee51ddf7aa8c7bdd879bf2c420 | refs/heads/master | 2021-01-13T11:51:44.530026 | 2017-06-08T03:43:12 | 2017-06-08T03:43:12 | 81,693,895 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 722 | h | CreamDecorator.h | /*
* CreamDecorator.h
*
* Created on: Dec 5, 2016
* Author: zshah
*/
#ifndef CREAMDECORATOR_H_
#define CREAMDECORATOR_H_
#include "IngredientWrapper.h"
class CreamDecorator : public IngredientWrapper
{
public:
CreamDecorator( Coffee *coffee) : IngredientWrapper(coffee) {} // Pass the ... |
31306bdc9c86a78e8ed9b4fdfcda48f7a22c866b | 157c466d9577b48400bd00bf4f3c4d7a48f71e20 | /Source/ProjectR/UI/ItemManagement/UC_PopupContent_EquipmentItemFilter.cpp | 6161fdcc9c62a896f25d06e1381e79cbac8bad81 | [] | no_license | SeungyulOh/OverlordSource | 55015d357297393c7315c798f6813a9daba28b15 | 2e2339183bf847663d8f1722ed0f932fed6c7516 | refs/heads/master | 2020-04-19T16:00:25.346619 | 2019-01-30T06:41:12 | 2019-01-30T06:41:12 | 168,291,223 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,371 | cpp | UC_PopupContent_EquipmentItemFilter.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "ProjectR.h"
#include "UC_PopupContent_EquipmentItemFilter.h"
#include "UI/Control/RScrollView.h"
#include "GlobalIntegrated.h"
#include "GameInfo/RInventory.h"
#include "Table/ItemTableInfo.h"
#include "UI/Common/ItemInventory_S... |
1c67c6b43e40e4139752a835ce3feffb84432da5 | 5934de78d0f1e6611352024df26548e7807d1930 | /exp1/Stack.h | 854adf392de2a16e33815990058dad774d9e11bb | [] | no_license | hutianyi003/wordparse | 8e1dae2e7d322062d9ff83f2466142e3d97a0865 | 24297703187e1d8dc8d71c846c892e45b7bab450 | refs/heads/master | 2021-05-07T01:44:46.762401 | 2017-12-25T04:44:47 | 2017-12-25T04:44:47 | 110,326,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,954 | h | Stack.h | #pragma once
namespace ds {
template<class datatype>
class Stack {
public:
Stack<datatype>();
Stack<datatype>(const Stack<datatype> &rhs);
~Stack<datatype>();
void operator=(const Stack& rhs) = delete;
void pop();
bool push(const datatype& rhs);
dataty... |
24fe82a0abb026eae9291caeee8dfd4a6347a233 | c2c60ab2b7b0d71ae5f8bc4ca51b4b5f0dc3fb22 | /lhx/res/10.6/files/sydneyhen/UFO-Alert/a51d18c/DisplayCharter.h | 6db072ae104df5a8f3012ea1fd2b891d16e017dc | [] | no_license | xinhecuican/githubDB_work | 13e54ae21f79b40e834c40f9da8e6ac667119f64 | e6fc0dcf3795834b3b065ea75f443aee81e28718 | refs/heads/master | 2023-08-25T15:50:11.494228 | 2021-10-12T00:14:58 | 2021-10-12T00:19:21 | 396,585,591 | 0 | 0 | null | 2021-08-16T13:34:21 | 2021-08-16T02:43:22 | Python | UTF-8 | C++ | false | false | 1,422 | h | DisplayCharter.h |
#include <ArduinoJson.h>
#include <Adafruit_DotStar.h>
#define RING_LEDCOUNT 15
class DisplayCharter
{
public:
DisplayCharter();
void Init();
void Clear();
void SetLeds(byte pos, byte count, unsigned int color);
void SetBackground(String color);
void SetWirl(byte wspeed, bool clockwise);
... |
601dabde8e193031c102ae25163f9b4b63fbeeb0 | ea38b0830b44ec3f919ea23440890175e2e7b564 | /Codeforces/Educational Codeforces Round 47 (Rated for Div. 2)/A - Game Shopping.cpp | 851c13223268442498ecdd3d22a45dc65382bdb2 | [
"CC0-1.0"
] | permissive | AbhijeetKrishnan/codebook | 456fe2386cf582e1a125958bf3a56f3cfa2ed484 | c5bf6068586f460f7d2905b77c3295ae0da37613 | refs/heads/master | 2022-12-19T14:45:55.874001 | 2022-12-06T22:26:52 | 2022-12-06T22:26:52 | 62,959,828 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 485 | cpp | A - Game Shopping.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
vector<int> c(n), a(m);
for (auto &e : c) {
cin >> e;
}
for (auto &e : a) {
cin >> e;
}
int ans = 0;
int i = 0, j = 0;
while (i < n && j < m) {
if (a[j] ... |
7c0a2fbc7842c0f8436844535c89f41de7085381 | 668df9c06a5dd14667d4e929714bb1e9004b66f2 | /CSE335/Final_project/TreeLib/Fruit.cpp | ce8b288d804f9efcc557e20e959845e9d17d7252 | [] | no_license | SpudMSU/Classwork | 36583aa628e168adf8408963edd9779d9a117462 | 9007d332dfb6c4172a09f0eabd6311bcf1ffd5e7 | refs/heads/main | 2023-01-13T09:47:32.124458 | 2020-11-09T18:19:07 | 2020-11-09T18:19:07 | 311,411,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 38 | cpp | Fruit.cpp | #include "pch.h"
#include "Fruit.h"
|
a41970a2eabc9bfbdcdd1cfae13ac5c19af0acae | 2e9aec1aaa079726596da6e51a11d54dd9ed4192 | /ABC166/C.cpp | 2c09003735bd8bd6e8521edb1de4ee2e2538a544 | [] | no_license | Alignof/ABC_practice | c38e9cc4685dcb3cea9a5e1db77f8eaa32b33800 | 965eac44bd8446fca7175af9b2d7dd02e1482dba | refs/heads/master | 2022-12-26T03:11:47.266907 | 2020-09-27T13:21:47 | 2020-09-27T13:21:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 890 | cpp | C.cpp | #include <bits/stdc++.h>
#define SIZE 10
#define PI 3.141592653589793
using namespace std;
typedef long long ll;
int main(void){
cin.tie(0);
ios::sync_with_stdio(false);
int N,M;
int x,y;
int i,j;
int tower;
bool flag;
int answer=0;
int counter=0;
ll tmp;
vector<ll> H;
vector<ll> maxH;
cin >> N >> M;
... |
143b04d8d148caf02726f16f65c92f0057414530 | 90af0fa8944c9bcb677178774d4c2c7bfe2b6e79 | /U22/Project/main.cpp | c76e95ca50bc2737acc65fffc27ba8e3d97240d1 | [
"MIT"
] | permissive | OiC-SysDev-Game/WonderWolfGirl | 33a5db5e7bde89bb49a90fc32950d66662a6fd52 | 6118d47fea259ec7437d5b9a7c3f967fe2eb4fa0 | refs/heads/main | 2023-07-05T11:23:24.258746 | 2021-07-30T05:41:13 | 2021-07-30T05:41:13 | 381,572,812 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 514 | cpp | main.cpp | #include "U22.h"
#include "GameApplicaion.h"
int main(int argc, char* argv[]) {
auto framework = new u22::Framework();
auto app = std::make_shared<u22::GameApplication>();
auto info = u22::ApplicationInfo();
info.window_width = 1920;
info.window_height = 1080;
info.window_position_x = 40;
... |
2dc4566c6ed9ef5d4cb78a13951b9743c483d924 | 323acf3482dd68de8542a8d6c67d585fb5f20f13 | /localization_siar/functions/include/functions/RandomNumberGenerator.h | c2147060c3d32998437a6d7693c28aca04df4b19 | [] | no_license | robotics-upo/siar_packages | 1870d623a9c19c55804f781fa6d90a71e15069bb | 741c98fd0fbec4e862c7f4794d7513d6100421b3 | refs/heads/master | 2021-08-01T09:07:55.707761 | 2018-02-16T10:45:26 | 2018-02-16T10:45:26 | 71,160,119 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,514 | h | RandomNumberGenerator.h | #ifndef __RANDOM_NUMBER_GENERATOR_H__
#define __RANDOM_NUMBER_GENERATOR_H__
#include <boost/random.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
/** @brief Random number generator
To get a random number between 0 and 1:
<pre>
double random = RandomNumberGenerator::rnd01();</pre>
*/
namespace functions {... |
ead17eeb00074855e418f629865c15dd04c7db4e | fab9e40b2fd160fce383b6b7941ff662864050c3 | /AlgKolorowania.hpp | 5b51b5534a1ad922efe0da00c90ee05d1c912f41 | [] | no_license | wachuuu/tabu-search-graph-coloring | 5a53c87b3817444e768ba0adb7863170dd1afbc0 | 327263312167ff22e827c874838b1c5ca39fe00f | refs/heads/master | 2023-04-06T02:52:08.914109 | 2021-04-05T19:42:32 | 2021-04-05T19:42:32 | 317,313,282 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 884 | hpp | AlgKolorowania.hpp | #ifndef AlgKolorowania_hpp
#define AlgKolorowania_hpp
#include <iostream>
#include "Graf.hpp"
class AlgKolorowania {
private:
//struktura danych do przechowywania grafu
std::vector<std::vector<int>> listy_sasiedztwa;
int n; //liczba wierzcholkow
//metody pomocnicze
bool istnieje(int val1, int val2);
/*algorytm zac... |
157bd74f6a231913b0bf49e14f652629ee380e28 | 49043e84564baa99cf10e5a9cdec85021b1760e8 | /include/wifi-telemetry/wifi/wifi_dpp_exchange.hpp | 2bee85597cd82c6e0432b9f57f2acb55f1079d80 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | microsoft/wifi-telemetry | 235b77344528e5f4f7c61dd02e9c54a471918bb8 | 52cf172797d480b0a92696448756e8a3125e8a2f | refs/heads/main | 2023-05-15T11:25:57.744257 | 2021-06-11T18:33:00 | 2021-06-11T18:33:00 | 368,251,675 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,472 | hpp | wifi_dpp_exchange.hpp |
#ifndef __WIFI_DPP_EXCHANGE_HPP__
#define __WIFI_DPP_EXCHANGE_HPP__
#include <chrono>
#include <optional>
#include <string>
#include <unordered_set>
#include "wifi-telemetry/wifi/wifi_80211.hpp"
#include "wifi-telemetry/wifi/wifi_common.hpp"
#include "wifi-telemetry/wifi/wifi_dpp.hpp"
struct WifiDppExchange
{
W... |
86f9edf1167805b7d3d01af2112e623d3910e567 | 0f6d4b49c785c88eb665fe6b39bbe7a8e9801862 | /3ds_Max/RealtimeReferencingUtility/RefMenu.cpp | e48e8442ecbc87e12501df936efb557695c2b2b9 | [] | no_license | Adolar13/RealtimeReferencing | 8cfa8be786ab3e73730a06c3247ef705bb08575c | 5c047fd673206a19d474a1d87f623a481ae797b6 | refs/heads/master | 2021-07-17T19:35:42.585596 | 2017-10-22T13:45:12 | 2017-10-22T13:45:12 | 105,901,272 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,367 | cpp | RefMenu.cpp | #include "RefMenu.h"
#include "ui_ref_menu.h"
#define Controller SceneController::Instance()
RefMenu::RefMenu(QWidget* parent):QWidget(/*parent*/), ui(new Ui::RefMenuRollup())
{
ui->setupUi(this);
ui->pathEdit->setText("C:/Temp");
//Connect Buttons to functions
connect(ui->pathButton, &QPushButton::clicked, [... |
1d5eef07517cc773ac28a5498353fab598f71687 | 08ccece97e72de1954f391fce8c6feab69d09b06 | /MusicVisualization/MusicVisualization.h | 2051adbeb6a052a3bbd30c0afd0c64de90d9eae7 | [] | no_license | MohanChi/MusicVisualization | 6f2a63e494d2ad8040f838e48ea6f5dae7d6ed3c | e1516236ad6c08256da65f1876fd1f2db86fa1e0 | refs/heads/main | 2023-07-01T18:10:13.430060 | 2021-08-13T03:10:40 | 2021-08-13T03:10:40 | 366,259,302 | 1 | 0 | null | 2021-08-13T03:10:40 | 2021-05-11T04:54:14 | C++ | UTF-8 | C++ | false | false | 255 | h | MusicVisualization.h | #pragma once
#include <QtWidgets/QMainWindow>
#include "ui_MusicVisualization.h"
class MusicVisualization : public QMainWindow
{
Q_OBJECT
public:
MusicVisualization(QWidget *parent = Q_NULLPTR);
private:
Ui::MusicVisualizationClass ui;
};
|
1b9e8869615f4a8aab46efdb6241a8adb5a64ca3 | 5bfbe0bdec8cf84ab8f80a958ab4e42c3a006e7f | /src/NettleDriver.cpp | ca8cb016baec2412be86351ebc2830fec574a89f | [] | no_license | cpbrew/project | 7cb1fd8182a85f22ccb12cfe312fed8e9efa2316 | 753777870f72be03a25986a8ab4f47ce2dfcbae9 | refs/heads/master | 2021-01-12T09:31:33.650657 | 2016-12-14T12:33:58 | 2016-12-14T12:33:58 | 76,182,621 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,711 | cpp | NettleDriver.cpp | #include "NettleDriver.h"
#include "utils.h"
#include <nettle/aes.h>
#include <nettle/blowfish.h>
#include <nettle/salsa20.h>
#include <nettle/arcfour.h>
#include <nettle/yarrow.h>
#include <nettle/sha2.h>
#include <nettle/ripemd160.h>
NettleDriver::NettleDriver()
{
}
NettleDriver::~NettleDriver()
{
}
string Nettl... |
0a24c0089d5499da20ba78d3334283bcaaffef1b | 995dd38f2fc36daadbf91b0d6f09b79b0fd8241e | /ProyectosSDL/HolaSDL/Paddle.cpp | 75748036461158f52a301ee71575f4dd2de80437 | [] | no_license | CarlosDuranDominguez/TPV | c7dbddb5b59dae7282c06283360b72d9541510a8 | 31b3571ca104184f7dabeef37706d07c734ef641 | refs/heads/master | 2020-04-02T07:28:04.713423 | 2019-04-11T13:53:06 | 2019-04-11T13:53:06 | 154,197,731 | 0 | 1 | null | 2018-12-05T20:45:29 | 2018-10-22T18:47:50 | C | UTF-8 | C++ | false | false | 8,790 | cpp | Paddle.cpp | #include "Paddle.h"
#include <algorithm>
#include "ArkanoidSettings.h"
#include "Bullet.h"
#include "Game.h"
Paddle::Paddle()
: rightMovement_(false),
leftMovement_(false),
speed_(0),
leftAnchor_(0),
rightAnchor_(0),
sticky_(false),
actionType_() {}
Paddle::Paddl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.