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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
441d2b73f2b4576dda72cd6a02957f1cab34dc5d | 5b94cf771f7150bf1ebac3b51b76a306622529a8 | /orockets.h | 74f2567c1a5a84552bbd04d6be591887e21afa33 | [] | no_license | erezsh/zodengine | 79dc8b2825d5a751587c154ec9ca3e9ab3023b38 | 27d29020b9a187a090860e21bf52f8e7a91771e7 | refs/heads/master | 2023-09-03T09:16:49.748391 | 2013-04-13T11:25:02 | 2013-04-13T11:25:17 | 5,296,561 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 384 | h | orockets.h | #ifndef _OROCKETS_H_
#define _OROCKETS_H_
#include "zobject.h"
class ORockets : public ZObject
{
public:
ORockets(ZTime *ztime_, ZSettings *zsettings_ = NULL);
static void Init();
void DoRender(ZMap &the_map, SDL_Surface *dest, int shift_x = 0, int shift_y = 0);
int Process();
void SetOwner(team_type ... |
4b28038514e361eb728fa681844b0f3197a8a930 | c07410a5b42cbdd6f72c36089c455bdde557bc29 | /include/MS.h | 3f0de2ff092e0bce9007da2888b87e875df4f5f6 | [] | no_license | SmithJrBlaquaLuigi/Corona | 1e10357910be193ce58da52971b76fa792203cd2 | 93fe3509f272c22103841f2e5b172670b339dddb | refs/heads/master | 2020-03-17T07:44:02.148208 | 2018-05-07T16:53:25 | 2018-05-07T16:53:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 553 | h | MS.h | #ifndef MS_H
#define MS_H
#include "JGeometry.h"
#include "types.h"
using namespace JGeometry;
// a bunch of functions starting with "Ms" that I feel are important to document
f32 MsVECMag2(Vec *);
void MsVECNormalize(Vec *, Vec *);
bool MsIsInSight(TVec3<f32> const &, f32, TVec3<f32> const &, f32, f32, f32);
void M... |
6378e9fbea9459a0f1419834fdd1be9add866b75 | 9cbef3a40c13ac2505e875ce3c7654111ec699a0 | /Zombie/Zombie/Surviviour.cpp | 3ac548b9a845f635f9fa2850fae5dccd2e105187 | [] | no_license | SeanBrennan645/Old-Code-Projects | 1d991dc517ef7702d4f847e9a5136a94c616f183 | cf4e8cb3a537490bbf5760980283406024aa62d1 | refs/heads/main | 2023-07-10T01:23:40.092676 | 2021-08-07T13:27:04 | 2021-08-07T13:27:04 | 393,689,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,425 | cpp | Surviviour.cpp | #include "Surviviour.h"
Surviviour::Surviviour()
{
//sets symbol
setName('S');
}
Surviviour::~Surviviour()
{
}
//checks if zombie has killed survivor
void Surviviour::checkIfEaten(int zombieYPos, int zombieXPos)
{
if ((zombieYPos == getYPos()) && (zombieXPos == getXPos()))
{
kill();
}
}
//checks if player ha... |
05c6fb308162fa145b5aa1fa93f103f87cfa07c2 | 6b7d28bb7a3f5bdf40050dfce1f5c49d8560841d | /tests/gen.cpp | d3ae95d412980d0bd2d00a28ceaf90b3e5189db6 | [
"MIT"
] | permissive | Es7evam/Knapsack-AI | e9c5ea3a2f980f1d86ea7c016e24e02c9bf7e1f5 | 6a41ef5d57025bbe1139fce8d2280320b54ed635 | refs/heads/master | 2020-05-04T11:43:59.642055 | 2019-04-22T01:19:29 | 2019-04-22T01:19:29 | 179,114,232 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 635 | cpp | gen.cpp | #include <bits/stdc++.h>
using namespace std;
int main(void){
int n;
double sz;
vector<pair<double, double>> v;
srand(time(NULL));
string filename;
for(int i=8;i<=800;i++){
filename = to_string(i) + "-test.txt";
freopen(filename.c_str(), "w", stdout);
// Gerar tamanho da nro de itens e tamanho da mochila
... |
bb32043dfe14316e14836c17952737cd2e791c04 | d88810476d3ee4d828e68e05d67b5f2e297f799c | /components/pango_python/src/pyinterpreter.cpp | a9d091d6e5d02dcad4cd572164415769bd9f5b65 | [
"MIT"
] | permissive | stevenlovegrove/Pangolin | b84830b8a0d065ff5e76cbc4b8b229d639ab11c8 | d484494645cb7361374ac0ef6b27e9ee6feffbd7 | refs/heads/master | 2023-09-03T03:29:38.010162 | 2023-05-30T17:30:27 | 2023-06-06T20:11:04 | 1,096,480 | 2,151 | 960 | MIT | 2023-06-28T21:39:24 | 2010-11-20T01:50:32 | C++ | UTF-8 | C++ | false | false | 6,854 | cpp | pyinterpreter.cpp | /* This file is part of the Pangolin Project.
* http://github.com/stevenlovegrove/Pangolin
*
* Copyright (c) 2011 Steven Lovegrove
*
* 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 wit... |
fcce856a3d8ef403496c410edb03f3847c67704c | 44e0809e73874e8d40ce5c1bdcbb2d9277bf7fb0 | /dev/isct_orientation3d/OrientImage.h | ea73aef9343919392a0044e70f9f0973f3725425 | [
"MIT"
] | permissive | PaulBautin/spinalcordtoolbox | 05e1e99c6929e45ee134114870e28c5b2e5346b3 | 81ebad505180ab18270eb926cca4a134996f8c45 | refs/heads/master | 2021-03-22T14:38:59.516905 | 2020-03-19T15:32:38 | 2020-03-19T15:32:38 | 248,795,012 | 1 | 0 | MIT | 2020-03-20T15:54:05 | 2020-03-20T15:54:04 | null | UTF-8 | C++ | false | false | 1,810 | h | OrientImage.h | //
// OrientImage.h
// Test
//
// Created by benji_admin on 2013-09-22.
// Copyright (c) 2013 benji_admin. All rights reserved.
//
#ifndef __Test__OrientImage__
#define __Test__OrientImage__
#include <itkImage.h>
#include <itkOrientImageFilter.h>
#include <itkSpatialOrientationAdapter.h>
typedef itk::SpatialOrie... |
3b19fc0af555e56b260f8a4550ded8fca62e894c | e7e3f3d92c7df7613a0854fd9ff8a3177a41accc | /cpp/updater/taskGatherer/strategies/impl/DownloadFilesFirst.h | 69cf7c58e63ebd011d133bbadfe366b8fa3253f4 | [] | no_license | andronov-alexey/code-samples | 1a0e0ab437f7aa44c7967f7266867ad28c98d631 | 1df33b543c7c2ace52f800243d12ecbd06b29bd2 | refs/heads/master | 2022-07-23T15:00:52.297222 | 2022-06-22T09:39:38 | 2022-06-22T09:39:38 | 114,187,322 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 187 | h | DownloadFilesFirst.h | #pragma once
#include "KeepInitialOrdering.h"
class DownloadFilesFirst : public KeepInitialOrdering {
private:
virtual void _reorderTasks(const TaskQueue & _initialTasks) override;
};
|
e547a2c11746b349a2e74e3439430714c1885466 | 85c3e18522388fc6d405d3fe504b787cd97937aa | /src/include/XERenderer/OgreSceneManager.hpp | 82e092ff2a44bd8db1e1f159e895cc8d0c20a989 | [
"MIT"
] | permissive | blockspacer/FrankE | 2d454f77a15f02d8ac681c68730b20d189af131f | 72faca02759b54aaec842831f3c7a051e7cf5335 | refs/heads/master | 2021-05-21T10:01:23.650983 | 2019-11-12T17:44:54 | 2019-11-12T17:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,169 | hpp | OgreSceneManager.hpp | #ifndef __OGRESCENEMANAGER_HPP__
#define __OGRESCENEMANAGER_HPP__
//#include <Ogre/OgreMain/include/OgreMesh.h>
#include <sfml/Config.hpp>
//#include <Ogre/OgreMain/include/OgreVector3.h>
//#include <Ogre/OgreMain/include/OgreQuaternion.h>
#include <Ogre/OgreMain/include/OgreNode.h>
//#include <Ogre/OgreMain/include/O... |
d048c96cf2f6850697f2e1c67b907d0ee10e94f6 | a749064d841e4faf8fed78a0ac30434da7311a06 | /server/Clustering/kmeans.h | 21a68dade5a5d700264b99b3cf2b4939709ab9c1 | [] | no_license | zyavgarov/Clustering | f51d67c8179ca7d96f704da2d6a5fdfb66380804 | 23d32ce543e6a59b831a5e204cff3532a59121b9 | refs/heads/main | 2023-07-11T14:02:26.315535 | 2023-07-10T14:38:36 | 2023-07-10T14:38:36 | 360,912,096 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 386 | h | kmeans.h | // Created by Zyavgarov Rustam
#ifndef INTERFACE4__KMEANS_H_
#define INTERFACE4__KMEANS_H_
#include "../Field.h"
class kmeans {
int clusters_number;
int err_;
static void kmeans_fprintf (vector<int> &nearest_cluster, vector<Point> &cores, int iteration);
public:
explicit kmeans (int clusters_number);
int er... |
205a788b640dd959337b6d9f7edde9d6ef01de31 | cc22ee5af45ac1b04fb16a1fe33cf6fe84e806fe | /2/test1.cpp | ea1720d43d8f7e9b18d307420dd8cbf143005735 | [] | no_license | lzch/cpp_primer | 87f464f70e7a34fd00cc39def4c53480ee0e1a92 | a490d57811d6322e96786c4b4a881cef12cdb7be | refs/heads/master | 2021-01-01T16:24:09.029060 | 2017-07-21T03:49:13 | 2017-07-21T03:49:13 | 97,826,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 179 | cpp | test1.cpp | // show name , email
#include <iostream>
using namespace std;
int main()
{
cout << "Name : lizc" << endl;
cout << "Email: lzch24035@163.com" << endl;
return 0;
}
|
8179e7ef0e5ea9a523a69ea70f5d0d97d548ce62 | a987be7e6b120fe3341601b7d8f3a423fc2b67f9 | /spoj/spPERMUT2.cpp | 39344a63d13635c6c37909a47822ba277ba10a2e | [] | no_license | rushout09/ProblemSolving | 85391b3f3e210c05839453970c222b1dc6904a37 | 001635e2b16e64296be7d2270d37e998c1297529 | refs/heads/master | 2020-07-21T19:03:48.044630 | 2019-10-21T06:19:40 | 2019-10-21T06:19:40 | 206,950,820 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | cpp | spPERMUT2.cpp | #include <iostream>
using namespace std;
int main(){
while(true){
int n;
cin>>n;
if(n==0)
break;
int arr[n];
for(int i=0;i<n;i++)
cin>>arr[i];
int f = 0;
for(int i=0;i<n;i++){
if(arr[arr[i]-1]!=i+1){
f=1;
... |
703b0a76c7cef538a31ab46a58caa29e9adb3332 | 3538be2e6287019ceec0d644f6e5486f5b1cdaf0 | /Volume2/0258/0258.cpp | 3c5a724432d8c543c4cdf4872665856c367067d8 | [] | no_license | ry0u/AOJ | e3b80cffde32918d0cf01ffc5e1ed3a0f24de413 | 62b6c3e816e2b3085de8ff390add987c64e5dcbf | refs/heads/master | 2021-01-13T01:26:53.686196 | 2016-01-27T17:17:57 | 2016-01-27T17:17:57 | 23,257,433 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 552 | cpp | 0258.cpp | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#define REP(i,k,n) for(int i=k;i<n;i++)
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
int main()
{
int n;
while(cin >> n && n)
{
vector<int> v(n+1);
rep(i,n+1) cin >> v[i];
rep(i,n+1)
{
bool flag = true;
vecto... |
bbd58b2e53165695aa845dab1bd8b13b3d076dbc | 8b98203f29315123a1eec780886989ae13182af9 | /xcode_cmd_test1/Lib/Dict.hpp | 02b760eaef03710b136f3968ef436012ba0ac835 | [] | no_license | denghe/69net | 6f9ade30a4bfc796f975daa75069c61cbd3e8c8b | 1ff2b90cd8dc0b7bdf7e360386796a7f9e90f62f | refs/heads/master | 2020-04-05T23:19:40.374220 | 2019-12-28T03:37:59 | 2019-12-28T03:37:59 | 20,693,720 | 7 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 9,379 | hpp | Dict.hpp | #ifndef _DICT_HPP__
#define _DICT_HPP__
namespace xxx
{
template <typename TK, typename TV>
Dict<TK, TV>::Dict( int capacity /*= 64 */ )
{
pool.Init( sizeof( Node ), 4096, capacity );
int prime = GetPrime( capacity );
nodes.Reserve( prime );
buckets.Resize( prime );
}... |
e61865620669efca8e5326e1e39f61eee3250473 | 45bd342b841e9d8b51a6e87ab116cfcc8978a4eb | /Plugins/ObjectDeliverer/Source/ObjectDeliverer/Public/Protocol/ProtocolUdpSocketSender.h | 6b98b945f218a3b0c82d6d3f591a902584dae63f | [
"MIT"
] | permissive | ayumax/ObjectDeliverer | 349ff275a2affeba2182db40288b6ba7ef2c8927 | 6a2571e00e8f0e754e8d295872a1a1d28f4a274d | refs/heads/master | 2023-06-01T06:36:44.412910 | 2023-05-14T13:16:56 | 2023-05-14T13:18:06 | 164,864,304 | 142 | 37 | MIT | 2023-05-14T13:18:07 | 2019-01-09T13:04:48 | C++ | UTF-8 | C++ | false | false | 1,527 | h | ProtocolUdpSocketSender.h | // Copyright 2019 ayumax. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "ProtocolSocketBase.h"
#include "ProtocolUdpSocketSender.generated.h"
UCLASS(BlueprintType, Blueprintable)
class OBJECTDELIVERER_API UProtocolUdpSocketSender : public UProtocolSocketBase
{
GENERATED_BODY()
public:
UProtoc... |
292211fb2b8185744850fa1640a5651c1156b888 | 24c710d3354a613dd2ea95d8f123be4d5d4407c2 | /module_01/ex03/ZombieHorde.cpp | cf5d2a3e6ef5a81694b74bde36bc0db50ff4082e | [] | no_license | jiyoon1156/CPP_Module | 442166e9950c9aeaf38b4690011e71fe855ed34b | e297350c86a38caf0699db9a8bc293564d749c1e | refs/heads/master | 2022-12-08T17:34:16.277373 | 2020-09-05T03:57:08 | 2020-09-05T03:57:08 | 286,356,183 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,342 | cpp | ZombieHorde.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ZombieHorde.cpp :+: :+: :+: ... |
79226acab9f640ec507fc695e87baea150e638a1 | cbc49ab614d9e2da825bbc45f2ae86d2088fce29 | /src/gzplugins/gzjointcmdplugin/gzjntcommandplugin.h | 4fd8dccbf1818b026a079feb1354d339e680536b | [] | no_license | johnmichaloski/gzgwendolen | ef442ac7f0af9507c251fbf39ab1c30a5737ddf5 | 5186694a52ade82db206bcf0b3d25737011f8aee | refs/heads/main | 2023-01-04T07:44:46.821304 | 2020-11-04T17:50:31 | 2020-11-04T17:50:31 | 304,719,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,001 | h | gzjntcommandplugin.h | /*
* DISCLAIMER:
* This software was produced by the National Institute of Standards
* and Technology (NIST), an agency of the U.S. government, and by statute is
* not subject to copyright in the United States. Recipients of this software
* assume all responsibility associated with its operation, modification,
*... |
0d152def6f3aaed1d8ad4c2582e9b304dedd6b88 | 0f2f893893431fb16ab42b19b704200f2aad3176 | /Arrays/Sum of All Elements of an Array/main.cpp | 2e447bec24bb4fda0fba3fc35b6b6158cc0faaae | [] | no_license | Snehanko/Basic-Cpp-Programs | 081e30ba8fc9779ec9d2451fff38c78dbe4f259f | e4b949bdd3bc9e6489baac0bdf43391abf615581 | refs/heads/main | 2023-06-26T07:38:24.894215 | 2021-07-28T15:03:56 | 2021-07-28T15:03:56 | 390,393,840 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 214 | cpp | main.cpp | #include <iostream>
using namespace std;
int main()
{
int arr[]={4,6,8,10,12};
int sum;
for(int i:arr){
sum+=i;
}
cout<<"Sum of All Elements of Array- "<<sum<<endl;
return 0;
}
|
d49e074ab50d530849a8c2893332af9e6c85d14f | 32554d2b2fcd173826f41f5e416e5e4d09566a03 | /src/game/client/components/damageind.cpp | f585e4d3066512753ccf9bf00fcbdefe2bd1c4d8 | [
"LicenseRef-scancode-other-permissive",
"Zlib"
] | permissive | fasterthanlime/teeworlds-ai | 741171227a987977f2a19cbb94d4ae60a6ddff32 | 82d3e372578a676937672fa012b6ab2110325015 | refs/heads/master | 2020-04-10T04:01:56.613815 | 2013-11-27T20:59:23 | 2013-11-27T20:59:23 | 329,879 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,335 | cpp | damageind.cpp | #include <engine/e_client_interface.h>
#include <game/generated/g_protocol.hpp>
#include <game/generated/gc_data.hpp>
#include <game/gamecore.hpp> // get_angle
#include <game/client/ui.hpp>
#include <game/client/render.hpp>
#include "damageind.hpp"
DAMAGEIND::DAMAGEIND()
{
lastupdate = 0;
num_items = 0;
}
DAMAGEIN... |
055c2f2eba57b8bb583088db40171a394208a5d3 | ca1784cefa22c7e8c5d297f397004ee0b0a491c0 | /dex/dxgioffsets.h | 61ec7d5b4cf94db59a02833d483142d953f259ce | [] | no_license | ere336/Overwatchcheat | e3e1f80987fcbcd83777c416a2056553e5e80e6f | 3184cec749652a819f1d0645da1c2afca2d36dba | refs/heads/main | 2023-05-07T05:44:20.080213 | 2021-05-31T03:31:53 | 2021-05-31T03:31:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,121 | h | dxgioffsets.h | #pragma once
#include <Windows.h>
#include <stdint.h>
#include <d3d11.h>
#include <VersionHelpers.h>
#include <dxgi1_2.h>
#include "singleton.h"
#define DUMMY_WNDCLASS "get_addrs_wndclass"
static const IID dxgiFactory2 =
{ 0x50c83a1c, 0xe072, 0x4c48, { 0x87, 0xb0, 0x36, 0x30, 0xfa, 0x36, 0xa6, 0xd0 } };
typedef HRES... |
425ceef60154335f97c600827320f1b2fa212292 | 8f4129710e50599e8dea86c64f5091b8015396f0 | /Strings/S8/Fmt.cpp | 0916ab1d3495dfed126f0d5e6d1c038937c1caa2 | [] | no_license | DarshanDesk/ProgrammingChallenges-CPP | d82f7f068c2b9821755aa5bcbcac359819ebb7d1 | 9857c6a060a13499c156e9c32cad357a85c9f799 | refs/heads/master | 2023-04-01T01:44:18.201719 | 2021-03-24T19:56:59 | 2021-03-24T19:56:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,862 | cpp | Fmt.cpp | //
// Created by Oğuz Kerem Yıldız on 9.01.2021.
//
#include <iostream>
#include <fstream>
using namespace std;
void print(string &added) {
string word = "";
string remaining = "";
int t = 0;
if (added.at(0) == ' ') {
while (added.at(t) == ' ') {
remaining += " ";
t++;
... |
a221db5e18bf33031e3cbb1ed8e900496dbd6c96 | e5b136d24afe47484371ca8087c43f024aa6fdb3 | /garnet/drivers/video/amlogic-decoder/teec_context.h | 96da02aa81d1130e02b462fde6c16c470602d903 | [
"BSD-3-Clause"
] | permissive | deveshd020/fuchsia | 92d5ded7c84a7f9eae092d4c35ef923cd7852bd4 | 810c7b868d2e7b580f5ccbe1cb26e45746ae3ac5 | refs/heads/master | 2021-01-03T09:43:21.757097 | 2020-02-06T01:06:22 | 2020-02-06T01:06:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 615 | h | teec_context.h | // Copyright 2019 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 GARNET_DRIVERS_VIDEO_AMLOGIC_DECODER_TEEC_CONTEXT_H_
#define GARNET_DRIVERS_VIDEO_AMLOGIC_DECODER_TEEC_CONTEXT_H_
#include <lib/zx/channel.h>
#in... |
633e6cdffe22b3a45829bebfe2608f59557b1866 | 1ef7f9ea91eba1d1890a8f438470dbd20e8c9bf5 | /libraries/render-utils/src/BloomEffect.cpp | ddd63f012f933af15c99e1c40cc748f7d8c097b7 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | ZappoMan/hifi | 43861c556be40be04839ae0804fbc8eb560eeb8d | 0a1f07755e71aca5a599c19c570f1d0130e06c7a | refs/heads/master | 2020-04-05T22:53:44.168451 | 2018-04-18T01:02:34 | 2018-04-18T01:02:34 | 9,376,434 | 1 | 0 | null | 2017-02-24T01:36:02 | 2013-04-11T17:41:25 | C++ | UTF-8 | C++ | false | false | 14,226 | cpp | BloomEffect.cpp | //
// BloomEffect.cpp
// render-utils/src/
//
// Created by Olivier Prat on 09/25/17.
// Copyright 2017 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "BloomEffect.h"
#include "gpu/Co... |
e228992e8bcce6798d7d64703b8f0be8321a8ca3 | d440f2be1035076d54d0c83b2419c42c2ad5c5ed | /src/components.cpp | c1a6fcb91fbc0bf9dcba06cfe91974bc63f4b64a | [] | no_license | lasty/ld33_monster | d3caffc964ac0321ed60dc65203791207985de1d | 5390870bee5f1e7f719103815a5f434635a64567 | refs/heads/master | 2016-09-10T01:39:27.549580 | 2015-08-24T01:37:17 | 2015-08-24T01:37:17 | 41,184,516 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,775 | cpp | components.cpp | //
// Created by Tristan on 23/08/2015.
//
#include "components.h"
#include "entity.h"
#include "renderer.h"
#include "world.h"
#include <glm/geometric.hpp>
#include <iostream>
#include <sstream>
////////////////////////////////////////////////////////////////////////////////
Component::Component()
{}
Compon... |
db9a5fc1f13796721f40b4f243f36287d5c3bc37 | a2206795a05877f83ac561e482e7b41772b22da8 | /Source/PV/build/VTK/Wrapping/Python/vtkPlanesPython.cxx | ca1554d8c742808358853475ab4364890f1358d6 | [] | no_license | supreethms1809/mpas-insitu | 5578d465602feb4d6b239a22912c33918c7bb1c3 | 701644bcdae771e6878736cb6f49ccd2eb38b36e | refs/heads/master | 2020-03-25T16:47:29.316814 | 2018-08-08T02:00:13 | 2018-08-08T02:00:13 | 143,947,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,398 | cxx | vtkPlanesPython.cxx | // python wrapper for vtkPlanes
//
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include "vtkPythonArgs.h"
#include "vtkPythonOverload.h"
#include "vtkConfigure.h"
#include <vtksys/ios/sstream>
#include "vtkIndent.h"
#include "vtkPlanes.h"
#if defined(VTK_BUILD_SHARED_LIBS)
# define VTK_PYTHON_EXPORT VTK_ABI_... |
0e4b8a65183eb8c719aefe3535891a3ee1f1c3e7 | 3d3d1316d82c7d9a7ee5a7c56963c5f13215add2 | /lib/io/ValueToString.cpp | fc0baf516aad3972d78258d55fe08acfdf7210fa | [] | no_license | mcopik/profile-tool | bdb97d33fbc2260c5781b95f8219ed03d9c871f5 | 8754ab1f71a57f5421c0514c6bc3e76b69c37d91 | refs/heads/master | 2020-03-11T09:05:01.915139 | 2018-07-26T14:49:50 | 2018-07-26T14:49:50 | 129,901,448 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,582 | cpp | ValueToString.cpp |
#include "io/ValueToString.hpp"
#include "io/SCEVAnalyzer.hpp"
#include "util/util.hpp"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/Value.h"
#include "llvm/IR/Constants.h"
#include "llvm/Analysis/ScalarEvolution.h"
#include <ostream>
llvm::Optional<std::string> ValueToString::toString(const Constant * ... |
b7db4cdd5b4c65b19cee14887f8c90379a1e59b2 | 22564fcbec899e6990a3ffeb7d5bd6570ac1557c | /TCP_网络计算器/cal_protocol.hpp | e4da7968ad1c94a4a53cc839c52b6cefa16020ea | [] | no_license | Mjianjianjiao/Linux | 6703ece57cc8086b8a5ed7e91bfa729738521bea | 9d8928e33d6215a3b2be0d3c3b154f9137ca5a88 | refs/heads/master | 2020-04-02T16:51:07.940731 | 2020-01-22T01:32:47 | 2020-01-22T01:32:47 | 154,631,576 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 161 | hpp | cal_protocol.hpp | #pragma once
#include <iostream>
typedef struct Request{
int x;
int y;
char singel;
}request;
typedef struct Reponse{
int sum;
int status;
}reponse;
|
7eeb434613acd1915e25615a01a1c00cea51de00 | 2eaf198cab76506045fcc4d312abd12afc9fc713 | /src/ripple/server/impl/BasePeer.h | bc5375b87f7f170c0e45119197accb3c52c8b436 | [
"LicenseRef-scancode-free-unknown",
"ISC"
] | permissive | XRPLF/rippled | 26c378a72f65dde2ee9427a8a106505a60a3303d | 300b7e078a4bc511f30b74509d416e5081ec3650 | refs/heads/develop | 2023-08-31T00:07:03.935167 | 2023-08-21T23:22:59 | 2023-08-21T23:23:06 | 2,724,167 | 267 | 126 | ISC | 2023-09-14T21:57:05 | 2011-11-07T04:40:15 | C++ | UTF-8 | C++ | false | false | 3,300 | h | BasePeer.h | //------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... |
938791fe711c9cf32c4390362219b8906c2c5178 | 8893759f93c5dce996f76ed40eaa1d6a435cb4a6 | /Flavio/commit1.cpp | e2a1d366899b0a78157fcecd7479daad9e40ff1c | [] | no_license | UnPComp2013/Grupo4 | dbcc9902b32f611e3795742f6f69f4b38a31913d | 2b42f73259dbb4f431bfb10e84c9205fa8b26828 | refs/heads/master | 2020-06-05T01:03:54.283639 | 2014-11-07T01:56:15 | 2014-11-07T01:56:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 428 | cpp | commit1.cpp | #include <iostream>
using namespace std;
int main()
{
int a,b,c=0;
cout<<"Enter value of 1st variable: ";
cin>>a;
cout<<"Enter value of 2nd variable: ";
cin>>b;
///{ Write your code here
if(a>b)
{
cout<<"Greater value is "<<a;
}
else if(a<b)
{
cout<<"Greater... |
69bc3b43feae61bf91fffc7f9d643caa676f64ab | 6f41a5edf34f357f599c75e9dfab3d629a36490a | /src/10953.cpp | 8ed6a2137bc2154879dbc33d0f32b47604cd5423 | [] | no_license | beotborry/BaekjoonPS | 3ca78e896f80fe00d36b30b50cc79f5b3cb44555 | 6a114222949419ca96f2038f2ec21fdfe41e7912 | refs/heads/master | 2020-12-13T20:16:56.661270 | 2020-01-18T04:13:23 | 2020-01-18T04:13:23 | 234,521,444 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | cpp | 10953.cpp | #include <iostream>
#include <cstring>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int T; cin >> T;
while(T--) {
string order; cin >> order;
int a, b;
a = order[0] - '0';
b = order[2] - '0';
cout << a + b << "\n";
}
} |
bdc9c4c15624e3817c3171cb902ed1f9f98233ca | ff9a1c835af0d8f7263bec5a29d49e8e67182793 | /原有论文/my own/active camera v1.0/viewbutton/MainFrm.h | 56e223e493d7f6500a9eb6f9bdd0bec1ac89e921 | [] | no_license | xhyangxianjun/autotracking | 0a2f598dbdaacfc58a6743894fbfb6c8fd67ed64 | 5b7d20f9086e73c78457338ef0dfb22c8c9a55df | refs/heads/master | 2022-02-12T14:46:17.066264 | 2018-10-01T23:57:31 | 2018-10-01T23:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,431 | h | MainFrm.h | // MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__501697B9_F75E_49A2_8CF1_6AC18015DADF__INCLUDED_)
#define AFX_MAINFRM_H__501697B9_F75E_49A2_8CF1_6AC18015DADF__INCLUDED_
#if _MSC_VER > 1000
#pragma once... |
b2799ba6deb9703920dff358f04ffd466f40509b | 435a32fff97a829d82e3cdafa13604929a8aa33c | /Tests/voxel/PolyVoxVolume.cpp | bb45eade87a095db04d5e6325f5e334c43774590 | [
"BSD-2-Clause-Views"
] | permissive | DarkMagicCK/UKN | b2d264183a5788ef8a01d29dc34a9ec37c6863fc | 2e48607d7bb2a660371296223ea6a48b8a328af1 | refs/heads/master | 2021-01-23T21:01:43.595581 | 2013-08-27T19:19:19 | 2013-08-27T19:19:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,355 | cpp | PolyVoxVolume.cpp | #include "PolyVoxVolume.h"
#undef MessageBox
#include "mist/SysUtil.h"
#include "PolyVoxCore/CubicSurfaceExtractorWithNormals.h"
#include "PolyVoxCore/MarchingCubesSurfaceExtractor.h"
#include "PolyVoxCore/SurfaceMesh.h"
#include "PolyVoxCore/SimpleVolume.h"
namespace ukn {
namespace voxel {
us... |
d372259b6392c0d0b78c2bf61eb55dc54a532681 | 9134496e7db9ed0f132fe446d092cbeabde3d251 | /LabWork_5/LabWork_5.cpp | 5272210494e56c066c0b90e601382668aac258cc | [] | no_license | vitoss-ux/ITMO.Cpp | b692ded539a02d15d0e98bdad82d0816e2cf11fc | 62bd28dfcdb8236765afefec728acebbc0084133 | refs/heads/main | 2023-07-01T22:47:29.417651 | 2021-08-23T19:39:22 | 2021-08-23T19:39:22 | 385,296,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,458 | cpp | LabWork_5.cpp | // LabWork_5.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
//
#include <iostream>
#include <cmath>
#include <Windows.h>
using namespace std;
// Передача массива в функцию
void ArrayData(int, int[]);
void ArraySorter(int, int[]);
int main()
{
SetConsoleOutputCP(... |
5d6ea5e2950d0c8f463a76a08176129466781549 | a98d5ba1cde141fd4148146137f465d3b924741c | /Disassembler.hpp | c6e560cda6ee6de9ea3caef9737c79f89972ed4c | [
"MIT"
] | permissive | jonesdy/Chip8-Disassembler | 3beac039c556d089f1753ac848df85d71be6201d | 08fb80fc71f7a541dd4e3d0a41d0fe93710c3caf | refs/heads/master | 2016-08-06T20:59:30.600607 | 2014-03-01T17:42:05 | 2014-03-01T17:42:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | hpp | Disassembler.hpp | #ifndef DISASSEMBLER_HPP
#define DISASSEMBLER_HPP
#include <fstream>
#include <iostream>
#include <string>
class Disassembler
{
public:
Disassembler();
void disassemble(const std::string &fileName);
~Disassembler();
static const int PROGRAM_START = 512;
private:
void loadProgram(const std::string &file... |
ad1ddbfae542fdf168484ee46a45528996c3956f | d5bd083dbcacce8cf62ebbd73c77c14c8247e057 | /system/netd/server/StrictController.cpp | a04124df7c6f92929d1caaa404b765b9dd877a90 | [] | no_license | RetronixTechInc/android-retronix | ab0e10840dab5dc7b0879737953ebf2e1916f2b0 | cd7d794dea51c3b287da0d35ddb18c1bdef00372 | refs/heads/RTX_NXP_Android601 | 2021-11-16T03:58:58.169998 | 2021-11-15T01:51:02 | 2021-11-15T01:51:02 | 198,991,737 | 4 | 5 | null | 2020-03-08T23:21:29 | 2019-07-26T09:49:01 | Java | UTF-8 | C++ | false | false | 7,951 | cpp | StrictController.cpp | /*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 app... |
ea0373896700e99c1937a0f888d152eaef5b179b | ad74f7a42e8dec14ec7576252fcbc3fc46679f27 | /AresSupernode/AresSNClientConnection.cpp | 79f83dc8d3a42a92f50680e1fd9842183fd766bd | [] | no_license | radtek/TrapperKeeper | 56fed7afa259aee20d6d81e71e19786f2f0d9418 | 63f87606ae02e7c29608fedfdf8b7e65339b8e9a | refs/heads/master | 2020-05-29T16:49:29.708375 | 2013-05-15T08:33:23 | 2013-05-15T08:33:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,690 | cpp | AresSNClientConnection.cpp | #include "StdAfx.h"
#include "AresSNClientConnection.h"
#include "AresSupernodeSystem.h"
#include "..\AresProtector\AresPacket.h"
#include "..\AresProtector\AresHost.h"
#include "..\AresProtector\AresUtilityClass.h"
#include "..\tkcom\TinySQL.h"
#include "AresUserName.h"
//#include "AresConstants.h"
//#include <sha.h>
... |
926343bb8d74e521da4c555f6cef28889c3942c0 | 07d44374267af466946230cc2ed1fed902164075 | /PandaSQL/Optimizer/Join/JoinPath.cpp | c048d8648a9f44e9394bf8f5cb9a32dc93629d09 | [] | no_license | b-xiang/PandaSQL | 24287304997333112177c8c492e2dd35dc901376 | ffb112066325ff9b64325ff8ca17e0234eca3891 | refs/heads/master | 2020-05-30T16:36:20.778321 | 2013-03-15T08:35:42 | 2013-03-15T08:35:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 123 | cpp | JoinPath.cpp | #include "stdafx.h"
#include "Optimizer/Join/JoinPath.h"
#include "Node/RelNode.h"
namespace PandaSQL
{
} // PandaSQL
|
1e660e6d578a1afb2940f63b0bd57ca22677fac6 | 647cadc35d2a688319ed957bd0c832884c0df514 | /Project.cpp | 919ed70e3bb360dd02c15f7dade56c510c604601 | [] | no_license | Sara-Rahman/admin | d7a3d3584d9468376765dc59f7054a3445bb0b98 | f6897f06a0d95eaf44f57188294b82d801fb8de5 | refs/heads/master | 2022-11-25T15:11:43.073426 | 2020-07-30T06:42:59 | 2020-07-30T06:42:59 | 283,693,669 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,691 | cpp | Project.cpp | #include<iostream>
#include<fstream>
#include<string.h>
#include<conio.h>
#include<stdlib.h>
using namespace std;
class sara
{
private :
char serial[100],name_h[100],name_w[100],age_h[5],age_w[5],marriage[10],div_date[10],reason[50],child[10],child_stay[10];
double percent,stock;
public :
sara()
{
... |
d79a619d5498216d64f299a9cef4fa52ec52c71b | 2b1b459706bbac83dad951426927b5798e1786fc | /zircon/vdso/goldens/public/internal/testonly-cdecls.inc | 5cf415b6d42b11c9e37459efae6a1453f4b485e5 | [
"BSD-3-Clause",
"MIT",
"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,740 | inc | testonly-cdecls.inc | // Copyright 2019 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.
// WARNING: THIS FILE IS MACHINE GENERATED BY //tools/kazoo. DO NOT EDIT.
#ifndef _ZX_SYSCALL_DECL
#error "<zircon/testonly-syscalls.h> is the public API ... |
d0e5ce0a93bd36060feddc24f59825f599618c8a | db29182d389d8e85c48765788efe8fdc775086dc | /status_writer.h | 8d482f3573675add15c07819b46fe5e5b525e892 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | flightaware/beast-splitter | eb7ffd925094e2e10525141ddf8ac2e227261666 | 05428fce609e3e48b5308439eb94614baf538003 | refs/heads/master | 2022-12-22T12:35:05.795236 | 2022-12-14T03:00:34 | 2022-12-14T03:00:34 | 59,662,036 | 27 | 9 | BSD-2-Clause | 2022-10-06T07:43:29 | 2016-05-25T12:39:02 | C++ | UTF-8 | C++ | false | false | 3,103 | h | status_writer.h | // -*- c++ -*-
// Copyright (c) 2015-2016, FlightAware LLC.
// Copyright (c) 2015, Oliver Jowett <oliver@mutability.co.uk>
// 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 ... |
0eb1dc7cfe0536980c92e4e4824c06f15cdba590 | 184bcf7925e6718b3021946581576f8cae80526b | /Game/2016-EM/C.cpp | e94edcf380ac6055fe8a674cff9c5c52faa7903f | [] | no_license | iPhreetom/ACM | a99be74de61df37c427ffb685b375febad74ed9a | f3e639172be326846fe1f70437dcf98c90241aa0 | refs/heads/master | 2021-06-14T08:11:24.003465 | 2019-09-13T22:54:34 | 2019-09-13T22:54:34 | 142,748,718 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 892 | cpp | C.cpp | #include <bits/stdc++.h>
#define int long long
#define double long double
#define endl '\n'
using namespace std;
struct node{
double l,r,v;
node(){};
node(double l,double r,double v)
{
this->v = v;
this->l = l;
this->r = r;
};
};
vector<node> a;
double x,y;
bool check(double v){
double time = 0;
for(int... |
a404146757d558cc35dd51fbf6c346c9562d3ef1 | 9c172493199ba987acfa51c1b323be00efb852cd | /Medium/103.BinaryTreeZigzagLevelOrderTraversal/bfs.cpp | b5fbacccbb7a0f284a760c02f200875e54033a30 | [] | no_license | FriedCosey/LeetCode | 92a1084eeb8937d498411105ef6909ca4ca0d783 | 71a86e9bde3e3c9b1159085a773d370f3a75278c | refs/heads/master | 2021-07-11T08:03:20.516199 | 2019-01-10T01:26:40 | 2019-01-10T01:26:40 | 138,459,041 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 999 | cpp | bfs.cpp | class Solution {
public:
vector<vector<int>> zigzagLevelOrder(TreeNode* root) {
vector<vector<int>> res;
if(root == NULL)
return res;
queue<TreeNode*> bfs;
bfs.push(root);
int right = 1;
vector<int> tmp;
vector<T... |
ba72ad93f8bb185195c9eea25eb2eaaa6a147f34 | 41f313194e8fabd3bafc0163690317e4406e9c63 | /Checkout/CheckoutTest.cpp | 599962712acca7d9ffa0491c01394434925fd073 | [] | no_license | chris12/CheckoutTotalKata | c94bcbbfebb77ac423fdbb39eb0fbf6b547d9603 | fc55a8147126d887a79833b032925de24007f587 | refs/heads/master | 2020-05-03T00:11:04.130629 | 2019-04-03T23:35:23 | 2019-04-03T23:35:23 | 178,302,653 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,741 | cpp | CheckoutTest.cpp | #include "Checkout.h"
#include "gtest\gtest.h"
void SetUpTestCase() {
Checkout checkout;
}
TEST(CheckoutTest, WhenGetPriceOfItemIsCalledForACanOfSoupItReturnsTheRegularPrice) {
Checkout checkout;
EXPECT_DOUBLE_EQ(1.89, checkout.GetPriceOfItem("soup"));
}
TEST(CheckoutTest, WhenGetPriceOfItemIsCalledForAPoundOfGro... |
28985481ad362deea338c074ccfc864812a74245 | 8e242d624781b66c3dece9826c9e6bd0b358b59c | /DistillerDriver/DistillerDriver/DistillerDriverDlg.h | 7874fa02fba27b1d53520dc47171bf9724091e53 | [] | no_license | asianhawk/Legacy | 3b46d89dc0391e7bdb47d17af5142e63b9cd56a4 | ac0e7cbdfade4fa7360e61597a9af49520ba8867 | refs/heads/master | 2020-07-23T09:22:15.206570 | 2015-01-20T17:32:51 | 2015-01-20T17:32:51 | 207,512,160 | 1 | 0 | null | 2019-09-10T09:01:39 | 2019-09-10T09:01:38 | null | UTF-8 | C++ | false | false | 958 | h | DistillerDriverDlg.h |
// DistillerDriverDlg.h : header file
//
#pragma once
// CDistillerDriverDlg dialog
class CDistillerDriverDlg : public CDialogEx
{
// Construction
public:
CDistillerDriverDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_DISTILLERDRIVER_DIALOG };
protected:
virtual void DoData... |
b60478b0e8a404d970837c4d343f9a66905ef599 | 541307260584040586970a43f024122bc9975849 | /Integer.cpp | d66b8490a017b1d76be8049e9e85c3c0b55bf9b8 | [] | no_license | HIRURGOSIN/- | e58ac72e47dae8e48adba34f60613f243c5d5650 | 89d0e625bf1e394bc994154d256de0cdffba88a7 | refs/heads/master | 2022-09-12T03:36:46.195571 | 2020-05-31T20:42:15 | 2020-05-31T20:42:15 | 268,354,152 | 0 | 0 | null | 2020-05-31T20:10:47 | 2020-05-31T19:59:25 | C++ | UTF-8 | C++ | false | false | 1,541 | cpp | Integer.cpp | #pragma once
#include "Integer.h"
using namespace std;
Integer::Integer()
{
core = 0;
}
Integer::~Integer()
{
core = 0;
}
Integer& Integer::operator=(int val)
{
core = val;
return *this;
}
Integer& Integer::operator=(char* str)
{
core = atoi(str);
return *this;
}
const Integer operator++(Inte... |
e3f7cf335047cdfa26267655ce1cc64b4d25f235 | 8d0a8be1992e6c3faf67f6da2f10e4d4918be210 | /src/core/dev_tools_http_handler_delegate_qt.cpp | 7fa525dc1dd79a68adee36f995aa3be95d6f2266 | [] | no_license | Metrological/qtwebengine | e31f7798585188580601ce35882ffe9046f19bb4 | 7bb72a0b500f9ea7d8b3b37adc24a2700a309d2d | refs/heads/master | 2021-01-24T22:26:39.095136 | 2014-04-28T23:16:21 | 2014-04-28T23:16:21 | 18,896,266 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,500 | cpp | dev_tools_http_handler_delegate_qt.cpp | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtWebEngine module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Lice... |
48c25af347244191e92101d0c7d72864be610709 | 8c6d46df7efb06de79a4bea15b031db426398465 | /MetaPresent.h | 58d09dc1d0243a1a50b6972e7589f2ab3d498fcd | [] | no_license | dima42/packing-santas-sleigh | 08c4654704432a778d20ff53b1f6dd2c8b579959 | ce63978324d128cc34f764bccd962833b8629c2e | refs/heads/master | 2020-06-08T16:07:04.746672 | 2014-06-30T18:24:01 | 2014-06-30T18:24:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,068 | h | MetaPresent.h | #pragma once
#include <algorithm>
#include <array>
#include <cmath>
#include <fstream>
#include <map>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#include <iostream>
//still debugging/tuning metapresents
typedef std::vector<int> Rotation;
/* a rotation is encoded in a p... |
e89c28292ac75d5b4a8b0a8c31fc93bc5d65e45c | cd484c21d9d412d81ee3039072365fbb32947fce | /WBoard/Source/customWidgets/WBGraphicsItemAction.h | ee5bc3a3043cbf8324e97c0f75cd805d175c1658 | [] | no_license | drivestudy/WBoard | 8c97fc4f01f58540718cd2c082562f9eab5761de | 18959203a234944fb402b444462db76c6dd5b3c6 | refs/heads/main | 2023-08-01T01:41:04.303780 | 2021-09-09T04:56:46 | 2021-09-09T04:56:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,059 | h | WBGraphicsItemAction.h | #ifndef WBGRAPHICSITEMSACTIONS_H
#define WBGRAPHICSITEMSACTIONS_H
#include <QObject>
#include <QtMultimedia>
enum eWBGraphicsItemMovePageAction {
eMoveToFirstPage = 0,
eMoveToLastPage,
eMoveToPreviousPage,
eMoveToNextPage,
eMoveToPage
};
enum eWBGraphicsItemLinkType
{
eLinkToAudio = 0,
eL... |
e1d626a6bf9cc08aff33c3fc68541c7e77a384a9 | ae9b06486266e4c68990ad399be35062d3ea7837 | /fubble/signaling/server/application.hpp | 3c6bb2e10f76bcc3b94d0ee966e1b14e60e489e9 | [] | no_license | lineCode/fubble | ffd262109009da6336b149b41b551f302f68d1aa | 2b0bddb65b881ab4a0a7ed629fb08ccc7774da82 | refs/heads/master | 2023-03-24T11:07:22.817007 | 2021-03-25T10:09:18 | 2021-03-25T10:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 686 | hpp | application.hpp | #ifndef UUID_307C4AF5_CA51_47FF_9618_3CAF0AC98FAE
#define UUID_307C4AF5_CA51_47FF_9618_3CAF0AC98FAE
#include <memory>
namespace boost::asio {
class io_context;
} // namespace boost::asio
namespace signaling {
class registration_handler;
}
namespace signaling::server {
class server;
class application {
public:
virtu... |
eceae33571ff45621e8163c6b8b73d987686c839 | 3ac8c943b13d943fbd3b92787e40aa5519460a32 | /Source/Multitasking/Scheduler.cpp | 6a5713b10562bad13effc4f47925fb054d3fe1b9 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | locosoft1986/Microkernel-1 | 8069bd2be390d6d8ad10f73e8a944112a764a401 | c9dfeec4581d4dd8b1e9020adb3778ad78b3e525 | refs/heads/master | 2021-01-24T04:54:08.589308 | 2010-09-23T19:38:01 | 2010-09-23T19:38:01 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 12,493 | cpp | Scheduler.cpp | #include <Multitasking/Scheduler.h>
#include <LinkedList.h>
#include <Boot/DescriptorTables.h>
#include <MemoryAllocation/Physical.h>
List<Scheduler *> *Scheduler::schedulers = 0;
Mutex *Scheduler::schedulerListMutex = 0;
void Scheduler::setKernelStack(unsigned int esp)
{
DescriptorTables::InstallTSS(esp, getCPUIden... |
90ba82970d3c6cfa75f2f5aa17243393148801da | e313d9c25ac8f6982aa99c80e68abae981e7deb2 | /Arrays/LeftRotation.cpp | d7808c50126c75c9362c8b4158188fc85b0cca38 | [] | no_license | jfc4050/HRDataStructures | 623e52748bfbcadadb3351a25b02b1dcf217f286 | b294b4d02cf27ba1782544b75550b5ce6ad691bd | refs/heads/master | 2021-06-26T13:03:50.892462 | 2017-09-13T02:19:05 | 2017-09-13T02:19:05 | 103,315,759 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 974 | cpp | LeftRotation.cpp | //
// Created by Justin Chiu on 9/12/17.
//
#include <vector>
#include <iostream>
#include <deque>
using namespace std;
vector <int> leftRotation(vector <int> &arr, int leftRot) {
//declare and populate deque
deque<int> deq;
for (int i : arr) {
deq.push_back(i);
}
//perform specified nu... |
168ab562c3395cc35874ce65699711df54c76198 | b9efb7d682f6ee7d4ed980ed68b5b2cceed7df02 | /Chapter 1 (Beginner)/combo.cc | 5ae56c81055e82a3261bc5d0ee07009fdce6b81e | [] | no_license | smoteval/Contest-Problems-USACO- | a33e8f59a6b8e709603e602be2787de9deb7573a | 0418add4b234679b87be0e8952426180e0c3cb9c | refs/heads/master | 2021-01-10T03:33:00.858530 | 2015-05-26T05:16:54 | 2015-05-26T05:16:54 | 36,273,568 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,464 | cc | combo.cc | /*
ID: smoteva1
LANG: C++
TASK: combo
*/
#include <iostream>
#include <map>
#include <fstream>
#include <cmath>
#include <algorithm>
using namespace std;
bool within(int arr[],int a,int b, int c, int N) {
bool val = true;
if( abs(arr[0]-a) > 2 ) {
if(arr[0] < a) {
int l = arr[0] + N;
if( abs(l - a) > 2 ) {
... |
560ee195b101182412e74f49e3636a173528f540 | a33b56ecce38e11da5ed446a4a7bdfd83b0f3ab1 | /class.h | 414159a2e9258d98dbb863dd7482086753a973dc | [] | no_license | albertpratomo/InfiniteEscape | bfa2cbb8f1b1737a3fc1b2df209a722a0301565b | 219f914aea06b7a7a4e5b7bedf6a3698c3b05c83 | refs/heads/master | 2021-07-08T17:12:53.102733 | 2017-10-02T18:15:47 | 2017-10-02T18:15:47 | 105,565,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33,149 | h | class.h | #include <SFML/Graphics.hpp>
#include <iostream>
#include <string>
#include <Windows.h>
#include <conio.h>
#include <string.h>
#include <time.h>
#include <math.h>
class CPosition{
protected:
int m_x;
int m_y;
public:
int GetX(){return m_x;}
int GetY(){return m_y;}
void SetY(int n){m_y = n;}
vo... |
6bb847f5c90e3c707d3ac1082c1aadf5433bcd0e | 17d3f222917ce864a77cf9a65ebaf69fb3076852 | /MassSim/Source.cpp | b0d44ec2f8da8137da696aed41ea8fd4486ade3d | [] | no_license | Satori32/MassSimulator | 534f0ce4630b186370c30198b29822f6ac3371cb | 5781d2fbc4bd352987a16f028c25644ac4524b9d | refs/heads/master | 2020-08-27T06:27:08.715362 | 2019-10-24T10:09:33 | 2019-10-24T10:09:33 | 217,269,719 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,162 | cpp | Source.cpp | #include <iostream>
#include <cstdint>
#include <random>
#include "MassSim.h"
#include <conio.h>
//https://ja.wikipedia.org/wiki/ライフゲーム
//チュウリング完全デス!
int GetKey() {
int k = 0;
if (_kbhit()) {
k = _getch();
}
return k;
}
namespace Cell {
enum {
//Zero=0,
Empty,
Die,
Live,
Full,
};
}
template<clas... |
55fe4c208edae145e1ab027639702ba36bba0c8a | 28dba754ddf8211d754dd4a6b0704bbedb2bd373 | /AtCoder/AtCoder Beginner Contest 280/D.cpp | 759d1571cc0c75534c585a66f7a8806d31667a71 | [] | no_license | zjsxzy/algo | 599354679bd72ef20c724bb50b42fce65ceab76f | a84494969952f981bfdc38003f7269e5c80a142e | refs/heads/master | 2023-08-31T17:00:53.393421 | 2023-08-19T14:20:31 | 2023-08-19T14:20:31 | 10,140,040 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 741 | cpp | D.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
LL calc(LL x, LL cnt) {
LL i = 0;
while (cnt > 0) {
i += x;
LL y = i;
while (y % x == 0) {
y /= x;
cnt--;
}
}
return i;
}
void solve() {
LL K;
cin >> K;
LL res = 1;
... |
ad71ce13525795be9c3cd7406008d8b3c78e444e | a97a07b3a33e7a4adccee497b7a60f0a62299009 | /EXP0505.1/EXP0505.1/EXP0505.1View.cpp | 470821faf2720ac38b65c04f7fe31053c6f665b1 | [] | no_license | jiangliman/JLM | 9330bb5e6eece3f1927c779b5c886a0ca45be8ed | 2c74369a396a5c5ceb908c14734246dbf6cd5f1c | refs/heads/master | 2021-03-26T08:35:44.973069 | 2020-06-24T13:24:56 | 2020-06-24T13:24:56 | 247,681,314 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,703 | cpp | EXP0505.1View.cpp |
// EXP0505.1View.cpp : CEXP05051View 类的实现
//
#include "stdafx.h"
// SHARED_HANDLERS 可以在实现预览、缩略图和搜索筛选器句柄的
// ATL 项目中进行定义,并允许与该项目共享文档代码。
#ifndef SHARED_HANDLERS
#include "EXP0505.1.h"
#endif
#include "EXP0505.1Set.h"
#include "EXP0505.1Doc.h"
#include "EXP0505.1View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// ... |
f0d7bdafc1dfa13be8a38a19cb8f9b308a03b8be | 4dea6aae9b107b7fd812d3b4422741f1c0744ad2 | /Taller1_laberinto/ListaEnlazada.h | 86e27c21bce2381e0b6b08f376c6a6309058d623 | [] | no_license | jpstorm21/Proyectos-java-cplusplus | 7b92747bc03595e5fd2ae0d7c92ccd774488e8ee | dd8ff3e2ba0628791c94725df034f1f8409b4ead | refs/heads/master | 2020-12-13T11:36:01.129236 | 2020-01-16T20:05:40 | 2020-01-16T20:05:40 | 234,401,774 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 779 | h | ListaEnlazada.h | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: ListaEnlazada.h
* Author: Juan Pablo Martinez
*
* Created on 17 de abril de 2019, 0:26
*/
#ifndef LISTAENLAZADA_H
... |
f8fb9420561028703b9adeba28e538c16c94f715 | 5118e5c4260f988cf0a78b83ba3dc48e842408e2 | /lib/chessAI/HumanChessPlayer.h | d1e206151e2cd9d15a0b3ca44a503e11eeb705cd | [] | no_license | Teezious/chessAI | 94776374bc753ab100e908fd373986f4ad2c609b | 5fea3e56219c5335a14478ed22c25f4895b0299d | refs/heads/master | 2023-08-14T12:32:01.846590 | 2021-07-05T19:37:24 | 2021-07-05T19:37:24 | 353,499,062 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 399 | h | HumanChessPlayer.h | #ifndef CHESSAI_HUMANCHESSPLAYER_H
#define CHESSAI_HUMANCHESSPLAYER_H
#include "AbstractChessPlayer.h"
#include "thc.h"
#include <iostream>
class HumanChessPlayer final : public AbstractChessPlayer
{
public:
HumanChessPlayer(bool isWhite) : AbstractChessPlayer(isWhite){};
std::string chooseMove(thc::ChessRu... |
08f5505bc6d0b4a84e7c948705f6d0f11a9b6e19 | 25ab7b537e5e6e13866461956f50d55555157dd3 | /Problem Solving/Algorithms/Strings/Anagram.cpp | 5a16927d593005399421a641f03413aff1ceba61 | [] | no_license | weirdrag08/HackerRank | 23522ddd837a060d46e57cfd7fcca9c9fab220c8 | 8d510de21980eb00cb458f0cd782dbabe4b96010 | refs/heads/master | 2023-07-03T19:52:51.361244 | 2021-08-14T17:02:29 | 2021-08-14T17:02:29 | 356,377,172 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,319 | cpp | Anagram.cpp | #include<iostream>
#include<unordered_map>
#include<list>
#include<vector>
#include<stack>
#include<queue>
#include<algorithm>
#include<climits>
#include<string>
#include<utility>
using namespace std;
#define mp make_pair
#define INFI 10e8
#define INF 10e7
typedef pair<int, int> pi;
typedef vector<in... |
b55bcf0f2a029e7c5f1083e733b03f0d37001d95 | 82dc3cc4c97c05e384812cc9aa07938e2dbfe24b | /development/src/elements/meshfree_grad_plast/mfgp_mat_interfaces/MFGPSolidMatListT.cpp | 6233ad43833963c54258c9abfb7573af83b00c38 | [
"BSD-3-Clause"
] | permissive | samanseifi/Tahoe | ab40da0f8d952491943924034fa73ee5ecb2fecd | 542de50ba43645f19ce4b106ac8118c4333a3f25 | refs/heads/master | 2020-04-05T20:24:36.487197 | 2017-12-02T17:09:11 | 2017-12-02T17:24:23 | 38,074,546 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 750 | cpp | MFGPSolidMatListT.cpp | /* $Id: MFGPSolidMatListT.cpp,v 1.1 2005/04/26 22:27:01 kyonten Exp $ */
#include "MFGPSolidMatListT.h"
#ifdef __DEVELOPMENT__
#include "DevelopmentMaterialsConfig.h"
#include "DevelopmentElementsConfig.h"
#endif
#include "MFGPMaterialT.h"
#include "MFGPMatSupportT.h"
using namespace Tahoe;
/* constructors */
MFGPS... |
1b2f5c4eb1337f18efb954777913a881f7394acb | e9c02bb0df7ad3a928cf7c97b8294451eaa8dbc8 | /graph-source-code/508-D/9606060.cpp | 27f24f1af0f975cbfeda2343237f746f54c002c7 | [
"MIT"
] | permissive | AmrARaouf/algorithm-detection | b157a534545fa8920bbe94e7307d4b937a74aa60 | 59f3028d2298804870b32729415d71eec6116557 | refs/heads/master | 2021-01-13T14:37:04.074339 | 2015-12-06T21:14:31 | 2015-12-06T21:14:31 | 45,905,817 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,778 | cpp | 9606060.cpp | //Language: GNU C++
#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <cstring>
#include <fstream>
#include <ctime>
#define LL long long
#define ULL unsigned long long
#define FOR(i,a,b) ... |
d29f3e8e5749003f218e3130d933656ceada7716 | e70fa41c9d64a6e359dac1a02141ad97006e9ad6 | /features/mahjong/Tile.cpp | c79757b8f89a2d9cf516682648bb2f88dfdd30e2 | [] | no_license | OGStudio/ogs-mahjong-components | 5c793512fe55a2be5496c92798ece0f623fe8538 | db6891fc97cb66c9854c911886dcce3cc4e38cb0 | refs/heads/master | 2020-03-24T10:57:28.298641 | 2018-10-23T07:56:09 | 2018-10-23T07:56:09 | 142,672,012 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 196 | cpp | Tile.cpp | FEATURE mahjong.h/Impl
struct Tile
{
Tile() : matchId(0) { }
// NOTE Try not to use id since it's an external representation.
//int id;
int matchId;
TilePosition position;
};
|
b8de382085c18705855c806446406406f9d674e7 | 2c85ecc5079da4dc286ee3e8440e7e59efe4ef78 | /fof.cpp | 91cd3ea90213b037ee6a3ae870b4680b662b0778 | [] | no_license | deerishi/algorithms | 7f744644e47203d792216f3287d73167baeae858 | 8f113bb50cb0313a81835320edd5c9ef523dd7af | refs/heads/master | 2021-07-18T23:29:35.088631 | 2017-10-26T23:32:54 | 2017-10-26T23:32:54 | 29,521,515 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,063 | cpp | fof.cpp | #include "bits/stdc++.h"
using namespace std;
#define dgetc() getc_unlocked(stdin);
#define dputc(ch) putc_unlocked(ch,stdout);
#define blank putc_unlocked('\n',stdout);
typedef long long int ll;
char TEMP[1<<10],CH;
int getInt()
{
CH=getc_unlocked(stdin);
while(CH<'-') CH=dgetc();
int n=0,sign=1;
if(CH=='-')
{... |
e79729b7af1859b6c91a5beba8efd92eb45bbf60 | 5412ba2aa236587748bd6839379392b2380c1013 | /Plugins/Wwise/Intermediate/Build/Win64/UE4Editor/Inc/AkAudio/AkWwiseTree.gen.cpp | 0b5f8c152b24053ccbd39fc6084e77ddb0724233 | [] | no_license | Phodonut/FinalDemo | 0e47d49bc4e84e2141e70423c7d3effb54a50115 | 63e21e3634fba43edd0a337058681b4caac9ed1b | refs/heads/master | 2020-03-20T08:32:07.218750 | 2018-06-14T05:38:48 | 2018-06-14T05:38:48 | 137,311,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,574 | cpp | AkWwiseTree.gen.cpp | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==============================================================... |
95cf01d5eb599619575526017e2a742e5f0f38a8 | b78246c3257dfd3d8df620062a2e12234e2189d0 | /src/h264_bitstream_parser.h | 0f36740e832dc248ef739759dc9da265a6f692f1 | [
"BSD-3-Clause"
] | permissive | kevleyski/h264nal | 0a465f08d9e4533bd0de9f4c5bbef29d0a689db6 | c38d1a5588c96fb8a3bc72ba525fb68e863c3dd8 | refs/heads/master | 2023-08-28T16:15:46.417258 | 2021-10-08T23:42:44 | 2021-10-08T23:42:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,174 | h | h264_bitstream_parser.h | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
#pragma once
#include <stdio.h>
#include <memory>
#include <vector>
#include "h264_bitstream_parser_state.h"
#include "h264_nal_unit_parser.h"
#include "rtc_base/bit_buffer.h"
namespace h264nal {
// A class for parsing out an H264 Bitstream.
class H264Bi... |
0f440eb6d80aeee63257b70bb4d0796dc9f76c2b | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5706278382862336_1/C++/Boping/A.cpp | cdf2f43fbad69bb2a086cc4074fb6de0db6a3654 | [] | 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 | 551 | cpp | A.cpp | #include <cstdio>
int main() {
FILE * fin = fopen("A.in", "r"), * fout = fopen("A.out", "w");
int T, t, g;
long long P, Q, p, q, r;
fscanf(fin, "%d", &T);
for (t = 1; t <= T; ++t) {
fscanf(fin, "%lld/%lld", &P, &Q);
p = P;
q = Q;
while (r = q % p) {
q = p;
p = r;
}
P /= p;
Q /=... |
4f33c0a68b7fbae92932de20045f7ab4f03b0062 | a7109719291d3fb1e3dabfed9405d2b340ad8a89 | /Gandhi-Prototype/lib/cBullet.cpp | 711b37caa25ca5e59efd43e5eb54de23718dd6dc | [] | no_license | edufg88/gandhi-prototype | 0ea3c6a7bbe72b6d382fa76f23c40b4a0280c666 | 947f2c6d8a63421664eb5018d5d01b8da71f46a2 | refs/heads/master | 2021-01-01T17:32:40.791045 | 2011-12-19T20:10:34 | 2011-12-19T20:10:34 | 32,288,341 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,207 | cpp | cBullet.cpp | #include "cBullet.h"
#include "cGame.h"
#define _USE_MATH_DEFINES
#include <math.h>
cBullet::cBullet( int type, int x, int y, int vx, int vy )
{
this->type = type;
this->x = x;
this->y = y;
this->vx = vx;
this->vy = vy;
Scene = cGame::GetInstance()->GetScene();
angle = atan2(float(vy),float... |
345f155357cc659056ccb4a9529dbfa6a34bcbfa | 520375019b721b2b1a1eb5cc65665c3998bfbd60 | /test/print_random.cpp | 96bf3604947e9d4fdd2e276a2ad36b7830b18916 | [] | no_license | DavidPeicho/algorep | e5624bec7d092f8ec8dc8190a70bf092cbd2de32 | f673e567aa4e3bcb922ae0e62a51af9387981b61 | refs/heads/master | 2021-05-06T01:49:09.733877 | 2017-12-21T21:41:56 | 2017-12-21T21:42:10 | 114,470,672 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,223 | cpp | print_random.cpp | #include "utils/utils.h"
void
run()
{
auto* allocator = algorep::Allocator::instance();
constexpr unsigned int NB_TESTS = 100;
auto int_comp = [](auto a, auto b) { return a == b; };
auto float_comp = [](auto a, auto b) {
constexpr float EPSILON = 0.0001;
return a >= b - EPSILON && a <= b + EPSILON;
... |
ee7844f95ff83159391b90804ee8b3d927e9f015 | a501bd3088465eb5dfaff08cc1b5cc7a26877dd0 | /SDR/ExternalTools/hydra/hydra-0.4/click-piggyback/click-hydra-1.5.0/tags/conext/package/hydratosocket.cc | c9db879b8fae1560841062dcf9c4ca33828bff1b | [] | no_license | Zheng0825/SDR | 4ae1a73cf326e2765cdd4706720ad84bcf11c1ff | 0886a149d063ea48bc2261c268108d7d32793df8 | refs/heads/master | 2021-01-12T05:52:14.750890 | 2016-09-07T00:51:23 | 2016-09-07T00:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,909 | cc | hydratosocket.cc | // -*- mode: c++; c-basic-offset: 2 -*-
/*
* tosocket.{cc,hh} -- element write data to socket
* Mark Huang <mlhuang@cs.princeton.edu>
*
* Copyright (c) 2004 The Trustees of Princeton University (Trustees).
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and as... |
d027a32171e269cb75b3ed79529c7d99e7d7d6d8 | 41f1a2cee03ed88ae5cec450e16050c6d46aa21d | /ALNSv2/roulette_wheel.h | 3ac9f5b4beb5ade944570b676716076a96f2304d | [] | no_license | ManuelFreytag/VRPLDTT | 8ff3cf606e04a97e8062260d7fbda4eaeda85268 | b9c1b5644a4ee78b27f112336c7c04ac4ea3040d | refs/heads/master | 2022-12-20T06:50:06.500140 | 2020-10-13T19:29:06 | 2020-10-13T19:29:06 | 303,801,626 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,159 | h | roulette_wheel.h | #pragma once
#include <vector>
#include <queue>
#include <functional>
class RouletteWheel {
public:
// wheel parameters
double wheel_parameter; // impact of historic results
int memory_length; // Number of iterations considered
double min_weight;
// Adaptive components
int nr_functors;
int last_... |
3ee5e003c4ad93162b42648fded8ccdc33986701 | adb90eb41008543cb7e01e832bd49659d2ab6b14 | /GoFish/card_demo.cpp | 598d4dc281fb02bc3ade6f4bcf4c312d11b31919 | [] | no_license | cmkauff/GoFishRepo | 716fd793d7148a93f6a103d8e9c32553adf0d29d | 386c08b51d9fbb5a9e773523e2ab2b5e822006d5 | refs/heads/master | 2020-05-05T00:52:51.065319 | 2019-04-12T01:47:39 | 2019-04-12T01:47:39 | 179,586,775 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,918 | cpp | card_demo.cpp | // FILE: card_demo.cpp
// This is a small demonstration program showing how the Card and Deck classes are used.
#include <iostream> // Provides cout and cin
#include <cstdlib> // Provides EXIT_SUCCESS
#include "card.h"
#include "player.h"
#include "deck.h"
#include <fstream>
using namespace std;
// PROTOTYPES ... |
472d202558c0c2b2781680101673ce3e3f251ab0 | 1626d7ad5ae0d30452db70c53d9ed0c4415a75d2 | /trunk/src/DataManager/BaseDataType/RemainderItem/RemainderItem.cpp | 6cead56549661d2eebb7fb270f1090fefd7f9e35 | [] | no_license | yuanzibu/hello-world | e413b74717baa4b5ed437062d475aabc9687ee82 | f6848d656d9ddfbda793d924883a3def9849fed7 | refs/heads/master | 2020-01-23T22:00:19.750136 | 2018-06-25T11:04:10 | 2018-06-25T11:04:10 | 74,722,844 | 1 | 2 | null | null | null | null | GB18030 | C++ | false | false | 492 | cpp | RemainderItem.cpp | /*--------------------------------------------------------------------------------------------------------------------*/
// RemainderItem.cpp -- 余料项类实现文件
//
// 作者: yuanzb
// 时间: 2017.9.8
// 备注:
//
/*------------------------------------------------------------------------------------------------------------------... |
7d9fc11135f6eef208e48a3684e1fda80d4d6d3d | 680eb8207417233de9a9dfa32bb022a74e256745 | /WrlSDK/SampleCode/PluginWinExe/WRLRegKey.cpp | 9f2241dcfcf277b720342bb43a94986005503cd5 | [
"MIT"
] | permissive | wangzuohuai/WebRunLocal | ddb793c1fcb07bb5d03fecdf5fcdc8b8939ffa9a | 6612ffcaacd201a50979f8bd5a56a53b21f6cf60 | refs/heads/master | 2023-08-04T14:01:53.810516 | 2023-07-24T07:33:46 | 2023-07-24T07:33:46 | 147,037,258 | 633 | 142 | NOASSERTION | 2020-10-11T01:34:23 | 2018-09-01T22:31:53 | C++ | GB18030 | C++ | false | false | 3,366 | cpp | WRLRegKey.cpp | /**
* @file ZMRegKey.cpp
*
* Copyright (c) 2013-?,成都佐罗软件
* All rights reserved.
*
* @ingroup
*
* @brief 注册表操作封装实现
*
*
*
* @version
*
* @date 2018-09-01
*
* @author WZH
*
* @history
*
*/
// ZMRegKey.cpp : 注册表封装实现
#include "stdafx.h"
#include "WRLRegKey.h"
#include "BaseFuncLib.h"
CWrlRegKey::CWr... |
0a357818481160a212fc20192b3fe7bf52d045fa | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/base/fs/remotefs/dfs/dfsserver/serverlibrary/domaincontrollersupport.cxx | 978651513d78955ba96ebe92820c79b0ce7f2d52 | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,425 | cxx | domaincontrollersupport.cxx | #include "DfsGeneric.hxx"
#include "dsgetdc.h"
#include "dsrole.h"
#include "DfsDomainInformation.hxx"
#include "DfsTrustedDomain.hxx"
#include "DfsReferralData.hxx"
#include "DomainControllerSupport.hxx"
#include "DfsReplica.hxx"
#include "dfsadsiapi.hxx"
#include "lmdfs.h"
#include "dfserror.hxx"
#include "dfsfiltera... |
29fda944d96adaeb96f7a404379a59297df34da2 | 3af68b32aaa9b7522a1718b0fc50ef0cf4a704a9 | /cpp/C/B/C/D/A/ACBCDA.h | 5a928f30308b91e135758bfb74ccf3cbf38b6783 | [] | no_license | devsisters/2021-NDC-ICECREAM | 7cd09fa2794cbab1ab4702362a37f6ab62638d9b | ac6548f443a75b86d9e9151ff9c1b17c792b2afd | refs/heads/master | 2023-03-19T06:29:03.216461 | 2021-03-10T02:53:14 | 2021-03-10T02:53:14 | 341,872,233 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 67 | h | ACBCDA.h | #ifndef ACBCDA_H
namespace ACBCDA {
std::string run();
}
#endif |
c8fecac7f90c0c1b5cddfb6191e97ee2dc843517 | 05819101e23d72ebe1eb607988d8a07b174e7652 | /project2/Classes/AnimInfo.h | 827f80f0ced16c947b00e2bdcae9e719d40b1397 | [] | no_license | Reika-Y/ActionBike | 8cf6d67961664de3e3c4bc6852a3ab0d9b7bde71 | 99d0f205acc2fcc682dcb6718d732a6da78777c8 | refs/heads/master | 2020-09-30T10:49:00.870568 | 2020-02-05T14:42:13 | 2020-02-05T14:42:13 | 227,272,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 713 | h | AnimInfo.h | #pragma once
#include <map>
#include <string>
#include <cocos2d.h>
// Animate管理用
using AnimData = std::map<std::string, cocos2d::Animate*>;
class AnimInfo
{
public:
AnimInfo();
~AnimInfo();
// アニメーションを追加します
// <param = plist> plistのパス
// <param = key> 取得用のキー
// <param = delay> 再生間隔
// <pa... |
d4ffb72ecbcd146f2df937248e3188646914b696 | 52d6267e17284fbdd789d0f30e5c149402d53b50 | /streampower.h | f4ff33b1ea46692c7f43199ae090f5d302a09e5d | [] | no_license | pletzer/ThawScape | a7835438e3d9a4962a357964b7796d00f6d0880e | 2383ca69e8d4b54e6bd2910fd7555cf480d82112 | refs/heads/master | 2020-05-27T17:55:13.266865 | 2019-05-29T01:24:51 | 2019-05-29T01:24:51 | 188,732,174 | 0 | 0 | null | 2019-05-26T21:13:29 | 2019-05-26T21:13:29 | null | WINDOWS-1252 | C++ | false | false | 5,804 | h | streampower.h | #ifndef _STREAMPOWER_H_
#define _STREAMPOWER_H_
#include <vector>
#include <random>
#include <numeric>
#include <algorithm>
#include "Array2D.hpp"
#include "indexx.hpp"
#define NR_END 1
#define FREE_ARG char*
#define MBIG 1000000000
#define MSEED 161803398
#define MZ 0
#define FAC (1.0/MBIG)
#defi... |
5d43c8bc4ba962d6d18a9abf1f66876a0eb29ae6 | 57d68bfbfc8ea43db9a22d9fb3b503d8d9900036 | /SourceCode/299-Bulls and Cows.cpp | ab9a68875a6478b1aa17fdd5d7a663d639723a3c | [] | no_license | GodBless112/LeetCodeAlgorithm | 6e55d59e11867f95dd35651663883112e01b2f4c | bbcedec43fe95d026ab558029a09494a0e55fea4 | refs/heads/master | 2021-01-19T03:02:39.594225 | 2017-08-23T14:51:40 | 2017-08-23T14:51:40 | 87,303,569 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,922 | cpp | 299-Bulls and Cows.cpp | // 299. Bulls and Cows
//------------------------------------------------------------------------------//
// You are playing the following Bulls and Cows game with your friend: You //
// write down a number and ask your friend to guess what the number is. Each //
// time your friend makes a guess, you provide a hint ... |
05ef3e00a50c41a72cec6ff908c0a3d256288a09 | aa2ac425a8bb957a26763ae17e50d50f1cce8956 | /src/Addons/GeoWay/gwXML_StandardMetaData/type_gml.CTimeCalendarPropertyType.h | b4f9266d821de41f2ee6e67720534ffbfc9a6e1a | [] | no_license | radtek/CGISS | c7289ed19d912c432aae81d0cdbb6b080b4f5458 | 3f7cfa19d8024a67a5350d51e3f2f40a5e203576 | refs/heads/master | 2023-03-16T21:23:56.948744 | 2017-06-17T14:14:09 | 2017-06-17T14:14:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,223 | h | type_gml.CTimeCalendarPropertyType.h | #ifndef _ALTOVA_INCLUDED_gie_ALTOVA_gml_ALTOVA_CTimeCalendarPropertyType
#define _ALTOVA_INCLUDED_gie_ALTOVA_gml_ALTOVA_CTimeCalendarPropertyType
namespace gie
{
namespace gml
{
class CTimeCalendarPropertyType : public TypeBase
{
public:
gie_EXPORT CTimeCalendarPropertyType(xercesc::DOMNode* const& init);
gie_E... |
34b300a7e70333e6f01e12724d30fbdb2724f47c | a04ff5ef3eab42788bad92afbfb59935e3e3baf7 | /source/opengl/my_opengl.cpp | 33369e97effd5e9b773a78b9af7ccc64c0ec5096 | [] | no_license | Gaspard--/Supercharged-Juggernaut-Wasps | bbf671789a33c3e9751f606c4786544df7061a6c | e7baa6b831042f82a5046c6e3061b242a7cb3f16 | refs/heads/master | 2020-04-09T01:28:54.637243 | 2018-12-04T14:04:56 | 2018-12-04T14:04:56 | 159,906,385 | 3 | 0 | null | 2018-12-02T15:05:37 | 2018-12-01T03:48:30 | C++ | UTF-8 | C++ | false | false | 6,811 | cpp | my_opengl.cpp | #include "opengl/my_opengl.hpp"
#include <stdexcept>
#include <iostream>
#include <memory>
#include <sstream>
#include <fstream>
#include <cstring>
#include <cassert>
namespace opengl
{
void checkError()
{
if (int err = glGetError())
{
switch (err)
{
case GL_INVALID_ENUM:
std::cerr << "GL_IN... |
50c473945715115d9a32632d707047a2b6d46f99 | a186bf948ac29f3696238e3677f0cf0138fb6860 | /Atividades/Caue_Gabriel/lista 4/CAUE-LISTA-4-EX.4.cpp | 2147cfd1245f52986900b6b1d654db4c1fc4fab6 | [] | no_license | professorlineu/PROA3-2019-2 | b8c3c944884e847370940a9a48fe580bfea9a4d3 | 84f1cf48598cc925d56e2ed0164c561ae7f5249e | refs/heads/master | 2020-06-25T16:38:52.992529 | 2019-11-25T22:33:16 | 2019-11-25T22:33:16 | 199,367,654 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 712 | cpp | CAUE-LISTA-4-EX.4.cpp | /**********************************************************
- Autor: CAUE GABRIEL
- Descrição: LISTA 4 - EX.
**********************************************************/
#include <iostream>
#include <locale.h>
#include <cstdlib>
using namespace std;
int main()
{
//Declaração de variáveis
int... |
ca5d037007ebe48b5726205ecb6fb7152e8c9c8a | e9786f00a5f9e59f1604f405bba535104926439f | /Editor/Sources/o2Editor/Core/Properties/IObjectPropertiesViewer.h | 8f503d7f515411da8d07056c9ff15dea5fecae4e | [
"MIT"
] | permissive | brucelevis/o2 | 0953532f270736c5b3fbb31fabc0ab72f1ddf8d0 | 29085e7c3ba86a54aacfada666adea755ea7b1ee | refs/heads/master | 2023-09-02T04:48:48.716244 | 2021-11-07T17:07:30 | 2021-11-07T17:07:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,990 | h | IObjectPropertiesViewer.h | #pragma once
#include "o2/Scene/UI/Widgets/VerticalLayout.h"
#include "o2/Utils/Basic/IObject.h"
#include "o2/Utils/ValueProxy.h"
#include "o2Editor/Core/Properties/PropertiesContext.h"
using namespace o2;
namespace o2
{
class VerticalLayout;
}
namespace Editor
{
class IPropertyField;
// -----------------------... |
3cc8a47d5dd6cb43353adc1a565951208cb53955 | d9650fc6700b0028fe7d7523df0256919ecc2ab3 | /src/getPct.cpp | cedef6bfa157726ede292a6a7b472a8c14b8ed53 | [] | no_license | matengyue/image-retrieval | c72a733029dd6d75e29c8e24f68ee2cdc2880785 | 96005c5121989d8e23e0055da9ac171f26c14b89 | refs/heads/master | 2016-09-13T20:28:37.636062 | 2016-04-21T08:26:44 | 2016-04-21T08:26:44 | 56,752,167 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 755 | cpp | getPct.cpp | /*************************************************************************
> File Name: getJpg.cpp
> Author: lumujin
> Mail: lumujin@icloud.com
> Created Time: 2016年04月19日 星期二 10时46分01秒
************************************************************************/
#include <stdio.h>
#include <string>
#include <stdlib.... |
b78bec0829aff55f4eb32fefca46119c04f2b36a | 3dd64a20b6f8e5d37ba23ea71556b4f8b40be58c | /codeforces/CF379A.cpp | 707752ee6b28e75418f7c7b1bac58b11055744ba | [] | no_license | abhikumar002/Competitive-Programming | 0a400653861090a7ace7438ffaa328c1a94a77e4 | 5e84dbd3adc7fea59f5af92d39ceec30b85d52c8 | refs/heads/main | 2023-04-14T10:10:36.862643 | 2021-04-27T07:48:02 | 2021-04-27T07:48:02 | 362,025,611 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 226 | cpp | CF379A.cpp | #include <iostream>
using namespace std;
int main() {
// your code goes here
int a,b; cin>>a>>b;
int thour=a;
while(a>=b)
{
thour+=(a/b);
a=(a/b)+(a%b);
}
cout<<thour<<endl;
return 0;
}
|
6cdfaaac8e02add85e882943a6292272a47b1c2f | 27b07ebb69f50924865f7da0fbde1f692594270f | /include/LTRE/math/vec3.hpp | 8080b99c6894f0f16bf0084b6c6bd5f9fcd2893f | [
"MIT"
] | permissive | yumcyaWiz/LTRE | 68bb5b3ede7a1e228f4bd2f1a0ce9a8070abb199 | dd65125bb133c345a10a3cf3d4c2a330b38ee82b | refs/heads/master | 2023-07-25T07:32:50.394970 | 2021-08-29T22:05:13 | 2021-08-29T22:05:13 | 368,081,973 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,402 | hpp | vec3.hpp | #ifndef _LTRE_VEC3_H
#define _LTRE_VEC3_H
#include <cassert>
#include <cmath>
#include <iostream>
#include "LTRE/core/constant.hpp"
namespace LTRE {
struct Vec3 {
float v[3];
static constexpr unsigned int nComponents = 3;
explicit constexpr Vec3() : v{0, 0, 0} {}
explicit constexpr Vec3(float x) : v{x, x, x... |
8896852865413e6a4940d159b0c6a3723089eb51 | 7e1e01498a2c9dc2c0c183463fd746ee73128e1f | /DirectX FBX/DirectX FBX/Model.cpp | f32834161b75434c22c8b6b972661cb8138de853 | [] | no_license | parksch/SuChanPark | b91d3653eeb93fe81c6d1081bc48cb0af99658b6 | fd214f322c6766add20bdd90c057b0d3f8662879 | refs/heads/master | 2023-04-27T20:38:57.667603 | 2021-05-17T02:18:24 | 2021-05-17T02:18:24 | 265,213,869 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,461 | cpp | Model.cpp | #include "Model.h"
Model::Model()
{
}
Model::~Model()
{
}
void Model::Input()
{
}
bool Model::SetGeometry(LPDIRECT3DDEVICE9 device)
{
void *verticesPtr;
void *indicesPtr;
long vertexSize = m_Parts.vertices.size() * sizeof(Vertex);
long indexSize = m_Parts.myindex.size() * sizeof(MYINDEX);
if (FAILED(device->... |
31f1e1cb8e31bd0bf706eaddfe1872e7cc721fff | 864d0e1c951f044379ac243d2d759371044af3dd | /BoilerEfficiency/BoilerEffi.cpp | 61d3441c892347cf6b16eec332816939f8c8fcde | [] | no_license | erinwl/AbnormalDetection | 572be6f69e781ebcc882de7e5b60456b9174d20c | 19beec64bae1bdd3de191affa7eefee394045fee | refs/heads/master | 2020-03-27T23:45:11.660085 | 2018-04-07T05:38:05 | 2018-04-07T05:38:05 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,469 | cpp | BoilerEffi.cpp | #include "BoilerEffi.h"
using namespace Boiler;
BoilerEffi::BoilerEffi()
{
}
BoilerEffi::BoilerEffi(InputArg _input)
{
InitInput(_input);
m_smokeLoss = new SmokeLoss(m_input.basis, m_input.m_aerfa,Qnet, m_input.m_file, m_input.t0, m_input.tpy);//计算排烟损失
m_solidLoss = new SolidLoss(Qnet,m_input.basis.... |
486292b65634be05fa3f91dd02c503cbd2dbe166 | 29b2ff977c4e57a3b63eaafa935bf6d4a9380e5d | /contributions/cppMpl/src/total.cpp | 467d8e45cf32dfd011004e442cb7acea84ba9eec | [
"MIT"
] | permissive | 101companies/101repo | 65219e9a137e94818702f26a40176e2bf75e0905 | 093caad519c91fcbe5b896c211acc25cc2765a3b | refs/heads/master | 2023-07-20T09:33:04.365782 | 2023-07-14T14:33:47 | 2023-07-14T14:33:47 | 2,828,043 | 17 | 15 | MIT | 2023-05-31T18:47:34 | 2011-11-22T13:55:06 | HTML | UTF-8 | C++ | false | false | 174 | cpp | total.cpp | #include <iostream>
#include "database.hpp"
#include <hr/operations.hpp>
int main()
{
std::cout << "Total: " << aggregator<all_data>::salary_sum::value << std::endl;
}
|
48585669c8a08fb1a7434d0537032b7ade606690 | 1821422698dd65206e55eb685836ad21da6f7971 | /llvm/lib/Target/SPIRV/SPIRVEnums.cpp | a3af393e790b33744203ce49a05f71d5e9665777 | [
"NCSA",
"LLVM-exception",
"Apache-2.0"
] | permissive | Duttenheim/fips-LLVM-SPIRV-Backend | cdd45db333a547a5518883a39877181b41a19d2f | c15265fe48e10c18aff7dcfb3f64f7f38fd0118d | refs/heads/feature/spirv-backend | 2023-09-04T18:12:56.031562 | 2021-11-05T02:20:37 | 2021-11-05T02:20:37 | 382,339,125 | 0 | 0 | null | 2021-11-06T00:29:28 | 2021-07-02T12:26:35 | C++ | UTF-8 | C++ | false | false | 2,587 | cpp | SPIRVEnums.cpp | //===-- SPIRVEnums.cpp - SPIR-V Enums and Related Functions -----*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
e3ce596715fe4e78ffd80b27a03fd34f36803364 | 87d7a6568188b661efb68488881363e54a44508e | /pacman_git/ConsolEngine/Field.cpp | b7b3fc25eec60577790e362c3a5df9565c7caa90 | [] | no_license | ZavalniukAlexey/Zavalniuk_Alexey_ | 4cfd5033ba5a284ab167f266566a29cf18ab475e | a7d0512131cec42fa36ea2ab34629529aa2c459d | refs/heads/master | 2020-12-11T11:30:15.882154 | 2020-01-20T21:39:46 | 2020-01-20T21:39:46 | 233,834,753 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,979 | cpp | Field.cpp | #include "Field.h"
#include <iostream>
#include "BaseApp.h"
Field::Field()
{}
void Field::updateField(int x, int y, char c)
{
field[x][y] = c;
}
void Field::resetField()
{ char f[31][29] = {
"############################", //0
"#............##............#", //1
"#.####.#####.##.#####.####.#", //2
"#.####.... |
b8960f980004345577140aa57b90f55b5705838f | 998130ca695e84ac3cb90191168324ba5f252065 | /sem7/main.cpp | 57e5fd7ede75d0fcb6291fb279c47b9fe0b2db93 | [] | no_license | AvramPop/OOP | e52e0cb08fc13ab96d57f6d1a5db238efc581fa3 | 68139e87c2a04f0cdc2a4767b12f067c79eb768d | refs/heads/master | 2022-01-13T02:00:13.129245 | 2019-05-30T06:47:50 | 2019-05-30T06:47:50 | 174,018,741 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 715 | cpp | main.cpp | #include "ChatSession.h"
#include "ChatWindow.h"
#include "Widget.h"
#include "User.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
ChatSession* session = new ChatSession();
User *user1 = new User{"user1"};
User *user2 = new User{"user2"};
User *user3 = new... |
a87325060cbc185c312774611687ffc496f5fade | be776c320d6f321ec4e73340e8b52f187fd5ae10 | /temp/P1311 选择客栈.cpp | c5a4a40c5c502c9bd7c65c78716a6cdc2e8f79e4 | [] | no_license | Deathcup/NOIP | b988296c57416f67972170be9f14aea056f17c4e | 50991526aff27208b97b41f1742497f8746f2bc8 | refs/heads/master | 2021-09-08T16:59:40.964560 | 2021-09-06T06:09:09 | 2021-09-06T06:09:09 | 108,225,834 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,183 | cpp | P1311 选择客栈.cpp | #include<iostream>
#include<cstdio>
#include<cmath>
#include<vector>
#include<cstring>
using namespace std;
const int N=200001;
int st[N][20];
int n,m,p,a,b;
bool flag;
vector<int> e[51];
int read(){
int data=0,w=1;char ch=0;
while(ch!='-'&&(ch<'0'||ch>'9')) ch=getchar();
if(ch=='-') w=-1,ch=getchar();
while(ch>='0... |
ed773c9b18f9948d6f4fe700b0ec6e66acd58c2b | 8b5373956aa83717d4d4719ca30b96014e228c42 | /sdlclib_audio_sound.cpp | d0ddbb5043aa64380b33cf5c3fe90ce595d45511 | [] | no_license | AlexisDurlet/SDLcLib | e25dd63eb9f1416f484482785e9c77ca88bcf4bd | 65b5a8aaeee00d93b53fd3abb9d4e31b4a1e1ab0 | refs/heads/master | 2021-01-19T06:08:25.939583 | 2016-08-07T12:24:11 | 2016-08-07T12:24:11 | 65,131,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,467 | cpp | sdlclib_audio_sound.cpp | #include "sdlclib.h"
TSDLcAudioSound * TSDLcAudioSound::m_pChannels[];
TSDLcAudioSound::TSDLcAudioSound() :
m_pSound(nullptr),
m_iCurrentChannel(-2),
m_bActive(false)
{}
TSDLcAudioSound::~TSDLcAudioSound()
{
Destroy();
}
void TSDLcAudioSound::PlayCheck()
{
SDLcAssert(m_pSound != nullptr, "tryin... |
a1bbc25b45b0df48206522fa9f4080d537c09e52 | c3de57676ebc2c4f6d0849347798534f85ab9a72 | /ControlLib/include/ControlLib/ControlParameter.h | 962b3275878aa9138294ecc2be93f1003e0067b1 | [] | no_license | plusminus34/Interactive_thin_shells_Bachelor_thesis | 0662f6d88d76d8d49b2b6066bf1d2b0fc258f01e | 85f034a476eeab8d485f19a6ea3208498061a4da | refs/heads/main | 2023-03-10T15:15:53.666726 | 2021-02-24T08:01:25 | 2021-02-24T08:01:25 | 341,820,202 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,233 | h | ControlParameter.h | #pragma once
#include <MathLib/Trajectory.h>
#define INITIALIZE_PARAMETER(pList, x, val, min, max, name) \
{ x = (int)pList.size(); pList.push_back(ControlParameter(val, min, max, fabs((double)((max) - (min)))/10.0, false, name)); }
#define INITIALIZE_PARAMETER_FULL(pList, x, val, min, max, maxAbs... |
3ab2498a35d18c95f1d112e9bc5f9aac1a395a06 | c3154e8620d3a97cdea9491b2cb37b152eb07d91 | /VGP332/08_NEAT/PipeManager.h | 34a2b2baf07b56f181af5ffdcc5512228c40fe96 | [
"MIT"
] | permissive | amyrhzhao/CooEngine | e9283e10f6f374b2420c7f20117850beb82f6a93 | 8d467cc53fd8fe3806d726cfe4d7482ad0aca06a | refs/heads/master | 2020-12-24T03:43:35.021231 | 2020-09-19T00:18:43 | 2020-09-19T00:18:43 | 281,494,528 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 298 | h | PipeManager.h | #pragma once
#include "Pipe.h"
class Bird;
class PipeManager
{
public:
void Update(float deltaTime);
void Render();
void Reset();
bool Intersect(const Bird& bird) const;
const Pipe* GetClosestPipe(const Bird& bird) const;
private:
std::vector<Pipe> mPipes;
float mSpawnDelay = 0.0f;
}; |
02ea5a3215d31a4af7bcee0407d8405fe5aa9a2d | c57ac054e85f64760f07c4e22c8b72e6192ea0ce | /DX3D/sources/6. Base/UIText.cpp | 540b5a2fa5f70f70d89bfd1981fb2ebbe6229fe4 | [] | no_license | oneofthezombies/TeamAvengers_PUBG_Prototype | acd3415c627afb81e4e2d4369d30891ff80bb873 | fd74e2094de7a81ffea2ece604f8a7ee7acd2f48 | refs/heads/master | 2020-03-17T23:00:34.933929 | 2018-08-12T00:14:46 | 2018-08-12T00:14:46 | 134,027,682 | 5 | 1 | null | 2018-08-08T06:10:32 | 2018-05-19T03:56:16 | RPC | UTF-8 | C++ | false | false | 1,579 | cpp | UIText.cpp | #include "stdafx.h"
#include "UIText.h"
#include "UIManager.h"
UIText::UIText()
: UIObject()
, m_pFont(nullptr)
, m_drawTextFormat(DT_CENTER | DT_VCENTER)
, m_textString()
, m_text(nullptr)
, m_pTextString(nullptr)
{
}
UIText::~UIText()
{
}
void UIText::Render()
{
if (!m_pFont) return;
... |
35c43085b099877c756210b9d931911159e1c5ff | b4b4e324cbc6159a02597aa66f52cb8e1bc43bc1 | /C++ code/Uva Online Judge/Q846.cpp | 5c5e6d620c24f7f809f75e61764031b8edcecdc9 | [] | no_license | fsps60312/old-C-code | 5d0ffa0796dde5ab04c839e1dc786267b67de902 | b4be562c873afe9eacb45ab14f61c15b7115fc07 | refs/heads/master | 2022-11-30T10:55:25.587197 | 2017-06-03T16:23:03 | 2017-06-03T16:23:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | cpp | Q846.cpp | #include<cstdio>
#include<cassert>
using namespace std;
int Solve(int dis)
{
for(int i=1,ans=0;;i++)
{
if(dis<=0)return ans;
dis-=i,ans++;
if(dis<=0)return ans;
dis-=i,ans++;
}
}
int main()
{
// freopen("in.txt","r",stdin);
int t;scanf("%d",&t);
for(int x,y;t--;)
{
scanf("%d%d",&x,&y);
printf("%d\n",S... |
88ca780f1965d823faf9ec06fecbad36e7ac432a | 15fabf8a407615180d4b06ab49d7522c9678477c | /src/superglue/keypoint_selector.cpp | d0e58cc4dca1ec1293539c7308d61844de281959 | [] | no_license | VictorSheverdin/Calibration | 7322d51d0c67d64eed73f6a93ecb0812bb2cf55e | bb6499e9e41e072a5adb600481d72e5443bc1be4 | refs/heads/master | 2021-06-18T17:10:49.691944 | 2021-02-16T18:36:13 | 2021-02-16T18:36:13 | 177,824,656 | 7 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 4,332 | cpp | keypoint_selector.cpp | #include "keypoint_selector.hpp"
namespace marker
{
namespace tf = torch::nn::functional;
namespace tch_u = libtorch_utils;
namespace trt_u = tensor_rt_utils;
at::Tensor make_inner_area_mask(torch::IntArrayRef shape, std::int64_t border, c10::Device device)
{
std::vector<int64_t> inner_sh... |
5929606eda3baafa8fa59550b5f132d0e7503385 | 9762cb52ab4f637234b1c149f37912faadd4603a | /src/include/Mesh.hpp | 30c3eeae2f28fdff429a6a60ce17004f613671d6 | [
"MIT"
] | permissive | jaredmulconry/GLProj | efcd5dbbd8558826597cce84a23cc08c2f38e956 | 722fc9804cf6bd2ee0098e6eed9261198f55d0b9 | refs/heads/master | 2020-05-22T01:45:14.778475 | 2019-04-11T06:45:07 | 2019-04-11T06:45:07 | 61,507,394 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,929 | hpp | Mesh.hpp | #pragma once
#include "gl_core_4_5.h"
#include "MeshDataBuffer.hpp"
#include "MeshIndexBuffer.hpp"
#include "MeshArrayBuffer.hpp"
#include <vector>
struct aiMesh;
namespace GlProj
{
namespace Graphics
{
enum class MeshSlots : GLenum
{
Positions,
Normals,
Tangents,
BiTangents,
TexCoord0,
TexCoo... |
7773dc8c2b914564c22a6f74de8785771530c9f3 | 862812801aedb9998e7b05e43b87ad34f6731a41 | /source/03_Object/2D/UI/Score/ScoreDraw/ScoreDraw.h | 77f5e38edbfb64b03fbf1e4efaf2b55053ab6c86 | [] | no_license | KaiAraki/3DAction | 49d4e744b309a5cffbf96a300e547cb6e523ed94 | ef6ee6c07b5a8252ca0e3bb1e97ac29393f4fac5 | refs/heads/master | 2023-02-25T04:00:58.458217 | 2018-11-07T05:10:36 | 2018-11-07T05:10:36 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,060 | h | ScoreDraw.h | //================================================================================
//
// スコア描画クラス
// Author : Araki Kai 作成日 : 2018/06/20
//
//================================================================================
#ifndef _SCORE_DRAW_H_
#define _SCORE_DRAW_H_
//========... |
3ee20624f41165eaf24c4c1cc2f2ba05c3d3d0c6 | 0331aa6bf71c6fdf01050b525f95b868764c81b1 | /게임/crush.cpp | 8ec8058bf9e7353024eae97dc5845562a40a9922 | [] | no_license | hynjin/simple_game | 094ac8bf7ba79729c5d8fe5aff2f4d3c05e46e17 | 7ac666f348adb852b3356c51fdab6f4cf03cd905 | refs/heads/master | 2021-01-12T10:27:46.670671 | 2016-12-14T13:46:12 | 2016-12-14T13:46:12 | 76,461,401 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,741 | cpp | crush.cpp | /*
장애물의 좌표정보를 받아와서
캐릭터와 장애물의 충동여부 확인
*/
#include "crush.h"
crush ::crush()
{
stage=1;
}
crush :: ~crush()
{
}
void crush :: call()
{
tumph=ob.tump();
ropeh=ob.rope();
badackh=ob.badack();
homeh=ob.home();
}
int crush:: badack_check(double ghostx,double ghosty,int &check)
{
for(unsigned ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.