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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
35e00d90ff83c774c5a891a572e2dc4f1b0b7270 | 6870bbc775ae44536f4967a999ffb1a73feec4ed | /include/web/default_startup.hpp | 5bc73ca68109a3fea59faa04d79930084617014c | [
"MIT"
] | permissive | Gscienty/rwg_websocket | d16660acb5423877f854560a2b7c23296b9eeb6d | fea57348f0f8509909192df70bd7d3cb20c32029 | refs/heads/master | 2020-03-31T11:33:58.891173 | 2018-12-11T14:17:00 | 2018-12-11T14:17:00 | 152,182,011 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 324 | hpp | default_startup.hpp | #ifndef _RWG_WEB_DEFAULT_STARTUP_
#define _RWG_WEB_DEFAULT_STARTUP_
#include <string>
#include "web/req.hpp"
#include "web/res.hpp"
namespace rwg_web {
class default_startup {
private:
const std::string _uri;
public:
default_startup(const std::string);
void run(rwg_web::req &, rwg_web::res &);
};
}
#en... |
942fc4531c62f53182a5e46ec333c7d08c12a0f7 | 2b2266da35079e4c597c76da6777c5ca3bd08a97 | /source/VulkanRenderer.cpp | 2f8b59e9a5a8f0bf94b7edf2c025d4eb28ab9ab7 | [] | no_license | Michael-Sjogren/VulkanTest | 721c833b73dbd251958fabc7c08dacd2b2b50b52 | 58902fdfa0fb6627989fb41ae0195b9f71c89344 | refs/heads/main | 2023-01-04T12:01:43.524755 | 2020-10-28T13:32:06 | 2020-10-28T13:32:06 | 307,366,682 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,576 | cpp | VulkanRenderer.cpp | #include "../includes/VulkanRenderer.h"
int VulkanRenderer::Init(GLFWwindow *newWindow)
{
window = newWindow;
try
{
CreateInstance();
CreateSurface();
GetPhysicalDevice();
CreateLogicalDevice();
CreateSwapChain();
}
catch (const std::exception &e)
{
... |
c9d8f8aab4fd4bc28cf4c9fc6d8ffe6f90b9b227 | b0774c65de745a687721a0861094dd3c1a9a9fc3 | /engine/video/IVideo.h | af0c44e44505ce92aec4e8b750019a7b6c32b0e1 | [] | no_license | crackgame/easy2d | 17b6a7e40fd10399527b0b2e4d8f77ef5c2d837a | 1251c63cf54d4ced58218bd8165eddaa75a5aa1d | refs/heads/master | 2021-01-01T19:34:01.345958 | 2012-12-27T12:46:55 | 2012-12-27T12:46:55 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 720 | h | IVideo.h | #ifndef _IVIDEO_H_
#define _IVIDEO_H_
#include "IShader.h"
#include "ITexture.h"
namespace easy2d {
class IVideo
{
public:
enum EVideoType
{
VideoGLES2,
VideoD3D9,
};
public:
virtual ~IVideo(){}
virtual bool create(void* hWindow, unsigned int width, unsigned int height, bool isFullScreen) = 0;
virtual voi... |
a3033139a46d8854438af8a6ce9223ebd45d2ecb | 7e17ad0a18623e326cb63808ce7935516a7bfff5 | /src/tests/test09/server.cpp | f44593ab3973544a34f7fb582a9e2adf0d921f54 | [
"BSD-2-Clause",
"MIT"
] | permissive | aclamk/ruros | 9bca91267ce8a48ab690d2dfa27a28f55e39f456 | 786229fdd2d05ddfaee5ed7bd489d5d0506e7c71 | refs/heads/master | 2016-08-03T10:43:23.244845 | 2015-09-17T13:51:22 | 2015-09-17T13:51:22 | 37,932,545 | 0 | 1 | null | 2015-07-07T16:03:06 | 2015-06-23T17:03:29 | C++ | UTF-8 | C++ | false | false | 1,561 | cpp | server.cpp | #include "ruros.h"
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include "unix_io.h"
#include "serialize.h"
using namespace ruros;
namespace BB
{
Result Mult(const int& a,const int& b,int& result);
}
namespace AA
{
#include "serv1.server.cpp"
#include "serv2.client.cpp"
Result Add(... |
97fe47360f730fdcc31eaec493f28ca324f218db | ea160cd88a0528e6675a5032dda1ab1684e6352a | /Gaussian_elimination.cpp | d511b2d7a6cabeca9b4a727bdb37355faba56ab8 | [] | no_license | Kavisankar/Data-Structures-and-Algorithms | 277d30f2b95a8465845611e2a2740c34ca3ecdcb | c182e9df8dede3ba7f1e7997b52e381f5e3ad196 | refs/heads/master | 2022-10-07T05:36:11.391911 | 2020-06-05T15:30:02 | 2020-06-05T15:30:02 | 258,092,308 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 865 | cpp | Gaussian_elimination.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
vector<vector<double> > equation(n,vector<double>(n+1));
for(int i=0;i<n;i++){
for(int j=0;j<=n;j++){
cin>>equation[i][j];
}
}
for(int i=0;i<n;i++){
if(equation[i][i]==0){
int... |
d09c2b08efe6c86c410a786155bd991285f01e4f | 82cc4eea98806f3024b5b16696a7af258e2a24a4 | /src/prometheus/registry.h | 5d37c04d81055c420118d47ca32fa988f94a5134 | [
"MIT",
"GPL-2.0-only",
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-3-Clause"
] | permissive | puer99miss/Xapiand | 72e7497f37f315c354ae12b360ea8b14bc31ee00 | 480f312709d40e2b1deb244ff0761b79846ed608 | refs/heads/master | 2020-05-18T23:33:48.464001 | 2019-05-02T18:29:01 | 2019-05-02T18:29:01 | 184,714,481 | 1 | 0 | MIT | 2019-05-03T07:21:22 | 2019-05-03T07:21:22 | null | UTF-8 | C++ | false | false | 1,074 | h | registry.h | #pragma once
#include <map>
#include <memory>
#include <mutex>
#include "client_metric.h"
#include "collectable.h"
#include "family.h"
#include "histogram.h"
#include "summary.h"
namespace prometheus {
class Registry : public Collectable {
public:
// collectable
std::vector<MetricFamily> Collect() override;
... |
b3d80026ec48581d7d514397ff535323388e4810 | 01940d46f04f2b7be932cc2f9aedc19e8dc6d8cd | /Server/StaticNFrame/NFComm/NFCore/NFShm.h | 0101ecc0f379d688426640f6d90f1af8b41d8068 | [] | no_license | xuebai5/StaticNFrame | 07861ff59c59826c92a4731042ecc35356488fa6 | 05421e35bdb81fdda01050cdb8549375d6ddacc8 | refs/heads/master | 2022-04-01T13:37:53.479759 | 2020-01-03T07:35:33 | 2020-01-03T07:35:33 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,670 | h | NFShm.h | // -------------------------------------------------------------------------
// @FileName : NFShm.h
// @Author : GaoYi
// @Date : 2019-3-6
// @Email : 445267987@qq.com
// @Module : NFCore
//
// ------------------------------------------------------... |
2ae91121ae6fb05756f16f8578a7397e44e42519 | 00add89b1c9712db1a29a73f34864854a7738686 | /packages/monte_carlo/collision/electron/test/tstAdjointElectronMaterial.cpp | da7c03db12ff82eb3332e4bd9c7a0ba651133d91 | [
"BSD-3-Clause"
] | permissive | FRENSIE/FRENSIE | a4f533faa02e456ec641815886bc530a53f525f9 | 1735b1c8841f23d415a4998743515c56f980f654 | refs/heads/master | 2021-11-19T02:37:26.311426 | 2021-09-08T11:51:24 | 2021-09-08T11:51:24 | 7,826,404 | 11 | 6 | NOASSERTION | 2021-09-08T11:51:25 | 2013-01-25T19:03:09 | C++ | UTF-8 | C++ | false | false | 16,977 | cpp | tstAdjointElectronMaterial.cpp | //---------------------------------------------------------------------------//
//!
//! \file tstAdjointElectronMaterial.cpp
//! \author Luke Kersting
//! \brief Adjoint electron material class unit tests
//!
//---------------------------------------------------------------------------//
// Std Lib Includes
#includ... |
2755e84081be53d9ab9cd4e2870cfb58333465c8 | 6613336ad4075de0a72d8c0465f6e61e804df1ff | /2602背包.cpp | 0f8bdc4574e8164095fc5471850231b02104cd40 | [] | no_license | cordercorder/HDUOJ | 9e43939973862c3bfd472ec4886a836749f0fdfc | f2ac49dc026dcb1aedd7459640b828edad7cbaf8 | refs/heads/master | 2020-03-27T04:22:02.049610 | 2018-08-24T02:41:48 | 2018-08-24T02:41:48 | 145,933,400 | 14 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,210 | cpp | 2602背包.cpp | #include<iostream>
#include<algorithm>
#include<cstring>
#include<string>
#include<cmath>
#include<queue>
#include<stack>
#include<set>
#include<vector>
#include<cstdio>
#include<cstdlib>
#include<map>
#include<deque>
#include<limits.h>
#include<bitset>
#include<ctime>
#define deb(x) cout<<"#---"<<#x<<"=="<<x<<endl
//... |
6af8340a6e9f796e648d842a9351aa497f12f5b2 | 15987bb296410cd24c7626a6fc9a8218d85fca33 | /Graph Algorithms/tsort.cpp | 052c0dcf7b9878af3ae5105d090f4989bf453845 | [] | no_license | ElProfesor18/Competitive-Snippets | f2a77aa49a02c71fd4b4ad7958488201041c2117 | b18354e2cff9e58dc1c7bbb1d724b90cea83fcc9 | refs/heads/master | 2022-11-13T16:50:52.279784 | 2020-06-27T19:04:40 | 2020-06-27T19:04:40 | 273,887,777 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | cpp | tsort.cpp | vector <lli> t;
void topologicalSortUtil(lli u, bool visited[], stack <lli> &st)
{
visited[u]=true;
for(auto it : adj[u])
{
if(!visited[it])
topologicalSortUtil(it, visited, st);
}
st.push(u);
}
void topologicalSort()
{
bool visited[V];
forz(i,V) visited[i]=fal... |
2590fcb956145d0cc51f2016c81df91eecb949a3 | 688e1615b6ea772f47d0222c7c16634b3eaabc89 | /_SHADERS/basic/basic_SHADER_GLOBALS.cpp | 4ea98452285de1c42f7d5db2f7ccdb3f4702bb79 | [] | no_license | marcclintdion/o1 | 42738ae92a23db4ec5f00bf620d1564ae74528fa | 14020c976dc0d25e04ea37de72e492ed1f2e3862 | refs/heads/master | 2020-04-06T07:08:30.152652 | 2016-08-04T02:18:46 | 2016-08-04T02:18:46 | 63,638,352 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,623 | cpp | basic_SHADER_GLOBALS.cpp | //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
unsigned char *vertexSource_basic;
unsigned char *fragmentSource_basic;
//=========================================================
var ... |
7556cea30daa7d755da5aa3a5af087c90731140f | 0f2b08b31fab269c77d4b14240b8746a3ba17d5e | /onnxruntime/test/platform/env_test.cc | e0bffed8c4c175bb7310b6e84c80084cad8c48fd | [
"MIT"
] | permissive | microsoft/onnxruntime | f75aa499496f4d0a07ab68ffa589d06f83b7db1d | 5e747071be882efd6b54d7a7421042e68dcd6aff | refs/heads/main | 2023-09-04T03:14:50.888927 | 2023-09-02T07:16:28 | 2023-09-02T07:16:28 | 156,939,672 | 9,912 | 2,451 | MIT | 2023-09-14T21:22:46 | 2018-11-10T02:22:53 | C++ | UTF-8 | C++ | false | false | 936 | cc | env_test.cc | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/platform/env.h"
#include <fstream>
#include "gtest/gtest.h"
#include "core/common/path_string.h"
#include "test/util/include/asserts.h"
namespace onnxruntime {
namespace test {
TEST(PlatformEnvTest, Dire... |
7bc79ea64862511e1d68ea5d138ea25753dc0840 | d12d1bc01060e1194c3504fc6610d97a5f1cdd89 | /mainwindow.h | 0110b17f1e5e4615edba2e6df908c03b7177ac25 | [] | no_license | liangyiqiu/car_parking_console | 502cce28997ac70d9abbee6653ef94c8c2001aca | c6408b59ee88f5dcb41b949b26a53db0cd42eb5f | refs/heads/master | 2020-05-29T11:31:18.823003 | 2019-05-31T00:59:34 | 2019-05-31T00:59:34 | 189,119,885 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,347 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "setwindow.h"
#include "parkwindow.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
void on_pbtlogou... |
324fef256a3c104ce4ab213c27ad9e2c55fab74b | fb227e3635b5c06e49bad48928f7b6d3254c4dca | /codeforces/601div2/e2.cpp | a46dfab746665c2ef806954ecc4bc9aa9522e711 | [] | no_license | BryanValeriano/marathon | 5be2ab354e49187c865f0296f7dfb5ab3c3d6c9b | 8dadfad7d1a6822f61ba5ed4a06e998541515634 | refs/heads/master | 2022-09-11T00:06:14.982588 | 2022-09-03T17:01:30 | 2022-09-03T17:01:30 | 141,581,750 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,543 | cpp | e2.cpp | #include <bits/stdc++.h>
using namespace std;
#define fr(i,n) _back
#define pb push_back
#define eb emplace_back
#define mk make_pair
#define fi first
#define se second
#define endl '\n'
typedef long long ll;
typedef pair<int,int> ii;
typedef vector<ii> vii;
const ll INF = 1e18;
const double PI = acos(-1.0);
const in... |
f8a5e14a83b566997d3c8adc21bffbfd559555b4 | 66f5c4f812683d8db9ed5f499edfcf42b3b531fc | /String/print_Last_K_lines_FILE.cpp | 2f493d857f27cbfe3fb3194b00163ac3ae5eaf48 | [] | no_license | pango89/IDEONE | b5c00f846d31368757b38ed15b8c4094c313fd2b | 83332ff88300257b78cd115ac5f50e2601a4577b | refs/heads/master | 2020-05-31T23:26:30.843166 | 2014-08-15T04:52:56 | 2014-08-15T04:52:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 407 | cpp | print_Last_K_lines_FILE.cpp | #include<iostream>
void printLastKLines(char* filename,const int k)
{
ifstream file(filenmae);
string L[k];
int size=0;
while(file.good())
{
getline(file,L[size%k]);
size++;
}
int start=(size>k)?(size%k):0;
int count=(size>k)?k:size;
for(int i=0;i<count;i++)
{
cout<<L[start+i]<<"\n";
}
}
int main()
{
... |
89721cf72901b70804e0d3a3a4b0e33fdedb3679 | 4714badd5a49d40d0ccf14af4b0319baf103dea3 | /rootex/core/resource_loader.cpp | 2732d999aade0fcf73547e937014ad62f3954333 | [
"MIT"
] | permissive | sdslabs/Rootex | f17916063ab7875cb4f561847c1229b799a8c979 | 5fb00345b88b7e0e441c73e3f6d5f96455be269f | refs/heads/dev | 2023-09-02T00:54:17.768449 | 2023-08-24T22:34:05 | 2023-08-24T22:34:05 | 190,610,922 | 204 | 31 | NOASSERTION | 2023-09-03T19:13:12 | 2019-06-06T16:05:30 | C++ | UTF-8 | C++ | false | false | 10,166 | cpp | resource_loader.cpp | #include "resource_loader.h"
#include "app/application.h"
#include "os/thread.h"
bool IsFileSupported(const String& extension, ResourceFile::Type supportedFileType)
{
if (extension.empty())
{
return false;
}
String extensions(SupportedFiles.at(supportedFileType));
return extensions.find(extension) != String::n... |
08f6af5fe0fc2aba17b6c8ab0b7771ff34d7b83c | 5a72c45ddef6d2cb5329a9f4731d377a7cef55ea | /C++/Uebung04/MainWindow.cpp | 3dea926e2391b2aeef466637230ce59276c66372 | [] | no_license | 00mark/projects-uni | df064dee5c9b017055d1d6cd3dce6c7a1471eea5 | d52a35975954f228b8e5ca30a409ca909f3deabb | refs/heads/main | 2023-09-04T20:58:07.323060 | 2021-11-22T18:52:40 | 2021-11-22T18:52:40 | 430,485,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,619 | cpp | MainWindow.cpp | /*
* MainWindow.cpp
*
* Created on: Nov. 04 2018
* Author: Thomas Wiemann
*
* Copyright (c) 2018 Thomas Wiemann.
* Restricted usage. Licensed for participants of the course "The C++ Programming Language" only.
* No unauthorized distribution.
*/
#include "MainWindow.hpp"
#include "Camera.hpp"
#inclu... |
c9e13a9a6c5e1e3bb35b42bd17eca49e5bcee7ba | d657856ce51764c0ba70d49664b8d5a0c89b2f1b | /SepChain.cpp | ecab96efba2453269650f4c5e27aaec17748aaf3 | [] | no_license | Manzoor-ul-Haq/Search-Engine | ea71529b80d1df9e14068dc09ab145090975e967 | 6c2d1f502f5dbbdd9f18aaa9084e489af7da52e8 | refs/heads/master | 2023-02-10T19:45:35.792951 | 2021-01-04T15:00:34 | 2021-01-04T15:00:34 | 326,717,034 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 666 | cpp | SepChain.cpp | #include <iostream>
#include "SepChain.h"
using namespace std;
Chaining::Chaining()
{
}
Chaining::~Chaining()
{
}
int Chaining::Hashfunc(float rating)
{
return rating * 10;
}
void Chaining::insert(string id, float rating, int votes)
{
array[Hashfunc(rating)].addAtStart(id, rating, votes);
}
bool Chaining::se... |
e4a55423cbe829cdee6afbf5f24f2e4993c13219 | ceecbb6c45c7cec0b4a80eba732a894701b0479f | /aes_1.cpp | 7a6e968f8f0ae90635479f8dc80639553d9515ec | [] | no_license | ritwik-deshpande/DES-and-AES | 76416c6b70ea86c7f40d971908f1e47498ec9702 | 843f7472ace326471fda223ca6d29606986ab654 | refs/heads/master | 2022-07-12T06:15:40.052701 | 2020-05-12T06:56:01 | 2020-05-12T06:56:01 | 263,254,620 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,415 | cpp | aes_1.cpp | #include<iostream>
#include <bits/stdc++.h>
using namespace std;
int sbox[16][16]{
0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76,
0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0,
0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0... |
2f848dddc464862fed635b9a8d2e6ce9197981d1 | 5caec92184cab6df35d1225e4fcedfc3afbcc2df | /opengl1/Render.h | 0b3790717b7eb7b44e7232096434d28995c42dbf | [] | no_license | jmieses/opengl_2D_gui | ae40910b08d6123fb4deab4c46327b3d4cbe21da | 5d1232adf73f6d2b0d30c23668a52425657764a0 | refs/heads/master | 2023-03-20T18:25:59.601695 | 2021-03-04T05:17:03 | 2021-03-04T05:17:03 | 327,464,855 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 825 | h | Render.h | #pragma once
#ifndef RENDER_H
#define RENDER_H
#include "VertexArray.h"
#include "VertexBuffer.h"
#include "VertexBufferLayout.h"
#include "Shader.h"
#include "Curve.h"
#include <vector>
struct RenderObject {
VertexArray vertex_array;
VertexBuffer vertex_buffer;
VertexBufferLayout layout;
Shader shader;
};
clas... |
67ad390117c5da9760f8e4d5a757536a1772b286 | f3eb4e0d39518b2831347effc8cd15c4ab81d86a | /printstarinmiddle.cpp | daf3b3467d338ef2347e4fa2973d706dacd57664 | [] | no_license | PRIYADHARSHINI1118/priyadharshini18 | 676d48bd8f062a55f281c9739c8b72373925df61 | e9edbbf6acebc19dccdd5426f8b3c68614f58792 | refs/heads/master | 2021-04-30T01:50:55.566615 | 2018-05-23T07:00:52 | 2018-05-23T07:00:52 | 121,491,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | cpp | printstarinmiddle.cpp | #include <iostream>
using namespace std;
int main()
{
char s[100];
int i,e,count=0;
cout<<"enter the string";
cin>>s;
for(i=0;s[i]!=0;i++)
{
count++;
}
e=count/2;
if(count%2!=0)
{
s[e]='*';
for(i=0;s[i]!='\0';i++)
{
cout<<s[i];
}
}
else
{
s[e-1]='*';
... |
7ee3342b36830efa81a7c9fd86c32c9343f90046 | 6da5140e9595582c2ab10f3a7def25115912973c | /04/01.dialog/Demo.03/DlgFileBrowse.h | 0afa3ec4ade918afacff8c15b09134268e55718f | [] | no_license | s1040486/xiaohui | 6df6064bb0d1e858429375b45418e4f2d234d1a3 | 233b6dfbda130d021b8d91ae6a3736ecc0f9f936 | refs/heads/master | 2022-01-12T07:10:57.181009 | 2019-06-01T04:02:16 | 2019-06-01T04:02:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,050 | h | DlgFileBrowse.h | #if !defined(AFX_DLGFILEBROWSE_H__942D1242_B4AD_11D3_9CE3_E7C9978DB001__INCLUDED_)
#define AFX_DLGFILEBROWSE_H__942D1242_B4AD_11D3_9CE3_E7C9978DB001__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgFileBrowse.h : header file
//
class CThreadRunningDlg;
/////////////////////////////////////... |
d2bf499659f64a564238cf8be0fb627fd22ed32f | b14c76104fb65ba4a9439ea3c9523709a90e1a5a | /source/Renderer/Renderer/Src/Pipeline/ColourBlendStateAttachment.cpp | c182f1e409ce576367cfbd594308ec477365fa38 | [
"MIT"
] | permissive | corefan/RendererLib | b8678550a523fdbef2017a6367b5446bee180014 | 4af2052e7556546d51c5c3692fdf7f19e10bd6b4 | refs/heads/master | 2021-04-26T23:00:54.659033 | 2018-03-03T21:46:39 | 2018-03-03T21:46:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,196 | cpp | ColourBlendStateAttachment.cpp | /*
This file belongs to RendererLib.
See LICENSE file in root folder.
*/
#include "Pipeline/ColourBlendStateAttachment.hpp"
namespace renderer
{
ColourBlendStateAttachment::ColourBlendStateAttachment( bool blendEnable
, BlendFactor srcColorBlendFactor
, BlendFactor dstColorBlendFactor
, BlendOp colorBlendOp
... |
403109c96fd524e7eaf5c39f2b501f6845ee4724 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc080/A/1914261.cpp | 1556acb898230b24b7b3fb2f662b4e5da8ca89e9 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 493 | cpp | 1914261.cpp | #include<iostream>
using namespace std;
int main ()
{
int n;
cin>>n;
if(n>=2&&n<=100000)
{
int a=0,b=0,m,t;
for(int i=0;i<n;i++)
{
cin>>t;
if(t<1&&t>1000000000)
goto loop;
if(t%2==0)
a++;
if(t%4==0)
b++;
}
m=a-... |
2db52d21bc31dc028f66994734fdf86aef8b0483 | 2cdeca1b6090ae625a892cace8b0ad509d0d017a | /Core/Physics.h | dd26acacda6c703990587ed7dbfef4cfb5a542aa | [] | no_license | mth128/SolarSystem | fdb2e15224e71dca61f82c736bdd874ed2c8cb40 | ea2357fcbf131caf0591c0cbb6c584b60b20db28 | refs/heads/master | 2020-05-14T10:06:46.608796 | 2019-08-08T08:03:57 | 2019-08-08T08:03:57 | 181,754,938 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,040 | h | Physics.h | //Copyright Maarten 't Hart 2019
#pragma once
#include "Planet.h"
struct GravityAffectedObject
{
bool disposed;
Point3D* position;
Point3D* velocity;
int count;
GravityAffectedObject(Point3D*position, Point3D*velocity, int count);
Point3D& Position(int index);
Point3D& Velocity(int index);
double Speed()... |
5e9377d606e3d901e35388cf3219beefb0afaef5 | d34c52b0f0651153ecf774bc341d8b1205fe3e5d | /DirectX12_BaseSystem/src/core/dxgi.cpp | 9c116ae9cf5921e8b2aaf5e35e439d8b517876e1 | [] | no_license | rengooooooku/DirectX12-BaseSystem | f3a6dc7b41ea5f9954cd965526615a612517ef81 | 07981d6a26b10917e3e7d9a02611a700d94f4d48 | refs/heads/master | 2020-04-15T06:09:49.602995 | 2015-12-04T02:01:33 | 2015-12-04T02:01:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,756 | cpp | dxgi.cpp | #pragma comment( lib, "d3dcompiler.lib" )
#pragma comment( lib, "dxgi.lib" )
#include "d3d.h"
#include "dxgi.h"
#include <PlatformHelpers.h>
namespace dxgi
{
void ReleaseIUnknown(IUnknown* p)
{
p->Release();
}
std::shared_ptr<IDXGIFactory4> CreateFactory()
{
IDXGIFactory4* factory;
DirectX::ThrowIfFailed(C... |
43ae88de49b41311940f58a308967f6bb6dd1078 | 71d97eaa68615ab13e7a24771a067fc2d08cd86c | /widgets/NewKey.h | dfaf56dd10e2f96a2996dd60364a0160ee20b68c | [
"BSD-3-Clause"
] | permissive | 10100010meow/xca | 306dce014a45affa494e751920fef1591bcb3259 | 3379e3dbfed4f2e21a137d249dbf7254846cc4ff | refs/heads/master | 2021-04-28T17:04:55.612994 | 2014-09-03T15:01:19 | 2014-09-03T15:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 520 | h | NewKey.h | /* vi: set sw=4 ts=4:
*
* Copyright (C) 2001 - 2010 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __NEWKEY_H
#define __NEWKEY_H
#include "ui_NewKey.h"
#include "lib/pkcs11_lib.h"
#include <QtCore/QStringList>
class NewKey: public QDialog, public Ui::NewKey
{
Q_OBJECT
public:
NewKey(QWidget *par... |
46b5a52664d0bcf81ae6c28af39c8676822948a1 | bdd9f3cdabe0c768641cf61855a6f24174735410 | /src/engine/client/application/TerrainEditor/src/win32/FormFilterDirection.cpp | 2f04b94f736091f0b1cdbe84c8bbfc5c41975330 | [] | no_license | SWG-Source/client-tools | 4452209136b376ab369b979e5c4a3464be28257b | 30ec3031184243154c3ba99cedffb2603d005343 | refs/heads/master | 2023-08-31T07:44:22.692402 | 2023-08-28T04:34:07 | 2023-08-28T04:34:07 | 159,086,319 | 15 | 47 | null | 2022-04-15T16:20:34 | 2018-11-25T23:57:31 | C++ | UTF-8 | C++ | false | false | 4,819 | cpp | FormFilterDirection.cpp | //
// FormFilterDirection.cpp
// asommers
//
// copyright 2001, sony online entertainment
//-------------------------------------------------------------------
#include "FirstTerrainEditor.h"
#include "FormFilterDirection.h"
#include "sharedTerrain/Filter.h"
//------------------------------------------------------... |
5be5924108ec018b477fc00c959ac5a88cc8d4f9 | ad4a16f08dfdcdd6d6f4cb476a35a8f70bfc069c | /source/project_test/common/common_autotest.cpp | ef9c222eb53a0920e1772ee131e0124c679ee798 | [
"OpenSSL",
"MIT"
] | permissive | bluebackblue/brownie | fad5c4a013291e0232ab0c566bee22970d18bd58 | 917fcc71e5b0a807c0a8dab22a9ca7f3b0d60917 | refs/heads/master | 2021-01-20T04:47:08.775947 | 2018-11-20T19:38:42 | 2018-11-20T19:38:42 | 89,730,769 | 0 | 0 | MIT | 2017-12-31T13:44:33 | 2017-04-28T17:48:23 | C++ | UTF-8 | C++ | false | false | 4,180 | cpp | common_autotest.cpp |
/**
* Copyright (c) blueback
* Released under the MIT License
* https://github.com/bluebackblue/brownie/blob/master/LICENSE.txt
* http://bbbproject.sakura.ne.jp/wordpress/mitlicense
* @brief 自動テスト。
*/
/** include
*/
#pragma warning(push)
#pragma warning(disable:4464)
#include "../include.h"
#p... |
38db4cdc0f1a1e541e7715be302faf5171c07459 | 95d7164ebf8d73bcb89ea155940de9909df20477 | /max_range_sum_query.cpp | 75ae420c93138b42138b699141d329d80f827713 | [] | no_license | imvamshi/Standard | 6788defe1dc1f9540d3027f831bee742717e419c | 6a05b64e8093ff2ce60abcebcfe31b2f65e6d929 | refs/heads/master | 2021-01-10T09:44:16.426818 | 2016-04-06T10:17:22 | 2016-04-06T10:17:22 | 48,443,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,874 | cpp | max_range_sum_query.cpp | #include <cstdio>
#include <algorithm>
#define N 70000
using namespace std;
struct seg{
int lsum, rsum, msum;//, sum;
};
int arr[N+1];
seg tree[4*N + 1];
int sum[N+1];
// Building segment tree
void build(int node, int l, int r) {
if(l == r)
tree[node] = ( (seg){ arr[l], arr[l], arr[l] } );
else {
build( 2 * no... |
812c99a8747114b47035f0d44e73d8ad738d2dff | 77aac5d1b49677685cb289ab62134d3fbf3db525 | /I2C/i2c_rtc_R8564_test/i2c_rtc_R8564_test.ino | fb7dc07f0136ce996b79c6d20d0fa7f8be38ef61 | [] | no_license | skeimeier/Arduino | f491cb2c4d6b793cd4bc1474f9a186c6397dc7a5 | 8fefeb9f389d7471e4e4243df7983c1619cc0a32 | refs/heads/master | 2021-01-01T18:22:57.874969 | 2015-09-17T08:07:57 | 2015-09-17T08:07:57 | 17,796,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,055 | ino | i2c_rtc_R8564_test.ino |
#include <Ports.h>
PortI2C myI2C (1);
DeviceI2C clock (myI2C,0x51); // clockchip = r8564je
void setup() {
Serial.begin(57600);
Serial.println("\n[clock]");
bool ok = clock.isPresent();
Serial.println(ok?"da":"weg");
if(ok){
Serial.println("Init");
clock.send();
clock.write(2);
clock.... |
bfccacd39e5e4a7ed44ed9f29974612f90c13d00 | 531cb8c7f8cd08da3012a10369eba392d798677a | /game/entities.h | 5ad8dec28d3e6fc9c5a5e66a369df96226da4813 | [] | no_license | bit-hack/7drl | 38ece6c8c5e631a87ea67256d98713c422ac2ff9 | 7726263045d1d4dd751a05cbd428e964ff2ba456 | refs/heads/master | 2023-03-22T09:22:59.521751 | 2021-03-16T22:43:32 | 2021-03-16T22:43:32 | 344,281,010 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,476 | h | entities.h | #pragma once
#include <cstdio>
// librl
#include "gc.h"
#include "raycast.h"
// game
#include "enums.h"
#include "inventory.h"
namespace game {
struct game_t;
enum subclass_t {
ent_subclass_actor,
ent_subclass_item,
ent_subclass_equip,
};
struct entity_t : librl::gc_base_t {
entity_t(const uint32_t type... |
e6ad36fd8562c56bc9b5c295f868ca3f0c0e4279 | 2cec9f07a88b874a01e022004fe72814bdcae22f | /code/box/cppbox.cpp | 0a4a921dbfdae5f63799d87b5f717a73d006f90d | [] | no_license | fmorgner/building-reusable-libraries | 0fe239ce60140ad1c79ece2a998461bb2d8b9c49 | 44617e20a938bfc7d5dafec139e2ea46cd48bd79 | refs/heads/master | 2021-01-17T15:47:03.388671 | 2016-09-26T20:11:38 | 2016-10-04T06:55:20 | 69,941,419 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128 | cpp | cppbox.cpp | #include "box.hpp"
#include <iostream>
int main() {
cppug::box box{3};
box.push(42);
std::cout << box.pop() << '\n';
}
|
f942c7084a1aa3060ffacf95016cde8c30935958 | 1fc0bd6ff8419f794ba386d8dc1c3ac8abf4c395 | /src/utils/coords.hh | 8f04d7e26a0d8b6a2c776c8d32b2fed5054a2ed6 | [] | no_license | Aufinal/advent2019 | dc1958522fe95d86c3b1ad732c372af1b96a49e3 | ca11f9e336a5b72b50101031d09904e1f5a60c18 | refs/heads/master | 2023-04-04T02:03:12.959720 | 2021-04-04T22:44:00 | 2021-04-04T22:44:00 | 345,462,791 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,343 | hh | coords.hh | #include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
using namespace std;
// Complex coordinates for 2d plane
class Coord {
public:
int x;
int y;
Coord(int x, int y) : x(x), y(y) {}
Coord() : x(0), y(0) {}
int norm1() const { return abs(x) + abs(y); }
int normsq()... |
afc245ba8415f08f7b19f8894679ed1efdd62dbc | a5c3b4d98ddc0d9f919fa5597580cceb39bd5072 | /week_2/2018202143HHR/src/Utility.h | 915badc87120e7d97dc071065585c1e6649e3465 | [] | no_license | WhiteCatFly/Turing_Student_Code_2019 | 17f4ed781327706b14b66ef90b0b90478792915b | 4d744f6a3072dc9184c10c5daad60dee4a83a588 | refs/heads/master | 2021-06-15T02:32:07.977336 | 2019-07-05T07:06:32 | 2019-07-05T07:06:32 | 173,031,113 | 8 | 27 | null | 2020-01-09T01:44:23 | 2019-02-28T03:04:38 | C++ | UTF-8 | C++ | false | false | 313 | h | Utility.h | #ifndef _MENCI_WEB_CRAWLER_UTILITY_H
#define _MENCI_WEB_CRAWLER_UTILITY_H
#include <string>
bool checkSuffix(const std::string &str, const std::string &pattern);
bool checkPrefix(const std::string &str, const std::string &pattern);
void stringToLower(std::string &str);
#endif // _MENCI_WEB_CRAWLER_UTILITY_H
|
778ef6d810cb361551f1114023bcd424d5936d11 | 4c6ebdc4b6af073298c72698558b36b2cfa990d5 | /AulasLogicaFatec/ex14Porcentagem.cpp | 01c00071c29f703b8cb7786eba1f916ff4ec65fb | [
"MIT"
] | permissive | jonfisik/LogicaFatec | 0153a59dff4ea43c0809d1a0c993cb83fab2a7f0 | fb37d7f77c251154471b7db56eb1b57bf83bf3f2 | refs/heads/main | 2023-08-01T12:57:15.168443 | 2021-09-14T20:48:12 | 2021-09-14T20:48:12 | 350,490,645 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 550 | cpp | ex14Porcentagem.cpp | #include<stdio.h>
main(){
float caixa, quantidade, preco;
float valorCompra, limite, valorPagar;
printf("Qual o valor em caixa? R$ ");
scanf("%f", &caixa);
printf("Qual a quantidade? R$ ");
scanf("%f", &quantidade);
printf("Qual o preco? R$ ");
scanf("%f", &preco);
valorCompra = quantidade * preco;
... |
1414b23eb5a3c00c19bc2575a0f2b7c889c9cdb7 | e3e5900c0c256b4df2738f392ba48a6b6d065434 | /cpp primer fourth ex/chapter_13/Ex_13_16/message.cpp | b2b3ffef58ef17098f271666e2181ec54f0a03d1 | [] | no_license | moononcloud/cpp-primer-4th-edition-exercises-keys | d7c6803fe3d2bb419da7a23724666b372b290798 | 91f339abc0947166264eef254654719facf07671 | refs/heads/master | 2020-04-06T07:17:16.795803 | 2016-08-29T08:48:33 | 2016-08-29T08:48:33 | 64,040,157 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 889 | cpp | message.cpp | #include "Message.hpp"
Message::Message(const Message&m):contents(m.contents),folders(m.folders)
{
put_Msg_in_Folders(folders);
}
Message& Message::operator=(const Message&rhs)
{
if(&rhs!=this)
{
remove_Msg_from_Folders();
contents=rhs.contents;
folders=rhs.folders;
put_Msg_in_Folders(fold... |
96ee43e4f60671cf6fdcd6b354e0072c43a997c3 | 76bb2f1b416d78c2b4c951f071657b93e8f915c1 | /xlib/macro/brushhkl.cpp | 1db72049d1a2a6273b0381e4c347d3c392c02eb7 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | pcxod/olex2 | 2f48c06da586fb47d308defe9915bf63be5c8f4d | 17d2718d09ad61ad961b98e966d981bb50663e3e | refs/heads/master | 2023-08-11T20:01:31.660209 | 2023-07-21T10:55:35 | 2023-07-21T10:55:35 | 219,048,584 | 9 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,908 | cpp | brushhkl.cpp | /******************************************************************************
* Copyright (c) 2004-2011 O. Dolomanov, OlexSys *
* *
* This file is part of the OlexSys Development Framework. *
... |
7f548ccbd0c8a503287ec58eba83c7c44a61f87e | 818317dc61f59c498c185e2d0b26bf108fa19cc7 | /esp8266_zx81/z80.cpp | 2bfa6ff1c4ee238da7ee220238a4284171b67bf4 | [
"MIT"
] | permissive | joaquimorg/ESP8266 | b11616a8b503306515438becc94fcd53183731c6 | 66ef92543373d6b86c53422e04d443abd4a5eafb | refs/heads/master | 2021-01-10T09:58:37.835668 | 2017-01-04T11:17:59 | 2017-01-04T11:17:59 | 53,329,089 | 21 | 17 | null | null | null | null | UTF-8 | C++ | false | false | 82,853 | cpp | z80.cpp | /*********************************************************************************************
z80.c
z80 cpu emulation code
2013/10/30 S.Suwa http://www.suwa-koubou.jp
http://www.suwa-koubou.jp/micom/MZ80Emulator/mz80emu_en.html
******************************************************************************... |
2bd24bb56d235445ff9a9feca07c65a3b792ca3a | 43b2cc2b8c8be8fa65f7a685fa9515a66a83f485 | /lib/include/prc/card.hpp | 0e6cd1e0cbd303a49533cba8d8bd1757102b6a57 | [
"BSL-1.0"
] | permissive | theodelrieu/prc | 8fcb109dc2684f8c343675498a8143de68400f06 | 199942ed8365f6e49a7e9667d587d1ae06f14999 | refs/heads/master | 2023-03-27T01:51:14.185499 | 2021-03-15T22:39:47 | 2021-03-15T22:39:47 | 318,251,443 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 613 | hpp | card.hpp | #pragma once
#include <iosfwd>
#include <string>
#include <prc/parser/ast.hpp>
#include <prc/rank.hpp>
#include <prc/suit.hpp>
namespace prc
{
class card
{
public:
card() = default;
card(prc::rank r, prc::suit s);
explicit card(parser::ast::card);
prc::rank const& rank() const;
prc::suit const& suit() con... |
096f147107934dc70b53db4cc7ee83f034290ea3 | 7bc74c12d85d5298f437d043fdc48943ccfdeda7 | /001_Project/003_Ford/src/src/ParkAssistSrv_Common/CAMBProviderHandler.cpp | 3161156b8f3570dd6b4ec049a2922b6f1fa98163 | [] | no_license | BobDeng1974/cameraframework-github | 364dd6e9c3d09a06384bb4772a24ed38b49cbc30 | 86efc7356d94f4957998e6e0ae718bd9ed4a4ba0 | refs/heads/master | 2020-08-29T16:14:02.898866 | 2017-12-15T14:55:25 | 2017-12-15T14:55:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,875 | cpp | CAMBProviderHandler.cpp | /*********************************************************************
* Project Ford LCIS- Park-Asist
* (c) copyright 2016
* Company Harman International
* All rights reserved
*
*Secrecy Level STRICTLY CONFIDENTIAL
*******************************************************************... |
f210bd8b9fe1cc72f52a29252af97891c7bff97f | 39a1d46fdf2acb22759774a027a09aa9d10103ba | /ngraph/core/src/op/roi_pooling.cpp | 2aac3d9f786ffb4916c05b7fb06b1b62c6fca30b | [
"Apache-2.0"
] | permissive | mashoujiang/openvino | 32c9c325ffe44f93a15e87305affd6099d40f3bc | bc3642538190a622265560be6d88096a18d8a842 | refs/heads/master | 2023-07-28T19:39:36.803623 | 2021-07-16T15:55:05 | 2021-07-16T15:55:05 | 355,786,209 | 1 | 3 | Apache-2.0 | 2021-06-30T01:32:47 | 2021-04-08T06:22:16 | C++ | UTF-8 | C++ | false | false | 5,223 | cpp | roi_pooling.cpp | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "ngraph/op/roi_pooling.hpp"
#include "itt.hpp"
using namespace std;
using namespace ngraph;
constexpr NodeTypeInfo op::ROIPooling::type_info;
op::ROIPooling::ROIPooling(const Output<Node>& input,
... |
b8cc4bf3a89bcb498282e109d3b5a75f74f5ebc6 | 64f55ecc66d206771df7c7c6fdc763cd5503690c | /ProyectoQT/inicio.cpp | 907bdc9edda5b74e30c1ec24307ab33f5be006ad | [] | no_license | diegogalarza/Workers-Fund | 0f450f78a793890950da09e2f134285a804c82f5 | 290266293d9d21ba7d7b445fbfa2838ba14df65c | refs/heads/master | 2022-11-10T04:42:15.497280 | 2020-06-28T23:14:52 | 2020-06-28T23:14:52 | 275,667,538 | 0 | 0 | null | null | null | null | ISO-8859-10 | C++ | false | false | 2,042 | cpp | inicio.cpp | #include "inicio.h"
#include "ui_inicio.h"
#include <QMessageBox>
#include <nuevousuario.h>
#include <cuentadelusuario.h>
#include <iostream>
#include <QTextStream>
#include <QFile>
#include <QDebug>
inicio::inicio(QWidget *parent) :
QDialog(parent),
ui(new Ui::inicio)
{
ui->setupUi(this);
... |
7006c7bf9174c40fb3ada97fd68e248f2081153c | feb07f2ba98e90064ff2927d35d15b38c6b2ecd4 | /fft_testing/old_testing/array_test.cpp | afaff6cf3b696e2dd09b27a9594df6b79b8e0621 | [] | no_license | wenjiedou/SCGW_2 | 220ba3ae0dc9352de067a240a9c31283ce89756f | b533a7320a54cf6a8075c1ab15a022575481ec8e | refs/heads/master | 2020-08-28T16:50:06.868622 | 2020-01-07T20:16:18 | 2020-01-07T20:16:18 | 217,759,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,032 | cpp | array_test.cpp | #include </usr/local/include/fftw3.h>
#include <stdio.h>
#include <math.h>
#include <complex.h>
#include <iostream>
#define NR 100
#define DR 0.12315
#define NT 1000
#define DT 0.1
#define SD 0.1
#define EF 0.25
#define REAL 0
#define IMAG 1
void generate_gaussian_signal(fftw_complex* signal, double* wgrid)
{
... |
8e8c2e60a40dffe7ab38b5fcf7c95edb81ef9083 | d50465ac53e46907363b663b286a036afad3128b | /1 WEEK/ver 0.4/UnitTest_calculater/UnitTest_calculater.cpp | 7c499f9a65ee2254434b95a44a571f8ff7dfdbe9 | [] | no_license | dongsub-joung/CPP_Practice | 038f36de005a876307a56c35d39017b1939e1347 | 2351153f6dbd341f5bd32f9802ad02e0ffd98f09 | refs/heads/master | 2022-11-26T21:22:22.360035 | 2020-08-11T19:43:55 | 2020-08-11T19:43:55 | 280,115,434 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,244 | cpp | UnitTest_calculater.cpp | #include "pch.h"
#include "CppUnitTest.h"
#include "../StaticLib_calculater/StaticLib_calculater.cpp"
#include <stdexcept>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UnitTestcalculater
{
TEST_CLASS(UnitTestcalculater)
{
public:
Calculator* cal = new Calculator();
TEST_METHOD(... |
9ed9b0ea204a0a2f549f82de5c892368a18ee565 | b505ef7eb1a6c58ebcb73267eaa1bad60efb1cb2 | /tool/dressing/source/bindobject/colorrect3d.cpp | fcb5c746ee9324fccd489f0cb6b7acdbab511781 | [] | no_license | roxygen/maid2 | 230319e05d6d6e2f345eda4c4d9d430fae574422 | 455b6b57c4e08f3678948827d074385dbc6c3f58 | refs/heads/master | 2021-01-23T17:19:44.876818 | 2010-07-02T02:43:45 | 2010-07-02T02:43:45 | 38,671,921 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,726 | cpp | colorrect3d.cpp | #include"stdafx.h"
#include"colorrect3d.h"
#include"../app.h"
using namespace Maid;
using namespace Sqrat;
void ColorRect3D::Register()
{
RootTable().Bind(
_SC("ColorRect3D"),
DerivedClassEx<ColorRect3D,CppDrawType, ColorRect3DAllocator>()
.SqObject(_SC("Matrix" ), &ColorRect3D::Matrix)
... |
5c90e890ee655fd0bfd6f9cf633f257dd28ea203 | a18898bce8afba8ff6107413745239c447ee55b5 | /04/ex01/Character.hpp | 619cbf8167817a4ece95e180982d8f5c57b3cbd8 | [] | no_license | nesvoboda/piscine_cpp | 7d19b6783b51787fbc4f5085fb71a6ae407f93f0 | 854cb7062b175c6631147a95a954de8cfe0bdeeb | refs/heads/master | 2022-12-30T21:25:06.599826 | 2020-10-20T10:42:42 | 2020-10-20T10:42:42 | 286,800,642 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,505 | hpp | Character.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Character.hpp :+: :+: :+: ... |
a1b7b0d337ed04790cc6b6d73945ddaabd8b39f5 | 701058ad6dc8464f3a1cf2ca00acfd917d71a49d | /backup.cc | 9eb1232a782cc9cdf4c53b5271f3624c3613c048 | [] | no_license | twampseoul/kupakupa | 9e785e214c8d22619ac56b6c8cfbafb3193a4be7 | 0669efc2c0a8a6b664af0f2fe7967fc3e24067dd | refs/heads/master | 2021-01-24T11:22:01.557479 | 2016-10-22T02:36:53 | 2016-10-22T02:36:53 | 70,223,485 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,379 | cc | backup.cc | #include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/dce-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/internet-module.h"
#include "ns3/flow-monitor-module.h"
#include "ns3/flow-monitor-helper.h"
#include <string>
#include <sstream>
#include <vector>
#include <iostream>
#include <... |
66fada9e0230e75a802ff4165a9d2682af07e8fc | efd37293b5be7e21dd9a1a9f578507cd68277746 | /cf_edu_112.cpp | a4422e189f476e2891d51da9c970a3915fe1fc35 | [] | no_license | kushalgandhi26/cp-codeforces | cfc724c45a1373f92e7714ed418ec4db05d3c12d | 0ac0f33fbce00a1686bfadeb3f67d41ac0aa9b01 | refs/heads/main | 2023-08-16T06:08:10.464401 | 2021-10-11T06:30:05 | 2021-10-11T06:30:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,187 | cpp | cf_edu_112.cpp | #include <bits/stdc++.h>
#define YES cout << "YES\n"
#define NO cout << "NO\n"
#define endl "\n"
// #define int long long
typedef long long ll;
#define forp(i, x, t) for (int i = x; i < t; i++)
#define forn(i, x, t) for (int i = x; i > t; i--)
#define deb(x) cout << #x << " = " << x << endl
#define all(x) x.begin(), x.... |
1778ddd107d016a1700e76b90d0bad4dcb83e418 | a1b7f3cdb35ca6d051a1d1e4e83296687580f4a0 | /Core/Common/REParser.h | 9ff720c4b77f8965b1ceaeccf9c7f50baf72a0f9 | [] | no_license | keithbugeja/meson | ca1afc32d170bc16a712387f797d202322896267 | fe81e1d74d35d37609b22b692366efc95fbfc61d | refs/heads/master | 2021-03-27T19:51:13.811968 | 2012-10-01T21:57:23 | 2012-10-01T21:57:23 | 87,206,597 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,503 | h | REParser.h | #pragma once
//----------------------------------------------------------------------------------------------
//
//
//----------------------------------------------------------------------------------------------
// Author Date Version Description
//--------------------------------------------------------... |
afcaa15094dcb14c6bce467cea7f41e2d23077a0 | cdb52ce16c2652d03974ed943ecbb266dde9e1a0 | /source_code/main.hpp | fff526fdab7b9a93967a024a6fcf4e37fed2fada | [] | no_license | matcha-scoft/Campus-Navigation-System | 3510484a929f880d6fbebd3b196903f6a8883256 | 5fd8e533f2315c072cc232b0b50e3f9f5d6cb504 | refs/heads/main | 2023-05-29T00:11:46.769684 | 2021-06-13T02:00:12 | 2021-06-13T02:00:12 | 344,715,614 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,136 | hpp | main.hpp | #ifndef main_hpp
#define main_hpp
#include <sys/select.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <vector>
#include <stack>
#include <cstring>
#include <iomanip>
#include <unistd.h>
#include <queue>
#include <fstream>
const int ... |
e2ed62d234f0a3252cc998be6e0e2f0e781345c6 | 846473d51eae33d967257c7c2d6e66961062a302 | /MyStacksMin.h | 6aafc73f1c9e2f7098e8c5b2bb69e657ff6820ef | [] | no_license | eaglesky/careercup | d025fbd10d2197822706c265ec17889bc666ad14 | 779a501ef758a3f9f0fe4e41893e13a74df6616d | refs/heads/master | 2021-01-22T06:43:56.338579 | 2015-07-04T06:02:26 | 2015-07-04T06:02:26 | 7,771,108 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,287 | h | MyStacksMin.h | #include "MyStacks.h"
template <class T>
class ArrayStackMin : public ArrayStack<T> {
public:
ArrayStackMin(int size = 10);
~ArrayStackMin(){ delete min_stack; }
bool Push(const T &data);
bool Pop(T &data);
bool GetMin(T *pmin);
void ShowMin();
private:
T *min_stack;
int min_top;
};
template <class... |
9a9e40295bb33d98aea7c158996b204ac8f49f63 | d0fcb7beb33b0cef5455ffb155b4d4ea51f75f37 | /LinearRegression/MLinearRegressionModel.h | 6bc8b6362f39aa34d4b2fb225f40f42189e04a8a | [] | no_license | Wojtechnology/ML | 5145fd9f1ea4045a8baf51278dbee1a7795ec558 | 2abf4323399a9f67102916164a35dbc150747b24 | refs/heads/master | 2020-04-17T20:18:05.554935 | 2017-01-14T20:32:15 | 2017-01-14T20:32:15 | 66,301,941 | 0 | 0 | null | 2016-10-14T08:18:46 | 2016-08-22T19:29:32 | C++ | UTF-8 | C++ | false | false | 704 | h | MLinearRegressionModel.h | #ifndef M_LINEAR_REGRESSION_MODEL_H
#define M_LINEAR_REGRESSION_MODEL_H
#include <Eigen/Dense>
#include "../Common/IRegressionModel.h"
// Multivariate Linear Regression model for float type values
class MLinearRegressionModel : public IRegressionModel<float> {
public:
explicit MLinearRegressionModel(
... |
0f64fcdbe01887b0fd7dc8ce19efd0650fa4624e | 9affad254e5199cbd0aa5899a1a85a877d596199 | /BZEngine/Window.cpp | 377fc9261069c18ff42a5919c439d8b83ec8e9cb | [
"MIT"
] | permissive | ZacharyPuls/BZEngine | 376620111007141870db30dd6189de6e60f2a2d7 | 7005c1130bff0b1d988a6b59ec6c07d668266df6 | refs/heads/master | 2021-07-11T21:43:07.075974 | 2020-07-25T19:38:30 | 2020-07-25T19:38:30 | 185,699,986 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,128 | cpp | Window.cpp | #include "Window.h"
#include <utility>
Window::Window(): window_(nullptr), width_(640), height_(480)
{
std::clog << "[DEBUG] GLWindow::GLWindow()" << std::endl;
}
Window::Window(std::string title, const int width, const int height): window_(nullptr), title_(std::move(title)),
... |
99bdf160904e6e12ec52d9cca12635cf4538fd4b | c3a8dde74127361474d3b136146cab6ec201e5e8 | /bohater.cpp | 61ff2941c8f6db3a202cd6015590c13faad22fe6 | [
"MIT"
] | permissive | Patryk707/Commando_Battle | 7205a1d88025123c0ff83dc522e525f97de9330f | 91da154e103d5db405b7111831f6010157a77bc5 | refs/heads/main | 2023-06-08T20:42:14.384537 | 2021-06-28T15:05:02 | 2021-06-28T15:05:02 | 373,184,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,322 | cpp | bohater.cpp | #include "bohater.h"
#include "pocisk.h"
Bohater::Bohater(Vector2f& position,Vector2f &scale,float left, float right, float top, float bottom) {
setPosition(position);
setScale(scale);
setBounds(left,right,top,bottom);
setTextureRect({0, 0, texture_size.x, texture_size.y});
setOrigin(float(texture... |
198bfbd1a9ac7f696184571539b5406bbdd5ae89 | 75c7b727db06faff1f62871cc25a45995fc2a31b | /solverILP/src/disjoint-paths/disjointPathsPython.cxx | fbfc8fd1b15ecc4102b10b22f328879a081f1a45 | [] | no_license | AndreaHor/LifT_Solver | 3288eeab0a7d5d4379348febafeeeda0a28ac129 | 1b8462d5659563473557e7939d7e2b9d01b629c6 | refs/heads/master | 2023-03-02T02:04:07.312343 | 2021-02-02T12:20:41 | 2021-02-02T12:20:41 | 273,190,411 | 60 | 10 | null | null | null | null | UTF-8 | C++ | false | false | 3,970 | cxx | disjointPathsPython.cxx | /*
* disjointPathsPython.cxx
*
* Created on: Jul 7, 2020
* Author: fuksova
*/
#include <pybind11/pybind11.h>
#include "disjoint-paths/disjointParams.hxx"
//#include "disjoint-paths/disjointPathsMethods.hxx"
#include "disjoint-paths/ilp/solver-disjoint-ilp.hxx"
//#include "disjoint-paths/completeStructure.hx... |
63b3faee718584980ed2a667eef1d6b92e3d7a55 | 9eda8cae792a48a01f1a09040e7ec104cb7c3336 | /Classes/TeamManager.h | ebb5425b09baafb7d443d2068298286028030b39 | [] | no_license | Niassy/ShipAndTower | a135b3fd3f6be95f0314cc1f8be6e1216646f7bf | dcfff774d71358daa8a23c4df62d3e0ea712da58 | refs/heads/master | 2021-01-19T20:23:02.842200 | 2017-04-17T12:13:22 | 2017-04-17T12:13:22 | 88,501,817 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,455 | h | TeamManager.h |
#ifndef TEAMMANAGER
#define TEAMMANAGER
#pragma warning (disable:4786)
//------------------------------------------------------------------------
//
// Name: TeamManager.h
//
// Desc: Singleton class to handle the management of Team.
//
// Author: Mat Buckland 2002 (fup@ai-junkie.com)
//
//--------... |
5408a52b3b8507e0e8d4bd677734df410f0c8de9 | e7bad21ba5c28c9fb0f1c91021541388bac3efad | /SumoChocadores/Juego/SumosChocadoresPlay.h | b9714c579b29ffe60709b77d08038094601b8450 | [] | no_license | More997/EngineMM-y-Sumo-Chocadores | 4e6dc11af89af87caef5380ec7d706068fdf005a | 36491bc7a4c8f5aed8bae04d8538f395d8212b7b | refs/heads/master | 2020-12-30T16:57:11.680583 | 2019-11-12T20:42:43 | 2019-11-12T20:42:43 | 90,981,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,517 | h | SumosChocadoresPlay.h | #ifndef SUMOSCHOCADORESPLAY_H
#define SUMOSCHOCADORESPLAY_H
#include "../EngineMM/ConectorDeEngine.h"
#include "../EngineMM/Animacion.h"
//#include "../EngineMM/Camera.h"
//#include "../EngineMM/Tilemap.h"
#include "../EngineMM/MeshRender.h"
#include "../EngineMM/SceneImporter.h"
#include "../EngineMM/TileRenderer.h"
#... |
fb807bc248741514a038a32e9c126fd97d5dd281 | 2a8a290eb1d0703a7c7b21429b07870c5ffa868e | /Include/NiDynamicEffectStateManager.h | af8a97a9943413b1f22518d29fd81685d54c03dc | [] | no_license | sigmaco/gamebryo-v32 | b935d737b773497bf9e663887e326db4eca81885 | 0709c2570e21f6bb06a9382f9e1aa524070f3751 | refs/heads/master | 2023-03-31T13:56:37.844472 | 2021-04-17T02:30:46 | 2021-04-17T02:30:46 | 198,067,949 | 4 | 4 | null | 2021-04-17T02:30:47 | 2019-07-21T14:39:54 | C++ | UTF-8 | C++ | false | false | 2,645 | h | NiDynamicEffectStateManager.h | // EMERGENT GAME TECHNOLOGIES PROPRIETARY INFORMATION
//
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Emergent Game Technologies and may not
// be copied or disclosed except in accordance with the terms of that
// agreement.
//
// Copyright (c) 1996-... |
ea7e9ceda7e23446fc7b69a354c2ec45cdc12348 | 3aae1bfe7d51f7d9479430766fb0910a35a7e953 | /src/PythonDef.cpp | 448a6fa74d4bd0be3982bc8a3a4581ac8068ad2f | [
"MIT"
] | permissive | renewang/HexGame | 69bcfbbf542f1bcb154461321dfbabb0898af54e | 21d271091c0b09dd701e1d7b61673ab944e7d45b | refs/heads/master | 2016-09-06T21:54:46.788719 | 2014-04-10T18:10:26 | 2014-04-10T18:10:26 | 18,365,382 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,269 | cpp | PythonDef.cpp | /*
* PythonDef.cpp
* This file defines the interface which can be used for python language and also a wrapper for Hex Game
*/
#include <boost/python.hpp>
#include "Game.h"
#include "Player.h"
#include "HexBoard.h"
#include "Strategy.h"
#include "AbstractStrategy.h"
using namespace boost::python;
/**
* HexGamePyE... |
d4d5777346a94376e16c4c336fc632378fd804b9 | 0dc243cf9828bd1ca3acdefe02acf7febd7817fe | /src/Core_Include/Core_ByteArray.h | aceef30003d585e5be6b0e854bbaacec48250155 | [
"BSD-3-Clause"
] | permissive | Akranar/daguerreo | c8b38eb43cf4f59497c2d2d13ced92911bd3cc5a | 20999144d2c62e54837cd60462cf0db2cfb2d5c8 | refs/heads/master | 2020-05-22T12:38:22.550303 | 2011-10-05T22:55:26 | 2011-10-05T22:55:26 | 2,337,599 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 950 | h | Core_ByteArray.h | #ifndef PACKEDBYTES_H_
#define PACKEDBYTES_H_
template<int BYTE_COUNT>
class ByteArray
{
unsigned char data[BYTE_COUNT];
public:
ByteArray()
{
for (unsigned int i = 0; i < BYTE_COUNT; ++i)
{
data[i] = BYTE_COUNT;
}
};
virtual ~ByteArray() {};
static unsigned int ByteCount();
inline const unsigned char... |
1522726d4cbacb25471c15bce9ab095167595978 | 3ac1f84f2d939de9e5836940d4f4ee28c8eaba80 | /Practice/4672.cpp | 4941de496e4a72f33099ecd6deb29252a5767d24 | [] | no_license | ensoo94/before2020 | e0d7cef190d13b31abbcebcf3142695c4f424eea | e5a5551915327e91589a9a8a4ea369933a5cb879 | refs/heads/master | 2023-01-24T13:05:22.690745 | 2020-12-05T07:42:22 | 2020-12-05T07:42:22 | 318,727,608 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 564 | cpp | 4672.cpp | #include <iostream>
#include <vector>
#include <cstdio>
#include <string.h>
using namespace std;
int Answer;
int arr[26];
int main(int argc, char** argv)
{
int T, test_case;
cin >> T;
for(test_case = 0; test_case < T; test_case++)
{
Answer = 0;
string tmpStr;
cin>>tmpStr;
memset(arr, 0, sizeof(arr));
... |
36018931a80ea26b7acf0b5fd27322920e82ab75 | 2b1b459706bbac83dad951426927b5798e1786fc | /src/media/audio/audio_core/shared/loudness_transform.h | 711252327ef7ed3467c56495ac88df7f2657d92c | [
"BSD-2-Clause"
] | permissive | gnoliyil/fuchsia | bc205e4b77417acd4513fd35d7f83abd3f43eb8d | bc81409a0527580432923c30fbbb44aba677b57d | refs/heads/main | 2022-12-12T11:53:01.714113 | 2022-01-08T17:01:14 | 2022-12-08T01:29:53 | 445,866,010 | 4 | 3 | BSD-2-Clause | 2022-10-11T05:44:30 | 2022-01-08T16:09:33 | C++ | UTF-8 | C++ | false | false | 2,287 | h | loudness_transform.h | // Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_MEDIA_AUDIO_AUDIO_CORE_SHARED_LOUDNESS_TRANSFORM_H_
#define SRC_MEDIA_AUDIO_AUDIO_CORE_SHARED_LOUDNESS_TRANSFORM_H_
#include <fuchsia/media/cp... |
23ae087215670c45950d697331dfbd5dc9ec896a | 42e4fb03c3ff4426e4c839f9d25ba703de52f42c | /ui_helpWindow.h | 05ec0a554cd8f9fa844f71004607318e05d169ea | [] | no_license | ArashMassoudieh/Aquifolium_GUI | 6c758d1dcfb3d3fc8e852ef05d67efb573866e53 | 994250e407bde7b08124d3576ae7f61e38359f31 | refs/heads/master | 2020-03-26T22:39:02.347783 | 2020-03-21T15:43:34 | 2020-03-21T15:43:34 | 145,476,765 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,335 | h | ui_helpWindow.h | /********************************************************************************
** Form generated from reading UI file 'helpWindow.ui'
**
** Created by: Qt User Interface Compiler version 5.11.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
***************************************... |
7ce0139c2a1967efa506207c23e191b6e28709bf | 01e53bb0aad011745d6eab569690da305c59d69b | /Source/ServerListTool/ServersCheckerDlg.cpp | 85aa69fa216d753737aa125a0679c7d6202f2317 | [
"Apache-2.0"
] | permissive | zenden2k/image-uploader | 7905ac8d816943e29dfb71c0bb28f2e4644ffbb6 | 17ba538634b878b1828b5ee92d2e29feb20d6628 | refs/heads/master | 2023-08-04T17:43:26.934987 | 2023-07-25T16:10:50 | 2023-07-25T16:10:50 | 32,092,014 | 122 | 46 | Apache-2.0 | 2023-07-02T15:42:02 | 2015-03-12T17:43:48 | C++ | UTF-8 | C++ | false | false | 10,285 | cpp | ServersCheckerDlg.cpp | #include "ServersCheckerDlg.h"
#include "Gui/Dialogs/LogWindow.h"
#include "Core/Utils/CoreUtils.h"
#include "Gui/GuiTools.h"
#include "Func/WinUtils.h"
#include "Core/Utils/CryptoUtils.h"
#include "Core/Upload/UploadManager.h"
#include "ServersChecker.h"
#include "Core/ServiceLocator.h"
#include "Core/Setti... |
f737b85e275aa854fd52966fe6433b1389cd4868 | c557ab896e575a31eac9bd939d8992a4c0d5553b | /main.cpp | 6fd1e815e9c108db75701d74418d63e87f26d5e7 | [] | no_license | popovicirobert/BFS | 030390ba2cff326e8f6f05d1f060e61b239913da | ef409b389569db4122dc4147ba4417527887de90 | refs/heads/master | 2023-01-21T01:50:37.579955 | 2020-11-30T19:57:51 | 2020-11-30T19:57:51 | 306,599,913 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,628 | cpp | main.cpp | #include <cstdio>
#include <cctype>
#define ull unsigned long long
#define MAXBUF (1 << 17)
static char buf[MAXBUF];
int pbuf;
static inline void Init() {
pbuf = MAXBUF;
}
static inline const char NextCh() {
if(pbuf == MAXBUF) {
fread(buf, 1, MAXBUF, stdin);
pbuf = 0;
}
return buf[pbuf++];
}
static inlin... |
1f5fdcd32a3dec9a0850cb19f8ede7e698ac668f | 76171660651f1c680d5b5a380c07635de5b2367c | /SH6_58mps/0.099925/T | ac792e3ec840bb8fde2dc0b0758aa8a73132ba87 | [] | no_license | lisegaAM/SH_Paper1 | 3cd0cac0d95cc60d296268e65e2dd6fed4cc6127 | 12ceadba5c58c563ccac236b965b4b917ac47551 | refs/heads/master | 2021-04-27T19:44:19.527187 | 2018-02-21T16:16:50 | 2018-02-21T16:16:50 | 122,360,661 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 109,428 | T | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.x |
... | |
f414caacbc7114ab2f5ae5aaf228083d880ffaae | 605c255ad89ac141e5d02303727a8454ef4df8dc | /src/vue/include/CaseGraphique.hpp | a55d3652b34a21dbe6985ec86bad3b56da057182 | [] | no_license | wojiaodawei/game-of-frog | 07284a743a866a760a96ef59f16a6b03690009f1 | 6333f1da3fef5868c5faec1b0517421b5e817123 | refs/heads/master | 2021-02-09T16:41:05.006569 | 2020-03-02T07:45:00 | 2020-03-02T07:45:00 | 244,303,340 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,644 | hpp | CaseGraphique.hpp | #ifndef CaseGraphique_hpp
#define CaseGraphique_hpp
#include <gtkmm/eventbox.h>
#include <gtkmm/image.h>
#include <map>
#include <memory>
#include <string>
// Déclarations incomplètes des classes Presentateur et GrenouillolandGraphique.
class Presentateur;
class GrenouillolandGraphique;
/**
* @class CaseGraphiqu... |
9b3b592bacdc9be1aeef10a971156ec625f3b3b2 | 231d0723fe7add8704ffd866178dbdd8fe50365c | /coral/tools/partitioner/partition_with_profiling.cc | d57a98b3216aefe4c7e1b7f173af0ac0b7e37589 | [
"Apache-2.0"
] | permissive | OS-Chris/libcoral | 9fc0206833de3317c4a39e8b55332f0a06005aeb | 4698784163515bc092c50bec98b200d6b3d616c8 | refs/heads/master | 2023-08-29T02:57:36.969419 | 2021-10-20T08:09:46 | 2021-10-20T08:09:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,669 | cc | partition_with_profiling.cc | /* Copyright 2019-2021 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... |
4a6210618124e71f17265b701854446ece66ddb0 | 67bcd071970105ed8cede9f84847859da55852fe | /2. C++/Tarea/Fracciones/FraccionTest.cpp | 56463925a7676079bdf78a43031ee2c07af9657a | [] | no_license | Tapia641/escom-sistemas-distribuidos | 982fae164b2d4f72947a035c3f9d51fddbdfea16 | 8947e91a18a977ca45696b683a3733b25bd12cc3 | refs/heads/master | 2022-09-16T17:27:18.875013 | 2019-11-15T05:12:06 | 2019-11-15T05:12:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | cpp | FraccionTest.cpp | #include <iostream>
#include "Fraccion.h"
using namespace std;
int main() {
Fraccion t(1, 9);
cout<<"Fracción: ";
t.imprime();
std::cout << endl;
cout<<"División: ";
std::cout << t.getDouble() << endl;
cout<<"Mínima Expresión: ";
t.imprimeMinima();
std::cout << endl;
}
|
072946b8b4fa5a4007bffbe0698f255c71509890 | d1ca9f9fbb1817a80e9051a5ab2b2a31efb1bb07 | /source/core/TraitSet.hpp | cf98f6325b36aba1a97a02e29145004f4bc03117 | [
"MIT"
] | permissive | mercere99/MABE2 | dbdf3fdd208b752149cf2bf1f083155b001de79c | 7eba5d316604815a35d1c3bd0e69dde594e77634 | refs/heads/master | 2023-09-03T22:23:56.594269 | 2023-08-29T22:22:24 | 2023-08-29T22:22:24 | 189,902,530 | 5 | 18 | MIT | 2022-07-19T19:26:17 | 2019-06-02T22:44:11 | C++ | UTF-8 | C++ | false | false | 8,339 | hpp | TraitSet.hpp | /**
* @note This file is part of MABE, https://github.com/mercere99/MABE2
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
* @date 2021.
*
* @file TraitSet.hpp
* @brief A collection of traits with the same type (or collections of that type).
*
* A TraitSet is... |
663a19f1906e908cba25eb3ff94513abfea0f08f | 8f6be521c2becab9ffc579b0bae57066b045b371 | /include/Game.h | 49512e2ffcfad24d1c279040ed9099d63427494a | [
"LicenseRef-scancode-public-domain"
] | permissive | yurivanmidden/mod11-pacman | 6dadde739bb22b9885e3f721bac4870460cd6be0 | 6401428ebe587637873efe048f97f07890041631 | refs/heads/master | 2021-09-11T09:47:02.034091 | 2018-03-20T10:44:29 | 2018-03-20T10:44:29 | 125,997,109 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 727 | h | Game.h | //
// Created by yuri on 20-3-18.
//
#ifndef PACMAN_GAME_H
#define PACMAN_GAME_H
#include <vector>
#include "GameObjectStruct.h"
#include "Character.h"
class Game {
private:
int score;
int lives;
public:
Game() : score(0), lives(3) {
}
void init() {
}
// TODO: This convention is not... |
4ed4337712e6dd2b28ef59a91f5dfe1c0168c412 | a187e3ce8243a76617e10827692241868af263ec | /wallet/bfxt/bfxtoutpoint.cpp | 5bbea51bb239cf1f97c1490eba32a3c2f95d0570 | [
"MIT"
] | permissive | sanjayg99/bfx | 6b1b5a9f80c27e1daa7a5089db2eefa8ce386b1a | 62494103b9934e41830152af90abe85cf0250eeb | refs/heads/master | 2022-09-01T10:04:57.087252 | 2020-05-23T17:51:12 | 2020-05-23T17:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,048 | cpp | bfxtoutpoint.cpp | #include "bfxtoutpoint.h"
#include "bfxttools.h"
BFXTOutPoint::BFXTOutPoint() { setNull(); }
BFXTOutPoint::BFXTOutPoint(const uint256& hashIn, unsigned int indexIn)
{
hash = hashIn;
index = indexIn;
hashStr = hashIn.ToString();
}
void BFXTOutPoint::setNull()
{
hash = 0;
index = (unsigne... |
0ea09825b31004f0caef1183ea3b9c0fa6886c0f | 404ecc8fcf7c80d89c3e8c23278656f239c2eb6a | /probability/notification_policy.h | f96270f26c7ba9ad9b4dcaa914becde64eb7adf9 | [
"MIT"
] | permissive | petermchale/mutation_accumulation | 4c6bfbe3138e0bdbe0057c6d830e5fbb37baebc9 | f4bd9182619bae1b2e8fa95700540ee398c2bdd6 | refs/heads/master | 2020-04-09T07:01:30.480479 | 2017-09-21T18:59:26 | 2017-09-21T18:59:26 | 68,173,189 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,484 | h | notification_policy.h | #ifndef NOTIFICATION_POLICY_H
#define NOTIFICATION_POLICY_H
#include <cassert> // assert
#include <mutation_accumulation/utility/data_traits.h> // data_types::discrete_type, etc
#include <mutation_accumulation/configuration/utilities/lifetime_risk.h> // time_greater_than_zero
/**************************************... |
c9025f4342676a68f5f479c2e7ab5fa3f300a718 | ab9ea4f4c42206c5effd650eafd04703f1a07b71 | /CS-445 Computer Graphics/Lab 1/Part 1/GeometricObject.h | e23af4bd8e1e82f97dc08c6aab9a3610de0b3d8f | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | djaffalikhaled/WillametteUniversity | dc8eead601a03169bde13355dc1f1244440d1f38 | e4407077fe2708cd3e46835e01a33e94b9e22964 | refs/heads/master | 2021-05-28T15:37:24.350120 | 2014-11-04T21:25:02 | 2014-11-04T21:25:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,015 | h | GeometricObject.h | // GeometricObhect.h
// Modified from
// Copyright (C) Kevin Suffern 2000-2007. Modified by G. Orr
#ifndef __GEOMETRIC_OBJECT__
#define __GEOMETRIC_OBJECT__
#include <math.h>
#include "Constants.h"
#include "RGBColor.h"
#include "Vector3D.h"
#include "Ray.h"
#include "ShadeRec.h"
#include "Material.h"
... |
18859cbfe813eb16707e63818ac4cf54e1ba8c16 | 75ffa6ffb76fc351380f639932a348c8dfc22a9c | /lab3/lab3.cpp | 9673e00d542cba80a7522b920bf33c86463219bd | [] | no_license | skyisperfect/effectiveprogrammingcpp | 802f0c7123286af591641dd68ef5670e550addb7 | 1948b439502d9023a72ecf913ad0981c5fbd4265 | refs/heads/master | 2020-03-08T04:37:10.851800 | 2018-06-18T14:45:03 | 2018-06-18T14:45:03 | 127,927,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,189 | cpp | lab3.cpp | #include <iostream>
#include <fstream>
#include <cassert>
using namespace std;
template <class TYPE>
class Matrix{
private:
TYPE **arr;
int rows;
int columns;
public:
Matrix(){}
Matrix(int row, int cols): rows(row), columns(cols){
arr = new TYPE*[row];
for(int i = 0; i < row; i++){... |
bdae3a882c0aacafa39302cd3cd66b80593b70ed | f3efc46550fb3c28961eb0caf34074680f55f8dc | /CodeChef/POLYEVAL.cpp | 8034dcb147784f18716b67ba7e9c3b7ba640760b | [] | no_license | QMrpy/competitive-programming | ec3905a33227b4fe89c728a92540f888642e1331 | 2a291aaf2fc7e91d604d7d790669b3e4c34755b6 | refs/heads/master | 2020-04-25T18:03:09.260122 | 2019-01-19T09:42:01 | 2019-01-19T09:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,257 | cpp | POLYEVAL.cpp |
// Evaluate the polynomial
// https://www.codechef.com/problems/POLYEVAL
// Number theoretic transform
// O(N log N)
#include <bits/stdc++.h>
using namespace std;
const long long MOD = 786433;
const int MAX_N = 8e5 + 5;
namespace NTT {
const long long P = MOD; // P = 2 ^ 18 * 3 + 1
const int K = 18;
... |
fde1e6883509f7b5a4bf80cd65c184bca0eacd5b | 8d067e70466c2c9b301d3c47b3e93ed38bf8f82a | /V3/src/model.h | 9a13b99ca04149fbd713b1809d911cdeefae3717 | [] | no_license | robertbrignull/StudyAid | 349d8565166fee19a67041cfaf5270bf9a8df52a | a71ecf55433b53ae9ea5065eb1e4710470d5be29 | refs/heads/master | 2016-09-06T08:05:05.784051 | 2014-04-23T21:50:08 | 2014-04-23T21:50:08 | 13,322,199 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,579 | h | model.h | #pragma once
#include <QObject>
#include "database/structures.h"
class ModelSignaller : public QObject
{
Q_OBJECT
signals:
void courseAdded(Course course);
void courseEdited(Course course);
void courseOrderingEdited(Course course);
void courseDeleted(int id);
void factAdded(Fact fact);
... |
46f5fb9a99a859484e2f5ceebad0ef70ffc5cb97 | 310b32b04946f0ee3e131cf33fef635696c1ff4a | /src/signAChart/SAAbstractPlotEditor.cpp | 0d88e25f858dd847b255f75b49593d7f589c5006 | [] | no_license | stlcours/sa | 5d99423a13e471080ef7e3943b456efb61a8ba75 | 826c7f827567fc5021c968e7b541a287e8e3e759 | refs/heads/master | 2021-05-16T04:17:46.005741 | 2017-09-21T06:00:14 | 2017-09-21T06:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 990 | cpp | SAAbstractPlotEditor.cpp | #include "SAAbstractPlotEditor.h"
SAAbstractPlotEditor::SAAbstractPlotEditor(QwtPlot *parent)
:QObject(parent)
,m_isEnable(false)
{
}
SAAbstractPlotEditor::~SAAbstractPlotEditor()
{
}
const QwtPlot *SAAbstractPlotEditor::plot() const
{
return qobject_cast<const QwtPlot *>( parent() );
... |
70ac1dfe59facb0f71092ade4708885e5202dfb0 | ae571e01b5fb10cd98dc6b79472170c0f567e6b9 | /include/Inventory/GearSlots.h | 639be04471614c51494ed8a8befcb8f3719a53f9 | [] | no_license | Oscillation/oscMrk-II | 9cda29f66db59148e0bfbb1ba640665ba423bda2 | 34833b85a42cf12514095d3a28ac3b3627fd712a | refs/heads/master | 2021-01-23T04:09:27.631400 | 2014-03-03T06:34:41 | 2014-03-03T06:34:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 384 | h | GearSlots.h | #pragma once
#include "Inventory\Inventory.h"
#include "Inventory\GearSlot.h"
class GearSlots : public Inventory{
public:
GearSlots::GearSlots(TextureHolder const& textures, int invWidth, int x_offset, int y_offset);
std::vector<GearSlot> slots;
void GearSlots::Command(GearSlot* slot, Inventory* inventory);
void d... |
191f02a1ca87da7522334d9af20d14f63bcacea3 | 79e4954c366dbf4b119d9b38cafe0c24f08adfcd | /Dynamic Programming/palindrompartitioning.cpp | 25a64fd04592f4a16186fa0ece5b1a86a4368c08 | [] | no_license | prashantmarshal/ds-codes | 463e67f077544386d4484c472fd3defa9d0acfb5 | 184421907a97330e20c45454cb956d15086e84e3 | refs/heads/master | 2021-01-10T05:18:26.506471 | 2015-10-24T19:29:29 | 2015-10-24T19:29:29 | 44,881,110 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 787 | cpp | palindrompartitioning.cpp | /*palindrome min cuts*/
#include <iostream>
#include <stdio.h>
#include <bits/stdc++.h>
using namespace std;
int mincutspalindrome(string str){
int len = str.length();
bool p[len][len];
int c[len][len];
memset(p,0,len*len*sizeof(bool));
memset(c,0,len*len*sizeof(int));
for(int i = 0; i < len; ++i)
p[i][i] =... |
e01cb064d0ea9dbbb176c54602af1c1322e00dc6 | 0b658fcf4d0cf12fcbf9883642916d85b2c80be6 | /lib/themes/default/default.h | 030bfee804b66749c923644de8c16d6ae5c06ab3 | [] | no_license | EasyDevCpp/FoxyGui | 3f2237af4753d888ac28115a5a675024be4c541c | e161a3a54cd1fafd005c034570eead14d0e9521e | refs/heads/master | 2020-03-22T12:19:38.556666 | 2018-07-10T17:48:15 | 2018-07-10T17:48:15 | 140,033,137 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | h | default.h | #ifndef __DEFAULT_THEME
#define __DEFAULT_THEME
namespace default_res {
}
/*
* Window Controls
*/
void CloseButton::fadeIn() {
}
void CloseButton::fadeOut() {
}
void CloseButton::draw() {
SDLExt_DrawRect((*getContainer())->getRenderer(),getX(),getY(),getWidth(),getHeight(),{255,0,0});
}
void MaximizeButton::... |
20248635a7c11349dd6d403ca7b006a3661dbd79 | 7f14a0ed30774b984daf7498d1d7dc1c4e7693a0 | /src/server/CommandsDiodColor.cpp | 851be78fc3bc1cbf032b16ca2cdec8935577eace | [] | no_license | evgeny-bunya/camera-control | 3c36151dc6e8168c9fead5341aaf22d916286ec1 | 60f23dcf60875dc7eedac952d19e3144bbc29405 | refs/heads/master | 2022-06-13T09:07:03.281141 | 2020-05-04T12:30:32 | 2020-05-04T12:32:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,246 | cpp | CommandsDiodColor.cpp | #include "CommandsDiodColor.h"
#include "DiodColor.h"
// класс команды включения-выключения диода
SetDiodColorCommand::SetDiodColorCommand(DiodColor& colorRef):
ICommand(),
color(colorRef)
{
}
SetDiodColorCommand::~SetDiodColorCommand()
{
}
std::string SetDiodColorCommand::getName()
{
return "set-led-color";
... |
ae9756c9a9921fdcb84a7e027ff6f52cf16f75b4 | e7594dd55dcbf2e54cc14491e554611fb3f96fec | /labo/clase_07/L07/CLion/L07-MatricesYTableros/test/ej03Test.cpp | de9ab67769df2c2be844909eb75f4793beb12d52 | [] | no_license | NicoKc/algo1 | 5b66bdb8009752cf5ba16c84a1812ae8de767083 | 57a34a225d299e1d7eb4e4d457c0740f35b04242 | refs/heads/master | 2022-11-29T23:26:57.334479 | 2020-08-17T16:18:13 | 2020-08-17T16:18:13 | 256,615,834 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 342 | cpp | ej03Test.cpp | #include "../lib/gtest.h"
#include "../src/ej03.h"
TEST(redimensionarTest, caso1) {
matriz a{{1, 2, 3, 4},
{5, 6, 7, 8},
{9, 10, 11, 12}};
matriz esperada{{1, 2, 3, 4, 5, 6},
{7, 8, 9, 10, 11, 12}};
matriz aPrima = redimensionar(a, 6, 2);
ASSERT_EQ... |
fef5e31afb8bf6a3b3fcfe11f17779fb03b8f384 | 934c51e15d3ca39aef0c02e9276a0a9b8346d639 | /Lab9.3/Lab9.3.cpp | 9359d6a6912d047199a71988d8f04b47cf41469e | [] | no_license | Feynom/lab9.3 | 2e4a4d013cfa48f45d6706ea9b4dd3f765938cf8 | 0b1a4e17b953aaa33742e64ebb2192306709365d | refs/heads/main | 2023-01-23T07:31:48.142906 | 2020-12-04T19:52:55 | 2020-12-04T19:52:55 | 318,198,901 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,460 | cpp | Lab9.3.cpp | #include <iostream>
#include <string>
#include <iomanip>
#include <Windows.h>
#include <fstream>
using namespace std;
#pragma pack(push, 1)
struct Shop
{
string shop_name;
string item_name;
double price_for_item; //у гривня
int amount_of_items; //наприклад 100 штук
};
#pragma pack(pop)
void Crea... |
0de01b5e3c7dea8fa299b265ea0dc69d899f8311 | 694df92026911544a83df9a1f3c2c6b321e86916 | /c++/Test/GlobalData/weoGlobalData.cpp | 0a44030f9ee9d3b0372010d1700b0921a5c23010 | [
"MIT"
] | permissive | taku-xhift/labo | f485ae87f01c2f45e4ef1a2a919cda7e571e3f13 | 89dc28fdb602c7992c6f31920714225f83a11218 | refs/heads/main | 2021-12-10T21:19:29.152175 | 2021-08-14T21:08:51 | 2021-08-14T21:08:51 | 81,219,052 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,221 | cpp | weoGlobalData.cpp |
#include "pm_mode.cnf"
#if (PM_MODE_ALLMENU_OFF != 1)
//-----------------------------------------------------
// include
//-----------------------------------------------------
#include "weoGlobalData.h"
#include "weDebug.h"
#define PUSH_RELEASE(ptr, some)
GlobalData* GlobalData::this_ = NULL;
... |
da83c1e1a74713e9384e16c8a79d2af28fc84f4e | 3098059055899481e2be7bfca111a2ce8154f7f5 | /Serial/serial_debug/serial_debug.ino | bd46fd6fce8d0722ad90906613f3ea6f38fbd5d7 | [] | no_license | fishmingyu/mechanic_arm | f12c951fa95caff5fe32e3f91034a65ae107f5e2 | 5a217f2da1f00c606ab79f87234535148de297b8 | refs/heads/master | 2020-07-09T09:56:59.750304 | 2019-08-28T18:27:42 | 2019-08-28T18:27:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,797 | ino | serial_debug.ino | bool catch_valid = false;
double X, Y, Z, L; //以腰部舵机中心建立坐标系,直角坐标系与柱坐标系相互转换
byte theta; //底盘的极角,极轴以底盘舵机90˚方向,theta为弧度制
byte angle_alpha;
//X = L * cos(theta); Y = L * sin(theta);
String Z_store = "", L_store = "", theta_store = "", STORE = "", alpha_store = "";
void setup()
{
Serial.begin(9600);
Serial.println(... |
e3840c113c66769542edfbed4f0aefeb031a9e6d | 341f61df4841409719462de654dcacfebce89784 | /sudao-smsp/01_trunk/source/smsp_c2s/direct/SMGPConnectReq.h | c4656edfd06734b18e365dff5dca3e83028bd781 | [] | no_license | jarven-zhang/paas_smsp | ebc0bbec8d3296d56a1adc6b49846b60237539a8 | 5bb8f59a54fa5013e144e91187781a487a767dca | refs/heads/master | 2020-05-15T18:31:48.082722 | 2019-05-07T12:35:33 | 2019-05-07T12:35:33 | 182,426,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,238 | h | SMGPConnectReq.h | #ifndef SMGPCONNECTREQ_H_
#define SMGPCONNECTREQ_H_
#include "SMGPBase.h"
namespace smsp
{
class SMGPConnectReq: public SMGPBase
{
public:
SMGPConnectReq();
virtual ~SMGPConnectReq();
SMGPConnectReq(const SMGPConnectReq& other)
{
this->clientId_ = other.clientId_;
this->authClient_ = other.authClient_... |
e1c70cbe07a803eb2d00a05b2c3bce055fe405f9 | 48341608d6141a16f636b248496f9faf33c50a7e | /Academic/C/Aps/funcoes/EX6.cpp | bd2b944d0b6877c4c1675bad6ff4fbb586a46d55 | [] | no_license | joaogqueiroz/Projetos_C | 0b036974f64fb654b454c3281ac4a404d222efed | 95e66540f78bac74a5d481c33ba39d123e5178e4 | refs/heads/master | 2020-04-08T21:31:30.879603 | 2019-11-20T14:01:32 | 2019-11-20T14:01:32 | 159,747,566 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 429 | cpp | EX6.cpp | #include <stdio.h>
#include <stdlib.h>
void calcula_tempo( int &hora, int &minuto){
int min_hora=60;
hora=minuto/min_hora;//calcula hora
minuto=(minuto-(min_hora*hora)); //calcula minutos
}
int main(){
int minuto,hora=0;
printf("Informe a quantidade de minutos: \n\n");
scanf("%d",&minuto);
calcula_tempo(hora,minu... |
af90c4e0566016f7486b25f2a89254349cc43476 | 80b3a67d2b9eef27bfccf1364b5e866f840f22c9 | /codes/obc/dependencies/rodos/tutorials/60-tutorial-big-application/simple/common/globaldata.cpp | 9eba6fd58ca2459c258686a3b5fa95404738195f | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | sabil62/Floatsat | b00598239dd5fa00234927c533ec3b90369da4a8 | a02ce5a228ea82f539aa1845ed6f8edeba85a885 | refs/heads/main | 2023-06-08T10:13:51.741052 | 2023-05-25T17:11:44 | 2023-05-25T17:11:44 | 371,999,803 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 155 | cpp | globaldata.cpp |
#include "rodos.h"
#include "common.h"
// @autor: Sergio Montenegro, Uni Wuezburg
namespace Common {
uint32_t counter1 = 0;
uint32_t counter2 = 0;
}
|
40ce856374bea3d9af1631a18adad14334990700 | 4110496fb8b6cf7fbdabf9682f07255b6dab53f3 | /BFS/45. [Like And Useful] Jump Game II.cpp | ea3748007c02691b09ae7acbb97b324a597483f3 | [] | no_license | louisfghbvc/Leetcode | 4cbfd0c8ad5513f60242759d04a067f198351805 | 1772036510638ae85b2d5a1a9e0a8c25725f03bd | refs/heads/master | 2023-08-22T19:20:30.466651 | 2023-08-13T14:34:58 | 2023-08-13T14:34:58 | 227,853,839 | 4 | 0 | null | 2020-11-20T14:02:18 | 2019-12-13T14:09:25 | C++ | UTF-8 | C++ | false | false | 526 | cpp | 45. [Like And Useful] Jump Game II.cpp | // think it as bfs. shortest path problem. O(N).
// say 2 3 1 1 4.
// level 0: 2
// level 1: 3 1
// level 2: 1 4.
class Solution {
public:
int jump(vector<int>& nums) {
int n = nums.size(), step = 0, start = 0, cur = 0, next = 0;
while(start < n-1){
step++;
for(; start <= cu... |
4dc465a914279d913f13b7d2fa37149127d20eed | a305b232694c4965458587933a9282195507707d | /URI/1796.cpp | a5f0a303b9cf36fa48f1281d24c6c5c7ea578a47 | [] | no_license | gustavo-candido/ONLINE-JUDGE | d1596a0d1b7960fc35686c8edb57e8360146a309 | 0b4070db187b4ff5761008039d4a5de426b07cf8 | refs/heads/master | 2022-06-09T10:33:40.956799 | 2022-05-13T18:11:36 | 2022-05-13T18:11:36 | 198,307,436 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 223 | cpp | 1796.cpp | #include <bits/stdc++.h>
#define _n 233005
using namespace std;
int main()
{
int n, v=0, aux;
scanf("%d", &n);
for(int i=0; i<n; i++) {
scanf("%d",&aux);
if(!aux)v++;
}
if(v > n/2) puts("Y");
else puts("N");
} |
bc924362035c8d3fdfd78b9a2b2e6eb61b6c85ac | be6494ca016157a7051856f678a4a2749821f716 | /sources/src/client/reader/TibiaClientMemoryReader.cpp | 4402b8b4214687f4e1aa406cbeb4b66b38f7a671 | [] | no_license | stryku/amb | 9ffd00d57694e44b814631b48d32b9e64968f105 | f2738e58d104e8dcb87e91c8fdf0bbaf1ac445aa | refs/heads/master | 2021-01-20T06:31:09.805810 | 2017-03-22T22:21:18 | 2017-03-22T22:21:18 | 82,597,607 | 1 | 0 | null | 2017-03-22T22:21:19 | 2017-02-20T20:05:19 | C++ | UTF-8 | C++ | false | false | 808 | cpp | TibiaClientMemoryReader.cpp | #include "client/reader/TibiaClientMemoryReader.hpp"
#include "memory/Addresses.hpp"
#include <cstdint>
namespace Amb
{
namespace Client
{
namespace Reader
{
TibiaClientMemoryReader::TibiaClientMemoryReader(DWORD pid)
: processMemoryReader{ pid }
{}
... |
3b74a879403580e287f95a43704162ba7997470b | 500e57cbb3ca8c2a8ff3823940bac66cd8c9b89b | /CS3113_HW_5/CS3113 HW5/Entity.cpp | 08e271761abb608d7b5580b3b3cc40031950cf3d | [] | no_license | KaYBlitZ/CS3113-HW | e0d0c937747ca39d7a6dd523ccc94629d10d59e0 | 5a89813103c8d1848adbbf2c336c721b75f0e237 | refs/heads/master | 2020-06-05T03:56:57.223393 | 2015-05-11T16:51:46 | 2015-05-11T16:51:46 | 30,125,405 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 915 | cpp | Entity.cpp | #include "Entity.h"
Entity::Entity() : x(0.0f), y(0.0f), xVel(0.0f), yVel(0.0f), xAccel(0.0f), yAccel(0.0f), remove(false) {}
Entity::Entity(float x, float y, SheetSprite sprite) : x(x), y(y), xVel(0.0f), yVel(0.0f), xAccel(0.0f), yAccel(0.0f),
sprite(sprite), remove(false) {}
Entity::Entity(const Entity& rhs) :... |
e194e580159d50c33521d2fc2dc8f17adc0af607 | 86f313355cd81393329ab1b52fb5d29d444593c2 | /SheetEditorView.h | 09e9c888a24bed5e241b370f4c2818a446fb2882 | [] | no_license | meh2481/SpriteSheeter | afa95dded2351754df362dc635e41effa4ce9e81 | 6fdf0dd10af107dbfc7c40431a7b71ff4fb7911d | refs/heads/master | 2021-01-17T15:11:48.487825 | 2017-08-02T15:55:03 | 2017-08-02T15:55:03 | 38,405,967 | 19 | 5 | null | 2017-08-02T15:55:04 | 2015-07-02T02:12:03 | C++ | UTF-8 | C++ | false | false | 803 | h | SheetEditorView.h | #ifndef SHEETEDITORVIEW_H
#define SHEETEDITORVIEW_H
#include <QGraphicsView>
#include <QMouseEvent>
#include <QScrollBar>
class SheetEditorView : public QGraphicsView
{
Q_OBJECT
bool _pan;
int _panStartX, _panStartY;
public:
explicit SheetEditorView(QWidget *parent = 0);
~SheetEditorView();
... |
c1ca076d001379dc3df16594d6f5ebbf28dbf42e | 8be023f90d9a18f4917af4bba8fb31230df3df2a | /SigLog_Lib/transports/snmpSSHDomain.cpp | 7ec702bd6d4ed917bf092419b8bd107d3519b062 | [] | no_license | duniansampa/SigLog | d6dba1c0e851e1c8d3aef3af4bb85b4d038ab9c9 | 3dae0e42a36ebc5dca46fb044d3b1d40152ec786 | refs/heads/master | 2021-01-10T12:25:17.511236 | 2016-03-12T18:38:19 | 2016-03-12T18:38:19 | 44,571,851 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33,007 | cpp | snmpSSHDomain.cpp | #include <sigLogH/net-snmp-config.h>
#include <sigLogH/net-snmp-features.h>
#include <sigLogH/library/snmpSSHDomain.h>
#include <stdio.h>
#include <sys/types.h>
#include <errno.h>
#include <libssh2.h>
#include <libssh2_sftp.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#if HAVE_STRING_H
#include <string.... |
27ba4ff1f971d5c23400fa4d2d32315bb535070c | dc8cff737288b3515c4c4cd4f2554378eb771e87 | /5.custom/build/contact/rosidl_typesupport_fastrtps_c/contact/srv/dds_fastrtps_c/add_two_floats__request__type_support_c.cpp | 17517e35dcce54d1fe6f87349c86a1791cc2e324 | [] | no_license | songmilee/ros2_study | 2c3937e245c4876177e4ea757940317638abdf40 | 0cc6dcfbbc2a34c7a2eec5c94e8ab4b0f2fe9f9e | refs/heads/master | 2020-04-26T01:49:12.948462 | 2019-03-12T11:27:58 | 2019-03-12T11:27:58 | 173,215,863 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,592 | cpp | add_two_floats__request__type_support_c.cpp | // generated from rosidl_typesupport_fastrtps_c/resource/msg__type_support_c.cpp.em
// generated code does not contain a copyright notice
#include "contact/srv/add_two_floats__request__rosidl_typesupport_fastrtps_c.h"
#include <cassert>
#include <limits>
#include <string>
// Provides the rosidl_typesupport_fastrtps_... |
f2c396d46981675588ffc00247a573607d9fe380 | aa59edc791efa1eea8bb477689e5ae227f7621b2 | /source/NanairoCore/Geometry/vector.cpp | a6f5e292003db8eab0be28fac2d70040330c5e46 | [
"MIT"
] | permissive | byzin/Nanairo | e5f30fb8fae8d65c45c768c8560524ac41f57d21 | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | refs/heads/master | 2020-12-25T17:58:18.361872 | 2019-05-05T06:05:34 | 2019-05-05T06:05:34 | 18,831,971 | 32 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 965 | cpp | vector.cpp | /*!
\file vector.cpp
\author Sho Ikeda
Copyright (c) 2015-2018 Sho Ikeda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#include "vector.hpp"
// Zisc
#include "zisc/arith_array.hpp"
#include "zisc/utility.hpp"
#include "zisc/vector.hpp"
// Nanairo
#inclu... |
815b823722d6066b1c1d8da53a7e73831f2235c9 | bcb569fb7eefce77ef4f31bca0cfa73029298ae0 | /Common/AllocServer/gameprocess/SetTableStatusProc.h | 64edf165dfa4d4e84ef72c2788133bce547d5248 | [] | no_license | xubingyue/GP | e3b3f69b3d412057933ca32e61a57005ab19df80 | 7b0e7b48c1389e39aafb83a7337723400f18ada5 | refs/heads/master | 2020-09-15T01:32:03.539712 | 2018-07-18T10:46:19 | 2018-07-18T10:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | h | SetTableStatusProc.h | #ifndef _SetTableStatusProc_H
#define _SetTableStatusProc_H
#include "CDLSocketHandler.h"
#include "IProcess.h"
class SetTableStatusProc :public IProcess
{
public:
SetTableStatusProc();
virtual ~SetTableStatusProc();
virtual int doRequest(CDLSocketHandler* clientHandler, InputPacket* inputPacket, Context* p... |
e05151e9b4d50b878deb2153a70e78d7c1842d43 | 8c8243692d262395d07380cbf470da5918bd976b | /mcworker.cpp | 53d7bfe456bcd6f47285f55b465a19c55f7bcdda | [
"MIT"
] | permissive | ElsevierSoftwareX/SOFTX_2018_106 | 3369f428d98c425209453d409262a431190c1eec | ebfef9c9aaae4ddad1bda48d3822bc534157d37f | refs/heads/master | 2020-04-17T17:41:31.140505 | 2019-01-08T03:43:39 | 2019-01-08T03:43:39 | 166,792,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,088 | cpp | mcworker.cpp | #include "mcworker.h"
#include "includes.h"
#include <chrono>
#include <random>
static std::mt19937
rng(std::chrono::high_resolution_clock::now().time_since_epoch().count());
MCWorker::MCWorker(QMap<QString, double> a, QList<QString> g, double c,
unsigned long t, int th) {
map = a;
genes = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.