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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
59788c8fa6e93468ed3b18709f8765dd687a4c39 | b923729dabc6ea385a6dfad97dd41d4b6c7c401b | /Date.h | 0ae453d804d2f483f29ed41980d9bdc2fb0c47f4 | [] | no_license | fcshah/StoreManagmentSystem | 3afa477f20668c82a584526bc2240dd74eb30cfc | bbdc4b7d05320b026d75a47fdb15d691477f21e5 | refs/heads/master | 2021-04-28T16:20:46.037366 | 2018-02-19T03:01:57 | 2018-02-19T03:01:57 | 122,012,672 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 967 | h | Date.h | #ifndef SICT_DATE_H
#define SICT_DATE_H
#include <iostream>
namespace sict {
#define NO_ERROR 0
#define CIN_FAILED 1
#define YEAR_ERROR 2
#define MON_ERROR 3
#define DAY_ERROR 4
const int min_year = 2000;
const int max_year = 2030;
class Date {
int mdays(int, int)const;
void errCo... |
ffa89cae57ec7d269f156350eb8861ddd5b84464 | 0f8eb14b579ae48dd1a7b3cd7e806172f5512baa | /Data_Structures/LCA_ST.cpp | c0c9b0cfdcc99dcd2b8ec4086732e14ac601ba46 | [] | no_license | Kanchii/CP_Algorithms | 7d6901228f719fa5d05f118597b8329f7680c047 | c525640638e1d79133f63e78021d9a83f2698ee8 | refs/heads/master | 2020-03-29T10:01:02.083825 | 2019-02-23T22:28:33 | 2019-02-23T22:28:33 | 149,785,736 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,234 | cpp | LCA_ST.cpp | #include <bits/stdc++.h>
using namespace std;
vector<int> tour, height;
int vis[20];
int entrada[20];
void preTour(vector<vector<int> > &adj, int u, int nivel){
vis[u] = 1;
tour.push_back(u);
entrada[u] = tour.size() - 1;
height.push_back(nivel);
for(int v : adj[u]){
if(!vis[v]){
... |
3620023b8f756bdd7105ec4963211e0325fbc1d5 | 802cdda4b7fcd4ebf2da5c924c7b9ec8f3774dc6 | /untitled/score.cpp | 2ad98d9ef027a6e6310fe5b9bde91f39f4c1f442 | [] | no_license | bradgearon/untitled | 09e44eb0745e28bdf24d931d496131d7bfbc2996 | 08c6c45985b6b5e5b47e5dc95398d85488077106 | refs/heads/master | 2022-10-18T13:10:39.898080 | 2022-10-12T05:18:01 | 2022-10-12T05:18:01 | 75,348,547 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,718 | cpp | score.cpp | #include "score.h"
using namespace untitled;
Score::Score(Level *level) : QObject() {
qDebug() << "creating score";
this->level = level;
}
QString Score::getName() const { return name; }
void Score::setName(const QString &value) { name = value; }
double Score::getRank() const { return rank; }
void Score::setRa... |
d5a45ad740866ef7c606807451d61e41d1f4f2e6 | 297497957c531d81ba286bc91253fbbb78b4d8be | /third_party/libwebrtc/modules/utility/maybe_worker_thread.h | d1addace97203e3a56d89aece62ae40c77d4d332 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | C++ | false | false | 1,292 | h | maybe_worker_thread.h |
#ifndef MODULES_UTILITY_MAYBE_WORKER_THREAD_H_
#define MODULES_UTILITY_MAYBE_WORKER_THREAD_H_
#include <memory>
#include "absl/strings/string_view.h"
#include "api/field_trials_view.h"
#include "api/sequence_checker.h"
#include "api/task_queue/pending_task_safety_flag.h"
#include "api/task_queue/task_queue_b... |
1fd134779c3dcbb351d4585b3fb20751d03e1c1c | 5d62cc9de5169b6877da9e532961caf0c4279750 | /Sources/Tools/DatabasePreprocessor/preprocessor.cpp | 7dbf98bc197a8dcedae89b704d24a96194053c97 | [
"MIT"
] | permissive | jacket-code/diecast | 55a69004e28cf654d3eabc7720e63445a8a1ff09 | 0b28c08b35071d6d04a5cd36c53fb0f58f3e1f90 | refs/heads/master | 2021-01-15T08:40:50.558625 | 2014-02-17T13:53:59 | 2014-02-17T13:53:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,760 | cpp | preprocessor.cpp |
#include "precomp.h"
#include "preprocessor.h"
std::string Preprocessor::process(const std::string &text)
{
Preprocessor processor(text);
return processor.output;
}
Preprocessor::Preprocessor(const std::string &text)
: text(text)
{
size_t line_start = 0;
while (true)
{
size_t line_end = text.find('\n', line_... |
30768fb043030105d59ed547bcc7e2e2d70459fa | 5b4c2679a0da0c5e2aa206af7c257b0cda209c94 | /C++/Vjudge/CodeForces/Watchmen.cpp | e9e8d67cd071a8dde8ac10c53f281b9ea5384466 | [] | no_license | mast1ren/mPracCodes | 59b563ff77ff289587db0c58c52e2a17e8f97cf0 | af621fe5e37783685badb5b29ecb9e5a6d78aefd | refs/heads/master | 2023-01-08T01:39:09.301554 | 2020-11-06T05:02:52 | 2020-11-06T05:02:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 837 | cpp | Watchmen.cpp | /*
当两点x或y相同时 计算的距离相同
但是要注意去除x和y同时相同的情况
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int count = 0;
map<int, int> x; //记录相同x的
map<int, int> y; //记录相同y的
map<pair<int, int>, int> s; //记录xy同时相同的
int n;
cin >> n;
while (n--)
{
... |
c8d6a378269227ac8ce751a96d3cb595bb5a34ee | cffc214f1409565e6c2d35c74e45ab4206907228 | /mysql_protocol/packet/BinaryPacket.cpp | 3d294277fdf8404fda1bace7c67f03816aea3255 | [
"MIT"
] | permissive | zhukovaskychina/XSQL | eb07adbb243d0a552af64287a7d95f23502792fc | f91db06bf86f7f6ad321722c3aea11f83d34dba1 | refs/heads/main | 2023-01-09T11:11:00.869732 | 2020-10-23T10:02:52 | 2020-10-23T10:02:52 | 306,588,415 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 722 | cpp | BinaryPacket.cpp | //
// Created by zhukovasky on 2020/9/17.
//
#include <muduo/net/TcpConnection.h>
#include "BinaryPacket.h"
namespace MyProtocol{
int BinaryPacket::calPacketSize() {
return 0;
}
std::string BinaryPacket::getPacketInfo() {
return std::__cxx11::string("MySQL Binary Packet");
}
cons... |
d8cd434be4b7c9140e45067cb56dd7718c7617c0 | bafd731d3666b834e0b2bed3d8762bb74e098af0 | /Кнопка-меню/main.cpp | d18e020e11ed1131f83b75b4cf1061c8a9bee89f | [] | no_license | mikaevnikita/cpp | e2375f03f665186079b3178e620cc3c0c11933c7 | 58b4ba6dc6f90ae173479191c95ec782313c689a | refs/heads/master | 2021-09-02T02:28:24.954142 | 2017-12-29T18:49:45 | 2017-12-29T18:49:45 | 115,746,352 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 509 | cpp | main.cpp | #include <QWidget>
#include <QPushButton>
#include <QApplication>
#include <QMenu>
using namespace Qt;
int main(int argc, char** argv){
QApplication app(argc,argv);
QWidget window;
QPushButton* pb = new QPushButton("Menu",&window);
QPixmap pix(":/prefix1/rock");
pb->setIcon(pix);
QMenu* menu = ... |
a8ffa19e48ab78012b292069a53da3dbec608842 | 1c2531d44c9c00ff27d36ce67bb4554beab0622f | /problems/101-200/p136.cpp | ddbdce37becd6b204afe4b2765c96e51f1b59bb1 | [] | no_license | zpf0917/euler | c68207094331b41af381de2e08c0990acf9b0f90 | 6f21ef83668370caaf7e8262d9de7fd0efa933e1 | refs/heads/master | 2020-08-29T07:20:36.306580 | 2019-07-13T23:18:07 | 2019-07-13T23:20:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 691 | cpp | p136.cpp | #include "lib/utility.hh"
constexpr int N = 50000000;
int sol_count[N];
void count_solutions() {
for (long x = 0; x < 2 * N; x++) {
for (long a = x / 5 + 1; a <= x / 2; a++) {
long n = (5*a - x) * (x - a);
if (n >= N) {
break;
}
long y = x ... |
91338dd540a253492c6b7177c0cb13e47e4cc76e | a8c2faf5a0076d254b9cfecb86c56c1b9a75e7e7 | /src/frameworkHistogramProducer.cc | 54927d6214dc2cc3827cae44bfebde885c306e65 | [] | no_license | neilSchroeder/cms-lce-framework | 085c0935f79607ed8e0dd92cbd8402afbbd3ab71 | aae32ec6b46d11ade065b6a15bf772cc32385167 | refs/heads/master | 2020-04-16T05:26:25.912860 | 2019-08-19T15:22:24 | 2019-08-19T15:22:24 | 165,305,022 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 47,901 | cc | frameworkHistogramProducer.cc | #ifndef utilityhistograms
#define utilityhistograms
/*
*
*
*
* This is where the functions used to produce the plots for the systematic
* uncertainty on the photon energy scale are defined.
*
*
*/
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <TH1.h>
#include <TH2.h... |
cb09ab68461cf3a5cf290ec81421f804a8c7377e | 827322dc42ecca85d416c28ac458e28b6a4d6215 | /examples/defaultPipeline.cpp | badcf0a0121168e26905b117a7a7c78091ad3475 | [
"MIT"
] | permissive | jimmiebergmann/Flare | 182be70f8d1fb1fff62490c5139ea0161631fa27 | 68898053543b99da91d0914427e4ccc5076ae4e2 | refs/heads/master | 2020-04-06T20:52:13.429715 | 2019-01-15T00:36:45 | 2019-01-15T00:36:45 | 157,785,786 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,316 | cpp | defaultPipeline.cpp | /*
* MIT License
*
* Copyright(c) 2018 Jimmie Bergmann
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files(the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, me... |
f2e1862a36e0676412b302e87b8a78b5a2bbb0a0 | a4b57e075d0b20186822bc4d565cf70b6b50bbe1 | /Source/Night/Input.h | d7b23a23726fab0db862c2ceabdc8ef080ff2334 | [] | no_license | thanik/NightSimpleMaze | 47dd3d99c928c7783abf3e0256a6d8e5633be5ff | 9374062188cc49a682e75159eaeeebc9205da6eb | refs/heads/master | 2022-12-06T13:34:07.839919 | 2020-09-03T11:35:30 | 2020-09-03T11:35:30 | 292,545,858 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 666 | h | Input.h | #pragma once
struct InputCommands
{
bool forward;
bool back;
bool right;
bool left;
bool rotRight;
bool rotLeft;
bool rotUp;
bool rotDown;
bool cameraSwitch;
DirectX::SimpleMath::Vector3 mouseDelta;
};
class Input
{
public:
Input();
~Input();
void Initialise(HWND window);
void Update();
bool Quit();
I... |
66a7b8ca877b8942071e606fefa7e6dadd2bdd3d | 632a1c0b67c496c05e1146ade894c78e202c047c | /SXR/SDK/sxrsdk/src/main/jni/vulkan/vk_cubemap_image.h | d3635680984778a8949127c147debccfb3a5f196 | [
"Apache-2.0"
] | permissive | sxrsdk/sxrsdk | a14b9b780f5b66fe66439957cff872c39c500176 | a0b94e61201213ef68e33c5ec3de4e14da61ea45 | refs/heads/master | 2020-03-31T14:35:37.345354 | 2020-02-28T18:44:34 | 2020-02-28T18:44:34 | 152,301,610 | 17 | 19 | Apache-2.0 | 2020-02-28T18:43:54 | 2018-10-09T18:31:52 | C++ | UTF-8 | C++ | false | false | 1,634 | h | vk_cubemap_image.h | /* Copyright 2015 Samsung Electronics Co., LTD
*
* 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... |
0da1c115d1b8de1067a5d2f0795631c695761fb3 | f5f5a0b8a4726f4f97abbf49c4a9abc44d900da9 | /Codeforces/yet-another-dividing-into-teams.cpp | 6fa20ad60a52a49a28a448c89b9135c209f13650 | [] | no_license | tapixhx/CPP | c96b87019000057096c2d33f5a2366c496cb6ed3 | 7271870738c75ef92c3fdb7aa019e78fbe1b5bfc | refs/heads/main | 2023-08-22T09:44:28.956406 | 2021-09-15T17:37:24 | 2021-09-15T17:37:24 | 334,462,809 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,093 | cpp | yet-another-dividing-into-teams.cpp | //#include <bits/stdc++.h>
//
//#define ll long long int
//#define mod 1000000007
//#define pi 3.141592653589793238
//#define lcm(a,b) (a/(__gcd(a,b)))*b
//#define FASTIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout<<fixed;cout.precision(10);
//
//using names... |
db1a44bfb577b4b135c712736766d24fc055ed45 | 75996c1510676b11af64db7f0eda7e11bc145058 | /old/src/Roidar.cpp | 8b8f87821286d939888e253249b5fb02a2e8ac56 | [
"MIT"
] | permissive | codygriffin/roidrage | be76a358d4124c76f2b744973320402c9d4f33b6 | 724d66d95f8705f207d50a0cb9a03675eceb1da2 | refs/heads/master | 2021-01-01T20:00:09.473456 | 2014-09-20T06:07:47 | 2014-09-20T06:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,443 | cpp | Roidar.cpp | //------------------------------------------------------------------------------
//
// Copyright (C) 2013 Cody Griffin (cody.m.griffin@gmail.com)
//
//------------------------------------------------------------------------------
#include "Roidar.h"
#include "RoidRage.h"
#include "OrthoCamera.h"
#include "Program.h"
... |
41b8f9c73f66540b19f034e75b099fc7f2b501d5 | a827ee72645ffb355e52a0521a1ffe09ec75729e | /reg.h | 001f6af9cef82f1b9096130b92e67b9b9fb51544 | [] | no_license | lutyyy/2017CMP | 6f200f3cc85abe95f58a25adbce0b7729d17eb18 | 5abbf8d2623eaace940ef1a4d6d003a2887f51da | refs/heads/master | 2021-06-17T00:53:01.998864 | 2017-06-04T09:39:51 | 2017-06-04T09:39:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 314 | h | reg.h | #ifndef __REG_H__
#define __REG_H__
#include <iostream>
using namespace std ;
// register file
class Register{
protected:
int reg[32] ;
int pc, Hi, Lo;
ostream *os ;
// reference of sp
int &sp() ;
public:
// constructor
Register( ostream *os ) ;
// dump regs
void dump( int cycle ) ;
} ;
#endif
|
16cb5a70b62eb4ec575b73b31b74fed15443acae | 3ac761e3aaf17aa7f3e2b8652662601e0096fb26 | /LodeRunner/cEnemy.cpp | a5415de33b4837717774d78d5e1f3c07c058a5de | [] | no_license | MichaelRussel/WaitressinDistress | e87808c896cd6886824856cc229f28e9c40748bd | fdfb7f8278d6de3f3c66b4d24bff09df88940587 | refs/heads/master | 2020-08-11T00:56:28.416214 | 2019-10-11T14:25:14 | 2019-10-11T14:25:14 | 214,457,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | cEnemy.cpp | #include "cEnemy.h"
cEnemy::cEnemy()
{
}
cEnemy::~cEnemy()
{
}
void cEnemy::Render()
{
}
void cEnemy::Init()
{
}
void cEnemy::Update(float tpf = 0.0333)
{
}
void cEnemy::ReadKeyboard(unsigned char key, int x, int y, bool press)
{
}
void cEnemy::ReadSpecialKeyboard(unsigned char key, int x, int y, bool press)
... |
6cd475b87fd01bddc38e04b9962d9d3d39519c6d | 004270fb4ba9c46541723981af0304d323c28493 | /Matemática ++/Pintar um tanque.cpp | 853e2e3fe45ce2c865504033e94a3828443de0b3 | [] | no_license | enieber/Tools-student | ea7c203cd11a58db13561d1e58fa3e5cde68dedb | 41e6c18564a2bdd5962c2b215c348b0b6d3f352d | refs/heads/master | 2021-01-15T18:08:59.885036 | 2015-07-05T00:51:43 | 2015-07-05T00:51:43 | 38,544,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 516 | cpp | Pintar um tanque.cpp | #include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
float nc,nq,area,litro;
float a,r,base;
cout<<"Digite o do raio:";
cin>>r;
cout<<"Digite a altura do tanque:";
cin>>a;
area=(3.14*(r*r))+(2*3.14*r*a);
litro=area/3;
... |
5e052d87ae7eb884762c83dbecb9ff14511a1227 | dc568b92ce7a5ec226191f3a14893798e1303359 | /XWCWallet/control/qrcodedialog.h | 609ad6536bcd4edccb42f9f435530e82199e6971 | [
"MIT"
] | permissive | Whitecoin-XWC/Whitecoin-qt | 38ca7959045306a09d56f03b0637138363774e44 | 7794a0057b63d004dd74ce68dba1a13e4b768502 | refs/heads/develop | 2022-12-07T11:58:51.733154 | 2022-11-22T05:53:42 | 2022-11-22T05:53:42 | 202,651,142 | 4 | 2 | null | 2021-07-07T14:10:23 | 2019-08-16T03:21:59 | C++ | UTF-8 | C++ | false | false | 339 | h | qrcodedialog.h | #ifndef QRCODEDIALOG_H
#define QRCODEDIALOG_H
#include <QDialog>
namespace Ui {
class QRCodeDialog;
}
class QRCodeDialog : public QDialog
{
Q_OBJECT
public:
explicit QRCodeDialog( QString address, QWidget *parent = 0);
~QRCodeDialog();
private:
Ui::QRCodeDialog *ui;
};
#endif ... |
010e6b0ca0ad53b8d55679943061172a0063cd03 | f85b50ac273f1dfc92a99f429bec36505424588a | /Leetcode414.cpp | a58943e368b60f35a990e0590f3d6d8faf23bab2 | [] | no_license | THWANG-design/LEETCODE | decdae24188e6ec2fba991b9ae0a9906b7680b4b | cd762d3c3f08aa71ebc2f33a67ac3f6bcdcbb79f | refs/heads/master | 2023-03-11T19:08:55.437277 | 2021-03-02T02:03:12 | 2021-03-02T02:03:12 | 343,290,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 723 | cpp | Leetcode414.cpp | #include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
class Solution
{
public:
int thirdmax(vector<int>& nums)
{
int i, j;
for (i = 0; i < (nums.size() - 1); i++)
{
for (j = i + 1; j < nums.size(); j++)
{
if (nums[j] == nums[i])
nums[j] = INT_MAX;
}
}
nums.erase(remo... |
ed83573ae5dac57d8f9ba23d2b21b5396564ef8c | 8da14e3c844502b0e896116547c7a805ec7448a2 | /compress/client/client.h | 38a36d3866af78f9e97ba9860bee23abf6157793 | [] | no_license | odindsp/old_dspads | a9bf7acdf10bd305176cc64f6170de717bfc2b1a | 769bc93e9b2ce38587fc4c8095f76f0667e90776 | refs/heads/master | 2021-09-15T11:23:15.974170 | 2018-03-09T10:28:53 | 2018-03-09T10:28:53 | 124,525,754 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 711 | h | client.h | #ifndef _CLIENT_H_
#define _CLIENT_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <pthread.h>
... |
dff30d96a4ca817087bf144b00bdcf8021cf07ea | 5dffd8553b8c907b5e7a0904f8e772b931c15861 | /solved/2383_Lunch_time.cpp | 54054689fdcea20e6fd3d99d21492ae12dc9ab9f | [] | no_license | Kyejoon-Lee/SWEA | 36ae59ab486b8048815cbb07066820b53981c4da | 2415cab2237d41ca939764b48b8782761d9586f1 | refs/heads/master | 2020-05-26T09:45:00.429162 | 2019-06-17T08:49:53 | 2019-06-17T08:49:53 | 188,192,410 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,990 | cpp | 2383_Lunch_time.cpp | #define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<cstdio>
#include<list>
#include<cmath>
#include<algorithm>
using namespace std;
list<int>s1;
list<int>s2;
int room[11][11];
int people[11][2];
int stair[2][3];
int mini = 0;
int n, p, s;
int boom(list<int> q, int len) {
int time;
q.sort();
if (q.size() =... |
740e14c0faf1655556b4427ee8c82a1cbc837be5 | 313cdc3bd63a9d7f1a358758315f75bfe697720e | /Circuits/make-mand.cpp | 190697ea1502f8ac89d8e2a31a3345a36d27d574 | [
"BSD-2-Clause"
] | permissive | KULeuven-COSIC/SCALE-MAMBA | 1abf9151940b77e7d8919443fa5ca5cbb137b638 | c111516e3ebc1efd12a2bd47dd2122b160e13d1e | refs/heads/master | 2022-08-20T07:15:37.749282 | 2022-03-30T06:57:03 | 2022-03-30T06:57:03 | 131,836,493 | 241 | 102 | NOASSERTION | 2023-09-06T08:24:55 | 2018-05-02T10:40:57 | Verilog | UTF-8 | C++ | false | false | 1,135 | cpp | make-mand.cpp | /*
Copyright (c) 2017, The University of Bristol, Senate House, Tyndall Avenue, Bristol, BS8 1TH, United Kingdom.
Copyright (c) 2021, COSIC-KU Leuven, Kasteelpark Arenberg 10, bus 2452, B-3001 Leuven-Heverlee, Belgium.
All rights reserved
*/
#include "GC/SimplifyCircuit.h"
#include <fstream>
#include <iostream>
#inc... |
14782a9a04d8f66f68de1dbb85ec4afb472e6171 | 9a57a696f1f64636efc9bac5f6c4e6efbf667635 | /actor/sensors/coordinate/types.hpp | d12737e216490fad7a35f21b6cf67802e83b2492 | [] | no_license | Constant1355/knit | 0684244960269b1c476c0578c109a41d29763ae0 | deb095cfec5fb2a5330c31f3e0dbb14a7ed6ef99 | refs/heads/master | 2023-08-13T21:28:25.130833 | 2021-09-13T16:10:13 | 2021-09-13T16:10:13 | 398,517,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,020 | hpp | types.hpp | #pragma once
#if __INTELLISENSE__
#undef __ARM_NEON
#undef __ARM_NEON__
#endif
#include <iostream>
#include <vector>
#include <memory>
#include <Eigen/Dense>
#include "../../source/stm32/spi.hpp"
namespace knit
{
namespace actor
{
namespace sensor
{
namespace coordinate
... |
1409119b150bcd6f2b7138ed7dc4e15571cbef70 | 551f53b107dc566529e9e551171712e907447528 | /src/brdfviz/embree/rtccommonshader.cpp | 6d1a2d12721fe3997f050757fd2f33abb6641fb1 | [] | no_license | SacrificeGhuleh/brdf_visualizer_cpp | e1049f85820b3d1f782424349dea9a8e2eadbd7a | dfa723b11c9b2c266abce8879ccbd0d2653656e8 | refs/heads/master | 2023-07-07T11:58:14.254087 | 2021-04-29T16:52:33 | 2021-04-29T16:52:33 | 286,674,581 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,171 | cpp | rtccommonshader.cpp | /*
* This is a personal academic project. Dear PVS-Studio, please check it.
* PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
*/
#include <pch.h>
#include "rtccommonshader.h"
#include "mathscene.h"
#include "sphere.h"
#include "rtcamera.h"
#include "rtlight.h"
#include "gl/material.h"
#i... |
7a3098a86da2f33cf5aa219f846e83f972b397b4 | cf4dd4da38c52495c4e692c522714e5cd100e1f3 | /oop2_week06.cpp | b9d9e0b70971127418014b2b2b37b2bce7aa270e | [] | no_license | bong-too/oop2-1 | 8e66121b4bf430eb193894d845e14f3d1b3e7383 | 6f4631e1a1a23638911f21f8cf0e5a5659cf2883 | refs/heads/main | 2023-02-12T03:44:16.658073 | 2021-01-12T15:16:58 | 2021-01-12T15:16:58 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,633 | cpp | oop2_week06.cpp | //#include <iostream>
//#include "ex1.h"
//using namespace std;
//int main() {
// int r;
// r = Plus(3, 7);
// return 0;
//}
//#pragma warning(disable:4996)
//#include <iostream>
//#include <cstring>
//#include <string>
//using namespace std;
//int main() {
// char cstyle[3];
// string cppstyle;
//
// //cin >> cstyle;... |
dbebbc5563e9597409804b15785f343689828450 | 3963d4f07de199407b893600b6bd48b9887ee8f8 | /STUDY/MidTerm/PowerCpp/03/03_EX1.cpp | e69f6ee3e69a1bbc9ae5428c9857de51373e865d | [] | no_license | james-sungjae-lee/2018_CPP | 6f9fc15d183293f1c04a67071d4f24f15c483331 | a277045f07be1350f2c914dbebfc5f24d6f2e6dd | refs/heads/master | 2022-09-22T23:41:45.030906 | 2018-06-10T01:22:20 | 2018-06-10T01:22:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 194 | cpp | 03_EX1.cpp | #include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
int age;
std::cin >> age;
int count = 0;
if (age >= 20 && age <= 65) {
count ++;
}
return 0;
}
|
b539e1aa10cdcce5c6414dcf9005e152a5d98c9e | 765c82de19e89f7a467d004d529c739a3e038319 | /FlowCube/src/Wall.h | 6c8d84f3e8726c5305e882700c78827498124c5b | [] | no_license | ryo0306/February-Screening-panel | 712df4130153530b85a97f5704c5e6a9d3d1bffe | 44f38b25cf3d9f103be736d031785ccecbfedffa | refs/heads/master | 2021-01-10T03:54:22.463140 | 2016-03-05T08:08:00 | 2016-03-05T08:08:00 | 47,526,173 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 215 | h | Wall.h | #pragma once
#include "Object.h"
class Wall : public Object
{
public:
Wall(){}
Wall(Vec2f pos_);
virtual void SetUp();
virtual void Update();
virtual void Draw();
protected:
Color color;
}; |
f15cdce396eaa3aaab2b42aaf666bce3f3270c9b | d1146d790bf3a7b24a67eab70f290134a07feb7a | /test/util/fuchsia_capability_util.cc | bbe8643e71027f05500ac84917de0049cf8621c8 | [
"MIT",
"Apache-2.0"
] | permissive | google/gvisor | 42ce9c6820612f06a74a20926c909edb2e61c539 | c2a7efe6a23072acfde99147bd8e81130500bff3 | refs/heads/master | 2023-09-01T15:51:42.207968 | 2023-08-30T20:52:24 | 2023-08-30T20:56:03 | 131,212,638 | 14,223 | 1,390 | Apache-2.0 | 2023-09-14T21:53:34 | 2018-04-26T21:28:49 | Go | UTF-8 | C++ | false | false | 2,064 | cc | fuchsia_capability_util.cc | // Copyright 2021 The gVisor Authors.
//
// 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 agree... |
8bb11a9662b153d63d9a58346105ef66ebc0be38 | 9fed22fc93b92648559f040ecdc68f03825f1bca | /src/ibool.cpp | 7067e966c340b0403e5b552c3d75d8877c3a17cc | [
"ISC"
] | permissive | rkojedzinszky/libjson- | ea4ab2568acdd4726162b8aa4c08228c4ff098b8 | bb57fc0c9712586b7ece74649d9ecc353061cedd | refs/heads/master | 2021-11-09T04:31:32.543315 | 2016-04-28T09:43:11 | 2016-04-28T09:43:11 | 32,326,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 871 | cpp | ibool.cpp | #include <iostream>
#include <iomanip>
#include <json/ibool.hpp>
namespace JSON
{
IValue::Type IBool::type() const
{
return JSON_BOOL;
}
IBool* IBool::clone() const
{
return new IBool(value);
}
bool IBool::getBool() const
{
return value;
}
bool IBool::asBool() const
{
return value;
}
int IBool::asInt() const... |
cd5da29d10473d9364671f1003a53dbfdb8ef50c | 90e66232f6d02811acf1d9123dd1b7b5d19ed35a | /perket.cpp | e8018a663e97e039e1f9cffa027332aae62063c2 | [] | no_license | lukevand/kattis-submissions | 8396fb2dbc4d5550c47eae7525bf9482d5155955 | fc61a5117e507ef283241dec1dd3caa242df8934 | refs/heads/master | 2021-07-12T16:42:43.582376 | 2020-03-13T05:57:51 | 2021-05-27T19:40:12 | 246,996,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 931 | cpp | perket.cpp | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> ii;
#define debugp(X) for(auto const& CCC:X) std::cerr<<CCC<<' '; cerr<<'\n'
#define debug(XXX) cerr << #XXX << ": " << XXX << '\n'
int main()
{
cin.sync_with_stdio(false);
int N;
ii ing[10];
int t1, t2;
scanf("%d", &N);
int... |
0bb326255550ac27b0ab12ba981bbdd1805b0fd5 | c84bfd27a561a232c318ed1ce8c6f980067d3458 | /AssetManager2/AssetManager2/television.h | 01aaf5bd176a8851486ac9b092ed62eff59412a4 | [] | no_license | yaoReadingCode/VS2015project | 2c2130edb6613d5d1b9657087220f74f92d7080d | 235ac68ca25b8e999bef151a811f982ed07affc3 | refs/heads/master | 2022-04-04T05:59:40.134755 | 2018-05-11T11:32:00 | 2018-05-11T11:32:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 476 | h | television.h | #ifndef TELEVISION_H
#define TELEVISION_H
#include<string>
#include"asset.h"
#include"custodian.h"
class Television : public Asset {
public:
Television(const std::string &id, const std::string &brand, const std::string &model,
const double purchasePrice, const Date &purchaseDate, const std::string &... |
e677799cf3ce4b66fcbecb7ddcb5e41a4c9d35c7 | f6bdab6c60adebe0d8b19779a6fa4e5071c4a318 | /SLDLoop/CApp_OnEvent.cpp | 944ba381c0b3a011e70e44c1167bb9efb2cfc08f | [] | no_license | robertpfeiffer/Afterlife-Empire-Opensource | c16af55f1ab91ec29f8db1c4159743c4e3d8bedb | 343c734d490b88301abe03b674f976aa00e25738 | refs/heads/master | 2020-05-07T22:06:46.205640 | 2015-08-17T19:31:20 | 2015-08-17T19:31:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,830 | cpp | CApp_OnEvent.cpp | //==============================================================================
#include "CApp.h"
#include "GameLogic.h"
#include "Camera.h"
//==============================================================================
void CApp::OnEvent(SDL_Event* Event) {
CEvent::OnEvent(Event);
}
void ... |
314cf5011d073c77d973701d9b712abb1946fb4f | 32c2b550a15aeb900330ba9694c0a53c7a96a1fa | /course7/homeworks/kushagra/hw2/ls_hw2.cpp | b7bdb0d51b82bfb3515080b5ea914bce3a392781 | [] | no_license | 5l1v3r1/c-excercises | 42d396d60e347d0753e4b32414e8f222801bae9d | f217b7c404e0ce53dae625f3dc54709e4af24dc2 | refs/heads/master | 2021-05-25T18:02:10.522666 | 2018-04-26T15:46:46 | 2018-04-26T15:46:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,800 | cpp | ls_hw2.cpp | #include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include <string>
#include <iostream>
namespace po = boost::program_options;
namespace fs = boost::filesystem;
//For directory display without details
void print_dir_contents(const fs::path& full_path) {
std::cout << full_path.generic_string() ... |
2db7bff15baf42b631ecfba1b3087928df97dc17 | 4c6012967dd302ce78664f785869cf6da369ddef | /388_permutation-sequence/permutation-sequence.cpp | 402f56d7fe1d35beb5000f4bb8e7c6f1805bdb80 | [] | no_license | heiyanbin/lintcode | 24b6627847d462b6b0be06ac418b1a9059a02f57 | 752d10ba02430b4344965f3a3a183173600fd205 | refs/heads/master | 2021-01-12T07:48:38.716502 | 2016-12-21T06:25:25 | 2016-12-21T06:25:25 | 77,023,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,043 | cpp | permutation-sequence.cpp | /*
@Copyright:LintCode
@Author: heiyanbin
@Problem: http://www.lintcode.com/problem/permutation-sequence
@Language: C++
@Datetime: 15-05-18 09:31
*/
class Solution {
public:
/**
* @param n: n
* @param k: the kth permutation
* @return: return the k-th permutation
*/
string getPermutat... |
32a82857accd596d54ba5eada0405877e0604f9c | 038df27dfb74a68f7b2fef2f63e5cc6bfe720962 | /examples/0024.locale/lconv_storage.cc | 2633ffd2fde71bc8401ae808926e9a0593cc4ddf | [
"MIT"
] | permissive | klmr/fast_io | 6226db934bbda0b78ae1fac80d20c635106db2c1 | 1393ef01b82dffa87f3008ec0898431865870a1f | refs/heads/master | 2022-07-28T12:34:10.173427 | 2020-05-25T11:25:38 | 2020-05-25T11:25:38 | 266,780,867 | 2 | 0 | NOASSERTION | 2020-05-25T13:03:19 | 2020-05-25T13:03:19 | null | UTF-8 | C++ | false | false | 381 | cc | lconv_storage.cc | #include"../../include/fast_io.h"
#include"../../include/fast_io_locale.h"
int main()
{
fast_io::c_locale loc(fast_io::c_locale_category::all);
fast_io::c_lconv_storage stg(loc);
for(auto const& e : stg.grouping())
println(static_cast<int>(e));
// println("grouping:",stg.grouping(),
// "\nnegative_sign:",stg.neg... |
b331af305945de7473c882e82f4730e4122da025 | 80c12a189796bdf46ac469e6d19c0c0441abfe38 | /src/OptimizationRunSelector.h | 592c82ddeec2d656f6a9e20a295d430ec0609ec8 | [
"BSL-1.0"
] | permissive | snow-abstraction/contentless_gui | 5e7f29ddb6f25b0bf6409727547d52cbcba8b9e2 | 65b08f19526f34a3e9ea229c3a96a665c1f515d7 | refs/heads/master | 2021-03-12T20:04:45.167824 | 2014-08-31T13:28:00 | 2014-08-31T13:28:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 776 | h | OptimizationRunSelector.h |
// Copyright Douglas W. Potter 2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)'
#ifndef OPTIMIZATION_RUN_SELECTOR_H_
#define OPTIMIZATION_RUN_SELECTOR_H_
#include <string>
#include <... |
87a45d6940d6a622910c919f51614a422c1b44ad | b4858e9cb8086c6a3a26df531fb7ff6505dbfeff | /HW5/fs/src/node_visitor.h | f6fcd67b7027977f73db5f6f886f399b8ab50fcb | [] | no_license | xtc841113/Design-Pattern | 7047beeddb6959f8ba557137dd321310a0e670da | b23f38989697a5054147511994ad4fa850e14239 | refs/heads/master | 2022-12-01T07:18:49.084687 | 2020-07-31T14:40:50 | 2020-07-31T14:40:50 | 284,057,917 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 257 | h | node_visitor.h | #ifndef NODE_VISITOR_H
#define NODE_VISITOR_H
#include <string>
class Folder;
class File;
class NodeVisitor{
public:
virtual void visitFolder(Folder *folder) = 0;
virtual void visitFile(File *file) = 0;
virtual std::string findResult(){};
};
#endif
|
0cb69363711fcace31b9fecac31c038697257e6f | d1e4718197ba3bddd13d6f6958e1d5a492b51af5 | /afc/call_tcc.cpp | 88a3587999a288483ea4221cb6fefabdf752c81d | [] | no_license | reisoftware/ap2d | 1f398664fdc4f8cab9479df18cd2a745f904cdff | e09732655ef66e13e98b8f3b008c91dac541e1f5 | refs/heads/master | 2022-01-22T05:36:56.295845 | 2022-01-04T05:31:57 | 2022-01-04T05:31:57 | 162,372,004 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,664 | cpp | call_tcc.cpp | #include "StdAfx.h"
#include "call_tcc.h"
#include "tcc.h"
#include "dir.h"
#include <cassert>
namespace afc{
static void exit(LPCTSTR msg)
{
::MessageBox(NULL, msg, "tcc", MB_OK);
}
void call_code(PF_ADD_SYMBOL pf_symbol, LPCTSTR func_code, LPCTSTR func_name)
{
assert(pf_symbol);
try{
a... |
bb6d81491d08b2cd1fd9dde9a5ef75dd2b57bcc1 | a23b2110aa8eea65b9e435e4fd5ca1bbfac9fed7 | /A. Reconnaissance.cpp | 796c8a239e700a28ba725a7acc299ab1d68955de | [] | no_license | sbswarna/CodeForces | abfd92738255557590e8a82b305876d6a48113f0 | 29a9099446be51201b0bd0d6402ccc8fe77056d7 | refs/heads/main | 2023-08-28T18:31:03.851047 | 2021-09-29T02:48:16 | 2021-09-29T02:48:16 | 348,233,677 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | cpp | A. Reconnaissance.cpp | #include<bits/stdc++.h>
using namespace std;
long long n,d,a[1005];
void F()
{
#ifndef ONLINE_JUDGE
freopen("input.in", "r", stdin);
freopen("output.in", "w", stdout);
#endif
}
int main(int argc, char const *argv[])
{
F();
cin>>n>>d;
for(int i=0;i<n;i++)
{
cin>>a[i];
}
sort(a,... |
7e1ebcea280ad42fc505e01c63363835bafa3836 | eac2309ca19f70ada801ae291378cfd430f5657b | /List/Q2/2-2.cpp | 60d243a34f6c7f139a2bd81187024b9adf4c10ec | [] | no_license | Alcatraz1337/Projects-New | d3480132e154fa8180dd705695df384bccd1628f | 760abbc8b4186ddd33517038f62e6316e8e3437f | refs/heads/master | 2023-03-09T06:23:48.498788 | 2021-03-01T05:24:13 | 2021-03-01T05:24:13 | 169,055,505 | 3 | 0 | null | 2019-02-05T10:55:31 | 2019-02-04T09:35:23 | C++ | UTF-8 | C++ | false | false | 270 | cpp | 2-2.cpp | template <class T>
void ArrayList<T> :: deleteSpec(T x){
int i = 0;
for (i; i < curLen; i++){
if(ArrayList[i] == x){
for (int j = i; j < curLen - 1; j++)
ArrayList[j] = ArrayList[j + 1];
curLen--;
}
}
} |
2df0e3d0c609d7ddcac215665abcd898e448290a | 8f435fd95c7942d1dc49358a99a31b5076789fb9 | /PI/openmp/original/FVLib/include/FVRecons1D.h | cf410d1697a4060c9dd488a793365d97eef1aee5 | [] | no_license | Surtr04/PI-CPD | 5926f299689a4ba89b841e09193b3a7879437b88 | 48e02f749b4d1a8a205a5f23d9300a8be68edd66 | refs/heads/master | 2021-01-18T20:29:40.985365 | 2013-07-31T19:06:25 | 2013-07-31T19:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,544 | h | FVRecons1D.h | // ------ FVRecons1D.h ------
// S. CLAIN 2011/10
#ifndef _FVRECONS1D
#define _FVRECONS1D
#include "FVMesh1D.h"
#include "FVStencil.h"
#include "FVVect.h"
#include "FVDenseM.h"
#include "FVPoint1D.h"
#include "FVGaussPoint.h"
#include "FVLib_config.h"
#include "FVTools.h"
class FVRecons1D
{
private:
FVPoint1D<double> ... |
b8172da9ae56bf1eecf61fb58a0c34e220116b40 | 63a5f2fbc1443b1a289f282c8a55ed5dc9d1c75c | /PiBot/src/gpio.cpp | 0eb7ff1d528a7b820441e32f42476820c6e930b7 | [] | no_license | mslawicz/PiBot | 03fd802e187465838ffb971753ca9d08e8dc7f60 | c41a03f57b1474be2bb33c505cc896296af8d16b | refs/heads/master | 2020-04-15T00:11:52.225682 | 2019-05-15T18:52:20 | 2019-05-15T18:52:20 | 164,231,945 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 716 | cpp | gpio.cpp | /*
* gpio.cpp
*
* Created on: 5 sty 2019
* Author: Marcin
*/
#include "logger.h"
#include "gpio.h"
#include "program.h"
#include <stdlib.h>
void GPIO::initialize(void)
{
if(gpioInitialise() < 0)
{
Program::getInstance().terminate(GPIO_INITIALIZATION_ERROR);
}
}
void GPIO::terminat... |
0f1e6f94d64604212090b00da53225dcbc134a82 | b568504c7774e3b093067b2831fabb45e9925c55 | /Radar Station/nodeList.cpp | 21f3c402bb8e89c3ede270d7706748ef8f597041 | [] | no_license | Barttmr/Data-Structures | bc9ad0a0c85c1e1c0148f0f08c04177283f8afb5 | b6b21fb1cbd0f89b968f6ba08a0a4443cf233c29 | refs/heads/master | 2022-11-12T16:26:23.173798 | 2020-06-26T14:07:16 | 2020-06-26T14:07:16 | 275,149,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 139 | cpp | nodeList.cpp | #include "nodeList.h"
nodeList::nodeList()
{
sn = *new Session();
next = NULL;
previous = NULL;
}
nodeList::~nodeList()
{
} |
40e6153eb6947f39e7b8fa54dc829736f34cddb8 | 8b29c9ee950b6d2b35c93cdb904706da5de2a2fc | /lab2/test/lab2_skeleton/DynamicStack.hpp | 27dbb4c2d98d9620eceb54fcf480f70208d0f67f | [] | no_license | adijunnarkar/AdiRepo | 65ebe1b2cc067d3a0a5a9af4ee269dc88a475fb1 | e2e36b4acea776f4bcd2c74c8920fbe987a7f237 | refs/heads/master | 2016-09-06T18:30:07.375449 | 2016-01-20T02:30:04 | 2016-01-20T02:30:04 | 26,737,108 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,535 | hpp | DynamicStack.hpp | /*
* DynamicStack implements a stack using a dynamically resizable array.
* Default size of the array is 16.
*/
#ifndef DYNAMIC_STACK_HPP
#define DYNAMIC_STACK_HPP
class DynamicStack
{
friend class DynamicStackTest;
public:
// Can be seen outside as DynamicStack::StackItem
typedef int StackItem;
... |
8add145f30bae8e0b833e3e4c7b20c532853d7f9 | e3541ccbe0208b4680c0bb7065dd1a4827c6b443 | /object.hpp | 6b858bfa4565c3ceafae49dc8828e9f1a5237a34 | [] | no_license | henrikhasell/zombie | e665f9b45eb80b72b3c79ee103af9f51aa851a65 | 72b46860077aed55d4a382d6c12c93a8a6d3a183 | refs/heads/master | 2021-07-24T16:02:31.146162 | 2020-04-20T10:10:07 | 2020-04-20T10:10:07 | 151,676,302 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 525 | hpp | object.hpp | #ifndef OBJECT_HPP
#define OBJECT_HPP
#include <Box2D/Box2D.h>
#include <iostream>
class Game;
class PhysicsObject
{
public:
PhysicsObject(Game *game, b2Body *body);
virtual ~PhysicsObject() = default;
virtual void onBeginContact(b2Body *other) = 0;
virtual void onEndContact(b2Body *other) = 0;
v... |
a112814ff00f5cc4e683d205df1a687fa26f0e88 | fcff7a2f81d8256363d5a1c37cffc5f6ad040132 | /洛谷/简单DP/P1757.cpp | 77ec8e768e306d07827802b704d3f5c7b91c3df7 | [] | no_license | HttoHu/cpp_acm_practice | d5401b09bce2d1774061ab385080e637ba95c568 | c75106ea06aed7b4a39a54f4b1800b6066d9e3a4 | refs/heads/master | 2021-06-29T22:14:23.388608 | 2021-02-10T09:18:27 | 2021-02-10T09:18:27 | 218,294,314 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 741 | cpp | P1757.cpp | #include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
int M, N;
struct Bag
{
int w, v, team;
bool operator<(const Bag &b) const
{
return team < b.team;
}
} bags[1005];
int dp[1005][1005];
int main()
{
cin >> M >> N;
for (int i = 1; i <= N; i++)
cin >> ... |
a943a563ffe743e6c5c551172d522525b63b04a4 | 7032972f5ebbaf8ecb60da0a95bf16ea3e592633 | /Barrage/bcg/inc/BCGPShellBreadcrumb.h | 6980e4f1ccf57ff0205117e81aa507648a6f7c92 | [
"Apache-2.0"
] | permissive | luocheng610/Douyu_BarrageAssistant | 817086abd75c58bfa68228697fa7aa786325ed82 | b2ce4f49cc76e7c95b1383ecb1b5e37452b8da04 | refs/heads/master | 2021-01-22T11:32:06.879143 | 2019-12-15T03:40:46 | 2019-12-15T03:40:46 | 92,707,125 | 7 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 2,343 | h | BCGPShellBreadcrumb.h | #if !defined(__BCGPSHELLBREADCRUMB_H)
#define __BCGPSHELLBREADCRUMB_H
//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of BCGControlBar Library Professional Edition
// Copyright (C) 1998-2014 BCGSoft Ltd.
// All rights res... |
7991fa6d6bbf4266a9446f06879bd2acec1792ef | cfac294ff3a871eede8949204b73a30dcb19a46d | /src/morphology/reference_dilate.cpp | 4e33517bf915919f750cb78b5763233aaa3be943 | [] | no_license | unipv-ce18/aca-proj11 | c1e6ac37fe51b0e776f22eb67d6641fff3976e40 | a9055969ec95b59e601662561f7f4fe62475e33e | refs/heads/master | 2021-07-15T09:30:48.434657 | 2020-06-07T09:46:39 | 2020-06-07T09:46:39 | 164,446,891 | 0 | 0 | null | 2020-06-07T09:46:40 | 2019-01-07T14:46:56 | C++ | UTF-8 | C++ | false | false | 1,161 | cpp | reference_dilate.cpp | #include "reference.h"
#include "StrEl.h"
#include <opencv2/core/core.hpp>
cv::Mat morph::dilate(const cv::Mat &image, const StrEl &strEl, const int nThreads) {
assert(image.type() == CV_8UC1);
cv::Size imSize = image.size();
cv::Mat output(imSize, CV_8UC1);
#pragma omp parallel for num_threads(nThread... |
8e584fe714a7a9c51dc6bfb448ab3d38f3e5925b | 1351f48d45c2c05e322c29c5f68da0d4590888c1 | /uva2/CUET SELECT/11040.cpp | 6d4578447e6cb9ed71e183e0561e41c888fec1c4 | [] | no_license | laziestcoder/Problem-Solvings | cd2db049c3f6d1c79dfc9fba9250f4e1d8c7b588 | df487904876c748ad87a72a25d2bcee892a4d443 | refs/heads/master | 2023-08-19T09:55:32.144858 | 2021-10-21T20:32:21 | 2021-10-21T20:32:21 | 114,477,726 | 9 | 2 | null | 2021-06-22T15:46:43 | 2017-12-16T17:18:43 | Python | UTF-8 | C++ | false | false | 1,182 | cpp | 11040.cpp | #include<bits/stdc++.h>
using namespace std;
int main ()
{
freopen("in.txt","r",stdin);
int t,i,j,k,a[10][10]={0},s;
cin >>t;
for(k=1; k<=t; k++)
{
for(i=1; i<=9; i+=2)
{
for(j=1; j<=i; j+=2)
cin>>a[i][j];
}
for(i=2; i<=9; i++)
{
... |
d227e07a74b8e5052d7524435c2a8f350ae3ba8b | 5bf7c4e5b61cf082311501a910121d8e0f941373 | /matrix multiplication.cpp | e9f8d259e9c6c3280f116465c8c2688c86e9dce6 | [] | no_license | Abir-Naha/Simple-C-programs | 5a3daf6ca802e918ac0dba34c40f5bf4aba29f21 | ac0043d6c3eb79b0b281e08918133c9a84e311ac | refs/heads/main | 2023-03-01T21:55:34.045273 | 2021-02-10T17:04:54 | 2021-02-10T17:04:54 | 337,763,410 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,840 | cpp | matrix multiplication.cpp | // Given two matrics A and B with their respective order our task is to multiply those matrics and produce C=AB
#include<stdio.h>
#include<conio.h>
main()
{
int a1,a2,b1,b2; //matrix A is of order a1xa2 and B is of order b1xb2
printf("\n Enter the order of the first matrix A: \n"); //taking user d... |
5b661592b34253820a50227e28221fc9db9a6bfa | 9d5619eb306c24ce3cfe2b0fb54d17c54f04bc6a | /p55/source/std/ming.cpp | 806dd0547b65da0edba9ada61dc5521c138fd733 | [] | no_license | cjsoft/lnoi | 829da39bd06be7fb7c841c4bff0c6a7b3e6b72f6 | d7ef6f5346db8ba96f1ca446d68bcb51452a12d3 | refs/heads/master | 2020-12-30T23:34:35.387799 | 2016-04-22T00:05:04 | 2016-04-22T00:05:04 | 55,044,245 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,748 | cpp | ming.cpp | #include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cctype>
using namespace std;
const int BUF_SIZE = 30;
char buf[BUF_SIZE], *buf_s = buf, *buf_t = buf + 1;
#define PTR_NEXT() \
{ \
buf_s ++; \
if (buf_s == buf_t) \
{ \
buf_s = buf; \
b... |
1b202da9c924ad62aa3118257a1c331566e3f1a7 | 93091cffa5a9d77abbae0f2b3ee6437eba958c79 | /dataline/setX.cc | ea8db082b73a3732f74cb1849291f9c0e50f6f89 | [] | no_license | paolotof/eyeTrackingProcessing | c75138ca3a3d04cb8766a0cf5ac7988f46da27a7 | f21143b0d7a05238df702c90c75cfc82444d2885 | refs/heads/master | 2020-12-24T14:10:39.774104 | 2018-03-13T10:01:08 | 2018-03-13T10:01:08 | 28,056,028 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 125 | cc | setX.cc | /* this is a template to create other stuff */
#include "dataline.ih"
void Dataline::setX(double xpos)
{
d_xpos = xpos;
}
|
06abef3476fa7311384d5fbe51cf063b508e4169 | f3facba9b8fc4e0c34ebb723f70556063488696f | /src/Velocity/velocityvolumeconversion.cc | 28f1131da2dd58acbfc89a4feaf0f54cec49c7c6 | [] | no_license | annequeentina/OpendTect | 9af07b099d8e738cf0bfefbd4f4c77fb8db9d370 | b728451cb04b8a3f3ec0355c5317ef4ebf62cb3f | refs/heads/master | 2021-01-02T08:59:20.285242 | 2017-08-02T11:52:16 | 2017-08-02T11:52:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,794 | cc | velocityvolumeconversion.cc | /*+
________________________________________________________________________
(C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
Author: K. Tingdahl
Date: Dec 2009
________________________________________________________________________
-*/
#include "velocityvolumeconversion.h"
#include "... |
68bef380d3a126c1b3b2ed1e2c300241c2468016 | 9209a62997622a50e1520048381ac6651b32030a | /hprof/test/types/test_objects_array.h | f7e9fa4ec33795cc2edc3d73b537dbce6648a370 | [
"Apache-2.0"
] | permissive | pvoid/android-hprof-browser | c88529591e97c10c98a10ad90a6f8b9107ce1288 | 548d5429becde0bbb746ecf71f505dd1b70d8547 | refs/heads/master | 2021-09-25T17:03:36.456763 | 2017-11-23T09:27:02 | 2017-11-23T09:27:02 | 103,631,792 | 1 | 0 | Apache-2.0 | 2018-10-24T11:15:19 | 2017-09-15T08:09:52 | C++ | UTF-8 | C++ | false | false | 4,560 | h | test_objects_array.h | ///
/// Copyright 2017 Dmitry "PVOID" Petukhov
///
/// 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 ... |
a06d536a91d0ea66c4a0446aec561ceecc2cb529 | 0c0af780e498f93c700b06f649b864d3e75fd56f | /src/Once.cpp | 0a65141663c00c8c824323d4665c5e392548f9e2 | [] | no_license | wlaub/vcv | fdb338b69fcfd33c1a1f011837b6bb831864254f | 9d52e49ba0a92a51b733218e02202549b7fb4bf2 | refs/heads/main | 2022-12-22T19:35:36.824217 | 2022-12-18T21:54:59 | 2022-12-18T21:54:59 | 117,328,087 | 10 | 4 | null | 2022-02-06T17:54:06 | 2018-01-13T08:41:12 | C++ | UTF-8 | C++ | false | false | 12,160 | cpp | Once.cpp | #include "TechTechTechnologies.hpp"
#include "PngModule.hpp"
#include <numeric>
#define N 6
struct GateState {
int pending = 0;
int value = 0;
json_t* to_json()
{
json_t* result = json_object();
json_object_set_new(result, "pending", json_integer(pending));
json_obje... |
5d2e05c5bc20a926fb77ef97564d92c21793a01d | e382c5268e7056012f637170229638a2f327b54f | /Strings/SearchSubstring.cpp | ea198a0778888733554a470dbf43e15d630d5b01 | [] | no_license | ParthPan7/Data-Structures-And-Algorithms---Problem-Solving | 9847947499d4cd9a97dfb260821e395b54d4a207 | dd520ae482b9772051a063cff48c041cc6a65042 | refs/heads/main | 2023-06-01T17:11:46.179839 | 2021-06-24T02:55:40 | 2021-06-24T02:55:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 772 | cpp | SearchSubstring.cpp | /*
strstr - locate a substring ( needle ) in a string ( haystack ).
reference - https://www.interviewbit.com/problems/implement-strstr/
*/
int strStr(const string A, const string B)
{
int start = -1;
for (int i=0; i<A.length(); ++i)
{
if (A[i] == B[0])
{
start = i;
... |
1ec6ed4df78e71c5cb7cf47c9b4b90536d4a1010 | 6d1e4e47266e1d6b818cbc3e19c42407fa9c6644 | /SuffixArray3.cpp | be696d497a96a456599c374a78a33e26da0a358e | [] | no_license | ishan16696/APS_assignment2 | 27e9188c6fc740ffe4c1ce1de7f096f36a67c8d7 | c4ee62b8ff72e657471ce455cdcb315ecfceee51 | refs/heads/master | 2020-04-01T00:34:15.849875 | 2019-09-12T19:36:48 | 2019-09-12T19:36:48 | 152,702,672 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,575 | cpp | SuffixArray3.cpp | #include<bits/stdc++.h>
using namespace std;
//******************************************************* Suffix Array ************************************************************************
struct node{
int index;
int curRank;
int nextRank;
};
bool comp(node r,node f){ // comparator function used fo... |
ca2f0da5123df4e3248a66945851c57164c66f1d | 4e0035299719bc4607eb26d4d1213fe921757336 | /software/host/utility.hpp | 1fe9659ca70a769f744721bea72ca872af0dc9ea | [] | no_license | zjjzby/HPEC2021 | d34136070c838a17c85414ccb1e6ff185a9cdcff | 21f320f8e1207b850e35e9c54d006d164b78039f | refs/heads/main | 2023-08-29T08:22:59.471344 | 2021-11-10T18:12:39 | 2021-11-10T18:12:39 | 402,191,162 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,961 | hpp | utility.hpp | #define CL_HPP_CL_1_2_DEFAULT_BUILD
#define CL_HPP_TARGET_OPENCL_VERSION 120
#define CL_HPP_MINIMUM_OPENCL_VERSION 120
#define CL_HPP_ENABLE_PROGRAM_CONSTRUCTION_FROM_ARRAY_COMPATIBILITY 1
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#ifndef UTILITY_DEF
#define UTILITY_DEF
#include <vector>
#include <vector>
#inc... |
4b264b0a2fadb4934e4884d328a05e9a3fa9dc66 | 25011917acb3e3724af8991b5a755c7a332bdef9 | /RubeGoldbergMachine.cpp | 436216ddab4ef2ee0d361b01611df20de77ee9cf | [
"Apache-2.0"
] | permissive | prason3106/RUBEGOLDBERGMACHINE | dffba39fee3533389642891280feae1a248c4004 | c05ce96a17bd4a557052134aad7f5abe6657d3ed | refs/heads/main | 2023-05-01T10:17:05.958208 | 2021-05-30T23:09:20 | 2021-05-30T23:09:20 | 372,331,912 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,187 | cpp | RubeGoldbergMachine.cpp |
#include <bits/stdc++.h>
#include <queue>
#include <fstream>
#include <stack>
#include <string.h>
using namespace std;
class Node // Node to represent the data in the ADTs
{
public:
string firstName; // first Name of person
string lastName; // last Name of person
int age; // age
... |
3626875df297dcfb192551c83e9ef61dfb1776db | 157fd7fe5e541c8ef7559b212078eb7a6dbf51c6 | /TRiAS/TRiAS V2.07/TRiAS01/DIO_INIT.CXX | 25e08aa73e5f0f9988efe747ba7263dc765373f4 | [] | no_license | 15831944/TRiAS | d2bab6fd129a86fc2f06f2103d8bcd08237c49af | 840946b85dcefb34efc219446240e21f51d2c60d | refs/heads/master | 2020-09-05T05:56:39.624150 | 2012-11-11T02:24:49 | 2012-11-11T02:24:49 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 6,274 | cxx | DIO_INIT.CXX | /* Datenbank - I/O Funktionen unterste Ebene */
/* Initialisierung der Datenbank I/O-Arbeit */
/* File: DIO_INIT.C last update: 15. Februar 1990 */
#include "trias01p.hxx"
#define NOCOPYRIGHT
#include <dbversio.h>
/* globale Datend... |
21f36a89b9b02a193e586563e8dfa041e3a0ca86 | 15dea4de84765fd04efb0367247e94657e76515b | /source/3rdparty/won/crypt/cryptoFiles/eprecomp.h | 9d018b3e26418daa9eb58d1717b2da9ac2766cc2 | [] | no_license | dppereyra/darkreign2 | 4893a628a89642121d230e6e02aa353636566be8 | 85c83fdbb4b4e32aa5f816ebfcaf286b5457a11d | refs/heads/master | 2020-12-30T13:22:17.657084 | 2017-01-30T21:20:28 | 2017-01-30T21:20:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,269 | h | eprecomp.h | #ifndef CRYPTOPP_EPRECOMP_H
#define CRYPTOPP_EPRECOMP_H
#include "integer.h"
#include <vector>
NAMESPACE_BEGIN(CryptoPP)
// Please do not directly use the following class. It should be
// considered a private class for the library. The following
// classes are public and use ExponentiationPrecomputation internally... |
4ec81a38fb65b53d9fd4d2ff8f34f81d9ac6e8c1 | e961eed45a3278ad28f4dbb93e73acadc4711db8 | /Atcoder Beginner Contest 126/Dice_and_coin.cpp | c814597f80ac102df0aa79b895f30828fb93d9e0 | [
"MIT"
] | permissive | Razdeep/AtCoder-Contests | 3c60bf162ea44457d9d94588913ac968b172e16a | 852eb3e05420b47f5d81a5fe561047e9dd4cef3a | refs/heads/master | 2021-08-10T15:24:24.390419 | 2020-04-19T13:29:23 | 2020-04-19T13:29:23 | 160,945,196 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 573 | cpp | Dice_and_coin.cpp | // https://atcoder.jp/contests/abc126/tasks/abc126_c
#include <bits/stdc++.h>
#define all(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
int main()
{
double n, k;
cin >> n >> k;
double answer = 0.0;
for (int i = 1; i <= n; i++)
{
double this_prob = 1.0 / n;
int thi... |
85fb745d78121cdf468a733285925cb2bb66c90f | f44fc7e2b4b54bc68b9425b6eb38b6d83e8e873a | /StorageSpace.cpp | bd4c2f11aa2084ba41ba5e26026d22b89f30a362 | [] | no_license | adambacke/LagerhanteringsSystem | 3bb562f0ceb2f76d8b3195d387c3440e18e89b88 | 4f5c7d05dd584e74c3a358148d8fc0a2f071fbf5 | refs/heads/master | 2021-09-11T21:05:33.985569 | 2018-01-08T10:32:04 | 2018-01-08T10:32:04 | 112,081,620 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,426 | cpp | StorageSpace.cpp | #include "StorageSpace.h"
StorageSpace::StorageSpace()
{
this->IdNr = -1;
this->Capacity = -1;
this->NrOfItems = 0;
}
StorageSpace::StorageSpace(int Capacity, int IdNr, int NrOfItems)
{
this->Capacity = Capacity;
this->IdNr = IdNr;
this->NrOfItems = NrOfItems;
}
StorageSpace::StorageSpace(int... |
c651c2f1c7f95d0ab34e82731ae767dd792c37d9 | 4f7f8d405160e45ab27fa7b5692f6762045c6a67 | /HMK/src/Shader.cpp | 04badfdd7cfccc0f16661d8a2bbc3fb77e33a56e | [] | no_license | hmkum/HMKEngine | 2e6758bc53d68bcbc87303d03f63e566b05cec7e | 3166a4fa02847ae66c27f33e6cf631aa80e8e992 | refs/heads/master | 2021-01-18T02:32:22.292055 | 2015-11-05T19:05:27 | 2015-11-05T19:05:27 | 45,062,053 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 989 | cpp | Shader.cpp | #include "Shader.h"
#include <iostream>
using namespace hmk;
Shader::Shader()
: shader_id_(0)
{ }
Shader::~Shader()
{
}
bool Shader::initialize(ShaderType shader_type, std::string shaderName)
{
std::ifstream file(SHADER_PATH + shaderName);
if(file.is_open())
{
std::string shaderCode;
std::string... |
f3b622ad314021de048035587bcd82051565fdb4 | 5519367afb178f45fd11d4412c81ed986ac16eb6 | /src/lib/formats/apollo_dsk.h | 2ea2026a239fb6be16374367b4d5115f5da44a2f | [] | no_license | Heribertosgp/mame | ab1b4fb207e054e5b52a4f2ac61f955a62681f3f | 7523b96daa6bfbc77005aab1a9f24829f2b4a971 | refs/heads/master | 2020-04-01T21:25:32.372860 | 2015-05-09T16:50:21 | 2015-05-09T16:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 597 | h | apollo_dsk.h | // license:???
// copyright-holders:???
/*********************************************************************
formats/apollo_dsk.h
apollo format
*********************************************************************/
#ifndef APOLLO_DSK_H_
#define APOLLO_DSK_H_
#include "upd765_dsk.h"
class apollo_format :... |
103e07cc240a83ded9ad2cf8a65466a7e2e40878 | fb94f8cbb7e62facf1f85ba2ea180b47c441437a | /TsuPod.cpp | a2df8a52ac8d0719294402b0573c8ec8f391c7b8 | [] | no_license | RajarsiGit/chegg | 508d89ceff032418b890f4dd9f3a9befe4bebcd3 | 2e5ba3bbfa7bda421d7488156fe66f69cf3a7720 | refs/heads/master | 2021-05-23T18:48:44.605687 | 2020-04-18T06:10:54 | 2020-04-18T06:10:54 | 253,423,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,207 | cpp | TsuPod.cpp | #include <bits/stdc++.h>
#include <string>
#include <stdlib.h>
#include <iostream>
#include "Song.cpp"
#include "TsuPod.h"
#define SIZE 256
using namespace std;
TsuPod::TsuPod(int size){
if(size <= SIZE){
TsuPod::size = size;
TsuPod::list = (Song*) calloc(99999, sizeof(Song*));
TsuPod::count = 0... |
44ebc3d9dd71abe4ecf85bce3e9b36d0f957a7fa | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc020/B/3417421.cpp | 7fa04a155c29880442c31c1e8c050d6cc539a583 | [] | 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 | 291 | cpp | 3417421.cpp | #include<iostream>
#include<stdlib.h>
using namespace std;
int main(void){
cin.tie(0);
ios::sync_with_stdio(false);
int a, b, num;
cin >> a >> b;
char c[7];
sprintf(c, "%d%d", a, b);
num = atoi(c);
cout << num * 2 << "\n";
return 0;
} |
9195ec544781513afe19eef7d2dd1bd3bb610b5b | be6902683fb9405369a9135472c99ddffd7f3ee2 | /cpp/test/test.cpp | 204006f31a477765bcf564e30ba3559bd4cc5f32 | [
"MIT"
] | permissive | tomcattiger1230/traj_gen | 3032f2f50b9b7477e33415d474abfb8ab58f0ace | d01882c17d8e979860fb1f09defa968a86adb494 | refs/heads/master | 2022-12-27T06:25:16.408488 | 2020-09-11T11:59:21 | 2020-09-11T11:59:21 | 278,294,127 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,260 | cpp | test.cpp | #include <traj_gen2/TrajGen.hpp>
#include <iostream>
#include <chrono>
using namespace trajgen;
using namespace Eigen;
using Type = double ;
int main(){
// 1. Prameter setting
// common
const int dim = 3;
trajgen::time_knots<Type> ts{0,2,4,7};
trajgen::Vector<Type,3> objWeights(0,1,1);
// pol... |
4d3f44ac06eb46124410a76f7db43d36332f14b2 | 88ae8695987ada722184307301e221e1ba3cc2fa | /buildtools/third_party/libc++/trunk/test/std/utilities/expected/expected.void/assign/assign.move.pass.cpp | 3954cda51c346ad5279e844112862314bac1de40 | [
"BSD-3-Clause",
"NCSA",
"LLVM-exception",
"MIT",
"Apache-2.0"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 4,893 | cpp | assign.move.pass.cpp | //===----------------------------------------------------------------------===//
// 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
//
//===------------------------------... |
14882f3b04878065252db12b371ba97aeea33697 | 2bac215c4601f5ea7ccd83f7308cdb09de635190 | /Lab/lab3/hnu_lab_template/Code/mind.cpp | 378d865d433b73d52a9fb74a16e5094f2706761d | [] | no_license | DelinQu/IntroductionToTheTheoryOfComputation | 2f064e2c0f9f0f556a2aa114b565b928b009b84b | 9b21e502a57d6051941f9b63065f6c2cc73b817a | refs/heads/master | 2023-04-23T05:40:24.093942 | 2021-05-15T14:53:17 | 2021-05-15T14:53:17 | 343,593,320 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,551 | cpp | mind.cpp | main():
while(t--)
{
Input(DFA); // 输入DFA
DFS(); // 搜索状态图
for(int i = 0; i < cnt; i++) // 任何包含接受状态的节点都是接受状态
if(ans[i]&f)
ac[i] = 1, sum++;
for(int i =... |
d90e7d26112e1f53f75ba3cbe8cc8ca49787f529 | c3ed9fc86ec0596333a631ebd84fe8baf3e034d7 | /oj-Project/oJ_log.hpp | 10b5d1b41a4861420152b5e515ffd6f78b0859a2 | [] | no_license | Kaniso-Vok/Linux-code | 5f9784968c5d49c9d4e75daf92663f79250243a9 | 1f563707d3b4622e4d20f9cb866c55b8e7764697 | refs/heads/master | 2021-07-07T19:55:46.567851 | 2020-12-19T07:32:06 | 2020-12-19T07:32:06 | 215,523,765 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,453 | hpp | oJ_log.hpp | #pragma once
#include <iostream>
#include <cstdio>
#include <sys/time.h>
#include <string>
#include <string.h>
using namespace std;
//log服务也是在控制台输出
//输出格式:
//[时间 日志等级 文件:行号] 具体的日志信息
class LogTime{
public:
//获取时间戳
static int64_t GetTimeStamp(){
struct timeval tval;
gettimeofday(&tval,NULL);
... |
601e81446a4e8649aa743a65d66adb4d98f0eed6 | 2307b57c64225ac62622349273b9298f8c6878a0 | /gui/entity/cattlebuyscreen.cpp | 50618b1363b886478ce82c8604edb67a558195b6 | [
"MIT"
] | permissive | MaceGabriel/GiroDeGado | 8f417413bc3922204b52872103264189aa6bceda | 0ea4ed5d048159fc714673dfef2828370e873f84 | refs/heads/main | 2023-08-09T01:17:49.990376 | 2021-08-27T21:56:01 | 2021-08-27T21:56:01 | 391,169,305 | 1 | 0 | MIT | 2021-08-25T01:05:45 | 2021-07-30T19:22:43 | HTML | UTF-8 | C++ | false | false | 2,073 | cpp | cattlebuyscreen.cpp | #include "cattlebuyscreen.h"
#include "ui_cattlebuyscreen.h"
CattleBuyScreen::CattleBuyScreen(QWidget *parent, QWidget* backScreen, QWidget* loginScreen, Farm* f, std::string current_user) :
QDialog(parent),
ui_(new Ui::CattleBuyScreen)
{
setFixedSize(900, 600);
farm_ = f;
back_screen_ = backScreen... |
6cce963e55ff321511971b2822527e3e8016e3e6 | 2588ad590b4df910fa5477ee84101b56dba69144 | /List/List/DList.hpp | 7e22f1f234660b844b89d9032c23d56b617b4f57 | [] | no_license | Mr-Jason-Sam/Algorithms | e6829cf55addb7a01c425f8f8c732dce1082901c | 6f015cc63407cda1aae310aefd3b705fcc00a361 | refs/heads/master | 2021-01-19T10:53:22.400040 | 2019-05-23T17:06:42 | 2019-05-23T17:06:42 | 87,910,106 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 901 | hpp | DList.hpp | //
// DList.hpp
// List
//
// Created by Jason_Sam on 21/03/2017.
// Copyright © 2017 Jason_Sam. All rights reserved.
//
#ifndef DList_hpp
#define DList_hpp
#include <stdio.h>
#include <iostream>
using namespace std;
typedef struct DListElem_{
void *data;
struct DListElem_ *prev;
struct DListElem_ ... |
8bb32721f771528630695eaf52ba9de13e16d742 | 9c3e44162c99df65ec71717e8c3c43a2593fe383 | /tests/ChronoTest.cpp | 34c003ff8c9102761b37387f5ca5893f3e5d8992 | [
"MIT"
] | permissive | SlavaMelanko/PocoHttpWebServer | b30dff2e7637ae7969a9aa752df07648449f5daf | 17a90e0b489a94701cccf000a40728986b0b4832 | refs/heads/master | 2022-01-08T08:49:56.646239 | 2018-06-12T19:56:49 | 2018-06-12T19:56:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | cpp | ChronoTest.cpp |
#include <regex>
#include <catch/catch.hpp>
#include <utils/Chrono.h>
TEST_CASE("Chrono: Check SORTABLE_FORMAT")
{
const auto now = utils::chrono::GetCurrentDateTime();
// 2018-01-01 00:00:01
std::regex pattern{ "\\d{4}[-]\\d{2}[-]\\d{2} \\d{2}[:]\\d{2}[:]\\d{2}" };
std::smatch match;
REQUIRE(std::regex_search... |
e171fcc970faa58376057eecced7ab19d711d1ba | bebd8676e42fc0491be54e4c3e4407d528f0f036 | /src/main/resources/Arduino/sketch_oct09a.ino | 437895f219bf1833834ee9691f0502e047b58757 | [] | no_license | Bridge-Tech/ChallengePluSoft | d78953cda34692c84972614a2bae6f7b1615a08e | 15dbd1fd7a59c7b85cb950ab045aecd4c34b806f | refs/heads/main | 2023-08-25T00:03:27.492964 | 2021-10-24T22:49:35 | 2021-10-24T22:49:35 | 408,661,237 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 749 | ino | sketch_oct09a.ino | #include <VarSpeedServo.h> // inclusão da bibliotecaa
VarSpeedServo servo;
void setup() {
Serial.begin(9600);
servo.attach(9);
}
char option;
void loop() {
/*
delay 1000 - speed 50
delay 700 - speed 100
delay 400 - speed 255
*/
if( Serial.available() > 0 ){
option = Serial.read();
}
... |
ffb68b729898aec41caf686e5992052987fbcc5b | feccd744d3cce74a928448ce0b2211fa70e09844 | /src/appreq_serv_thread.cpp | f2b99d09a444a2d24b4e85b29ac62c48b18de73c | [
"MIT"
] | permissive | original-work/wacc | 3c3ad0944689c7fde2c59b33756a9a9b37b12711 | 3e70acf4346e2b64a118b67a4483a62273f12b05 | refs/heads/master | 2021-09-06T21:50:14.453456 | 2016-08-19T11:38:25 | 2016-08-19T11:38:25 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 14,579 | cpp | appreq_serv_thread.cpp | /*
* =====================================================================================
*
* Filename: appreq_serv_thread.cpp
*
* Description:
*
* Version: 1.0
* Created: 2015/3/9 10:31:31
* Revision: none
* Compiler: gcc
*
* Author: wangxx
* Organizatio... |
cc300940d6284d3a8851469c9f76525a613bdd9b | 9b0d3472465e542aa440435989e2489e47dad269 | /src/stdev.cpp | b15f4dc917160a8cefd75c5088e6acf88bcd6e6a | [] | no_license | 9prady9/arrayfire-benchmarks | 1ef9df82a0ec752cdb1ac61cf22396003722a248 | 33a002ff42346c344654e9baf575ba2a3eec818d | refs/heads/master | 2021-07-21T19:59:00.531861 | 2021-03-29T04:51:27 | 2021-03-29T04:51:27 | 148,154,099 | 0 | 0 | null | 2018-09-10T12:46:53 | 2018-09-10T12:46:53 | null | UTF-8 | C++ | false | false | 969 | cpp | stdev.cpp | #include <arrayfire_benchmark.h>
#include <arrayfire.h>
#include <vector>
using af::array;
using af::randu;
using af::deviceGC;
using af::deviceMemInfo;
using std::vector;
using af::sum;
void stdevBench(benchmark::State& state, af_dtype type) {
af::dim4 aDim(state.range(0), state.range(1), state.range(2), state.r... |
60d9ef6f5e500fef7ce23e7f822e1c27c2f28257 | 10ab574d579d85a261efe0509bd38bdee7c3c529 | /MONOPOLY.CPP | 6ea7e8323a3af0e8a27780656427c3ee91738200 | [
"MIT"
] | permissive | choptastic/monopoly_cli | b6a63214540d50440e647994f7113c1e5608b71e | 67e605b7d4323c7f85215232cbe2d6dfd8bc7d97 | refs/heads/master | 2020-04-06T04:40:21.182643 | 2016-09-15T19:03:20 | 2016-09-15T19:03:20 | 68,322,699 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,490 | cpp | MONOPOLY.CPP | #include <stdlib.h>
#include <fstream.h>
#include <iomanip.h>
#include <stdio.h>
#include <conio.h>
#include <ctype.h>
#include <malloc.h>
const int MAXPLAYERS=8;
const int NO=0;
const int YES=1;
const int BANK=200;
const int FREEPARKING=100;
const int UNOWNED=300;
const char* SAVEFILE="monopoly.sav";
... |
ff57604437e3f80dedd92341c73f8764f4a0a235 | 076ba173f5b518977d30f4336c63b177a5a7f66d | /cases/spherical_surfers/param/init/objects/surfer__us_1o0__surftimeconst_9o0__reorientationtime_2o5/pos/group/_member/passive/choice.h | 3fed9359a5cd44654efe1ed2dae1458f881651fb | [
"MIT"
] | permissive | C0PEP0D/sheld0n | a661b27ffee7b087731f0a3e9f92c2ee26d7d560 | a1b9a065cfaa2e3faf5a749f14201a84baa41ce9 | refs/heads/master | 2023-04-28T20:53:27.684636 | 2023-04-18T21:20:00 | 2023-04-18T21:20:00 | 421,041,396 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 874 | h | choice.h | #ifndef C0P_PARAM_INIT_OBJECTS_SURFER__US_1O0__SURFTIMECONST_9O0__REORIENTATIONTIME_2O5_POS_GROUP_MEMBER_PASSIVE_CHOICE_H
#define C0P_PARAM_INIT_OBJECTS_SURFER__US_1O0__SURFTIMECONST_9O0__REORIENTATIONTIME_2O5_POS_GROUP_MEMBER_PASSIVE_CHOICE_H
#pragma once
// THIS FILE SHOULD NOT BE EDITED DIRECTLY BY THE USERS.
// TH... |
4f8fdbc3ad0daf8ed4709f22b1a3118911d40811 | 4ca0c84fb7af16b8470ab9ff408edd6d00c94f77 | /Codeo/0xcf - Mirando al horizonte/0xcf.cpp | a0a0e0ec9ee956433d3af02ec5681fcb6322b6c3 | [] | no_license | svanegas/programming_solutions | 87305a09dd2a2ea0c05b2e2fb703d5cd2b142fc0 | 32e5f6c566910e165effeb79ec34a8886edfccff | refs/heads/master | 2020-12-23T16:03:33.848189 | 2020-10-10T18:59:58 | 2020-10-10T18:59:58 | 12,229,967 | 8 | 10 | null | null | null | null | UTF-8 | C++ | false | false | 751 | cpp | 0xcf.cpp | #include <iostream>
#include <cstdio>
#include <stack>
using namespace std;
typedef long long ll;
const int MAXN = 500005;
int n, c, arr[MAXN];
stack<int> s, ans;
void
clear_stack(stack<int> &st) {
while (!st.empty()) st.pop();
}
int
main() {
scanf("%d", &c);
for (int z = 1; z <= c; ++z) {
clear_stack(s)... |
4b3958a0b3d8853a91f7aea2dc849a70cf44a1ae | a2ec36843fa96579cadc24e3bef03e65d23e3771 | /leetcode/leetcode-november-challenge/3543.cpp | 607d22dd3bb647172d90266d864becacc3cee25d | [] | no_license | maniSHarma7575/Code_Mystery | 01b72c83c8159acd7db36b815e8b6c37afbc811c | 2c27fa37b7486877c63518984f583a9960631d15 | refs/heads/master | 2023-01-21T01:30:00.757993 | 2020-11-30T10:52:27 | 2020-11-30T10:52:27 | 262,289,318 | 3 | 0 | null | 2020-11-30T10:52:28 | 2020-05-08T10:04:36 | C++ | UTF-8 | C++ | false | false | 300 | cpp | 3543.cpp | class Solution(object):
def smallestRepunitDivByK(self, K):
if K%10 not in {1,3,7,9}:
return -1
num=1
length=1
while True:
if num%K==0:
return length
length=length+1
num=num*10+1
|
1b9cdfb8ec230054869ef6cc8dfc3a242042bb1a | 9ea624a093561c87e47b822008e35d40a136a953 | /src/OpcUaClient/Client/ClientApplication.cpp | f6bdb5c528830b8d976a27a4f8d1e0914889a0f5 | [
"Apache-2.0"
] | permissive | ASNeG/OpcUaStack | 399828371ed4c128360c710dcd831b41f192f27d | e7c365f006be878dcb588a83af9a0dde49bf2b5a | refs/heads/master | 2023-08-30T16:12:24.823685 | 2022-06-27T21:35:44 | 2022-06-27T21:35:44 | 149,216,768 | 141 | 41 | Apache-2.0 | 2023-08-22T09:10:17 | 2018-09-18T02:25:58 | C++ | UTF-8 | C++ | false | false | 6,321 | cpp | ClientApplication.cpp |
/*
Copyright 2016-2017 Kai Huebl (kai@huebl-sgh.de)
Lizenziert gemäß Apache Licence Version 2.0 (die „Lizenz“); Nutzung dieser
Datei nur in Übereinstimmung mit der Lizenz erlaubt.
Eine Kopie der Lizenz erhalten Sie auf http://www.apache.org/licenses/LICENSE-2.0.
Sofern nicht gemäß geltendem Recht vorg... |
89eadf1b71fbf10ee165b7dc7c91cc84d3898fe8 | ca86a7775a8e4a2f7b3ee831454939062a1a2900 | /cpp/RaspWrapCredential.cpp | b4b209cf2b78fdf04c02d4548d64fedb62021159 | [] | no_license | iboukris/RaspWrap | c84d5949dccdce937d501130139b0cc613b4de34 | 258bc8f042e1ddb137fdce1396513fdd29ced61a | refs/heads/master | 2023-02-26T10:17:25.261893 | 2021-01-31T14:19:49 | 2021-02-06T19:29:01 | 334,674,734 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,372 | cpp | RaspWrapCredential.cpp | //
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
#ifndef WIN32_NO_... |
1487faa085a70ce396f3d66072ffbb090bd2288c | 2c4f360dc9bbfd5892e29341245e3374125d6b60 | /AircraftDynamicsTestFramework/TestFrameworkFMS.cpp | 70387cbfc39f1031f8a09c3d539ef245d756fb4e | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mitre/FMACM | d5549ed4b0e26e72d8186afc77a57e4f3833d864 | a9fb00aef7561d2cb35af1163b44dda55a48c85f | refs/heads/master | 2023-09-03T01:13:05.401619 | 2023-08-16T20:48:59 | 2023-08-16T20:48:59 | 35,225,860 | 11 | 4 | Apache-2.0 | 2018-06-27T18:07:04 | 2015-05-07T14:49:02 | C++ | UTF-8 | C++ | false | false | 7,881 | cpp | TestFrameworkFMS.cpp | // ****************************************************************************
// NOTICE
//
// This work was produced for the U.S. Government under Contract 693KA8-22-C-00001
// and is subject to Federal Aviation Administration Acquisition Management System
// Clause 3.5-13, Rights In Data-General, Alt. III and Alt. I... |
72334a8268459abb554c75cde065edc4286f3cca | 592afcde25075a84292151c41a958be810c2b82d | /tests/unit/stat_mgr_test.cxx | c607ad6453c5643c377f37552a9fda48121e0ea4 | [
"Apache-2.0",
"Zlib",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | eBay/NuRaft | 2c854935cd377695bbb9cc6e049e7d8ece2fe829 | e44a81d3f4d7c2993d659cbd655be023e523ffc7 | refs/heads/master | 2023-08-30T16:07:32.282662 | 2023-08-27T06:07:23 | 2023-08-27T06:07:23 | 199,921,433 | 888 | 199 | Apache-2.0 | 2023-09-11T09:18:54 | 2019-07-31T20:05:08 | C++ | UTF-8 | C++ | false | false | 2,720 | cxx | stat_mgr_test.cxx | /************************************************************************
Copyright 2017-2019 eBay Inc.
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
https://www.apache.org/licenses/LICENSE-2... |
fbd337fb7a6830f2e97740f40cc5082745ade959 | cdda8a72c5db92fb0e1eb2d8c82a7db7520135d0 | /lib/eventloop/EventLoop1.h | 8f24af33cb35dd6daf93be680c10770f9e8139e7 | [] | no_license | DAN-AND-DNA/bfproxy | 84a9193adcfafb7a1fb7c9c913b100c2f2a0a83e | d1b7315edaeca552fa89a6f96697c29663b55e33 | refs/heads/master | 2020-05-03T08:42:09.973192 | 2019-05-05T09:18:36 | 2019-05-05T09:18:36 | 178,533,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 690 | h | EventLoop1.h | #pragma once
#include <common/utils.hpp>
#include <map>
#include <sys/epoll.h>
namespace dan { namespace eventloop {
class AnEvent1;
class EventLoop1 : common::NonCopyable
{
public:
EventLoop1() noexcept;
~EventLoop1() noexcept;
int Update(AnEvent1* pstNewEvent) noexcept;
void Wait() noexcept;
v... |
ca198d22fc66fcdc95a08b5b6d665c79997b9ef6 | b8a359d40f3fb53799c3e367a570524f352aebe0 | /modules/lidarlib/segmentation/groundseg/ground_filter.cpp | 797c31a7cba73242de9c3ede688c46a8f0eca011 | [] | no_license | zbdj1992/LidarAlgorithm | 51a2d040c627e617ed836d06d1fa7f055e886df9 | 43b931b32a4d8c7f40ff891730e4b93f139e69be | refs/heads/master | 2022-11-18T03:48:40.563495 | 2020-07-16T02:16:32 | 2020-07-16T02:16:32 | 279,800,024 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,278 | cpp | ground_filter.cpp | /**
* ground_filter.cpp
* Author: zhubin
* Created on: 2020-07-02
* Copyright (c) iRotran. All Rights Reserved
*/
#include "ground_filter.h"
#include <pcl/ModelCoefficients.h>
#include <pcl/segmentation/sac_segmentation.h>
#include <pcl/filters/extract_indices.h>
namespace lidar_algorithm {
namespace points_process {
b... |
d6b9ac7b1bf2044d93f950367b5453a45703a7ac | 407f30aece41a66005fbe6fd151e3c6f1720c041 | /include/DOM/BlackoutDOMNode.hpp | e14824a363d937ef74865b748a06d04d83747133 | [
"MIT"
] | permissive | Sage-of-Mirrors/Booldozer | b172a52f036e20d425862c50d8d12704cc993373 | 2a466d4a33399fecf7556a75de15030fe2e07d22 | refs/heads/main | 2023-08-21T14:30:29.998265 | 2022-08-08T04:13:14 | 2022-08-08T04:13:14 | 376,416,571 | 18 | 1 | MIT | 2021-09-11T22:35:15 | 2021-06-13T01:58:27 | C++ | UTF-8 | C++ | false | false | 729 | hpp | BlackoutDOMNode.hpp | #pragma once
#include "EntityDOMNode.hpp"
class LBlackoutDOMNode : public LEntityDOMNode
{
bool bIsActiveDuringBlackout;
public:
typedef LEntityDOMNode Super;
LBlackoutDOMNode(std::string name, bool isBlackoutEntity);
bool IsActiveDuringBlackout() { return bIsActiveDuringBlackout; }
static bool FilterBlackou... |
a758a05b20013c4cb1165dbd942d07d33246b2ef | 1972b018572ff69a63431094f323ca656d3677e8 | /baseboard.cpp | b5697431930727a6ef44fa2053504e48550be889 | [
"JSON"
] | permissive | yax571/sysinv | 7e4f286d91aa60d61c893731542e002e5f1934d8 | 985460bd958fbc38972342fba9f687dd1c0827c7 | refs/heads/master | 2020-06-18T23:40:22.577634 | 2015-10-16T07:36:19 | 2015-10-16T07:36:19 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 5,192 | cpp | baseboard.cpp | #include "stdafx.h"
#include "sysinv.h"
#include "smbios.h"
#include "baseboard.h"
// 7.3.1 Baseboard — feature flags
static LPCTSTR BOARD_FEATURES[] = {
_T("Hosting board"), // Bit 0
_T("Requires daughter board"), // Bit 1
_T("Removable"), // Bit 2
_T("Replaceable"), // Bit 3
_T("Hot s... |
28934864cc59783fbb59cec055d37c112bbdf2d2 | e36128cfc5a6ef0cef1da54e536c99250fc6fd43 | /Libs/src/YXC_Sys/Utils/YXC_OMemoryStream.cpp | 981fb62de1614f51ee3c591b450332364831c84c | [] | no_license | yuanqs86/native | f53cb48bae133976c89189e1ea879ab6854a9004 | 0a46999537260620b683296d53140e1873442514 | refs/heads/master | 2021-08-31T14:50:41.572622 | 2017-12-21T19:20:10 | 2017-12-21T19:20:10 | 114,990,467 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,022 | cpp | YXC_OMemoryStream.cpp | #include <YXC_Sys/YXC_OMemoryStream.hpp>
#define MIN_WRITE_MEM (1 << 12) // 4K
namespace YXCLib
{
OMemoryStream::OMemoryStream(byte* buf_ptr, size_t buf_len)
: MemoryStream(buf_ptr, buf_len), _manage_mem(0)
{
}
OMemoryStream::OMemoryStream(size_t buf_len) : MemoryStream(NULL, 0), _manage_mem(1)
{
buf_len = ... |
05c32f037693a8c56c93f6c98b9a7ea6bbdf00f5 | 051f23a83a9a66cffbfb7e9bd2a82310f8757bf6 | /src/filter.h | 6e1b5e7a9d260c1b51e3e3e4dbb0a4f134e71a30 | [] | no_license | JanKuiken/rp3synth | 1912bd5b74fcd742da2d8a84a3c9bb11f37d0b62 | 3741a09ed9ca10663b78533556658c660a971b06 | refs/heads/master | 2021-07-24T06:26:52.184986 | 2021-06-30T16:58:16 | 2021-06-30T16:58:16 | 171,031,855 | 0 | 0 | null | 2019-03-16T16:05:06 | 2019-02-16T17:35:51 | C++ | UTF-8 | C++ | false | false | 508 | h | filter.h | #ifndef FILTER_H
#define FILTER_H
#include <string>
enum FilterType { lowpass,
highpass
};
class Filter
{
public:
Filter(int in_rate);
void Start(double in_frequency, std::string in_type, double in_sensitifity);
double Next(double in_x);
private:
FilterType String... |
3a6e9d526367cd5fdabebdd7fb4d7a88fe3501cc | a06368ebe626e2373b3905ed7961fa2517c57ab2 | /Week 2 Program 26.cpp | 6f3e9b59537c650b67eb530f5d4aa1b0b1b1d254 | [] | no_license | gutty333/Practice-1 | 85fe2d171ea29fa329e953d5449bf9e7eb559bfa | ca88ceefe34e64a35f6ed6ad3a021a7b5a6117b7 | refs/heads/master | 2021-01-10T10:58:07.655402 | 2016-10-25T04:46:38 | 2016-10-25T04:46:38 | 46,999,755 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,363 | cpp | Week 2 Program 26.cpp | /***********************************************
Box office
A theater only keeps a percentage of revenue from ticket sales, the rest goes to the distributor
Write a program that finds the profit of the theater
1. Ask the user for the name of the movie
2. How many adult and child tickets were sold
3. An adult is ... |
5ac343c3846b579cb9ba60f474122bdd86e2b6da | 2933025b55b34ccf0242de29c41c71a119bfb819 | /1. Placements/3. Bitwise Algorithm/22. Finding a number.cpp | 77fcae2b58712234ce082b1c981c713fc45e810f | [] | no_license | rohitshakya/CodeBucket | 460050cf3cb5ae29eac0b92fb15ddc7a5a9d9d80 | 5c3632d5860873c74cce850eb33bd89fdd77ce0a | refs/heads/master | 2022-01-25T09:55:58.151327 | 2022-01-11T06:55:05 | 2022-01-11T06:55:05 | 253,870,196 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 206 | cpp | 22. Finding a number.cpp | class Solution {
public:
char findTheDifference(string s, string t) {
int res=0;
for(int i=0;i<s.length();i++)
res^=s[i];
for(int j=0;j<t.length();j++)
res^=t[j];
return char(res);
}
};
|
1d2286d15ff4deaf4ac0e50a349ede74066d7bc1 | 0e4de7b8dc768e39c051a006e18bfcf90008d502 | /DKApps/SDL2Rml2/RmlFile.h | 314fc3364740cf96cb2649b1c855ea54b6c131e8 | [] | no_license | aquawicket/DKTestApps | a35e2f391e80f53e2d431a05904882e97d7d9d00 | 813ceb3504569ce0f672d7fab465adbc5ed3009c | refs/heads/master | 2023-03-05T13:29:08.102269 | 2022-06-02T14:51:55 | 2022-06-02T14:51:55 | 83,649,975 | 1 | 0 | null | 2022-06-02T14:51:56 | 2017-03-02T07:48:46 | C++ | UTF-8 | C++ | false | false | 1,475 | h | RmlFile.h | #pragma once
#ifndef RmlFile_H
#define RmlFile_H
#include <RmlUi/Core.h>
#include "RmlUtility.h"
#include <filesystem>
class RmlFile : public Rml::FileInterface
{
public:
RmlFile(const Rml::String& assets);
static RmlFile* Get();
static bool ChDir(const Rml::String& path);
static bool pathExists(const Rml::String... |
9a154a2cbb97af5faa2a8ee7be8988c457240f5a | c5e26167d000f9d52db0a1491c7995d0714f8714 | /白马湖OJ/1602.cpp | 68c7ac926a756c352fd79f06a4a56bed23ccdff3 | [] | no_license | memset0/OI-Code | 48d0970685a62912409d75e1183080ec0c243e21 | 237e66d21520651a87764c385345e250f73b245c | refs/heads/master | 2020-03-24T21:23:04.692539 | 2019-01-05T12:38:28 | 2019-01-05T12:38:28 | 143,029,281 | 18 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 804 | cpp | 1602.cpp | #include <iostream>
#include <cstdio>
using namespace std;
int a[10015], b[10015], k[10015], w[10015];
void output(int, char, int[]);
int main()
{
int n, m;
scanf("%d", &n);
for (int i = 1; i <= n; i++)
{
scanf("%d", &a[i]);
}
scanf("%d", &m);
for (int i = 1; i <= n; i++)
{
scanf("%d", &b[i]);
k[i] = -1;
... |
f3c0cd2c4f6bfa5f68f4f49ee33fd70ecfc8a7b1 | 23e393f8c385a4e0f8f3d4b9e2d80f98657f4e1f | /AtlInternals2e/Chapter 05/MathServiceNoAttr/MathServiceNoAttr.cpp | 9b57eaadf54fa2d8baa2b1511f81568c1948c99a | [] | no_license | IgorYunusov/Mega-collection-cpp-1 | c7c09e3c76395bcbf95a304db6462a315db921ba | 42d07f16a379a8093b6ddc15675bf777eb10d480 | refs/heads/master | 2020-03-24T10:20:15.783034 | 2018-06-12T13:19:05 | 2018-06-12T13:19:05 | 142,653,486 | 3 | 1 | null | 2018-07-28T06:36:35 | 2018-07-28T06:36:35 | null | UTF-8 | C++ | false | false | 681 | cpp | MathServiceNoAttr.cpp | // MathServiceNoAttr.cpp : Implementation of WinMain
#include "stdafx.h"
#include "resource.h"
#include "MathServiceNoAttr.h"
#include <stdio.h>
class CMathServiceNoAttrModule : public CAtlServiceModuleT< CMathServiceNoAttrModule, IDS_SERVICENAME >
{
public :
DECLARE_LIBID(LIBID_MathServiceNoAttrLib)
... |
0c5c57c3ac5186c1f470879222de947eddf2e468 | 594de70e1ce7b82e1caf7152e3e64ecdb2c54ed0 | /src/library/textures.h | 15e10dfa97045b60d3de954962a0718e40a951e7 | [
"BSD-2-Clause"
] | permissive | yeahren/RSXGL | d91762bf96bdcdf6a273595f6fc4ad7aa47c1c04 | 86f7470be2d10d5a3590851687cbe6c79b414bf5 | refs/heads/master | 2021-01-18T11:20:55.568029 | 2011-09-21T09:14:38 | 2011-09-21T09:14:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,074 | h | textures.h | //-*-C++-*-
// RSXGL - Graphics library for the PS3 GPU.
//
// Copyright (c) 2011 Alexander Betts (alex.betts@gmail.com)
//
// textures.h - Private constants, types and functions related to texture maps.
#ifndef rsxgl_textures_H
#define rsxgl_textures_H
#include "gl_constants.h"
#include "rsxgl_limits.h"
#include "gl... |
112483a6ad1525371f0b97b1421a781dd5bbeedf | 5138837a0034d705693f86debb3c4d069e09d48c | /HW2B/solution/read_recursively.cpp | 1af4070c4b8fc1071a44deeef78cbd937d45993d | [] | no_license | mv123453715/CCU_2019_Object-oriented_Programming | f45bc68e929bb2fa6570086a50ca382ad553bba1 | 5e538db26a2aa0d2640e969f1eba5576100764ac | refs/heads/master | 2022-11-11T19:20:54.194984 | 2020-07-01T03:33:33 | 2020-07-01T03:33:33 | 276,267,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,320 | cpp | read_recursively.cpp | #include "refs.h"
#include <bits/stdc++.h>
using namespace std;
//read_recursively
int read_recursively (fstream& file, RingNode*& current,RingNode*& head,int &size){
char c;
if ( !file.eof() ){
file.get(c);
//if c is \0 file.close() and current->next = head ,so we can get Rin... |
86656c8e560cb9baea85482cded5f86bca7ad766 | d5fdeaa6900f7bfc3aa7d3048fb803bb43b400a5 | /GCLDProject2/.svn/pristine/db/db1d353e2d6c5674d06cdf579077e4acb3ec86a5.svn-base | 82a2fa39ac8731d9f01f54d40a4ac02eca20a630 | [] | no_license | liu-jack/cxx_sth | 52e1f0b190fe23fb16890cadd9efa15de59e70d0 | 986a0782d88405af83ae68ef124ff8cf19ada765 | refs/heads/master | 2020-05-07T13:53:03.555884 | 2017-11-17T02:26:55 | 2017-11-17T02:26:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 665 | db1d353e2d6c5674d06cdf579077e4acb3ec86a5.svn-base |
#include "Activity.pb.h"
#include "PlayerData.h"
#include "utility/MsgTool.h"
#include "data/ZhengWuTable.h"
#include "data/DbProxyDataMgr.h"
#include "boost/typeof/typeof.hpp"
bool PlayerData::save_zheng_wu()
{
m_ZhengWuTable.SaveMod();
return true;
}
void PlayerData::WritePlayerZhengWu(pb::GxDB_GovAffairsInfo& ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.