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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2b71704e4cb0ab19327ab37761ed606dd0a3d34 | e2c48e041d2983164cf04bc49d37f3bc7324f2d3 | /Cplusplus/_0000_study/_leetcode/_swordoffer/_028_isSymmetric/_swordoffer_28_main.cpp | 3baf16ee14043bd4ab02377e39f0a89556b1e72b | [] | no_license | ToLoveToFeel/LeetCode | 17aff7f9b36615ccebe386545440f921d8fdf740 | de7a893fc625ff30122899969f761ed5f8df8b12 | refs/heads/master | 2023-07-12T07:35:09.410016 | 2021-08-23T02:33:00 | 2021-08-23T02:33:00 | 230,863,299 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | cpp | _swordoffer_28_main.cpp | // Created by WXX on 2021/7/19 11:13
#include "MyTree.h"
class Solution {
public:
bool isSymmetric(TreeNode *root) {
if (!root) return true;
return dfs(root->left, root->right);
}
bool dfs(TreeNode *p, TreeNode *q) {
if (!p && !q) return true;
if (!p || !q || p->val != q->v... |
c7681f9516025543a44db7acbac5cea3fe48ed5d | 0ec74eeede904f900140cd6b53714d110789b6f9 | /mymap.cpp | 70cb2312f5d0c9dbf814cf608e9fe3d3d123d1cc | [] | no_license | 1393987347/Mymap | a2bf629fa1bb8099340f23fc1214ac5547161e51 | a3f7dcd1317af49a9c9a6e14802e8e9c4914d6d3 | refs/heads/master | 2021-08-16T16:47:28.983126 | 2017-11-20T05:29:01 | 2017-11-20T05:29:01 | 111,365,675 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 223 | cpp | mymap.cpp | #include <iostream>
#include <cstring>
using namespace std;
template <typename T>
class Mymap
{
Mymap <string, string> map = new Mymap<string, string>();
};
void insert(string, string)
{
}
int main(void)
{
} |
d4cac4954d78fc532b47fae45ff1dda78b6106e9 | 6e57eb71595cf82353150eb149e186a31e76e506 | /main.cpp | 4ca33cfbe654049dce27341f3b4ab560c1e5de18 | [] | no_license | umerzia-7001/Hashtable_with_AVL | dc56fd0497013d19ddb6072145e872b0c983095d | 3a7e75705e5832bd72de1b8345967119c6a3e549 | refs/heads/main | 2023-02-28T11:42:02.960288 | 2021-02-05T18:17:51 | 2021-02-05T18:17:51 | 336,352,896 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,760 | cpp | main.cpp | //
// Created by Umer on 04/02/2021.
// Importing requirements
#include <iostream>
#include "HashTable.cpp"
#include "AVL.cpp"
using namespace std;
// Add a name into hashTable
void insert(hashTable avlHashTable){
string inputData;
cout << "Enter Data you want to enter:";
getline(cin, inputData);
cin.... |
41318548fe7649c25b3dfcfe5a91abf88b5f94f2 | 9d364cba2641ea99ac9b0dfb28f065de5e6a3457 | /src/Things/Structures/University.h | b81377ea6771b3c21edb27364b52a50a64f3d45a | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | Goof-fr/OPHD | f4019db3e2681d5d371a3c87a6e47dd8a817fdb0 | ab3414181b04ab2757b124d81fd5592f930c5370 | refs/heads/master | 2020-03-14T03:24:06.699220 | 2020-01-27T19:44:02 | 2020-01-27T19:44:02 | 236,367,556 | 2 | 0 | BSD-3-Clause | 2020-01-26T19:54:36 | 2020-01-26T19:54:35 | null | UTF-8 | C++ | false | false | 530 | h | University.h | #pragma once
#include "Structure.h"
#include "../../Constants.h"
class University : public Structure
{
public:
University() : Structure(constants::UNIVERSITY, "structures/university.sprite", CLASS_UNIVERSITY)
{
sprite().play(constants::STRUCTURE_STATE_CONSTRUCTION);
maxAge(500);
turnsToBuild(4);
requiresC... |
1af1d1ca9a4c0af95c9b624573ae10ac841185d2 | 604930c37b162a7c16aabda9a2342416f8e64a02 | /Code Chef C++ Answers/DWNLD.cpp | fb00ed40369ee2d8ac624320dd123f96e6c7cc64 | [] | no_license | DecimatorMind/Code-Chef-CPP-Answers | b6357188769e4c0227cdcf3cc65f91e09e9ca01a | 86ca3f4f6d477d4f05fc2368c1a54aa8bfdc817f | refs/heads/master | 2023-03-02T17:13:53.410553 | 2021-02-15T03:25:58 | 2021-02-15T03:25:58 | 275,600,860 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 686 | cpp | DWNLD.cpp | //
// DWNLD.cpp
// Code Chef C++ Answers
//
// Created by Pranjal Bhardwaj on 31/07/20.
// Copyright © 2020 Pranjal Bhardwaj. All rights reserved.
//
#include <iostream>
using namespace std;
int dwnld(){
int iter {};
cin >> iter;
for (int i = 0; i < iter; i++){
int n,k,result {};
cin >... |
92d0b3d7318002519808e4dc9fe0185a96d45bf0 | 094507fb25fd5774bbf89b5d84c15a132b596e78 | /StepFeatures.cpp | d0d79a6a869ec4849e9ddd0355d96cdccdfca8c4 | [] | no_license | csverma610/PocketDetector | e45c806bd71c7979c6ba9e14fe4eeb135741da15 | c4b372c79720b346ae48462af59d80355f95e536 | refs/heads/master | 2020-04-03T01:29:51.566696 | 2018-10-27T06:18:36 | 2018-10-27T06:18:36 | 154,932,510 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,762 | cpp | StepFeatures.cpp | #include "GModel.hpp"
//////////////////////////////////////////////////////////////////////////////////////
void ReorientModel( JFace *seedface, GModel *model)
{
}
//////////////////////////////////////////////////////////////////////////////////////
void BFSearch( JDualNode *node, JGraph *graph, JFaceSequence &side... |
00d1d1161cb469569a61f3b4d2af4ff703fd6367 | be2e23022d2eadb59a3ac3932180a1d9c9dee9c2 | /GameServer/MapGroupKernel/NpcStorage.h | 98d53170176d6f4f8292931cc5f4550b75abe825 | [] | no_license | cronoszeu/revresyksgpr | 78fa60d375718ef789042c452cca1c77c8fa098e | 5a8f637e78f7d9e3e52acdd7abee63404de27e78 | refs/heads/master | 2020-04-16T17:33:10.793895 | 2010-06-16T12:52:45 | 2010-06-16T12:52:45 | 35,539,807 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 880 | h | NpcStorage.h |
#pragma once
#include "Item.h"
#include "Myheap.h"
#include "Package.h"
class CPackage;
class CNpcTrunk
{
protected:
CNpcTrunk();
virtual ~CNpcTrunk();
public:
static CNpcTrunk* CreateNew() { return new CNpcTrunk; }
ULONG Release() { delete this; return 0; }
public:
bool Create(PROCESS_... |
60c9c23874ed752ebdf41631d9e90849fd7dcb5f | 0f15a1536f6fe86ffb49092abb30b38217c376c6 | /MFC_SDI_Client/MFC_SDI_Client/WarningDlg.h | fd3c8bb1cb1ab378e1441354033c391938705878 | [] | no_license | jiangkid/smart-lighting | a5898a59a7ece0e1ff9ef1dd1778af9d047a0f84 | 0f6a32cbc0f30e730271c2c2ec2bddd4c6edf326 | refs/heads/master | 2020-06-04T07:20:40.718285 | 2012-06-20T06:05:23 | 2012-06-20T06:05:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 908 | h | WarningDlg.h | #pragma once
#include "afxwin.h"
//#include "ControlWaringDlg.h"
// CWarningDlg dialog
class CWarningDlg : public CDialog
{
DECLARE_DYNAMIC(CWarningDlg)
public:
CWarningDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CWarningDlg();
// Dialog Data
enum { IDD = IDD_WARNING_DLG };
pro... |
5d96390d723adc88dbe1dd46ff843fc588a0b426 | 726431091eb4b9ada6effd22ec04f1a8f1e84cc6 | /RadixSort.cpp | b906455319376df40d550c686ea38ba476429780 | [] | no_license | AjaySankar/Algorithms | c54004dc7ce2f65a01fa326fd347084d2a056b5b | e3edad23510eda5d176609c0ad8df70ad267c2cd | refs/heads/master | 2021-01-19T08:58:33.994594 | 2019-05-11T06:18:44 | 2019-05-11T06:18:44 | 87,701,775 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,069 | cpp | RadixSort.cpp | #include <iostream>
using namespace std;
#define MAX 10
//MAX defines the range of elements in the array 0 to MAX-1
void PrintArray(int *arr,int n){
for(int i=0;i<n;i++)
cout << arr[i] << " ";
}
void CountSort(int *arr,int n,int exp){
int count[MAX];
for(int i=0;i<MAX;i++)
count[i]=0;
fo... |
3ea9126d2e6f0aee344bd16638f0dfb6b7d74666 | d352cb980107b8665e63c8b8b21e2921af53b8d3 | /toph/implementation/version-checker.cpp | 8d5d66c10d8b6a6ee3c3d79100c509df76f2a003 | [] | no_license | sir-rasel/Online_Judge_Problem_Solve | 490949f0fc639956b20f6dec32676c7d8dc66a81 | 9fb93ff4d143d56228443e55e8d8dac530ce728b | refs/heads/master | 2021-06-03T19:48:04.700992 | 2021-03-30T16:41:03 | 2021-03-30T16:41:03 | 133,169,776 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 361 | cpp | version-checker.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
string a,b;
cin >> a >> b;
stringstream as(a),bs(b);
int x,y;
bool flag=true;
while(as >> x && bs >> y){
if(x>y) break;
else if(x<y) {flag=false;break;}
char c;
as>>c;
bs>>c;
}
if(flag) cout << a << "\n";
... |
fbe2352ecfd5bb4655e548b66732f240f3298d50 | 3873163d3ccfd45121d364010b52108cc5118378 | /lab04/rectangle.cpp | 7602227ca94e2768b78a5bc514cda50c60c8a052 | [
"MIT"
] | permissive | juditacs/bop2 | d518f0e5dea59b0ac0a0b86813f3149c0aa5a7cf | 239c59bf07fa95d2e0f3f780e219b9aa94456576 | refs/heads/master | 2021-01-07T08:31:01.475319 | 2020-05-06T16:12:59 | 2020-05-06T16:12:59 | 241,634,932 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 677 | cpp | rectangle.cpp | #include "rectangle.h"
Rectangle::Rectangle(double a, double b) {
if (a < 0) {
std::cerr << "Rectangle side [a] cannot be negative, setting it to 0\n";
a = 0;
}
if (b < 0) {
std::cerr << "Rectangle side [b] cannot be negative, setting it to 0\n";
b = 0;
}
this->a = a... |
e87776ac62b66a479ffeb6e3c39f25baec829bca | d743b2d40957a3c07e8bfc03ea69e459c96ace56 | /201 Bitwise AND of Numbers Range/201.cpp | 107029d918b632fdbeb0e455c1cddc8441ab469b | [] | no_license | TakuyaKimura/Leetcode | f126e72458f7a1b6eb8af9dd874fc2ee77eefe01 | 6f68ed674a3de7d2277c256583c67dda73092dc0 | refs/heads/master | 2021-01-10T21:39:48.227089 | 2016-02-06T11:08:29 | 2016-02-06T11:08:29 | 40,781,363 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,226 | cpp | 201.cpp | /*
Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive.
For example, given the range [5, 7], you should return 4.
*/
#include <cmath>
class Solution {
public:
int rangeBitwiseAnd(int m, int n) {
while (n > m)
n &= n - 1; // c... |
76707f55e03805be430e9101d02ce07a54fccd4a | d4645102c926c4406713bccbb00b889d5e46f593 | /LibraryDemo/LibraryDemo/ObjectManager/ObjectManager.cpp | 6217459fdbc218ce3dc074098d68e5c22a808082 | [] | no_license | shibata0430/DemoLibrary | 5646632185a36a7e6103d8d7bab6817882094c04 | 9d473344d55f1b7a4a5a1546fc13738180c0c58c | refs/heads/master | 2021-01-18T16:45:59.794666 | 2017-06-01T16:12:17 | 2017-06-01T16:12:17 | 86,765,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 790 | cpp | ObjectManager.cpp | /**
* @file ObjectManager.cpp
* @breif 出てくるオブジェクトを管理しているクラス実装
* @author shibata
*/
#include "ObjectManager.h"
#include "../Character/CharacterManager.h"
#include "../Field/FieldManager.h"
#include <Library\DebugSystem.h>
#include <Library\Define.h>
ObjectManager::ObjectManager() :
m_pCharacterManager(New Characte... |
0f1efbe2d20de94562587f204ba57890daa85f00 | 6b01b545dc9fe1222f963344c5ba306863996933 | /include/Graph.hpp | 5c94ea69fc4a3dd06165c66340e1ab87ff45e6e5 | [
"MIT"
] | permissive | SynapticNulship/Anibots | bdd2a94323355026c7595f2c3f0c7418031e33e5 | c1737c7e2aec710b96a4b48433b6ff45fbb0bb46 | refs/heads/master | 2018-09-06T15:33:50.901558 | 2013-09-19T04:28:48 | 2013-09-19T04:28:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,457 | hpp | Graph.hpp | /** @file
@author Samuel H. Kenyon <sam@synapticnulship.com>
http://synapticnulship.com
@copyright Copyright (c) 2004-2013 Samuel H. Kenyon. This is open source,
made available under the MIT License (see the accompanying file LICENSE).
*/
#ifndef _GRAPH_H_
#define _GRAPH_H_
#include <fstream>
#includ... |
7ab93f7e5033f1dd39216e69d0d8b7fab02d466c | 88b46d6d433a5b4fda84665d78ef05dd972814cd | /src/gui/widgets/detailedit.hpp | f2ac1ecb263d7d6d33f17005dd810a00dcfb86f5 | [] | no_license | yamamushi/Moneychanger | 5f9261c263c7b8421a1028d9902caccd279b1539 | 5c918bfc124baae454eecc95321f952a6c5ce4c0 | refs/heads/master | 2021-01-18T04:04:11.414157 | 2016-02-23T17:30:53 | 2016-02-23T17:30:53 | 26,220,373 | 1 | 1 | null | 2015-01-20T11:25:37 | 2014-11-05T13:18:30 | null | UTF-8 | C++ | false | false | 5,920 | hpp | detailedit.hpp | #ifndef DETAILEDIT_HPP
#define DETAILEDIT_HPP
#include "core/WinsockWrapper.h"
#include "core/ExportWrapper.h"
#include <QPointer>
#include <QWidget>
#include <QTabWidget>
#include <QVBoxLayout>
#include "core/mapidname.hpp"
namespace Ui {
class MTDetailEdit;
}
class MTEditDetails;
class Moneychanger;
class DlgM... |
ea93a77db0134701f60fd7a4435ba95c7e4cdefd | 9b6b495328298488d853821493bec042270f3e1b | /code/reverseLinkedList.cpp | 16058db20603d26260712f2a77dc4042a3e1882a | [] | no_license | RaymondWaterlooLi/InterviewQuestion | 664a3213cc93504fc0df07f22a411b4e194f116c | b492044c4c7f575dd053afafac4058baa9ed5420 | refs/heads/master | 2020-04-18T00:45:08.249281 | 2020-02-24T21:16:10 | 2020-02-24T21:16:10 | 167,089,641 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 621 | cpp | reverseLinkedList.cpp | //
// Created by Raymond Li on 2019-01-26.
//
#include <iostream>
using namespace std;
struct node {
int num;
node* next;
};
void reverseList(node* t, node* prev) {
while (t != NULL) {
node* temp = t->next;
t->next = prev;
prev = t;
t = temp;
}
}
//int main() {
////... |
3062593d9d2010a9c8dd8b5513116668eb472921 | a99a27dadf5a47667795f0ecc73fb1510263fc26 | /src/lib/synthetic/TorusField.cpp | b3b5367e363843441823ba176a4999dd672a441e | [
"MIT"
] | permissive | SCIInstitute/Cleaver | 5b9c49aca788dcb7d102e6f1a7253814b37f94df | 04338ff9e68e4cfb9a1bbec36a674e107e44e1f2 | refs/heads/master | 2023-05-27T11:28:54.972421 | 2023-05-14T21:26:48 | 2023-05-14T21:26:48 | 21,179,667 | 1 | 0 | NOASSERTION | 2023-05-14T21:26:50 | 2014-06-24T20:25:44 | C | UTF-8 | C++ | false | false | 1,667 | cpp | TorusField.cpp | #include "TorusField.h"
#include <cmath>
#include <cassert>
#include <vector>
using namespace cleaver;
TorusField::TorusField(const vec3 &cx, float ur, float vr, const BoundingBox &bounds) :
m_bounds(bounds), m_cx(cx), m_ur(ur), m_vr(vr)
{
}
double TorusField::valueAt(double x, double y, double z) const
{
retu... |
f32580942ad7caf5e65b50a1ef63cfbec0c9873d | 327c8d0a42e42ffc15284c42078fe5b2e91b7358 | /cpp/24.SwapNodesInPairs.cpp | a7196d44f77192f1d37b1c2906f5197a380bdd2e | [] | no_license | HONGJICAI/LeetCode | 90f969f1fd5c33ed5d9202e1898019484dd78f00 | 7170ddea769f9fbcceb1be4d3bad1c4d1fc11db0 | refs/heads/master | 2021-01-19T09:00:57.302687 | 2019-06-30T15:25:05 | 2019-06-30T15:25:05 | 87,710,391 | 0 | 0 | null | 2020-10-03T09:24:58 | 2017-04-09T13:26:54 | C++ | UTF-8 | C++ | false | false | 1,226 | cpp | 24.SwapNodesInPairs.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution { // recursion 0ms
public:
ListNode* swapPairs(ListNode* head) {
function<ListNode*(ListNode*,ListNode*,ListNode*,ListNode*)> swap= [&... |
dc75ebc83abecaac8abbb61448cf32aa7ed2fd87 | c98b2280a8083374d88d26a05edbebe044963ca2 | /Meet_In_The_Middle/1093.cpp | 050881d9a37d5c5476998bec9f3eeb443d47c5f0 | [] | no_license | hihiroo/BOJ | 3b41c3dfb7e317ae76a0ead9261dc177da4f47b8 | c851f3e8e93a353239ce4e25184b2dd97481575b | refs/heads/master | 2022-06-24T08:24:39.639149 | 2022-06-02T04:50:04 | 2022-06-02T04:50:04 | 216,061,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,929 | cpp | 1093.cpp | //스티커 수집
#include<bits/stdc++.h>
#define pb push_back
#define lli long long
#define mp make_pair
#define fst first
#define snd second
using namespace std;
#define it map<int,int>::iterator
int n, price[35], value[35],k;
map<int,int> r,l;
void f(int idx, int p, int val, bool isLeft){
if(isLeft && idx == (n+1)/2){... |
b082550e950ee924b57a4fdd896f7c19a93626c0 | 4732757f4f519ca274d77230d11c1607f4fef0b9 | /src/neural/global_neural_network_param.h | d79b8eeb75590cee89255c398a03542a9b589ca7 | [] | no_license | allanj/StatNLP-Framework | b97b6d7e0ff284787d9636131c633908fb508948 | b862c9f54e0bbed4af1b3c90a51959793d58e585 | refs/heads/master | 2020-03-28T21:08:08.505389 | 2018-09-17T12:24:09 | 2018-09-17T12:24:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,250 | h | global_neural_network_param.h | //
// Created by ngs on 03/09/2018.
//
#ifndef STATNLP_GLOBAL_NN_PARAM_H
#define STATNLP_GLOBAL_NN_PARAM_H
#include "neural_network.h"
#include "src/common/common.h"
#include "dynet_interface.h"
#include "neural_factory.h"
class Network;
class LocalNetworkParam;
class GlobalNeuralNetworkParam{
public:
GlobalNeu... |
9da3972e7ac82f486d240d3b72cbfbe8e625b1cb | 3c89528fa43ccd6bd22e593eac571aefa00766e0 | /src/main/cpp/Balau/ThirdParty/Date/tz_private.hpp | 07800862ccfd6d282dc31d0dc1c5dbbd6296d808 | [
"BSL-1.0"
] | permissive | pylot/balau | f371e54ec94e7ebc08d973105bd17e052e8a7157 | 079a7ad4dfa35f179454b543af9d3f10c870f271 | refs/heads/master | 2020-09-21T15:58:18.897256 | 2019-11-24T09:00:21 | 2019-11-24T09:00:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,698 | hpp | tz_private.hpp | // The MIT License (MIT)
//
// Copyright (c) 2015, 2016 Howard Hinnant
//
// 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... |
3a9e75dee4b42beafc8fb10be810f940122d9a8e | 058229aeedbfbabe06021e1bb494fda66167da27 | /sources/historybrowserwindow.cpp | fb7a77f4a5922519e221d6fc29ce4aec09fbe89e | [
"MIT"
] | permissive | kr0st/fpgui | 371fe3445e5f308879b35251c9dc628bc17868d8 | 26c584648b3954fd86f1499f8898c96156e33e9e | refs/heads/master | 2021-06-05T11:16:28.393474 | 2021-01-09T19:22:54 | 2021-01-09T19:22:54 | 101,194,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,221 | cpp | historybrowserwindow.cpp | #include <QClipboard>
#include "historybrowserwindow.h"
#include "ui_historybrowserwindow.h"
#include <utils.h>
#include <settings.h>
#include <set>
namespace fpgui { namespace ui {
HistoryBrowserWindow::HistoryBrowserWindow(QWidget *parent) :
QWidget(parent),
ui(new Ui::HistoryBrowserWindow)
{
ui->setu... |
da872f0922d54745451a9b82c26a79d5377af75a | 1ad0d32ddfdcbaf2b710f950cc01a31a36661314 | /builder.cpp | 3a4e36231accae609ea9b77e00e93922eb204724 | [] | no_license | ascend4nce/columbia | 4c2e5df0632b209e8987b22d7ff04a9970349efb | b627c84219cfdd549374aea1b23d4c9ce3ae0e53 | refs/heads/master | 2020-07-26T09:57:44.829631 | 2019-09-15T14:57:11 | 2019-09-15T14:57:11 | 208,609,893 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 811 | cpp | builder.cpp | #include <mkl.h>
#include <mkl_rci.h>
#include <mkl_blas.h>
#include <mkl_spblas.h>
#include <mkl_service.h>
#include <cmath>
#include <cstdio>
#include "matrixCSR.h"
#include "maxvol.h"
#include "nonlinearities.h"
#include "fullscheme.h"
#include "newton.h"
#include "reduction.h"
#include "constants.h"
#include "colum... |
30655488901d91f209b42c1baa14ef020d3d92e1 | f7e8786b1e62222bd1cedcb58383a0576c36a2a2 | /src/mojo/edk/embedder/process_type.h | 4ea439e5fa500df7854fa19daa0edb7a58d858ae | [
"BSD-3-Clause"
] | permissive | amplab/ray-core | 656915553742302915a363e42b7497037985a91e | 89a278ec589d98bcbc7e57e0b80d055667cca62f | refs/heads/master | 2023-07-07T20:45:40.883095 | 2016-08-06T23:52:23 | 2016-08-06T23:52:23 | 61,343,320 | 4 | 5 | null | 2016-08-06T23:52:24 | 2016-06-17T03:35:34 | C++ | UTF-8 | C++ | false | false | 835 | h | process_type.h | // Copyright 2015 The Chromium 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 MOJO_EDK_EMBEDDER_PROCESS_TYPE_H_
#define MOJO_EDK_EMBEDDER_PROCESS_TYPE_H_
#include <ostream>
namespace mojo {
namespace embedder {
enum class... |
e11da7e6f2cccf921ba0f51af1b56a24c3c4151c | 6ef6ff3ebace348edf205af760d528625a69c3dc | /pepestreamer/src/common/color.cpp | a9c3ea8c828c83a874b0f7f733e4dd1537a5fe99 | [] | no_license | pepe-gamedev-studio/pepestreamer | 3df70633bffc333d778a2a86738564055d64478d | aaf85b44701003c2ef2ec72e02bee456f627732d | refs/heads/master | 2023-04-04T09:54:00.456371 | 2021-04-17T15:22:53 | 2021-04-17T17:59:46 | 358,948,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 437 | cpp | color.cpp | #include "color.h"
namespace pepestreamer {
uint8_t Clip(uint8_t x) { return x > 255 ? 255 : x < 0 ? 0 : x; }
Yuv Rgb2Yuv(const Rgb &color) {
return {Clip(((66 * color[0] + 129 * color[1] + 25 * color[2] + 128) >> 8) + 16),
Clip(((-38 * color[0] - 74 * color[1] + 112 * color[2] + 128) >> 8) + 128),
... |
5fa49efb5724a8b4255675b87d2ff39fa3ee0c7c | 74fbb21630be2da23e0dd5a16071e4a663b11261 | /main.cpp | a55b0be8bf62a3378f9661125dd38e05478ee2d8 | [] | no_license | rrivas-utec/poo2_unit5_week8_2021_0_exercise | 3298162b29ca3e50e9ca7a82cb42d13e2e1e04bc | f4a9f78d1dc96b4ca29b4d0e22b028ff99ba559a | refs/heads/master | 2023-03-08T12:48:06.116678 | 2021-02-26T22:55:19 | 2021-02-26T22:55:19 | 342,721,159 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 84 | cpp | main.cpp | // --------- DON'T TOUCH --------
#include "global.h"
int main() {
return 0;
}
|
451606a78e4c221b49e4ecd53f77897e77944c16 | bb0e13d6a34696c66e84a42c44586793a22a8be9 | /byte/byte/byte.cpp | b6de31136f2b00c183635ddba5ebd65dae5e92c8 | [] | no_license | NikitaVrnk/byte | cce9aba68aaea34dcf88aee17326ed7882696fc4 | e7f5fe42cac67f2cb03bf433cbfb1c2202dd38b9 | refs/heads/main | 2023-02-17T22:18:07.914139 | 2021-01-10T18:36:49 | 2021-01-10T18:36:49 | 324,612,779 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,689 | cpp | byte.cpp | #include <iostream>//Для работы с клавиатурой
#include <fstream>//Для работы с файлами
#include <bitset>
#define FLOAT_ARRAY_SIZE 5
#define OUTPUT_INT_ARRAY_SIZE 10
// опции флагов
#define FLAG_option_1 0
#define FLAG_option_2 1
#define FLAG_option_3 2
#define FLAG_option_4 3
#define FLAG_option... |
a545c1712fc69e852aa75cf23c9e1c4f6ebb4f67 | 916109bf168239202442498e568b2bfc9a8bc8a9 | /src/asiEngine/asiEngine_RE.cpp | c2938e686d55cc77c25d616390e00d8046a62403 | [
"BSD-3-Clause",
"MIT"
] | permissive | yeeeeeeti/3D_feature_extract | 35da69cd64cd6ed6c92fd4541da5de7bb96dc2b6 | 6297daa8afaac09aef9b44858e74fb2a95e1e7c5 | refs/heads/master | 2020-09-05T02:27:30.997017 | 2019-11-07T01:24:26 | 2019-11-07T01:24:26 | 219,956,109 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,805 | cpp | asiEngine_RE.cpp | //-----------------------------------------------------------------------------
// Created on: 06 October 2018
//-----------------------------------------------------------------------------
// Copyright (c) 2018-present, Sergey Slyadnev
// All rights reserved.
//
// Redistribution and use in source and binary forms, w... |
8c4ad314cc203d8b7ce5162af2eacf39a1d5988f | 7b7498dcc9f0ab771c32743517c863e41f2411b7 | /_not_used/m_marsh.h | 5e206976582946536df95fb74cc4ca5ab95df429 | [] | no_license | yx500/mvp_classes | b544ebae63807db66f2542628ff793d3e60dac1f | 93c02bcd8fa8b500e8fb274d44039ca3fbbb7da2 | refs/heads/master | 2023-04-05T02:38:04.956275 | 2021-04-07T10:41:04 | 2021-04-07T10:41:04 | 254,649,997 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 754 | h | m_marsh.h | #ifndef M_MARSH_H
#define M_MARSH_H
#include "m_marsh_str.h"
class m_Marsh : public m_Base
{
Q_OBJECT
MYPROP(int, GROUP)
MYPROP(ObjectLink, SV1)
MYPROP(ObjectLink, SV2)
Q_PROPERTY(bool USTANOVLEN READ USTANOVLEN DESIGNABLE true STORED false)
public:
Q_INVOKABLE m_Marsh(QObject *parent = 0);
... |
d3334d49f8e13ee7faf902872cf7bac49080b646 | fd8f3e0e6c297c82760fbb90edc5b6188e42b28a | /src/RwCalculators/GReWeightUtils.cxx | 9188ce4a09aa01285d9514ff4e522f12c8acd063 | [] | no_license | sjgardiner/Reweight | 998b81d0450799c1e4c63d6f8f5263b9f4e878c4 | 1a685cec649f406e65a3b999dea2caed77759f9a | refs/heads/master | 2022-10-30T08:13:27.912159 | 2021-11-15T15:45:30 | 2021-11-15T15:45:30 | 160,225,545 | 0 | 3 | null | 2018-12-17T16:19:12 | 2018-12-03T17:03:55 | C++ | UTF-8 | C++ | false | false | 9,836 | cxx | GReWeightUtils.cxx | //____________________________________________________________________________
/*
Copyright (c) 2003-2018, The GENIE Collaboration
For the full text of the license visit http://copyright.genie-mc.org
Author: Jim Dobson <J.Dobson07 \at imperial.ac.uk>
Imperial College London
Costas Andreopoulos... |
8408111c26ba619299d882b28f2dea2479f85330 | 35fc9126009a7f2638330879304ab5730969d4f5 | /Base/src/EventSync.cpp | 6687468931eb3d8e48c6ed6ef287c4cb819fb868 | [] | no_license | ruguiru/suholib | 24d556b683ee765d143e093e044c8e044640d807 | 0e309be7126b09a2ad90bdc42a6b46659adab919 | refs/heads/master | 2023-03-29T11:43:42.293821 | 2023-03-26T17:56:27 | 2023-03-26T17:56:27 | 119,015,405 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 406 | cpp | EventSync.cpp | #include "EventSync.h"
using namespace suho::thread;
void EventSync::Wait()
{
std::unique_lock<std::mutex> lock( _mutex );
_condition.wait( lock, [&] () { return _signal; } );
lock.unlock();
}
void EventSync::Set()
{
std::lock_guard<std::mutex> lock( _mutex );
_signal = true;
_condition.notify_one();
}
void ... |
7e814f1b382d5ffefbf27119a685c81d3e9a6e73 | 052803ba6222d92580f3bbe18a4872e0a0490276 | /FowlPlay/src/Character/Character.h | e2c5bef347a77a15e808c3d23242f39e03fa748f | [] | no_license | GPHS-Code-Club/GPHS-Hall-of-Fame-February | 0b005f8d575bf130132c7745f52645919f6db1bf | 34c3b42a803ada8ebb7240a80ef1a56bc8475745 | refs/heads/main | 2023-03-09T07:34:59.394990 | 2021-02-26T17:53:02 | 2021-02-26T17:53:02 | 342,413,078 | 0 | 1 | null | 2021-02-26T17:50:45 | 2021-02-26T00:04:36 | null | UTF-8 | C++ | false | false | 1,133 | h | Character.h | #pragma once
#ifndef CHARACTER_CHARACTER_H_
#define CHARACTER_CHARACTER_H_
#include "../input.h"
#include "../Animation/Animator.h"
class Character {
const char *texture_path;
const char *bullet_path;
const char *feather_path;
const char *eggshell_path;
command_map commands;
int bullet_damage;
int move_speed_... |
5a960c3a4ce837a7122a3497b77765fc589da89a | 4b77ab97f97309fe75067059d230dd4250801938 | /src/DRISE/pch.h | ccff67caa1a7d262b8359cc9daeecce87b8bd178 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | aravindkrishnaswamy/RISE | de862c1ab15fe2ed1bc620f3c3939430b801d54d | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | refs/heads/master | 2020-04-12T16:22:44.305654 | 2018-12-20T17:27:30 | 2018-12-20T17:27:30 | 162,610,783 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,535 | h | pch.h | //////////////////////////////////////////////////////////////////////
//
// pch.h - Precompiled header for DRISE
//
// Author: Aravind Krishnaswamy
// Date of Birth: November 24, 2003
// Tabs: 4
// Comments:
//
// License Information: Please see the attached LICENSE.TXT file
//
//////////////////////////////////... |
2c94af62b7888df2426661e087562394dbc7aaab | 387549ab27d89668e656771a19c09637612d57ed | /DRGLib UE project/Source/FSD/Private/TreasureBoxAnimInstance.cpp | 320cba88b8aea7478b751b0cf53364167dbc29c6 | [
"MIT"
] | permissive | SamsDRGMods/DRGLib | 3b7285488ef98b7b22ab4e00fec64a4c3fb6a30a | 76f17bc76dd376f0d0aa09400ac8cb4daad34ade | refs/heads/main | 2023-07-03T10:37:47.196444 | 2023-04-07T23:18:54 | 2023-04-07T23:18:54 | 383,509,787 | 16 | 5 | MIT | 2023-04-07T23:18:55 | 2021-07-06T15:08:14 | C++ | UTF-8 | C++ | false | false | 268 | cpp | TreasureBoxAnimInstance.cpp | #include "TreasureBoxAnimInstance.h"
UTreasureBoxAnimInstance::UTreasureBoxAnimInstance() {
this->BuildProgress = 0.00f;
this->PhysicsAlpha = 0.00f;
this->IsTreasureAvailable = true;
this->IsLeftInserted = false;
this->IsRightInserted = false;
}
|
cd0aee8415fb8085a41e3d237ed5dc74d99b5259 | f6d5124e131c83f7b64dbeeb6b0d8a4bcaa09fdd | /branches/1.1b/TraumCheck/TraumCheck.cpp | 782eeb97f2fa336c70e29f340b42fa0abb8197b3 | [] | no_license | 5k0rp/traumlibcheck | 40bb4f16c533022f12c408c02e949f179e16cdfc | d20b56ad4f739bc867954dac2afd02e2caf2cb7a | refs/heads/master | 2021-01-01T06:54:05.354831 | 2010-12-13T23:08:39 | 2010-12-13T23:08:39 | 32,864,050 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 3,656 | cpp | TraumCheck.cpp | #include "common.h"
#include "DirStructure.h"
#include "TraumDb.h"
#include "null_wcodecvt.h"
#include <windows.h>
#include <stdio.h>
#include <fstream>
void splitPath(Combowstrings& tree, const wchar_t* ptr)
{
tree.clear();
const wchar_t* start = ptr;
for(; *ptr; ++ptr)
if(*ptr == L'\\')
... |
7d75e5a196949db40e18f3ab63635c3c568a518d | 70f1c9f7814ce0ba808176f3eda43930e28ffa73 | /z__Utils - Copy/include/mr_defines.h | 5aaf8adc4174929b36ffc4cb5a908d8b16c87af3 | [] | no_license | MichaelRoop/CPP_TestHarness | 9acff5fcc0c1d4ca87eedaa6d6f715657d68f3ee | 3d4008a20ab03e4f51606e5c098a5a4c901ee1e2 | refs/heads/master | 2021-01-10T20:28:57.798744 | 2013-10-20T23:15:25 | 2013-10-20T23:15:25 | 5,349,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 620 | h | mr_defines.h | ///--------------------------------------------------------------------------------------
/// @file mr_defines.h
/// @brief Common defines for system.
///
/// @author Michael Roop
/// @date 2010
/// @version 1.0
///
/// @todo Make char versions for trim functions.
///
/// Copyright 2010 Michael Roop
///--------------... |
db09c84f20644d6afec07fcbbf7e9be01962c32e | 66949aa40ce96974161f3d1c631de71ffe078178 | /Waiter.cpp | ca0d276110c47ab5e81886b2bd2be3f6c20b6549 | [
"Unlicense"
] | permissive | baatochan/DiningPhilosophersProblem | 7e4b526ef5f367f1fff679d5509ab237d6a43dd9 | 76af266a765184dd9466b3f69dca381b4b4994ad | refs/heads/master | 2021-04-06T03:45:57.896021 | 2018-07-30T10:23:45 | 2018-07-30T10:23:45 | 125,028,347 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,162 | cpp | Waiter.cpp | //
// Created by barto on 16.04.18.
//
#include <iostream>
#include "Waiter.h"
using namespace std;
void Waiter::setState(unsigned char state) {
stateMutex.lock();
Waiter::state = state;
stateMutex.unlock();
}
Waiter::Waiter(int numberOfPhilosophers) {
terminate = false;
checkQueue = false;
this->numberOfPh... |
5c5e42707ae47b53832020ff0965c0a6d1b03d5c | 9e4cb0c415adfaee2d4ac2866f9992aeae84200b | /C++ Basics Videos/Not Organized/Array Example 7/ArrayEx7.cpp | b79eb6214dbbc0dbd5d1f426580e427a4852e74d | [] | no_license | CyberChimeraUSA/Cpp-Tutorials | 1648e8efe8fdeb0ec7f6957f0a0cb71cbcac36e5 | 04245959be4e684b9faa81b0303fbb4754b748a8 | refs/heads/master | 2021-05-04T14:53:42.498165 | 2019-08-18T21:48:50 | 2019-08-18T21:48:50 | 120,214,317 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 611 | cpp | ArrayEx7.cpp | #include <iostream>
using namespace std;
void voltageCalculator (double [3][3]);
int main(void) {
int x, y;
double resistanceArray[3][3] = {{1,2,3},{4,5,6},{7,8,9} };
for(x=0; x < 3; x++)
for(y=0; y < 3; y++)
{
cout << "Matrix Location: " << x <<"," << y << " value: "<< resistanceArray[x][y] << ... |
c1b8662ceafb68a616c635b0a5510b0f1437306e | ae31542273a142210a1ff30fb76ed9d45d38eba9 | /src/backend/gporca/libgpopt/include/gpopt/xforms/CJoinOrderDPv2.h | 6ff3d342d8d51fd1d8e6b8c91047911b4a7873ed | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"PostgreSQL",
"OpenSSL",
"LicenseRef-scancode-stream-benchmark",
"ISC",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-ssleay-windows",
"BSD-2-Clause",
"Python-2.0"
] | permissive | greenplum-db/gpdb | 8334837bceb2d5d51a684500793d11b190117c6a | 2c0f8f0fb24a2d7a7da114dc80f5f5a2712fca50 | refs/heads/main | 2023-08-22T02:03:03.806269 | 2023-08-21T22:59:53 | 2023-08-22T01:17:10 | 44,781,140 | 6,417 | 2,082 | Apache-2.0 | 2023-09-14T20:33:42 | 2015-10-23T00:25:17 | C | UTF-8 | C++ | false | false | 20,034 | h | CJoinOrderDPv2.h | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2019 VMware, Inc. or its affiliates.
//
// @filename:
// CJoinOrderDPv2.h
//
// @doc:
// Dynamic programming-based join order generation
//--------------------------------------------------------------... |
9b50865b58a8146df2b8611abcdfac4bf60f852c | dd0491d3546fc9b98d25bf661aa0d7d6bb16a150 | /aMazing/code/engine/system/ShaderCompilerClass.h | 908927a7d65f2fab561379ed623658a9360b5c51 | [] | no_license | ruleless/aMazing | b144eeb295416754bf3d9b91bb8d0c998524009b | 849dae6fc6a163cda5baa5a4548619197da3d598 | refs/heads/master | 2021-01-21T19:40:45.990110 | 2015-02-05T01:57:07 | 2015-02-05T01:57:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 845 | h | ShaderCompilerClass.h | #pragma once
#include <D3D11.h>
#include <D3DX11.h>
#include <d3dcompiler.h>
#include <iostream>
#include "../system/FileTracker.h"
#include "MutableString.h"
#define D3D_COMPILE_STANDARD_FILE_INCLUDE ((ID3DInclude*)(UINT_PTR)1)
class ShaderCompilerClass
{
public:
ShaderCompilerClass();
~ShaderCompilerClass();
stat... |
f4778fff2bd0345f3951c9d6a96504db4dc344a8 | ad8ba88632b37f500a2a3fa258da3342d88a20ef | /Code/OOADProject/OOADProject/customerviewallitems.cpp | cecea94b4c8984c7d2f816cd4a94d2f5006f7de4 | [] | no_license | hamzahsaleem/inventory-management-system | f4c56bfdcd3f0a80fbeaf0140a5d44f00beeaa34 | cf26c74339065ad195b7d5da82217d422a813511 | refs/heads/master | 2021-07-21T12:24:08.851954 | 2017-10-31T15:06:07 | 2017-10-31T15:06:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,362 | cpp | customerviewallitems.cpp | #include "customerviewallitems.h"
CustomerViewAllItems::CustomerViewAllItems(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
mydb = QSqlDatabase::addDatabase("QSQLITE");
mydb.setDatabaseName("database.db");
mydb.open();
dialogueBox = new DialogueBox();
if (!mydb.isOpen())
{
dialogu... |
01adf3eda89518341ec9045a7e525fddface867f | d6249a6c85101170b3e0dd548ca6982bc8a94fbd | /Chef/LOCAPR17/DRS.cpp | c5256bb8f6b0c3635ecbaaba7aadc0110c216bae | [] | no_license | anshumanv/Competitive | bb5c387168095f3716cabc6c591c3b7697da64da | 828d07ad5217de06736ae538f54524092ec99af4 | refs/heads/master | 2021-08-19T08:35:30.019660 | 2017-11-25T14:38:38 | 2017-11-25T14:38:38 | 81,228,891 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 649 | cpp | DRS.cpp | #include<bits/stdc++.h>
#define newl "\n"
#define MODULO 1000000007
using namespace std;
int main(){
std::ios::sync_with_stdio(false);
int t;
cin >> t;
while(t--){
int n,day=0,review = 2,count= 0;
double temp=79.6;
cin >> n;
vector<double> ball(n);
for(int i = 0; i<n; i++)
cin >> ball[i];
sort(... |
a4c8cc12680814561deb857405491cf3b1d3defe | edc86dc528a7f9508f20c93849e17a65ab74b540 | /文件操作/LineStruct.cpp | 0f991c37d052e71b60ad208fceb4f10faad2bfc6 | [] | no_license | RefactorLife/DataStructAndArithmetic | 8bd1d320277cd92cc30e48de832157e0b4eb8152 | 9d8d3f12dfac8a46d85b4d53cfd9d3aa9a541680 | refs/heads/master | 2016-08-12T14:03:58.330763 | 2015-11-24T10:44:59 | 2015-11-24T10:44:59 | 45,082,439 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 916 | cpp | LineStruct.cpp | //线性表
#include "myLineStruct.h"
#include "Common.h"
bool insertCharList_1(CharList &L,int i,char ch)
{
tag("bool insertCharList_1(CharList &L,int i,char ch)");
//将元素ch插入到表中第i个位置
if(i<1||i>L.length+1)
{
printf("插入位置不合法\n");
return false;
}
if(L.length>=LimitSize)
{
printf("存储空间已满");
return false;
}
fo... |
23e86c265aecfbb871b739dc31737e87fb73d501 | 4b10301804f0c9bbc32c12b20e70c4e91cfdaf24 | /nelson/ParallelExecHelper.cpp | 605ae813890651f2e556b9b950c403c9a1961955 | [] | no_license | simoneceriani/nelson | a99f446448e51bf59af9a655769ed10247ae72ef | 5cd24d11ab7a7c8219f0dbac621461e7527c3e3e | refs/heads/master | 2023-07-14T05:10:41.728514 | 2021-06-18T10:38:27 | 2021-06-18T10:38:27 | 399,262,803 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 54 | cpp | ParallelExecHelper.cpp | #include "ParallelExecHelper.h"
namespace nelson {
} |
020b1acf14598ea8f0ab0e597a5899bfd6a5dcda | 138f7c8b9ac606d4d4d669f4c7eb846f7a28b419 | /src/main.cpp | 0a31490513c9aa87b61efc304edae6dc5f9b4409 | [] | no_license | Sophie-Williams/SFML-CPP-TicTacToe | 08afd6c0ea291af820f7b1685b8508e18f678154 | 1186c622af7847da53d500efeed6df34b852065b | refs/heads/master | 2020-05-19T15:38:29.055422 | 2016-08-21T19:56:23 | 2016-08-21T19:56:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,994 | cpp | main.cpp | #include<SFML\Graphics.hpp>
#include<iostream>
#include<vector>
#include<memory>
#include<string>
#include"CBot.hpp"
#include"GameData.hpp"
#define FIELD_HEIGHT 3
#define FIELD_WIDTH 3
#define SAFE_DELETE(X) {if(X!=NULL){delete(X);}}
std::string playerToString(PLAYER player);
void setupBackground(st... |
b5c01eb332ae4fd67e2cb4e6e5ba4ec29eeccad7 | 49e44cd8ba6a0ed53c3fa3a40859d83ca9371e6d | /src/yasync/lockScope.h | f3338b86dfa67e1df82018f72091b410cd8248bd | [
"MIT"
] | permissive | ondra-novak/yasync | a8af182217d42fed3dd8f57fdffa61130b5eaf4e | 39734bc1da3cdd5e9fc51abfbbfe57518587c39f | refs/heads/master | 2021-01-10T18:31:54.783604 | 2017-08-10T15:24:23 | 2017-08-10T15:24:23 | 74,596,811 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 883 | h | lockScope.h | #pragma once
namespace yasync {
///Locks the current scope (unlocks in destructor)
template<typename _Mutex>
class LockScope {
public:
typedef _Mutex mutex_type;
explicit LockScope(mutex_type& __m) : mutex(__m)
{ mutex.lock(); }
LockScope(mutex_type& __m, bool locked) : mutex(__m)
{ if (!locked) mutex.... |
110123c680fb77687e13cc63f7c1e5fb76ac2a5a | 93cef903f4d1eabdcdc34de35fa12f15b452116f | /tests/resources/test_atc_env/test_backup/agc029/C/main.cpp | a4b63fb6b666d56d0e4bfe1516597616af1937b0 | [
"MIT"
] | permissive | sei40kr/atcoder-tools | 0029e8d8bd65f97e50961247f03dcef831905c3d | 693427a14b296584eab6e20d8f5326d61486a535 | refs/heads/master | 2020-04-26T19:28:23.272296 | 2019-11-01T15:53:09 | 2019-11-01T15:53:09 | 173,776,065 | 3 | 0 | MIT | 2019-03-04T15:59:25 | 2019-03-04T15:59:25 | null | UTF-8 | C++ | false | false | 300 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
void solve(long long N, std::vector<long long> A){
}
int main(){
long long N;
scanf("%lld",&N);
std::vector<long long> A(N);
for(int i = 0 ; i < N ; i++){
scanf("%lld",&A[i]);
}
solve(N, std::move(A));
return 0;
}
|
12bf005d1c887e1ed714995261d581febac171ed | 00e1c3843ed4389bd8f6262236f9d91237b12046 | /lab6/array_stats.cpp | 02cf5fdc4771288246195f4d1deeabdb6655389c | [] | no_license | kartikeyhpandey/CS1 | bddc7c90714fea9bc3453269dd28a1e60f33295f | 8bedc6f6c8275254c1f9d8b4984004d61b890890 | refs/heads/master | 2020-07-31T13:27:10.765363 | 2019-04-28T16:56:51 | 2019-04-28T16:56:51 | 210,617,417 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,302 | cpp | array_stats.cpp | #include <iostream>
#include <cmath>
#include <string>
#include <cstdlib>
#include <ctime>
#include <vector>
#include <iomanip>
using namespace std;
int randNum(int randMax){
return (rand()%(randMax+1));
}
vector<int> freqVector(int numSample, int randMax){
vector<int> freqCount(randMax+1);
... |
38a1812204f22a3e28018a652f3ba36954434bad | 3e9c9f08f19644c8baa37c3cb63167b7ae374386 | /mainwindow.cpp | db52f087804bf9b219232118071dec5eca27173c | [] | no_license | eveningwyn/EthernetTool | df552463aaa0d3c3fee3ceaf2dc44b9752835afe | 2232c78b9d152cc9768da8580ffa5ec182cf43a3 | refs/heads/master | 2021-01-20T03:09:51.912754 | 2017-08-27T14:19:35 | 2017-08-27T14:19:35 | 101,353,176 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,429 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QMutex>
#include <QDateTime>
#include <QFile>
#include <QTextStream>
#include <QFileDialog>
#include <QSettings>
#include <QRegExp>
#include <QMetaType>
#include <QMessageBox>
#define PRO_VERSION "V1.03"
#define BUILT_DATE "2017-08-27"
void MainWindow::on_a... |
a2ca6327c127618e6ba1f0c8c2d9a72168d1ff7f | a4b09665ae7e698652aff7f67a751c031271ee14 | /DEM/Low/src/Render/D3D9/D3D9ConstantBuffer.cpp | 0fce35b67b83b856a1cd4a87ee5f7a2c6480a9e7 | [
"MIT"
] | permissive | ugozapad/deusexmachina | 80ce769c83ed997fa6440402ac4f0123ce907310 | f5ca9f2eb850bc827bcf2c18a7303f3e569fea5c | refs/heads/master | 2020-05-20T04:38:43.234542 | 2019-01-17T11:27:24 | 2019-01-17T11:27:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,587 | cpp | D3D9ConstantBuffer.cpp | #include "D3D9ConstantBuffer.h"
#include <Render/D3D9/SM30ShaderMetadata.h>
#include <Core/Factory.h>
#define WIN32_LEAN_AND_MEAN
#define D3D_DISABLE_9EX
#include <d3d9.h>
namespace Render
{
__ImplementClass(Render::CD3D9ConstantBuffer, 'CB09', Render::CConstantBuffer);
CD3D9ConstantBuffer::CD3D9ConstantBuffer() {}
... |
c7ff4e5090cbe1d9acb92ae6a15f80ad9c778ff3 | e097ca136d17ff092e89b3b54214ec09f347604f | /include/amtrs/io/.inc-io/io-streamif-string_view.hpp | ef02b79d1071a59047202c097140edd166217d0d | [
"BSD-2-Clause"
] | permissive | isaponsoft/libamtrs | 1c02063c06613cc43091d5341c132b45d3051ee0 | 0c5d4ebe7e0f23d260bf091a4ab73ab9809daa50 | refs/heads/master | 2023-01-14T16:48:23.908727 | 2022-12-28T02:27:46 | 2022-12-28T02:27:46 | 189,788,925 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,205 | hpp | io-streamif-string_view.hpp | /* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. *
* Use of this source code is governed by a BSD-style license that *
* can be found in the LICENSE file. */
#ifndef __libamtrs__io__streamif__string_view__hpp
#define __libamtrs__io__streamif__string_view__hpp
... |
1371b9415b9c93a325116b13c511adeb1b6641b2 | 00c285309e7747e255a58484397c80264a6f85e7 | /Magic3D/build/ui_greentech.h | f8af0d2dbc0cdfcd8ae7d1ebdba1479aef7d9016 | [] | no_license | PuddingPengChen/Magic3D | e48b2b51d4f03369d73f856be3dc3e73107e7602 | 70e4757673020a42923f7cfbac8c09258107cd24 | refs/heads/master | 2021-09-27T02:12:05.645448 | 2021-09-23T06:08:27 | 2021-09-23T06:08:27 | 36,716,527 | 21 | 11 | null | null | null | null | UTF-8 | C++ | false | false | 16,542 | h | ui_greentech.h | /********************************************************************************
** Form generated from reading UI file 'greentech.ui'
**
** Created: Tue Jun 2 12:22:59 2015
** by: Qt User Interface Compiler version 4.8.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********... |
98ca0f78ed2fe8024c8bc05f0d924695dc19e5bc | 98714a3f69553ae63568fa7fb012f248a1d6361e | /EchoWebsock.cc | 20b5b31da932d50b4b92eab3a52288bf00473d2a | [] | no_license | kapilpipaliya/jdrogon | 3523da2f490f4ddbf9441542100370c436b99afd | 9d324c573c8d1fc6dd59452f8fdc5f812b0a02e3 | refs/heads/master | 2022-01-20T21:41:56.954889 | 2019-07-20T13:57:09 | 2019-07-20T13:57:09 | 197,937,428 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,067 | cc | EchoWebsock.cc | #include "EchoWebsock.h"
#include <map>
#include <regex>
#include "core/tables/functions.h"
#include "core/tables/savefunctions.h"
std::map<std::string, std::function<void(const std::string &event_name, const WebSocketConnectionPtr& wsConnPtr, Json::Value in)> > fns;
std::map<std::string, std::function<void(const std... |
8518fede02067af37fbcb2bee68d0ef04a7f9c79 | 40ac4059db3763d47198837f76c916483cdc6f62 | /tagTile.h | 4fc145f63a170cf391ad0a2566b239beb391045e | [] | no_license | tpgns139/TeamProject-SecretOfGrandia | b340f6173ed6c7a80671e9b106b412f7cd289870 | 6a8afeebaa6a3e41cb4ac50cb69c81fd3afe20f3 | refs/heads/master | 2020-12-22T06:48:47.852447 | 2020-02-26T08:53:04 | 2020-02-26T08:53:04 | 236,700,522 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,382 | h | tagTile.h | #pragma once
#define TILESIZE 64 // 타일사이즈
//타일 갯수는 가로 20 / 세로 20
#define TILEX 100 // 타일 갯수
#define TILEY 100
//타일 총 사이즈는 640 X 640
#define TILESIZEX TILESIZE * TILEX
#define TILESIZEY TILESIZE * TILEY
enum frameImage
{
Frame,
NotFrame
};
enum attribute
{
nonBlocking,
blocking,
notJump
};
enum TYPE
{
TYPE_TE... |
e0c626fb1fa9a0a582b4313977252ed87fdec8ae | db666b5c6b5381c55c716f95818a7ecc241d59c7 | /C++/1163-lastSubstringInLexicographicalOrder.cpp | 4f61669da446e03feae55586255497172c00e881 | [] | no_license | SaberDa/LeetCode | ed5ea145ff5baaf28ed104bb08046ff9d5275129 | 7dc681a2124fb9e2190d0ab37bf0965736bb52db | refs/heads/master | 2023-06-25T09:16:14.521110 | 2021-07-26T21:58:33 | 2021-07-26T21:58:33 | 234,479,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 407 | cpp | 1163-lastSubstringInLexicographicalOrder.cpp | #include <iostream>
#include <string>
using namespace std;
string lastSubstring(string s) {
int i = 0, pos;
for (int j = 1; j < s.size(); j++) {
for (pos = 0; pos + j < s.size(); pos++) {
if (s[j + pos] == s[i + pos]) continue;
i = s[j + pos] > s[i + pos] ? j : i;
b... |
5c0ea34a916e19cf8f81e5c194fb25e82d65bf03 | cf8898b00e45b3e9e469e4d4b10d15c556e6f339 | /writer.cpp | 88b4c20c6b35020ef3fd6640b641179cb7f02c27 | [] | no_license | mrkline/ece556-router | ba6ded7b582455ef387f7941f36fdc27cfced5ef | 5bdd316954cd06f2296cb968ee50b021298e1788 | refs/heads/master | 2020-04-23T07:11:42.817777 | 2014-05-05T04:40:06 | 2014-05-05T04:40:06 | 17,260,224 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 480 | cpp | writer.cpp |
#include "writer.hpp"
void Writer::write(const Point &p)
{
out << "(" << p.x << "," << p.y << ")";
}
void Writer::write(const Edge &e)
{
write(e.p1);
out << "-";
write(e.p2);
out << "\n";
}
void Writer::write(const Net &n)
{
out << "n" << n.id << "\n";
for(const auto &segment : n.nroute) {
for(int edge :... |
170388e5014df5d1988152370a05ae52082eaeaa | fe2836176ca940977734312801f647c12e32a297 | /LeetCode/random/221.cpp | b29b7f6457c69d53c025ca8ad265020f7689c848 | [] | no_license | henrybear327/Sandbox | ef26d96bc5cbcdc1ce04bf507e19212ca3ceb064 | d77627dd713035ab89c755a515da95ecb1b1121b | refs/heads/master | 2022-12-25T16:11:03.363028 | 2022-12-10T21:08:41 | 2022-12-10T21:08:41 | 53,817,848 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,184 | cpp | 221.cpp | class Solution
{
/*
matrix
1 1 1
1 1 1
1 1 1
dp
1 1 1
1 2 2
1 2 x
To get x, we look at its up, left, upper-left values
If you draw their squares out, you can see they will overlap into a 3*3
*/
public:
int maximalSquare(vector<vector<char>> &matrix)
{
in... |
45f45e2d02b7eab2887c7c70833484dc807388c2 | 38b5b45ac2de75ac89074981f865fbfbf0e33e06 | /CameraFeed/src/CommandLine.cpp | f38f764e81af168e4b54d3ece26cdf678e453d76 | [] | no_license | rarenivar/project5799 | c9950689b2268b614a7a2759af70ee4a38eb844e | 6b08a617446a5fd190a67ba8e233fb22c33454cd | refs/heads/master | 2020-04-15T20:23:53.733799 | 2016-05-06T02:09:46 | 2016-05-06T02:09:46 | 51,423,124 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,178 | cpp | CommandLine.cpp | #include <getopt.h>
#include <iostream>
#include <stdexcept>
#include "CommandLine.h"
CommandLine::CommandLine(int argc, char **argv)
{
extern int optind, opterr;
extern char* optarg;
opterr = 1;
while (true)
{
enum Option
{
Camera,
Debug,
Help,
Mongo,
Password,
... |
77fce786af494689bacd4564d1440ba5342547b5 | 737019fead13f620229d4654459df4c027d1a03b | /c_impl/c_component_impl/source_code/imfeat_binary_get_perimeter_c.cpp | 583ea59fbab05a8cd53a514bbe3de376095ba658 | [] | no_license | ctku/project_text_detect | efdb947d66ff7d5662955bd5679681a5ad303421 | 1faa40eae8a63f6594c19cc32e89c545b46dc854 | refs/heads/master | 2016-09-10T19:15:36.029437 | 2013-10-07T14:25:27 | 2013-10-07T14:25:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,352 | cpp | imfeat_binary_get_perimeter_c.cpp | //#define MATLAB
/*=================================================================
*
* version: 01/27/2013 00:38
*
* Matlab: [out] = imfeat_binary_get_perimeter_c(new, cum)
*
* Input - new (u8 array): newly-added binary map (see ps.1)
* - cum (u8 array): accumulated binary map (see ps.1)
*
... |
f7435216004cc041243be7768bea393ca818786b | 7d9ff59d292bfc83ee0293cb4efa27a86b604aa9 | /LibDXGI/LibDXGI.h | 31409e721df926f4f1bbb1009716d77e73a73e8c | [] | no_license | barcharcraz/d3dGame | da9adbf8e48c267bbe5e72d098431185cea3a784 | a33a8626aaabf1a4576c44cf34c691629211da41 | refs/heads/master | 2021-01-22T13:57:09.788566 | 2014-03-21T22:00:38 | 2014-03-21T22:00:38 | 4,140,402 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 988 | h | LibDXGI.h | // The following ifdef block is the standard way of creating macros which make exporting
// from a DLL simpler. All files within this DLL are compiled with the LIBDXGI_EXPORTS
// symbol defined on the command line. This symbol should not be defined on any project
// that uses this DLL. This way any other project wh... |
61798cccd2b2de57dc62f848d39be4bb6b1eda15 | 7b6d73579a5c718d8944101cb263c90744de45b6 | /GoodBye2017/908A.cpp | daa2468cd0c9d29df0ca3a9338e855517e1e9aed | [] | no_license | zhenghaishu/Codeforces | be1d20e259d406ac9e8dd56ec1ab816d6f7a7a11 | a1fb6c03595cf5968ed813030d825bd250bdc8a2 | refs/heads/master | 2021-09-07T02:46:18.912343 | 2018-02-16T02:44:57 | 2018-02-16T02:44:57 | 115,092,413 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 494 | cpp | 908A.cpp | #include <iostream>
#include <string>
using namespace std;
#define MAX 50
int main()
{
int cnt = 0;
string s;
cin >> s;
for(int i = 0; i < s.length(); i++)
{
if('a' <= s.at(i) <= 'z')
{
if('a' == s.at(i)|| 'e' == s.at(i) || 'i' == s.at(i) || 'o' == s.at(i) || 'u' == s.at(i))
{
cnt++;
}
}
... |
ffd11ce1283cba119e2e80b188b31686ae9bfa75 | 6bbdb1384a08e1f3bc42df70ee0dd13445993f2d | /AST/src/LiteralNode.cc | 682664b971c2e037b941d835cffec65d65c7f5aa | [
"MIT"
] | permissive | avartak/DIMPLE | fdee0767c85eb2937c83a0d54c7047801ca7c795 | b117baa2880cdae4afdeecea733c301e54980ef6 | refs/heads/main | 2023-04-16T13:19:49.535118 | 2021-04-25T22:40:48 | 2021-04-25T22:40:48 | 347,140,293 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,441 | cc | LiteralNode.cc | #include <cstdlib>
#include <cerrno>
#include <LiteralNode.h>
#include <TokenID.h>
namespace avl {
BoolNode::BoolNode(const std::shared_ptr<Token>& t, bool b):
ExprNode(EXPR_BOOL),
literal(b)
{
loc = t->loc;
}
std::shared_ptr<BoolNode> BoolNode::construct(const std::shared_ptr... |
9902fc4328cbd177784a670dcebd7cf05e017f1c | fcf1e9d46c8fbdcefd83b886e9312d30bda3aed1 | /class work 2 pf/class work 2 pf/Source.cpp | 7810a1b6d879484b67b19c02f079965af3e6d1f1 | [] | no_license | MuhammadSaim7776/1st-semester-programes | 0d7c623a837a91b95bdc12bef63662ae5bb59872 | 3ea39e5bd6b84260a09917c00f70deb6c9031414 | refs/heads/main | 2023-03-09T00:25:31.543785 | 2021-02-20T10:57:25 | 2021-02-20T10:57:25 | 340,631,925 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | cpp | Source.cpp | #include<iostream>
#include<conio.h>
using namespace std;
char calculategrade(int x)
{
if (x >= 90)
{
return 'A';
}
else if (x >= 80&&x<90)
{
return'B';
}
else if (x >= 60 && x < 80)
{
return 'C';
}
else
{
return 'D';
}
}
void main()
{
int a;
char z;
cout << "Enter your marks out of 100" << endl;... |
0316fd33ffc8e5330d7c8d0269440df06e9b3a44 | e09cb8c09886a74c3154dc9364db93831cdf95ff | /DataStructure/testAllClass.h | 75f5ce953aeb848551059ed718e69dbde59df725 | [] | no_license | MOYUMax/DataStructure | 851e55b48e03e8fefc33fd7bd1643e781fc746fd | 45026db5018e4caae44659374d152ac776ec668d | refs/heads/master | 2021-01-20T01:39:00.208215 | 2017-05-17T14:25:12 | 2017-05-17T14:25:12 | 89,313,289 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,305 | h | testAllClass.h | #ifndef _TESTALLCLASS_H
#define _TESTALLCLASS_H
#include "NaturalNumber.h"
#include "SeqList.h"
#include "LinkList.h"
#include "CLinkList.h"
#include "SeqStack.h"
#include "CLinkQueue.h"
#include "UpTriMatrix.h"
#include "BiTree.h"
#include "HuffmanTree.h"
#include "MGraph.h"
#include "ALGraph.h"
#include "LinkHashTabl... |
143f0eb17e83c7d0aa78429043014e18f3602fb6 | b800fb6fb86cd4baccc9a72d7456cd2a45fb22de | /Akiev_Vyacheslav/Лабораторная работа №3/квест 3/квест 3.cpp | 849752f7a6c4d241756a0541e5de7434743d0f41 | [] | no_license | tagelharpa/Laboratory | 15da2de414f8323dc17190ceac844dbb260d5955 | 687e7d037116f9d98cca9277d77603eaaa0127b3 | refs/heads/master | 2023-02-22T23:19:17.586109 | 2021-01-25T14:58:20 | 2021-01-25T14:58:20 | 325,304,722 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 620 | cpp | квест 3.cpp | #include <iostream>
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
double a = 0.1, b = 1, eps = 0.0001;
int n = 10, k = 10;
int i;
double step = (b - a) / k;
double x = a;
double s = 1;
double ai = 1;
while (x <= b)
{
cout << "X=" << x;
s = 1;
ai = 1;
fo... |
6a4481130ac1d04f480c2b2217be100e80e90fb8 | e118069368fb6d1f67768a816e0374ea4f3fc932 | /DataframeHelper/Core/Error.cpp | 0a6e9bd0f7b70695592392a601c8d3e682dfc4ba | [] | no_license | mwu-tow/Dataframes-xlsx | 7cb80136f2c72e4fca31d7056d810a583181612e | 2a654285ca30b02fd5fb5274fa81ca73db715f3a | refs/heads/master | 2020-03-22T06:12:31.973577 | 2018-07-09T15:57:24 | 2018-07-09T15:57:24 | 139,618,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 58 | cpp | Error.cpp | #include "Error.h"
thread_local std::string errorMessage; |
f7f0ac2688a91cec59eb9dd5b4e0debd097ffb6d | 06a25ec850b89e034e627d482de5ab38712385b3 | /goa/Classes/mini_games/Drop.cpp | e0d599c731b8458568c974b4aedd7ca7f607bccd | [
"Apache-2.0",
"MIT"
] | permissive | maqsoftware/Simple-Class | 05e85186e13ec17a0ba92f5d82b5f035ecce2a02 | 758a4cc7963625c1dd415d1068bb1b454714718d | refs/heads/master | 2023-03-07T22:14:50.830371 | 2019-09-16T13:39:03 | 2019-09-16T13:39:03 | 187,072,035 | 0 | 0 | Apache-2.0 | 2019-09-16T13:39:04 | 2019-05-16T17:23:42 | C++ | UTF-8 | C++ | false | false | 34,887 | cpp | Drop.cpp | #include "Drop.h"
#include "../util/CommonLabelTTF.h"
USING_NS_CC;
using namespace std;
using namespace cocos2d;
#define COCOS2D_DEBUG 1
Scene* Drop::createScene()
{
auto scene = Scene::create();
auto layer = Drop::create();
scene->addChild(layer);
layer->_menuContext = MenuContext::create(layer, "drop");
scene-... |
4ab4c4de0fbcc6cdc6486fd7ce33830c910c0fe2 | 5fed2a5478ebcd156948b4435e3de94ad3d4f758 | /c++_mycode/company_task/l000.wangyi_02.cpp | 42c02a9b2d5372c31c3fc2bf4245dba45e0dc817 | [] | no_license | mistakk/c_code | 4a2d7468706359b778ffa83c518b009886b206bf | 8e5bcd0bd35c70c8d3609f72bfc31e7a5322cbd6 | refs/heads/master | 2020-04-01T09:29:09.872533 | 2018-10-16T12:26:00 | 2018-10-16T12:26:00 | 153,076,914 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 765 | cpp | l000.wangyi_02.cpp | using namespace std;
#include <string>
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <queue>
#include <set>
int main()
{
int n, k;
cin >> n >> k;
vector<long> num(n, 0);
vector<int>sleep(n, 0);
for (int i = 0; i < n; i++) {
cin >> num[i];
}
for (int i = 0; i < n; i++) {
... |
4bd4b153fd40ae6946b2ab7e67e36b6a7d9abac9 | d658fb52f2febc6f1bac65cc84417e2005cc80ab | /exam/no4/braille.h | 984a51fa76b47479a6937636bc31cd464227dd0f | [] | no_license | lumt/cpp_intro | cf2585f0900957bab7bb91ec3fdb46ddc7beffee | d77d0ae59d8634486e26803e0415b4260d4247fc | refs/heads/master | 2021-01-13T08:02:55.045891 | 2017-01-09T12:50:09 | 2017-01-09T12:50:09 | 71,492,567 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 435 | h | braille.h | #ifndef BRAILLE_H
#define BRAILLE_H value
#include <fstream>
using namespace std;
int encode_character(char ch, char* braille);
void encode_alpha(char ch, char* braille);
void encode(const char* text, char* braille);
void encodeR(const char* text, char* braille);
bool encodable(const char* text, char* buffer);
vo... |
bf02c4f05591c466fd477c20227aa9b972724752 | 1e0293d706c5d7a06faf3c3ed806e9dd2983cdb5 | /engine/count/Int16Count.cpp | 2b087d9aa880ae884e0d15f216c0a37b3da3aa20 | [] | no_license | aiyou4love/source | a1b79c54ae782175754a9428ad0a88c8cd37db88 | 0e53be325dbe093a8a17173d2935c3fa911dd4b8 | refs/heads/master | 2021-01-18T20:35:04.570467 | 2017-02-27T00:14:09 | 2017-02-27T00:14:09 | 72,188,564 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,824 | cpp | Int16Count.cpp | #include "../Engine.hpp"
namespace cc {
void Int16Count::setInt(int16_t nId, int16_t nValue)
{
if ( (nId < 1) || (nId > (N * 2)) ) {
LOGE("[%s]%d,%d", __METHOD__, N, nId);
return;
}
int16_t id_ = (nId - 1) / 2;
int16_t bit_ = (nId - 1) % 2;
if (0 == bit_) {
mValue[id_] &= 0xFFFF0000;
mValue[i... |
fc24e4654a4aec26173087e583f76aef7bcec27a | 1c3dcb1ad48be6448c6732229d56d021fcd45594 | /3rd/main/main.ino | 05b096dd958286a4bf2bec504263a7686b4d03c5 | [] | no_license | youk720/test_rot | 9640ddada8b7c2e48b9f7a46561640d8cf365ed4 | 56439b8c4f83c6a5c9929236f0b41eec742a107d | refs/heads/master | 2020-03-31T16:24:29.900035 | 2019-06-12T10:12:32 | 2019-06-12T10:12:32 | 152,374,375 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,054 | ino | main.ino | #include <Encoder.h>
// ロータリーエンコーダ用ライブラリ導入
// ライブラリのリファレンスページ https://www.pjrc.com/teensy/td_libs_Encoder.html
// Change these pin numbers to the pins connected to your encoder.
// Best Performance: both pins have interrupt capability
// Good Performance: only the first pin has interrupt capability
// Low Perfor... |
a55a61e65388f0ed6334818955901c1c61831588 | 65f60d63f327560f8b6c133f6dce5d83f115afa9 | /assignments/Assignment4/mpg.cpp | 3b50476cf30fa2c8a4f2d02541bbadaa98e45fdf | [
"MIT"
] | permissive | tspires/personal | 5a289baa1db440dce20f6239b9a5cc0cc3795ee0 | 7444621203e405739e02595a3c0b85b3fd63e894 | refs/heads/master | 2021-01-22T21:32:26.862926 | 2015-07-10T18:20:58 | 2015-07-10T18:20:58 | 21,474,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 892 | cpp | mpg.cpp | #include <iostream>
#include <iomanip>
using namespace std;
double literToGallon(double liters);
int main() {
bool done = false;
char response;
int milesTraveled;
int litersConsumed;
double gallonsConsumed;
double mpg;
cout.precision(4);
while (done == false) {
cout << "How many liters... |
886895d268e1d4e1d66a4a4437e2deeba0ac3cbc | 35e159e7360a2debb7432b9d94deaf8d843b4379 | /led_reg/main.cpp | ee229a8115d6fb9c6080999d1b3d864e9a294aba | [] | no_license | PolBadWolf/led_line | e0917ff65ea88ec5816db335e741deb9e0a4773d | b4448966b555bb5771caa3f0ba2019b23019a54e | refs/heads/master | 2021-01-23T02:06:19.612212 | 2017-03-27T11:39:18 | 2017-03-27T11:39:18 | 85,966,993 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,097 | cpp | main.cpp | /*
* led_reg.cpp
*
* Created: 23.03.2017 20:44:05
* Author : User
*/
#include "system/path.h"
#include "ws2812.h"
#define line1_len 18
sRGB line1_mass[line1_len];
WS2812* line1;
int main(void)
{
//__port(DDRB).bit7 = 1;
line1 = new WS2812(line1_len, line1_mass, &DDRB, &PORTB, 1<<1 );
while (1)
{
/... |
9f2d68a6e17386fa940e5b9a473686f8df30bed4 | ef9cf52ffdd24cb8f7c9461acccd9e5770a131d6 | /cplus/leetcode/88merge.cpp | 485c676941c9d0b79ad2f6b7bcffcce0cb08043a | [] | no_license | Slwhy/Algorithm | 3e03bdaeed443dae29eea55aa897fcb2fe1e759d | 2b6b9bc783b67eba3e57371e5d9ce126add05f1f | refs/heads/master | 2022-04-27T19:03:27.014082 | 2022-04-05T09:40:01 | 2022-04-05T09:40:01 | 141,416,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 803 | cpp | 88merge.cpp | //
// Created by slwhy on 2022/3/13.
//
#include "vector"
#include "queue"
using namespace std;
void merge(vector<int> &nums1, int m, vector<int> &nums2, int n) {
int index = m + n - 1;
m--, n--;
while (n >= 0) {
if (m < 0) nums1[index--] = nums2[n--];
else if (nums1[m] > nums2[n]) nums1[i... |
57ff53e006ce9070572e26473caee120557bd6c2 | 08fbcf15d01080b5ab222740d24a24dfb86f2e18 | /cpp/math/api/EseMathValStatIntf.h | db777ec191f6e482978f70fe92d622be2c43b007 | [] | no_license | vgromov/esfwxe | 399e07bec2370349821f19d84b9b0648a71b89ea | 5b64245b057884eb5dd708f60b90d7c97769dcca | refs/heads/master | 2021-07-10T15:16:17.591367 | 2020-07-10T13:48:06 | 2020-07-10T13:48:06 | 165,986,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,788 | h | EseMathValStatIntf.h | #ifndef _ese_math_val_stat_intf_h_
#define _ese_math_val_stat_intf_h_
#ifdef ESE_USE_STATS_SERIALIZATION
# if !defined(ESE_USE_STATS_SERIALIZATION_READ) && !defined(ESE_USE_STATS_SERIALIZATION_WRITE)
# undef ESE_USE_STATS_SERIALIZATION
# else
/// Foward declarations
class EseStreamIntf;
# endif
#el... |
f7965703fbdeb3264c6f8b570a0282ac0a18c6d6 | 7122233f6730eaea0969e7c7d3d6075ee95a15b6 | /MathUtility/Matrix/LUDecomposition.hpp | 7fb81dccc2e4679a87639762a15a53df965d1576 | [] | no_license | zarath8128/NumericalCode | 9ad0d5ad587a911e60794a5daef41c221793529c | e59397f47be2def640bdb0ceec52b7826a445053 | refs/heads/master | 2021-01-19T21:28:30.367603 | 2013-08-15T08:16:21 | 2013-08-15T08:16:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,212 | hpp | LUDecomposition.hpp | #ifndef LU_DECOMPOSITION_HPP
#define LU_DECOMPOSITION_HPP
#ifdef __cplusplus
#include <cstdint>
#include <ostream>
#include <iomanip>
#else
#include <stdint.h>
#endif
#ifdef __cplusplus
namespace zarath
{
extern "C"
{
#endif
#ifdef __cplusplus
}
class LUBuffer
{
public:
LUBuffer(uint32_t size):Size(s... |
643a3d3c9c0ed9cb2259307feb799e8d2843d7ab | 06d7c1ca396c4a58e650ad979b1453ea1ad99993 | /catkin_ws/src/ms_path_planner/include/ms_path_planner/ClusterPcl.h | 4363791aee274b219963bf768c7f5740aa5918fd | [] | no_license | Robotics-Mark/ros | 27dec75ed61d437c1281a9fe6393ce822a818e17 | a8fb9688e70757a46588744871595d7e3d08aaee | refs/heads/master | 2021-05-09T22:13:25.741223 | 2016-02-17T11:09:33 | 2016-02-17T11:09:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,215 | h | ClusterPcl.h | #ifndef CLUSTERPCL_H
#define CLUSTERPCL_H
#include <vector>
#include <ms_path_planner/ClusterPclConfig.h>
using namespace ms_path_planner;
#include <pcl/features/normal_3d.h>
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl/kdtree/kdtree_flann.h>
#include <pcl/search/kdtree.h>
#include <pcl/s... |
e66fa983d9e21973120e3d458eba1c1dbbaf4dfc | 7f2e7edff293b0277137516a4f0b88021a63f1e3 | /Shape/pzshapequad.cpp | 83ac34d139be15f1b13b1a0db79fd37b9eb5a777 | [] | no_license | labmec/neopz | 3c8da1844164765606a9d4890597947c1fadbb41 | 4c6b6d277ce097b97bfc8dea1b6725860f4fe05a | refs/heads/main | 2023-08-30T22:35:13.662951 | 2022-03-18T19:57:30 | 2022-03-18T19:57:30 | 33,341,900 | 48 | 17 | null | 2023-09-13T19:46:34 | 2015-04-03T02:18:47 | C++ | UTF-8 | C++ | false | false | 18,191 | cpp | pzshapequad.cpp | /**
* @file
* @brief Contains the implementation of the TPZShapeQuad methods.
*/
#include "pzshapequad.h"
#include "pzshapelinear.h"
#include "pzshapepoint.h"
#include "pzmanvector.h"
#include "pzerror.h"
#include "pzreal.h"
#include "pzlog.h"
#ifdef PZ_LOG
static TPZLogger logger("pz.shape.TPZShapeQuad");
#endif
... |
dd9dfd9100889bac139b03df6f2288386f0bde67 | 44a374b84b3048b23afd6e989df1291dcc9f5609 | /src/core/gamestatemanager.cpp | 73a10f0092c39bda488dd284439a14d828c625ba | [] | permissive | ricardoalcantara/learning-sdl | 34f21ecb36ab7a277243b0b67b5798c292c7fe83 | 27559dde0ce7cd7fce89014f6b9a45a4bfe2728c | refs/heads/main | 2023-05-31T04:27:15.254161 | 2021-06-30T21:01:39 | 2021-06-30T21:01:39 | 375,518,155 | 0 | 0 | MIT | 2021-06-09T23:54:26 | 2021-06-09T23:54:26 | null | UTF-8 | C++ | false | false | 1,340 | cpp | gamestatemanager.cpp | #include "core/gamestatemanager.h"
#include "core/gamestate.h"
GameStateManager *GameStateManager::instance = nullptr;
GameStateManager *GameStateManager::getInstance()
{
if (instance == nullptr)
{
instance = new GameStateManager();
}
return instance;
}
void GameStateManager::release()
{
delete instance;
in... |
00d1b358c35f8c8fb47071fc67e336c3d32a91ea | 52ca17dca8c628bbabb0f04504332c8fdac8e7ea | /boost/archive/impl/basic_xml_oarchive.ipp | 998cd10c0910f1f95e7a5af02411770d21a4e084 | [] | no_license | qinzuoyan/thirdparty | f610d43fe57133c832579e65ca46e71f1454f5c4 | bba9e68347ad0dbffb6fa350948672babc0fcb50 | refs/heads/master | 2021-01-16T17:47:57.121882 | 2015-04-21T06:59:19 | 2015-04-21T06:59:19 | 33,612,579 | 0 | 0 | null | 2015-04-08T14:39:51 | 2015-04-08T14:39:51 | null | UTF-8 | C++ | false | false | 77 | ipp | basic_xml_oarchive.ipp | #include "thirdparty/boost_1_58_0/boost/archive/impl/basic_xml_oarchive.ipp"
|
9a32fb0c499daed67634e1e6a158b74fe0f7e3f9 | 42b45e18ac790a2cd08cd09c9fc7054e5f8eb3b8 | /stockaccount.cpp | d4371a1c2508f4fc113aa8d13499c8a98a0157dc | [] | no_license | mz363/Banking-and-Stock-Application-CPP | 66db6f248417816986c33856c3d9f9416426cffa | e309ce3b1169923bcfcfb2a66d76a718cc056293 | refs/heads/master | 2020-03-28T12:50:30.577520 | 2018-09-11T15:34:49 | 2018-09-11T15:34:49 | 148,339,603 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,385 | cpp | stockaccount.cpp | #include "stockaccount.h"
stockAccount::stockAccount()
{
}
int stockAccount::stringToINT(string a)
{
string Stocks[36] = { "","VNET","AGTK","AKAM","BIDU","BCOR","WIFI","CARB","JRJC","CCIH","CCOI","CXDO","EDXC","ENV","FB","GDDY","IAC","IIJI","INAP","IPAS","JCOM","LLNW","MOMO","NTES","EGOV","NQ","OPESY","BLNKF","NAME... |
4c3977f8bfbd8b4efa9fa60d81dbd7ccfba837c2 | 164d1dbfe4242b51e4bb17e1eceb534b66873c61 | /src/reduce.cpp | fd2c8e3f49dec7f2dc931af6497e81caef60386e | [] | no_license | haydenm2/rosbag_reduce_resolution | b1cf69de271e8d863b2f358f10529a7181a7fd93 | 0165f9f8bc215b7cc3753a292ea622e49c43c1e7 | refs/heads/master | 2021-06-23T14:54:51.204584 | 2021-06-10T16:22:38 | 2021-06-10T16:22:38 | 216,060,995 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,207 | cpp | reduce.cpp | #include "reduce.h"
namespace reduce_resolution {
ReduceResolution::ReduceResolution(double resize_ratio)
{
// create a private node handle for use with param server
ros::NodeHandle nh_private("~");
// ROS communication
image_transport::ImageTransport it(nh_);
sub_video_ = it.subscribe("video", 100, &Reduc... |
1d79471bf13c6bf6c3a133357d81c2a9ad5b4f59 | fbbfc318ebcd9e19cb60647b6aef567046682bad | /src/videocapture/win/MediaFoundation_Capture.cpp | e45612abe986ddde4ae8bd22263ad7c66d57ef6c | [
"Apache-2.0"
] | permissive | killerbobjr/video_capture | 20674f84606c26caa7357ab9d5a16d9030a8b149 | 18e9b543e7fc8d8f8766adc7e512367b6ff4e03e | refs/heads/master | 2023-04-18T04:38:04.879743 | 2021-04-22T02:36:37 | 2021-04-22T02:36:37 | 281,543,164 | 0 | 0 | null | 2020-07-22T01:27:24 | 2020-07-22T01:27:23 | null | UTF-8 | C++ | false | false | 19,001 | cpp | MediaFoundation_Capture.cpp | #include <videocapture/win/MediaFoundation_Capture.h>
#include <iostream>
namespace ca
{
MediaFoundation_Capture::MediaFoundation_Capture(frame_callback fc, void* user): Base(fc, user), state(CA_STATE_NONE), mf_callback(NULL), imf_media_source(NULL), imf_source_reader(NULL), must_shutdown_com(true)
{
/* In... |
a1db27e125925892c8fd24a99a8aa945c9b1e56a | bb442983c32454261ca012d8946d33113ef961f6 | /problems/Find_The_Duplicate_Number.cpp | 87e5189ea0732efcc1103aed358fcb9592c16cc3 | [] | no_license | trooperli/my-leetcode | 98aef3aedcb7fd5be3eeb6f6c64c8c6fdfa7cbc9 | e71d9df5b89e187c93e66e3ec57bc6b245575e27 | refs/heads/master | 2021-04-04T06:12:40.035183 | 2020-04-29T19:41:53 | 2020-04-29T19:41:53 | 248,431,150 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 800 | cpp | Find_The_Duplicate_Number.cpp | /**
* This problem seems easy but not if it requires O(n) time complexity
* and O(1) space complexity. The key to this problem is when nums[i]
* != i, we do a swap(nums[i], nums[nums[i]]). Suppose nums[0] = 3,
* nums[3] = 4,after this swap, we have nums[3] = 3 and nums[0] = 4;
* then we swap(nums[0], nums[4]), sup... |
78945a92cb752f97b630642fe779a19b166f78e9 | 5ccdb058df19fc4e220b9bf7844ed9bbff956ffc | /p1157.cpp | b61f08f6bf9ee20634b74eebaaad7f3fb74e2d15 | [
"MIT"
] | permissive | sjnov11/Baekjoon-Online-Judge | 4db4253ba8df6923347ebdc33e920cfb1b2d8159 | a95df8a62e181d86a97d0e8969d139a3dae2be74 | refs/heads/master | 2020-04-02T09:00:30.235008 | 2018-12-03T10:05:52 | 2018-12-03T10:05:52 | 154,270,938 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 727 | cpp | p1157.cpp | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int alpha_cnt[26];
for (int i = 0; i < 26; i++) {
alpha_cnt[i] = 0;
}
int diff_upper_lower = 'a' - 'A';
for (int i = 0; i < s.length(); i++) {
int idx = (int)s[i] > (int)'Z' ? s[i] - diff_upper_lower : s[i];
id... |
0bfdb1631945d9a43e8e2724ba53fd7f2bfe7ba3 | 6aa2345c0801cdbfb498d312f0b6097b2e9616f3 | /src/kernel/utilities/ssl_path.cpp | e844768ab8d36b9c6c5c873a730db5d1b79d1717 | [
"Apache-2.0"
] | permissive | spin-scenario/spin-scenario | b98c73da3f07f523ef02a978787246e5a2c9b435 | 9cfff9117d221abd2e5a5e64bbe3780a615bf54d | refs/heads/master | 2022-12-15T03:01:53.990454 | 2022-12-09T03:29:02 | 2022-12-09T03:29:02 | 172,816,861 | 13 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 736 | cpp | ssl_path.cpp | #include "ssl_path.h"
#include <boost/algorithm/string.hpp>
namespace ssl {
namespace utility {
// terminal dir by the user.
std::string g_terminal_dir = "";
#ifdef WIN32
std::string g_install_dir = "../..";
#else
std::string g_install_dir = "..";
#endif
void set_terminal_dir(std::string s) {
g_terminal_dir = s... |
29d8b342ecf57f62a2f5a8a2152a3def63f3a7b7 | aa82c3e3be201e05225d31bda4e01ac577457d6f | /Src/EasyBuilder/view/ActorItem.cpp | dc780fd27f39ef8e481efca67c7788385b599462 | [] | no_license | xzrunner/doodle_editor | 8524493765676b821398acc090c0e7838e6e9647 | 78351087470cb38265f7a26317dcd116b8d02b0d | refs/heads/master | 2020-03-22T18:55:22.851215 | 2018-07-10T22:17:30 | 2018-07-10T22:17:30 | 140,491,803 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 748 | cpp | ActorItem.cpp | #include "ActorItem.h"
#include "dataset/Actor.h"
using namespace ebuilder;
ActorItem::ActorItem(Actor* actor)
: m_actor(actor)
{
m_name = actor->m_name;
m_filepath = m_actor->getSymbol().getFilepath();
const wxgui::Bitmap* init = wxgui::BitmapMgr::Instance()->getItem(m_filepath);
if (m_bitmap != init) delete ... |
b599d405676e5737eefc1c039999bd1f821361d5 | 4a4b5d52807b0a34237c7996a8066ec74ecb6887 | /fraction/fraction.cpp | 8c09059ab53f869c40345450106c0b1ab647896f | [] | no_license | 19tpersons/CSIS352-Assign4 | e1a0d2a353fb47e955a62781330dce8de6dbce76 | cfd6f1aa013d7407ecbeb5d045f38cca69978073 | refs/heads/master | 2020-12-27T11:17:47.741835 | 2020-02-04T17:43:01 | 2020-02-04T17:43:01 | 237,882,900 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,717 | cpp | fraction.cpp | #include "fraction.h"
#include <string>
#include <math.h>
#include <iostream>
#include <iomanip>
using namespace std;
fraction::fractionType fraction::outputType = fraction::mixed;
fraction::fraction() {
}
fraction::fraction(double number) {
setFraction(number);
}
fraction::fraction(int numerator, int denominato... |
a4a9fc35322f5d7a395d4dc8c068692250bc9b5a | 4dcde7b8b10bdee8e2a582d1e6fb1fb4958e9d58 | /c_cpp/c++_primer/ch6/array_params.cpp | 1c13135b7d9736ecfa0b468697243ec6f9d8449e | [] | no_license | wangfudex/practice | f103d1453cb917288b5b1101d8e9f6ae17754cbd | ce43a434a4f728d05e896869d3430d600b6c2dbb | refs/heads/master | 2021-06-16T14:19:03.490600 | 2017-04-16T14:59:59 | 2017-04-16T14:59:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | cpp | array_params.cpp | #include <iostream>
// 以下三個宣告為相同
void print(const int*);
void print(const int[]);
void print(const int[10]);
int main(void)
{
int i = 0, j[2] = {0, 1}; // list init.
print(&i); // ok,
print(j); // ok, j被轉成int*
print(&j); // error, &j為int (*)[2](pointer to array of 2 ints), 不是int*
}
|
2f8ba88db036a228deada0d66f372e2d5cc2f044 | e6a5e4d9538731efac8fbc199d0152a2e1560890 | /ch02/test/insertion_sort_test.cpp | c214180d75accc5ea684484fcca0fa7b0602c424 | [
"MIT"
] | permissive | tsyxyz/CLRS | 7517b07415567f7e8f5a8cdf59c664c8d2834710 | 562a294a16e0b9989862511183d12333c13f5b5f | refs/heads/master | 2021-07-11T10:00:57.614818 | 2021-06-13T15:02:43 | 2021-06-13T15:02:43 | 247,416,161 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 519 | cpp | insertion_sort_test.cpp | #include "ch02/insertion_sort.h"
#include <gtest/gtest.h>
#include <iostream>
#include <vector>
TEST(insertion_sort, non_decrease) {
std::vector<int> seq = {8, 1, 3, 0, 2, 7};
std::vector<int> answer = {0, 1, 2, 3, 7, 8};
ch02::InsertionSortNonDecrease(seq);
EXPECT_TRUE(seq == answer);
}
TEST(inser... |
6b707625d4c1225f6adaa56f354a02d93d09bc44 | 1154814c89c84b7e23ec1feed96be67491a5b7eb | /extern/libMeshRender/src/NormalCompresser.h | 6228cae3b9e7926a6d409b5c37bd7324c508bcbf | [] | no_license | linlut/View3dn | cc8e741a9a6967277a65a01793ddc61f7ac5ead9 | 4ba9a3b5414d95ac358d0e05f2834ebb451efedd | refs/heads/master | 2020-03-26T23:43:41.132808 | 2014-02-21T01:28:11 | 2014-02-21T01:28:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 715 | h | NormalCompresser.h | #pragma once
#ifndef NORMAL_COMPRESSER_H
#define NORMAL_COMPRESSER_H
#if defined(_MSC_VER) //Compiling on Windows
#if _MSC_VER <= 1700 //VS 2012 or older
#define uint32_t unsigned __int32
#else
#include <cstdint> //to provide def. for uint32_t
#endif
#else
#include <inttyp... |
7fdf117c212ff482d5920989a961fb2094913aab | fdf08b05ff4c660e183739dbc18009d0a9b8a49a | /OpenTESArena/src/Voxels/VoxelTextureDefinition.cpp | d249520d54575c510aaede1cb27cfb2636feeec7 | [
"MIT"
] | permissive | afritz1/OpenTESArena | f67c4f6ee8981ef3bffbfe5894e2b48d67554475 | 7e91599157e2b9268237b6689f691d29e89b1d74 | refs/heads/main | 2023-08-31T09:25:21.908575 | 2023-08-27T01:24:29 | 2023-08-27T01:24:29 | 50,629,945 | 942 | 100 | MIT | 2023-08-21T03:42:36 | 2016-01-29T02:07:08 | C++ | UTF-8 | C++ | false | false | 589 | cpp | VoxelTextureDefinition.cpp | #include "VoxelTextureDefinition.h"
#include "components/debug/Debug.h"
VoxelTextureDefinition::VoxelTextureDefinition()
{
this->textureCount = 0;
}
const TextureAsset &VoxelTextureDefinition::getTextureAsset(int index) const
{
DebugAssertIndex(this->textureAssets, index);
DebugAssert(index < this->textureCount);... |
0575cc6f573d3fbde25960ca3cce8da05c9a4cc3 | c07a5abb018c2be9d3d2500df3e33af59d7e7d69 | /Source/Twaliens/ProjectileA.h | 6b1b700fffe8d37ce0531062f92ce622555eaf42 | [] | no_license | Nekroarteriaa/TwaliensFinal | a9a4126215b04caf8ab2d3eddf1b1105b71e78ef | 2f41fa788da3d9125c499250a0e85a6d52cbeba1 | refs/heads/master | 2023-02-25T02:48:58.988462 | 2021-02-07T02:50:20 | 2021-02-07T02:50:20 | 336,685,682 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,856 | h | ProjectileA.h | // All rights reserved.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Engine/Classes/Components/SphereComponent.h"
#include "Engine/Classes/GameFramework/ProjectileMovementComponent.h"
#include "Components/StaticMeshComponent.h"
#include "Interfaces/IPooledObject.h"
#include "Projec... |
172679bb53febf175d1af8678903987221cfa834 | ccd9651e1d5ee1442d3b59cf86a6d889117a3454 | /Week2/BankAccount/Bank.cpp | 327e58a41b561c66fc2be37b8e227cd3786f1ff3 | [
"BSD-3-Clause"
] | permissive | AvansTi/TMTI-DATC-Voorbeelden | df35129a01129ad2345a998d872f55ed5d82a362 | 572d009ad9378228d125e4025bc0f9aa7763d053 | refs/heads/master | 2021-07-19T13:43:58.298192 | 2020-05-27T12:43:44 | 2020-05-27T12:43:44 | 173,193,158 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 767 | cpp | Bank.cpp | #include "Bankaccount.h"
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
void addAccount(std::vector<Bankaccount>& accounts, const std::string& name, const std::string& number, int initVal) {
Bankaccount account{ name, number };
account.deposite(initVal);
accounts.push_back(account)... |
a83525ce116d854cb3a4eb2d2d11a7c8a9fa540e | 9de0cec678bc4a3bec2b4adabef9f39ff5b4afac | /PWG/EMCAL/EMCALtasks/AliAodSkimTask.h | a89e59192f9c48291019d24ea48e56b17369c0c6 | [] | permissive | alisw/AliPhysics | 91bf1bd01ab2af656a25ff10b25e618a63667d3e | 5df28b2b415e78e81273b0d9bf5c1b99feda3348 | refs/heads/master | 2023-08-31T20:41:44.927176 | 2023-08-31T14:51:12 | 2023-08-31T14:51:12 | 61,661,378 | 129 | 1,150 | BSD-3-Clause | 2023-09-14T18:48:45 | 2016-06-21T19:31:29 | C++ | UTF-8 | C++ | false | false | 10,387 | h | AliAodSkimTask.h | #ifndef AliAodSkimTask_H
#define AliAodSkimTask_H
/// \class AliAodSkimTask
/// \brief Use to skim AOD files
///
/// Class to skim AOD files with the idea to keep the skimmed file as close as possible to the original AOD.
///
/// \author C.Loizides
#include <AliAnalysisTaskSE.h>
#include <TString.h>
class AliAODMCHea... |
0b77d300c3226e90f9484dbf29c7a6ba63544038 | ad8271700e52ec93bc62a6fa3ee52ef080e320f2 | /CatalystRichPresence/CatalystSDK/Tool.h | 539f1c36f5611b1976bba0ce9de1ef3714458b29 | [] | no_license | RubberDuckShobe/CatalystRPC | 6b0cd4482d514a8be3b992b55ec143273b3ada7b | 92d0e2723e600d03c33f9f027c3980d0f087c6bf | refs/heads/master | 2022-07-29T20:50:50.640653 | 2021-03-25T06:21:35 | 2021-03-25T06:21:35 | 351,097,185 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 306 | h | Tool.h | //
// Generated with FrostbiteGen by Chod
// File: SDK\Tool.h
// Created: Wed Mar 10 19:00:11 2021
//
#ifndef FBGEN_Tool_H
#define FBGEN_Tool_H
class Tool
{
public:
static void* GetTypeInfo()
{
return (void*)0x00000001427FC500;
}
unsigned char _0x0[0x18];
}; // size = 0x18
#endif // FBGEN_Tool_H
|
1c9f51213aba4a73896722fd54b95a281aab5263 | 3e60db9411ee906ca04e56c23a2d2bfb74089279 | /Karen and Morning.cpp | 0c309372cd0c696fd5d84a4395270885463af148 | [] | no_license | alexanderqchen/ICPC-Practice | e7632ff3dd0062019b430ac9a67cdb4238699d86 | 5e4a53e75e5d4ba3ad99a07fc2824b78c2e2a914 | refs/heads/master | 2020-04-05T13:08:14.007518 | 2017-09-28T22:57:07 | 2017-09-28T22:57:07 | 95,110,315 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 405 | cpp | Karen and Morning.cpp | //http://codeforces.com/problemset/problem/816/A
#include <iostream>
#include <string>
using namespace std;
int main()
{
string s;
cin >> s;
int h = (s[0] - '0') * 10 + s[1] - '0';
int m = (s[3] - '0') * 10 + s[4] - '0';
int ans = 0;
while (h / 10 != m % 10 || h % 10 != m / 10)
{
ans++;
m++;
if (m >= 60)
... |
96af7c6eb000c62878a7f3f843a57e85f01bb4fe | 18b5c416d59dd6a24a596fd65dcb06057bfd9095 | /sms/smsitem.h | c5fec430e50cd4bb4580aace8329db04868ec260 | [] | no_license | CMLDMR/SerikBLDCore | 3a62f1636763f71dd7fbbe51d185b0adfecfebf4 | b48d80231469454f7cb02553ff01306b34dc0a91 | refs/heads/master | 2023-04-30T19:24:41.086665 | 2023-04-17T08:31:40 | 2023-04-17T08:31:40 | 215,482,226 | 1 | 0 | null | 2023-04-17T08:31:42 | 2019-10-16T07:14:45 | C++ | UTF-8 | C++ | false | false | 3,012 | h | smsitem.h | #ifndef SMSITEM_H
#define SMSITEM_H
#include "Config.h"
#include "item.h"
#include <QByteArray>
#include <QXmlStreamWriter>
#include <iostream>
namespace SerikBLDCore {
namespace SMS {
static const std::string Collection{"SMSCollection"};
static const std::string sms{"sms"};
static const std::string numara{"tele... |
f66a3ac80213270bb5dfc256777bc3de206cf5b0 | 3a418573c80e7072c6b67a57df746326deb42a92 | /src/settingsoverrides.h | 13bdc20fe82c2d48ea0ede543dfb9acfccf58d21 | [] | no_license | 0branch/hugor | beaf25c164bc10fe24a36b2f5444f70c3b5da780 | 5271a71bca2f967c48f3af13c6814cc851fe22ff | refs/heads/master | 2021-01-16T20:05:32.596345 | 2013-06-18T04:08:06 | 2013-06-18T04:08:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | h | settingsoverrides.h | #ifndef SETTINGSOVERRIDES_H
#define SETTINGSOVERRIDES_H
#include <QString>
class SettingsOverrides {
public:
SettingsOverrides( const QString& filename );
QString appName;
QString authorName;
bool fullscreen;
int fullscreenWidth;
bool hideMenuBar;
int marginSize;
int propFontSize;
... |
7fe49b04117e4565e9acb4426838bcb7bc673e65 | 7b9f37b84695a85241a6a67ad156b1ef941f34ab | /Quest01/Quest01/Character.h | 7f3f1484f6638f5b561948c3088d3e1954f92b86 | [] | no_license | HyunOSung/PracticeProject | 4cda8e12523b065466af962609a91fd0c93a3446 | ed81fa6d450fe5262fb39e2fbef71f846d1d5496 | refs/heads/master | 2020-06-09T16:40:26.124593 | 2019-07-23T13:15:02 | 2019-07-23T13:15:02 | 193,469,782 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 80 | h | Character.h | #pragma once
class Character
{
public:
Character();
virtual ~Character();
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.