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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c2473c413216fb54d436c4514e6abd41aea7665a | ce4617ba2b0a6433cd06dc3a492ce6ff1add5111 | /window.cpp | 9e66da2e451e5faef9b020bd89651590a97c2742 | [] | no_license | Jovwu/inven_manage_sys | 77f0615f054067279bfbc7aa5e7f12dcc66ca015 | 6c400e77068c6f6ce55bc0199cf4e3c189d058c6 | refs/heads/main | 2023-08-04T11:56:19.489165 | 2021-09-13T00:44:50 | 2021-09-13T00:44:50 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 12,151 | cpp | window.cpp | #include "widget.h"
#include "window.h"
Window::Window(const string Title,int PositionX, int PositionY, int Width, int Height, const string Type)
{
this->PositionX = PositionX;
this->PositionY = PositionY;
this->Width = Width;
this->Height = Height;
this->Title.assign(Title);
this->Type.assign(Type);
this->Vanis... |
0e649e8634806faf34fc71af190746747188657e | 913a56012739e40a17bb5309b40d5ef6971e28d5 | /Source/Runtime/Private/Image/ImageCommand.cpp | 41ec73a2726f6ef458f5b57bf25004a35ecec679 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | davchezt/BlueshiftEngine | 4265b0bf4ef7a2dbd0d726977f0bae333d1025bb | fbc374cbc391e1147c744649f405a66a27c35d89 | refs/heads/master | 2020-12-05T22:42:44.353929 | 2020-11-28T22:37:08 | 2020-11-28T22:37:08 | 232,265,027 | 2 | 0 | Apache-2.0 | 2020-11-29T01:38:17 | 2020-01-07T07:10:48 | null | UTF-8 | C++ | false | false | 8,469 | cpp | ImageCommand.cpp | #include "Precompiled.h"
#pragma hdrstop
B_NAMESPACE_BEGIN
// image command function type
enum icFuncType_t {
FUNC_HEIGHTMAP, // heightmap ( image, bumpiness )
FUNC_ADDNORMALS, // addnormals ( image, image )
FUNC_GRAYSCALE // grayscale ( image )
};
// image command argument type
enum icArgumentType_t {
ARGU... |
6c890b2f4ad283260a50191a5f723f435eb4753b | 596d7b122231a4b70c71c9ff47659b8ad91d0bb4 | /one-time-pad.h | 21eeca2ecea889ae20de77984769f9bc0c7feb9f | [] | no_license | luisnaranjo733/one-time-pad | f8110e2278623c9eb36f05dd99c92fcad5de8bcd | c282c90e3ce707356b2619f72c84a878098de0a4 | refs/heads/main | 2023-07-22T12:24:22.505584 | 2021-08-30T21:28:43 | 2021-08-30T21:28:43 | 401,192,066 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 279 | h | one-time-pad.h | // one-time-pad.h : Include file for standard system include files,
// or project specific include files.
#pragma once
#include <vector>
#include <array>
#include <random>
#include <iostream>
// TODO: Reference additional headers your program requires here.
|
08cccd305124d4022846da452d0225da64008299 | 86b881ba691421587c150d835631ac373f80d3d1 | /Inheritance(Buildings)/Inheritance(Buildings)/ReverseBonus.h | 5f69f81b8a1dfec06c6d02738b149e954a0fcf53 | [] | no_license | Marchusky/Programming-I | aef05134ed8330997b01359114b3e49590952349 | 626e2f0e113c087cd49ad2d05fda928403729784 | refs/heads/master | 2020-04-07T12:59:36.000903 | 2019-06-12T07:15:42 | 2019-06-12T07:15:42 | 158,388,918 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 76 | h | ReverseBonus.h | #pragma once
#include <iostream>
#include <string.h>
#include "Building.h"
|
09539f4e625e00d5352446bc914725ec886f457a | 3cb835f1ad9c1ee72f69feb59866bc7389754a3e | /workspace03/day3_lecture_quiz_01/Wrapper.h | 0d00e2d938075839f9740f28a6a36a68080a04e8 | [] | no_license | PeterSommerlad/CPlusPlusCourse2018 | 7c294ee33d2bebbf89d1efab645bde0bfeb46f0d | b6977845fbe0e682b48f62908c6e8dac8117a977 | refs/heads/master | 2022-06-29T09:15:07.657649 | 2018-07-11T09:46:26 | 2018-07-11T09:47:04 | 139,454,062 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 218 | h | Wrapper.h | #ifndef WRAPPER_H_
#define WRAPPER_H_
template <typename T>
struct Wrapper {
T wrapped{};
void set(T const & value) {
wrapped.release();
wrapped = value;
}
};
#endif /* WRAPPER_H_ */
|
966e30710b9576cadc39da100061797d151ff548 | ff5c1d61409b0d462463adce8b9a0889f662d107 | /src/OpenSpaceToolkit/Mathematics/Geometry/3D/Transformations/Rotations/Quaternion.cpp | ba7cb003e49ec881fb62069425426c91ccc5f5cc | [
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"MPL-2.0"
] | permissive | open-space-collective/open-space-toolkit-mathematics | ff1eb9a1c6baae5f538c434e646e11635f4d773b | c441c8ceb8f9fef3c7bb1981e031a83b68960020 | refs/heads/main | 2023-09-01T04:59:44.874092 | 2023-08-31T18:24:41 | 2023-08-31T18:24:41 | 136,834,880 | 10 | 3 | Apache-2.0 | 2023-09-14T10:07:47 | 2018-06-10T18:35:03 | C++ | UTF-8 | C++ | false | false | 18,747 | cpp | Quaternion.cpp | /// Apache License 2.0
#include <OpenSpaceToolkit/Core/Error.hpp>
#include <OpenSpaceToolkit/Core/Utilities.hpp>
#include <OpenSpaceToolkit/Mathematics/Geometry/3D/Transformations/Rotations/Quaternion.hpp>
#include <OpenSpaceToolkit/Mathematics/Geometry/3D/Transformations/Rotations/RotationMatrix.hpp>
#include <OpenS... |
2dde9a68e3bf950ec0f60ec5438ba3ef91f0fffe | 3211ef2ce88b13ad2cbbc3c7307017e52ff2cb51 | /Engine/SkyBox.cpp | 0f5638ba5b6c88569fc83e89fd87a0c140634849 | [] | no_license | YucelCeyhun/KingMuOnline | 887d84fe6bf688679f0bd45920a2b1e3eff33222 | f0191fb4b99b6f5b04ac6c5834a6dff0014059e6 | refs/heads/master | 2022-04-10T19:14:51.778327 | 2020-03-26T07:53:24 | 2020-03-26T07:53:24 | 249,654,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,486 | cpp | SkyBox.cpp | #include "StdAfx.h"
int IsSky = GetPrivateProfileInt("Engine","UseCustomSkyBox",0,ENGINE_INI);
int IsTim = GetPrivateProfileInt("Engine","UseCustomDayNight",0,ENGINE_INI);
cSkyBox gSkyBox;
cSkyBox::cSkyBox()
{
SkyDisplayInitialized = false;
}
cSkyBox::~cSkyBox()
{
/**/
}
void cSkyBox::ChangeSky()
{
SYSTEMTIME s... |
e311acf0540613b003355a21ef9287f53e48e9aa | a51cd90bb73700e18a5f6683113e196fe38f6a5b | /src/game/MusicTile.cpp | 2fed5853082548b4beca2b7032a9ba06d29ce838 | [] | no_license | NickM13/MusicTiles | 82b2f54184c106b39455c6f2dc2f3a7278693d6d | 028919fd6627b841b02cbfb6ecef75fbbb56bfaf | refs/heads/master | 2021-01-23T19:34:53.982607 | 2015-06-11T19:08:50 | 2015-06-11T19:08:50 | 37,152,133 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,265 | cpp | MusicTile.cpp | #include "game/MusicTile.h"
#include <random>
MusicTile::MusicTile()
{
tapped = false;
height_ = -32;
row_ = rand()%10;
explode_ = 0;
color_ = getColor(row_);
}
MusicTile::MusicTile(int row, int height = 0)
{
tapped = false;
height_ = -32 - height;
row_ = row;
explode_ = 0;
color_ = getColor(row_);
}
SDL_C... |
4a7f966e11ceb49982c831cce0e4c5f633ae428c | 1a2f2d50183cf1cf51a48bd19023472ae3ff8f67 | /code/game.cpp | 28986f0db2c2aab00fb0e7d5597ff0cadccd4661 | [] | no_license | 138paulmiller/idolon | 31d18caab3553d28ad7810bb5bb20c7af6472ad1 | bf3f9d425b6738f68174cb8fdca43fba38deb353 | refs/heads/master | 2023-01-09T23:37:20.952469 | 2020-11-10T20:35:49 | 2020-11-10T20:35:49 | 274,567,334 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,291 | cpp | game.cpp | #include "game.hpp"
#include "assets/api.hpp"
#include "../scripting/api.hpp"
namespace
{
bool s_mapsEnabled[LAYER_COUNT];
Game::Cartridge * m_cart;
}
//use MMU
namespace Game
{
Header::Header( const std::string &name )
:Asset(name)
{}
Cartridge::Cartridge( const Header & header, const Chunk & chunk )... |
394550e0d7347744e6a90772ff2f1992a78d0e50 | ebf7654231c1819cef2097f60327c968b2fa6daf | /server/base/Stream_Packer.cpp | 97d403ff557b19c8e579fcb5c640c0c42bbd847b | [] | no_license | hdzz/game-server | 71195bdba5825c2c37cb682ee3a25981237ce2ee | 0abf247c107900fe36819454ec6298f3f1273e8b | refs/heads/master | 2020-12-30T09:15:17.606172 | 2015-07-29T07:40:01 | 2015-07-29T07:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,074 | cpp | Stream_Packer.cpp | /*
* Packer.h
*
* Created on: Oct 26, 2012
* Author: Root
*/
#include "Stream_Packer.h"
Stream_Packer::Stream_Packer(void) {
pthread_mutex_init(&this->_mutex,NULL);
pthread_cond_init(&this->_cond,NULL);
}
Stream_Packer::~Stream_Packer(void) { }
int Stream_Packer::push_packing_cid(int cid) {
pack... |
1fafb8ac4dd446a3a02567448af1135a6ef18d2c | 474f05730eccc5b20269736577c07eb38798ced6 | /batterup.cpp | 23c63114a81ed29db8a8b590dfb458489ddbdf9d | [] | no_license | kantuni/Kattis | 5d6fe8480c1155103e8f7933bb2097e1248873db | 345db8c1252758d7c0d9d04ac4ef995244da43d6 | refs/heads/master | 2022-07-22T20:00:33.914326 | 2022-07-19T14:47:39 | 2022-07-19T14:47:39 | 110,396,612 | 8 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 256 | cpp | batterup.cpp | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
long double num = 0, denom = 0;
while (n--) {
int r;
cin >> r;
if (r != -1) {
num += r;
denom++;
}
}
cout << num / denom << endl;
return 0;
}
|
3372c2b6bf44a382deed41ad9331ca5fd2c7c04b | 6501d76a9eb22f81b9e4c12f710b27029dfef70d | /queues/Queue using linked list.cpp | 3bf7ff4aa2a06c5cc44b6a349767994cda47c6e3 | [] | no_license | hanrick2000/data-structures | fe7f4d1eb563005e945439f735c62b8c21fe79d1 | ba23723ba2d99caa7fbf42ed203b7ccf01b40088 | refs/heads/master | 2020-12-03T17:10:14.421985 | 2017-01-09T07:22:01 | 2017-01-09T07:22:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 833 | cpp | Queue using linked list.cpp | #include<iostream>
using namespace std;
struct node
{
int data;
node* next;
};
class Queue
{
node* head,*tail;
public:
Queue()
{
head=NULL;
tail=NULL;
}
void enqueue(int data);
void dequeue();
bool isEmpty();
int front();
};
bool Queue::isEmpty()
{
if(head==NULL)
return true;
return false;
}
v... |
9d1f6860a68438752ecbe8f447fc3fc6cb7850fa | 74f20c8622266ac8c05200d4dc33d698ef061c86 | /src/elements/QRcode.h | a3a1f12349b845366e23f26bea4655c325c1819b | [] | no_license | 20SecondsToSun/Funces | 45303bd9acf910230ad5379043c610df3b09c963 | d999183fbfcdd10796b0b55c4ac37cfabb76deae | refs/heads/master | 2021-01-01T16:45:13.572464 | 2014-12-20T16:47:15 | 2014-12-20T16:47:15 | 22,994,173 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 771 | h | QRcode.h | #pragma once
#include "cinder/app/AppBasic.h"
#include "cinder/gl/gl.h"
#include "AssetsManager.h"
#include "cinder/Text.h"
#include "cinder/Timeline.h"
#include "PreloaderCircle.h"
#include "cinder/Base64.h"
class QRcode
{
public:
void setup();
void init();
void draw();
void initAnim();
void dra... |
f34b846817c6c2d6e41f6273bf225532a99247e8 | 526f023829a846fa1304e678b4081a4a75d00233 | /junk/rand/leetcode/minimum_depth_binary_tree.cc | 0c804fbfccbacbe8194f95db78e6f8ea60fca803 | [] | no_license | bsergean/pytof | 9174d2cec5d3361282b08d5384e9166fa1303212 | af521274159107fc4bd74be831534bb7eecdff75 | refs/heads/master | 2020-04-14T14:24:23.970244 | 2015-11-02T05:12:02 | 2015-11-02T05:12:02 | 33,892,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,139 | cc | minimum_depth_binary_tree.cc | #include <iostream>
// Definition for a binary tree node.
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x, TreeNode* _left, TreeNode* _right) : val(x), left(_left), right(_right) {}
};
void
minDepthHelper(TreeNode* root, int depth, int& min)
{
if (root->left == NULL && ... |
2f14a9caf111d50bfeb70e3451e0a213f09d539a | a28b383eef9cfcd9e481ffbd609da00023781fb4 | /implementations/gcc_plugin_hecfi.cpp | 9fb0c0ef33ca111298036feaa5ec57391cb2039b | [] | no_license | cfg-cfi-excec/cfi-gcc-plugin | 467f0d76721907613d118c78c9299f390a8aa578 | 3131947e21deb0d9296c182b068d21525d13eb2e | refs/heads/main | 2023-06-19T00:17:43.401868 | 2021-06-12T04:23:29 | 2021-06-12T04:24:17 | 388,430,347 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,936 | cpp | gcc_plugin_hecfi.cpp | #include "gcc_plugin_hecfi.h"
GCC_PLUGIN_HECFI::GCC_PLUGIN_HECFI(gcc::context *ctxt, struct plugin_argument *arguments, int argcounter)
: GCC_PLUGIN(ctxt, arguments, argcounter) {
init();
}
void GCC_PLUGIN_HECFI::onFunctionEntry(std::string file_name, std::string function_name, basic_block firstBlock,... |
95eb79f95bcc07f1095966c2c49801ca59cd755a | cd940b838b452dbf26aa5f694ce183c79edd81fd | /wiring_pi/wiringPi.h | 9e209c296c955c66f92f601b8c3564577660c369 | [
"Apache-2.0"
] | permissive | heftyy/rpi-networking | 65f545bd3b413fa1b19554d7c529119c54e0517b | 88b8ea5de6f113735315aaf52e461cb286934bd9 | refs/heads/master | 2021-01-17T11:01:24.062836 | 2016-06-02T16:17:12 | 2016-06-02T16:17:12 | 15,206,245 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 232 | h | wiringPi.h | #include <iostream>
enum { WIRING_PI_OUTPUT, WIRING_PI_INPUT};
void wiringPiSetup() { return; }
void pinMode(int pin, int mode) { return;}
int digitalRead(int pin) { return 0; }
void digitalWrite(int pin, int value) { return; }
|
1e9c81c9503b5d81fbc8afa2901cf45ee93ff515 | f8aa6e689d132d660e71335552b37cc1a5cb0786 | /TrainData/常用模板/网络流/maxflow.cpp | a9f4f47f0de5cc395beb01d73c89aae346670253 | [] | no_license | VarickQ/ACM | 91171f381fa57b6644f10b1a4a5a9aeaeeff12b2 | 5d4f2c14272b28c7ff2cb7ebcd4e91400345a096 | refs/heads/master | 2021-01-10T14:34:07.812097 | 2017-05-14T09:58:54 | 2017-05-14T09:58:54 | 8,500,751 | 4 | 1 | null | null | null | null | GB18030 | C++ | false | false | 4,596 | cpp | maxflow.cpp | //-----------------Max Flow---------------------//
/*
最大流 Algo : RelabelToFront Preflow
main()里要做的事:
1) 定义类Graph 的实例G。
2) 给边容量矩阵G.c[][]赋值,若无边,赋为0
3) 把顶点的个数赋给G.V。
4) 调用G.MaxFlow(s, t),返回最大流值。同时由G.f[][]可知流值分配。
*/
const int MAX = 405; //最多结点数量
class Graph
{
public:
//构造图结构时只需初始化V域和c域即可。
int ... |
54870c9b26ed4abdf98d182dad96099affea6fa3 | a32dc7e553a2056f4cf546eb3f9acff733b5254e | /DS18B20/DS18B20.ino | 588e3956062360d16d62e7717643613307a40555 | [
"MIT"
] | permissive | ombhilare999/Aqua_Farm_Monitor | e58786616dd8e9b0ca99c93935c6b48c235fba5e | 82a9e7b11b1a92e02955f4789b5d813af3c2499e | refs/heads/main | 2023-04-21T23:51:01.603641 | 2021-05-08T14:51:01 | 2021-05-08T14:51:01 | 343,401,194 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,193 | ino | DS18B20.ino | /////////////////////////////////////////////////////
// Aqua Farm Monitoring System
// Group 2:
// - Omkar Bhilare
// - Omkar Sargar
// - Lukesh Ankawar
// - Om Fuke
////////////////////////////////////////////////////
#include <OneWire.h>
#include <DallasTemperature.h>
#include <BlynkSimpleStr... |
ece118fc4219388d621386aa27c71e482031170c | 394aec212523c140d85e49fa5d8915e4e204e6ef | /src/widgets/widget.h | a2fff36606a383637ff7866a7fbfd488a6179c96 | [] | no_license | ulno/t3widget | 8c357f479724ae6485f31588f59b88e259aaa927 | 5c2492bdeb2f11042d9319e02e612e4dcf5f0464 | refs/heads/master | 2021-09-04T17:50:59.302173 | 2018-01-20T19:05:43 | 2018-01-20T19:05:43 | 117,440,554 | 0 | 1 | null | 2018-01-14T15:08:46 | 2018-01-14T15:08:46 | null | UTF-8 | C++ | false | false | 4,401 | h | widget.h | /* Copyright (C) 2011-2012 G.P. Halkes
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 3, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRAN... |
3281004dbbf28bb53a0ba6cb7380e5955118f56c | caacd58516d199ee657f10017fca0fe5de15ba21 | /src/Buzzer.hpp | d87ad24eea6bf9437745bf2e343e6e312cb83c4c | [] | no_license | SilveRousePL/RPi_Assistant | 9b0a889436264895167e67020a424500490ad0ef | fa23ba8f0a9be6f62c1935fc9a8e92a968274995 | refs/heads/master | 2021-04-09T11:05:03.703727 | 2018-03-16T19:40:59 | 2018-03-16T19:40:59 | 125,562,159 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,467 | hpp | Buzzer.hpp | /*
* Buzzer.hpp
*
* Created on: 12 mar 2018
* Author: darek
*/
#ifndef BUZZER_HPP_
#define BUZZER_HPP_
#include "../../@RPi_Tools@/wiringPi/wiringPi.h"
#include "../../@RPi_Tools@/wiringPi/softTone.h"
#include <iostream>
class Buzzer {
public:
enum Frequency {
C_1 = 32,
Ci_1 = 34,
D_1 = 36,
Di_1... |
17823d443be4d966a195efb3f237a090c4ba498f | 3c76de2fbce324923d32747989e062be7ebb03b0 | /PracticalC++DesignFromProgrammingtoArachitecture/src/Cli.cpp | 7be9553cd550ce4f498acf9b0a950c196b133ad7 | [] | no_license | dinglight/books | b6510a65ebc174d2caf84ce8d5015c2e5cb2c368 | 53d42b8231f67a45de0f71e19f47cb65bbec9174 | refs/heads/master | 2021-07-03T03:03:23.362550 | 2020-08-19T14:13:39 | 2020-08-19T14:13:39 | 148,032,925 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,457 | cpp | Cli.cpp | #include "Cli.h"
#include "Tokenizer.h"
#include "Stack.h"
#include "Logger.h"
namespace strawberry {
class Cli::CliImpl {
public:
CliImpl(Cli&, std::istream& in, std::ostream& out);
void Execute();
void PostMessage(const std::string& msg);
void StackChanged();
private:
void StartupMessage();
pri... |
f1d15df3354d27c20d3ad4d9019468237533ba2c | 49f159a6878749801931dddfedf109f39f3f1ba6 | /2-3-构造与析构/2-2-构造与析构.cpp | 38a36d96192339050199fe428c37078119328737 | [] | no_license | pythonicrane/heimaCpp | cf47910b9db95f009cf4b59647fcef3116c19571 | a801324cd8ca1825c43a174e8bf7755bf47dbd72 | refs/heads/master | 2020-03-23T10:19:02.444658 | 2018-08-06T09:30:46 | 2018-08-06T09:30:46 | 141,436,765 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,758 | cpp | 2-2-构造与析构.cpp | /**-------------------------------------------------------------
* @Author : Zhao Heln
* @Time : 2018年7月20日11:12:29
* @Software : Visual Studio 2017
* @Project : 黑马程序员基础
* @Problem : 类
* @Description :
*
-------------------------------------------------------------**/
#include <iostream>
us... |
d1a5f13758a3318c7071bc7ab1163d14d8cd3c92 | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/squid/old_hunk_5078.cpp | e19a6c97c702b9f7e931096b9638a87a5ee532d5 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 240 | cpp | old_hunk_5078.cpp | }
#define free_onoff free_int
#define dump_eol dump_string
#define free_eol free_string
#define dump_debug dump_string
#define free_debug free_string
static void
dump_refreshpattern(StoreEntry * entry, const char *name, refresh_t * head)
|
5bab507b5ace53ee6d39e2bd361bd39785f6a792 | c96a8c199c4e7f8b636d4ce94926d708ccdd4992 | /src/graphic/Blender.cpp | d15b3ccc36113bcf84165c11559d1db036d87c2e | [
"MIT"
] | permissive | Kaosumaru/libmx | b662db96e52d9c7805a20b41a96a509357f36c41 | 7f412a7b845a315da02deb279fb208c739fb2f30 | refs/heads/master | 2020-08-04T01:50:37.197501 | 2020-02-02T15:24:23 | 2020-02-02T15:24:23 | 73,533,925 | 0 | 0 | MIT | 2019-12-18T19:50:53 | 2016-11-12T05:39:35 | C++ | UTF-8 | C++ | false | false | 2,049 | cpp | Blender.cpp | #include "Blender.h"
#include "OpenGL.h"
#include "graphic/renderer/TextureRenderer.h"
using namespace MX;
using namespace Graphic;
Blender::Blender(int op, int src, int dst)
{
_op = op;
_src = src;
_dst = dst;
_alpha_op = GL_FUNC_ADD;
_alpha_src = GL_ZERO;
_alpha_dst = GL_ONE;
}
Blender::Ble... |
a2d0ff2ecce07fe564057f152bc6262952754280 | 6f06493bf8df1900ef5352208a2b8ebd2bfac37f | /OpenGLProject/transform.cpp | 0e24b4d89af492d9216add02dfe3a87bee43a43a | [] | no_license | Cresspresso/RocketChess | c5df0f107cae1fc392976b9f2fb442c67e56431a | 96c0372317e5f4ca2d866094f02e95f341794ce2 | refs/heads/master | 2022-03-14T06:40:50.469855 | 2019-11-11T01:42:51 | 2019-11-11T01:42:51 | 198,104,578 | 1 | 0 | null | 2019-09-02T04:31:58 | 2019-07-21T20:56:09 | C++ | UTF-8 | C++ | false | false | 892 | cpp | transform.cpp | /*
** Bachelor of Software Engineering
** Media Design School
** Auckland
** New Zealand
**
** (c) 2019 Media Design School
**
** File : transform.cpp
**
** Summary : Component that represents position, rotation, and scale relative to a parent Transform.
**
** Project : Robotron Summative
** Author : Elijah Shadbol... |
40db4422d6cf8edf241b4ac5839bfb8ddaceb2c8 | 453156d45af7d0fbdd905f342ac726037e3680aa | /main.cpp | 280daa87d2c0a8ed81d20a45000c4d18db92406a | [] | no_license | Noura2000/10110-Light-more-light | 12b31ee5d715281a7d8d4ef34b23ff6a9bccefb5 | 62a59616b2f09ad59b1d030799b62d332c78733f | refs/heads/master | 2022-11-06T10:35:12.373349 | 2020-06-27T13:49:14 | 2020-06-27T13:49:14 | 275,381,466 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 286 | cpp | main.cpp | #include <bits/stdc++.h>
#include<cstdio>
#include<cmath>
using namespace std;
int main()
{
long n;
while (scanf("%ld",&n) && n != 0)
{
long root;
root = sqrt(n);
if (root*root!=n)
cout << "no" << endl;
else
cout << "yes" << endl;
}
return 0;
}
|
7fe38690b9a48207b40828e0b71f51ddad344069 | cb80a8562d90eb969272a7ff2cf52c1fa7aeb084 | /inletTest3/0.124/p | 2599b45afe2addb53bf87b5f186550519c04b6bc | [] | no_license | mahoep/inletCFD | eb516145fad17408f018f51e32aa0604871eaa95 | 0df91e3fbfa60d5db9d52739e212ca6d3f0a28b2 | refs/heads/main | 2023-08-30T22:07:41.314690 | 2021-10-14T19:23:51 | 2021-10-14T19:23:51 | 314,657,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 116,276 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
... | |
3ef8ae339f1e58d02eb3700a784aa7ae924332c0 | a6445017ba43f4ee5fc3e9535d01d4cda8ed6c25 | /Esercizi/Basic/Fibonacci/fibonacci.cpp | 78ae4143fe75f57cdc52c616b3586fb74c278818 | [
"MIT"
] | permissive | gabrielegenovese/Esercizi-Programmazione-2020 | 361c5514b536083aaef5df92607a2c92a5a5fc68 | bb16aec872ece3f7d88fcbfc88b3778efcb4f16b | refs/heads/main | 2023-02-18T00:16:04.483500 | 2021-01-18T10:14:40 | 2021-01-18T10:14:40 | 307,976,771 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | cpp | fibonacci.cpp | #include <iostream>
using namespace std;
int main()
{
int n, ultimo = 0, ris = 1;
cout << "Inserire un numero" << endl;
cin >> n;
while (n-- > 2)
{
ris = ris + ultimo;
ultimo = ris-ultimo;
}
cout << ris;
} |
7b8ec306339d66aed37d9072a0db7f796974f640 | 998e7931d1a53913b36d3085a6e52d699f611c85 | /BaekJoon/BaekJoon/11279 최대힙(구현).cpp | 33c99b581357741ab032a158febae410aca7eeec | [] | no_license | wooniverse7/AlgoStudy2021 | 2d5541ecf04f9f5d427f591a0c8b5e98a54b38d4 | e206070fbc05f18b5a7fb74aa839f4aa16b5fc1e | refs/heads/main | 2023-06-29T05:20:02.015436 | 2021-07-27T14:49:15 | 2021-07-27T14:49:15 | 328,540,833 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 782 | cpp | 11279 최대힙(구현).cpp | // 힙을 배열로 구현(정적)
#include<iostream>
#include<algorithm>
using namespace std;
#define MAX 100002
int heap[MAX];
int sz = 0; // 배열 크기
void swap(int* a, int* b) { // &는 안되고 pointer만 되는 이유 찾아보기. &로 구현해보기
int temp = *a;
*a = *b;
*b = temp;
}
void insert(int num) {
int idx = ++sz; // 삽입 때 마다 사이즈 먼저 1 증가
while ((idx... |
47f30c13448209de277e7d46111e69c38cc4ca3d | 4e5d07a9eb881defd7923a4575809259522bd25f | /atcoder/abc/224/d.cpp | bdf4c5daa547b9c5623ede3b9bd20ce55cae0027 | [] | no_license | kt117/ProCom | c81e6c55c3f4b329c79755f43e8154e297328174 | c5547429560100728cf15a8a8a696aa8c6c0317b | refs/heads/master | 2022-05-06T15:41:01.639231 | 2022-04-09T17:23:21 | 2022-04-09T17:23:21 | 254,284,537 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,824 | cpp | d.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
const ll MOD = 1e9+7;
const ll INF = 1e18;
#define rep(i,m,n) for(ll i = (m); i <= (n); i++)
#define zep(i,m,n) for(ll i = (m); i < (n); i++)
#define rrep(i,m,n) for(ll i = (m); i >= (n); i--)
#define print(x) cout << (x) << end... |
7a8d09eb448848ae208a0494613da670fbbd0270 | 461dc44f32868e13c23b435cb44d0718475ac633 | /UI/EventUIMain.h | b2920742f834769d85096a5a3d2726ef5d2f2899 | [] | no_license | WingCuengRay/ControlUi | c00156cfa5cef90248b3e52fe342abc1a2c0d393 | 22505bee3ccf10e2cf4ee342fc9b56f0f3de76d1 | refs/heads/master | 2021-01-18T22:12:43.711133 | 2017-01-14T02:02:38 | 2017-01-14T02:02:38 | 69,226,407 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 201 | h | EventUIMain.h | #ifndef EVENTUIMAIN_H
#define EVENTUIMAIN_H
#include"EventBase.h"
class EventUIMain:public EventBase
{
public:
EventUIMain();
virtual ~EventUIMain();
};
#endif // EVENTUIMAIN_H
|
9222c15bb55f370d9d8eef325b31eaf66f1be12b | 86530182c3bc55af969091be48c74763dbeecac5 | /mergesort.cc | ea408caa2d54528050db47595bed906b357deede | [] | no_license | laakko/parallel-sorts | cb3c9952bcaa668fcfbd6ef905a9d842716c647e | 701b7a4ffcc630c007811e2b577f1735e28cf3d7 | refs/heads/master | 2020-04-21T20:58:16.081261 | 2018-11-08T15:01:01 | 2018-11-08T15:01:01 | 169,863,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,536 | cc | mergesort.cc | #include "mergesort.h"
#include <algorithm>
#include <iostream>
#include <omp.h>
#include <ctime>
void mergesort(int n, data_t* data) {
// FIXME: make this more efficient with parallelism
//std::sort(data, data + n);
unsigned int low = 0;
unsigned int high = n;
#pragma omp parallel
... |
6f61e7e07a52da6a42ce69bfcb196b95871cb02b | 8fc032bdd555316a5e38e9c940e4e7e888c70239 | /src/amf/tests/test_message_handler.cpp | 2bad6f9548f7a2542e1e4c9d7458ed97a8a6384c | [
"BSD-3-Clause"
] | permissive | unixod/uau | 6eb1295f016df424abeeaad51357089cd8cd924d | 6fb87bce6bc33a66a176f7f63233d1ffadb4f88f | refs/heads/develop | 2020-05-25T11:00:36.938033 | 2015-11-09T20:07:19 | 2015-11-09T20:07:19 | 4,472,850 | 1 | 1 | null | 2014-07-22T19:05:45 | 2012-05-28T17:28:52 | C++ | UTF-8 | C++ | false | false | 4,859 | cpp | test_message_handler.cpp | #include "lest/lest.hpp"
#include "uau/handlerset.h"
class HandlerName {
public:
HandlerName() :
isObserver(true) {}
HandlerName(const std::string &name) {
const char *sep = handlerName.empty() ? "" : ";";
handlerName.append(sep).append(name);
}
std::string name() const {
... |
dabfea5b0b874f5b883769fe0f56d81bb0bf27a8 | f14626611951a4f11a84cd71f5a2161cd144a53a | /Server/GameServer/App/Other/Chat.h | 1acd0db1e0fc6d28cb1e5f593964d42b69d2dc83 | [] | no_license | Deadmanovi4/mmo-resourse | 045616f9be76f3b9cd4a39605accd2afa8099297 | 1c310e15147ae775a59626aa5b5587c6895014de | refs/heads/master | 2021-05-29T06:14:28.650762 | 2015-06-18T01:16:43 | 2015-06-18T01:16:43 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 551 | h | Chat.h | #pragma once
// 聊天
class CChat
{
public:
enum eChatType
{
CHAT_NORMAL = 0, // 同屏聊天
CHAT_REGION, // 同场景聊天
CHAT_FACTION, // 帮会聊天
CHAT_UNION, // 联盟聊天
CHAT_TEAM, // 队伍聊天
CHAT_PRIVATE, // 两人私聊
CHAT_COUNTRY, // 国家聊天
CHAT_WOLRD, // 世界聊天
CHAT_BOARDCAST, // 广播
GM... |
ff52d699573581282cc937cee6b3da92d089afb1 | 00b1ab93bf38f7149ac016d653a2571ca5d83c78 | /20210408/ds_第五次上机要求_part1/SampleProject/MyString.h | 07c5ba806443aea8886ba9f233261513909021d2 | [] | no_license | 6607changchun/SS8ruoyan | b93657a5c5c5c6fee93f2b33f6d0bdd6c1aa1536 | 360dac1d8fbaf44fa145e32582d58a13f955a38e | refs/heads/main | 2023-05-31T05:52:12.339894 | 2021-06-15T20:25:13 | 2021-06-15T20:25:13 | 370,192,908 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,687 | h | MyString.h | /*******************************************************************************
* FileName: MyString.h
* Author: Your_Name
* Student Number: 2019218XXX
* Date: 2020/03/18 11:24:55
* Version: v1.0
* Description: Data Structure Experiment #6
*********************************... |
7ed62176449c3df51b263e440ae5b44033a80350 | a421596a80aa072c655ce0c9df43fda61a6ff88e | /cpp/cpp/main.cpp | 0db6a02489f435c1962d6ee7239c0185cbcb6faf | [] | no_license | gksmfahd78/backjoon_algorithm | ba13657c97ab50ad33478e4b5bc825983206906a | faca1da16b0f6ba572110638063052946fd2a76d | refs/heads/master | 2021-07-10T15:09:34.463948 | 2021-05-10T02:19:59 | 2021-05-10T02:19:59 | 238,806,858 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 38 | cpp | main.cpp | #include "solution.h"
int main() {
} |
23eaf464d5f78e76c9b2e68b4d8262d4f04b4e57 | 002b6230874dea6e4d76defafc1ae293b5744918 | /library/SpatialDomains/Conditions.cpp | b3b20064d64b4c8d1cc376c42823f26c1ca6e5e0 | [
"MIT"
] | permissive | SCOREC/nektar | f3cf3c44106ac7a2dd678366bb53861e2db67a11 | add6f04b55fad6ab29d08b5b27eefd9bfec60be3 | refs/heads/master | 2021-01-22T23:16:16.440068 | 2015-02-27T17:26:09 | 2015-02-27T17:26:09 | 30,382,914 | 6 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 32,069 | cpp | Conditions.cpp | ////////////////////////////////////////////////////////////////////////////////
//
// File: BoundaryConditions.cpp
//
// For more information, please see: http://www.nektar.info/
//
// The MIT License
//
// Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
// Department of Aeronautics, I... |
47096d49bdffc64a52b1adbef9eb72eaaa089916 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /weblayer/browser/file_select_helper.h | 37d3fef6fa01d1ef0bc58ad86c2f365704fdf5a7 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 3,905 | h | file_select_helper.h | // Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBLAYER_BROWSER_FILE_SELECT_HELPER_H_
#define WEBLAYER_BROWSER_FILE_SELECT_HELPER_H_
#include <memory>
#include <vector>
#include "base/memory/weak_ptr.h"
#include "... |
3634600fcb8b55239ba52577ae27fe080170a989 | f6e28e7a1b2485b18d712fb092fea5fdeaa1d85c | /src/pch.h | 6fb5537d6cff585b46ae4b4b2436f441f2490a75 | [] | no_license | eypidan/deformation_opengl | dba4676c076f83e9b3a7ac14614bebb9d055a6e9 | 043f605a508287f249d235a17ba09cc14870f5f1 | refs/heads/master | 2022-11-10T22:49:35.874839 | 2020-06-30T15:05:00 | 2020-06-30T15:05:00 | 262,209,820 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,341 | h | pch.h |
// settings
#define SCR_WIDTH 1000
#define SCR_HEIGHT 800
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/ext.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <Eigen/Dense>
#include <Eigen/Geom... |
6bdfaa5727371813edb054d01f4d52eab90f38bb | 159b7bd87e07dc2c09827fac804bc30014426511 | /test/unit/cute/core/inverse_right.cpp | 4d1501476e83fd1687e5e7bbbc65843140f8fab6 | [
"BSD-3-Clause"
] | permissive | NVIDIA/cutlass | 4d161f5ff1a4683baa978abb4e4b99f4b9f68d3b | e01b9b5029b7caca5a43c29f7d2714d7cf1dcae8 | refs/heads/main | 2023-09-03T00:51:43.978093 | 2023-08-30T20:46:30 | 2023-08-30T20:46:30 | 112,542,515 | 3,368 | 680 | NOASSERTION | 2023-09-14T15:04:54 | 2017-11-30T00:11:24 | C++ | UTF-8 | C++ | false | false | 6,867 | cpp | inverse_right.cpp | /***************************************************************************************************
* Copyright (c) 2017 - 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are p... |
f6f8116f094715992f93237f2498027b54037a33 | eea1133885ffda42635f8552720b643fb4c8e6c2 | /src/camera.cpp | 156500d09ba5f2e669dbd79c6cc141835aa32ac3 | [] | no_license | gaboche321/engine | 02f53de7fe6259aa5272522041ccab91bd49c6ea | 5e9994c23875516caf58ab3ceb79d95cb5228fb1 | refs/heads/master | 2020-12-13T16:23:10.006856 | 2020-02-06T01:29:17 | 2020-02-06T01:29:17 | 234,469,623 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 532 | cpp | camera.cpp | #include <camera.hpp>
#define ISOMETRIC
camera::
camera()
{
}
camera::
~camera()
{}
glm::mat4
camera::
get_view_matrix()
{
glm::mat4 t = glm::translate(glm::mat4(1.0f), glm::vec3( x() , y() , 0.f ) ) ;
#ifdef ISOMETRIC
float vertical_angle = asin(1) - atan(1/sqrt(2)) ;
float horizontal_angle = -asin(1/sqrt(2))... |
2fc5d062fd2ef93015a4992522995867f60dddbc | 8d325459fa1cf8e1492c2060d7429e204ef7868a | /fofGuitarController_ino/fofGuitarController_CapSense_MenuNavigation/fofGuitarController_CapSense_MenuNavigation.ino | 35b483b7d5b30c1971c0efb3a1d7b670ffdf0888 | [] | no_license | drkzrg/guitarController | 0e03b8f03033e2ee40afce302fefed142cfb198f | f13319eb2ef4633a0eec00e3356ebaed3666fae7 | refs/heads/master | 2023-03-18T01:10:51.483492 | 2016-04-17T21:22:56 | 2016-04-17T21:22:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,880 | ino | fofGuitarController_CapSense_MenuNavigation.ino | #include <CapacitiveSensor.h>
int menuInput = 7;
int menuSendPin = 8;
int menuNavState = LOW;
int capSenseSendPin = 9;
CapacitiveSensor pick = CapacitiveSensor(capSenseSendPin,A0);
CapacitiveSensor fret5 = CapacitiveSensor(capSenseSendPin,A1);
CapacitiveSensor fret4 = CapacitiveSensor(capSenseSendPin,A2);
CapacitiveS... |
ce8227491842f64453a9c17c78e525ab6f6ef2ef | 24f0994a41e60a6c39c12fbc79b949eb026c70c4 | /Proyecto1/src/Profundidad_Matriz.cpp | eb94f4a051d8d21604723f8f9b000ac85c1910b5 | [] | no_license | Eduardo01004/EDD_2S2019_PY1_201612124 | a7cf6379d292bdd2089bb728f40b92c3febc4c04 | bcdf393c1d559cfe0840e0fa55acaf2ce9ce6bac | refs/heads/master | 2020-07-07T19:17:55.281207 | 2019-09-22T04:50:53 | 2019-09-22T04:50:53 | 203,451,733 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,668 | cpp | Profundidad_Matriz.cpp | #include "Profundidad_Matriz.h"
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <ctype.h>
#include <fstream>
#include <iomanip>
Profundidad_Matriz::Profundidad_Matriz()
{
primero=NULL;
ultimo=NULL;
}
void Profundidad_Matriz::Insertar_eje_Z(int profundi... |
7d11f25b2cb9da7b604d873eb0bb054cceac3a64 | 1b17a884a99430295ca11c10130975c9b3670458 | /DataStructures/old_hws/A13/queueWrapper.cpp | c338a2aecdf9ff093468debefa12ebe1a56abbf7 | [] | no_license | soundestmammal/cpp | 1eb39aae4ba0761786710cbd8319f44b1b243c34 | f6455796214b7a2e2d932c9d20ca3c3b69154761 | refs/heads/master | 2020-04-14T00:32:27.823771 | 2019-12-08T20:38:57 | 2019-12-08T20:38:57 | 163,535,698 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 709 | cpp | queueWrapper.cpp | #include <iostream>
#include "BCS370_queueBase.h"
#include "queueWrapper.h"
farmingdale::statusCode farmingdale::queueWrapper::enqueue(std::string s) {
stlQueue.push(s);
return SUCCESS;
}
farmingdale::statusCode farmingdale::queueWrapper::peek(std::string &s) {
if (isEmpty()) {
return FAILURE;
... |
08f5be6244b6e97000a4202d5ca342cd8776a1ca | 496f5ef04a48107b238af7167c378db38ba42a61 | /SDHCAL_EventReader/include/DifGeom.h | 8bb87fedeb028027f79c51c6e3dba06971cfeff7 | [] | no_license | mirabitl/SDHCAL | 0784bbd40be94874eaf014a54b38e85f92526677 | fcd7bee9bea114c531cd1627eebfc7cfd762fef5 | refs/heads/master | 2021-01-17T00:53:14.305377 | 2017-09-18T14:46:48 | 2017-09-18T14:46:48 | 10,996,462 | 0 | 2 | null | 2017-09-06T16:31:27 | 2013-06-27T12:38:56 | C++ | UTF-8 | C++ | false | false | 7,111 | h | DifGeom.h | #ifndef DifGeom_HH
#define DifGeom_HH
/**
\class DifGeom
\author L.Mirabito
\date May 2010
\version 1.0
\brief DIF Geometry: only PAD shift and polarity is stored. It allows to swap from local DIF numbering to local chamber numbering
*/
class DifGeom
{
public:
static const unsigned short Max_Pad_XS... |
db53d3b254e25d739593e6fc3462b71aaf957455 | 4065c8f9ea9b8dfa52cc029a7d3f3402c40638c6 | /Include/Panaskin/PanaseeDialog.h | 2e91055da7aa3779dbf104961dd13f86ee646b17 | [] | no_license | yongdono/Panasee | 4fd5ffa048aa4d12e745464736b8811a08fb17d1 | cade89049e22c8866aa9f04dabbbb9388f3e99cd | refs/heads/master | 2021-08-31T11:22:04.899654 | 2017-12-21T03:51:56 | 2017-12-21T03:51:56 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,494 | h | PanaseeDialog.h | #if !defined(AFX_PANASEEDIALOG_H__802C80CF_7A47_4DF8_B1B1_FA76A97D4A5C__INCLUDED_)
#define AFX_PANASEEDIALOG_H__802C80CF_7A47_4DF8_B1B1_FA76A97D4A5C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PanaseeDialog.h : header file
//
#include "panaskin.h"
#include "MemDC.h"
#include <afxtempl.h>
/... |
ccd087f25acb4c03bd27ff37642c4f4783d4b058 | 6de72c400420ab232edcecd3232a7f1e80a8d5f8 | /src/aris_control/aris_control_motion.cpp | 14b7d7d6e67bb147cb5bc34a6ee83de82db7bfd1 | [] | no_license | mexyl/aris_ruicong | 82b627267374048afb572ca394b73f28bfabd41d | 50996340988ce2ba4d8bffd86a7cfdf5d3f729a2 | refs/heads/master | 2021-01-23T01:40:52.743185 | 2017-06-29T05:05:07 | 2017-06-29T05:05:07 | 85,925,431 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 23,769 | cpp | aris_control_motion.cpp | #ifdef UNIX
#include <ecrt.h>
#include <native/task.h>
#include <native/timer.h>
#include <rtdk.h>
#include <sys/mman.h>
#endif
#ifdef WIN32
#define rt_printf printf
#endif
#include <string>
#include <iostream>
#include <map>
#include <fstream>
#include <algorithm>
#include "aris_control_motion.h"... |
9c9456556cead3ecec9c5bf11bf294fc6d8388cf | d9b10bf7693472209725f9859bb787a446480181 | /test/segment_map.test.cpp | cd5885b2bc8aafcbde0abc9eb42d8966cca58f57 | [
"Unlicense"
] | permissive | habara-k/ac-library | 5ea854772e6fe3396c40b28d6fe95b119c120553 | c48e576430c335d7037fa88e9fa5f6a61858e68a | refs/heads/master | 2023-09-04T01:07:55.730506 | 2021-10-30T19:32:46 | 2021-10-30T19:32:46 | 385,960,386 | 0 | 0 | Unlicense | 2021-10-30T19:29:40 | 2021-07-14T14:00:42 | C++ | UTF-8 | C++ | false | false | 1,153 | cpp | segment_map.test.cpp | #define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=2880"
#include <atcoder/segment_map>
#include <iostream>
#include <vector>
#include <tuple>
#include <algorithm>
using namespace atcoder;
using namespace std;
int main() {
int n, m, q; cin >> n >> m >> q;
vector<int> d(m), a(m), b(m)... |
b16009eec00b98efb9d3eeed3835ea7dbe6d64f5 | cd9b125ccfc18b1beae2bf0eb4a5825087122040 | /shua_ti_刷题/51/test.cpp | edab6a3f535d930bae439eec9a2a99aff73db67f | [] | no_license | Tianxintong/git | 06538c66916c4bd55d2dd0d240f0a182f18cbfd5 | b943e9338f70e84922dd6784da52dd97455c323a | refs/heads/master | 2021-01-20T01:59:05.496269 | 2017-09-13T13:18:21 | 2017-09-13T13:18:21 | 89,354,253 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,338 | cpp | test.cpp | #include<vector>
#include<iostream>
#include<stack>
using namespace std;
struct ListNode
{
int val;
struct ListNode* next;
ListNode(int x) :val(x), next(NULL)
{
}
};
vector<int> printListFromTailToHead(ListNode* head)
{
stack<ListNode*> nodes;
ListNode* tmp = head;
while(tmp)
{
nodes.push(tmp);
... |
a2cd78bbcb8a5f2f02b8396104343b2558f43bf3 | 63f26436d7da082923543af10731665b23892642 | /examples/reduce.cpp | 462639f728a58a61c619ea2fa04d8072a4c54b1d | [] | no_license | anevero/map_reduce | 93e8852f391e2c9b75f12a8943d235525595d9d0 | d4757820f113c6b7e4457e82cb8648dc8ca2f5bb | refs/heads/master | 2022-01-18T18:32:05.390158 | 2021-12-26T19:55:22 | 2021-12-26T19:55:22 | 249,186,375 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,971 | cpp | reduce.cpp | // Input format (delimited protobufs):
// Key: user_id
// Subkey: site string
// Value: time
// Output format (delimited protobufs):
// Key: user_id
// Subkey: site string
// Value: time spent (sum)
// The first argument to the script should be the name of the input file, the
// second - the name of the output file. ... |
6c48504966866fbbca7e34585f41cabf5f810adb | d5fce8e6172fc3b2366d3d22ca5816149dfbfd10 | /hilti/toolchain/src/compiler/visitors/scope-builder.cc | 454d78e01336f79bc4069e59da7b45c7eef8f94d | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | jonknet/spicy | 059f12369ca701349080d9816dc461105486b2e4 | 422f31db99cb64c9fea36ee116bb5f9fe3d7e9f4 | refs/heads/main | 2023-06-19T09:42:09.644924 | 2021-07-09T06:34:26 | 2021-07-09T06:34:52 | 385,472,907 | 1 | 0 | NOASSERTION | 2021-07-13T04:18:36 | 2021-07-13T04:18:36 | null | UTF-8 | C++ | false | false | 13,519 | cc | scope-builder.cc | // Copyright (c) 2020-2021 by the Zeek Project. See LICENSE for details.
#include <hilti/ast/declaration.h>
#include <hilti/ast/declarations/expression.h>
#include <hilti/ast/declarations/forward.h>
#include <hilti/ast/declarations/global-variable.h>
#include <hilti/ast/declarations/imported-module.h>
#include <hilti/... |
178f8db357f828ae5757363b2aaae4d6ebf94f73 | c4f8919d2e6b63a5b4468fed062b49a8e89cdbdd | /D_2.0/include/robot-config.h | e04ffaf40d71670c23338405853e12ec7237a591 | [] | no_license | angelawang197/1492k_2020-21 | bbd96a5b71c190b9386e713869e44444d4f929d9 | f5fcebd5040155978e1107c9d87b902f6f0bf981 | refs/heads/master | 2023-08-23T12:19:56.386842 | 2021-10-31T06:52:58 | 2021-10-31T06:52:58 | 423,070,537 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | h | robot-config.h | using namespace vex;
extern brain Brain;
// VEXcode devices
extern motor_group R;
extern motor_group L;
extern motor Lift1;
extern motor BigLift;
extern controller Controller1;
extern motor Rings;
/**
* Used to initialize code/tasks/devices added using tools in VEXcode Pro.
*
* This should be called at the start... |
16afe4d6b2dfaa216d368758ef5ee8577b0162a7 | 90e03cdb144fd14abaaebe0138351bac754bb5a4 | /tests/firebird/firebird-blobs.cc | a9a37e8f9ce7c15cce325a5f27d95f52820b8c31 | [
"BSD-3-Clause"
] | permissive | informave/dbwtl | 2038e9c8e1c17b3ab83e5035014271ec15a649ae | fed8f84ac42949d906a34b6a5a1b61b3a7b74356 | refs/heads/master | 2018-12-11T12:20:39.438122 | 2018-09-12T18:56:38 | 2018-09-12T19:06:16 | 13,350,267 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,738 | cc | firebird-blobs.cc |
#include <dbwtl/dal/engines/generic>
#include "../cxxc.hh"
#include "fixture_firebird.hh"
CXXC_FIXTURE_TEST(FirebirdTestbaseFixture, DatabaseVersion)
{
std::cout << dbc.dbmsName() << std::endl;
}
CXXC_FIXTURE_TEST(FirebirdTestbaseFixture, WriteMemoStream)
{
dbc.beginTrans(trx_read_committed);
dbc.direct... |
c9b999e1b891cdf0e3114f0ce68630140aaa14cd | d1c527c454d1287b50fc0ec546b88679868d3833 | /src/gol/headers/GOLView.hpp | 061247ffb46c4c3248a1fae89fd2a7c047dcabdf | [] | no_license | johnzeringue/gol | 5d105238f18fe853e043395fc0c6b95854c80ea4 | 0a501b101d825be7f9fb032acd2f06fecdbd29b1 | refs/heads/master | 2020-04-25T16:23:36.109527 | 2015-01-03T20:00:14 | 2015-01-03T20:00:14 | 28,373,794 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 605 | hpp | GOLView.hpp | #ifndef GOL_VIEW_H
#define GOL_VIEW_H
#include <string>
#include "GOLModel.hpp"
class GOLView {
public:
//
// CONSTRUCTORS
//
GOLView();
GOLView(char alive_char, char dead_char);
//
// INSTANCE VARIABLES
//
char alive_char;
char dea... |
800896459556876ccfa4a1870bdd69458a926542 | f17a88ddef74abe099a0c9d9d9aa91b90075959c | /Code/Runtime/Asset/Controllers/AssetOpController.h | dc086ace95aaf8966663e3bfd3ee7581c9d81a9c | [
"MIT",
"Apache-2.0"
] | permissive | NathanSaidas/LiteForgeMirror | bf4b0feb9702b590b510f98f32a3cc1d472f9bb0 | dcb7f690378dd0abe0d1dc3e2783510ce9462fde | refs/heads/master | 2022-06-12T11:55:06.321048 | 2022-05-30T04:37:59 | 2022-05-30T04:37:59 | 184,840,363 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,202 | h | AssetOpController.h | #pragma once
// ********************************************************************
// Copyright (c) 2020 Nathan Hanlan
//
// 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 restri... |
6b1befb2ac15379698f0967a8d0e66abfcf8461f | ef2a556f9b79a5428a13ef65df4998c99a7240fc | /FindAllDistinctPalindromicSubstringsOfAGivenString.cpp | b8dcae5edb20c02eca75bbb4d9534796f895a168 | [] | no_license | ppzzyy11/codes | 451b74cc500f0741b5b2079409122cb32772b7f7 | 306852aabc2bf7bd79b37572905314e7deb46bbc | refs/heads/master | 2021-10-21T19:49:14.386026 | 2019-03-06T06:21:50 | 2019-03-06T06:21:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,032 | cpp | FindAllDistinctPalindromicSubstringsOfAGivenString.cpp | #include<iostream>
#include<list>
#include<vector>
#include<climits>
#include<queue>
#include<stack>
#include<set>
#include<algorithm>//make_heap
#include<utility>
#include<unordered_set>
#include<unordered_map>
using namespace std;
ostream& operator<<(ostream& os,const set<string>& strs)
{
for(auto it=strs.begin();i... |
2b0a81bbe998600fd5927bb9e271e427e65559bc | 9bcc58e5f99c5b41f8e95fcbe13933297120caa6 | /Workspace/Aufg_5/Malefiz/Views/AusgangspositionsView.h | 882a4e8dccfd70ec18eeed1c5a9987d260a95279 | [] | no_license | NilsHelming/OOAD | 8bcdd3bf100798ee77de59cb20e79885ee81c4c5 | df25a84844dad18efb7d3d50728c2f17eba3d719 | refs/heads/master | 2023-07-14T11:36:42.889033 | 2021-07-20T08:24:46 | 2021-07-20T08:24:46 | 351,356,011 | 0 | 0 | null | 2021-04-08T08:32:44 | 2021-03-25T08:08:42 | TeX | UTF-8 | C++ | false | false | 342 | h | AusgangspositionsView.h | #pragma once
class AusgangspositionsView;
#include <memory>
#include "..\Interfaces\View.h"
#include "..\Models\Spielfeld.h"
class AusgangspositionsView : public View {
private:
std::shared_ptr<Spielfeld> spielfeld;
public:
explicit AusgangspositionsView(std::shared_ptr<Spielfeld>);
void modelChanged(... |
eab1bd3a78ceb756d0a158844797b5a045c98daa | 29d1f7ef9266cc8c707df4c44e7ba98411edfdae | /Codechef/LONG-June2017/SUMQ.cpp | c0606ccc613f0bbfa9c83535acf8dc1fd15b6df5 | [] | no_license | thelazy/ContestCodes | 2f0484118897746910669ee469166c7fd9e80b47 | 2088c129493b6fc7c4006f079f24f3584dde2805 | refs/heads/master | 2020-05-20T12:28:54.809592 | 2019-04-19T05:30:26 | 2019-04-19T05:30:26 | 70,280,672 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,064 | cpp | SUMQ.cpp | #include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007;
long long pp[100011], qq[100011], rr[100011], p, q, r, t, i, j, k, ans;
long long ps[100011], rs[100011];
int main(){
scanf("%lld", &t);
while(t--){
ans = 0;
scanf("%lld %lld %lld", &p, &q, &r);
pp[0]=0;qq[0]=0;rr[0]=0;
for(i=1; i<=p; ... |
762e339028da1f997f05eb13beb994984160eff3 | 62408a02b44f2fd20c6d54e1f5def0184e69194c | /UVA/10347/21766516_AC_0ms_0kB.cpp | f5b9bd2f20ac0bbaefb6391cf9ad4dd2e17998fe | [] | no_license | benedicka/Competitive-Programming | 24eb90b8150aead5c13287b62d9dc860c4b9232e | a94ccfc2d726e239981d598e98d1aa538691fa47 | refs/heads/main | 2023-03-22T10:14:34.889913 | 2021-03-16T05:33:43 | 2021-03-16T05:33:43 | 348,212,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 487 | cpp | 21766516_AC_0ms_0kB.cpp | #include<bits/stdc++.h>
using namespace std;
double a,b,c,x,y,z;
int mx,cnt;
const double pi = acos(-1.0);
bool ok;
double degree(double a)
{
return a*pi/180.0;
}
double radtodegree(double a)
{
return a*180/pi;
}
int main()
{
while(scanf("%lf %lf %lf",&a,&b,&c)!=EOF )
{
x = a;
y = b;
z = c;
a*=a;
b*=b;
... |
a46c0814d5d43359ba21cfbf172495ad062abe78 | 79c06808b304aeb3007ddebcbe60d09d9ee6bb7b | /Assignments/Assignment1Objects/DiceClassCPP/main.cpp | 64978e1dd2d9ce1c6967c5483644e03bcb0a02bc | [] | no_license | SebastianHall69/CIS17B_Spr19_AdvObjects | 12442dedabe78722e70e628e0c9a7f25cf1f37b2 | 6f6b3d68f844f61f264fcbbfd8cd201839556e29 | refs/heads/master | 2020-04-22T18:16:18.486885 | 2019-12-09T06:32:13 | 2019-12-09T06:32:13 | 170,571,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 547 | cpp | main.cpp | /*
* File: main.cpp
* Author: Sebastian Hall
* Created on March 7, 2019, 1:26 PM
* Purpose: Test the dice class
*/
#include <iostream>
#include "Dice.h"
using namespace std;
int main(int argc, char** argv) {
//Declare variables
Dice *die = nullptr;//Pointer to sides of dice
//Loop through and... |
6618effc00450ab7888b56ebeed4d8788d7459e6 | b9c01ab78ffdee7d488e4c8a9ebdaa241d72c436 | /Project-3/symbol.hpp | 57bc18d1b88bcacd4d67c0843a60a8ede158097c | [] | no_license | lewis267/CS251 | 87cfa7eea19b9ba2a94d5a5b4f74669d421132d7 | 1ce619d8e422a1a2ebe6873a682ab0a1a32aa747 | refs/heads/master | 2021-01-20T00:11:11.690628 | 2017-05-06T23:14:56 | 2017-05-06T23:14:56 | 89,091,223 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,229 | hpp | symbol.hpp | #ifndef _SYMBOL_HPP_
#define _SYMBOL_HPP_
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "key.hpp"
// a node in the symbol array which will contain the decoded values
struct symbol_node {
symbol_node() : value(0), isfull(0), next(NULL) {}
symbol_node(int value, symbol_node * ... |
a1bef85e21264d18b957de4ff32f8ff9a129819c | 19f6b6ae0b4ff04269c4c3067238a8094d4db992 | /ahgen/src/ahtest.cxx | 1487ed032cc97daf07196808893094e4c7d73e00 | [] | no_license | Areustle/heacore | 20fc58b1c9be75aa2e3ad0c72facdac9b1d5a598 | 4e7be354bdef2f84c37a6b49f60bad9e2827bcc5 | refs/heads/master | 2021-01-14T08:47:31.145648 | 2017-02-21T16:45:42 | 2017-02-21T16:45:42 | 81,976,859 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,222 | cxx | ahtest.cxx | /// \file ahtest.cxx
/// \brief Declarations of public members of the test support library.
/// \author James Peachey
/// \date $Date: 2014/02/03 22:39:41 $
#define AHLABEL ahgen_ahtest
#define AHCVSID "$Id: ahtest.cxx,v 1.12 2014/02/03 22:39:41 mwitthoe Exp $"
#include "ahgen/ahtest.h"
#include "ahgen/ahgen.h"
#incl... |
dcab5c00604916c5d7f25aee96255c8e6d78edb7 | 1349e33d666d094ec867a7c9fe618fa7125c089a | /CSdata/jungFinalExamCsUNO/아두이노 소스 축약/Aduino_serialCommunication_CS/CS_serialCommunication/CS_serialCommunication/CS_serialCommunication.ino | 4d93857537ddef52921de1de96a4f294a6aa51eb | [] | no_license | ghdcjf5/CSharp | 6126a800b22d08a0cf2ac67d08bf4bf36f18d987 | 92d679a371e37403adef8e5148e9d28eef958857 | refs/heads/master | 2023-05-08T01:28:05.434291 | 2021-05-06T01:15:15 | 2021-05-06T01:15:15 | 364,745,547 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,385 | ino | CS_serialCommunication.ino | #define LedPin11 11
#define LedPin13 13
#define LedPin9 9
#define LedPin8 8
String inputString = "";
bool stringComplete = false;
void setup() {
// Open serial communications and wait for port to open:
pinMode(LedPin11,OUTPUT); pinMode(LedPin13,OUTPUT); pinMode(LedPin8,OUTPUT); pinMode(LedPin9,OUT... |
4b9b74be9ca8b997fd55ffd5b444565fb6ad1ca3 | c4b6f3e7fd3c4d2f7fa3922581ef30b714c12036 | /VeriyapılarıOdev1/src/Ogrenci.cpp | fe21a66fdbdb8fc91cabee5441de8f86a1d3e96f | [] | no_license | alituzun/HeapMemoryManagement | 2ffd29e6bdabcce7ab20e8d846f8485c4b7bf808 | 167a1caab0016ad1c8406578c71484a732c6b0ea | refs/heads/master | 2020-04-28T23:49:26.117898 | 2019-03-14T17:38:32 | 2019-03-14T17:38:32 | 175,670,622 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 310 | cpp | Ogrenci.cpp | /**
* @description Dizileri heapbölleğe atama
* @course 1-C
* @assignment 1.ODEV
* @date 30.10.2018
* @author Ali Tüzün ali.tuzun11@gmail.com
*/
#include "Ogrenci.hpp"
Ogrenci::Ogrenci(char p1){
ogrenci_name=p1;
}
char Ogrenci::Ogrenci_Getir(){
return ogrenci_name;
} |
52be6caf5355be078c7e4fcba7fc1cc71d88a6fa | 0421aa079dc3a8e24645558e10e1c805e9180cad | /Player.h | 940984c0217f9086b76e20d7fa9ea6125058da66 | [
"BSD-3-Clause"
] | permissive | apoloid/FutureShinobi | 4ea2bd45d704a5d893239338947954ce5fb41b16 | baafda76d490faf3003fe8a7647ad676d7426dca | refs/heads/master | 2020-05-18T10:49:49.079930 | 2014-12-26T01:46:51 | 2014-12-26T01:46:51 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,266 | h | Player.h | /*
プレイヤーの動きに関するところ
*/
//インクルードガード
#ifndef INCLUDE_PLAYER_H
#define INCLUDE_PLAYER_H
class CPlayer
{
public: //表に出すもの
/*コンストラクタとデストラクタ*/
//コンストラクタ
CPlayer();
//デストラクタ
~CPlayer();
/*メンバ変数・定数*/
//方向
enum DIRECTION
{
LEFT,
RIGHT
};
/*メンバ関数*/
//画像の読み込み
void load();
//画像の解放
void release();
//初... |
43a9989084044a43306d4910086b416e154214ae | 04f15913aca8a702efe47962bf82b60eedad73d9 | /Utils/UdpRoute/Main.cpp | c68104f98920d9b0d6cba9567c02f2b7c33e3336 | [] | no_license | DevilCCCP/Code | eae9b7f5a2fede346deefe603a817027a87ef753 | 9cc1a06e5010bb585876056a727abad48bca3915 | refs/heads/master | 2021-10-07T17:04:27.728918 | 2021-09-28T06:49:50 | 2021-09-28T06:49:50 | 166,522,458 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,182 | cpp | Main.cpp | #include <QCoreApplication>
#include <QCommandLineParser>
#include <QCommandLineOption>
#include "Router.h"
int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
QCoreApplication::setApplicationName("UDP route");
QCoreApplication::setApplicationVersion("1.0");
QCommandLineParser parser;
par... |
6b21c27748417f5c7325a17e5526a26f097b9c99 | 806410cc83acebed719e5804232821bc83a87f01 | /source/library/render/public/potato/render/render_task.h | b4f6435343fe23aff903be99186f340a5b7ec06d | [
"MIT"
] | permissive | blockspacer/potato | e4d37969b791f434826114721455d8dbb642d361 | a52f9712e5251412e14406c54927ab9984ec6f0e | refs/heads/master | 2020-07-05T19:02:41.665477 | 2019-07-19T03:15:09 | 2019-07-19T03:15:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 162 | h | render_task.h | // Copyright (C) 2019 Sean Middleditch, all rights reserverd.
#include "potato/foundation/delegate.h"
namespace up {
using RenderTask = delegate<void()>;
}
|
fdb985c5dceeda33694a383a394e1243f3071c3e | 3df54efd316b855c07f91eda806d57202fb913fa | /Mikrokontroller/pin_PWM_analogWrite_IoT_Blynk.ino | 6127b479ded0f8c08408b52aeac1ca7895f6efe9 | [] | no_license | univmajalengka/191410025 | ffe2909dde75156a7b461231373dca4f7bcb53b1 | 73bf80bcfe1ddf8e1f4fb3d99f87fffd644402bc | refs/heads/master | 2021-11-18T21:27:53.526982 | 2021-11-03T07:33:46 | 2021-11-03T07:33:46 | 218,977,578 | 0 | 1 | null | 2020-11-10T01:21:14 | 2019-11-01T12:03:06 | Visual Basic .NET | UTF-8 | C++ | false | false | 789 | ino | pin_PWM_analogWrite_IoT_Blynk.ino | //nodeMcu ESP8266
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
int led1 = D1;
int led2 = D4;
int led3 = D5;
int led4 = D7;
//Karena Semua pin Di Board ini PWM
char auth[] = "Auth Dari Blynk App";
char ssid[] = "SSID";
char pass[] = "Password";
void setup() {
// put ... |
36c0285b410ea49d9ba41c9e9ca21f1bf47acc8b | 8d9f794194107c0a2071582fc42e71e0908ac4ea | /Zorkish/Node.cpp | cc44a943eb1e0ed9d412554af66bb804220f452d | [] | no_license | Hughl33/Cplusplus | 8f3bd60a502d8637317f1779b3a0cb1be480725d | d6e0344fe470fde9c88196f4233ddb4499a0f6f8 | refs/heads/master | 2020-03-31T12:15:03.825176 | 2017-01-22T11:52:15 | 2017-01-22T11:52:15 | 22,980,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | cpp | Node.cpp | //
// Node.cpp
// Zorkish
//
// Created by Hugh Lee on 2/09/2014.
// Copyright (c) 2014 OysterFinish. All rights reserved.
//
#include "Node.h"
Node::Node(std::string n, std::vector<std::string> l) {
name = n;
links = l;
}
std::string Node::getName() {
return name;
}
std::vector<std::string> Node::ge... |
3ef1707bca2908e86d34c37ee8e4ef78cc6ace0c | 80cc8982aac053afbd5c354e4919da7991fbc4b4 | /contracts/kv_todo/include/kv_todo.hpp | fa49bf8c60c0bf922480e5caabecd24e6f7b9bab | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | opi-smccoole/sample-kv-tables-application | 47f83dddcc474fe8244b51d6692ea5febacf17e6 | b07561567c674209906a990e9afb5416062e3a28 | refs/heads/master | 2023-03-26T16:27:15.898024 | 2020-11-04T19:55:32 | 2020-11-04T19:55:32 | 309,510,864 | 0 | 3 | MIT | 2021-03-25T01:37:25 | 2020-11-02T22:30:44 | TypeScript | UTF-8 | C++ | false | false | 1,824 | hpp | kv_todo.hpp | #include <eosio/eosio.hpp>
#include <eosio/system.hpp>
using namespace eosio;
struct todo_entry {
std::string uuid;
eosio::non_unique<std::string, eosio::name> account_name;
eosio::non_unique<std::string, std::string> task;
eosio::non_unique<std::string, bool> checked;
eosio::non_unique<std::string, uint32_t... |
4b01283312e93318eabf5423c6a133faad2a2380 | 9d96429ce069961cf187d96643200ab0efb70fbe | /src/parser.cpp | 1dd2b95d2cbc64ae8444bdca1890dc3d0a463911 | [] | no_license | KevinCybura/K-Lang | 8dc554b987738bb4ed9e1c0e519ec0ad16d9a25d | 1c64e51bc8a51711b5b7cc3edd6d5aa870edb56d | refs/heads/master | 2020-04-25T00:13:41.855739 | 2019-02-28T10:53:09 | 2019-02-28T10:53:09 | 172,371,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,618 | cpp | parser.cpp | //
// Created by kevin Cybura on 2019-02-20.
//
#include "parser.h"
#include <llvm/ADT/STLExtras.h>
#include <iostream>
#include <memory>
#include "AST.h"
#include "lexer.h"
#include "parser.h"
int getNextToken(CurTok& x) { return x.cur = gettok(x); }
std::unique_ptr<ExprAST> LogError(const char* Str) {
fprintf(s... |
b0e970798e3de35fb7748d2f636469b5376a48d0 | edfc92a7df8d8ce526324f8e21d603450bec6c23 | /IPXACTmodels/bank.h | ffe620c7d6ea7504fea65d0703362ccc9a3e38ea | [] | no_license | shrimpdede/kactus2 | 97be5f47918c99c7a3b3c4e17cf89f1cba267588 | 401b9dc80c2f4f3d081a639e498b08a50c89de71 | refs/heads/master | 2021-01-21T20:30:09.864195 | 2015-09-14T12:42:14 | 2015-09-14T12:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,450 | h | bank.h | /*
*
* Created on: 29.7.2010
* Author: Antti Kamppi
*/
#ifndef BANK_H_
#define BANK_H_
#include "generaldeclarations.h"
#include "memorymapitem.h"
#include "memoryblockdata.h"
#include "ipxactmodels_global.h"
#include <QList>
#include <QString>
#include <QDomNode>
#include <QSharedPoint... |
5fb4c5d5d89ecd8d004e8b46bcd8db46654cc723 | 2736637fd346f437ecfc85de8f733e454d45db9b | /BOJ/Silver/Silver_14888_연산자끼워넣기.cc | d6a7f350e73f5a562b5fa1f56d2c51042a0fdb66 | [] | no_license | Lowvoice-git/BOJCode | 846db7fd4477d9f3f87993b63acaf044a47ff6f1 | 64f4ad7e998a2b93fd80ba963eeafbbf17a48a9e | refs/heads/master | 2022-12-08T13:37:19.372180 | 2020-09-06T18:32:02 | 2020-09-06T18:32:02 | 206,231,699 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 952 | cc | Silver_14888_연산자끼워넣기.cc | #include <iostream>
#include <limits.h>
bool visited[10];
int N, number[11], op[10], max = INT_MIN, min = INT_MAX;
void DFS(int B, int idx, int num, int lengh) {
int result = 0;
if (lengh == N - 1) {
if (num > max) max = num;
if (num < min) min = num;
}
else {
for (int i = 0; i < N - 1; i++) {
if (!visi... |
5716af5a672f1e46427ada077ae280ddda9bd8d0 | d90a87759b0d153ec12b0f284ee72fcdd8386743 | /libconfluo/confluo/parser/expression_compiler.h | af67ce5464fb5f69053fb53e0f6059e6f2f3ac9e | [
"Apache-2.0"
] | permissive | ucbrise/confluo | e2e152e6d3de7808280482a7ee14ea0a33a1b6f5 | e9b8621e99f56b1adf5675c4296c006d89e6e582 | refs/heads/single-machine | 2023-03-09T02:08:28.919233 | 2022-02-11T19:33:22 | 2022-02-11T19:33:22 | 50,422,569 | 1,418 | 212 | Apache-2.0 | 2022-05-20T20:55:43 | 2016-01-26T10:49:47 | C++ | UTF-8 | C++ | false | false | 10,994 | h | expression_compiler.h | #ifndef CONFLUO_PARSER_EXPRESSION_COMPILER_H_
#define CONFLUO_PARSER_EXPRESSION_COMPILER_H_
#include "schema/schema.h"
#include "schema/schema_snapshot.h"
#include "expression_parser.h"
namespace confluo {
namespace parser {
namespace spirit = boost::spirit;
/**
* Compiled predicate class. Contains operations for ... |
cb7a5646f412dcdb12951c776acd1748d7b94c4f | 0fb15365030fdaea012e0fb2e40349620be974f8 | /loops/print_nat_loops.cpp | 9548d8cfaa3730c3b096b5dd42441caca60ed045 | [] | no_license | baziotis/compiler-optimization | 6146ba0fab552a955acc2dcc0db2ebe89e178ee3 | dc5a87a1d643830722adbc8de6331c4978d323c5 | refs/heads/master | 2023-04-14T15:24:38.277505 | 2021-04-20T17:48:35 | 2021-04-20T17:48:35 | 261,909,377 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | cpp | print_nat_loops.cpp | #include <stdio.h>
#include "../common/buf.h"
#include "../common/cfg.h"
#include "../common/parser_ir.h"
#include "../common/stefanos.h"
#include "loop_info.h"
int main(int argc, char **argv) {
assert(argc == 2);
CFG cfg = parse_procedure(argv[1], NULL);
LoopInfo li(cfg);
li.print();
cfg.destruct();
}
|
c886023e265378a067bee425d94e5edbc3039f4f | 9bce5ae2f0ebbfcbc378452acc0ff615cb9d751b | /gpmap/cpp_Script/Cell.cpp | 761fff4af83b6bb1227852398f2eb70835d2464b | [] | no_license | mjaklitsch/gpmap_CPP_and_Processing | 2cde5d3a5f33e3f9f12817301afa3b79086c5a1f | ff4475a71a7e61aaea061101199739fb3c238812 | refs/heads/master | 2023-04-22T17:58:45.296474 | 2021-05-03T07:03:50 | 2021-05-03T07:03:50 | 282,727,744 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,276 | cpp | Cell.cpp | #include "Cell.hpp"
#include "GenerateGene.hpp"
#include "GlobalVariables.hpp"
#include <iostream>
#include <string>
#include <cmath>
using namespace timer;
Cell::Cell(){
}
Cell::Cell(Gene tempGene, int tempIndex){
gene = tempGene;
index = tempIndex;
xPos = 0;
yPos = 0;
diameter = 0;
radius =... |
c053d76bab98cb00d0f2612834c7fe5a224ba36c | e4dd473e43ddb9ce4e891fd534e113ccf52c6fac | /main.cpp | 50607e49f7c2d7b96ceee70da36e7f79a7632c14 | [] | no_license | StMichaelsCodingClass/tag | a55f5e6d783f183374195dfb9152bf8842d3e3dd | 1dbbceaaa9f6ceeb043d78e80f871722de1676f2 | refs/heads/master | 2021-01-19T07:47:09.471712 | 2015-10-30T16:45:54 | 2015-10-30T16:45:54 | 34,743,669 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | cpp | main.cpp | #include <iostream>
#include "area.h"
#include "character.h"
#include "interpret.h"
using namespace std;
int main(){
Area current=getForest();
Character player=getPlayer();
for(;;){
current.describe();
interpret(current, player);
}
return 0;
}
|
3aa3fefe3459f296ca2965a393a5a60021b1764c | 2cf314b8237fc6a77b7f1a096f17a679179b0057 | /internal/core/src/index/IndexFactory.h | ec1c9cfdf8786942263653874b53648e301b8fde | [
"Apache-2.0"
] | permissive | milvus-io/milvus | a02d732cf746effec1ea723f9e4d17856843f8a8 | 0530fd80c91dc5b200606c00214c12bf8dd17cb4 | refs/heads/master | 2023-09-04T06:28:57.681855 | 2023-09-04T02:01:04 | 2023-09-04T02:01:04 | 208,728,772 | 23,316 | 2,917 | Apache-2.0 | 2023-09-14T15:06:12 | 2019-09-16T06:43:43 | Go | UTF-8 | C++ | false | false | 2,211 | h | IndexFactory.h | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... |
3b1f1009eeb6631d9eb46c88fe702758978bfc7e | 6ccb723686cf42b2ec8a9a080e0aefeb4e24319e | /Szachownica4.cpp | 6dcdf6e04a745107ac6804e0a24b0ebdd1222403 | [] | no_license | michczur/Rozne_drobiazgi | e7a50b6ffb08721e1a0ab36771edfe95fdd59034 | b869a0207a20373fd3eda326d2704a83262a869f | refs/heads/master | 2020-04-16T07:54:21.406667 | 2019-01-12T15:38:40 | 2019-01-12T15:38:40 | 165,403,325 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 544 | cpp | Szachownica4.cpp | #include <iostream>
int main()
{
int szachownica [8][8];
for (int i=0; i<8; ++i) //uzupełnianie tablicy
{
for (int j=1; j<8; j=j+2)
{
szachownica[i][j]=1;
}
for (int j=0; j<8; j=j+2)
{
szachownica[i][j]=0;
}
}
for (in... |
c238a047cc7a3db2a00000782c13b0c21f1ac5ad | 885d0033af38c4164ef499c091a972d637c2fa54 | /src/tools.cpp | 76eeeb778076489dd6b8395e1f7fd52e3bbffa43 | [
"MIT"
] | permissive | iabdelmo/Extended-Kalman-Filter | 85bdf7277cdfc02f7314fad89c5cb64835267658 | a2bbad8d5de7425e894e8bda9f9415f9ad822139 | refs/heads/master | 2020-03-29T12:53:04.819952 | 2018-09-22T23:28:58 | 2018-09-22T23:28:58 | 149,925,658 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,723 | cpp | tools.cpp | #include <iostream>
#include "tools.h"
using Eigen::VectorXd;
using Eigen::MatrixXd;
using std::vector;
Tools::Tools() {}
Tools::~Tools() {}
VectorXd Tools::CalculateRMSE(const vector<VectorXd> &estimations,
const vector<VectorXd> &ground_truth) {
/**
TODO:
* Calculate the RMS... |
d86b0d9d77181353a269b1183b4acc30391f6008 | 7bd533a635b327832e46b4491fa91f0dd4c0a9e1 | /dp/96_unique_binary_serch_trees.cpp | d35dbd19951d7001c9c41d095c6efa3ae701e288 | [] | no_license | zegzag/DSA | 21228ffc05200de634a52d551300dcff941d9661 | 3420e2fb2672c01125cab39cba799fc5eb2c7117 | refs/heads/master | 2021-06-19T23:34:43.252009 | 2021-04-07T00:23:50 | 2021-04-07T00:23:50 | 183,879,891 | 0 | 0 | null | 2021-04-07T00:23:51 | 2019-04-28T08:30:52 | C++ | UTF-8 | C++ | false | false | 557 | cpp | 96_unique_binary_serch_trees.cpp | #include<cstdio>
int numTrees(int n) {
if(n==0)
return 0;
int *num = new int[n+1];
num[0]=0;
num[1]=1;
for(int i=2;i<n+1;i++){
num[i]=0;
for(int j=0;j<i;j++){
if(num[j]==0)
num[i]+=num[i-j-1];
else if(num[i-j-1]==0)
num[... |
8011ea88c5b893ae42a48e3cbcdba8ead1a93d64 | ca2125d3a3a4aa7167326a09ff3adae4a03c90fe | /Graphics/GraphicsEngineD3DBase/src/DXGITypeConversions.cpp | a84bcca543efb6382ccbbd685343fc06f9648db0 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-nvidia-2002",
"BSD-2-Clause"
] | permissive | DiligentGraphics/DiligentCore | 9e124fee53bda1b280b3aa8c11ef1d3dc577d630 | 2ebd6cd1b3221a50d7f11f77ac51023a2b33697f | refs/heads/master | 2023-08-28T14:13:18.861391 | 2023-08-24T00:52:40 | 2023-08-24T00:52:40 | 44,292,712 | 545 | 180 | Apache-2.0 | 2023-09-11T14:44:45 | 2015-10-15T03:56:34 | C++ | UTF-8 | C++ | false | false | 20,999 | cpp | DXGITypeConversions.cpp | /*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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.... |
d0cc79876fba29eec4e36b9a9b9495b1dd861974 | af0a4e4696bde1d25315648c57db973b8d2c2cf4 | /dsa8infix.cpp | df056f46380b99bb3789061d62d71ad3b0cdcbe1 | [] | no_license | nayanjadhav08/SPPU-SE-DSA-PROGRAMME | 09f1d8934bb799f654be96a2c792d0dea24c5c8d | a7942efecc7d8c512705413935b2477d29ba90af | refs/heads/master | 2022-02-23T04:45:55.743463 | 2019-09-23T17:58:36 | 2019-09-23T17:58:36 | 109,691,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,338 | cpp | dsa8infix.cpp | //8. Implement C++ program for expression conversion as infix to postfix and its evaluation using stack based on given conditions
//i. Operands and operator, both must be single character.
//ii. Input Postfix expression must be in a desired format.
//iii. Only '+', '-', '*' and '/ ' operators are expected.
#i... |
7fac39730b9443ac90648aacad0c822dc87c5597 | 9c046eeda11be532cc0017e6da316e7ddfd16283 | /Telecomm/SharedLib/zbar/include/Magick++/Image.h | 219bb3d3fa8851774882c55329d65e5c77225238 | [
"BSD-3-Clause"
] | permissive | telecommai/windows | 83cd3ac4dec7742c6e038689689ac7ec9cde842a | 30e34ffe0bc81f39c25be7624d16856bf42e03eb | refs/heads/master | 2023-01-12T02:10:59.904541 | 2019-04-23T11:42:07 | 2019-04-23T11:42:07 | 180,726,308 | 3 | 0 | BSD-3-Clause | 2023-01-03T19:52:20 | 2019-04-11T06:12:20 | C++ | UTF-8 | C++ | false | false | 68,103 | h | Image.h | // This may look like C code, but it is really -*- C++ -*-
//
// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003
// Copyright Dirk Lemstra 2013-2015
//
// Definition of Image, the representation of a single image in Magick++
//
#if !defined(Magick_Image_header)
#define Magick_Image_header
#include ... |
6cf6efccff5b955ce9208f6e149b6e11bca7216d | bd93b9171602a2eef8b301fc0460fd455d9fc29c | /Source/RTSCapstone/Projectile.h | 11d0916bcf52669bf09d7744fbb90d50d34693d5 | [] | no_license | ReyndertLindeyer/RTSCapstone | 43f9a6de2ef9afa97d3c8944044d13eba156da18 | 7c8f995c8485fa33363f3e6ccd912c7b85795831 | refs/heads/master | 2020-04-17T15:34:49.024072 | 2019-10-22T01:01:43 | 2019-10-22T01:01:43 | 166,704,307 | 1 | 0 | null | 2019-04-17T01:55:27 | 2019-01-20T20:10:19 | C++ | UTF-8 | C++ | false | false | 1,749 | h | Projectile.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Engine/StaticMesh.h"
#include "Components/SphereComponent.h"
#include "Runtime/Engine/Classes/Kismet/GameplayStatics.h"
#include "Runtime/Engine/Classes/Par... |
092167c3a1ab148e3aff82aefb7e8540573fe96a | 5a0de8d575dd64116e9e13be32cb9a86f0c682e7 | /leetcode 404.cpp | efd25148005dbcb0ffb0476eb458c2248a4addb4 | [] | no_license | sailll/leetcode-solution-by-myself | 246499095b798e6a2789ad5d03fc4772ab897c1d | 15f8fb94c614dba7fe42725a50ae082487da0374 | refs/heads/master | 2021-05-22T10:01:27.305761 | 2020-07-13T05:06:06 | 2020-07-13T05:06:06 | 54,723,761 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 585 | cpp | leetcode 404.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
bool judgeleaf(TreeNode* node){
if(!node) return false;
if(!node->left&&!node->... |
6365970bf3fd23f1dd8778c6109393758013ce90 | d9c9095e837a6f22377a89bd8b88e1ba8ac79ca6 | /luogu/P1002 过河卒.cpp | d2f4636802445efecb9a838475da7914acdcd059 | [] | no_license | alexcui03/luogu-test | 3ade46adb43adf50a8f2b40dfde83d399116f0fa | 7614ce64adcf5399181b113bcc571cdc84092f0f | refs/heads/master | 2021-06-28T02:08:33.365736 | 2020-12-02T14:47:01 | 2020-12-02T14:47:01 | 177,288,367 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 836 | cpp | P1002 过河卒.cpp | #include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
#define pos(x, y) ((y) * (n + 1) + (x))
int main() {
int n, m, hx, hy;
cin >> n >> m >> hx >> hy;
++m, ++n;
long long *map = new long long[(n + 1) * (m + 1)];
memset(map, 0, (n + 1) * (m + 1) * sizeof(lo... |
c677bfde39080e4ee34cd829cbff2cdf77fbe4e9 | 3256fe097cbd5db139b11971c1e260fec330ba83 | /linux_advc/add_two_numbers.cc | 3fbbb634538b2409f99db4ae7e443ccf623a6028 | [] | no_license | herywang/algorithmUnlock | 410fa4fd3914910d1cfbfecc9984732f53eb2717 | df29078cc9576ebe5811105cae7ef8e59015df86 | refs/heads/master | 2022-04-26T12:39:32.433318 | 2020-04-30T02:55:36 | 2020-04-30T02:55:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,629 | cc | add_two_numbers.cc | #include <iostream>
/*
You are given two non-empty linked lists representing two non-negative integers.
The digits are stored in reverse order and each of their nodes contain a single digit.
Add the two numbers and return it as a linked list.
You may assume the two numbers do not contain any leading zero, except th... |
0a31d732dc7ba2ad7f0a6a187f22f42bbbcce429 | ae3b01cde0a051d17454ff6079338adb6871bc8c | /practise.cpp | f477383b2c820731281b6850f6fd2f6e978eb830 | [] | no_license | Pratiksha-chokhar/Pg-Dac-CPP | 0b1ce0855ec602e2455a25680fef4d485e0168f3 | b9ede29a2aafd4546e09e98ae0857fd6d24431d5 | refs/heads/master | 2020-05-15T17:49:35.704553 | 2019-04-20T13:39:12 | 2019-04-20T13:39:12 | 182,411,334 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,146 | cpp | practise.cpp |
/*int main()
{
char name[20];
printf("Enter name: ");
scanf("%s", name);
printf("Your name is %s.", name);
return 0;
}*/
#include <stdio.h>
/*int main(void) {
char name[] = "Harry Potter";
printf("%c", *name); // Output: H
printf("%c", *(name+1)); // Output: a
printf("%c", *(name+7... |
6ab29befe96fb62599fa37ef3b99c3f794410333 | 569007d9fc5eef66f5a8c6a4b1b90576ab96dd8c | /2014/c++ tutorial/map-multimap/STLmap2.cpp | be4da03971e2b77c9151677961cfe6ecb55513c2 | [] | no_license | SUDHARSHAN99/top20 | 917683dcf49d2e5394eaf07fbd67afac6a7cd780 | 4ff0f28d650a7c212bd9a606a673c6af618a532b | refs/heads/master | 2020-05-04T04:44:27.590605 | 2019-03-30T02:16:40 | 2019-03-30T02:16:40 | 178,972,411 | 1 | 0 | null | 2019-04-02T01:07:05 | 2019-04-02T01:07:05 | null | UTF-8 | C++ | false | false | 433 | cpp | STLmap2.cpp | #include<iostream>
#include<map>
#include<string>
using namespace std;
int main() {
map<int, string> m;
m.insert(make_pair(10,"abc"));
m.insert(make_pair(20,"xyz"));
m.insert(make_pair(15,"pqr"));
m.insert(make_pair(25,"def"));
map<int,string>::iterator res = m.find(20);
if(res==m.end()) co... |
787e7ea6483a68e39fc7973ef6f7b88dd4181330 | da1ef5b8f357a1d3ad6109248e9c6006d4e7dc36 | /include/errors.h | 58aeb4109c22671638c9c980c593657beeeaafb3 | [] | no_license | Wombozo/harmony | 24adaae40e77132daae72ef5e83334b1acb8f4fd | cb183425985f4b6aaa18f37999416affef7954eb | refs/heads/master | 2020-05-20T15:39:30.991971 | 2019-05-24T13:30:07 | 2019-05-24T13:30:07 | 185,649,283 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 245 | h | errors.h | #ifndef _ERRORS
#define _ERRORS
#include <string>
typedef enum
{
E_INTERVAL,
E_CHORD_UNKNOWN,
E_INVERSION,
E_SCALE_UNKNOWN,
E_CHOICE,
E_DEGREE_NOT_FOUND,
E_TYPE,
} H_ERR;
std::string handle_H_ERR(H_ERR e);
#endif
|
1490db9c9845b82ed9e9b9de691ca79ffd7597e8 | 0767851881d0bf4eee61fecbf0ddd9b359824d4d | /170/NeedsOrganized/Miscellaneous/misc_License.cpp | 08f35e7352f35b1ce76275b7a1cad690dd2ad586 | [] | no_license | mshafer1/SteilHU | 40e41ac6cb738b2ef063f8a21a08a8750bafdc93 | b3897023dab9a372122c4cf732b5f783e19e0a62 | refs/heads/master | 2021-01-15T21:49:07.785393 | 2019-09-04T02:53:20 | 2019-09-04T02:53:20 | 6,246,636 | 0 | 0 | null | 2019-09-04T02:53:21 | 2012-10-16T15:28:32 | C++ | WINDOWS-1252 | C++ | false | false | 1,544 | cpp | misc_License.cpp | //this program is an example test question and answer
#include<iostream>
#include<string>
#include<fstream>
using std::cout;
using std::cin;
using std::endl;
using std::string;
using std::ifstream;
//7. A witness to a bank robbery recalls that the license number
//of the get away car was xxx-SUN, where... |
3f5735f0619c5932110f4895e4caf513adb5f66d | 257f7753fd1a12c08090aacc6bdef032297d9af8 | /wb32v10.cpp | bd913e443c80bf49a5c6da31786ad4c1dc485e47 | [] | no_license | samsuanchen/wb32f10 | 53482d1ded7528cb436711dabc0e915a1d75085c | 54cb84cc0f261ee5e4a80d9d9b542fc79b6db14d | refs/heads/master | 2021-01-20T14:15:18.895776 | 2017-05-12T03:05:25 | 2017-05-12T03:05:25 | 90,573,448 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,307 | cpp | wb32v10.cpp | #include "wb32v10.h"
void WB32V10::tibOpen () { tibBegin=tibEnd=tib,tibLimit=tib+TIB_SIZE-1; } // init tib and wait for input
void WB32V10::tibClose () { *tibEnd='\0'; } // add '\0' at end of input
void WB32V10::tibPop () { --tibEnd; } // pop last input character
void WB32V10::tibPush (char c) { *(tibEnd++)=c; } //... |
21c912957fdf3bc1c46c8655e7e2574131a89e27 | fe79003d2aef8ce914c7730d81aa027037544560 | /main.cpp | e464d435a33e0a51571c6d1b6e29ca6fa61a5ed0 | [] | no_license | imkiwa/calc | 53386cb5e5f04f4e5b9dfc1f030a4b78688a08ea | ac1808db3b2672079fcbce2c9c68ef4a86ab0a1e | refs/heads/master | 2021-06-08T01:22:47.427352 | 2016-11-27T03:08:24 | 2016-11-27T03:08:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,827 | cpp | main.cpp | #include <iostream>
#include "config.h"
#include "expression.h"
#include "function.h"
#include "operator.h"
#include "var.h"
#include "varscope.h"
#define FARG __a
#define FRT __rt
#define FARGS const Args &FARG, int &FRT
#define FRETURN_VOID \
{ \
... |
6c3846b7124a27f144812303073d26e377640776 | 529fdade3c3c9c41adc7fbb463d732223310ef8a | /util.h | 9342b479e11dc47fd8295f2fc64ae7aa580a4b12 | [] | no_license | qxzcode/Bedrock | e36a5084600124741ec9dfb404f972e4a3b8fea6 | cbed879bf9b994220352d24c9c9cbe20192c3b4d | refs/heads/master | 2021-01-20T13:55:50.429559 | 2017-02-21T20:04:57 | 2017-02-21T20:04:57 | 82,722,278 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,825 | h | util.h | //
// util.h
// Bedrock
//
// Created by Quinn on 9/14/13.
// Copyright (c) 2013 Hexahedron Games. All rights reserved.
//
#pragma once
#include <string>
#include <stdlib.h>
#include "math.h"
#include <climits>
#include "ortho.h"
namespace util {
//// Graphics ////
void swapBuffers();
//// Maths ////
#de... |
345cbe2767e67b2154038c62dd0ce305569dccc2 | f85d47fb4f24582dacf9ad96f262d4847ffe194f | /include/util/string.hpp | 21712fd96f61d3c7ebd9fea831bd12225cfa0f1f | [] | no_license | WalterCReel3/example-project | 2490e6a2fa75aea82e22726d2facd9273c8877be | 14b87ba20ec3227165a635022d409712b4758ff9 | refs/heads/master | 2021-01-10T14:32:56.001510 | 2016-02-18T00:32:12 | 2016-02-18T00:32:12 | 51,212,974 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,809 | hpp | string.hpp | #ifndef __UTIL_STR_HPP__
#define __UTIL_STR_HPP__
#include <wchar.h>
#include <ctype.h>
#include <stdlib.h> // strtol(3)
#include <string.h>
#include <limits.h>
#include <iterator>
#include <algorithm>
#include <functional>
#include <stdexcept>
#include <vector>
#include <utility>
#include <util/logging.hpp>
//======... |
2a92753ca75370e126ca89546dee30df46e1a117 | d661c959dd65f711e06aeb3609ceb3f2eb636e34 | /DB.cpp | 2b97c0bcb7def7a99ce01a57d579dca2e4c3ac61 | [] | no_license | Erax33/pc1tprog | 2e16ae99ad1eb763c2c673bdf8eddda7ae05b259 | 724eaba925464a45fb2666cb1041a51501caa569 | refs/heads/main | 2023-01-24T03:46:36.335062 | 2020-12-06T16:43:00 | 2020-12-06T16:43:00 | 319,080,807 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,408 | cpp | DB.cpp | #include <stdio.h>
#include "options.h"
#include <stdlib.h>
#include <string.h>
void add(char* fname, char* lname, char* date, char* phone, char* tarif, struct s_dec** pnt)
{
struct s_dec* new_c;
struct s_dec* curr_c;
new_c = (struct s_dec*)malloc(sizeof(struct s_dec));
curr_c = (struct s_dec*)malloc(sizeof(struc... |
f97bde0418ba72a38c9bc562f8af278b6cbd8e83 | a95ef80bf3cb6d253044d18a3d1ad671e0ed0ece | /src/besteng/core.cpp | 2fdc8561eecfb137777dd34c6083214deace2b95 | [] | no_license | DanUdal/besteng | 8a00380ee30e02a7b6ccc3f6bd323b3b7fb04927 | 8b66cda721959a652aa06119deffc9d47ad3a85a | refs/heads/main | 2023-02-13T05:54:30.594579 | 2021-01-15T08:18:45 | 2021-01-15T08:18:45 | 329,594,138 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,198 | cpp | core.cpp | #include "core.h"
namespace besteng
{
std::shared_ptr<Core> Core::initialise()
{
std::shared_ptr<Core> rtn = std::shared_ptr<Core>(); //creates the shared pointer for the function to return
rtn->self = rtn;
rtn->window = SDL_CreateWindow("besteng", SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED, 800, 60... |
b047698fcd69b312e01efd20c3d83e39541aa663 | c9518f034ee56db7a0c97fc881c4e31712e912a9 | /Paint/WarningCmd.cpp | ea82a195b9529ea0c89cfc8bc1d0cb5c105ac921 | [
"BSD-3-Clause",
"BSD-2-Clause-Views"
] | permissive | linhongyi/Paint | 0994156cfdc1a599e30bbfa2f3e0dbdc001bb69f | 65c9e6f8a4cec6dca12ddfec760460b34d0b1608 | refs/heads/master | 2021-01-16T00:27:49.371830 | 2013-02-08T02:06:15 | 2013-02-08T02:06:15 | null | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 405 | cpp | WarningCmd.cpp | #include "StdAfx.h"
#include "WarningCmd.h"
WarningCmd::WarningCmd(void)
{
}
WarningCmd::~WarningCmd(void)
{
}
void WarningCmd::Execute(RecordObj *recordObj)
{
::MessageBox( gPaintInfo.GetMainHwnd(), _T(" 無此命令物件 Execute \n"),NULL,NULL);
}
void WarningCmd::UnExecute(RecordObj *recordObj)
{
::MessageBox( gPaint... |
9799042f6dd5fb4aba9db61e2afcbf6734f0bff0 | fd911fe124408f4f6e300b084b6f1d30f5da30ba | /libs/hwdrivers/include/mrpt/hwdrivers/TCaptureOptions_bumblebee.h | f568627ed79a7de4810c799eda251852616b750f | [
"BSD-3-Clause"
] | permissive | tg1716/SLAM | 5710024e34f83687c6524cfb947479951d67941e | b8583fb98a4241d87ae08ac78b0420c154f5e1a5 | refs/heads/master | 2021-01-02T09:11:41.110755 | 2017-07-30T16:04:31 | 2017-07-30T16:04:31 | 99,160,224 | 5 | 2 | null | 2017-08-02T21:13:21 | 2017-08-02T20:57:07 | null | UTF-8 | C++ | false | false | 1,371 | h | TCaptureOptions_bumblebee.h | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.