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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
94c723781cf1e78e4c27f70ed19654a55019b11b | a5adb5bd429eb1732deb64233104d9aecd3be6d0 | /Interpreter.cpp | caeb7a4ea3884c92801bec45924a895e856b2e06 | [] | no_license | Krzysiuu/ChallengeWzorcowy | 71fd6c5724d68ce7683ba1267266e52c1666e939 | 48cf2a9220d738d1e42601ff30d52c3192d8c06d | refs/heads/main | 2023-05-11T00:21:59.716647 | 2021-06-05T21:05:04 | 2021-06-05T21:05:04 | 366,739,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,077 | cpp | Interpreter.cpp | #include <iostream>
#include <string>
using namespace std;
bool contains(string a, string b)
{
if (a.find(b) != string::npos)
return true;
return false;
}
class Expression
{
public:
virtual bool interpret(string) = 0;
};
class TerminalExpression : public Expression
{
private:
string data;
... |
0eada4054dc52d52f89dd6dd8beb357ef68808f7 | d57816abc28cd1361cf1c67c03cff2d08fb2ef7e | /enc_temp_folder/f9a1c3b8df854b76af5e38f5995db7/GTableTest.cpp | 1dac01e11a299f13293c070b79837f902ff14c42 | [] | no_license | nmkqjqr/ImgUIExFW | 7ec397e6ba2b22fc4c3acaa88a4300cba5f591f2 | f5ef47764a0d36409b2e8eacb5699f4337d52ca2 | refs/heads/master | 2020-12-02T03:15:44.805953 | 2020-01-21T09:58:41 | 2020-01-21T09:58:41 | 230,869,404 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 9,210 | cpp | GTableTest.cpp | #include "GTableTest.h"
#include <imgui.h>
namespace Test
{
GTableTest::GTableTest()
{
this->Initial();
}
GTableTest::~GTableTest()
{
}
void GTableTest::setConnection(string pcConnection)
{
if (this->connection.compare(pcConnection) != 0)
{
this->connection = pcConnection;
if (this->SQL)
{
... |
6a4c6d62ba9954e3f4a3042b546e8d31bd045bdd | aa4468d742099fff7986b34593bc4d821eedef38 | /chapter8_and_9/9.4-BST-patA1064.cpp | 73498e7bf304f82f7b12ca38b6203e4fcbc60f20 | [] | no_license | yeholdon/algorithm_note | ce261bc4e9f0158a7b45cb46b3e829c4c13152b3 | 67908ea2ccd9420c4fabee9ddeababc41e9df798 | refs/heads/master | 2020-05-19T13:21:32.947440 | 2019-06-17T12:31:00 | 2019-06-17T12:31:00 | 185,034,633 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 652 | cpp | 9.4-BST-patA1064.cpp | #include <cstdio>
#include <algorithm>
using namespace std;
const int maxn = 1010;
int CBT[maxn];
int num[maxn];
int n, p = 0;
void inorder(int index) {
if (index > n)
{
return;
}
inorder(index * 2);
CBT[index] = num[p++];
inorder(index * 2 + 1);
}
int main() {
// input
... |
1331a21d0cff084b9b5e737b0bf28e11582d4dd9 | da1500e0d3040497614d5327d2461a22e934b4d8 | /third_party/skia/src/gpu/text/GrTextContext.cpp | 52558c6a21c1a2c1ec211387de75bf72b73f4b18 | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"Apache-2.0",
"MIT"
] | permissive | youtube/cobalt | 34085fc93972ebe05b988b15410e99845efd1968 | acefdaaadd3ef46f10f63d1acae2259e4024d383 | refs/heads/main | 2023-09-01T13:09:47.225174 | 2023-09-01T08:54:54 | 2023-09-01T08:54:54 | 50,049,789 | 169 | 80 | BSD-3-Clause | 2023-09-14T21:50:50 | 2016-01-20T18:11:34 | null | UTF-8 | C++ | false | false | 11,055 | cpp | GrTextContext.cpp | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/text/GrTextContext.h"
#include "include/core/SkGraphics.h"
#include "include/gpu/GrContext.h"
#include "include/private/SkTo.h"
#include "src/core/SkDistanc... |
25b563c97a712daa94f122ca2bed97cd862696a1 | e9e8064dd3848b85b65e871877c55f025628fb49 | /code/MapEngine/MapOffSet/MapOffSet.h | 6e2b57774ad51e1270f8368e36971741c50661fe | [] | no_license | xxh0078/gmapx | eb5ae8eefc2308b8ca3a07f575ee3a27b3e90d95 | e265ad90b302db7da05345e2467ec2587e501e90 | refs/heads/master | 2021-06-02T14:42:30.372998 | 2019-08-29T02:45:10 | 2019-08-29T02:45:10 | 12,397,909 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 929 | h | MapOffSet.h | // MapOffSet.h: interface for the CMapOffSet class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAPOFFSET_H__A008B0D7_F0D6_493B_AE5E_084554569BD6__INCLUDED_)
#define AFX_MAPOFFSET_H__A008B0D7_F0D6_493B_AE5E_084554569BD6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif ... |
1f5e5b5a01c1b9784edfaca9430465ebda9b4774 | cd9a7e28614629c7e6c6c1d98dcdf2c65e6e80fb | /Classes/SceneBattle.cpp | b9fec84f0740bb71896418b34578da6e713644c4 | [] | no_license | YKurinn/Piece-Together-Game-Atopum- | 09527980da816e760cbce76e9b28b06fcee6a69c | 1b681063d08d6c323e5c8b7069b912f0da5e4073 | refs/heads/main | 2023-05-03T06:29:45.476200 | 2021-05-30T08:24:57 | 2021-05-30T08:24:57 | 346,574,649 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 10,526 | cpp | SceneBattle.cpp | #include "SceneBattle.h"
USING_NS_CC;
#define BLDBW 600
#define BLDBH 50
Scene *SceneBattle::createScene() {
Scene *scene = Scene::create();
auto layer = SceneBattle::create();
scene->addChild(layer);
return scene;
}
bool SceneBattle::init() {
if (!Scene::init()) {
return false;
}
Simpl... |
c779d5868dddc3a2c40e43ce38edfc807ba9083d | 7cf7a013ec8d16ba077cf819fc30d74033a2c406 | /src/SPDepo/coolant_condition.h | e8fc7012897251060448c52672c549bb6a5a9b31 | [
"Unlicense"
] | permissive | epmmko/SP-Depo-Single-Phase-Flow-V0.9 | 126ffa0de87b4ea9992bf7b70f6facfe802c4a22 | dafc7ada225321fafa7382d118149707c84b6968 | refs/heads/master | 2020-05-18T14:34:51.328246 | 2019-08-15T14:17:42 | 2019-08-15T14:17:42 | 184,476,335 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 693 | h | coolant_condition.h | #ifndef SPDEPO_COOLANT_CONDITION_H_
#define SPDEPO_COOLANT_CONDITION_H_
#include <iostream>
#include "fluid_properties.h"
namespace spdepo{
class CoolantCondition {
public:
CoolantCondition();
friend std::ostream& operator<< (std::ostream& os,
const CoolantCondition& obj);
std::ostream& Print(std::... |
8c58ecc3882e384261aaf4c5462fc7ee1fac15f0 | 22c47dfa803b2234ee37c4dee35b8c70a5fe0631 | /Sandbox/src/Tests/Texture3DTest.h | 4aa76baa434766f90ad8c46ef29f64a8adf86921 | [] | no_license | ozkazanc/Fugu | 1b17e9879f9e28668d495eb78dbf2b9e9caab156 | 8cc163ebd1637ff12c8d5d20a40dc106fe2989f5 | refs/heads/master | 2020-07-30T12:52:34.232004 | 2020-05-20T20:39:12 | 2020-05-20T20:39:12 | 210,240,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 535 | h | Texture3DTest.h | #pragma once
#include "Test.h"
class Texture3DTest : public Test
{
private:
float m_Time = 0.0f;
std::shared_ptr<Fugu::VertexArray> m_VertexArray;
std::shared_ptr<Fugu::Shader> m_Shader;
std::shared_ptr<Fugu::Texture> m_Texture;
std::shared_ptr<Fugu::PerspectiveCamera> m_PersCamera;
public:
Texture3DTest(cons... |
6e8cc13705fb13194e00029507d698d68aa8452f | 74c028f162412562494775fbd1f511871761f7a5 | /affichage.cpp | 4dc3c1808496459f8a36f40d471bd5f836aacff3 | [] | no_license | theohorlaville/jeu-cpp | d812a6ff4c1a3624fedebfe2367b7f29cf7afc78 | e5c03337d3257feae56a900980094c33d2f2e2b8 | refs/heads/master | 2023-02-18T02:41:24.007369 | 2021-01-21T10:14:37 | 2021-01-21T10:14:37 | 317,818,097 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,652 | cpp | affichage.cpp | #include <iostream>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#include "affichage.h"
#include "struct.h"
using namespace std;
//Creer la fenetre aux bonnes dimension et rempli la windowSurface
void createWindow(SDL_Window **window, SDL_Surface **windowSurface){
if (SDL_Init(SDL_I... |
7ba7294bcf6d6971be21de45e5cc513af5edd21e | d4fea4624cdd722146b3f82076e4c2ed2cafde5d | /windows/windows1/DLL_Project1/divide.cpp | 753b638b3fb69c3a0e05566f6774e02d4e9be606 | [] | no_license | sharanya1005/ncrwork | 5f2d4b3cd58fe1ee466a63d5c42f92d4fcfbc58a | f9eaff6e73bf0da8054d01f226059388c95d2293 | refs/heads/master | 2020-04-20T01:34:11.376119 | 2019-03-28T09:50:45 | 2019-03-28T09:50:45 | 168,549,087 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 141 | cpp | divide.cpp | #include<windows.h>
#include "mylib.h"
float divide(int n_op1, int n_op2)
{
float g_nResult = (float)(n_op1 / n_op2);
return g_nResult;
} |
13f08108fd16bf77a88722e1993646915b439c05 | ace7c5cedd92038c9074e5f28fd08209d1c567cc | /p1.cpp | 7e2cce905b3d153b03d58aa2dfa5a4d1361cb4c5 | [] | no_license | Shree-2301/cpp_projects | 3a2b286c7862f3cfcd38407bab71a20224364eb4 | 26f8fde55b10a690f4748d6fd9294429fff4fa49 | refs/heads/master | 2023-03-29T07:37:22.161393 | 2021-04-01T05:21:36 | 2021-04-01T05:21:36 | 353,457,173 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 467 | cpp | p1.cpp | // WAP to find number of prime number in given range. ?
#include <iostream>
using namespace std;
int main()
{
int Number,flag = 0;
cout << "enter a number which you want to check weather prime or not ?" << endl;
cin >> Number;
cout << "prime numbers in given range:";
for(int i = 1; i <= Number; i++) {
flag = 0;
... |
b8140b3ceeb69cb49b2be7be3abdc210131ebb59 | 88ae8695987ada722184307301e221e1ba3cc2fa | /ui/views/controls/button/checkbox_unittest.cc | 9211680566752cc9ba09bbfd544e32eb02a60c35 | [
"BSD-3-Clause"
] | 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 | 2,498 | cc | checkbox_unittest.cc | // Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/views/controls/button/checkbox.h"
#include <memory>
#include <utility>
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include... |
a3639ebc7f8b74816b994dd42285b61bc3d308cd | 51037b66998c79a1442add8ed298c9c6e473dcf2 | /Source/Entity/Enum/EEntityTypes.hpp | c7f79b50e2b34ddb82be4310cf0046bd52070f51 | [
"Apache-2.0"
] | permissive | Andres6936/LoX | 3ca7f8d2e1a2e07388f7e1b3b56c8510438fac33 | 5e26ecc8ddb7f43b785a1fa0c7cb87c0691530d3 | refs/heads/master | 2020-06-13T04:01:21.713205 | 2020-05-21T22:03:31 | 2020-05-21T22:03:31 | 194,527,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 690 | hpp | EEntityTypes.hpp | #ifndef LOX_EENTITYTYPES_HPP
#define LOX_EENTITYTYPES_HPP
#pragma once
/**
* Enumeration of all available creature types in the game
*/
enum EEntityTypes
{
CREATURE_NONE,
CREATURE_CHARACTER,
CREATURE_BUGBEAR,
CREATURE_CENTAUR,
CREATURE_DRAGON,
CREATURE_DROW_ELF,
CREATURE_GARGOYLE,
CR... |
d2b10960ce7a221a91f269e54b181500a58651ca | 0e766253e27d82133d9219b95e7faaecb7d5f2b8 | /trees/avl_trees.cpp | eec76c246178355d24d8fc465fa475c944f525d8 | [] | no_license | vvivek92/data-structures-and-algorithms | 1a74f18a279e8a1221b5ccc92d1431338ef7ecb6 | 168e397fe9689371084dda37612eba7e2637ca80 | refs/heads/master | 2021-01-10T01:33:39.952411 | 2014-04-13T12:02:14 | 2014-04-13T12:02:14 | 16,455,160 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,863 | cpp | avl_trees.cpp | #include<algorithm>
#include<iostream>
#include<climits>
#include <queue>
using namespace std;
struct node {
int data;
struct node * left;
struct node * right;
int height;
};
void print_lvl_queue (node * root) {
if(root==NULL) return ;
queue<node *> q;
q.push(root);
while(!q.empty()) {
... |
ff7a18431d36063d821beb0dd825b4d7e48f5f20 | 5a805aff54dd54527834d7b7b451b23a1a29837d | /TestMain.cpp | 8612d34f6ff60bfd0a843f887138f013bc5eaa00 | [] | no_license | gomercin/Histogram | fac75659a4f6191223ad5a8327aad2e67f0a2e6f | 8014ca72d36276a19c8b323bf42f36c0ddca9429 | refs/heads/master | 2021-01-21T11:39:57.926668 | 2016-05-18T20:25:17 | 2016-05-18T20:25:17 | 50,699,156 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,487 | cpp | TestMain.cpp | //
// TestMain.cpp
// Histogram
//
// Created by Omer Karaduman on 25.01.2016.
//
#include "FileHistogramApplicationCls.hpp"
#include <sstream>
#include <fstream>
#include <algorithm>
#include <iterator>
#include <string>
//got from stackoverflow
template<typename InputIterator1, typename InputIterator2>
bool
rang... |
ec1c19e9c64dad3838bb25ee250b86881756376b | a040978e9ca206c1ec3188fc01b1a51260f5f12e | /myWidgets/volumelabel.cpp | 90f4366c14743b47d351d17b58cba28ab0f07b9a | [] | no_license | yennhan1211/quadConfig | 9347c177914064e90db1e31f20463505c45090d4 | 4f69bfba0d06ee6b6afbd2892d89887a3260e6c7 | refs/heads/master | 2021-01-20T12:33:46.128907 | 2018-03-12T02:16:47 | 2018-03-12T02:16:47 | 90,376,855 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | cpp | volumelabel.cpp | #include "volumelabel.h"
#include <math.h>
volumeLabel::volumeLabel(QObject *parent) :
QLabel(parent)
{
m_step_width = this->width()*3/80;// 20 step
}
volumeLabel::~volumeLabel()
{
}
void volumeLabel::setVolValue(int val)
{
if(val > 100)m_percent = 100;
else if(val < 0)m_percent = 0;
else m_per... |
8a9ae4c5f39b48eae985672f8056bcf72c6b59cf | caf65ca26d99f3426679300f8c8be29ba2eb9201 | /neuro.cpp | e56202ead2b4411563ea531c073e38958fc211c8 | [] | no_license | cadovnikxyan/neuralNetwork | b546992b8c1cf85bbca29ca85164819747daae6f | 111f36cdc7eee306a74e018472f9f7036cdaa841 | refs/heads/master | 2020-12-02T12:33:02.754430 | 2016-08-30T12:43:41 | 2016-08-30T12:43:41 | 66,939,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,552 | cpp | neuro.cpp | #include "neuro.h"
Neuro::Neuro()
{
}
Neuro::link_koefs Neuro::LearnNeuroNet(const list<neurons_line>& src_images)
{
link_koefs result_koefs;
size_t neurons_count = src_images.front().size();
result_koefs.resize(neurons_count);
for (size_t i = 0; i < neurons_count; ++i) {
res... |
0ae978c5d744a3eb8fcc33aae0366c020c27f93e | d2cf6fc54965db50330bea6b068fd5cd890dc829 | /ICPC努力ing~/自修/素数问题/素数.cpp | 118c7e1a0b5d592075611550057cc7a9d7b8f3ac | [] | no_license | zyf-123/c-exercise- | dfdd458209849cb4bf45c359b20d413f3f4055c6 | d501bb08bb03c1deb8bbe8dec75dbd903de378cd | refs/heads/master | 2020-09-03T16:47:25.731958 | 2019-12-04T11:17:27 | 2019-12-04T11:17:27 | 219,512,320 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 364 | cpp | 素数.cpp | #include<stdio.h>
int nain()
{
int i, n;
scanf("%d", &n);
for (i = 2; i < n ; i++)
{
if (n%i == 0)//if一直没有成立。最终的i应该是等于n的
break;
}
if(i==n)
{
printf("这是一个素数");
}
else if(n==1)
printf("1不是素数也不是合数");
else
printf("这是一个合数");
return 0;
}
|
149ff23bbce18cc9053d8a3a712f9649bf078543 | cde307025a2f2cc7ffcd1d43ea4f75b23876450d | /inference-engine/src/inference_engine/shape_infer/built-in/ie_pool_shape_infer.hpp | 4344a420c793b92ecc32a90ddb7913bd950a672c | [
"Apache-2.0"
] | permissive | ni/dldt | 1767885f6bf26d9d13ce10d2de63c1ae38275066 | ed372319eca66a534e1dd6a521613b0caf187b26 | refs/heads/2018 | 2020-04-14T19:29:31.549152 | 2019-07-03T16:22:59 | 2019-07-03T16:22:59 | 164,059,518 | 1 | 2 | Apache-2.0 | 2019-07-03T16:50:11 | 2019-01-04T04:53:33 | C++ | UTF-8 | C++ | false | false | 3,643 | hpp | ie_pool_shape_infer.hpp | // Copyright (C) 2018-2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "ie_built_in_impl.hpp"
#include <map>
#include <memory>
#include <string>
#include <vector>
#include <cmath>
#include <ie_format_parser.h>
namespace InferenceEngine {
namespace ShapeInfer {
/**
*@brief Impl... |
a80c7ce2a1b2ebf0e26ecd848734ff920a5918f2 | 61d360dd62713f6b285a640c482d7cea7d2145a5 | /Advanced Level/1003.cpp | 6efe015c3a01cead18098904b3273ac22ef49112 | [] | no_license | sunxiaofeiT/PAT | 7463d708c9927d69b67a4598f1bc696ba86ede61 | 70fdec8fd0835484636fbcc3452c58ecd3f93a25 | refs/heads/master | 2020-04-01T04:25:55.487346 | 2018-10-13T12:28:29 | 2018-10-13T12:28:29 | 152,863,359 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,041 | cpp | 1003.cpp | #include <iostream>
#include <cstring>
using namespace std;
int main()
{
int n=0; //the number of cities
int m=0; //the number of roads
int nowLocation=0; //now location
int toLocation=0; //to the location
cin >> n >> m >> nowLocation >> toLocation;
int members[n]; //team members
f... |
731fdf9f668e728760f1e9166ba372960fca455c | 9370b358dab451aef8bd5c85fdd4899dfe1a59fd | /Person.hpp | 0f9e3b4343777095098d8cf9a50696a7cdae18f5 | [] | no_license | mariessalogan/Programs-from-Fall-2017 | 94a654df002f9efb627658135b0ee8dfa664ff15 | 2883d46066560db1665817acb9164114ea20b4d9 | refs/heads/master | 2020-05-17T20:57:22.572146 | 2019-04-28T21:17:24 | 2019-04-28T21:17:24 | 183,958,975 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 557 | hpp | Person.hpp | //*************************************
//Author:Mariessa Logan
//Date: 11/7/2017
//Description: This is the class Person that will be called to get the name and
//age of the people.
//************************************
#include<iostream>
#include<string>
#ifndef PERSON_HPP
#define PERSON_HPP
//Class declarator
cla... |
439aed9ca9afd25a74653a1d6ae65e5c35c70a94 | 5a123560559a4bf22463f47022bf4e755ce576be | /abstractClaSS andPure Virtual functions.cpp | 89100d219790b1c2be5117615c5ea74a6df9a839 | [] | no_license | abrahamwilliam/C-in-Datastructures-and-Algorithms-CMPE180A | 2d7f620dc5d88ed82f3fa841fd0d08bee7cc244b | 9fc94c0fb35b8b686ab24f0b30d66d4459a52129 | refs/heads/master | 2020-03-21T21:28:02.842984 | 2019-11-30T00:07:41 | 2019-11-30T00:07:41 | 139,064,776 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 465 | cpp | abstractClaSS andPure Virtual functions.cpp | #include<iostream>
using namespace std;
//abstact class we cannot create obj but we can create pointers
//pure virtual func donot have definitions but must be implemented in the derived classes or they have to declared as pure vurtual in derived classes also
class a{
public :
virtual void getname()=0;
};
class b... |
d5a18d4540e1e401a3d117ff7db35ea424e0e107 | fe4479632e2f9a8d78a07d31b529f9100addf191 | /src/sw/redis++/connection.h | 927b979fed70b438b0ac10310a4b66311cc9e7f0 | [
"Apache-2.0"
] | permissive | keaideni/redis-plus-plus | db3ef776724c11f30779ba9d2d1e906b287c657c | 94988b7ab134548346f84161fb62f39b709138e9 | refs/heads/master | 2020-07-18T09:09:23.243918 | 2019-12-25T06:42:01 | 2019-12-25T06:42:01 | 206,219,956 | 1 | 1 | Apache-2.0 | 2019-09-04T03:07:41 | 2019-09-04T03:07:39 | null | UTF-8 | C++ | false | false | 4,579 | h | connection.h | /**************************************************************************
Copyright (c) 2017 sewenew
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/licen... |
1b566d3c10cf72dd7c055e3fb1b328d701fb2c95 | 3143d58feca14f1593c6facb67487e40b0d42981 | /democode/part_introstuff.cpp | e04af56fc7f15990974c4ad11e53be28125d9ced | [] | no_license | fgenesis/hwmf | 10a315d8382e80d05dd60c56bc36ecf0d567d527 | 2c637f5ac140e851f70c88112cef53747a3c14c8 | refs/heads/master | 2022-07-15T10:54:52.722751 | 2020-05-15T09:34:57 | 2020-05-15T09:34:57 | 254,696,851 | 19 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,265 | cpp | part_introstuff.cpp | #include "demoshared.h"
#ifdef __GNUC__
#pragma GCC optimize ("Os")
#endif
demopart part_thissideup()
{
DrawImageHelper<data_sideup_png> img;
img.applypal();
partdone = false;
for(u8 y = LCD::HEIGHT/3; y > 10 && !partdone; y -= 1)
{
img.draw(LCD::WIDTH/2 - img.w/2, y);
LCD::fillre... |
78becb68084ee960f0b8c82d713780d416efa78c | 5280a92d2be712ba10e81e5deeb3fca9f6a9b549 | /historyscreen.h | ce6da7d2da88c191651df25bed8cba37e1cbe165 | [] | no_license | ElectronicRU/iceberg-simulator | 33dfe99eb99479d2fa3aba67126e875710eedab0 | 1d00c922d02ff01635e97d55f8aff4346ddaea19 | refs/heads/master | 2021-01-23T22:37:30.318973 | 2014-05-21T18:24:18 | 2014-05-21T18:24:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,432 | h | historyscreen.h | #ifndef HISTORYSCREEN_H
#define HISTORYSCREEN_H
#include <QWidget>
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QAbstractGraphicsShapeItem>
#include <QPainter>
#include <QTimer>
#include <QAction>
#include <QMouseEvent>
#include "history.h"
#include "graphics.h"
namespace Visual {
using Simulation::H... |
bfd4e9678fcd0e98990c9cded72ee681c7f55c5e | 081196e7c0aa81d068b1d9ffc24651d4824d0fcb | /ch09/9.33.cc | d88b8ed872c4a7638b3f63041c0cd6a222c60684 | [] | no_license | guoanjie/Cpp-Primer | a007706b498692d284c04248551c58cc215fb04b | 76c805dfc1e8fcfabfe961cb9e6ba8785855760f | refs/heads/master | 2021-09-20T01:01:54.565023 | 2018-08-01T22:10:20 | 2018-08-01T22:10:20 | 115,463,696 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 385 | cc | 9.33.cc | #include <iostream>
#include <vector>
int main() {
std::vector<int> v;
for (int i; std::cin >>i;)
v.push_back(i);
auto begin = v.begin();
while (begin != v.end()) {
++begin;
v.insert(begin, 42); // begin is invalidated
++begin;
}
for (auto i : v)
std... |
32e74fd75984ed8153d31a8f204868cf96825485 | f48a79447915e99307d9ec1c4c45dd1bdcc9a93f | /Lib/FlatBuffer.cpp | 7e03b3d5cbdc8a3f61235208b4ba8a4903b4a5f9 | [] | no_license | bactq/69net | 994de1ed97e7188110b538cde3f94af2729f3fc7 | 5b220d8132e73cbbea3f8490ac865dc406b0e6fd | refs/heads/master | 2020-12-02T16:35:51.089541 | 2015-01-22T11:09:56 | 2015-01-22T11:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,566 | cpp | FlatBuffer.cpp | #include "All.h"
namespace xxx
{
Pool FlatBuffer::emptyPool; // for do not need delete's buffer
FlatBuffer::FlatBuffer( int capacity )
{
if( capacity < 1024 ) bufLen = 1024;
else bufLen = (int)Round2n( capacity );
disposer = nullptr;
buf = new char[ bufLen ];
... |
f91b8903c89c0f19fe82fcd393038b15b7136d2b | e9e494b962a3cc44c81b0c5745aa37aca73abed1 | /Master/shadow.cpp | 670895efc0a9b04d367d9d1ad22d12336c7620e2 | [] | no_license | DaikiIsozaki/ParadeoftheMonster | 9fb2777c84bcb31d46363cd6e323c59bf839469d | b1ae37ab403f178bd1ee891dd00e1821fd99b059 | refs/heads/master | 2020-11-23T21:19:27.676357 | 2019-12-13T11:36:22 | 2019-12-13T11:36:22 | 227,824,345 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 5,004 | cpp | shadow.cpp | #include "shadow.h"
#include "CTexture.h"
#define SHADOW_MAX (90)
#define FVF_VERTEX3D (D3DFVF_XYZ |D3DFVF_DIFFUSE|D3DFVF_TEX1)
typedef struct Vertex3D_tag
{
D3DXVECTOR3 potision;//D3DXVECTOR3←X,Y,Z
D3DCOLOR color;
D3DXVECTOR2 texcoord;
}Vertex3D;
static const Vertex3D v[] = {
//前 //↓... |
f4a047cbed61497a1032ac8f1e74b462bbcec8f2 | da0d59bba194b2e4ae9c1df960c5639f6f4ce334 | /Renderer/include/maps.h | 8b978e2082c8df07da7613a054f499d45b627447 | [] | no_license | platvlad/ColorTracking | 8ddea6fa70a624b43118525d2a63e871a8865db3 | 278a2c7aea037c0307d6f64f48cf520ef0e920fc | refs/heads/master | 2023-05-13T08:33:24.379183 | 2023-05-07T15:26:28 | 2023-05-07T15:26:28 | 205,429,637 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409 | h | maps.h | #ifndef RENDERER_MAPS_H
#define RENDERER_MAPS_H
#include <opencv2/core/mat.hpp>
class Maps
{
const int width;
const int height;
public:
Maps(int width, int height);
cv::Mat1f depth_map;
cv::Mat1i color_map;
cv::Mat1b mask;
cv::Mat1f signed_distance;
cv::Mat1f heaviside;
cv::Rect... |
0e37b83757dff23951777dad4cf5d7dfc47e3c70 | 78059badabeb9923add6e740f28e2cd29d36240b | /src/timer.cpp | 3e425f5c455bb6660b80063cbecf5e33616bae95 | [] | no_license | Arkaniad/centron | 7d90e800ccc72f8dab42e90bb04ff94d7cbc002b | fbb90d9900730c13ad31bba17775fb0127716666 | refs/heads/master | 2020-05-17T21:52:26.226428 | 2017-09-15T02:47:02 | 2017-09-15T02:47:02 | 7,311,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 977 | cpp | timer.cpp | // System Includes
// Internal Includes
#include "log.h"
#include "timer.h"
// External Includes
#include "SDL/SDL.h"
using namespace Centron;
Timer::Timer(){
log.setTag("TMR");
log.info("Creating a timer.");
stop();
}
void Timer::start(){
started = true;
paused = false;
startTicks = SDL_GetTicks();
}
... |
7a9f8062370e8ebfcc12bb33e3db778c207ee8b3 | baf2c4ab24ba4a45ea0d5de475e2880e761a130a | /main.cpp | 7c6fc1a2d5f4d4804b99452d03cc9fad07eb5f5c | [] | no_license | AugustodeLara/Sobrecarga | 0fd3c5f847ce688f960f75899db8365e1419e433 | cf4a51b477d9e9282e5cbb4c8309ef344fe4f044 | refs/heads/master | 2022-12-16T15:51:30.955955 | 2020-09-21T03:28:41 | 2020-09-21T03:28:41 | 297,218,540 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 479 | cpp | main.cpp | #include<iostream>
using namespace std;
void Numeros(char *msg, int *x);
void Numeros(char *msg, float *x);
int main()
{
int inteiro;
float flutuante;
Numeros("Digite um numero inteiro", &inteiro);
Numeros("Digite um numero flutuante", &flutuante);
system("pause");
}
void Numeros(char *ms... |
2f8af4ad7c4ba79daa42b8fb5fec8ce9021438b2 | b9b966952e88619c9c5d754fea0f0e25fdb1a219 | /libcaf_core/caf/detail/source_location.hpp | f650ffdb205ba5fe588efb967fc1c45242b5e700 | [] | permissive | actor-framework/actor-framework | 7b152504b95b051db292696a803b2add6dbb484d | dd16d703c91e359ef421f04a848729f4fd652d08 | refs/heads/master | 2023-08-23T18:22:34.479331 | 2023-08-23T09:31:36 | 2023-08-23T09:31:36 | 1,439,738 | 2,842 | 630 | BSD-3-Clause | 2023-09-14T17:33:55 | 2011-03-04T14:59:50 | C++ | UTF-8 | C++ | false | false | 1,133 | hpp | source_location.hpp | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#pragma once
#include <cstdint>
namespace caf::detail {
// Backport of C++20's source_l... |
461b37cb15c880448bde2a368e0891ad466428c2 | a3e022854ea35a1eda90de3dd77580fdb8cd3e3d | /Space Invaders/Space Invaders/PlayerShip.cpp | 2f6ee2221cda23679ff3e82f36358ad641f7b278 | [] | no_license | JcFowles/SpaceInvaders | ee9c849bc2bd4c8713c33743877a614cc751f832 | 7e8894a9937c37e619b0d462ca5e7e8b1102b751 | refs/heads/master | 2021-01-22T07:28:16.393475 | 2014-11-03T21:34:18 | 2014-11-03T21:34:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,645 | cpp | PlayerShip.cpp | /*
* Bachelor of Software Engineering
* Media Design School
* Auckland
* New Zealand
* (c) 2005 - 2014 Media Design School
* File Name : Level.h
* Description : Header file for the Level class
* Author : Jc Fowles
* Mail : JC.Fowles@mediadesign.school.nz
*/
// This Include
#include "PlayerShip.h"
/**********... |
f7d37e357d1e3eaf779ae9f284a02f9edbd4c3fd | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /src/plugins/intel_gpu/include/intel_gpu/primitives/depth_to_space.hpp | 6d1c430d9172de869a6c9a0c30d3fa46eb42d5f5 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | C++ | false | false | 2,310 | hpp | depth_to_space.hpp | // Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "primitive.hpp"
namespace cldnn {
/// @brief mode for the @ref depth_to_space primitive.
enum class depth_to_space_mode : int32_t {
/// @brief the input depth is divided to [block_size, ..., block_size, n... |
6b49405e8193b27b11e8d746eacff5224f892626 | ab97a8915347c76d05d6690dbdbcaf23d7f0d1fd | /ash/hud_display/cpu_graph_page_view.cc | dd29819ec2414659387bde64cbd63de7c7810d9c | [
"BSD-3-Clause"
] | permissive | laien529/chromium | c9eb243957faabf1b477939e3b681df77f083a9a | 3f767cdd5c82e9c78b910b022ffacddcb04d775a | refs/heads/master | 2022-11-28T00:28:58.669067 | 2020-08-20T08:37:31 | 2020-08-20T08:37:31 | 288,961,699 | 1 | 0 | BSD-3-Clause | 2020-08-20T09:21:57 | 2020-08-20T09:21:56 | null | UTF-8 | C++ | false | false | 2,562 | cc | cpu_graph_page_view.cc | // Copyright 2020 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.
#include "ash/hud_display/cpu_graph_page_view.h"
#include <numeric>
#include "ash/hud_display/hud_constants.h"
#include "ui/gfx/canvas.h"
namespace ash... |
891e64fb2447956c3a9fda51871a2552d1065e57 | 7305b56e320d4996170e316c6e0517d8f14cc821 | /ion/core/platform/windows/debug/DebugWindows.cpp | 7a6941000a03a16de5fe8247f5bb3fdaa9c02a8d | [] | no_license | BigEvilCorporation/ion-engine | 13c2d9ac6e1c6dedfa79538b334d5835e8355bdd | eb1724028d8e3d650561b983084a961acaf2d752 | refs/heads/master | 2022-01-16T05:37:36.397880 | 2021-12-28T01:02:33 | 2021-12-28T01:02:33 | 61,315,281 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,309 | cpp | DebugWindows.cpp | ///////////////////////////////////////////////////
// (c) 2020 Matt Phillips, Big Evil Corporation
// http://www.bigevilcorporation.co.uk
// mattphillips@mail.com
// @big_evil_corp
//
// Licensed under GPLv3, see http://www.gnu.org/licenses/gpl-3.0.html
//
// File: Debug.cpp
// Date: 27th August 2020
// Authors: Ma... |
dfb11a3af44a832d2d6c30b4a2a7fdd3bd193607 | 4c8110f36f39f8d4dfb478365b4a17f16f43993e | /src/ui/qt_screen_recorder/qt_screen_recorder_earlyparams.cpp | d8ecfb6c2e8564303b1643914d3ad47eba47424a | [] | no_license | 168WenFangjun/screen_recorder | a782e98fe2cecfa80d7f80ff16606825468930a2 | c7fbbae91a0d4758115bda5842354eaaa1a833eb | refs/heads/master | 2022-11-18T12:29:11.033170 | 2020-07-13T18:08:47 | 2020-07-13T18:08:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 261 | cpp | qt_screen_recorder_earlyparams.cpp | //
// file: qt_screen_recorder_earlyparams.cpp
// created on: 2020 Jul 13
// created by: D. Kalantaryan (davit.kalantaryan@gmail.com)
//
#include "qt_screen_recorder_earlyparams.hpp"
qt_screen_recorder::EarlyParams::EarlyParams()
{
//
}
|
d644c0e7c00a0229a9033f6e2fec6ce0e51a45bd | d650d18238a8fc52da1310738bf7493772daf311 | /HL2App/Plugins/HololensResearchMode/Source/HololensResearchMode/Public/HololensMagnetometer.h | 91296af5ead261ac28b035856896b83d9d719095 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Llleea/HoloLens-ResearchMode-Unreal | ca5990217a128bca2969ff865d6d90c0abb5164d | 1314d840de86aedbc43f720fa39b7ff46ec35e51 | refs/heads/main | 2023-07-31T09:12:51.403881 | 2021-09-15T16:19:33 | 2021-09-15T16:19:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,027 | h | HololensMagnetometer.h | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include "HololensSensor.h"
#include "HololensMagnetometer.generated.h"
USTRUCT(BlueprintType, Category = "HololensResearchMode")
struct HOLOLENSRESEARCHMODE_API FHololensMagnetometerFrame
{
GENERATED_USTRUCT_BODY... |
28fc9e357956d37a7996a2a5a2eb0a8952e39a69 | b2565cb7f7cccda09698a4e87b06a5def3117a2e | /Sources/Level/Parser/Nodes/tilenode.h | 08723c8553b87f09fba000cb183ee745f0fba87f | [] | no_license | Olxe/MonsterRules | d147a4a62ebae75fb17f61bbc2f062d02071f071 | 6c61a4dfca924b870a25264519ee690f576339a3 | refs/heads/master | 2022-05-23T17:52:10.635921 | 2020-01-21T23:24:31 | 2020-01-21T23:24:31 | 224,265,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 551 | h | tilenode.h | #ifndef __TILENODE__
#define __TILENODE__
#include "Node.h"
#include "propertiesnode.h"
#include "objectgroupnode.h"
#include "imagenode.h"
namespace Parser
{
class TileNode: public Node
{
public:
TileNode(Node* parent = nullptr);
~TileNode();
int GetId() const { return m_id; }
std::string GetType() const... |
e70230dc780a52b22f30697cce5e57c91acbdde4 | 24d8605951b6f0d457c7cfbf99cebc93470c815e | /include/MMZoomChangedData.h | c1747e29efd7cc94d62c549ce76b925cfa2dc1d9 | [] | no_license | OpenMagx/sdk-for-moto-zn5-u9 | dea9d91b4636338bd24222363dc7eab8ea2e2a03 | 0e103109acbb1e438341ec73ac428d037526e7e7 | refs/heads/master | 2021-01-25T04:02:05.456541 | 2011-11-16T05:20:05 | 2011-11-16T05:20:05 | 2,785,766 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | h | MMZoomChangedData.h |
// Copyright (c) 24-Aug-07 - 2008 Motorola, Inc. All rights reserved.
#ifndef MMZOOMCHANGEDDATA_H
#define MMZOOMCHANGEDDATA_H
#ifndef __cplusplus
#error "This is a C++ header file; it requires C++ to compile."
#endif
#include "MMEventData.h"
class MMZoomChangedData: public MMEventData
{
public:
MMZoomChang... |
e76eb7d440af60ada0338e9a3b55fb4d30f1066c | 33975f46034a58482c5fd82dc5bd2e7c9c22e3c7 | /python_bindings/src/halide/halide_/PyArgument.h | ea6197d7800d69d41619a6e4024f6f7ac0f778b1 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-blas-2017"
] | permissive | halide/Halide | 8fafc15c2361a99d59e5d8146799fd570e7f062a | 8188b42c50e4ed47a01bbfb43289453c6fc5b1c9 | refs/heads/main | 2023-09-04T09:24:42.156763 | 2023-09-01T17:38:19 | 2023-09-01T17:38:19 | 5,241,312 | 5,014 | 1,142 | NOASSERTION | 2023-09-14T19:38:55 | 2012-07-31T04:05:25 | C++ | UTF-8 | C++ | false | false | 299 | h | PyArgument.h | #ifndef HALIDE_PYTHON_BINDINGS_PYARGUMENT_H
#define HALIDE_PYTHON_BINDINGS_PYARGUMENT_H
#include "PyHalide.h"
namespace Halide {
namespace PythonBindings {
void define_argument(py::module &m);
} // namespace PythonBindings
} // namespace Halide
#endif // HALIDE_PYTHON_BINDINGS_PYARGUMENT_H
|
2590cbec3bdc53e3a7120bcaa01a6c82fb10551d | cdb11734b874f0df39addd9ea74381e3f3f7ddbc | /module07/ex00/whatever.hpp | 45e657c636c7cb05942e51f4133b6d750a9662e1 | [] | no_license | baxetle23/cpp_module | 66aba5a3c23021c854ff1a565f03ea4a8e5d676a | 300fb6bc5c1bcc304426ecefbe578aba8673d26a | refs/heads/main | 2023-08-05T13:03:10.818400 | 2021-09-18T07:49:48 | 2021-09-18T07:49:48 | 402,978,962 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,010 | hpp | whatever.hpp | #pragma once
#include <iostream>
template<typename T>
void swap(T& first, T& second) {
T tmp = first;
first = second;
second = tmp;
}
template<typename T>
T min(const T& first, const T& second) {
return (first >= second) ? second : first;
}
template<typename T>
T max(const T& first, const T& second) {
return (f... |
366a0077bba1e14d006f5a7fd17a67749d0a550c | 1b7156edd7f65226ff4a18d612a19b5a065526c1 | /set/set_time.cpp | 279838f908020c4bc67ab4cd31a392e393de3591 | [] | no_license | ko4a/mpiaa | e6a6cdb838c5b0872f831cc39db9e2a64be9405c | da246d8a92fd96ed76928fb825dcb820b5c09e5e | refs/heads/master | 2021-07-19T23:45:49.367421 | 2017-10-27T04:48:20 | 2017-10-27T04:48:20 | 109,133,087 | 1 | 0 | null | 2017-11-01T13:11:22 | 2017-11-01T13:11:21 | null | UTF-8 | C++ | false | false | 2,154 | cpp | set_time.cpp | #include <algorithm>
#include <vector>
#include <chrono>
#include <cstdlib>
#include <cstdio>
#include "set.h"
typedef std::chrono::high_resolution_clock hrc;
namespace {
class Timer {
public:
Timer() {}
void start() {
begin = hrc::now();
}
double getTime() { ... |
9bc9e805a57014c9871b5f506b9f87c243f43828 | 64f14a4ca2869978a043824c515251f3c365c994 | /Classes2/HelloWorldScene.cpp | a2f7be34fd99e0233ad79f31d2179e9e5c488f2d | [] | no_license | hl000928/BreakTheBricks | 96daf53460f52a3d3e8d6a5568889ab862865def | ec48e067ffcf867b8b19c101bb97ce97c6c1a552 | refs/heads/master | 2021-05-29T13:52:17.512545 | 2015-08-14T01:12:49 | 2015-08-14T01:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,649 | cpp | HelloWorldScene.cpp | #include "HelloWorldScene.h"
#include "LevelMenuScene.h"
//#include "Music.h"
#include "SimpleAudioEngine.h"
#include "extensions/cocos-ext.h"
USING_NS_CC_EXT;
USING_NS_CC;
using namespace CocosDenshion;
Scene* HelloWorld::createScene()
{
auto scene = Scene::create();
auto layer = HelloWorld::create();
... |
e8e1ca8bb01b5e2c73aa3b8d166f9194680e032e | 609e71a70d74423ad477a20d2767b2bcfbab56b3 | /maemo-vision/ScrollArea.h | 42cf4fd6d6e4b918cef60d5f7eb57019464bfcb7 | [] | no_license | sumingfei/aug_reality | 8e72222bc10e00110411754ef202c849d4313184 | 83ca54d0aabf3bfd1f5d0d4266edd210605a3d26 | refs/heads/master | 2021-01-21T19:29:04.338384 | 2011-03-10T21:48:45 | 2011-03-10T21:48:45 | 1,362,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,109 | h | ScrollArea.h | #ifndef SCROLL_AREA_H
#define SCROLL_AREA_H
#include <QWidget>
#include <vector>
/* A ScrollArea is a container widget that displays one child at a
* time. */
class ScrollArea: public QWidget {
Q_OBJECT
public:
ScrollArea(QWidget *parent = 0);
// Adds a new child widget. The child will be resized to be... |
85839ac12e237fa5cbb86bd2c853943dc949be5d | a02fdc8a55f3304098c26343030a1729e24d7941 | /BotanicalGarden/BotanicalGarden/EU3HistoryItem.cpp | 0e2ef85d0196f00c4f0438c46629377dfc4e8ad8 | [
"MIT"
] | permissive | Idhrendur/RomanHoI4 | 83ca5bd3ce42ded7126e6b4a11546cc076583595 | a17c65f0f144432b3385c653a53071e700c637bb | refs/heads/main | 2023-05-26T08:07:29.538735 | 2023-04-20T02:22:51 | 2023-04-20T02:22:51 | 427,995,912 | 1 | 0 | MIT | 2021-11-14T17:34:03 | 2021-11-14T17:34:03 | null | UTF-8 | C++ | false | false | 395 | cpp | EU3HistoryItem.cpp | #include "EU3HistoryItem.h"
#include "CommonRegexes.h"
#include "EU3Monarch.h"
#include "ParserHelpers.h"
EU3::HistoryItem::HistoryItem(std::istream& theStream)
{
registerKeyword("monarch", [this](std::istream& theStream) {
lastDynasty = Monarch(theStream).getDynasty();
});
registerRegex(commonItems... |
3fff7b88cb8ad61c88565dea5170c1d873b4a023 | 092b52272b3de50876bd839fae1f12d81ace6a44 | /bar/roo.cpp | 4d9cef4d09be699c7e581b55905d89e8849b334d | [] | no_license | forexample/ios-dynamic-framework | 3f1d3a2949e6a212bdb57ee0e6846c6744c86346 | f732bdc88640894584a78c50d8b2e501a99e1a31 | refs/heads/master | 2021-01-01T15:24:40.850058 | 2018-08-31T18:37:54 | 2018-08-31T18:37:54 | 38,051,209 | 30 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 68 | cpp | roo.cpp | #include <iostream>
#include <bar/bar.hpp>
int main() {
bar();
}
|
65d5e34fd5950a8eb65af5b7897a1dfa159e5bdf | e0081f841cb3510688a8895b817ab72fe569ad9b | /protocol/fuji_ac_protocol_handler.cc | 66579cde48f45e8045fabf3e8b3009e4caf5bae2 | [
"Apache-2.0"
] | permissive | ardavanhashemzadeh/fuji-iot | 859b049b534b4b34809e5c4f945d2a3b6049202a | 0a29b261809729beaddf68706e4e3eda074602be | refs/heads/master | 2023-06-25T11:59:12.824399 | 2021-07-30T20:08:33 | 2021-07-30T20:08:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,856 | cc | fuji_ac_protocol_handler.cc | // Copyright 2020 Fuji-Iot authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appli... |
918ccc5373e31a769c2deebbc12f9f199444d04d | 5dbc0f6d4c4cdff62612566d622da8cf80d90d05 | /catkin_ws/src/judge_system/include/judge_interface.h | 4e7358568806e77f9dde34954ad4c7d128c12bf5 | [] | no_license | Li-Jinjie/gazebo_drone_tutorials | 9622cecdb4a443cf5309d969227c6e0d41dbe68f | e7e0dd592176b21b3e7779d9692e923edb23032b | refs/heads/master | 2021-01-03T07:41:12.458912 | 2020-07-12T14:16:18 | 2020-07-12T14:16:18 | 239,985,497 | 2 | 0 | null | 2020-04-01T13:37:18 | 2020-02-12T10:29:40 | null | UTF-8 | C++ | false | false | 5,168 | h | judge_interface.h | #pragma once
#include <iostream>
#include <vector>
#include <set>
#include <map>
#include <ros/ros.h>
#include <opencv2/opencv.hpp>
#include <std_msgs/Bool.h>
#include <geometry_msgs/Pose.h>
#include <geometry_msgs/Point.h>
#include "gazebo_msgs/ModelStates.h"
#include "judge_system_msgs/Move_cmd.h"
#include "judge_sys... |
af45e148cb07cfd6b6f6503797d69b4e05b30f38 | 8b75d506f796f378e0343a9a31677edcb0138aa7 | /SpaceGoat/SolarSystem.hpp | 3223e53802273c7f539e2ce61f909d5c42bfcacb | [] | no_license | daflad/PsyFighter | 6fc9942b61bad1b62de66c94c927c72516f89ce1 | 7f3f59b37bdbf472bfd64d295ce077c8ced510f9 | refs/heads/master | 2016-09-05T13:54:46.887716 | 2013-12-20T10:50:44 | 2013-12-20T10:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 807 | hpp | SolarSystem.hpp | //
// SolarSystem.h
// SpaceGoat
//
// Created by Stephen John Russell on 14/12/2013.
// Copyright (c) 2013 Stephen John Russell. All rights reserved.
//
#ifndef __SpaceGoat__SolarSystem__
#define __SpaceGoat__SolarSystem__
// C++ Libs
#include <iostream>
#include <vector>
#include "GL/glew.h"
#include <GLUT/glu... |
cf2dcd4148fb927a3c944bfe4bf5d38852463c37 | ef0977aa637f720f2c9528bf4fe467863d83aa99 | /Board.h | 8ea3154b8e6b1ba648d17036e964ce10f2b77fee | [] | no_license | ConorMeade/Battleship | ffde567f3de2dd6a86cc5cacdf3362d4f4979785 | c64e0d258ea28b6180b07d0d7fde14864d4db052 | refs/heads/master | 2023-01-30T18:27:02.300921 | 2020-12-14T23:20:59 | 2020-12-14T23:20:59 | 311,466,309 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | h | Board.h | #include <string>
#include <unordered_map>
// #include "Node.h"
class Board {
public:
Board(int playerNum);
~Board();
int getBoardHeight();
int getBoardWidth();
std::string getPlayer();
void setPlayer(int newID);
Node**createGameBoard();
void makeAtta... |
ed886464020bbfae18920856e58d513d916d6ff3 | a4c427b589b60ce090b7545312736e814130b31c | /ns3-wrr/src/model/weighted-round-robin-queue.h | ebd11605290f48ff3770998289b7b3532e835d31 | [] | no_license | vhbsoft/elara | bbaa8130e8bcd799e232ab996214b0b15b36f744 | e368c5e021beabf85e78c0fb5bc825607790a495 | refs/heads/master | 2020-05-25T15:45:52.918894 | 2019-05-20T18:22:55 | 2019-05-20T18:22:55 | 17,358,138 | 4 | 6 | null | 2017-05-26T06:18:06 | 2014-03-03T07:13:23 | C++ | UTF-8 | C++ | false | false | 2,395 | h | weighted-round-robin-queue.h | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
#ifndef WEIGHTED_ROUND_ROBIN_QUEUE_H
#define WEIGHTED_ROUND_ROBIN_QUEUE_H
#include <queue>
#include "ns3/packet.h"
#include "ns3/queue.h"
#include "ns3/nstime.h"
namespace ns3 {
class TraceContainer;
class WeightedRoundRobinQueue: public Queue {
pu... |
cd39f5e4b473b77c461407a409efd01f26f3f5d9 | 9133d7c763d613ff96371154a760c45ed970469f | /libgen/lgen_reg_exp2.cpp | 4d4be01e423725b22de75eed38466ca2e9382dd6 | [] | no_license | proteinprospector/prospector | 48fc20eead274e4296ed772835ebf96d1c3e8b9e | 13e856884120a7479cdffab3d9a99e45354ae37c | refs/heads/master | 2021-01-10T04:37:53.346194 | 2015-12-01T20:23:54 | 2015-12-01T20:23:54 | 44,890,436 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,217 | cpp | lgen_reg_exp2.cpp | /******************************************************************************
* *
* Library : libgen *
* *
... |
d3eb5167ccff0c4d3e0348f54552e2dae8581430 | ab91c1368772e2ba39024d20021f3e2f28765fc1 | /SortSystem/DlgSortSystemParameter.h | 8427196a36d8b55c4e74d8124b04b7c74fc294ea | [] | no_license | yuanhaosh/SortSystem | 48a957a1d0bdcf17c7dfa3d82b0f33df0fd3b270 | b14a73e909d156a5723a84bc68113905a78ec47c | refs/heads/master | 2016-09-05T09:13:34.228585 | 2015-08-06T10:50:05 | 2015-08-06T10:50:05 | 40,297,964 | 3 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,804 | h | DlgSortSystemParameter.h | #pragma once
#include "stdafx.h"
// CDlgSortSystemParameter 对话框
class CDlgSortSystemParameter : public CDialogEx
{
DECLARE_DYNAMIC(CDlgSortSystemParameter)
public:
CDlgSortSystemParameter(CWnd* pParent = NULL); // 标准构造函数
virtual ~CDlgSortSystemParameter();
// 对话框数据
enum { IDD = IDD_DIALOG_PARAMETER };
prote... |
0fa5e7b1357d3de005218dd3d999081778d68bc4 | 94d8b970923236e895e34f79a56f6b13b373f252 | /05-2021/sample codes/dp.cpp | f111a411011ab790b277afcccc0ee0e4746434e4 | [] | no_license | vinhdq842/Cpp-CP | 5727a3c7ba08f2888204c33d9622a7c7749540f9 | f43c8b932a956a0c195f1ead375dbb1a81a81c20 | refs/heads/main | 2023-08-20T18:57:34.323893 | 2021-10-29T02:43:54 | 2021-10-29T02:43:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 745 | cpp | dp.cpp | #include<bits/stdc++.h>
using namespace std;
#define fast_io ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
#define ll long long
int n, m, w[105], v[105], f[105][105];
int main() {
#ifndef ONLINE_JUDGE
freopen("input.inp", "r", stdin);
freopen("output.out", "w", stdout);
#endif
fast_io
... |
b975e17f2169c4055dd0e8176059a8709b03085d | 2a906763c64086062211982e704c3ed516bd6c81 | /libsplit/src/Scheduler/SchedulerFixedPoint.h | c8cd68bec24d26534935602e7583b7f06c342bd2 | [
"MIT"
] | permissive | phuchant/libsplitcl | 4818032af9c38dbc6b6d84cdb05feae7e3328dac | 4688bd9ab8c3b60c7848eab73519e44cb083cbbc | refs/heads/master | 2020-04-25T23:41:45.008394 | 2019-09-19T17:00:05 | 2019-09-19T17:00:05 | 173,154,054 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,072 | h | SchedulerFixedPoint.h | #ifndef SCHEDULERFIXEDPOINT_H
#define SCHEDULERFIXEDPOINT_H
#include <Scheduler/SingleKernelScheduler.h>
#include <Utils/Algebra.h>
namespace libsplit {
class SchedulerFixedPoint : public SingleKernelScheduler {
public:
SchedulerFixedPoint(BufferManager *buffManager, unsigned nbDevices);
virtual ~Schedu... |
a2b2c0006fd0defe085af75caec72099fb83bee7 | 4b55bf00f5326cce8712f7e5569e153814628b81 | /04. Unreal 3d portfol Legend of Zelda Breath of the Wild/ZeldaBOTW(19.04.09)/Source/ZeldaBOTW/Player/PlayerTrace.h | c449e0aa8e3d9a08819983fab72b48cf7294827d | [] | no_license | Ramge12/portfolioCode | c12bdee5f608ca04cd11438e8697d214349eb322 | 5996bfba5ed156d3eeceb7f390292855251295d6 | refs/heads/master | 2020-03-22T03:09:36.010746 | 2019-04-09T13:02:51 | 2019-04-09T13:02:51 | 139,416,130 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,452 | h | PlayerTrace.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "ZeldaBOTW.h"
#include "Components/ActorComponent.h"
#include "PlayerTrace.generated.h"
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class ZELDABOTW_API UPlayerTrace : public UActorComponent
{
G... |
43822cd402edc14f1721a00d94532abda1d670ad | 4dbb45758447dcfa13c0be21e4749d62588aab70 | /iOS/Classes/Native/System_System_Text_RegularExpressions_Syntax_Expre3534504316.h | 9029add1fc022f61d061954ffa5669590db2a2da | [
"MIT"
] | permissive | mopsicus/unity-share-plugin-ios-android | 6dd6ccd2fa05c73f0bf5e480a6f2baecb7e7a710 | 3ee99aef36034a1e4d7b156172953f9b4dfa696f | refs/heads/master | 2020-12-25T14:38:03.861759 | 2016-07-19T10:06:04 | 2016-07-19T10:06:04 | 63,676,983 | 12 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,459 | h | System_System_Text_RegularExpressions_Syntax_Expre3534504316.h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "System_System_Text_RegularExpressions_Syntax_Asser3981028276.h"
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragm... |
1092fb969ed2069506b7700e6f1a28b35b695df5 | d4825df82d07345d4816fe4590da8713a6e2247f | /Algorithm/Prime.cpp | 61af0581e04b7651165c8944bacee178a1261b3d | [] | no_license | RexyZan/Kulina-Indonesia-Algoritma-dan-Basic-Coding | 4f98750b8fa5fa4a388e29f12feaa2d8177d0244 | 79a8af4fda2420f8fa66933ba51d73996b76047f | refs/heads/master | 2020-03-16T21:16:51.380975 | 2018-05-11T09:01:19 | 2018-05-11T09:01:19 | 132,992,458 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 778 | cpp | Prime.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int inputan1, inputan2;
//Program pertama menampilkan bilangan prima sebanyak inputan1
cout << "Masukkan batas: ";
cin >> inputan1;
for(int i = 2; i <= inputan1; i++){
int temp = 0;
for(int j = 1; j <= i; j++){
if(i % j == 0){
temp++;
}
}
... |
e6c15977921bc2d5366d67dfd275d3936a7856bc | 91c7ea82d661d457402a8d11fa1c75355cf4d82b | /lec9/cylinder.hpp | bdbdd40c42cde714c224a66ac72d35ce107da5c0 | [] | no_license | zaychenko-sergei/oop-samples | 61fa7c354944b9bfb939324aa70715160d27d2d4 | ec3b3e7aecb01d377ba53bb3e2325e03630b4ada | refs/heads/master | 2020-12-09T14:01:57.482498 | 2016-08-27T22:19:01 | 2016-08-27T22:19:01 | 42,003,142 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,399 | hpp | cylinder.hpp | // (C) 2013-2015, Sergei Zaychenko, KNURE, Kharkiv, Ukraine
#ifndef _CYLINDER_HPP
#define _CYLINDER_HPP
/*****************************************************************************/
#include "circle.hpp"
/*****************************************************************************/
class Cylinder
{
/*--------... |
55622745b34dafc4173cb2d1638b6ff9de2820ab | 7fc5649ed12676a29ca54a34ff225ea3abad0e9f | /백준/14503(로봇청소기).cpp | d29088c7b972d241cbbdb1ac47ec0772b1ede45d | [] | no_license | SojeongLee/SWEA-SW-Expert-Academy- | b1c40e577134681cab0bd6c4519e91ba2cc6a264 | 01d5fde4c3c829c30e0a2f09587f4d23a8282655 | refs/heads/master | 2020-06-19T05:27:14.635290 | 2019-09-17T13:50:03 | 2019-09-17T13:50:03 | 196,580,390 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,991 | cpp | 14503(로봇청소기).cpp | #include <iostream>
using namespace std;
int main(int argc, char** argv)
{
int r, c; //로봇의 현재 위치
int rd; //로봇이 바라보는 방향
int map[50][50]; //청소할 구역
int N, M; //세로, 가로 크기
scanf("%d %d", &N, &M);
scanf("%d %d %d", &r, &c, &rd);
for (int i = 0; i < N; i++)
{
for (int k = 0; k < M; k++)
{
scanf("%d", &map[... |
da806fa1151ef0ce4bf691a1351349ff57ad0588 | 1a29e2f587d88dac68dcdddac38ce9d7d450d058 | /cs4492/project2/display_mesh.cpp | c772ee558856d4f5626e8b0ec5e8f5ce3429fbdc | [] | no_license | TheNumberOne/school_code | a41395e64dcc9089fb251fb2da0fa721161b5897 | 42d4aa7dc4bb1f23331382dc5875f261dc9e31c7 | refs/heads/master | 2020-08-08T11:52:50.008711 | 2019-10-09T05:07:47 | 2019-10-09T05:07:47 | 213,825,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,289 | cpp | display_mesh.cpp |
#include <algorithm>
#include "rectangular_wall_with_holes.h"
#include <glm/gtc/type_ptr.hpp>
#include "display_mesh.h"
void display_mesh(const std::vector<glm::vec3> &points, const std::vector<std::vector<size_t>> &shapes,
const std::vector<glm::vec3> &normals, const std::vector<size_t> &normal_ind... |
c8819fccf4af1d9f14a3e5e209d99302b905a815 | dde014c37394cc0c7135a6d6f6fbbd7e70e24d74 | /Programming/untitled folder/KPIYAP(3 sem)/Лабораторная работа №3/Shape/Shape/Cylinder.cpp | 5f54b2f0c02e7716494f06ae361a444903efacd5 | [] | no_license | andrushkin2/university | d7b502fafc548788c7f70beaa888d865b983aaa8 | 53466464e835827ffbaceaab6599aa3b5deecbd6 | refs/heads/master | 2020-05-21T12:21:55.201518 | 2019-04-09T10:19:46 | 2019-04-09T10:19:46 | 32,348,978 | 1 | 3 | null | null | null | null | MacCyrillic | C++ | false | false | 746 | cpp | Cylinder.cpp | #include"Cylinder.h"
#include<iostream>
using namespace std;
Cylinder::Cylinder(int _radius,int _height):ThreeDShape(_radius)
{
//this->radius = _radius;
//ThreeDShape::Set(_radius);
this->height = _height;
}
Cylinder::~Cylinder()
{
}
/*
void Cylinder::Set(int _radius,int _height)
{
this->radius ... |
9cf7855184eaadc93a963028dad4753ac8f6043d | 3bdba77700eba3af74527a63cba4fab331b65070 | /450.cpp | e6c0f60bab27fe66483afc5fc1eed1be9294ca7a | [] | no_license | jcheng123/XiTi | 11b849f7a71ba432f6ee283a589a8e38ab6c27b3 | af2beabbd4f4ef363a2c3a86c5c2cefcf9ba52dc | refs/heads/master | 2021-01-19T04:27:28.070673 | 2017-08-17T17:10:47 | 2017-08-17T17:10:47 | 87,372,239 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 996 | cpp | 450.cpp | #include <iostream>
#include <vector>
using namespace std;
struct TreeNode
{
int val;
TreeNode* left;
TreeNode* right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
TreeNode* deleteNode(TreeNode* root, int key)
{
TreeNode* ptr = root;
TreeNode* pptr = root;
if(ptr -> val == key) return ro... |
23e4c96832096d6fda1d45f1b341da644335e943 | 0f9f09dc6886d93dc6397f2c593e073e00164f2f | /kernel/src/out.h | 1212756ae36d3c5c5a400328275f911f3be60d7f | [] | no_license | tautvilas/eveos | b48957927cdd70f85cab3042df285966f9a9efa6 | 6fb2b1d9ab52cf05db81f953d687d855f756c7e8 | refs/heads/master | 2016-08-02T23:42:14.320565 | 2009-07-12T17:13:49 | 2009-07-12T17:13:49 | 32,217,748 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 738 | h | out.h | #ifndef _OUT_H_
#define _OUT_H_
#include <out_stream.h>
#include <out_str.h>
#include <out_int.h>
class Out
{
public:
static OutStream&
dbg();
static OutStream&
info();
static OutStream&
err();
static OutStream&
warn();
private:
static OutStream& msDbg;
static Ou... |
dae863937053fe84af04875fdc750dee68d7b4db | 30ad0c03364f25a86f2ea61053838973d1d091e2 | /qnode.h | a5eb95ff117a079ebe55892eade56ddd726142ae | [] | no_license | JustinRice/amazing | 38c153fe689516e61ce5664777d226dd1f86f05a | db66e5b2c461a636e71ff62e11c456ad2775b6ae | refs/heads/master | 2021-01-10T15:56:10.991188 | 2016-03-23T20:44:57 | 2016-03-23T20:44:57 | 54,480,341 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,078 | h | qnode.h | #ifndef QNODE_H_
#define QNODE_H_
#include <cstddef>
template <class T>
class QNode{
public:
QNode();
void setNext(QNode<T> *);
void clearNext();
QNode<T> * getNext();
void setPrev(QNode<T> *);
void clearPrev();
QNode<T> * getPrev();
void setData(T ... |
302b5fe82ae224b0d1c9980f7d39cefe9315ee93 | 2f10f807d3307b83293a521da600c02623cdda82 | /deps/boost/win/debug/include/boost/metaparse/fail_at_first_char_expected.hpp | 67fa69f538e42f25000c4ec229578fd7c3b49122 | [] | no_license | xpierrohk/dpt-rp1-cpp | 2ca4e377628363c3e9d41f88c8cbccc0fc2f1a1e | 643d053983fce3e6b099e2d3c9ab8387d0ea5a75 | refs/heads/master | 2021-05-23T08:19:48.823198 | 2019-07-26T17:35:28 | 2019-07-26T17:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128 | hpp | fail_at_first_char_expected.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:d03950e9f3269c185abc9d90b21700e5e4e850d8e2edd29e7714ce60654d57aa
size 502
|
cbb2b8955fe9b81d86f7745a2d3ee1ff7eee1bf3 | ad74dca1a5bf761e3895a229e7778e6fe1fe7d56 | /svrbase/SvrBase/base/src/util.cpp | 76a8b2a09ce65fb5df78a1108baca6e8d10653a5 | [] | no_license | lightjia/SvrBase | 1530c754c5c96f36f3de2d0e621aafd6dacf22fb | fcb0516b7b00e1dab30e73d9b62b196b469e1eac | refs/heads/master | 2020-04-11T14:35:11.655135 | 2019-07-09T07:50:40 | 2019-07-09T07:50:40 | 161,860,476 | 1 | 2 | null | null | null | null | GB18030 | C++ | false | false | 15,697 | cpp | util.cpp | #include "util.h"
#include "MemMgr.h"
void* do_malloc(size_t iLen)
{
if (iLen <= 0)
{
return NULL;
}
void* pRet = NULL;
while (NULL == pRet)
{
pRet = malloc(iLen);
}
memset(pRet, 0, iLen);
return pRet;
}
uint64_t get_time_ms()
{
uint64_t iRet = 0;
#if (defined PLATFORM_WINDOWS)
iRet = GetTickCount(... |
d6dc94f9a6d53f48e3e97a2f27d8ba7bebecfa09 | ae66db103d69be5330a5a564543c427eecde50f8 | /ShaderTutors/Common/win32openfiledialog.cpp | c631453d83cdb1f6c8b7efac934d504f321e080e | [
"BSD-3-Clause"
] | permissive | asylum2010/Asylum_Tutorials | 7ccdc9818f9b6efeb2cfbcd9268973630fd1f5f1 | 5bd0509be2280a575ddd234acd8dfe53a7033c1b | refs/heads/master | 2022-11-14T01:37:25.698706 | 2022-11-12T18:22:36 | 2022-11-12T18:22:36 | 8,253,900 | 231 | 53 | null | null | null | null | UTF-8 | C++ | false | false | 4,841 | cpp | win32openfiledialog.cpp |
#include "win32openfiledialog.h"
static void Split(std::vector<std::string>& out, const std::string& separators, const std::string& str, bool keepempty)
{
out.clear();
out.reserve(5);
size_t start = 0;
size_t pos = 0;
do {
pos = str.find_first_of(separators.c_str(), start);
if (keepempty || pos - start > ... |
7c36853c5e6bfa7d5bfa583686c04409ad93fd95 | b79746e7a8543719cc3373ba5865841e38b8d9b5 | /library/src/file_version.h | 4e8988fe067f3c5e3fad4aa77b5fd311a95fe1b9 | [] | no_license | Penhorse/ismsnoop | 5a90a3a1f6f949ea071ba0ca24a0b63f80287604 | ea24508ff8b4e952160288f80a511d95f821bee3 | refs/heads/master | 2021-01-17T14:17:44.414460 | 2017-04-26T14:36:32 | 2017-04-26T14:36:32 | 45,392,971 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 137 | h | file_version.h | #pragma once
namespace ismsnoop
{
enum class FileVersion
{
R600,
R603,
R611,
Latest = R611,
Unknown,
};
} // namespace ismsnoop
|
ef48643d184a8bbb5d15a286c8618f4a62dcb62b | e43861e0f67a2106a787e03f52902191c1de3236 | /Day V.cpp | b63d85b975a574febf1c628a46888a9dcaa484dc | [] | no_license | vini2003/Advent-of-Code-2019 | da0b271d64fed51431bc6f3feca377eca341c22d | 38ca0b818e00a8b17e8557bc39f3703afd86a7f8 | refs/heads/master | 2020-09-22T12:23:59.288060 | 2019-12-10T01:36:59 | 2019-12-10T01:36:59 | 225,192,757 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,093 | cpp | Day V.cpp | #include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <charconv>
#include <array>
#define ADD 1
#define MULTIPLY 2
#define INPUT 3
#define OUTPUT 4
#define JUMP_IF_TRUE 5
#define JUMP_IF_FALSE 6
#define LESS_THAN 7
#define EQUAL 8
void run(std::vector<int> opcodes, int input) {
std::str... |
b48c40751ef88c24016dc0572639fc78b3cba2cd | 7b481288142fdf71c6b865c6525749b42c47678e | /Lasersystem_mo_20200414(std2)002_815F2Type/public.h | 5d3941669b6c8e54478edac18eb31c06bbbf4f24 | [] | no_license | Spritutu/LaserSystem | 7319ecdee94fd85cc5e57b40ac4526bfa58a9e00 | dc23bfbc610d9828551b6df7e7548aad147bba52 | refs/heads/main | 2023-01-23T02:59:14.281350 | 2020-12-08T01:31:55 | 2020-12-08T01:31:55 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,625 | h | public.h | #ifndef __PUBLIC_H
#define __PUBLIC_H
#include <vector>
#define AXISNUM 12
#define APTNUM 18
#define NOLINK -1
#define M_PI 3.1415926535897
#if 0
#ifdef CRD_DOUBLE
typedef double CRD;
#define URECT URect
#else
typedef long CRD;
#define URECT CRect
#endif
#else
typedef long CRD;
#define URECT CRect
... |
10bcc3bd41f4bd8c386d61d44c95cf029a4514a5 | c25cc7965c0ad904d81b8e9d1438793f1a774c0e | /src/matrix.h | 3ae88d0bfd485fa105e01d70c075c829dc1752d4 | [] | no_license | r-arvind/Data_Processing | 2732868f3172dafb6ef94648cdc9197363d488a5 | 290310b2d9e2fbb098a5e782b1e6132ce69c1130 | refs/heads/master | 2020-04-08T07:48:35.299165 | 2018-11-26T19:56:37 | 2018-11-26T19:56:37 | 159,152,545 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 89 | h | matrix.h | #ifndef MATRIX_H_
#define MATRIX_H_
class Matrix{
private:
public:
};
#endif
|
ff2d79c195d38a8beb151ece23c0e9200a40f961 | ff1a9286a17be5e54b2ed400456ac3a9dcd069ef | /Engine/Camera.cpp | 96d5c17216dcc75cd5df38a8c6a823472e25ea90 | [] | no_license | Trenh/DoomLike | bbe41692fecf23835b02ac1554ec22cba6e46cea | 29228b0f0b43491686dcf6783b61c60c973165c4 | refs/heads/main | 2023-08-20T17:23:53.368248 | 2021-10-25T08:33:49 | 2021-10-25T08:33:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,504 | cpp | Camera.cpp | #include "Camera.h"
#include "Window.h"
#include <bx/math.h>
Camera::Camera(Actor* ownerP, char* nameP) :
Component(ownerP, nameP)
{
}
Camera::~Camera() {
Component::~Component();
destroy();
}
void Camera::init() {
}
void Camera::update() {
Component::update();
float* cameraComponentPosition =... |
b0fc4a4ff2bf96310b4414977910e60f11250464 | 10339a5ad20958f6ddd347f7adafdc0203bfd147 | /Action.cpp | 45a765723ea1aac8857c9506fe7c3a71dd66801b | [] | no_license | hyperchi/Cpp | 536132ad8e4b1f5126db5f4727488cc062ff2acd | ddfbd9b2be71aa92ea22c62838442f0ea8166a53 | refs/heads/master | 2020-05-31T15:09:57.173302 | 2014-12-03T16:41:20 | 2014-12-03T16:41:20 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 30,747 | cpp | Action.cpp | #include "Action.h"
#define ActLog gLog<< "[Action] "
#define ProcessingLog gProcessingLog<<"[Action] "
Action::Action( WorldModel *wm, CommandQuene *cmdQuene )
{
mWorldModel = wm;
mCmdQuene = cmdQuene;
mJoint = new JointControl( mWorldModel, cmdQuene );
mWalkFrameNum = 4;
mJointFrameNow = 0;
Ini... |
c234f49c87ffbee9dec4a6ca5ed27b87451bf9bf | a5659d7e45eb0ca27b29f120d31a48d9c0d06613 | /FuncLib/RetrievalTool.h | 0882f6a5d93f522867506588440ee57822ad1f99 | [] | no_license | debayan/FAT | 9eaa64c8fcb6feb40b3fc0f2bcfa6dfbe6b0b567 | f986b9fd5d2becd635f2e137a016f68fab5968f2 | refs/heads/master | 2021-01-18T15:30:59.269163 | 2017-08-15T13:43:23 | 2017-08-15T13:43:23 | 100,380,880 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,562 | h | RetrievalTool.h | #pragma once
#include "InterHierarchy.h"
#include <QtCore>
#include "Eigen\Core"
#include "DistMeasure.h"
#include "UtilityGlobal.h"
#include "qfileinfo.h"
#include <fstream>
#include "LFD.h"
#include "SceneHierarchy.h"
#include "InterSet.h"
enum RETRIEVAL_MODE {NORMAL, SHAPE2POSE, PART};
enum FEATURE_T... |
1e5fc03e9ddf0ffc4e4a5095c2e0242aaec8db1d | 6e023fbd1f3a212a1b595d1c181a43cad5c86325 | /_2_pamoka.hpp | 5ed1bdcdd1218a2a7d3038b8ad2b47322ade4992 | [] | no_license | MindaugasBernatavicius/PagalbaAisciui | 49327811fa50eec3369033caea84336b938c3ce3 | 9bf37895f0165a178b7f969d448d17c92f8311af | refs/heads/master | 2022-10-15T12:00:58.490422 | 2020-06-15T09:08:02 | 2020-06-15T09:08:02 | 256,551,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 104 | hpp | _2_pamoka.hpp | #include <iostream>
using namespace std;
void antraPamoka(){
cout << "Hello lesson 2" << endl;
}
|
92c88dd821d1511ab44abee04d274f935be02354 | 5b4c2679a0da0c5e2aa206af7c257b0cda209c94 | /C++/Vjudge/HDUOJ/2604 Queuing.cpp | 5ea448ab370ca57baf94a8f992940a98ca961ae2 | [] | 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 | 1,713 | cpp | 2604 Queuing.cpp | /*
矩阵快速幂nb!!!!
*/
#include <bits/stdc++.h>
using namespace std;
int m;
struct Martix
{
int a[4][4];
};
Martix operator*(Martix b, Martix c)
{
Martix d;
memset(d.a, 0, sizeof(d.a));
for (int i = 0; i < 4; i++)
{
for (int j = 0; j < 4; j++)
{
for (int z = 0; z < 4; z++)... |
354f29890f5cfe57d396792b5b017ddfd7b1c6ad | 5bdd740a6938a52d79cc0a0b6ccc2ee28e7b49af | /module04/ex00/Peon.cpp | 041a54ce8ab4666484a25b8f2e99af801507988d | [] | no_license | HanGyeolN/CPP | 82c4a07bcd4a3a8e438e0549df39f7f06c29f88a | 520ccfc4a384e5750cd33893c1cb5e860147ba0d | refs/heads/master | 2023-03-11T06:21:46.541705 | 2021-03-02T19:55:30 | 2021-03-02T19:55:30 | 327,238,471 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,555 | cpp | Peon.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Peon.cpp :+: :+: :+: ... |
c8fb80d7614f450d7da07e9ee01a01f548ed3390 | db2a9059ece34bbce9fdd532a265ace38f0e1196 | /Codeforces/478D.cpp | 677e06e1575695180ddb5086df4d0593a4eeaabf | [] | no_license | aayushdw/Competitve | 65eba6f385a2fd047512d577e809480e8c75aadf | d883b80363f2447a353a1cd5d33ee33ea9ae217e | refs/heads/master | 2020-04-11T15:15:07.254957 | 2019-01-14T21:27:29 | 2019-01-14T21:27:29 | 161,885,303 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,394 | cpp | 478D.cpp | #include <bits/stdc++.h>
#define mod 1000000007
#define Big 30000000000000
#define inf (1<<30)
#define V 55
#define EPS 1e-12
#define clr(m) memset(m,0,sizeof m)
#define clri(m) memset(m,-1,sizeof m)
#define lp(i,n) for(int i=0;i<n;i++)
#define sc(n) scanf("%d",&n)
#define re(a) cin>>a
#define rea(a,b) cin>>a>>b
#defin... |
0d31839afbdd402b6b76af75c4287737bf7a82a4 | c8d960d222a1125f739d44a7c16198bf2b8c851d | /Development/nmos/node_interfaces.h | 379900a6bd3c3de324a12b40cbad5c553e67edbf | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sony/nmos-cpp | cd850fd3b4dfa4075851ac18accc06e0681655c8 | 9ebb3ae3383743918514669edd0392e1b2187a04 | refs/heads/master | 2023-09-05T16:56:09.797680 | 2023-07-31T11:11:05 | 2023-07-31T11:11:05 | 102,677,617 | 123 | 111 | Apache-2.0 | 2023-09-07T10:20:41 | 2017-09-07T01:46:05 | C++ | UTF-8 | C++ | false | false | 1,458 | h | node_interfaces.h | #ifndef NMOS_NODE_INTERFACES_H
#define NMOS_NODE_INTERFACES_H
#include <map>
#include <vector>
#include "cpprest/details/basic_types.h"
namespace web
{
namespace hosts
{
namespace experimental
{
struct host_interface;
}
}
namespace json
{
class value;
... |
2f6f886f14b74357399175007f3f74375de146be | 444be321bba832b97073718bef5478f9f3197a98 | /EpicMonster/xcode/gpuPSApp.cpp | c937ad2c2dac73cb0c6cf12a3dc3cb8517b7239a | [] | no_license | EeroHeikkinen/cinderworkshop | fdaab1624cf0a741ceefc0b194cbebb4384caf89 | d299d72875ee8a6b1d6eb22530cc676dc17a78ae | refs/heads/master | 2020-05-31T05:07:58.315771 | 2013-04-13T15:51:23 | 2013-04-13T16:00:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 657 | cpp | gpuPSApp.cpp | #include "cinder/app/AppNative.h"
#include "cinder/gl/Fbo.h"
#include "cinder/gl/Vbo.h"
#include "cinder/gl/Texture.h"
#include "cinder/gl/GlslProg.h"
#include "cinder/MayaCamUI.h"
#include "cinder/ImageIo.h"
#include "cinder/Vector.h"
#include "cinder/Rand.h"
#include "cinder/Perlin.h"
#include "cinder/Utilities.h"
#i... |
3a3595b31e86041340ea07fbf263e5de99471834 | 44ce25df41fe3bbca6c3c8db611b12a5c88484bf | /CPP/backup/codes/day015.cpp | ca5110920e6414ac2fcd39d2d912f61df3c0fd09 | [] | no_license | BingqiangZhou/LearningOpenCV | 9c6d7969d8e49f1c50e2bbda3b00bb96273d2c04 | 69f8834d7e23c9de734c308ebad4a0b1f8772cf9 | refs/heads/master | 2023-07-31T12:41:58.242108 | 2021-09-10T16:59:20 | 2021-09-10T16:59:20 | 332,401,546 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,634 | cpp | day015.cpp | //
// day015.cpp
// LearningOpenCV
//
// Created by bingqiangzhou on 2021/2/2.
//
#include <stdio.h>
#include "toc.h"
using namespace std;
using namespace cv;
/**Day015-几何形状绘制
绘制几何形状
- 绘制直线
- 绘制圆
- 绘制矩形
- 绘制椭圆
填充几何形状
OpenCV没有专门的填充方法,只是把绘制几何形状时候的线宽 - thickness参数值设置为负数即表示填充该几何形状或者使用参数CV_... |
e6e49666573515829afd77d22074a8784d84197b | e908f7546ebbdb7f03a007295c4521063b6b8855 | /RJ/BasicRay.cpp | fdeac3e6f307ce6e8b1aff339fa4b6813f8101e3 | [] | no_license | RobJenks/rj-engine | 6c1fd8bf6e9892fa02b6834a012e7a2d732fadf9 | b3ae7c977d149b7ce6fd406e80b0693705226f17 | refs/heads/master | 2022-12-25T03:09:51.260463 | 2020-10-04T16:21:49 | 2020-10-04T16:21:49 | 301,125,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,167 | cpp | BasicRay.cpp | #include "Utility.h"
#include "BasicRay.h"
// Transforms the ray by the given transformation matrix. Accepts both an orientation transform
// matrix and the full world transform matrix to avoid rederivation within this method
void BasicRay::Transform(const XMMATRIX & orient_transform, const XMMATRIX world_transform)... |
7f4bfeefa0d78f86559049e12455dd31c935345b | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /Graphs/2191.cpp | 79e658ddc7a664e5237dc1a2887c4e46d0175398 | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,138 | cpp | 2191.cpp | #include<bits/stdc++.h>
using namespace std;
int par[40001];
int adj[40001][2];
void bfs(int,int);
int main()
{
for(int i=1;i<40001;i++)
{
if(i-1) adj[i][0]=i-1;
else adj[i][0]=0;
adj[i][1]=2*i;
}
//
int n,m;
cin>>n>>m;
if(n>m) co... |
b9a68af9128c481de68c8f51950ec7938bffdbda | b97b1f4b236d1f75e0c801dccdd79db4e16f4413 | /Sources/GameSources/SceneTitle.h | 74ff4e53019192165fc7ddf256b2fe19101c82fa | [] | no_license | Naruse27/Haguruma | 4b8aaabfd1c68cfa1c518bb4392d3fa53cbc6954 | be11be3531feb3ebbe0b0eff032eef2e7aa43eea | refs/heads/main | 2023-08-20T05:01:09.506561 | 2021-11-01T05:12:23 | 2021-11-01T05:12:23 | 415,793,371 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 642 | h | SceneTitle.h | #ifndef SCENETITLE
#define SCENETITLE
#include "Scene.h"
#include "PlayerTemp.h"
#include "../GameLibSource/Sprite.h"
#include "StageMain.h"
#include "CameraControl.h"
// タイトルシーン
class SceneTitle : public Scene
{
public:
SceneTitle() {}
~SceneTitle() override {}
// 初期化
virtual void Initialize(ID3D11Device* devic... |
e016833e2d67dad3c450068776d9a9c010e73f80 | a6d8297fc98da4873134e12c8c15662f4dc99473 | /Source/Plugin/Odbc/MsSql/Src/FactoryDatabaseOdbcMsSql.cpp | 4bdfb5486a3f3fc769f05bdcc71d9ec86c7f2591 | [
"MIT"
] | permissive | DragonJoker/DatabaseConnector | 507459f171cf3fd696b5208a9b4f0b584200d97d | 502b136588b46119c2a0f4ed6b6623c0cc6715c2 | refs/heads/master | 2021-05-16T02:42:51.816583 | 2020-10-17T02:39:47 | 2020-10-17T02:39:47 | 38,719,651 | 2 | 1 | MIT | 2020-10-17T02:39:48 | 2015-07-07T23:09:28 | C | UTF-8 | C++ | false | false | 1,056 | cpp | FactoryDatabaseOdbcMsSql.cpp | /************************************************************************//**
* @file FactoryDatabaseOdbcMsSql.cpp
* @author Sylvain Doremus
* @version 1.0
* @date 4/08/2014 1:21:00 PM
*
*
* @brief ODBC database factory class.
*
* @details CObject factory used to manage ODBC database creation.
*
***********************... |
69199d45304f6195c8c35b3b10bf7ac8905e3f10 | 3640c0855a78cfb3119694cd571d1f1e8838ca1c | /atcoder/past201912-open/h/main.cpp | 73faa6cf3d75e0f012475322ef2c069df00ce2f3 | [] | no_license | gom74/procon | 22bbf773299514ac1b733afd9527852275593728 | 606395611ecf0a56b27849069364370e0519038d | refs/heads/master | 2022-09-21T19:00:48.956709 | 2020-06-05T18:02:26 | 2020-06-05T18:02:26 | 261,773,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,496 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
ll N;
cin >> N;
vector<ll> C(N);
ll minodd = 1e9;
ll minall = 1e9;
for (int i = 0; i < N; ++i) {
cin >> C.at(i);
minall = min(minall, C.at(i));
... |
8b00dc5b450c454131070d59c694ba5f810630e4 | 17fdcd0be0ef67e1b07897c08f5ac161a16a92d3 | /test_02_12/test_02_12/test.cpp | 7b875ccdb7df63eff68b3a29e49eb684f0410af3 | [] | no_license | Kevin-233/code | e9be0b1c88c2fea2482e219f543d9700b1dc4d8a | 9297ee927bf1e788f7ca137689b9483a9894a20e | refs/heads/master | 2023-03-11T20:45:11.740870 | 2021-03-03T14:00:05 | 2021-03-03T14:00:05 | 329,174,154 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,176 | cpp | test.cpp | #include <stdio.h>
void display(int arr[],int size)
{
for(int i=1;i<size;i++)
printf("%d ",arr[i]);
printf("\n");
}
//不使用哨兵
//void InsertSort(int arr[],int size)
//{
// int i,j,temp;
// for(i=1;i<size;i++)
// {
// temp=arr[i];
// for(j=i-1;j>=0 && arr[j]>temp;j--)
// arr[j+1]=arr[j];
// arr... |
c2d6dc52db7fb1af9ca01cb3d5d6f6363d76a235 | 7585ecb87fbb9d3d03893e9a9da1a40890823f53 | /Gestor de Viajes/Gestor de Viajes/CreateDialogClass.cpp | 9b49d78b7e21c72eaa51257db4df6d12e772bb53 | [] | no_license | danielrello/GestorDeViajes | d3cab6352ba4d2c626a4258d74bf45fd8904818e | cf4e5df4a05c7c1266d5b1a1a61aadafe7838942 | refs/heads/master | 2020-05-25T02:05:14.979977 | 2019-06-04T02:41:01 | 2019-06-04T02:41:01 | 187,570,103 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,270 | cpp | CreateDialogClass.cpp | #include "CreateDialogClass.h"
#include "ErrorHandler.h"
#include "qmessagebox.h"
CreateDialogClass::CreateDialogClass(QWidget *parent)
: QDialog(parent)
{
ui.setupUi(this);
ui.mailError->hide();
QRegularExpression error("\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\\b", QRegularExpression::CaseInsensitiveOption);... |
4e0e7fb9c063bb32fc5db8c0532a0e9a5511b876 | 9b6b98b6f5070ae1e4cde3128505500d6e702839 | /2_2_qt_serial_port_gui_tool/myserialport.h | 5b887f2ebeda59b254119794392e47b1d29fa3d2 | [
"MIT"
] | permissive | belltan/UpperComputerProgramingGuideSrc | b14e4865a637e70955d990ef6d3d92ea93502ff4 | dd8afb9d94d21580f19863a21fa23378dafa96ee | refs/heads/master | 2023-01-04T13:39:29.515119 | 2020-10-29T06:52:23 | 2020-10-29T06:52:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,520 | h | myserialport.h | #ifndef MYSERIALPORT_H
#define MYSERIALPORT_H
#include <QSerialPort>
#include <QSerialPortInfo>
class MySerialPort : public QObject
{
Q_OBJECT
public:
MySerialPort();
~MySerialPort();
public:
static QList<QSerialPortInfo> GetAvailablePorts();
bool Open();
void Close();
bool... |
8443d8c04c938fd93610460a03e8637fc3c2a32b | 5c72689fcb220927c87102a4386fc9e01d576803 | /计算机图形学/第二次上机/编码剪裁.cpp | 18e678b58117d0eee07a372bed283ecff3933f61 | [] | no_license | MansourGu/College_Work | fc100ba3da39244fc8ef4a5c107bb09147b0cdd4 | 52583eddb6308b29ce1905f50cbc391d9071c230 | refs/heads/main | 2023-08-14T16:59:58.165589 | 2021-10-05T07:56:31 | 2021-10-05T07:56:31 | 361,366,294 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,760 | cpp | 编码剪裁.cpp | #include<easyx.h>
#include<iostream>
#include<vector>
using namespace std;
float xl, xr, yt, yb;
struct Vertix
{
float x;
float y;
};
struct Poly
{
vector<Vertix> v;
};
Poly p;
void initial()
{
initgraph(640, 480);
setorigin(320, 240);
setaspectratio(1, -1);
}
unsigned char code(float x, floa... |
396205e4fedeb0d10c447e712d1f08518594025a | bc965d59d05962a911d2aeffe419d86e076a71b6 | /exercises/lab6/task4-bubble-sort.cpp | 99a55f6cda6106d5579df6b7e1035bebc3910c0f | [] | no_license | AGalabov/up-2019-2020 | c8449dc7b6efa0bef4be8df3aba9833a5b9539c0 | 96eff071fa8efc9e3e1ef206b8d2311c4dcafe86 | refs/heads/master | 2020-08-13T19:19:20.231489 | 2020-01-13T12:54:33 | 2020-01-13T12:54:33 | 215,024,194 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | cpp | task4-bubble-sort.cpp | #include <iostream>
#include <cstring>
using namespace std;
int main()
{
char str[100];
cin.getline(str, 100);
int len = strlen(str);
for (int i = 0; i < len - 1; i++)
{
bool madeSwap = false;
for (int j = 0; j < len - i - 1; j++)
{
if (str[j] > str[j + 1])
... |
2cecdebaf5c91bc5a6595b371c0888af9829d977 | b7d4fc29e02e1379b0d44a756b4697dc19f8a792 | /deps/boost/libs/math/test/compile_test/naive_monte_carlo_incl_test.cpp | 505a1b6f41b644eeec1a307859adf4356022834e | [
"GPL-1.0-or-later",
"MIT",
"BSL-1.0"
] | permissive | vslavik/poedit | 45140ca86a853db58ddcbe65ab588da3873c4431 | 1b0940b026b429a10f310d98eeeaadfab271d556 | refs/heads/master | 2023-08-29T06:24:16.088676 | 2023-08-14T15:48:18 | 2023-08-14T15:48:18 | 477,156 | 1,424 | 275 | MIT | 2023-09-01T16:57:47 | 2010-01-18T08:23:13 | C++ | UTF-8 | C++ | false | false | 842 | cpp | naive_monte_carlo_incl_test.cpp | /*
* Copyright Nick Thompson, 2017
* Use, modification and distribution are subject to 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)
*/
#ifdef _MSC_VER
#pragma warning(disable:4459)
#endif
#if !defined(_MSC_VER) || (_MSC_VER >... |
bd01817d5b7ac86b9a9898781763beb22216dc51 | a732832e17da3681f628d2baabb4aa733e7ebde0 | /src/bst/nondynamic.hpp | 024e44b304dacfff2837ed944084c4d48c9467cd | [
"MIT"
] | permissive | remittor/paxz.wcx | 6da1e6b491de89d3dff99edb42735531bf6da87c | 8c10a4673c4e613383f7c61041e4116007ba032d | refs/heads/master | 2020-09-16T23:14:00.306866 | 2019-12-10T10:24:16 | 2019-12-10T10:24:16 | 223,916,069 | 12 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 299 | hpp | nondynamic.hpp | #pragma once
#include "noncopyable.hpp"
namespace bst {
class nondynamic: noncopyable
{
public:
nondynamic() {}
~nondynamic() {}
private:
void * operator new(size_t size)
{
(void)size;
return 0;
}
void operator delete(void * p)
{
delete p;
}
};
} /* namespace */ |
c929095ff83206871cc5ba17dc4bae8551f4beea | ad76156b41dcc9dc8e0749fe7892548646f6e216 | /poj/problem from stanford/String Algorithms/1936.cpp | 41109455e0e6c3630243d4c28cb5cfac5d0b4e55 | [] | no_license | liachmodded/icpc | 68f1562a186ce20b2a4813a5972b198620769f05 | abc2462296bc4d2bd3e1cb5efcbb4ede3c280610 | refs/heads/master | 2021-01-21T07:24:49.741610 | 2013-04-13T04:24:40 | 2013-04-13T04:24:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 366 | cpp | 1936.cpp | /*
poj1936 - All in All;
Greedy;
*/
#include<iostream>
#include<string>
using namespace std;
string s,t;
bool gao(void) {
int j=0;
for(int i=0; i<t.size(); ++i) {
if(t[i]==s[j]) {
j++;
}
if(j==s.size()) {
return true;
}
}
return false;
}
int main() {
while(cin>>s>>t) {
if(gao()... |
2d4fad396a4db556a5f68e3d266e28d2db562147 | 6eb6d8ea3845aa66ff0061f845d47054350741f6 | /Competitive Programming/Anagrams.cpp | f982ae07d421c2baf9c267d7b5a49c143aea378e | [] | no_license | Ayu-Raj/PrepPlacements | 448e53ceae1eab560ac1d7231652fe8f580b444a | 39311388b87386f95dc7d8d2ef12674746d4a80b | refs/heads/master | 2022-12-27T23:44:04.816964 | 2020-10-07T13:35:30 | 2020-10-07T13:35:30 | 302,044,804 | 0 | 0 | null | 2020-10-07T13:35:31 | 2020-10-07T13:27:28 | null | UTF-8 | C++ | false | false | 570 | cpp | Anagrams.cpp | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
bool isAnagram (string A, string B){
int n1, n2, i;
n1 = A.length();
n2 = B.length();
if(n1 != n2)
return false;
sort(A.begin(), A.end());
sort(B.begin(), B.end());
for(i =0 ; i<n1 ; i++)
{
if( A[i] != B[i] )
return false;
... |
bb1a0bea10f7468d179713938394705b8767e42b | 86050d07ccf46a7ca60b761c21b27f5bd20f4170 | /lib/Trajectory.hpp | e7823d056fa60b5fae034b2db2d9c3bd24222b26 | [
"MIT"
] | permissive | atfrank/PCASA | 6e8314d60c1a0db45a6c203b9d59179e1b5c50bd | cbb71ac4c1e822e731d854c364621dc80008e1b8 | refs/heads/master | 2021-01-20T17:20:18.016593 | 2019-09-24T04:03:24 | 2019-09-24T04:03:24 | 65,334,350 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,159 | hpp | Trajectory.hpp | //Sean M. Law
//Aaron T. Frank
/*
This file is part of MoleTools.
MoleTools is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
MoleTools ... |
7e97462173dd29e06cc77c1783d2370002605753 | 76f163908f658b755c0c1cd5092d2ae03e0e6ed9 | /osg_demo/crefactor/src/widget_window.cpp | f029c1cd0a9840264e5c1dc344f58a909c9a9ddd | [] | no_license | ne0ndrag0n/area51 | a98743d54c5c99e8e754aafd5a5120d057d976a1 | 6192a3e4a7b921f8f0dd729bfdc8ef1dce3d854f | refs/heads/master | 2021-01-09T20:40:06.554672 | 2017-08-23T22:39:14 | 2017-08-23T22:39:14 | 60,650,043 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,335 | cpp | widget_window.cpp | #include "graphics/gui/widget/window.hpp"
#include "graphics/gui/drawables/window.hpp"
#include "graphics/gui/widget/container.hpp"
#include "containers/rect.hpp"
#include <utility>
namespace BlueBear {
namespace Graphics {
namespace GUI {
namespace Widget {
Window::Window( const std::string& titl... |
f553afad8cde3b19f393bd828a450544c3f02e9b | ce5c4937f31d6b60e1899e33c0660811329467ca | /src/ComputeDevice.cpp | fe766221bdc81f3a08b94d60ac65eef2bd23a1ad | [] | no_license | MattDBell/DissolveMapBaker | 2ecd0691caaa4cc307183b7571046c52d60f09f4 | 1df0c020fe527b9b0c6390d551e676ea4c41b0f4 | refs/heads/master | 2021-01-01T04:12:00.937127 | 2016-05-20T21:56:31 | 2016-05-20T21:56:31 | 59,083,486 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,464 | cpp | ComputeDevice.cpp | #include "ComputeDevice.h"
// direct3d
#include <d3d11.h>
#include <d3dcompiler.h>
#include <dxgi.h>
#pragma comment(lib, "d3d11.lib")
#pragma comment(lib, "d3dcompiler.lib")
#pragma comment(lib, "dxgi.lib")
using std::string;
// Global State
ComputeDevice::ComputeDevice()
{
}
bool ComputeDevice::Initialize()
{... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.