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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1baf719819688d5d4ade431d3cbd0f58c8a8bcbc | c465ecbb983c4e01f07c0a609e7b2df9590e22e2 | /header/flag.h | 2ca033aef00c7265e1ed8b8fd01e26163b09bb93 | [] | no_license | manishbista/Image-Segmentation | dc615d71489a05a47f83c709436e72eb7d701d72 | 37bae3dcf81135bd6398143d848a02ff690824d8 | refs/heads/master | 2021-07-03T22:45:13.449179 | 2017-09-26T05:37:14 | 2017-09-26T05:37:14 | 104,840,627 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | h | flag.h |
/*****************************************************************************
Create a database of plausible command line arguments
Each record in database if a Flag structure initialized to default values
Command line arguments can change default values
Using a dictionary, indexing the database is made easier
******... |
c44bc7a37cb7f7331d738b8305b6169e67368296 | b68301a8861b984412e8b6002e19baa92a8dfb42 | /stack.cpp | f0f5a66114ecbcd15cc39a4eba7a8e254b783100 | [] | no_license | makz21/stack-cpp | 4beeaa8da184540a281b2f0366618d0894a2dae2 | 2bb3548f2e57c69ba36f700655e783f868f2f317 | refs/heads/master | 2020-03-07T07:52:49.295488 | 2018-03-30T00:28:32 | 2018-03-30T00:28:32 | 127,361,294 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,079 | cpp | stack.cpp | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <iostream>
#include "stack.h"
using namespace std;
Stack::Stack() {
this->rozmiar=2;
this->dane= new int[this->rozmiar];
this->top=0;
}
Stack::~Stack()
{
delete [] dane;
cout<< "Stos zostal usuniety"<<endl;
}
void Stack::clear()
... |
e00d7a4886b9d7fbc5583d1547d31d11288c0771 | 7d132eae1c4d1e572f42869bf1da5b094c53c25b | /Assignments/hw5/linkedlist.h | a9f0a786a8a49f9dfac4a5b35a897196703307bd | [] | no_license | afreet220/CSCI104_DataStructure | bf8c83c3b61814daa3fbc550b152a2093ed5af35 | fb05514608489a858ff36b33cfeec7e531c22b5c | refs/heads/master | 2021-01-10T14:54:38.028428 | 2015-10-15T10:47:03 | 2015-10-15T10:47:03 | 44,303,931 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,456 | h | linkedlist.h | #ifndef LINKEDLIST_H
#define LINKEDLIST_H
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>
#include <exception>
#include <cstddef>
#include <stdexcept>
#include "ilist.h"
using namespace std;
template <class T>
struct Item
{
T value;
Item<T> *prev, *next;
};
template <class T>
class L... |
b92262af6b6c6bf85309b620c2b8ac52d82f261e | 69ba43fe5715fe347f0ac90b756e593be378bac7 | /stop_controlled_intersection_tactical_plugin/include/stop_controlled_intersection_plugin.hpp | 92cd3da4ae5f3a64f69569682279dc1295b23ea2 | [
"Apache-2.0"
] | permissive | usdot-fhwa-stol/carma-platform | b66a676e2226269a0e1b6cc71f6d64ddf1f1001f | 54c8f4dda7ea5f42353e7dcf2934d5347e65a5d5 | refs/heads/develop | 2023-08-16T18:02:33.570984 | 2023-08-03T16:09:47 | 2023-08-03T16:09:47 | 154,219,652 | 195 | 81 | null | 2023-09-14T15:05:37 | 2018-10-22T21:27:52 | C++ | UTF-8 | C++ | false | false | 8,933 | hpp | stop_controlled_intersection_plugin.hpp | #pragma once
/*
* Copyright (C) 2022 LEIDOS.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
d8e5a0ad64d5d9834d1b68e6183d5eb69f642c99 | c64f6aba1b1d1c8ed1df28c57c99d081a3406ee7 | /02ftp/c/client.cpp | 0c0a6e67a5cc190d3337163a7a0f7862a18d0931 | [] | no_license | Jiwenguan/Unix-Network-Programmming | 893bcc51c42aa752fb5671cdeae6afcb73e4949a | 06497210bdd7e4fbccf6039cf9b8176b4c11d118 | refs/heads/master | 2020-03-22T04:31:36.407067 | 2018-07-15T14:33:06 | 2018-07-15T14:33:06 | 139,504,292 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,290 | cpp | client.cpp | //*******************************************************
//* @ author :Jiwenguan
//* @ date :2018-07-03
//* @ brief :multi-process fundemantal-TCP-Programming
//*
//*******************************************************
#include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<sys/types.h> /* See ... |
2b0a70fbfb9d74d9c9b4edee9d3f7acb09655346 | 052cbc55389bee781ea74ea6c188d5a57c8dee48 | /programming.in.th/1074.cpp | bb8fcccb66c03e8ddd86c5f65ad99694fa91b96d | [] | no_license | stank2010/code-competitive-programming | 0be5d9aaca44cdd43f34945f231b87bf7241f181 | 33fb6740ea871437525e8e18ee137b02523b2a10 | refs/heads/master | 2020-05-30T20:54:53.759195 | 2019-06-03T13:31:36 | 2019-06-03T13:31:36 | 189,960,865 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,605 | cpp | 1074.cpp | #include "stdio.h"
int z[201][201],mark[201][201],r,c;
char ei[201][201];
int count(int i,int j,int C)
{
return z[i+C][j+C]+z[i][j]-z[i+C][j]-z[i][j+C];
}
int main()
{
scanf("%d %d ",&r,&c);
for(int i=1;i<=r;i++)
{
scanf("%s",ei[i]);
for(int j=c;j>0;j--)
ei[i][j]=ei[i][j-1];
ei[i][0]=... |
c0339229afdf5d91f7b7269baa75c4c006c2d856 | c61547f4ad16d3fd70750bd9916d4442a77d60f5 | /src/garbage/PaperGarbage.cpp | 7090a09fbe0085408ed9dae5a1daf3475ce5b35c | [] | no_license | CodecoolBP20171/cpp-waste-recycling-marcellBan | 8ecfadf201a9276eee33cb52fffcb8779822013a | 920c9580c0bb218a14d9b68815ba2ef1dd14b564 | refs/heads/master | 2021-05-16T00:22:45.104945 | 2017-10-22T11:38:39 | 2017-10-22T11:38:39 | 106,993,971 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 262 | cpp | PaperGarbage.cpp | #include "../../include/garbage/PaperGarbage.h"
PaperGarbage::PaperGarbage(const std::string& name) : Garbage(name), isSqueezed(false) {}
void PaperGarbage::squeeze() {
isSqueezed = true;
}
bool PaperGarbage::IsSqueezed() const {
return isSqueezed;
}
|
7bcc838e92cc143470d323f36658ff3b2ab07941 | 2a34f1d14e6bd68cee1bb320fd0bb34ca9558886 | /Problems/CodeForces/1300_KillEmAll.cpp | de97fbf755121a5631e4904f9f0505ad9a8107ef | [] | no_license | DevinLeamy/Competitive-Programming | 840fc905ba872c476e4180274555770cf013d400 | 9c0fac489e238d98ba983606da4a0a6d7f519d13 | refs/heads/master | 2022-05-05T05:17:48.256661 | 2022-03-21T03:43:00 | 2022-03-21T03:43:00 | 199,560,255 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 886 | cpp | 1300_KillEmAll.cpp | #include <iostream>
using namespace std;
int main() {
int q, n, r, x;
cin >> q;
for (int i = 0; i < q; i++) {
cin >> n >> r;
int pos[n];
int distance = 0;
int last = 0;
for (int j = 0; j < n; j++) {
cin >> x;
pos[j] = x;
}
sor... |
5503ebc5e6521d0b9650f51919f816587b071332 | 7ed4ea9e4fd7f0d1683416a6023c39cca5536d42 | /CSCE 1030/hw5.cpp | bcf03651d4bd3ea642bcc6d899db31ff41990244 | [] | no_license | Daniel-McGartland/Portfolio | 78be418e0bd9f3c1b9061a87db81dbc8a24a3d9d | c965271798e503c5e51b1eaa4acf32212d2b8ac6 | refs/heads/master | 2021-01-26T14:20:04.068329 | 2020-02-27T06:58:34 | 2020-02-27T06:58:34 | 243,448,198 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,470 | cpp | hw5.cpp | /* Author: Daniel McGartland(danielmcgartland@my.unt.edu)
Date: 4/18/2016
Instructor: Dr. THompson
Description: The first part of the 1030 crush game used to print out the board
*/
#include<iostream>
#include<cstdlib>
#include<ctime>
void Introduction();
using namespace std;
int main()
{
//print out for the h... |
fc3565b473f5494c9fcd79838e456375339bab1c | fe9d7a4b522f2e9fe72a1fa42ade02032a40fb6a | /LectureCreux.cpp | 3747b356afac0d2d4eb925c7ebaf30a7462e123b | [] | no_license | alexBDG/ProjetSLPI | 21a56d6d771db5b3028c987f6f4337efa20d713a | fe44382d16c2a24492281732827d1647a1a00de6 | refs/heads/master | 2020-05-27T07:37:38.035168 | 2019-05-25T07:19:58 | 2019-05-25T07:19:58 | 188,531,175 | 0 | 0 | null | 2019-05-25T07:02:37 | 2019-05-25T06:48:51 | C++ | UTF-8 | C++ | false | false | 785 | cpp | LectureCreux.cpp | #include <fstream>
#include <string>
#include "LectureCreux.h"
using namespace Eigen;
using namespace std;
void Read(SparseMatrix<double> & matrix, string & source)
{
//Create the file:
std::string file;
file = "Matrices/" + source;
// Open the file:
std::ifstream fin(file);
// Declare variables:
int M... |
dda235b8d8c2c6e4f84588e6105b384543a1ac93 | cbc10a5991b64d525108d7548bb18b91535b4faa | /Source/Json/mdkJsonValue.hpp | 963ee3bb19e4d712dd8f4ca0b28aedca52ac9ecf | [] | no_license | liangbright/MDK | f6da2166add4a5ad25cb632de79d13f6d982bf97 | d3616f605f378f8e62d341b3dc1e232529faad89 | refs/heads/master | 2021-09-29T05:57:31.185048 | 2021-09-16T18:03:02 | 2021-09-16T18:03:02 | 121,717,423 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,614 | hpp | mdkJsonValue.hpp | #pragma once
namespace mdk
{
template<int_max TempLength>
JsonValue::JsonValue(DenseVector<int, TempLength> InputArray)
{
m_Type = TypeEnum::Type_Null;
(*this) = std::move(InputArray);
}
template<int_max TempLength>
JsonValue::JsonValue(DenseVector<long long, TempLength> InputArray)
{
m_Type = TypeEnum::Type_Nul... |
fe62d04e10f042c3889bfcb23dd0a850f23da631 | cdaeec5dff08a6fee54f737631eb849853890cce | /sort_impls/maximum_gap.cc | f5a7c5c0160bd626016ed5c0cd00895fa567d3e8 | [] | no_license | XiaotaoChen/coding-interview | f4dceedf0a9a199c5716b7fd223f503ba3afec3c | 932311acf3145442a1c293230d949a843e0b61df | refs/heads/master | 2023-05-12T07:23:18.116925 | 2023-05-04T14:02:55 | 2023-05-07T09:02:34 | 308,887,927 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,217 | cc | maximum_gap.cc | #include <vector>
#include <algorithm>
#include <unordered_set>
#include <map>
#include "../sorts.h"
namespace sort
{
int maximumGap(std::vector<int>& nums) {
int n = nums.size();
if (n<2) return 0;
if (n==2) {
int max = nums[0]>nums[1] ? nums[0]:nums[1];
int min = nums[0]<nums[1] ? nums[... |
d2df8e21409079303cc724cab783fc23d74debb7 | 342b8ab579b27aca7c00b37d7a8a1028a86635b9 | /qt3DRenderer/objloader.h | 687f5ba28a1f888db57220795a60906462b60b1b | [] | no_license | karlphillip/GraphicsProgramming | 75c8f956c63394ab974eeee2ee671b12a72216b1 | a2c82b95c585f29401e7a9a9c8e280c833855f05 | refs/heads/master | 2022-05-08T21:35:34.599259 | 2022-04-28T19:11:04 | 2022-04-28T19:11:04 | 7,362,541 | 170 | 76 | null | 2016-07-24T02:33:34 | 2012-12-29T03:33:10 | C++ | UTF-8 | C++ | false | false | 183 | h | objloader.h | #pragma once
#include "mesh.h"
#include <string>
class OBJLoader
{
public:
OBJLoader(const std::string& filename);
Mesh mesh();
private:
Mesh _mesh;
};
|
3d7a139144540f30fa35a5ef54278f4941337be7 | 4df08a71e73fb06debae296caf126f6f2e8291ad | /lab01/UserInput.cpp | 23c21838f42c75b656a94b5628a17d0c1e402d63 | [] | no_license | EvanBrown96/560labs | 60f985ea7ac32a59debe03a34eee630da4c069e1 | 9b2d9950c328580a226ea6468a7f2fbbc874a901 | refs/heads/master | 2020-04-18T21:55:19.074220 | 2019-05-07T03:55:11 | 2019-05-07T03:55:11 | 167,779,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,288 | cpp | UserInput.cpp | /**
* @author: Evan Brown
* @file: UserInput.cpp
* @date: 1/26/19
* @brief: implementation of UserInput functions
*/
#include "UserInput.hpp"
#include <iostream>
#include <limits>
#include "NumberParser.hpp"
#include "exceptions/NumberParseError.hpp"
UserInput::UserInput(const LinkedList<int>& startoff): ll(star... |
695dda0214e4faa4b9a4d802ec6e4c04b3b682dc | f66d08afc3a54a78f6fdb7c494bc2624d70c5d25 | /Code/CLN/src/complex/elem/division/cl_C_recip.cc | b8be663e22d383ee13752b04b24ac5ffdff9f3cc | [] | no_license | NBAlexis/GiNaCToolsVC | 46310ae48cff80b104cc4231de0ed509116193d9 | 62a25e0b201436316ddd3d853c8c5e738d66f436 | refs/heads/master | 2021-04-26T23:56:43.627861 | 2018-03-09T19:15:53 | 2018-03-09T19:15:53 | 123,883,542 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,341 | cc | cl_C_recip.cc | // recip().
// General includes.
#include "cln_private.h"
// Specification.
#include "cln/complex.h"
// Implementation.
#include "complex/cl_C.h"
#include "cln/real.h"
#include "real/cl_R.h"
#include "cln/rational.h"
#include "rational/cl_RA.h"
#include "float/cl_F.h"
#include "float/sfloat/cl_SF.h"
#include "floa... |
8b9489e939b77b157aabf9e97de4c3f563ba329f | e6a6ce66b7e6adee1043c92bf6089ca562c6e4e8 | /src_inoue/SimReAna.cpp | beb1acdc02b4951800967d32ede4b8f0ae025b4e | [] | no_license | HidemitsuAsano/E31ana | 267c4f7a8717234e0fd67f03844e46ad61ed7da9 | 4c179ab966e9f791e1f113b6618491dede44e088 | refs/heads/master | 2023-04-04T23:18:25.517277 | 2023-03-17T00:46:31 | 2023-03-17T00:46:31 | 121,988,232 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,547 | cpp | SimReAna.cpp | #include <iostream>
#include <string>
#include <TString.h>
#include <TTree.h>
#include <TFile.h>
#include <TRandom.h>
#include "ConfMan.h"
#include "KnuclRootData.h"
#include "BeamLineHitMan.h"
#include "BeamLineTrackMan.h"
#include "CDSHitMan.h"
#include "CDSTrackingMan.h"
#include "SimDataMan.h"
#include "AnaInfo.h... |
ce56c336b4f87ee787c59ce7a61a5409502f0c5f | 444a2443868fe7a72483b1a090c1312397a4c8de | /Contracts/EuropeanOptionContract.cpp | dc59786cf1b65404c0864604a384cf5bfbedd117 | [] | no_license | daveysj/sjd | e2dd2aeef3422ef54309dd3d67c7537ceea913c8 | f48abae6f2e8fc91d27961b8567be3d8f0eb62d9 | refs/heads/master | 2021-01-10T12:51:33.786317 | 2018-06-25T14:54:50 | 2018-06-25T14:55:28 | 51,246,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,763 | cpp | EuropeanOptionContract.cpp | #include "EuropeanOptionContract.h"
namespace sjd {
/*======================================================================================
EuropeanOption
The simplest Black-Scholes Option Contract used to price Black options on futures or
Black Scholes options.
================================... |
a24027ff9ae76c1ccb0a4cb3c9bc96357b7a7fa3 | 983096b0d798fc9e6aca12f9de686c898c4af0a8 | /examples/examplePrintBuffer/printBuffer.cpp | 7c40c417fcfc325228484a0475102d573c6ee82f | [
"BSD-3-Clause"
] | permissive | bstatcomp/RandomCL | 90029d6e97ac3e1751d310618c4a9c3b0ced7c9f | 7d216131128eece39839ec7b5a44cd3acc7b78ba | refs/heads/master | 2021-06-12T13:40:47.477500 | 2020-04-08T07:39:34 | 2020-04-08T07:39:34 | 128,662,087 | 27 | 7 | BSD-3-Clause | 2019-04-28T19:16:30 | 2018-04-08T16:47:47 | C++ | UTF-8 | C++ | false | false | 1,405 | cpp | printBuffer.cpp | /*
* This example shows how to generate an OpenCL buffer of random numbers. Here we transfer them to host and print them.
*/
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // cl.hpp
#if defined(__APPLE__) || defined(__MACOSX)
#include <OpenCL/cl.hpp>
#else
#include <CL/cl.hpp>
#endif
#include <chrono>
#include <random>
#i... |
407855a8c815afa24662cfc3cd914ca5fd94e20e | 13439117c84cb138f36ab0a275a39edcc411528b | /IM-Common/Bean/UserInfo.cpp | da6de6b01179f9d58b5a84b32b249420e826f985 | [] | no_license | chijinxina/IM-MiddleWare-CPP | ac16d9bcf3b2630547ffdb51f7b1b0860eac4ccc | 7e0c5616e58ca43576916d7ac1d9bd32866db60b | refs/heads/master | 2020-05-15T12:40:47.399090 | 2019-04-21T05:12:42 | 2019-04-21T05:12:42 | 182,273,075 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 542 | cpp | UserInfo.cpp | //
// Created by chijinxin on 19-4-16.
//
#include <iostream>
#include <string>
#include <boost/format.hpp>
#include "Bean/UserInfo.h"
using namespace std;
long UserInfo::getUserId() {
return userId;
}
void UserInfo::setUserId(long userId) {
userId = userId;
}
string UserInfo::getUserName() {
return us... |
2dfe9460cc097e1d2f5672de38a00a7893652165 | 6007d2cac908e2db297c9958716a10e394454e32 | /1081B.cpp | 3f5161d2db4082ad53264129b631495747e2ccc7 | [] | no_license | riz1-ali/Codeforces_Solutions | c245201d467575fcfdaf9f341e152c5aef727da4 | c19e45bbc65ab900aaaa8166b5fba1ac3321d18b | refs/heads/master | 2020-04-05T09:29:27.662246 | 2019-05-10T18:24:32 | 2019-05-10T18:24:32 | 156,759,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,041 | cpp | 1081B.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
typedef pair<ll,ll> pll;
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define gcd(a,b) __gcd(a,b)
#define lpr(i,s,e) for(ll i=s;i>=e;i--)
#define lpi(i,s,e) for(ll i=s;i<=e;i++)
#define lp(n) fo... |
12c2898db0e976fa8c17e285386019c03785f859 | 2df36e037900945c55c1c94470cf0e7be36c55d8 | /Kelp21/Kelp21/SceneOver.hpp | 8dae9408d80cd0061c5c7cb09b77770d77b24859 | [] | no_license | yutateno/AC21C | 6bf81a3f8da1f402252844f2c6f48d161a65c11a | 4879eda0c8eae57dcbb02c58481eb6b8fe594a39 | refs/heads/main | 2023-06-25T12:27:08.675948 | 2021-07-24T07:16:46 | 2021-07-24T07:16:46 | 389,026,809 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 357 | hpp | SceneOver.hpp | #pragma once
#include "SceneBase.hpp"
#include <memory>
namespace scene
{
namespace over
{
class SceneOver : public SceneBase
{
public:
SceneOver();
virtual ~SceneOver();
void init() override;
void ctrl() override;
void disp() override;
void dest() override;
private:
struct Impl;
s... |
97647a0e4d5b6dec350d58cc0aa4e6fd30bf9d52 | d37713fb5d15b6f79bc4c3ffe3135cda3b052a2e | /Vulkan2020/VulkanGraphicsInstance.h | a6e0318beda5819e99e40495f7204e0ec279a772 | [] | no_license | xmagicn/Vulkan2020 | 81b7f1f576e3b2afc5127de67949a54f96cd1356 | b84260866748c125e0d01afc7e5c4a6b1e8af958 | refs/heads/master | 2021-05-20T12:03:26.152917 | 2020-04-26T15:19:31 | 2020-04-26T15:19:31 | 252,228,079 | 0 | 0 | null | 2020-04-01T20:20:27 | 2020-04-01T16:24:48 | C++ | UTF-8 | C++ | false | false | 7,331 | h | VulkanGraphicsInstance.h | #pragma once
#include "GraphicsInstance.h"
#include <optional>
#include <vector>
#include <glm/glm.hpp>
#include "vulkan/vulkan.h"
class Texture;
class Model;
struct QueueFamilyIndices
{
std::optional<uint32_t> graphicsFamily;
std::optional<uint32_t> presentFamily;
bool IsComplete()
{
return graphicsFamily.... |
1794c00372da64aafd9aa97482c1345c83701752 | 5c37ea718ca8b54d36b31442043d0b84f1abcd68 | /projs/libdata_stream/tests/watch_test.cc | e8f70955ee82af6e39bc10a1a633ba78abd5e3b6 | [] | no_license | yotamgi/dgx-autopilot | a109a3e020a7e31585da475fc4b2a51cb9496df0 | e81818b2a1776a2695fac8b231e62b53652cda69 | refs/heads/master | 2021-01-25T08:54:56.571623 | 2014-06-11T20:35:42 | 2014-06-11T20:35:42 | 35,047,785 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,812 | cc | watch_test.cc | #ifndef WATCH_TEST_CC_
#define WATCH_TEST_CC_
#include <stream/util/lin_algebra.h>
#include <stream/filters/watch_filter.h>
#include <gtest/gtest.h>
/**
* Dummy generator for testing the integral.
* Returns the time since creation in seconds
*/
class DummyWatchedGen : public stream::DataPopStream<int> {
public:
D... |
915b691bbf5b8ac1224c9cb6f1006087a30693d5 | 17adb0e72c9dd190124a8d21171d9c8fcb23e333 | /ui/CxDynObjs/FormatPage.cpp | a18431f0dae22c19d379ba6c678265337ec99c01 | [
"MIT"
] | permissive | jafo2128/SuperCxHMI | 16dc0abb56da80db0f207d9194a37258575276b5 | 5a5afe2de68dc9a0c06e2eec945a579467ef51ff | refs/heads/master | 2020-04-01T16:30:20.771434 | 2016-02-06T00:40:53 | 2016-02-06T00:40:53 | 48,529,344 | 1 | 0 | null | 2015-12-24T06:45:45 | 2015-12-24T06:45:45 | null | GB18030 | C++ | false | false | 9,878 | cpp | FormatPage.cpp | // FormatPage.cpp : Implementation of CFormatPage
#include "stdafx.h"
#include "CxDynObjs.h"
#include "FormatPage.h"
//获取页面类型
HRESULT CFormatPage::CrackPropertyType()
{
IDynamicFrm* pDynamicFrm = NULL;
HRESULT hr = m_pPageSite->QueryInterface(IID_IDynamicFrm, (void **)&pDynamicFrm);
if (FAILED(hr))
return hr;
... |
cc22e87a9713e525d561f6a29ba3e74c7acb329f | 3b4d5a328099f89522e5a87d7c7237cf2ad13237 | /Embedded/Tonium/TIDE/CSerial/CSerial.cpp | 4623c314ae56f7d6d39a7444f8719b4be4e4c859 | [] | no_license | tonybillings/forfun | 3f1b038e6bae284bd34843cc12770f2b30c35c2e | b1a3bd6cb3ed968c6db9fd658f45f5e3c9426dd5 | refs/heads/master | 2023-07-09T23:38:30.969870 | 2021-08-25T09:24:07 | 2021-08-25T09:24:07 | 384,669,404 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 873 | cpp | CSerial.cpp | #include "CSerial.h"
extern "C"
{
namespace CSerial
{
static Serial* s_serial = nullptr;
BOOL Init(UINT portNumber)
{
s_serial = new Serial(portNumber);
return s_serial->IsConnected();
}
BOOL Write(BYTE* data, UINT length)
{
if (s_serial != nullptr)
return s_serial->Write... |
abcc9f423ee52ad642fdfdaa58ffd32b35c5c23e | 15ad1ee19a4a2d37824fc24db45523937176e7fe | /src/RSTexture.h | 516e386070c65b8648197fa04da5d05d4dbe826a | [] | no_license | NTimmons/MultiFocalStereoDisplay | 21eae7a00d6cb508c478637854ee7d0c602eb31d | e2e1cb358234a36c448ea09f748e67069dd4f3a4 | refs/heads/master | 2021-01-21T04:31:16.080219 | 2016-06-23T13:03:59 | 2016-06-23T13:03:59 | 49,945,421 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 231 | h | RSTexture.h | #ifndef _INCL_TEXTURE
#define _INCL_TEXTURE
class Texture
{
public:
Texture(): m_texture(-1){}
void Init(std::string& _path);
GLuint Get(){ return m_texture; }
void Bind(GLenum _TextureUnit);
GLuint m_texture;
};
#endif |
59e5d888ad8b5e34b388b7af59828e77d037d584 | 2364d95f600872bf7721e0e195f0999a2db886c1 | /src/demo/src/demo.cpp | 53ad9cc3139392d81390e9650818bfd134933b71 | [] | no_license | Tingyiwanyan/rrt | 28eb79c18aef88064717372946de0547b52d7a5c | 59f1a2aece62550aa69097c72e797340da5f1dd4 | refs/heads/master | 2020-03-29T18:24:02.817085 | 2018-09-25T05:05:50 | 2018-09-25T05:05:50 | 150,210,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,712 | cpp | demo.cpp | /*
For class E599 Special Topics in Autonomous Robotics
ISE, Indiana University
Lantao Liu
9/21/2017
*/
#include "ros/ros.h"
#include "std_msgs/String.h"
#include <visualization_msgs/Marker.h>
#include <sstream>
#include<geometry_msgs/Pose.h>
#include<stdio.h>
#include<tf/tf.h>
#include<tf/transform_datatypes.h>
#incl... |
554cfcf6cba6191fb23447addc11f2f0e03c25ab | 6ba38fe94e7ea5146c633f56f59c0c3278d695a7 | /plugins/core/DriftingGratingStimulus/DriftingGratingStimulus.h | e94625d3c5bad5528ae1bd726f68aa292510e923 | [
"MIT"
] | permissive | mworks/mworks | b49b721c2c5c0471180516892649fe3bd753a326 | abf78fc91a44b99a97cf0eafb29e68ca3b7a08c7 | refs/heads/master | 2023-09-05T20:04:58.434227 | 2023-08-30T01:08:09 | 2023-08-30T01:08:09 | 2,356,013 | 14 | 11 | null | 2012-10-03T17:48:45 | 2011-09-09T14:55:57 | C++ | UTF-8 | C++ | false | false | 2,874 | h | DriftingGratingStimulus.h | /*
* DriftingGratingStimulus.h
* MWorksCore
*
* Created by bkennedy on 8/26/08.
* Copyright 2008 MIT. All rights reserved.
*
*/
#ifndef DRIFTING_GRATNG_STIMULUS_H
#define DRIFTING_GRATNG_STIMULUS_H
#include "DriftingGratingStimulusShaderTypes.h"
using namespace mw::drifting_grating_stimulus;
BEGIN_NAMES... |
53a8d4b2e640097aa4d98266294bb65cf2c8a8c8 | 1634d4f09e2db354cf9befa24e5340ff092fd9db | /Wonderland/Wonderland/Editor/Modules/VulkanWrapper/Resource/Texture/Texture Backup/VWTextureGroupManager.h | 0bb62cb46896acea1105f42cb24d81a89ac84ed4 | [
"MIT"
] | permissive | RodrigoHolztrattner/Wonderland | cd5a977bec96fda1851119a8de47b40b74bd85b7 | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | refs/heads/master | 2021-01-10T15:29:21.940124 | 2017-10-01T17:12:57 | 2017-10-01T17:12:57 | 84,469,251 | 4 | 1 | null | null | null | null | ISO-8859-1 | C++ | false | false | 4,381 | h | VWTextureGroupManager.h | ////////////////////////////////////////////////////////////////////////////////
// Filename: VWTextureGroupManager.h
////////////////////////////////////////////////////////////////////////////////
#pragma once
//////////////
// INCLUDES //
//////////////
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include ... |
6c5403dc284dd8c0c2b0257d87672316149125fc | 301ff6c5bb236d4cda81bc2a17d372ab57684521 | /3.cpp | 0cfefa06022a40b5229fe882b90626eef9215642 | [] | no_license | pl187746/ZPI_lab | b7fdedd4e6eceb18dce6fc663ed138d0fc702f24 | 1b28e431bdd93591de2b32f1830948d9b286253c | refs/heads/master | 2021-01-10T06:21:15.051425 | 2016-03-23T14:35:00 | 2016-03-23T14:35:00 | 54,560,472 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 90 | cpp | 3.cpp | #include „myio.h”
#include <stdlib.h>
int main()
{ 123;
printf(„Hello World!”);
} |
a3745640c65a99a4127fc0e5591328ce5f551a03 | d68ffa160ccec781ff76863494723a56ec533a59 | /Board.h | d5a1b5f112b7d130780d3374d1ed318c431093a0 | [] | no_license | RyanMa1/BattleShipwithAI | 6c3492e44a451962e3e9022c2ff04a1ff0097cdc | 4ab99e6a8aa60fea8b74812544ff6aa9c3cfba7a | refs/heads/master | 2022-12-15T04:51:44.387817 | 2020-09-04T04:38:10 | 2020-09-04T04:38:10 | 287,325,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,008 | h | Board.h | //
// Created by matth on 6/9/2019.
//
#ifndef BATTLESHIP_BOARD_H
#define BATTLESHIP_BOARD_H
#include <vector>
#include <string>
#include "ShipPlacement.h"
namespace BattleShip{
class Move;
class Board {
public:
explicit Board(const int &rowSize, const int &columnSize);
Board() = default;
... |
41986edba736c4142717e31ceae59859d2dc265f | 36a59d835eef613ff3637acbbf50dbcdf259c86c | /Practise exam/p3/book.h | 87866b12c43b91be902c1882ce863706ef5b9c71 | [] | no_license | dragikamov/Programming_in_Cpp_I | 680a7640a86a78a898e44f5e971fb1994312d12e | 9c61700a1047cc41a8fa4a82e3caba6478c34c65 | refs/heads/master | 2020-04-26T17:49:14.837413 | 2019-03-04T10:38:46 | 2019-03-04T10:38:46 | 173,725,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,471 | h | book.h | /*
CH08-320142
p3.h
Dragi Kamov
d.kamov@jacobs-university.de
*/
class Book
{
private:
const char* title;
int pages;
public:
Book(const Book&);
Book(const char* t, int p);
Book();
void setTitle(char*);
void setPages(int);
const char* getTitle();
int getPages();
... |
ef288ed2f9927518037beaf4409a6a0ef679d99a | 4b318c53495ae93100c087d0a01c76d5be82f230 | /include/rmm/mr/device/cuda_async_view_memory_resource.hpp | 806ace807414c1e1c49817a6cfd9715ddba312b5 | [
"Apache-2.0"
] | permissive | rapidsai/rmm | 78798d1bbf103f090fe1463671fc3282cf7c2f91 | 93e616ac02850cc4671a8bdf9b3d2d6673346eec | refs/heads/branch-23.10 | 2023-09-04T04:23:12.035933 | 2023-09-01T17:24:33 | 2023-09-01T17:24:33 | 160,453,496 | 364 | 188 | Apache-2.0 | 2023-09-13T16:21:05 | 2018-12-05T03:13:32 | C++ | UTF-8 | C++ | false | false | 5,894 | hpp | cuda_async_view_memory_resource.hpp | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
60b8e5aef2222f230564b7e7d7061c3a848fd1e8 | fbf49ac1585c87725a0f5edcb80f1fe7a6c2041f | /SDK/Sub_Npc012_01_classes.h | f5305be8e10c4322d9539c28a0c1d64aa2142cf3 | [] | no_license | zanzo420/DBZ-Kakarot-SDK | d5a69cd4b147d23538b496b7fa7ba4802fccf7ac | 73c2a97080c7ebedc7d538f72ee21b50627f2e74 | refs/heads/master | 2021-02-12T21:14:07.098275 | 2020-03-16T10:07:00 | 2020-03-16T10:07:00 | 244,631,123 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,305 | h | Sub_Npc012_01_classes.h | #pragma once
// Name: DBZKakarot, Version: 1.0.3
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
// Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass Sub_Npc01... |
290650ecdb3134191311db7146b823f3828fb76e | 9fcad3b48ad1f7f945c4e1b92a72eae304f4c9c3 | /Day 4/Peak Index in a Mountain Array.cpp | c8d1704fa833553bf61ef4adbc19e5e872f5114d | [] | no_license | Aayushi-25/DS-A-Assignments | 03ef2efcd6b493fb38d1314160cb7f24d659c6e6 | f95f0add9c074d8521377dbf6c199893f77ba62b | refs/heads/main | 2023-06-13T04:44:19.669488 | 2021-07-05T18:44:02 | 2021-07-05T18:44:02 | 382,390,091 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | cpp | Peak Index in a Mountain Array.cpp | class Solution {
public:
int peakIndexInMountainArray(vector<int>& arr) {
int l=1, mid, pos;
int h=arr.size()-2;
while(l<=h)
{
mid=l+((h-l)/2);
if(arr[mid-1]<arr[mid] && arr[mid+1]<arr[mid])
{
pos=mid;
bre... |
080f7d66a166f02996d882f7e2c311f8af5d1ac6 | b93cda7e5d90fb5a84c24603619671c1767ba3dc | /pku/1160/5685594_AC_32MS_960K.cpp | 6f6b2b760b5252c8bc2896e7fbf77965f317d005 | [] | no_license | denofiend/acm | e7008ff49bf6bea0042dabf94bbae05ebc28fe8a | 409910ca43c888c0e2734699f982ff67b6613699 | refs/heads/master | 2022-11-23T14:51:02.445949 | 2020-07-31T11:42:24 | 2020-07-31T11:42:24 | 284,022,401 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,727 | cpp | 5685594_AC_32MS_960K.cpp | //
//
#include <iostream>
#include <map>
#include <set>
#include <vector>
#include <string>
#include <math.h>
#include <algorithm>
#include <queue>
using namespace std;
template <class T> void out(T x, int n){ for(int i = 0; i < n; ++i) cout << x[i] << ' '; cout << endl; }
template <class T> void out(T x,... |
67ef6106008b134ba97f464f52f8b7164f0a12d1 | 76a672b8c58de9f331278edfae8d27ee321b705e | /stack/max rectangle in binary matrix.cpp | 147df69854375ce558a86ac444ff0f279405799b | [] | no_license | rishabhgoyal777/ds | b8e817a428929f07b7395e37c80c265c31416be9 | 7864a56447c018bf37e3d33d0a456615730b67e3 | refs/heads/main | 2023-06-24T17:22:52.154691 | 2021-07-23T08:06:44 | 2021-07-23T08:06:44 | 337,030,761 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,843 | cpp | max rectangle in binary matrix.cpp | vector<int> nextSmallerleft(int arr[], int n){
stack<int> s;
vector<int> v;
for(int i=0;i<n;i++){
if(s.empty()){
v.push_back(-1);
s.push(i);
}
else{
if(arr[i] <= arr[s.top()]){
while(!s.empty() && arr[i] <= arr[s.top()]){
s.pop();
}... |
14f96ffec0145b9a1c63e77bf2182c2c422fd237 | a88b6f2a3ff12b0a6d5842984ab6c1f68ef5d38b | /flasmo-2a/flasmo-2a/flasmo-2a/deck.h | c6faff10116bd068d3955b443bdd4cf3cec928a0 | [] | no_license | rsmookler/Optimization_Methods | ab7bc83cecf93b10c0cfd12ef629f729c9662cb3 | 583a5a722d876dda0a8ede2c2b281f71e006ede2 | refs/heads/master | 2016-09-01T20:11:00.731634 | 2014-11-25T00:56:13 | 2014-11-25T00:56:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,136 | h | deck.h | // Rob Smookler, Sean Flaherty
// Project 2A
//This file contains the class declaration for deck,
//as well as its constructor (which creates a deck with
//all 52 cards in order) and a print operator that prints
//all cards in the deck.
#include "d_nodel.h"
class deck
{
public:
deck(); //C... |
2f2fe491f3ddc1b57caffd0321cd383ef04fa436 | b53bdc4576f948e6066bbead8a93451fa1598726 | /Luogu/ShengXuan/P4099.cpp | 4a9a547a5a3a2f0e0706d5ccbef8f62e3a5e0b6a | [] | no_license | Clouder0/AlgorithmPractice | da2e28cb60d19fe7a99e9f3d1ba99810897244a4 | 42faedfd9eb49d6df3d8031d883784c3514a7e8b | refs/heads/main | 2023-07-08T11:07:17.631345 | 2023-07-06T12:15:33 | 2023-07-06T12:15:33 | 236,957,049 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,208 | cpp | P4099.cpp | #include <cstdio>
#include <algorithm>
#include <cstring>
using namespace std;
const int maxn = 1100;
int T, n;
struct node
{
int to, next, val;
} E[maxn << 1];
int head[maxn], tot;
inline void addE(int x, int y, int z) { E[++tot].next = head[x], head[x] = tot, E[tot].to = y, E[tot].val = z; }
const int... |
a4f2b367659a65c9bd1b2554933e4f3f78375149 | c579423f9bf2a50bd4639501ff105bd5d81db597 | /cpp_01/ex06/HumanB.hpp | ad9bb0b50d698998dee1510d3758ac5283661ebb | [] | no_license | alilin2508/42_cpp_piscine | ff1b817aa3ce91446bb6a995a54cc75c017e850e | c69b5046f4585bdc921848e6aeb02815b7db0aa1 | refs/heads/master | 2023-05-06T08:05:14.331994 | 2021-06-04T12:00:12 | 2021-06-04T12:00:12 | 357,240,660 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 311 | hpp | HumanB.hpp | #ifndef HUMANB_HPP
# define HUMANB_HPP
#include <iostream>
#include <iomanip>
#include <string>
#include "Weapon.hpp"
class HumanB
{
public:
HumanB(std::string const &name);
~HumanB();
void setWeapon(Weapon const &weapon);
void attack();
private:
std::string name;
Weapon const *weapon;
};
#endif
|
34feb74653360816530e2e1a20d9a59115f01e62 | 35aacddb88021428045c09cf46b96484523442bd | /atcoder/Codefes17B/d3.cpp | 2e6604108c26385603480ffc0eb21abf65c6f44d | [] | no_license | takuwwwo/Procon | 87c82116188498edb4fc449eed71b7734143548a | 2cae1ce423201a80a627d7f720afe9a23a66a238 | refs/heads/master | 2021-04-09T13:23:23.671236 | 2020-04-07T16:33:43 | 2020-04-07T16:33:43 | 125,596,652 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 700 | cpp | d3.cpp | #include<stdio.h>
#include<vector>
#include<algorithm>
#include<string>
#include<iostream>
using namespace std;
int dp[1000000];
int main()
{
int num;
scanf("%d", &num);
string s;
cin >> s;
s = "0" + s + "0";
for (int i = 1; i < s.size() - 1; i++)
{
dp[i + 1] = max(dp[i + 1], dp[i]);
if (s[i - 1] ... |
f69a9922fadb1e142aed7e8724e1070bb4e00672 | 9404da276ed7892cf512145af2acefde2500de81 | /codeforces-solution/437c.cpp | f2852792fb0c377738900a509a0d4a1a6b9f41d3 | [] | no_license | ankit0905/codeforces-hackerrank-solutions | e61cb64065ced0184a8b7c3596c228ad0b0742e2 | d5bc51be22c6e0e24fced12e57f84d408b726eb1 | refs/heads/master | 2021-01-13T03:38:17.820667 | 2017-10-22T20:33:51 | 2017-10-22T20:33:51 | 77,300,030 | 2 | 1 | null | 2017-10-28T17:56:11 | 2016-12-24T20:59:25 | C++ | UTF-8 | C++ | false | false | 1,449 | cpp | 437c.cpp | #include <iostream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <queue>
#include <algorithm>
using namespace std;
#define ll long long int
#define pii pair<int,int>
#define pll pair<l... |
609198b1ed2ba7dac8359dd77d6e090d75331e4c | 6df7c00ab1d309f769ea429719151add11d69f5e | /src/LCM/utils/mortar/Moertel_PnodeT.hpp | 8ced0d7244f911ffe2e57e0e94ceea76dd950e89 | [
"BSD-2-Clause"
] | permissive | yangyang14641/Albany | 7e1af3c2f8d85686226aafad53b2aed25a1d8b3b | 572de52e682e925998cad37fb195afb0c66db02c | refs/heads/master | 2020-03-22T17:32:51.173450 | 2018-07-09T23:38:08 | 2018-07-09T23:38:08 | 140,401,192 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,214 | hpp | Moertel_PnodeT.hpp | //*****************************************************************//
// Albany 3.0: Copyright 2016 Sandia Corporation //
// This Software is released under the BSD license detailed //
// in the file "license.txt" in the top-level Albany directory //
//**************************************... |
cd28b2f1811496e0d5334572d612cb529a58160d | c47d0cfd87e34d00844a1ee3857306eeeedec304 | /src/engine/filesystem.hpp | 6a6e17fa4584ef5ae5ed9edaa08b5fa5aa72a5bc | [
"MIT"
] | permissive | Spirrwell/Mod-Engine | d2c8f859f3fdf4d33ae1108a9450a1732d03f0f3 | 9b9c7e3d6e14450d8a3f807bca8a9244f6e8b23d | refs/heads/master | 2021-04-04T22:58:55.516913 | 2020-03-30T09:56:33 | 2020-03-30T09:56:33 | 248,499,086 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,780 | hpp | filesystem.hpp | #ifndef FILESYSTEM_HPP
#define FILESYSTEM_HPP
#include <filesystem>
#include "memory.hpp"
#include "enginesystem.hpp"
#include "commandlinesystem.hpp"
#include <fstream>
#include <string>
#include <vector>
#include <unordered_map>
#include <limits>
class Mount;
struct MountFileHandle
{
operator bool() const { ret... |
7314bef208c573edf306af40fc04e4e746d29162 | 3c84c1ba90a0161050a51589927033d82980d912 | /modern_cpp/override_identifier.cpp | e1a894c30ddd5b9ffff70e854de12ffe59807cef | [
"MIT"
] | permissive | oceanwavechina/cpp_programming | ec3a7a87de5defabb1bba6410b018cd7fb0de678 | ee66e56da0b8c9c89af1cdf59941dbb17d13ff04 | refs/heads/master | 2021-11-26T21:13:07.794193 | 2021-09-24T08:41:10 | 2021-09-24T08:41:10 | 180,057,812 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,462 | cpp | override_identifier.cpp | #include <iostream>
#include <vector>
#include <string>
using namespace std;
/*
override 是一个标识符,不是一个关键字。
被 override 修饰的函数,编译器会检查确定重写了基类中的对应函数。
防止出现,我们想重写,但是因为类型传错了,反而新定义了一个新的函数
*/
// c++ 03
class Dog {
public:
virtual void A(int) {
cout << "Base Dog::A(int)" << endl;
}
virtual void B(... |
fae427b1ee84248ffba5b9af7bf4c6471256ff0c | d0ed215723b098cda9951a527829d2adcb265a42 | /tipslabel.cpp | 0a3c0324f7e46abc6abd28bc278d989f8d2daa2e | [] | no_license | ferv3455/Wargroove | 0416aa3877b4a0b40ac33c581587815a0adadc1e | 604a8a8cb2af3ec367ca64999bd4341b09ae7686 | refs/heads/main | 2023-07-17T13:21:16.303786 | 2021-09-12T15:43:41 | 2021-09-12T15:43:41 | 402,091,699 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,082 | cpp | tipslabel.cpp | #include "tipslabel.h"
#include <QFontDatabase>
TipsLabel::TipsLabel(const QString &text, QWidget *parent)
: QLabel(parent),
m_nOpacity(500)
{
// Formatting
QFont font(QFontDatabase::applicationFontFamilies(0).at(0), 16, QFont::Normal);
setFont(font);
setFixedHeight(80);
setMargin(20);
... |
cb80f311cf225eccb4ef9d4744c7b16bf217f324 | 332e0c3c2189c73c51a9422ab4f9e07ed7d5134e | /10161.cpp | 573e53a63a3d3b9fb60c87e8eb89cda7ae05c03f | [] | no_license | ksaveljev/UVa-online-judge | 352a05c9d12440337c2a0ba5a5f1c8aa1dc72357 | 006961a966004f744f5780a6a81108c0b79c3c18 | refs/heads/master | 2023-05-24T23:08:48.502908 | 2023-05-16T10:37:37 | 2023-05-16T10:37:37 | 1,566,701 | 112 | 80 | null | 2017-01-10T14:55:46 | 2011-04-04T11:43:53 | C++ | UTF-8 | C++ | false | false | 698 | cpp | 10161.cpp | #include <iostream>
#include <cmath>
using namespace std;
int main(void) {
int n;
while (cin >> n) {
if (n == 0)
break;
int tmp = sqrt(n);
int left = n - tmp * tmp;
if (tmp % 2 == 0) {
if (tmp * tmp == n) {
cout << tmp << " 1" << endl;
} else {
if (left < tmp + 1) {
cout << tmp + 1... |
0d0194dce719deb95bd4221f1afca34d2ff7146e | 711561384157a2918cb83437daf4ac223b9ff97b | /src/capnzerowrapper.cpp | b7c89b691fb51bc9faa61191481571e26e879ee0 | [] | no_license | alica-labs/capnzerowrapper | 49d28e4836bdb6fdadd8f65eb3233cda5676bb2e | 5401c3ac99164954e90bb0cf885a33aaca35f96e | refs/heads/master | 2022-09-21T07:36:50.348462 | 2019-09-24T11:27:35 | 2019-09-24T11:27:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 999 | cpp | capnzerowrapper.cpp | //
// Created by link9 on 02.07.19.
//
#include <iostream>
#include <capnzero/CapnZero.h>
#include <zmq.h>
#include <thread>
#include "capnzerowrapper.h"
bool running = true;
void recv_msg(void* socket) {
while(running) {
std::cout << "received: " << receiveSerializedMessage(socket, capnzero::Protocol::... |
937b68252efce425bd5a0e38124d00a573377223 | 19a0062318a7a0d98b69396ac139387e2520ce9e | /Public Files/OctreeNode.cpp | d30856f48a9433726bedc416601e1a8ddd7906a0 | [] | no_license | WestonJMarshall/Full-Tiltadillo-Public-Files | 1d0e191ab0200feb81275a0eb3e5a8d9666f42e7 | 5c61fb7b0b127481bbb03e09f4c50c3c13d5648e | refs/heads/main | 2023-02-02T19:47:11.805127 | 2020-12-19T21:11:02 | 2020-12-19T21:11:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,852 | cpp | OctreeNode.cpp | #include "OctreeNode.h"
using namespace Simplex;
///////////////////////////////////////
//constructor and the big 3
list<int> OctreeNode::OctantIdList;
OctreeNode::OctreeNode(int subdivisionLevelIn, vector3 maxCoordinatesIn, vector3 minCoordinatesIn)
{
subdivisionLevel = subdivisionLevelIn;
maxCoordinates = maxCo... |
61e8b2e74a624c475fa60caa17a8cf7922637406 | d5a8c6bfc9258d1f4533946a0afd83eeb62b6232 | /图像灰度的分段线性拉伸.cpp | ca0cbab615bfd955183a879bc1c118314e2a4c07 | [] | no_license | BestBlade/Divided_Linear_Strength | b9747ea17a1713dc5eb2ec35460af38054deee1e | bdb09a86e7440cbcb9a81848bbcd143642ca64d1 | refs/heads/main | 2022-12-29T23:01:29.693967 | 2020-10-16T01:21:38 | 2020-10-16T01:21:38 | 304,486,757 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,534 | cpp | 图像灰度的分段线性拉伸.cpp | #include <iostream>
#include<opencv2/core/core.hpp>
#include<opencv2/highgui/highgui.hpp>
#include"opencv2/imgproc/imgproc.hpp"
#include <stdio.h>
using namespace std;
using namespace cv;
int matchArray(float array[], float target) {
float val = 500;
for (int i = 0; i < 256; i++) {
float temp = ab... |
cbf254702199e1c5ea0a0f2985c918bec2709c90 | 05159e869e4b457d78a6f3bc75424557e74d3c23 | /google_code_jam/2015_google_code_jam/qualification_round/C/main.cpp | 084d3c582a1f70a45b5b546e53d95b9f82d246e8 | [] | no_license | yuliy/sport_programming | 71b1c15939540561528e4d29eed8d2d90669b54c | 758a3497adaf314a69f7a8a0d0ffd3f9a0f3f2aa | refs/heads/master | 2023-06-23T05:14:26.548770 | 2023-06-14T22:32:17 | 2023-06-14T22:32:17 | 64,036,584 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,612 | cpp | main.cpp | #include <stdio.h>
#include <iostream>
#include <vector>
#include <deque>
#include <cstring>
#include <string>
#include <map>
#include <set>
#include <list>
#include <algorithm>
using namespace std;
static const bool DBG = false;
static const int MAXSZ = 10001;
struct TQuat {
static const int E = 0;
static co... |
d294e24a67e9cb61e6aa05a00d9184184393f9b7 | cde07033bb41d4a15e5cdb41faed66baabc4aa06 | /karabiner-elements-extra-tools/hid_system_client/hid_system_client.hpp | c8fe9daee29e091fe98541c3148b14217d555ab5 | [] | no_license | Mathuv/Files | 584eeb0fe11caa76f37dae8f0cac242f199dd1fd | 3ff5b7f9f83cda596bbd7edb6915108759da9aa6 | refs/heads/master | 2020-06-14T17:14:00.924450 | 2019-05-19T11:13:11 | 2019-05-19T11:13:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,275 | hpp | hid_system_client.hpp | #pragma once
#include <IOKit/hidsystem/IOHIDParameter.h>
#include <IOKit/hidsystem/IOHIDShared.h>
#include <optional>
#include <pqrs/osx/iokit_service_monitor.hpp>
class hid_system_client final : pqrs::dispatcher::extra::dispatcher_client {
public:
// Signals (invoked from the shared dispatcher thread)
nod::sign... |
9fcb05af8da05ce73298a4372a46103cc9c77fae | a53fc969c4e4838b338ac978e1e06d96c9a5ef7f | /src/components/utils/include/utils/file_system.h | b24eaf33dc878375b496d4ef08d3a71284cdb850 | [] | no_license | LuxoftSDL/sdl_core_winport | 8dbe4ccca656469f9193c92fdfa871d577639b15 | d7a522bf71b6daf76f4fa9e5d8c7e4a7087ffbc1 | refs/heads/develop | 2016-08-12T18:08:20.570661 | 2016-04-07T07:23:32 | 2016-04-07T07:23:32 | 44,124,645 | 2 | 10 | null | 2016-06-06T09:43:51 | 2015-10-12T17:59:45 | C++ | UTF-8 | C++ | false | false | 9,118 | h | file_system.h | /*
* Copyright (c) 2016, Ford Motor Company
* 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 condit... |
a4ea2f69e2ca4c9ef0cda241ee5807f6ee51a8bc | 3282ccae547452b96c4409e6b5a447f34b8fdf64 | /SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimMaterial_GlazingMaterial_Blind.cxx | 5a082d2fc38fea932b6d87fab00a3c789c346a1d | [
"MIT"
] | permissive | EnEff-BIM/EnEffBIM-Framework | c8bde8178bb9ed7d5e3e5cdf6d469a009bcb52de | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | refs/heads/master | 2021-01-18T00:16:06.546875 | 2017-04-18T08:03:40 | 2017-04-18T08:03:40 | 28,960,534 | 3 | 0 | null | 2017-04-18T08:03:40 | 2015-01-08T10:19:18 | C++ | UTF-8 | C++ | false | false | 54,276 | cxx | SimMaterial_GlazingMaterial_Blind.cxx | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... |
d2ece29319b5f26a4ecb903a091d70d313612e12 | e96fe1ab0876ac1dc6319bb85b10f88781a8d626 | /src/pixled.h | 40324ab12ce4437e0c49e49a4dfabb78ccf56e5d | [] | no_license | pixled/pixled-lib | a1a088eb6bd33d829b1c4b60b3616c028d5d635f | b8177ac6e2791701d1cee0df719431039bedf658 | refs/heads/master | 2023-06-29T09:22:32.902805 | 2021-07-25T19:38:04 | 2021-07-25T19:38:04 | 263,389,821 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,089 | h | pixled.h | #include "pixled/animation/animation.h"
#include "pixled/arithmetic/arithmetic.h"
#include "pixled/chroma/chroma.h"
#include "pixled/conditional/conditional.h"
#include "pixled/random/random.h"
#include "pixled/mapping/mapping.h"
#include "pixled/chrono/chrono.h"
#include "pixled/output.h"
#include "pixled/runtime.h"
... |
9bb0cd6bcc2c5e703f626ad46527ceb023dfa8e9 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5708284669460480_0/C++/misha100896/main.cpp | 173719c4a4ad4abce268c8b4843af2947a6819f5 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 3,190 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
int t, k, l, s;
string a, b;
long double bukv[26];
long double dp[101][101], dp1[101][101];
long double LL;
bool DP[101][101];
long double f(int r1)
{
for (int i = 0; i < r1; ++i)
if (b[i] != b[i + 1])
return 0;
return 1;
}
... |
38bf78d4b8076c93ac33168b5fbb9ddc3d471cdd | 2fe616179636487f86167fa7d1283f3c8fba18b9 | /src/FedTree/DP/differential_privacy.cpp | f767c0177f4e4531bdc828d9c9fdbb5b91c1183f | [] | no_license | JerryLife/DeltaBoost | 7da9191c07bb3289d87f022b18b04fd89a8e2edd | 75e8a7c0a822e26ac0db49355a1a4560e10b3b06 | refs/heads/main | 2023-08-14T02:09:49.231963 | 2023-07-30T06:48:44 | 2023-07-30T06:48:44 | 672,458,205 | 2 | 0 | null | 2023-07-30T06:39:33 | 2023-07-30T06:39:32 | null | UTF-8 | C++ | false | false | 4,269 | cpp | differential_privacy.cpp | //
// Created by Tianyuan Fu on 14/3/21.
//
#include "FedTree/DP/differential_privacy.h"
#include "FedTree/Tree/GBDTparam.h"
#include <numeric>
#include <random>
#include <math.h>
void DifferentialPrivacy::init(FLParam flparam) {
GBDTParam gbdt_param = flparam.gbdt_param;
this->lambda = gbdt_param.lambda;
... |
7edbc409aab72a210888e93bf385e00ff2580800 | c747e6208cf1782cb92aa830f4b10a673867ea75 | /Flight.h | 45781bae0b55d06dbd9c61b67eb1869350faabe8 | [] | no_license | tom-wr/FMP2 | 3d909b77c47ee19dd2934690689785473d124218 | c2d2059715c5e9181cf430b543e0ae306b46af23 | refs/heads/master | 2016-09-06T13:31:33.589837 | 2013-12-12T16:28:35 | 2013-12-12T16:28:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,804 | h | Flight.h | /** Flight class holds it's own flight information and passenger lists.
*/
#ifndef FLIGHT_H_
#define FLIGHT_H_
#include <string>
#include <vector>
#include "WaitingList.h"
#include "BookedList.h"
#include "Date.h"
#include "View.h"
using namespace std;
class Flight {
public:
/**
* Flight constructor.
* @param... |
609cff77ad735d6da1f3124ab5d1feb9042673c2 | 1a88c2e7da8b5695867805678b2c6b2c092d0d67 | /src/animation.cpp | 3876e928f5289c7ff5727cf82e6d032ef3b9c11d | [] | no_license | chen-yd18/MergeForMelon | 0794943db2b38c9f07db4bd93bf02649737331c5 | d8f5b5a46b3d32ea5bca48a2d08a3f1e79bfff8c | refs/heads/main | 2023-05-10T05:49:10.216486 | 2021-06-11T06:17:36 | 2021-06-11T06:17:36 | 359,419,205 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,472 | cpp | animation.cpp | #include "animation.h"
#include "window_const.h"
#include "fruit.h"
extern Texture2D goldenLight;
extern Texture2D bigWatermelon;
WatermelonAnimation generateWatermelonAnimation()
{
return (WatermelonAnimation){totalFrames};
}
void drawWatermelonAnimation(WatermelonAnimation *anim)
{
Vector2 lightPosition = ... |
89940a0973038878c716b3d10a037a9ff4a2e227 | 2b2ef610805167b38ee1095a7b960dc82bb176d2 | /Src/GIS/tile/terrainquadtree.cpp | 108f81cda8d6fdbeac65ec54bde17963d1c7ae20 | [
"MIT"
] | permissive | imgui-works/Car-Navigation_gis_gps_map_terrain | 0533aca4e6ec6bc49100009b0601e6acd5dcd0eb | 4b9a33f9a386d5e9355b174962d6b5b756dfc477 | refs/heads/master | 2023-06-14T07:11:13.860022 | 2021-07-11T01:01:46 | 2021-07-11T01:01:46 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 30,823 | cpp | terrainquadtree.cpp |
#include "stdafx.h"
#include "terrainquadtree.h"
using namespace graphic;
cQuadTileManager *cTerrainQuadTree::m_tileMgr = nullptr;
// sQuadData
sQuadData::sQuadData()
{
ZeroMemory(level, sizeof(level));
tile = NULL;
}
//
// Quad Tree Traverse Stack Memory (no multithread safe!!)
struct sData
{
sRectf rect;
i... |
5f28b7d56a7b7ee81c1a12823571db707b07e76b | 3ac6a4e5ae8c31f1049017c35356b56d11b8a50a | /Shader.h | 9615758870a752c752eb4c147d22f51e827483b7 | [] | no_license | ulfbiallas/cpp-voxel-terrain | 9303002990a4dc80f9826bf86b6693cfa705eadd | 5178e34b4ccd070ca9e78424bfec3e7f53138a3c | refs/heads/master | 2021-01-23T19:40:56.659236 | 2015-04-13T20:26:00 | 2015-04-13T20:26:00 | 32,674,200 | 1 | 0 | null | 2015-04-08T19:42:02 | 2015-03-22T12:13:43 | C++ | UTF-8 | C++ | false | false | 351 | h | Shader.h | #ifndef SHADER_H
#define SHADER_H
#include <windows.h>
#include <GL/glew.h>
#include <GL/gl.h>
#include <GL/glut.h>
#include <cstdlib>
#include <iostream>
#include <vector>
#include "ShaderCode.h"
class Shader {
public:
Shader();
GLuint getProgram();
private:
GLuint vertexShader, fragmentShade... |
97c2f032b54d29b4d419c1ff1797be312ffde494 | 84f6156aed2b2450ea1edeb4efdb5829aa454f61 | /beecrowd/1477.cpp | 0cf36ebaaf958c8e5102e6a40980f31ee09fd837 | [] | no_license | IvanIsCoding/OlympiadSolutions | 39b1e9728553e60fcb03e235b2e09e2376fb6899 | d7cbe82f6c3aa0e1bf36b9d517401543e37c429c | refs/heads/master | 2022-07-02T09:29:30.903478 | 2022-06-18T21:05:22 | 2022-06-18T21:05:22 | 131,602,431 | 70 | 16 | null | null | null | null | UTF-8 | C++ | false | false | 6,169 | cpp | 1477.cpp | // Ivan Carvalho
// Solution to https://www.beecrowd.com.br/judge/problems/view/1477
#include <cstdio>
#include <cstring>
#define MAXN 100010
int homem[3 * MAXN], elefante[3 * MAXN], rato[3 * MAXN], lazy[3 * MAXN];
void build(int pos, int left, int right) {
if (left == right) {
homem[pos] = 1;
retur... |
0c8fcb32e339f7224669aa27d5e492e609868727 | d2937ca31ffdb5100211fe5f600dfa7061e2b30a | /test/test_svr_revert/test.cpp | de4937531dceb7cf9aff956338a9a6f130d40694 | [] | no_license | yiliangwu880/access_svr | 91177aedcf6170c17091d56839d67304aad7aa45 | d3c2e12ad20b155d8e3e20040652b7a517724a2e | refs/heads/master | 2022-05-02T17:12:04.935168 | 2022-03-02T07:52:57 | 2022-03-02T07:52:57 | 214,926,444 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,692 | cpp | test.cpp | /*
测试 svr 连接断开,恢复。步骤:
svr1 ,svr2 连接acc
client认证,设置uin.
svr2断开,重连。
svr2 会话,uin恢复。
*/
#include <string>
#include "libevent_cpp/include/include_all.h"
#include "svr_util/include/su_mgr.h"
#include "svr_util/include/single_progress.h"
#include "svr_util/include/read_cfg.h"
#include "unit_test.h"
#include "../acc_dr... |
5293a3fcae5448cc5324d30077fcdf059166e698 | f82a97d9f06676c5dfdfac09440493d803859a6e | /libvmaf/src/third_party/ptools/Examples/baseline_test.cc | e19f26295a8abb07aa315ac58fef25f95663fb81 | [
"BSD-3-Clause",
"Apache-2.0",
"LGPL-3.0-or-later"
] | permissive | weizhou-geek/vmaf | 0694e6c45777e7286fe474d5b2f7835dd3df674a | d5978d15f7c413e8aa78c891ce43291ead3fa287 | refs/heads/master | 2020-09-26T13:21:35.827002 | 2019-11-21T21:54:02 | 2019-12-04T00:04:29 | 226,263,006 | 2 | 0 | Apache-2.0 | 2019-12-06T06:37:56 | 2019-12-06T06:37:55 | null | UTF-8 | C++ | false | false | 1,012 | cc | baseline_test.cc |
#include "components.h"
// time baseline_test 20000 65536
// 13.848u 0.789s 0:08.15 179.3% 0+0k 0+0io 0pf+0w
// 14.152u 0.248s 0:07.91 181.9% 0+0k 0+0io 0pf+0w
// 14.126u 0.246s 0:07.93 181.0% 0+0k 0+0io 0pf+0w
// time ./baseline_test 200 4194304
// 9.191u 5.654s 0:10.75 138.0% 0+0k 0+0io 0pf+0w
// 9.... |
9292a6ba3402a97115a5b235f99981bfb976bf5d | ba96d7f21540bd7504e61954f01a6d77f88dea6f | /build/Android/Debug/app/src/main/jni/_root.Haslaamispaivak-6d39802e.cpp | 51bf6f20d5e1be98d8a1ca0462db024ebad1a9a4 | [] | no_license | GetSomefi/haslaamispaivakirja | 096ff35fe55e3155293e0030c91b4bbeafd512c7 | 9ba6766987da4af3b662e33835231b5b88a452b3 | refs/heads/master | 2020-03-21T19:54:24.148074 | 2018-11-09T06:44:18 | 2018-11-09T06:44:18 | 138,976,977 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,628 | cpp | _root.Haslaamispaivak-6d39802e.cpp | // This file was generated based on '/Users/petervirtanen/OneDrive/Fuse projektit/Häsläämispäiväkirja/.uno/ux15/Häsläämispäiväkirja.unoproj.g.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#include <_root.BasicSwipeToggleBig.h>
#include <_root.Haslaamispaivak-6d39802e.h>
#include <Un... |
d903e8d92f277e292345901206bfd129511c34ef | 6b6c3c08e1c70f1189e5ff5297fae81e4f39f006 | /GroveGas/GroveGasSensor/GroveGasSensor.ino | ce92046a7a6d27a64989d93bdd8f4c446a7cb88a | [] | no_license | nryytty/uni-galileo | 27ee417c9ee8bbba433e993212c5a10163f780b7 | 6228299f4f1e90a6fd7d8cb31114b732896fb0d3 | refs/heads/master | 2016-09-06T00:03:11.693992 | 2015-01-05T08:37:21 | 2015-01-05T08:37:21 | 28,804,036 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,376 | ino | GroveGasSensor.ino | /*
Grove Gas sensor
http://www.seeedstudio.com/wiki/Grove_-_Gas_Sensor
Uses http://playground.arduino.cc/Main/RunningMedian for median
sudo chmod a+rw /dev/ttyACM0
cu -l /dev/ttyACM0 -s 115200
*/
#include "RunningMedian.h"
#define Vref 4.95
const int LED_PIN = 13;
const int GAS_SENSOR_PIN = ... |
50334fc92288f95813a80f9d7572b5274e159329 | 351dc9210818ee17b9df088d7e6e614fa2094cbe | /src/Helper/MotorHelper.h | e1513d1ef631fb8573b25188a613b2dce869be4f | [] | no_license | FinnFlaschka1504/ArduinoUI | 086e69d00d1bd0039a9de9c3c6f51bcc5fae4f92 | e112812c9c02b674fc471a5838689e7dda48be17 | refs/heads/master | 2023-04-21T23:13:06.365043 | 2021-05-09T00:34:17 | 2021-05-09T00:34:17 | 359,147,331 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 866 | h | MotorHelper.h | class CustomStepper;
enum MOTOR_CONTROL_MODE {
SPEED, POSITION, MANUELL
};
class MH {
public:
static CustomStepper stepperSlide; // (Type:driver, STEP, DIR)
static CustomStepper stepperPan; // (Type:driver, STEP, DIR)
static CustomStepper stepperTilt; // (Type:driver, STEP, DIR)
static MultiSt... |
e3dd3bff750db415374bea1146f6cc392be08ce8 | 540c04254075b9fb22685a73487531f4c0b3e3ac | /lib-dmx/src/h3/multi/dmx.cpp | 9caf97307b3057033ad016aeabb155b89cff546b | [
"MIT"
] | permissive | vanvught/rpidmx512 | 197573217fc2c0c3673d6727d199c10e528a9fac | f27ae141d14c1d1cb9e0b62a291356ae0780c99f | refs/heads/master | 2023-08-08T02:06:52.200184 | 2023-05-19T12:44:48 | 2023-05-19T12:44:48 | 15,496,962 | 380 | 125 | MIT | 2023-05-19T12:47:24 | 2013-12-28T18:27:20 | C++ | UTF-8 | C++ | false | false | 30,910 | cpp | dmx.cpp | /**
* @file dmx.cpp
*
*/
/* Copyright (C) 2018-2022 by Arjan van Vught mailto:info@orangepi-dmx.nl
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including with... |
f59d3a362fa72e8ee90dfd2b6db0be655a2cab70 | df3c3b71f84304607b9b595cfc1d925a4604f477 | /abc097/b/main.cpp | e466e2abde53a20335eeefe1e7242f8f6b95c461 | [] | no_license | yuuki1036/atcoder | 79946a618e9f467dd08ebd22a4e6255c2b19ce94 | 5ce116c52e375c9a7c90f4e046832958066b6c66 | refs/heads/master | 2023-08-01T14:32:16.431357 | 2021-09-13T14:21:51 | 2021-09-13T14:21:51 | 290,467,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 300 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(){
int x;
cin >> x;
ll ans = 1;
for(int i=1; i<=100; ++i){
for(int j=2; j<=10; ++j){
long long res = pow(i, j);
if(res <= x) ans = max(ans, res);
else break;
}
}
cout << ans << endl;
} |
9e40c84cc9934244691a11410f6d70f3cb1d8571 | 1376919677619ee636ce13d285d9a34bc5d96742 | /loginwindow.cpp | 482ff599c20bc66f983808b2dc4afc7e30b115f9 | [] | no_license | alexYamaoka/CS1C-qt-shapes | f4a35851b62711ef72013e73a08f3026c4298a69 | c7a55146481b65ee3836ccf0d3280d1be89cd32a | refs/heads/master | 2020-06-24T13:11:35.610905 | 2019-07-25T04:57:23 | 2019-07-25T04:57:23 | 196,100,794 | 0 | 0 | null | 2019-07-10T00:09:13 | 2019-07-10T00:09:12 | null | UTF-8 | C++ | false | false | 1,973 | cpp | loginwindow.cpp | #include "loginwindow.h"
#include "ui_loginwindow.h"
bool adminAccessGranted = false;
loginWindow::loginWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::loginWindow)
{
ui->setupUi(this);
ui->errorMessage->setText("Guest account granted (default)...");
}
loginWindow::~loginWindow... |
bdc4ba6f25fac579ca675b2991bbef7299c1df7a | 142e542c645b58a73d5381170fd3ee154623f961 | /kythe/cxx/indexer/cxx/testdata/function/function_overload.cc | d8995e81ff7b56805adb2da11338f7b99b31982e | [
"Apache-2.0"
] | permissive | mcanthony/kythe | 226ea028d7124c58cfe2839cf14d4915c2b26a90 | ded11436a91e9948439c64c2eda87b8cbd23acfc | refs/heads/master | 2021-01-15T12:53:41.421627 | 2015-10-13T18:25:24 | 2015-10-13T18:25:24 | 44,242,375 | 1 | 0 | null | 2015-10-14T11:08:22 | 2015-10-14T11:08:22 | null | UTF-8 | C++ | false | false | 266 | cc | function_overload.cc | // Checks that function overloads are recorded.
//- @F defines/binding FnFI
void F(int X) { }
//- @F defines/binding FnFF
void F(float Y) { }
//- FnFI param.0 IntX
//- FnFF param.0 FloatY
//- IntX named vname("X:F#n",_,_,_,_)
//- FloatY named vname("Y:F#n",_,_,_,_)
|
dee3dd681be2c22fc9548f8f91d9a51522a10abe | e6581e760f20a75a0c2135e10f9bf2d0b1dabd37 | /Code Framework/Actions/MOVE.h | c4c0723881476a6f515efd492145199cff85f429 | [] | no_license | tokaalokda/LogicSimulator | 74f4d86c3381e600e00a19e9d05b0edcb26ea3d9 | 6093d6d242801c0f8764b5c16889e0b9c12a153e | refs/heads/main | 2023-04-06T09:37:37.428674 | 2023-03-21T09:19:43 | 2023-03-21T09:19:43 | 321,353,472 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 511 | h | MOVE.h | #ifndef _MOVE_
#define _MOVE_
#include "action.h"
#include "..\Components\Component.h"
#include "..\Components\OutputPin.h"
#include "..\Components\InputPin.h"
class Move : public Action
{
private:
//Get a Pointer to the user Interfaces
UI* pUI = pManager->GetUI();
window* pWind = pUI->getpWind();
i... |
ad491006aa944c9a2da0c32afc68751a8e359dde | c8b482b1828222c76b5fb1594ebceecd430e5bab | /Source/PL3DS.Gui/include/PL3DS.Gui/Dialogs/LocalizeDialog.h | fb1110df7c914cc0b0161bd9ea39eed5de9e113f | [] | no_license | osipyonok/PointLocationIn3DSubdivision | f900a781f6d9c024dc1a35e95719c84360bac5a2 | 74d74ea608ac4896230f1d7fb27a318eb1344eca | refs/heads/master | 2020-12-02T23:46:29.431618 | 2020-05-10T17:17:33 | 2020-05-10T17:17:33 | 231,157,639 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,602 | h | LocalizeDialog.h | #pragma once
#include <QDialog>
#include <Math.Core/Point3D.h>
#include <Rendering.Core/IRenderable.h>
#include <memory>
class QString;
namespace UI
{
namespace Details
{
class PointPreviewRenderable : public Rendering::IRenderable
{
Q_OBJECT
public:
PointP... |
367d0884d194edc95e9d9612043a24d1e7bdfef8 | 13432503a27e2d6eb6636f62403bb9ddf0d89111 | /Emoticon/EmoticonMainWgt.h | 7f4e51871e5b34799cb131f3cfba22d91a098743 | [
"MIT"
] | permissive | startalkIM/startalk_pc | 0fa0d1a010c0f7706571dee29921ecf5b557edf4 | 1c51f376f0915229b44f4e71b3ead6278ee639a4 | refs/heads/master | 2022-07-28T13:31:03.355674 | 2021-12-14T02:57:10 | 2021-12-14T02:57:10 | 219,650,148 | 30 | 22 | MIT | 2021-10-16T02:15:33 | 2019-11-05T03:31:28 | C++ | UTF-8 | C++ | false | false | 3,817 | h | EmoticonMainWgt.h | #if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif
#ifndef _EmoticonMainWgt_H_
#define _EmoticonMainWgt_H_
#include "CustomUi/UShadowWnd.h"
#include <QMap>
#include <QPair>
#include <QMutexLocker>
#include "emoticon_global.h"
#include "EmoticonStruct.h"
#include "include/CommonStrcut.h"
#include "en... |
d74f8c67aaa489ca777a4ebc6a78029b804d7c65 | ac3b1252621e7bd0bb7ebbd80d74c8a14b463413 | /VE280_InClassEx/415.add-strings.cpp | 3e277776c8df3c4c463d7b464ad958c8d720b502 | [
"MIT"
] | permissive | PeterQiu0516/LeetCode | 838622f6678caa897f19f3d342af8108f5e8c5d1 | b692a67b434767dea6bb786b423664202d1d8219 | refs/heads/master | 2020-12-18T22:33:25.614382 | 2020-12-11T11:03:07 | 2020-12-11T11:03:07 | 235,539,028 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 996 | cpp | 415.add-strings.cpp | /*
* @lc app=leetcode id=415 lang=cpp
*
* [415] Add Strings
*/
// @lc code=start
class Solution
{
public:
string addStrings(string num1, string num2)
{
int n1 = num1.size(), n2 = num2.size();
int int1[5100] = {};
int int2[5100] = {};
int ans[5101] = {};
for (int i = ... |
dfaf53f092a76931dcfb63b4b43083fe962e621e | d86ed55d6db57a1b573c32853aecd677d350f732 | /main.cpp | 0258bd8ef76c85280bd03f52c4f0a9cc625f652c | [] | no_license | rocioparra/eda-tp3-roomba | 23d1d0cdd911bd91ae406402280ad16e3c537972 | 7e127d5a99dda6b1c605a8cce3cdf33f682366cd | refs/heads/master | 2021-01-23T03:33:32.589074 | 2017-03-30T19:06:50 | 2017-03-30T19:06:50 | 86,088,925 | 0 | 0 | null | 2017-03-27T01:06:51 | 2017-03-24T16:30:39 | C++ | ISO-8859-1 | C++ | false | false | 6,954 | cpp | main.cpp | /*
Instituto Tecnológico de Buenos Aires
22.08 - Algoritmos y estructura de datos
Trabajo práctico n° 3: Robots
Autores: Díaz, Ian Cruz - legajo 57.515
Parra, Rocío - legajo 57.669
Stewart Harris, María Luz - legajo 57.676
Fecha de entrega: jueves 30 de marzo de 2017
*/
#... |
107c050bdee60f5a506b48d695bea18a69c77237 | 5fa92e7456501ed0ed306f6925b7c7a628eb440f | /俄罗斯方块/MyMap.cpp | 04f3a3256be53573e0fd09807c6b89668c05568b | [] | no_license | yuantangjin/C- | f56058c22d3a8e344817be7a099ece39721a450f | bec84b0beaeb74ac343b627a34b20df5e1a2be9c | refs/heads/master | 2023-07-11T07:31:44.686828 | 2021-08-13T14:41:50 | 2021-08-13T14:41:50 | 394,821,156 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,875 | cpp | MyMap.cpp | #include "stdafx.h"
#include "MyMap.h"
CMyMap::CMyMap() {
loadimage(&image[0], "1.jpg", IMG_WID, IMG_HEI);
loadimage(&image[1], "2.jpg", IMG_WID, IMG_HEI);
_zeroMap();
}
CMyMap::~CMyMap() {
}
void CMyMap::initMap()
{
//清空地图
_zeroMap();
//最上面和最下面一行
for (int i = 0;i < MAP_ROW;i += MAP_ROW - 1) {
for (size... |
9ce501cae60a203380d077d4d06414b0a9c67c32 | 71d3678b339645ba70f44ca029d214cfbb3327a9 | /src/model/model.cpp | c57248a60c74d621b04f75b42a889272d36e412a | [
"Apache-2.0"
] | permissive | QthCN/opsguide_ogp | 1a62789d66b93ededfcbb9a616d7a1b880034a29 | 64ea1b9682d9275f0bf2c38bf4dcae868f0c4bfd | refs/heads/master | 2021-05-24T04:01:29.137979 | 2020-08-20T00:37:36 | 2020-08-20T00:37:36 | 63,672,580 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 23,320 | cpp | model.cpp | //
// Created by thuanqin on 16/6/1.
//
#include "model/model.h"
#include "mysql_connection.h"
#include "cppconn/driver.h"
#include "cppconn/exception.h"
#include "cppconn/resultset.h"
#include "cppconn/prepared_statement.h"
#include "cppconn/statement.h"
#include "common/log.h"
#include "common/md5.h"
#define SQLQU... |
1e446c84a48f518d8ed0f56ff0d5471ece0e3b26 | 74a4883200055cd1c32f61fb71e54efdcfdf72aa | /cpp/328. Odd Even Linked List.cpp | 23ddc04f2ce075b31369bd5c388ce5e7b974c8ba | [] | no_license | jackymxp/leetcode-solution | 247af392f0b7c2b6b27cab19b7d79bf7eac27c6f | a0ab3ee4f3d5673209454b4b98b6bde0a7eb45d4 | refs/heads/master | 2021-06-30T21:55:39.174762 | 2020-12-26T04:17:42 | 2020-12-26T04:17:42 | 206,824,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 881 | cpp | 328. Odd Even Linked List.cpp | #include "ListNode.h"
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* oddEvenList(ListNode* head) {
if(!head || !head->next)
return head;
Lis... |
b649a998a8ff7c21e2c4168657bd72cbfff5af57 | c2547772411eb435f7dbff9fde8a6cbe21e91099 | /src/ut/mock_alarm_scheduler.h | 4fc8fe4a3b82713a1b89b15c12ad7245ab1f7e0d | [] | no_license | ClearwaterCore/clearwater-snmp-handlers | 1a91d04df088cb5f9b4ec700ad2da8f1522bc175 | 889ec5e34967300b73e02275442cbb71fc27107d | refs/heads/master | 2020-12-24T09:56:49.947024 | 2017-06-26T08:01:13 | 2017-06-26T08:01:13 | 22,438,990 | 0 | 0 | null | 2017-10-10T16:00:03 | 2014-07-30T18:01:55 | C++ | UTF-8 | C++ | false | false | 993 | h | mock_alarm_scheduler.h | /**
* @file mock_alarm_scheduler.h
*
* Copyright (C) Metaswitch Networks 2017
* If license terms are provided to you in a COPYING file in the root directory
* of the source code repository by which you are accessing this code, then
* the license outlined in that COPYING file applies to your use.
* Otherwise no r... |
a728ef3eff2eac6351867c52ecde4c4ff53233b5 | bd5bc7146f852fc3bddbfa0ad818911e2f1b379a | /test/test_unit/src/app/common_test.cpp | 35f3ca08e2be3fd964e2eb408eb1342734580270 | [
"MIT"
] | permissive | CosmicSharts/ccapi | ac6c8ffc43973081e77ae33d433ed8ef1cdfdefc | 8a1a89dcaf41b5a23b317efb492b6d7665b125c9 | refs/heads/master | 2023-08-23T17:06:50.119893 | 2021-10-30T02:07:07 | 2021-10-30T02:07:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 863 | cpp | common_test.cpp | #include "app/common.h"
#include "gtest/gtest.h"
namespace ccapi {
TEST(AppUtilTest, linearInterpolate) {
EXPECT_DOUBLE_EQ(
AppUtil::linearInterpolate(0.5, 0.00005, 0.975609756097560953950090909090909090911614, 0.00010000000000000000479, 0.910732082043367723592741658),
0.00009317952657378995);
}
TEST(Ap... |
26e51ac3994c57fddc9dc8a35217b8a6b667b57f | b269392cc4727b226e15b3f08e9efb41a7f4b048 | /UVaLive/UVaLive 3905.cpp | 48a74e03db0febd86c1645b0f507ca69f99d2188 | [] | no_license | ThoseBygones/ACM_Code | edbc31b95077e75d3b17277d843cc24b6223cc0c | 2e8afd599b8065ae52b925653f6ea79c51a1818f | refs/heads/master | 2022-11-12T08:23:55.232349 | 2022-10-30T14:17:23 | 2022-10-30T14:17:23 | 91,112,483 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,468 | cpp | UVaLive 3905.cpp | #include <iostream>
#include <algorithm>
#define MAXN 100005
#define INF 1e9+7
using namespace std;
//确定区间的左右边界(点)
void checkRange(int xy, int ab, int wh, double &left, double &right)
{
if(ab==0)
{
if(xy<=0 || xy>=wh) //该方向速度为零,且该方向不在范围内,则不会进入相机范围
right=left-1;
}
else if(ab>0)
... |
63a022ac7f9ad891947d094902523787d1cfbe48 | 5052fa69ce211c463867e5f201e7147e8bfa279f | /trees/everthing_about_tree.cpp | f85ce55f6f6546a602b3fa5c214e22bfa6fd04d9 | [] | no_license | Lalit-garg/DataStructures | c58f9d30b776ec37a1bb59fb202c5348ca37da49 | 85c21709e9350c71e77a7ab93efe9d29740c830f | refs/heads/master | 2022-11-24T15:18:29.753957 | 2020-08-01T20:11:16 | 2020-08-01T20:11:16 | 279,565,107 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,100 | cpp | everthing_about_tree.cpp | #include<bits/stdc++.h>
using namespace std;
template <typename T>
class treenode
{
public:
T data;
vector<treenode<T>*> children;
treenode(T data)
{
this->data=data;
}
~treenode()
{
for(int i=0;i<children.size();i++)
{
delete children[i];
}
}
};
void printlevel(treenode<int>* root)
{
... |
70e8c887af5a1dbf3fbed77e92ce7ab58020181b | a7da2bd63dc8578c51bf663895e67f0c0540fecc | /LoS.cpp | cabd1a2ac04dcb4c6e18467456131906516e28d6 | [] | no_license | tranngocphu/kb3dcpp | 7b824c2da4f85b88087d85179b70c51a0e024913 | f19301b803658245c13ab23b1f4d11ed0bb8f387 | refs/heads/master | 2020-07-14T13:54:32.130039 | 2019-08-30T07:37:27 | 2019-08-30T07:37:27 | 205,329,945 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 963 | cpp | LoS.cpp | /*
* LoS.cpp
* Release: KB3D++-3.a (03/28/08)
*
* Contact: Cesar Munoz (munoz@nianet.org)
* National Institute of Aerospace
* http://research.nianet.org/fm-at-nia/KB3D
*
* Unit conventions are explained in KB3D.cpp
*
* This file provides the function
* vertical_recovery
*/
#include <cmath>
#include "Util... |
5546535df372e709e49a9fa3b55459589d409324 | 66fc8c4bc510fb90a823f47e1bd45b45bfe2da30 | /Snake_v2/SnakeHead.cpp | bf016bb8159ee5f25d7fe11824997d8e37af84ed | [] | no_license | naitoramu/SFML_Games | 41679937d473cc94891dc2f673118327f19869d1 | e2e187c2bcd68315f4e9f4884fc4d21f8b96d951 | refs/heads/master | 2022-05-23T12:32:06.763974 | 2020-03-28T19:19:09 | 2020-03-28T19:19:09 | 245,515,309 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,880 | cpp | SnakeHead.cpp | #include "SnakeHead.hpp"
#include "SnakeBody.hpp"
#include <iostream>
using namespace sf;
void SnakeHead::granice(){
lim_l = (width - width_p) / 2;
lim_g = (height - height_p) / 2;
lim_r = lim_l + width_p;
lim_d = lim_g + height_p;
}
SnakeHead::SnakeHead(){}
SnakeHead::SnakeHead(int sx, int sy, int ... |
35ee388b010951fd0ec31e0c5a1827ea5392da8c | 87724112bc297303b4ed5c06de7c1628487197f2 | /DemoLib2/net/data/GameEventDataType.hpp | 677d25b696a98190f2e48dfc1f8ba93c19df20d8 | [
"MIT"
] | permissive | PazerOP/DemoLib2 | 3ade03a6588d76d40e4db48ef0d4296a39ccad7d | 7377f87654ce9bf6487d6b7ce7050cec8e76894e | refs/heads/master | 2021-07-19T04:30:48.617072 | 2020-04-26T22:00:59 | 2020-04-26T22:00:59 | 139,382,124 | 15 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 512 | hpp | GameEventDataType.hpp | #pragma once
#include <cstdint>
#include <ostream>
enum class GameEventDataType : uint_fast8_t
{
Local = 0, // Not networked
String, // Zero terminated ASCII string
Float, // Float 32 bit
Long, // Signed int 32 bit
Short, // Signed int 16 bit
Byte, // Unsigned int 8 bit
Bool, /... |
86159632a632ce82380e37ee4a0e659fc79b90a0 | dccd1058e723b6617148824dc0243dbec4c9bd48 | /codeforces/1213F.cpp | 9b281e9b2e1c51bdb87fb71e4138c38e900373fd | [] | no_license | imulan/procon | 488e49de3bcbab36c624290cf9e370abfc8735bf | 2a86f47614fe0c34e403ffb35108705522785092 | refs/heads/master | 2021-05-22T09:24:19.691191 | 2021-01-02T14:27:13 | 2021-01-02T14:27:13 | 46,834,567 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,518 | cpp | 1213F.cpp | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for(int i=0;i<(int)(n);++i)
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define fi first
#define se second
#define dbg(x) cout<<#x" = "<<((x))<<endl
template<class T,class U> ostream& operator<<(ostream& o, const pair<T,U... |
8746eefc685999697c48f2650b8fb0bff07936da | dfc4d0ae87d50a34441c80a690955126001f36a4 | /~2015.11/6359.cpp | c415ff4ea3c44eeb9623766150bc35ecb1437cc7 | [] | no_license | fakerainjw/ProblemSolving | 48c2e83f414f3ea9a9b8e182ff94842b4f9453ae | 402c06a1d64ee287e39a74282acc1f0c7714d8fe | refs/heads/master | 2023-07-08T07:33:18.003061 | 2016-08-01T13:16:07 | 2016-08-01T13:16:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 419 | cpp | 6359.cpp | #include <iostream>
#include <cstring>
using namespace std;
int space[101];
int main(void)
{
int test;
int N;
cin>>test;
for (int i=0;i<test;i++)
{
memset(space,0,sizeof(space));
cin>>N;
for (int i=1;i<=N;i++)
{
for (int ptr=i;ptr<=N;ptr+=i)
space[ptr]^=1;
}
int cnt=0;
... |
3677a3c724e80c707e2ed3e0e06839526a3ca1ce | 902ea50f2af62e54977baffcf11f73f18519cd9e | /剑指offer/快速排序.cpp | 82007d2ab639deb54935ce0fbc4c32737e95a80f | [] | no_license | dh434/leetcode | 80f1436106edd83d38d50d7e21005eaaa4096ac1 | 28ea3e3d5215b23120b9477e31c5727252e19e33 | refs/heads/master | 2020-06-05T16:49:17.023493 | 2019-11-17T12:55:58 | 2019-11-17T12:55:58 | 192,487,558 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,267 | cpp | 快速排序.cpp | #include<iostream>
#include <stack>
#include <vector>
#include <deque>
#include <list>
#include <string>
#include <queue>
#include <stdio.h>
#include <time.h>
#include <windows.h>
#include <exception>
using namespace std;
int randomInRange(int start,int end)
{
srand (time(NULL));
return rand() % (end-s... |
8748ec2343493a6ae7bbc61a6dd3c87d19f44f04 | c2254dde19328b5dcb929bbff5496fb62639392d | /timeutil.cpp | 5436f25d1c1a3f78befdb7124a6cecb0eddc23d2 | [] | no_license | f4exb/dsdcc | 29bdc2a171aab48a6803d6e6c087c566323cee97 | 64e759009158eb8e4c446a10ab70c546aa664795 | refs/heads/master | 2023-05-05T11:26:54.869004 | 2023-04-26T06:40:25 | 2023-04-26T06:40:25 | 56,724,297 | 271 | 63 | null | 2023-04-26T06:40:26 | 2016-04-20T22:09:49 | C++ | UTF-8 | C++ | false | false | 1,946 | cpp | timeutil.cpp | ///////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2018 Edouard Griffiths, F4EXB //
// //
// This program is free software; you can redistribute it and/or mod... |
62a92756d649f2842a498dc8c333114e6cd6e1f4 | e7e2ecb3ca0f94286f31ee7481f605642de82d93 | /C++ assignment/C++ GameLoop/C++ GameLoop/Sound.h | ec3b3a7df4ab24700f697e83c206be1300f5479a | [] | no_license | Birmingham-City-Uni/cmp5327-c-programming-for-games-assessment-AntonioMihaiDima | 543a93102f4db03db7a7cdc89b3c950c4362dd15 | 100b064a152f0f0e2f34fd96518d89c2f57cb90a | refs/heads/master | 2022-03-28T20:30:33.126552 | 2020-01-12T20:28:30 | 2020-01-12T20:28:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | h | Sound.h | #pragma once
#pragma comment (lib,"winmm.lib")
#include <Windows.h>
#include <mmsystem.h>
#include <mmeapi.h>
#include <stdio.h>
#include <string>
#include <iostream>
#include <fstream>
class AudioManager {
public:
void PlayMusic()
{
PlaySound(TEXT("background.wav"), NULL, SND_ASYNC | SND_LOOP);
}
private... |
5ebf4b4d6de27fc82c859aa7483b014fe75091a0 | 7a2ad865667f282a953c7729fa9147c260cae4ff | /code/src/voxel.cpp | 67d4271b52d19a57165ce5a4716a53b9ceaced9a | [] | no_license | LiUWaterFlow/WaterFlow | 76e8cbe4afa8984647c4a8f693b8a4e8ec78b57e | 381d445644d053166596c18979cf58a30a7ad6a1 | refs/heads/master | 2021-01-01T16:45:22.380567 | 2015-12-21T22:57:52 | 2015-12-21T22:57:52 | 42,055,669 | 7 | 4 | null | 2015-12-10T12:27:56 | 2015-09-07T13:53:46 | C | UTF-8 | C++ | false | false | 13,742 | cpp | voxel.cpp | #include "voxel.h"
#include "GL_utilities.h"
#include <iostream>
#include "gtc/type_ptr.hpp"
#include "GL_utilities.h"
#include "glm.hpp"
void Voxelgrid::rehash(){
hashSize = hashSize*2;
std::vector<voxel*>* tempTable = new std::vector<voxel*>((int)hashSize,nullptr);
numCollisions = 0;
numInTable = 0;
std... |
0972c1e9800101a08e18d1b23a8872b9d98643ce | 4ed7dd878a2b34bace1fd91a49106eebe570a360 | /BZOJ/BZOJ3551.cpp | 5b311a00c7bde7171c4d3a6edb3a13045590226a | [] | no_license | mayukuner/AC | fb63be04a1fcf7f3af080aa50bf7c6e0e070b1b9 | c21b2970b7288d7b36cbed468101446c615e79ff | refs/heads/master | 2020-12-15T02:38:51.758676 | 2017-10-11T13:01:11 | 2017-10-11T13:01:11 | 46,971,415 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,473 | cpp | BZOJ3551.cpp | #include<stdio.h>
#include<algorithm>
#include<cstring>
#include<vector>
#include<stdlib.h>
#include<map>
#include<set>
#define REP(i,b,e) for(int i=b; i<=e; i++)
#define RREP(i,b,e) for(int i=b; i>=e; i--)
#define INF (1<<30)
using namespace std;
#define M 500010
#define N 100010
int n,m,q,md,b[N];
int pa[N<<1];
in... |
bc1c2cea1ea1f47b88eb3f63d05483764d57ff6a | 2aed63d9aa027419b797e56b508417789a604a8b | /injector2degHex/case_interFoam_3mm/processor1/0.5/alphaPhi0.water | ef444a47bca37195879edec93aae477a2a746a01 | [] | no_license | icl-rocketry/injectorCFDModelling | 70137f1c6574240c7202638c3713102a3e1e9fd8 | 96591cf2cf3cd4cbd64536d8ae47ed8080ed9016 | refs/heads/main | 2023-08-25T03:30:59.244137 | 2021-10-09T21:04:45 | 2021-10-09T21:04:45 | 322,369,673 | 3 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 148,460 | water | alphaPhi0.water | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
... |
19b2c35d92cd42e37ddbbd1da531f21d6c01d56e | 8108fe1b8f46daa413a961bf1e2268b89649894c | /1164/1164.cpp | 93583f67e81d4ac3e8e75c8fc17a18eaf56f0bcb | [] | no_license | gutorc92/uri | d2542671750066c7590d78386492bb1ba67b3c65 | 788df2249172f661bf31141109c52cdbefc1b25e | refs/heads/master | 2021-06-04T11:54:24.231645 | 2018-01-11T17:42:57 | 2018-01-11T17:42:57 | 34,925,710 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 525 | cpp | 1164.cpp | #include<iostream>
#include<cmath>
#include<stdio.h>
#include<algorithm>
using namespace std;
int main(int argc, char * argv[]){
int n, total;
long int t;
std::cin >> n;
for(int i = 0; i < n; i++){
std::cin >> t;
total = 0;
for(int j = 1; j < t; j++){
if(t % j == 0... |
58d04c20ed663e73037e99ea9e7e0e830049b342 | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /ckafka/src/v20190819/model/AclRuleInfo.cpp | cbfd8f742b952ed225c25583d88351b302b8b3e4 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 5,056 | cpp | AclRuleInfo.cpp | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
8aadabad9aebf23eb8594a6924ad8613ccb81c0b | 129f39703b10b5684825ce8626d3a4e908970fad | /source/core/slang-process-util.cpp | 99c81ee5cb8d1ad0f74e5bc3e41c4e94069406e4 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | shader-slang/slang | 80f417524c9e023ff6e4f4b0210964bf46c76278 | f94b2f7a328a898c5e3dc1389d08e0b7ce6e092e | refs/heads/master | 2023-08-19T03:17:26.436967 | 2023-08-18T19:48:46 | 2023-08-18T19:48:46 | 93,882,897 | 1,269 | 117 | MIT | 2023-09-14T20:57:11 | 2017-06-09T17:42:49 | C++ | UTF-8 | C++ | false | false | 2,750 | cpp | slang-process-util.cpp | // slang-process-util.cpp
#include "slang-process-util.h"
#include "slang-string.h"
#include "slang-string-escape-util.h"
#include "slang-string-util.h"
#include "../../slang-com-helper.h"
namespace Slang {
/* static */SlangResult ProcessUtil::execute(const CommandLine& commandLine, ExecuteResult& outExecuteResult... |
4bfde2e081af362f901fad253162069d1049741c | a3da88064ce11eef6094078db7cecf40facda99b | /lib/SystemProfiler.cc | 9f08883b7156bd3e48992df2f35c9b3e6436bae6 | [
"MIT"
] | permissive | readablesystems/sto | e472d4eb6669a6cef5d1bf60a2ca5d5de0e6aaff | e477fd6abc9f084583366213441499a6b969162d | refs/heads/master | 2023-04-03T10:41:51.484877 | 2021-09-28T23:51:48 | 2021-09-28T23:51:48 | 121,050,178 | 48 | 23 | MIT | 2022-08-25T10:54:08 | 2018-02-10T20:11:13 | C++ | UTF-8 | C++ | false | false | 1,630 | cc | SystemProfiler.cc | #include "SystemProfiler.hh"
namespace Profiler {
pid_t spawn(const std::string &name, perf_mode mode) {
std::stringstream ss;
ss << getpid();
auto profile_name = name + ((mode == perf_mode::record) ? ".data" : ".txt");
pid_t pid = fork();
if (pid == 0) {
int console = open("/dev/null", ... |
fdecdd90a730ea253ab9a9c8ac9dd53d9ad66e65 | e5edb7d63fb5700ca2228780bbb9cae7aec3f93a | /src/libalgo/source/exceptions/ErrorMathZeroDevision.cpp | 362d1f2a883745d885f60c0c313a68c890cc6a1b | [] | no_license | moravianlibrary/libalgo | 14e5660447de0a2f627541194625e762adf0a157 | d32946f5a4bf5103225a3b8808e21ecae34bbef0 | refs/heads/master | 2020-12-11T05:56:08.283005 | 2015-07-01T20:53:13 | 2015-07-09T06:39:00 | 25,161,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 35 | cpp | ErrorMathZeroDevision.cpp | #include "ErrorMathZeroDevision.h"
|
6b8c811f5ed260a84fafc44277e600d3f4ba4275 | 2ca3ad74c1b5416b2748353d23710eed63539bb0 | /Src/Lokapala/Raptor/CommunicationSingletonInitiallize.cpp | 3527d23e91e42c7c49a19877512fdb44b9769159 | [] | no_license | sjp38/lokapala | 5ced19e534bd7067aeace0b38ee80b87dfc7faed | dfa51d28845815cfccd39941c802faaec9233a6e | refs/heads/master | 2021-01-15T16:10:23.884841 | 2009-06-03T14:56:50 | 2009-06-03T14:56:50 | 32,124,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 518 | cpp | CommunicationSingletonInitiallize.cpp | /**@file CommunicationSingletonInitiallize.cpp
* @brief CCM의 모든 싱글톤의 초기화를 해준다.
* @author siva
*/
#include "stdafx.h"
#include "CommunicationFacade.h"
#include "CommunicationManager.h"
#include "CCDecisionSD.h"
#include "CCMessengerSD.h"
CCommunicationFacade *CCommunicationFacade::m_instance = NULL;
CC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.