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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4ee482da6ef86d07eed41725ee12614160cf888 | 9dab778aa8e22fc2095888e32b05375ac524c057 | /FillArena.cpp | 74f0f155bc10d16474f87b9d26665aa839e89c8c | [] | no_license | mukromka/sudoku | 48caa493e22ccacfdf54e48a558489913bd5da4e | 25717d3a08049c58f1734386f2432094729bf155 | refs/heads/master | 2023-06-13T06:21:03.671701 | 2021-07-04T18:40:40 | 2021-07-04T18:40:40 | 355,690,513 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 157 | cpp | FillArena.cpp | #include "fillArena.h"
FillArena::FillArena(Board& board, int x, int y, int input)
{
this->b = &board;
this->x = x;
this->y = y;
this->input = input;
}
|
1c8c9850426cf8ae8cbb4b699dc1652551a7bdc7 | 243699dc1fb966f69f983dd9cbc04d91fdd9f53b | /tests/ObjectFeatures/main.cpp | 8f69827b10ed49c8ab63ad988f6297916343cb32 | [] | no_license | jeandet/libCDFpp | 3e9d709e708d6a2401c8f0a7bfadc444769fe1bd | d3b919ab56d59140cecb252825fc8b12eec072b2 | refs/heads/master | 2021-01-20T04:43:08.924474 | 2017-09-07T21:07:37 | 2017-09-07T21:07:37 | 89,721,837 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,159 | cpp | main.cpp | #include "gtest/gtest.h"
#include "libCDF.h"
namespace {
class CdfTestObjectFeatures : public ::testing::Test {
protected:
CdfTestObjectFeatures() {
// You can do set-up work for each test here.
}
virtual ~CdfTestObjectFeatures() {
// You can do clean-up work that doesn't throw exceptions here.
}
... |
3ad418add8b1728140434887db282c010282559c | 24c92888bb882378a91e6ef6e8f6ac797762c861 | /Additional Problems/FloodFill.cpp | 673f86e841e1a681c13a79a1a950543be4c26588 | [] | no_license | karthikm15/USACO-Silver-Problems | b54cae9366397bb014607580ec163268e18ba1ec | fdc7928fce80050bd6c5bbc18ac8f223315a21e9 | refs/heads/master | 2020-12-04T14:41:59.388090 | 2020-09-13T14:12:24 | 2020-09-13T14:12:24 | 231,803,881 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,788 | cpp | FloodFill.cpp | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int N = 7;
int M = 5;
int arr[7][5] = {{0, 0, 1, 0, 1},
{0, 0, 1, 0, 0},
{0, 1, 0, 1, 0},
{0, 1, 0, 1, 0},
{1, 0, 0, 1, 0},
{1, 1, 1, 1, 1},
{1... |
a30107167b6106c6bb1ac0182221fd6f68fe59ab | bb767bfc9db2b0ab7f24d3561b168a829c4eb0bc | /1st_Year/2nd_Semestre/PROG/Visual Studio/Programação orientada por classes/Exercicio_2/Exercicio_2/class.h | cb97f9638a90f88076eb973fc61ea1323dcaa811 | [] | no_license | Hugomguima/FEUP | 7e6e0faf5408d698a34c3b5aed977b20aa76c067 | f26887e2b8e92e41ae5050515cd0b3cdf94d6476 | refs/heads/master | 2023-06-09T05:21:38.897094 | 2021-06-29T17:00:01 | 2021-06-29T17:00:01 | 272,567,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 483 | h | class.h | #ifndef STUDENT_H
#define STUDENT_H
#include<string>
using namespace std;
class Student
{
public:
Student();
Student(const string &code, const string &name);
void setGrades(double shortExam, double project, double exam);
string GetCode() const;
string GetName() const;
int GetFinalGrade() const;
bool isApprove... |
bc026c5c1de56b0bea9043b0fc524ca2cde755c5 | f3793bdd88707f984568fbc64f82e18118703382 | /LiGridUI/main.cpp | 884a6d72fda3b44b27a61147f1178ec32ac263cf | [] | no_license | mastmees/ligrid | b82f3ab56eb8d24e1a8d34a46a02b39e1ce61e07 | e8d629c146e552189c1f1717716de1f24fa6323c | refs/heads/master | 2021-01-11T02:39:54.559302 | 2016-10-14T13:45:39 | 2016-10-14T13:45:39 | 70,913,649 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,862 | cpp | main.cpp | /*
Proof of concept UI for LiGrid
Copyright (c) 2009, Madis Kaal <mast@nomad.ee>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright noti... |
29f0eb99388a97b338bd3a7974ec54a6f1f8bf5f | 39ddf42492e5387a22a8f7516fd0a9ae8998957a | /Primeri/Iklk/Iklk/Main.cpp | ec2d740cb30b363d748cf2c271bd762f343454f2 | [] | no_license | nikolabojovic97/RacunarskaGrafika | 2784ab3425164546c1bae3fe33344c170f22a9a1 | 3c74bfd9c884670be9cf2ccb88aed59eff6cf377 | refs/heads/master | 2023-04-19T09:03:15.419147 | 2021-05-03T12:00:52 | 2021-05-03T12:00:52 | 239,176,267 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,640 | cpp | Main.cpp | #include "GL/freeglut.h"
#include "Vector4D.h"
#include "Matrix4x4.h"
#include <vector>
using namespace std;
#define PI 3.14159265359
#define MOVING_CONST 0.1;
#define ROTATION_CONST PI / 180.0
int WINDOW_HEIGHT = 800;
double ASP_RAT = 16.0 / 9.0;
int FPS = 60;
Vector4D cameraPosition(5.0, 5.0, 5.0, ... |
76a28a3a4bbbb985ca5db5a65a0de8b97ebd1c8c | 314609125e587610353ad0fe67f58bdf45b0c6e1 | /Game/Player/Enemy.cpp | 535860c785bebb15e8722c67e936e293f2052b94 | [] | no_license | Epidilius/ZeldaStyleAdventureGame | 1e1b71cf2914c1ca5ea1ff803bf10d172e74b562 | bd2bbc89f5acf07c8c89f6301aef326fdeead238 | refs/heads/master | 2021-01-10T17:15:54.039969 | 2015-09-27T22:31:38 | 2015-09-27T22:31:38 | 43,267,623 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,775 | cpp | Enemy.cpp | //
// Enemy.cpp
// GameDev2D
//
// Created by Bradley Flood on 2014-10-20.
// Copyright (c) 2014 Algonquin College. All rights reserved.
//
#include "Enemy.h"
#include "Hero.h"
#include "../World.h"
#include "../SubSection.h"
#include "../Tiles/Tile.h"
#include "../PathFinding/PathFinder.h"
#include "../Pickups/He... |
1c956b238e4da6475a9c3e8734d7f0bd78fa2919 | 8eee0535579b2e1c82285a6f4341a3e6de3cda65 | /LList.cpp | 7eb7c082ceedf8df5886411e58ae5274b1445deb | [] | no_license | violet009200/NewCollectionClass | 3ca2f35577dfe3979687993e2d45f13735109a67 | be1721c512a95b91fed7c1388d02066d6a7acfca | refs/heads/master | 2021-01-09T21:54:12.862001 | 2015-12-02T01:30:13 | 2015-12-02T01:30:13 | 46,678,511 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,382 | cpp | LList.cpp | #include "LList.h"
LList::LList(){
head = (node*)NULL;
}
LList::~LList(){
cout<<" ~LList()"<<endl;
this->deleteAll();
}
//member function
Collection* LList::add(int elem, int position){
cout<<" LList add() is called"<<endl;
node* newNode = new node();
newNode->value = elem;
size_++;
if(... |
8156975b8a06528e9af55e4530fed02b37794174 | 8adf44127fb9a58a548b8162490010ec6ceef2f0 | /Alpha/Source/Player.cpp | 0a515ce3391f6ba7da6780703c36c2f0498b7763 | [] | no_license | Chongjx/NYP-framework | 365839572742f09d02e3c8e09b599e31498e4d53 | df1b0379e41b6f93b3a2ed8c859c117408aeccaa | refs/heads/master | 2022-12-29T09:06:24.489678 | 2020-10-22T05:46:29 | 2020-10-22T05:46:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,709 | cpp | Player.cpp | #include "Player.h"
CPlayer* CPlayer::instance = 0;
CPlayer* CPlayer::GetInstance()
{
if (instance == 0)
instance = new CPlayer();
return instance;
}
CPlayer::CPlayer()
{
}
CPlayer::~CPlayer()
{
}
void CPlayer::Init(Vector3 currentPos, Vector3 currentDir, Mesh* playerMesh)
{
playerNode = new SceneNode();
G... |
ff84ea9d4522d9414ac347d56d6ec5a68021d0d7 | 7d80c642c8fbdafb8ed7ee3642167e1b0e98ef37 | /data/tplcache/0f498ca7fc1bc9fa662208dd84d374f7.inc | 473e94147f16ffae335ad95358cfcfc2a8c9d410 | [] | no_license | WishQAQ/templated-cms52 | ecd16eab26e6b7335a49ea82ae8278d17df381ce | 05f108d57a35719e5d4559a51c8e14bcb127fe48 | refs/heads/master | 2021-08-30T05:40:56.526949 | 2017-12-16T08:22:31 | 2017-12-16T08:22:31 | 114,445,365 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 968 | inc | 0f498ca7fc1bc9fa662208dd84d374f7.inc | {dede:pagestyle maxwidth='800' pagepicnum='12' ddmaxwidth='200' row='3' col='4' value='2'/}
{dede:img ddimg='/uploads/allimg/151004/1-1510041K224.jpg' text='' width='739' height='581'} /uploads/allimg/151004/1-1510041K224.jpg {/dede:img}
{dede:img ddimg='/uploads/allimg/151004/1-1510041K227.jpg' text='' width='738' hei... |
5066f6bbc8981417fbb42d3cc77dae688bab62b0 | 188fb8ded33ad7a2f52f69975006bb38917437ef | /Fluid/processor3/0.63/meshPhi | a3f105b53da6f1cc3a541c91c4243d4f4c1e7b74 | [] | no_license | abarcaortega/Tuto_2 | 34a4721f14725c20471ff2dc8d22b52638b8a2b3 | 4a84c22efbb9cd2eaeda92883343b6910e0941e2 | refs/heads/master | 2020-08-05T16:11:57.674940 | 2019-10-04T09:56:09 | 2019-10-04T09:56:09 | 212,573,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,290 | meshPhi | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
... | |
0615c412b4b762fdce46cda2486d113a67f6a67c | f35830a10b5e4fa5a4f1712d14cbba192dc878fc | /graphics/yafray/dragonfly/patch-src_yafraycore_buffer.h | 6a24d0046e11046a37e3a0b88978a21302081955 | [] | no_license | jrmarino/DPorts-Raven | 10177adf4c17efe028137fbcec1ccbf3b0bddf27 | 9126990d971ed3a60d54a9c6c3b1ea095d1df498 | refs/heads/master | 2021-08-05T23:07:39.995408 | 2017-04-09T23:31:58 | 2017-04-09T23:31:58 | 82,212,572 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 958 | h | patch-src_yafraycore_buffer.h | --- src/yafraycore/buffer.h.orig 2016-12-17 13:01:39.000000000 +0200
+++ src/yafraycore/buffer.h
@@ -28,6 +28,7 @@
#endif
#include <cstdio>
+#include <cstdlib>
#include <iostream>
#include "color.h"
@@ -43,7 +44,7 @@ class YAFRAYCORE_EXPORT gBuf_t
if (data==NULL)
{
std::cerr << "Error allocating me... |
3c6d131c565d5b9428fee53b81a4131d20651e2e | 9d1b0b62ebe69ab0c3e5ffee87657d1d94a14631 | /ToolKit/src/FileKit.cpp | b7f6bf50f15a154b83312a8c4d0531f97634017f | [] | no_license | Devin879176/ToolKit | 0cfc9308fa43b1235f25748971ec0372f06c5771 | ad99746daf1d0a01c2148f5b8aa0d5af7b9db0cd | refs/heads/master | 2022-11-28T01:16:03.046642 | 2020-08-04T08:59:31 | 2020-08-04T08:59:31 | 284,903,611 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,157 | cpp | FileKit.cpp | #include "FileKit.h"
int FileKit::getFiles(std::string path, std::vector<std::string>& files, int category)
{
//文件句柄
intptr_t hFile = 0;
//文件信息
struct _finddata_t fileinfo;
std::string p;
if (category == 0){
if ((hFile = _findfirst(p.assign(path).append("\\*").c_str(), &fileinfo)) != -1){
do {
//如果... |
99ee333cb97bd332941390c7734e37f2106f5c1a | 2c43732795f8008c970d0ba180dc28354103fd61 | /CppND_System_Monitor/src/process.cpp | 3417b9776ca1e423321fbf900e0fe74456038fec | [
"MIT"
] | permissive | Jabalov/CppND-Udacity | ce8f86074e5a0c8834b28ea08b53eaa5a7508533 | d46caca36d0cfd35469f4ed7bce2d67d04712f58 | refs/heads/master | 2022-12-05T21:57:05.894262 | 2020-08-25T13:40:09 | 2020-08-25T13:40:09 | 256,797,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,041 | cpp | process.cpp | #include "process.h"
#include <unistd.h>
#include <cctype>
#include <sstream>
#include <string>
#include <vector>
#include "linux_parser.h"
using std::stol;
using std::string;
using std::to_string;
using std::vector;
// Done: Return this process's ID
int Process::Pid() { return pid_; }
// Done:... |
96b01c38b7f71693f258369e3f2cb8560d23ec4b | 363ddb2dbe6313fcc302e68b3697cfdd7ee2237b | /include/h/toobgddata.h | fe77869c7ffc1c8e950ce2ce1a975a736f430dc3 | [] | no_license | alexocher/ukp | d8dd01e7b6eddb258543fff445f6360349f10979 | d7ab7a5087a7e20a6f358cbf79556359cbf8de03 | refs/heads/master | 2020-04-05T13:31:28.652232 | 2017-08-02T16:22:27 | 2017-08-02T16:22:27 | 83,279,153 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 686 | h | toobgddata.h | #ifndef TOOBGDDATA_H
#define TOOBGDDATA_H
#include <TAbstractAttachment>
#include <defUkpCommon>
class UKPCOMMONSHARED_EXPORT TOobgdData : public TAbstractAttachment
{
private:
public:
TOobgdData(TAttachmentType t, int id=0, int n=0, QString nm="", TAbstractObject *parent=NULL);
TOobgdData(const TOobgdData &... |
2955c6de3bc5fc578cf4c228723195c284743823 | c920079b644668fcea120937ec7bec392d2029bd | /B4---C++-Programming/cpp_nibbler/includes/PieceSnake.hh | 67df43d17a87d4b5712cbff96cfa7b1943533cfd | [] | no_license | Ankirama/Epitech | d23fc8912d19ef657b925496ce0ffcc58dc51d3b | 3690ab3ec0c8325edee1802b6b0ce6952e3ae182 | refs/heads/master | 2021-01-19T08:11:27.374033 | 2018-01-03T10:06:20 | 2018-01-03T10:06:20 | 105,794,978 | 0 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 669 | hh | PieceSnake.hh | //
// PieceSnake.h
// cpp_nibbler
//
// Created by Fabien Martinez on 24/03/15.
// Copyright (c) 2015 Fabien Martinez. All rights reserved.
//
#ifndef __cpp_nibbler__PieceSnake__
#define __cpp_nibbler__PieceSnake__
#include "IPiece.hh"
class PieceSnake : public IPiece {
public:
explicit PieceSnake(typePiece ty... |
47ac6f763ff4e7b362e510c2e9e18db3dc71c725 | d152d1ee842b30aec3aafee31bd77b3dda5f2a7e | /src/125.验证回文串.cpp | 989f27d574ee80a0babbb909c95d7697680059ab | [] | no_license | seymourtang/LeetCodeNotebook | 04f080672e75f1e7874f77fa3fb8d8edd43ad141 | 351b8172f6f8a43710e827f7c13f014001def2bb | refs/heads/master | 2020-05-25T14:30:04.220869 | 2019-05-22T15:19:55 | 2019-05-22T15:19:55 | 187,845,819 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,727 | cpp | 125.验证回文串.cpp | /*
* @lc app=leetcode.cn id=125 lang=cpp
*
* [125] 验证回文串
*
* https://leetcode-cn.com/problems/valid-palindrome/description/
*
* algorithms
* Easy (39.58%)
* Likes: 87
* Dislikes: 0
* Total Accepted: 36.3K
* Total Submissions: 91.5K
* Testcase Example: '"A man, a plan, a canal: Panama"'
*
* 给定一个字符串... |
e78d1a5cac50407cd1375a5aa4e0e0d7dee3627f | 30a7f84922ee4bccbc446d35184e749d78479b07 | /src/CWBEMObject.h | b7fc4b1ff2d700967d9621b633f35c8ddbbb3d38 | [] | no_license | JonAxtell/WMIApp-AsyncQuery | 03668ca41128cd993e5b183f2db4b8e9102cf89c | e654071bb0e7ab3da4fe05e460eb958e668750dd | refs/heads/master | 2020-04-28T06:08:26.967032 | 2019-11-22T09:32:52 | 2019-11-22T09:32:52 | 175,045,384 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,598 | h | CWBEMObject.h | #pragma once
#include "pch.h"
#include "CVariant.h"
#include "CWBEMProperty.h"
#define _WIN32_DCOM
#include <iostream>
using namespace std;
#include <comdef.h>
#include <Wbemidl.h>
#ifndef __MINGW_GCC_VERSION
#pragma comment(lib, "wbemuuid.lib")
#endif
#include <vector>
#include <memory>
//###########################... |
53a29e2fd404635effc048e44b27f4a56f6ff40e | ca11d8df0127efbaa6c3f92ed1138cf3a32b3f90 | /hard/154. Find Minimum in Rotated Sorted Array II.cpp | 1176de809f88b2ad8ddcaae40527bc2469338f28 | [] | no_license | KanaSukita/LeetCode | 79ecf465b9486fa0fa910e7748251de8734388b2 | 7ff9f58c2cd58dd750aecbd3778c706c71b5c57f | refs/heads/master | 2021-04-30T10:07:09.672956 | 2018-07-23T09:42:17 | 2018-07-23T09:42:17 | 119,618,148 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 976 | cpp | 154. Find Minimum in Rotated Sorted Array II.cpp | // Follow up for "Find Minimum in Rotated Sorted Array":
// What if duplicates are allowed?
//
// Would this affect the run-time complexity? How and why?
// Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.
//
// (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).
//
// Find ... |
1b15147b568308d3c8aacf4abe622f1f8f9b4b71 | 421e8f4ea8a66c2227f35c342495e8a78dc50ee8 | /Enemy.cpp | b48415c4f5595a6d329f655376303e329f4550e8 | [] | no_license | fukasawayuuta/DirectX_Project | 6b049aa4091ff7020a2c762cd54948275907c36e | e92819b90d3290cb08e1c0412d84d9a67d4e736b | refs/heads/master | 2021-01-23T07:37:53.126948 | 2017-01-31T11:16:43 | 2017-01-31T11:16:43 | 80,512,166 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 5,890 | cpp | Enemy.cpp | /******************************************************************************
タイトル名 : Enemyクラス
ファイル名 : Enemy.cpp
作成者 : AT-13C-284 36 深澤佑太
作成日 : 2016/12/17
更新日 :
******************************************************************************/
/***********************************************************... |
ebc4060ed1b8e14598a64d5885a3ca76a3a4b2bd | c0f8e5155a1498fbb8cbbe7d5ac45c71b939a63c | /Signature/TestSignature/TestMain.cpp | 09c227d972b766f99bdb7dca37fe8ab75df584ab | [] | no_license | ProjetGroupeE/PPC | 7fcda003155cd992a619da08d5f666a7f2d384a2 | 9a0c338b5a0a8ab95eea27b1d80b29b1d64a8fcd | refs/heads/master | 2021-01-23T22:24:16.496156 | 2017-05-15T22:31:58 | 2017-05-15T22:31:58 | 83,128,055 | 0 | 0 | null | null | null | null | ISO-8859-2 | C++ | false | false | 593 | cpp | TestMain.cpp | #include <iostream>
#include "../Signature/Signature.h"
using namespace std;
int main(void) {
Signature ace;
string data = "je suis gallou et je vais dévenir ' % # @ */-51 madame "
"sapo equilibre avec un equilibriste de renomer haha ";;
string privkey1;
string pubkey1;
string privkey2;
string pubkey2;
... |
20374eb52f11e1d2ba1bc7204ab8b35a9c7f85ba | fdac512289536816ddb123519566d8210967a95b | /PPR/przydatne.cpp | e1200a25e340932bb7ddc51ce599f4ca5095aeae | [] | no_license | Goggiafk/AMU | 1424fbae9926a589c84ba90ed6f02784c10ffd23 | 6df3317979fe39ccd347282aebfc02ce2425048d | refs/heads/master | 2021-05-28T12:51:00.201991 | 2015-02-28T23:50:32 | 2015-02-28T23:50:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,490 | cpp | przydatne.cpp | /*
Funkcja isSubst zwraca true jezeli string child zawiera sie w stringu parent.
W przeciwnym wypadku zwraca false.
*/
bool isSubstr(std::string child, std::string parent) {
return parent.find(child) != std::string::npos;
}
/*
Funkcja isPalindrome zwraca true jezeli string s jest palindromem.
*/
bool isPalindrome(... |
9c726b5ce1b0cf96b6e70ee0d583abac7c448c8d | ff9854ccafd47c9a33db587903493faea6ae3263 | /Kakao/캐시.cpp | 7f7838829e02e677337f582784d9eb7a000c436f | [] | no_license | peter4549/problems | 779cffe0bac283bef0e8a2fd62f715effb251dce | 788fc8831f17f931b644ed9fc381c225d018469a | refs/heads/master | 2023-03-22T19:22:25.416031 | 2021-03-06T15:47:31 | 2021-03-06T15:47:31 | 299,646,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 692 | cpp | 캐시.cpp | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int cache[31];
int main() {
int cacheSize, runTime(0);
vector<string> lru;
scanf("%d", &cacheSize);
cin.ignore(256, '\n');
while (true) {
string city;
getline(cin, city);
if (city == "\0")
break;
tra... |
a251ea5a71ce2d7ccbc1d66e617b93a1febdc33a | 926b9211a8e4c7928956d8b5f73bde737bf9c7d3 | /Src/Manipulator/TouchballManipulator.h | 3af2898bebdacd458ea36a4454f9dfea8366ab8e | [
"MIT"
] | permissive | blackball/Vis2 | d7a1eaf9be912c4c3dbf2f445a40ca5daa42a5bd | 3febe53bd37091722f88d5bc7c129f209326d768 | refs/heads/master | 2023-07-20T16:12:56.423270 | 2021-09-01T13:56:49 | 2021-09-01T13:56:49 | 402,078,299 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,050 | h | TouchballManipulator.h | #include <osgGA/MultiTouchTrackballManipulator>
class TouchballManipulator : public osgGA::MultiTouchTrackballManipulator {
public:
TouchballManipulator(int* gizmod = nullptr, bool* view_manipulation = nullptr)
: m_gizmod(gizmod), m_view_manipulation(view_manipulation) {
setMinimumDistance(-0.5f, t... |
bb6fd2776ed267c87e712d92d32b972bc17d08dc | 2728b551ea11cf5de3e793099e02d43d76e72e7b | /ackCore/include/EventReseau.h | 21b471cc8b989d741f3f11d4dd350a55c2dc3e9d | [] | no_license | Robien/acharn | 0d38317bd1eb40b61f18089288ad6a029105732d | e4b9c657a52edbd08962fe0df890c98c27d8b383 | refs/heads/master | 2021-01-10T18:42:38.169223 | 2020-04-08T05:48:19 | 2020-04-08T05:48:19 | 39,433,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,260 | h | EventReseau.h | /*
* EventReseau.h
*
* Created on: 31 juil. 2010
* Author: romain
*/
#ifndef EVENTRESEAU_H_
#define EVENTRESEAU_H_
#include "Callback.h"
#include "../include/MainPerso.h"
#include "Appli.h"
#include "../include/Referenced.h"
#include <asio.hpp>
class EventReseau: public Callback, public Referenced
{
publ... |
a1c0761728880c1e0341fb61932ec247e5f79916 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc044/A/4417655.cpp | c1ac2f0ebf6424ed81cdfa0d2e1776b9234847db | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 253 | cpp | 4417655.cpp | #include <iostream>
int main(){
int n, k, x, y;
std::cin >> n >> k >> x >> y;
int fee = 0;
if(n > k){
fee += k*x;
fee += (n - k)*y;
}else{
fee += n*x;
}
std::cout << fee << std::endl;
} |
b8fc26d809b8578c0abb2671bf1f35de8d9a41da | 99d8eca9eae667f3929c3a207b49bcc21225b737 | /parser/rba_parser.h | a0dc62c3ec4bc775b544ee78b80da094c7886f90 | [] | no_license | martin34/expense-tracker | b4fdcc84849a2204e68fb08e2b6730b9ec943359 | cf9e63f9d9d620322e231860ec1626e8865fff24 | refs/heads/master | 2022-04-20T06:13:00.342818 | 2020-04-19T15:27:09 | 2020-04-19T15:41:30 | 257,034,771 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 551 | h | rba_parser.h | #pragma once
#include "core/transaction.h"
#include <string>
#include <vector>
namespace finance {
Transaction ParseFromTransactionString(const std::string &txt_transaction,
const std::int32_t year);
std::vector<Transaction>
ParseTransactionsFromFile(const std::string &file_pa... |
124713131ec12141c9bd74464b0e0c2aee5a3b0a | 8757a559b4ffe66c179688b4b063ab1b72ddda37 | /Libs/ExtendLibs/ImGui/ImApp.cpp | 792d62605e4f0b5700335940a10ffa62b588b814 | [] | no_license | AT410/WizBCLateProject | 01614d1b5523ca4861f79ce9ca493808f8b38236 | 5f273910a323ddab6d6b200d075e8e8656682221 | refs/heads/master | 2023-06-24T09:38:59.908795 | 2020-09-03T07:15:02 | 2020-09-03T07:15:02 | 279,212,628 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,325 | cpp | ImApp.cpp | #include "stdafx.h"
#ifdef _BSImGui
namespace basecross
{
unique_ptr<ImApp,ImApp::ImAppDeleter> ImApp::m_Instance;
ImApp::ImApp(HWND hWnd,int MaxImCount)
{
// Setup Dear ImGui context
IMGUI_CHECKVERSION();
ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO(); (void)io;
//io.ConfigFlags |= ImGuiConfigFlag... |
5791dcc69f4320a37e53a6b2948ced6d25b81ebd | c2484df95f009d516bf042dca93857b43a292333 | /google/2016/qualification_round/a/main.cpp | 3a4141e0694a9b181ebc624321512af9282e406e | [
"Apache-2.0"
] | permissive | seirion/code | 545a78c1167ca92776070d61cd86c1c536cd109a | a59df98712c7eeceabc98f6535f7814d3a1c2c9f | refs/heads/master | 2022-12-09T19:48:50.444088 | 2022-12-06T05:25:38 | 2022-12-06T05:25:38 | 17,619,607 | 14 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 720 | cpp | main.cpp | // https://code.google.com/codejam/contest/6254486/dashboard#s=p0
// A. Counting Sheep
#include <cstdio>
#include <iostream>
#include <string>
#include <set>
#include <algorithm>
using namespace std;
bool put(set<char> &s, int num) {
while (num) {
s.insert(num % 10);
num /= 10;
}
return s... |
70cde72fde1e590911bd46006982728d72a70c16 | a402e9d62844845d993b2ed243f77efa2842188c | /Ink.h | 81bf42649c919427c405873b18d7204a8900b978 | [] | no_license | matthargett/BlotChooser | d20ef2cc87aeb1f05ae917fa047ca676e66ed942 | eaf4400065f06898b3db706b8738b2b0c519d8b2 | refs/heads/master | 2021-01-10T07:19:52.386406 | 2015-10-20T19:01:36 | 2015-10-20T19:01:36 | 44,446,739 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 419 | h | Ink.h | //
// Created by Matt Hargett on 10/11/15.
//
#ifndef WHICH_INKS_INK_H
#define WHICH_INKS_INK_H
#include <string>
#include <cstdlib>
#include "Color.h"
class Ink {
public:
Ink(const std::string& color_, double cost_): color(color_), cost(cost_) {}
Ink(const Ink& other) : color(other.color), cost(other.cost)... |
83ba6db6fed0deaf8c5cce649f33741eb10f2f5f | 63318ff878c3eb0d939548a47a9b47aea7931ce2 | /record.h | 06cd97194399d24adf61432d54e8a8439fbcd5b4 | [] | no_license | JiaAnTW/NCKU_1stGrade_3_CSProgramDesign2_Project3 | 1ea1d48d098801d34d8b55917773d59a45e9eb4c | cee91cc49e1c419ec7fc5fe868d40eb399611472 | refs/heads/master | 2020-03-21T08:52:38.081372 | 2019-03-09T07:27:26 | 2019-03-09T07:27:26 | 138,370,768 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 351 | h | record.h | #ifndef RECORD_H
#define RECORD_H
#include <QTextStream>
#include <QFile>
#include <QString>
#include <QDebug>
#include <QVector>
class record
{
public:
record();
void recieveData(int level,int HP,int ult,int score);
void saveData();
QVector<int> sendData();
private:
QString data;
QVector<int... |
3c5232a1319750bef64795deb8a0e62c8fb33792 | a078104804ae056eeb88e5833b2ca67493fe82dc | /robot/main/slave_emil.cc | 03e970a16bf884592c4c67b152a3f4a74dda58db | [] | no_license | lintangsutawika/trui-bot-prj | 6994e786dba0904aadd72ce94a23c7e04accdb09 | 1fa5aaa63ef7f10c886111e1cbd919cdd05fa8dd | refs/heads/master | 2021-01-20T15:59:35.626717 | 2015-05-07T18:52:41 | 2015-05-07T18:52:41 | 24,822,299 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,044 | cc | slave_emil.cc | #include <arduino/Arduino.h>
#include <comm/arduino_mavlink_packet_handler.hpp>
#include <comm/custom.h>
#include <actuator/motor.h>
int timer1_counter;
const size_t pwm_pin = 11;
const size_t dir_pin = 12;
const float outmax = 100.0;
const float outmin = -100.0;
const int encoder_out_a_pin = 2;
const int encoder_... |
5c2f35597cf18ccf7c7d2ed14e7bc824d2065d65 | 7b5469a9828a8caa764d138ad7e224001330a821 | /Source/OhMummyMobile/Parts/Sarcophagus.h | 8483545b5c3056053c730f08fec05c71defe1a3e | [] | no_license | pjsillescas/ahmummymobile | f11225aaab1a615f86cabb6e606bf9229e9359d5 | da334bb7c6e6314c48e34b725a65488dec50857e | refs/heads/master | 2022-07-07T15:44:09.219624 | 2022-06-27T21:19:59 | 2022-06-27T21:19:59 | 183,679,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,110 | h | Sarcophagus.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Sarcophagus.generated.h"
UENUM(BlueprintType)
enum class EVertices : uint8
{
EV_None UMETA(DisplayName = "None"),
EV_Northwest UMETA(DisplayName = "NorthWe... |
f3e700a6cb8ff13a4bf6e447ee7310903d198745 | 202b96b76fc7e3270b7a4eec77d6e1fd7d080b12 | /modules/spellchecker/src/dictionarymanagement.cpp | dc4683ae068cea9bbb27171d722d2ec2ad5fc66a | [] | no_license | prestocore/browser | 4a28dc7521137475a1be72a6fbb19bbe15ca9763 | 8c5977d18f4ed8aea10547829127d52bc612a725 | refs/heads/master | 2016-08-09T12:55:21.058966 | 1995-06-22T00:00:00 | 1995-06-22T00:00:00 | 51,481,663 | 98 | 66 | null | null | null | null | UTF-8 | C++ | false | false | 8,894 | cpp | dictionarymanagement.cpp | /* -*- Mode: c++; tab-width: 4; c-basic-offset: 4 -*-
*
* Copyright (C) 1995-2008 Opera Software AS. All rights reserved.
*
* This file is part of the Opera web browser.
* It may not be distributed under any circumstances.
*/
#include "core/pch.h"
#ifdef INTERNAL_SPELLCHECK_SUPPORT
#include "modules/spellcheck... |
f29565293acf518a19cca2873b9b92a3eef4a105 | 999bbd6b2ffdbd511924f18b9f1aae234ce226f6 | /include/btwxt/regular-grid-interpolator.h | 2c2dca626d7b3ab871c51be9b4b871df7efd72ca | [
"BSD-2-Clause"
] | permissive | bigladder/btwxt | c89930861dfe5cadeb56dcdb733931b972f5ea29 | 2a5926e96b594bafbcaa7640a9cabd40b5ae043d | refs/heads/main | 2023-09-06T02:23:54.925497 | 2023-08-28T17:11:31 | 2023-08-28T17:11:31 | 133,846,917 | 11 | 9 | BSD-3-Clause | 2023-08-28T17:11:33 | 2018-05-17T17:27:26 | C++ | UTF-8 | C++ | false | false | 4,987 | h | regular-grid-interpolator.h | /* Copyright (c) 2018 Big Ladder Software LLC. All rights reserved.
* See the LICENSE file for additional terms and conditions. */
#pragma once
// Standard
#include <functional>
#include <memory>
#include <vector>
#include <courierr/courierr.h>
// btwxt
#include "grid-axis.h"
#include "grid-point-data.h"
#include ... |
65f297f8af35a214e06416a4c952840fcbb8e1f4 | d9c9095e837a6f22377a89bd8b88e1ba8ac79ca6 | /luogu/P1328 生活大爆炸版石头剪刀布.cpp | 224289e968005d83d3b1fa148a0a4123d36052f1 | [] | 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 | 638 | cpp | P1328 生活大爆炸版石头剪刀布.cpp | #include <iostream>
using namespace std;
constexpr bool result[5][5] = {
{ 0, 0, 1, 1, 0 },
{ 1, 0, 0, 1, 0 },
{ 0, 1, 0, 0, 1 },
{ 0, 0, 1, 0, 1 },
{ 1, 1, 0, 0, 0 }
};
int main() {
short n, na, nb;
cin >> n >> na >> nb;
short *ra = new short[na], *rb = new short[nb];
... |
5ed12005318f10a8b2da6da6e41b2eda11b0b9ef | c16b72f3553c67429357df3ee8d22a35245a6b48 | /Tree.h | 9b69836a198d264699f0624ee43b130e39fc4485 | [] | no_license | Butanosuke/Kikori | 848b3669ddc7e277123079fbb98d43377d67dfe9 | 091f2d88521856bedd8a74d77496fcdf205af7d0 | refs/heads/master | 2021-01-23T11:50:22.617548 | 2015-07-23T10:48:35 | 2015-07-23T10:48:35 | 38,837,887 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 90 | h | Tree.h | #pragma once
class Tree
{
public:
Tree(void);
~Tree(void);
void Draw();
};
|
25c281fb91960e03fe04a53b0afe2265befab38e | be76d466ea7fe3692eab3af51e0b7afb9a96e23e | /OnlineReversi/OnlineReversi/Reversi.cpp | 155b8d999c2baa0b8deebb48422a9463f6a11883 | [] | no_license | yuki-takamura/OnlineReversi | 3ac7f33dd068ac022bba414f25227f90dfcf67da | 59dde9301962edf662539eea41ad4f279b0768c9 | refs/heads/master | 2021-01-02T15:35:11.459305 | 2017-08-06T19:44:55 | 2017-08-06T19:44:55 | 99,303,733 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 5,981 | cpp | Reversi.cpp | #include "NetworkManager.h"
#include <iostream>
#include <time.h>
#include <random>
#include "DrawObject.h"
#include "Reversi.h"
using namespace std;
Reversi::Reversi(bool isVersion7)
{
this->isVersion7 = isVersion7;
srand((unsigned)time(NULL));
player[0].myColor = Color::WHITE;
player[1].myColor = Color::BLACK;... |
28eebb2ebd74c41c801538262fcba5c3cc6208f1 | 8d4a8691a1a095b0b271b27fde97d886c4a24c8f | /mapCell.cpp | 6ac819675f498f63a8ecaf14ac473a693b386c61 | [] | no_license | felixwangchao/Tankwar | 4887e303bd40407de234323157c0e900171f0b57 | ba3c3820fb8f654a3965a1364246bcd678fb1830 | refs/heads/master | 2021-04-19T00:58:08.791073 | 2017-06-17T01:53:50 | 2017-06-17T01:53:50 | 94,594,038 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,905 | cpp | mapCell.cpp | #include "mapCell.h"
#include "Data.h"
#include "Draw.h"
// 无参构造函数
mapCell::mapCell(){
this->mapCellType = 0;
this->color = 0;
this->showLevel = 0;
this->mis_pass = 0;
this->mis_destory = 0;
this->tank_pass = 0;
}
//有参构造函数
mapCell::mapCell(int mapCellType){
switch (mapCellType){ /* 类型 颜色 显示级别 ... |
2e9462e096122f843e8b3f1e7931af6c3fbd5e79 | 48520d818ecbaaeca8772c8fd29b613b594811df | /Prototype/src/Vaango_UILayout.h | f948fff16c0b086ad0e4f188fbbd5b9c14c3a45a | [] | no_license | bbanerjee/VaangoUI | f902cd5182aa8c46bc72f10ae732a948d6f50ef7 | 677c976b01ee4e43c4502076a8d36a631a0690ed | refs/heads/master | 2022-12-22T09:56:12.832778 | 2022-12-15T05:56:05 | 2022-12-15T05:56:05 | 95,497,463 | 0 | 2 | null | 2017-07-10T22:55:52 | 2017-06-26T23:17:25 | JavaScript | UTF-8 | C++ | false | false | 1,396 | h | Vaango_UILayout.h | #ifndef __Vaango_UI_DRAW_H__
#define __Vaango_UI_DRAW_H__
#include <Vaango_UIBase.h>
#include <imgui.h>
#include <memory>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
namespace VaangoUI {
class Vaango_UIPanelBase;
class Vaango_UILayout : public Vaango_UIBase
{
public:
Vaango_UILayout(GLFWwindow* mainWindow,
... |
031695ff2c77eddc95ce7146b1fc1891e16b86d5 | cb4e16f41bfedb9a96f21f6394d3efe9ac3557d5 | /Sorting/sorting1.cpp | 187de98d0913d085b69166cc74ea25acbfcce2e1 | [] | no_license | Trung1234/AlgorithmExcercise | 958fc6618b14e0e03365499b2252c32d18405a08 | 57d6245811d470ce5ee9443f4335f6b63aa43d78 | refs/heads/master | 2022-04-24T23:11:00.201827 | 2020-04-15T03:39:41 | 2020-04-15T03:39:41 | 111,266,001 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 979 | cpp | sorting1.cpp | #include <iostream>
#include <fstream>
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <algorithm>
using namespace std;
int n;
int a[1111];
void input(){
scanf("%d",&n);
for (int i=0;i<n;i++)
scanf("%d",&a[i]);
}
// ham so sanh giua 2 phan tu
// s1 dung truoc , s2 dung sau
// ... |
587dfcabdaf25d1273a9d600e7606236b51cc299 | ce6ade9b0e03d69118f538392be2573792297ecf | /lidardata_pub/Ls01aDriver.h | 4888e3c21867708d0a7a47f7099617181675bde4 | [] | no_license | zdevt/cls | f1042c20e707c62bce08bd7d527e4090bed28a53 | 7518fdb60192817e7aac30a3462b2fb184964a4f | refs/heads/master | 2020-03-19T02:43:24.557383 | 2018-06-01T01:55:36 | 2018-06-01T01:55:36 | 135,654,669 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,545 | h | Ls01aDriver.h |
/*
* =========================================================================
*
* FileName: Ls01aDriver.h
*
* Description:
*
* Version: 1.0
* Created: 2018-03-06 15:57:54
* Last Modified: 2018-04-20 14:00:31
* Revision: none
* Compiler: gcc
*
* Author: z... |
e7deded9ab66cff7f2b0489bcbd928e63867afc7 | de7ee4345f6706673e4b4ece6aa3dd66fa24561f | /header/Connector.hpp | 89af705ee09cb1cb533cbad81ee8eaa74e2c01a7 | [
"MIT"
] | permissive | mohamedrayyan/Rshell | e011db5eb93186bac4941428832f0f1b9d83cbf7 | 37c0dd264799d199e6c0dc1f13ae1e25f9368620 | refs/heads/master | 2022-03-22T16:54:27.020109 | 2019-12-19T19:33:29 | 2019-12-19T19:33:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 413 | hpp | Connector.hpp | #ifndef CONNECTOR
#define CONNECTOR
#include "Executable.hpp"
#include "Cmnd.hpp"
class Connector : public Executable {
protected:
Executable* left;
Executable* right;
public:
virtual bool run_command() =0;
virtual char** get_command() {}
virtual void set_left(Executable*) =0;
virtual void set_right(Executabl... |
ba9e36cc7b28808506477cb4271a849eb86272e6 | c45ed46065d8b78dac0dd7df1c95b944f34d1033 | /TC-SRM-564-div1-250/ywq.cpp | 551d83e5b04f9fd84a1dd950e2464374d9134eaa | [] | no_license | yzq986/cntt2016-hw1 | ed65a6b7ad3dfe86a4ff01df05b8fc4b7329685e | 12e799467888a0b3c99ae117cce84e8842d92337 | refs/heads/master | 2021-01-17T11:27:32.270012 | 2017-01-26T03:23:22 | 2017-01-26T03:23:22 | 84,036,200 | 0 | 0 | null | 2017-03-06T06:04:12 | 2017-03-06T06:04:12 | null | UTF-8 | C++ | false | false | 518 | cpp | ywq.cpp | #include <map>
#include <cmath>
#include <cstdio>
#include <string>
#include <vector>
#include <cstring>
#include <algorithm>
using namespace std;
#define pb push_back
#define mp make_pair
#define x first
#define y second
typedef long long ll;
typedef pair<int,int> pii;
typedef vector<int> vi;
typedef vector<pii> vp... |
50de6e94909271277405362ad65706d5120e8c07 | 76aae6cab924b1d9ddd66cb2862db6ba2c65960a | /Rin_and_unknow_flower.cpp | a89feb9a2f5e18deedccf670fcb046e8174bf729 | [] | no_license | eng-arvind/Codeforces_problem | 3308edc588754947796a4c244bf893b027ca4414 | 4717f374e2fda556bd2fb80b1424ca7743f8654f | refs/heads/master | 2020-11-27T02:30:24.188027 | 2020-08-25T16:03:59 | 2020-08-25T16:03:59 | 229,273,210 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,909 | cpp | Rin_and_unknow_flower.cpp | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
int tt;
cin >> tt;
while (tt--) {
int n;
cin >> n;
string s(n, '?');
auto Ask = [&](string t) {
cout << "? " << t << endl;
int foo;
cin >> foo;
for (int i = 0; i < foo; i++) {
int bar;
cin >... |
96dba3ba75a85fec185a0bebd063e03f23ee3321 | f81dd7de276236638e073c0ff00ac18cb2eb64b2 | /task3.cpp | 9f2a648becd4ecf7a161720e149bb8a74d29ae3c | [] | no_license | sef-computin/engineerium | 56adc5344fb5eb7e31a2a96e95bf2f5afec7160c | 5aa8f3fa374c0799114f4f18a0db63474a69031a | refs/heads/main | 2023-05-15T10:00:17.300004 | 2021-06-13T12:53:09 | 2021-06-13T12:53:09 | 376,388,520 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,210 | cpp | task3.cpp | #include <iostream>
static int results = 0;
static int Field[11][11];
static int M,N,P;
struct Cell{
public:
int x;
int y;
Cell(int i, int j){
x = i; y = j;
}
};
struct Figure{
public:
int width;
int height;
int placeholder[3][3];
};
Figure COLLECTION[6]={
// ##
// #
{2, 2, {{1,1,0},{1,0,0},{0,0,... |
2e5150339fae1029176cd08abf08e3cda1825a03 | 0c51500f87101f13c471f0c310e9451a87adc714 | /irs/src/CRescType.cpp | 3549b6d8e3fecb3ab0c6ed9281d9bd550319c116 | [
"LicenseRef-scancode-public-domain",
"Unlicense"
] | permissive | firelab/wfips | a5e589fde41579e87008a7900a87692ec985e529 | 6b3bd4934d281ebb31164bd242a57079a82053b0 | refs/heads/master | 2020-05-01T06:03:41.792664 | 2017-01-27T19:31:55 | 2017-01-27T19:31:55 | 14,540,320 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,940 | cpp | CRescType.cpp | // CRescType.cpp
// Member functions for class CRescType holding resource type information
// created 10/11 for IRS
#include <iostream> //contains input and output functions
using namespace std;
#include <string> //contains functions for operations with strings
using std::string;
// Inc... |
400b1404b3dfe234ff6ae1670a53f7dbee6ccf13 | f8fda1f917fde99a8c1ebcb88765cc3136df5c0e | /StrangeAttractor/src/StrangeAttractorApp.cpp | 051c78bc568ba6241309f4e9cc6d8023bafa9358 | [] | no_license | smandyam/avseoul.github.io | 41ffa67993c43310dec33aba6226cbf274c81d93 | 08846d35b4abe87a58c4340e0b1157ee69eb26de | refs/heads/master | 2020-03-12T01:57:16.927387 | 2018-04-12T07:04:23 | 2018-04-12T07:04:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,972 | cpp | StrangeAttractorApp.cpp | #include "cinder/app/AppNative.h"
#include "cinder/gl/gl.h"
#include "cinder/BSpline.h"
#include "cinder/Path2d.h"
#include "cinder/MayaCamUI.h"
#include "cinder/Rand.h"
#include "Mover.h"
#include "SubMover_01.h"
#include "SubMover_02.h"
#include <math.h>
#include <vector>
#include "cinder/gl/TileRender.h"
#include "c... |
915bde29c757fc5fc64fdb23b210d2f3bc77e7a9 | 9e3a2a980c4c0f50dab735a2f17488b9e3e5d245 | /MSCL/source/mscl/MicroStrain/Wireless/WirelessParser.cpp | 47354a54948cb1cd97ff350850257ccb6227e90c | [
"OpenSSL",
"MIT",
"BSL-1.0"
] | permissive | LORD-MicroStrain/MSCL | 6c11a0c50889fae852bf04cdce9b4fe7230cecf1 | aef74d5a85c2573cee224f53dad1e22c32d4a128 | refs/heads/master | 2023-08-31T06:51:24.246179 | 2023-08-23T00:03:50 | 2023-08-23T00:03:50 | 41,445,502 | 73 | 61 | MIT | 2023-07-04T00:07:55 | 2015-08-26T19:27:43 | C++ | UTF-8 | C++ | false | false | 36,744 | cpp | WirelessParser.cpp | /*****************************************************************************************
** Copyright(c) 2015-2022 Parker Hannifin Corp. All rights reserved. **
** **
** MIT Licensed. See the included LICENSE.tx... |
8f64ca8a600c3d3db64286cdd48de6aabe6b9610 | feccd0f7d92cece361cc2342132d93f240520cc0 | /cpp/5.lab_5/Q5.cpp | 54001dda10126f82ea8acd8a81195a552af5156e | [] | no_license | REGATTE/SEM_6 | e4756dcecd1f8c8d53b0f48588e03381728b464c | 2a678eb6b6048de2789b19c70b06658097cf159b | refs/heads/master | 2023-03-31T23:43:59.675405 | 2021-04-08T19:22:30 | 2021-04-08T19:22:30 | 329,066,941 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 995 | cpp | Q5.cpp | /*
J ashok kumar
E18CSE029
EB03
*/
#include<iostream>
#include<string>
using namespace std;
void print1DArray(int *, int);
int *sortArr(int *, int);
int main()
{
int n;
cout<<"Enter the number of elements: ";
cin>>n;
int arr[n];
for(int i=0; i<n; i++)
{
cin>>arr... |
edff0c5696b53835016f1e2c9721ae1b98dba9a4 | 96c763148f58d3810689f673e5a7e3241e2089fb | /STL container graph(хуевая не работающая версия)/main.cpp | 9f4a4a0a96833a63c539b4690bdab1595c083a32 | [] | no_license | IvanYakimtsov/Sem2 | 500c3c3bf5287ab8ba5a7b469416314e87e8a0f8 | ad421de52a2274921915afd848db92dce4eff7a3 | refs/heads/master | 2020-12-31T06:09:09.061900 | 2017-02-25T17:02:24 | 2017-02-25T17:02:24 | 59,771,554 | 0 | 3 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 9,714 | cpp | main.cpp | #include <iostream>
#include <map>
#include<vector>
using namespace std;
template <typename T>
class Graph
{
private:
struct Vertex
{
T value;
vector <T> vert_list;
};
vector <Vertex> graph;
Vertex return_vertex(int i)
{
return graph[i];
}
int get_numbe... |
cbcd50baa906e4b5ae5a674a8fd345179af31d10 | d9e96244515264268d6078650fa707f34d94ee7a | /Utility/ArithmeticUtils.h | 5160744c794b0af50fe4cece5b11618daec2fb5b | [
"MIT"
] | permissive | xlgames-inc/XLE | 45c89537c10561e216367a2e3bcd7d1c92b1b039 | 69cc4f2aa4faf12ed15bb4291c6992c83597899c | refs/heads/master | 2022-06-29T17:16:11.491925 | 2022-05-04T00:29:28 | 2022-05-04T00:29:28 | 29,281,799 | 396 | 102 | null | 2016-01-04T13:35:59 | 2015-01-15T05:07:55 | C++ | UTF-8 | C++ | false | false | 16,531 | h | ArithmeticUtils.h | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#pragma once
#include "../Core/Prefix.h"
#include "../Core/Types.h"
#include "Detail/API.h"
#include <vector>
#include <assert.h>
namespace ... |
d23598e98fa2c7fc312a065790f53787a505c1b6 | 601ed8fbe671633b3413ed9107021a2f6e5a1bf7 | /src/Driver.hpp | 450f9298d633a4bf6593dc365845ac6523a44b89 | [] | no_license | OpenLEAD/drivers-ptu_kongsberg_oe10 | c73b02b5617dde7aeed3cbeb0a5a76c057ce39a6 | ddc76d0f8856420b62527ccf7dcdcd3b856ac719 | refs/heads/master | 2021-01-19T18:56:31.194602 | 2015-01-22T14:09:57 | 2015-01-22T14:09:57 | 23,894,003 | 1 | 1 | null | 2016-02-24T12:52:27 | 2014-09-10T21:59:59 | C++ | UTF-8 | C++ | false | false | 2,075 | hpp | Driver.hpp | #ifndef PTU_KONGSBERG_OE10_DRIVER_HPP
#define PTU_KONGSBERG_OE10_DRIVER_HPP
#include <ptu_kongsberg_oe10/Packet.hpp>
#include <iodrivers_base/Driver.hpp>
#include <ptu_kongsberg_oe10/Status.hpp>
#include <ptu_kongsberg_oe10/PanTiltStatus.hpp>
namespace ptu_kongsberg_oe10
{
class Driver
: public iodrivers_... |
6d2a4a4ec8add419fe15e0b9d8bb812f5d3d008c | e984aa610affc6e333ca021325088c79f126bcac | /list.cpp | 7dd4c0edb98e159be6868bfe6744a3cdf657366d | [] | no_license | gahyeonkim45/goldrone_qt | 334346ccb735ecca18f8820aabad6432f40a5c1d | c7fd695fc910e586da703ae8cff4283c9a290452 | refs/heads/master | 2021-01-21T17:13:34.929511 | 2017-05-21T07:57:53 | 2017-05-21T07:57:53 | 91,941,462 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,028 | cpp | list.cpp | #include "list.h"
#include "managewindow.h"
#include <QJsonArray>
#include <QJsonObject>
#include <QJsonValue>
#include <QVariantMap>
#include <QString>
#include <QJsonDocument>
#include <qDebug>
#include <QVariantList>
#include <QMap>
List::List(QObject *parent) : QObject(parent)
{
m_win = (ManageWindow *)parent... |
8d0eef50774d38ed651b1e06ea7cdb42bdb6df55 | 40525c30da6c26a1cbbc46c7cd64977bb1e25233 | /desktop/src/gui/inspectors/channel/exportPage/pageExportChannel.cpp | 3c505e7108024a2ae5f852e576e67e7d9c66edb7 | [] | no_license | seung-lab/omni.play | e17f5c977c9458a71062c1383d63baedf8ef6458 | a4f1220e9df499f05457aaaee5bc68c2b66d4d54 | refs/heads/master | 2021-03-24T12:36:23.997379 | 2016-08-11T15:09:01 | 2016-08-11T15:09:01 | 3,678,095 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 845 | cpp | pageExportChannel.cpp | #include "gui/inspectors/channel/exportPage/buttons/exportButtonChannel.hpp"
#include "gui/inspectors/channel/exportPage/buttons/channelInspectorButtons.hpp"
#include "gui/inspectors/channel/exportPage/pageExportChannel.h"
#include "utility/omStringHelpers.h"
om::channelInspector::PageExport::PageExport(QWidget* paren... |
61693ad31d6cf7f034443b116ea796526763e95a | 0d2d3bad66b920d0fd35f9a4aa44d5bc119eaf59 | /count/count.cpp | b98110f9217b2360673590874d040aac5885869d | [
"MIT"
] | permissive | DINoMe-Project/cryptominisat | 3f58806e1729b854004c49542ce810b16d65e4c8 | ad7a4ab7ffdffa1d24041da288486d02cec1e212 | refs/heads/master | 2023-07-02T04:28:05.212402 | 2021-08-13T01:55:44 | 2021-08-13T01:55:44 | 286,884,637 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 61,879 | cpp | count.cpp | #include "count.h"
#include "src/dimacsparser.h"
#include <boost/lexical_cast.hpp>
#include <ctime>
#include <iostream>
#include <sys/types.h>
#include <unistd.h>
#include <unordered_map>
using boost::lexical_cast;
using std::cout;
using std::exit;
using std::map;
using std::ofstream;
using std::unordered_map;
using st... |
3029aa66aa03b0b5d58ff2298a73cd8b5964f695 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /Implementation/1931.cpp | 90517968f6603195643a1389b358087cf7dcc8e8 | [] | 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 | 402 | cpp | 1931.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
long long n,x,y,z,sx,sy,sz;
cin>>n;
sx = 0;
sy = 0;
sz = 0;
for(int i = 0;i< n;i++){
cin>>x>>y>>z;
sx+=x;
sy+=y;
sz+=z;
}
if(sx==0 && sy == 0 && sz == 0){
cout<<... |
b03cb1c4f0f98ba2dde961030ccf9cba86091687 | 90e2027d4d477557cf37b5f372ef7817a23be484 | /string_125_valid_palindrome.cpp | 4d50354c56d925f27628ce80dcedab593e598297 | [] | no_license | jackyue/leet_code | b860cb93a2835ad735b62dc6daab3bf46e771334 | ee7b89b288a623e72c076791317d5fba97264c83 | refs/heads/master | 2021-06-08T11:34:38.460911 | 2020-12-13T16:47:51 | 2020-12-13T16:47:51 | 98,762,782 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 827 | cpp | string_125_valid_palindrome.cpp | /***************************************************************************************
*
* 用isalnum判断字符串中的字符是否是字母或者数字,经过reverse之后,判断是否和原字符串相同。
* 时间复杂度O(n),空间复杂度O(1)。
*
***************************************************************************************/
class Solution {
public:
bool isPalindrome(string ... |
67d95eab6352fe78dd70d4e8fa09fccd3c949ecc | ef0be825d2688f00972087423f897129ab214fee | /Server.cpp | 23e14a010133e07f46919cc15e4b6adb9e0a5c18 | [] | no_license | MerlinSmiles/afmcontrol | 5b86714214c4199256e9221821a38fcffa16ec2b | 711c6121729cbd261e506fea9c913b08ff2de17a | refs/heads/master | 2021-01-17T09:41:32.523091 | 2016-05-22T12:14:43 | 2016-05-22T12:14:43 | 39,294,437 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,105 | cpp | Server.cpp | // File Example1Server.cpp
#include <litho.h>
#include <guimfc.h>
//#include <winsock2.h>
#include <windows.h>
#include <process.h> /* _beginthread, _endthread */
#include <direct.h>
#include <stdlib.h>
#include <stdio.h>
#include <tchar.h>
#include <time.h>
#include <merlin_afm.h>
//#include <ctime>
#include <ios... |
2b877638750eb87ca46f4ca03faff01ae5eadb1c | 9f9660f318732124b8a5154e6670e1cfc372acc4 | /Case_save/Case30/Case/case2/900/T | 53fa4db8a4b032ed0007fcf958f4bd571a750134 | [] | no_license | mamitsu2/aircond5 | 9a6857f4190caec15823cb3f975cdddb7cfec80b | 20a6408fb10c3ba7081923b61e44454a8f09e2be | refs/heads/master | 2020-04-10T22:41:47.782141 | 2019-09-02T03:42:37 | 2019-09-02T03:42:37 | 161,329,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,213 | T | // -*- C++ -*-
// File generated by PyFoam - sorry for the ugliness
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "900";
object T;
}
dimensions [ 0 0 0 1 0 0 0 ];
internalField nonuniform List<scalar> 459
(
303.564
303.306
303.293
303.289
303.285
303.281
303.277
303.271
... | |
14e578f0f823153ae7ee11826b0fa119e427f939 | 462e7038f4676cad610a191bc3fc3f571897544d | /src/image_recognition/src/image_recognition_node.cpp | bea7bc17e51c9c99317a1685439ebd03a15862ff | [
"Apache-2.0"
] | permissive | ShengruiLYU/ELEC-4010K | 2bc44cb187d1c0455de42bd5105c2a31508b738d | ba91a8a43869489f276e593f7d5f0b46b14679e1 | refs/heads/master | 2021-09-27T23:58:31.196336 | 2018-11-12T15:06:36 | 2018-11-12T15:06:36 | 157,228,098 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,818 | cpp | image_recognition_node.cpp |
#include <ros/ros.h>
#include <ros/console.h>
#include <std_msgs/Bool.h>
#include <sensor_msgs/Image.h>
#include <geometry_msgs/Twist.h>
#include <geometry_msgs/Pose.h>
#include <visualization_msgs/Marker.h>
#include <cv_bridge/cv_bridge.h>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include ... |
e16291300600a79cb471623c9c189f86c234366e | c18011a46125386c53aa8173a26a6dd49bad2cce | /Classe_GUI/logsystem.cpp | d0eb5d1a57553c1e17e39dfa3ddd801b14a024bf | [] | no_license | lfgLO21/projet-LO21 | 81ab685eb258ff06e47cd634a3ed2f71da8614ca | cce1a9f74c588a1a6fafe7f6cb72175a9a11102b | refs/heads/master | 2021-01-19T03:21:52.153513 | 2012-06-18T13:26:52 | 2012-06-18T13:26:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,233 | cpp | logsystem.cpp | #include "logsystem.h"
/*!
*\fn void LogSystem::printLog(LogMessage)
*\brief Methode de creation d'un nouveau message de LogSystem decrivant une action efectuee par une procedure
*/
LogMessage::LogMessage(const std::string& s,unsigned int i)
{
this->_log = QString(s.c_str());
this->_degree = i;
this->_t... |
89414857fb7d874f348099cda1265123b54225df | 6d48eecfac0f8983b0ec9b3d130430d1057eccba | /Lab1.cpp | 9553a71deb8f385fd6a60e03e6ac65a8af225723 | [] | no_license | Hieracon/APD | c4f7fb474b1ddd9f61cca923cca2a4f401c4a84b | 39789496f4ee981c75bab8697648015de6f920d6 | refs/heads/master | 2021-02-18T12:37:04.223293 | 2020-03-10T15:19:16 | 2020-03-10T15:19:16 | 245,195,568 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,302 | cpp | Lab1.cpp | #include <mpi.h>
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
// -----------------------------Prime Numbers-------------------
/*
bool isPrime(int n)
{
if (n <= 1)
{
return false;
}
for (int i = 2; i < n; i++)
{
if (n % i == 0)
{
return false;
}
}
return true;
}
... |
fc586af827feada6713e50fa4a8844df2fb17f0c | 04e11bec5bc79ea397e74780f32aa41dea88f54b | /src/AlleleRecords.h | d12e3adebc2832d6495b62b82cf02e3fb440f1f0 | [] | no_license | grenaud/dice | 94af0fdc34150dea8a80e948d48d54fd96a110c6 | 1fe23b343c645a0abe24ac73c654bfee4291a262 | refs/heads/master | 2021-01-24T22:44:06.145810 | 2020-12-03T15:34:04 | 2020-12-03T15:34:04 | 29,676,122 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,181 | h | AlleleRecords.h | /*
* AlleleRecords
* Date: Mar-28-2013
* Author : Gabriel Renaud gabriel.reno [at sign here] gmail.com
*
*/
#ifndef AlleleRecords_h
#define AlleleRecords_h
#include <string>
#include <vector>
#include "SingleAllele.h"
using namespace std;
class AlleleRecords{
private:
public:
AlleleRecords();
Alle... |
25578ec841a1f062a6e56d35b1e113c99015dddd | 7af5412a85f6675e4a378f033978db11fa683f94 | /剑指offer/对称的二叉树.cpp | 23d6c557d22e809d1377489c0e6ac63251559a93 | [] | no_license | Catnip0709/CodeStudy | 82ea6e03b3e6ec9b77eca2fadf676cb9c7e3f64c | f259c566c8b8e7b46e8620557b3e7667a8f1ca59 | refs/heads/master | 2020-12-11T01:13:05.904773 | 2020-04-02T04:16:27 | 2020-04-02T04:16:27 | 233,762,279 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,031 | cpp | 对称的二叉树.cpp | /*
Author: Catnip
Date: 2020/02/18
From: 剑指offer
Link: https://www.nowcoder.com/practice/ff05d44dfdb04e1d83bdbdab320efbcb?tpId=13&tqId=11211&rp=3&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question-ranking
*/
/* Q
请实现一个函数,用来判断一颗二叉树是不是对称的。
注意,如果一个二叉树同此二叉树的镜像是同样的,定义其为对称的。
*/
/* A
递归判断
*/
#include<iostream>
usin... |
d26cb92b0f5b7527685ac92242d9c7883c1083a2 | f9c4b251e5de9d2b4179ad418c6b826ca2bf56e3 | /PAT/PAT-Basic/B-1003.cpp | 73eb568628b0c52e42bf67cfdcba19ce8430d038 | [] | no_license | MatthewLQM/AlgorithmCode | d82f3b634b7e03ba3a47d1d1e3daae9121db9b81 | 150438a2ed38193890bb82522bb8d5158d875fd4 | refs/heads/master | 2020-04-05T13:36:57.897589 | 2018-01-31T10:35:48 | 2018-01-31T10:35:48 | 94,917,818 | 0 | 0 | null | 2017-09-25T03:27:03 | 2017-06-20T17:30:37 | C++ | UTF-8 | C++ | false | false | 670 | cpp | B-1003.cpp | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
int main(void){
int n, flag;
char x;
int a[3] = {0};
cin >> n;
getchar();
for(int i = 0; i < n; i++){
flag = 0;
a[0] = a[1] = a[2] = 0;
while((x = getchar())!='\n'){
if(x != 'P' && x != 'A' ... |
40c739211e3c5d24d7b245b274ff322e883d8454 | 4f0d99949fcb2429e1ead9f07ea16d28878e7add | /include/views/UserView.h | 8202b6b956073a9a30d780bf43efdd7ae93ec571 | [] | no_license | bmclachlin1/IssueTracker | 323fc84996065c73dc4e940f88f69920b515acd3 | 710d8d5d4dd042b9a3cda4ed67c675685053c3c7 | refs/heads/master | 2023-01-31T08:36:44.747862 | 2020-12-10T23:23:56 | 2020-12-10T23:23:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,450 | h | UserView.h | #ifndef USERVIEW_H
#define USERVIEW_H
#include <string>
#include "BaseView.h"
enum class UserViewState { CreateUser = 1, SelectUser, GoBack };
enum class ManageUserState { Update = 1, Delete, GoBack };
/**
* @class UserView
* @brief Handles user input relating to users
*/
class UserView : public BaseView {
pub... |
3875bb769895e04eca595b7fdb13f3310735ac74 | bdd9f3cdabe0c768641cf61855a6f24174735410 | /src/game/shared/library/swgSharedNetworkMessages/src/shared/core/SetupSwgSharedNetworkMessages.cpp | fb9785c078a669c48eb08b90c11a895440cd1045 | [] | no_license | SWG-Source/client-tools | 4452209136b376ab369b979e5c4a3464be28257b | 30ec3031184243154c3ba99cedffb2603d005343 | refs/heads/master | 2023-08-31T07:44:22.692402 | 2023-08-28T04:34:07 | 2023-08-28T04:34:07 | 159,086,319 | 15 | 47 | null | 2022-04-15T16:20:34 | 2018-11-25T23:57:31 | C++ | UTF-8 | C++ | false | false | 29,933 | cpp | SetupSwgSharedNetworkMessages.cpp | // ======================================================================
//
// SetupSwgSharedNetworkMessages.cpp
// copyright 1998 Bootprint Entertainment
// copyright 2001 Sony Online Entertainment
//
// ======================================================================
#include "swgSharedNetworkMessages/FirstSw... |
ff11eca11eae45216c685e64ba12baec6c3f4a74 | f789494db62d68f5664579595cd517109dab5742 | /software/lib/sim/src/JadePixDigitizer.cc | 23fcc24972921f1b3add8ff58a820d74fa70d101 | [] | no_license | rkiuchi/jadepix | 0535dd6ca08788fd90dd5774a920b00d1b74fd45 | 1a6e0abb5341c306211da6eda60efc75a65636b1 | refs/heads/master | 2021-09-06T23:02:49.394836 | 2018-02-13T04:33:36 | 2018-02-13T04:33:36 | 121,213,883 | 0 | 0 | null | 2018-02-12T07:23:04 | 2018-02-12T07:23:04 | null | UTF-8 | C++ | false | false | 26,654 | cc | JadePixDigitizer.cc | #include "JadePixDigitizer.hh"
#include "JadePixHit.hh"
#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"
#include "G4UnitsTable.hh"
#include "G4DigiManager.hh"
#include "Randomize.hh"
#include "G4ios.hh"
#include <math.h>
JadePixDigitizer::JadePixDigitizer(G4String modName):G4VDigitizerModule(modName){... |
b64ae91adf7ab395ca07f100a9667137d5e563c0 | 5cec37261e756a98b632eda290d4869461738403 | /testing/unit_testing/src/2_ranks/composite_mesh.cpp | 8bfb59b435d27e5f630c1f8b576864fc76a04061 | [
"MIT"
] | permissive | maierbn/opendihu | d78630244fbba035f34f98a4f4bd0102abe57f04 | e753fb2a277f95879ef107ef4d9ac9a1d1cec16d | refs/heads/develop | 2023-09-05T08:54:47.345690 | 2023-08-30T10:53:10 | 2023-08-30T10:53:10 | 98,750,904 | 28 | 11 | MIT | 2023-07-16T22:08:44 | 2017-07-29T18:13:32 | C++ | UTF-8 | C++ | false | false | 23,359 | cpp | composite_mesh.cpp | #include <Python.h> // this has to be the first included header
#include <iostream>
#include <cstdlib>
#include <fstream>
#include <cassert>
#include <cmath>
#include "gtest/gtest.h"
#include "opendihu.h"
#include "arg.h"
#include "../utility.h"
#include "mesh/face_t.h"
#include "function_space/function_space.h"
TE... |
e51dfa29c927b0870dcff3e5f8adbe45716460c2 | d46788ac1bd03854adae8370ccb188b8928f1c21 | /fifth/3/源.cpp | 14129bccbc9030c1ca30730cca075d26c75c1960 | [] | no_license | Wansit99/ZhengLi-- | 258af73d1f6b2f87296f50c3c49a169c3e8c1762 | d32753a9e51db6a211f5e256bf6615d1e487faaa | refs/heads/main | 2023-03-07T01:10:27.957373 | 2021-02-20T13:05:05 | 2021-02-20T13:05:05 | 340,651,433 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 828 | cpp | 源.cpp | #include <iostream>
using namespace std;
class Date {
private:
int year;
int month;
int day;
public:
Date(int x, int y, int z) :year(x), month(y), day(z) {}
friend class Time;
};
class Time
{
private:
int hour;
int minute;
int second;
public:
T... |
e34cdec73b92eb52232903b4c6e2177fc59c7a49 | 059f0375acc3b9ae61696eb40fa2b4446b18ea9e | /other_stellarium_python_servers/leon_rosengarten/Deadon/deadon.cpp | 94535fad344b32e245f77818d782a6277f63bbb3 | [] | no_license | EmmanuelSchaan/DIYGotoMount | 206a793eb5358a92a656c3c25647000041e5a8bf | 28d7b5876e063d026c61688d1a8ef84ca4516a4b | refs/heads/master | 2023-05-30T17:55:08.529767 | 2021-06-18T00:50:45 | 2021-06-18T00:50:45 | 298,691,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,170 | cpp | deadon.cpp |
#include <Arduino.h>
#include "deadon.h"
#include <SPI.h>
DEADON::DEADON(int ssPin)
{
csPin = ssPin;
}
void DEADON::RTC_init()
{
pinMode(csPin,OUTPUT); // chip select
// start the SPI library:
SPI.begin();
SPI.setBitOrder(MSBFIRST);
SPI.setDataMode(SPI_MODE1); // both mode 1 & 3 should work
//set con... |
46fcdb17252ec292e0a75043a12474c0f00d6df6 | 28b4979073dfa53705c3993d1fb2ace26461cb19 | /programs/lsim/LsimBdd1.h | 91a205f8926c763fdfd48872f05ce8743df290be | [] | no_license | yusuke-matsunaga/ym-apps | 51c826e510a91d7c4f6e5c4252a2afb91a5f30ce | 185c9aa876a95fcad4772db2ba270ba8fd53e1ac | refs/heads/master | 2016-09-16T15:38:13.272565 | 2015-11-01T04:33:49 | 2015-11-01T04:33:49 | 38,557,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,433 | h | LsimBdd1.h | #ifndef LSIMBDD1_H
#define LSIMBDD1_H
/// @file LsimBdd1.h
/// @brief LsimBdd1 のヘッダファイル
/// @author Yusuke Matsunaga (松永 裕介)
///
/// Copyright (C) 2005-2011 Yusuke Matsunaga
/// All rights reserved.
#include "Lsim.h"
#include "YmLogic/Bdd.h"
#include "YmLogic/BddMgr.h"
BEGIN_NAMESPACE_YM
////////////////////////... |
4ef2e6576c319bbf0ecd3fe7d45ee85f735f415c | 5cfbbc62f2c94ccb34cdd549490db6d0413bfd24 | /MyVideoStabilizer/motionvector.cpp | e7503e1f5147c884666789ba96ab05b760117fcc | [] | no_license | postasze/Video-Stabilization-Algorithm | 437ae0e49def822e6a7583325394b3fc3f624a7c | c9c7579fc6e834075a3186aea4cc467ab16d0afe | refs/heads/master | 2021-04-07T21:36:05.770370 | 2020-07-10T13:05:12 | 2020-07-10T13:05:12 | 248,710,548 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,609 | cpp | motionvector.cpp | #include "motionvector.h"
MotionVector::MotionVector()
{
this->x = 0;
this->y = 0;
this->startPoint = cv::Point2f(0, 0);
this->endPoint = cv::Point2f(0, 0);
this->magnitude = 0;
this->angle = 0;
}
MotionVector::MotionVector(cv::Point2f startPoint, cv::Point2f endPoint)
{
this->x = endPoint... |
5cd21237d4f82885fa41f1ec5e8c756492cbaed2 | 3ae18db84d0aba32bf473d7902e466cec26e6897 | /cpp-primer/type_conversion.cc | 4fffa6bb32ece2ab49472edd5a1a160801519251 | [
"MIT"
] | permissive | sylsaint/cpp_learning | 59f8c18d78699cb3c27ec6d1bb3361edb5515eb3 | 158bdf6186a38838ef16f9739e436b17518a56ba | refs/heads/master | 2021-01-12T08:03:46.036808 | 2018-09-21T09:58:03 | 2018-09-21T09:58:03 | 77,113,208 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,069 | cc | type_conversion.cc | #include<iostream>
int main()
{
bool b = 42; // b is true
std::cout << b << std::endl;
int i = b; // i has value 1
std::cout << i << std::endl;
i = 3.14; // i has value 3
std::cout << i << std::endl;
double pi = i; // pi has value 3.0
std::cout << pi << std::endl;... |
cb54873dd422de5840c933bb7587e55c2d6af641 | e04f52ed50f42ad255c66d7b6f87ba642f41e125 | /appseed/aura/net/net_address.h | 69aecfa37b82b035c48c3915cc4420c0b33df01a | [] | no_license | ca2/app2018 | 6b5f3cfecaa56b0e8c8ec92ed26e8ce44f9b44c0 | 89e713c36cdfb31329e753ba9d7b9ff5b80fe867 | refs/heads/main | 2023-03-19T08:41:48.729250 | 2018-11-15T16:27:31 | 2018-11-15T16:27:31 | 98,031,531 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,999 | h | net_address.h | #pragma once
#if defined(LINUX)
#include <netdb.h>
#define in_addr6 in6_addr
#elif defined(VSNORD)
#include <netdb.h>
#include <netinet/in.h>
#define in_addr6 in6_addr
#endif
namespace net
{
class CLASS_DECL_AURA address
{
public:
//#if defined METROWIN && defined(__cplusplus_winrt)
//
// class C... |
e1898d94f67001565636234e9cdad6a48cfd36f0 | 45364deefe009a0df9e745a4dd4b680dcedea42b | /SDK/FSD_ABP_Gatling_parameters.hpp | 7c9928ffe6f9f5a54d41fa34c7dc6ab4115395ba | [] | no_license | RussellJerome/DeepRockGalacticSDK | 5ae9b59c7324f2a97035f28545f92773526ed99e | f13d9d8879a645c3de89ad7dc6756f4a7a94607e | refs/heads/master | 2022-11-26T17:55:08.185666 | 2020-07-26T21:39:30 | 2020-07-26T21:39:30 | 277,796,048 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 993 | hpp | FSD_ABP_Gatling_parameters.hpp | #pragma once
// DeepRockGalactic SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "FSD_ABP_Gatling_classes.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Fun... |
01589e66ad989c9904f2ea73f6062252f6305948 | 844439f89c42872e1db6339f922c7445bdc829d7 | /logger/log_file.h | eb892c8eb0e7f30ee7a89f87cae7749cb7253dcc | [] | no_license | csyangbinbin/filelogger | bfb234de9580b14515062a98888a4d14580099a2 | 5d9150a77b800c7c7411f04ea153c8001fdaf159 | refs/heads/master | 2021-01-01T18:32:21.582547 | 2017-07-26T00:56:31 | 2017-07-26T00:56:31 | 98,362,787 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,361 | h | log_file.h | /********************************************************************
created: 2013/07/17
created: 17:7:2013 8:16
filename: log_file.h
file path: logfile
file base: log_file
file ext: h
author:
purpose: 异步日志记录(主要算法参考muduo)
License:
// Muduo - A reactor-based C++ network library for Linux
// Copyright (c) 2010, ... |
11c5bd6caa5bcab9e190d31da27d249c412192d9 | 3557afba2127184fba12300f6721e1470aee1d69 | /ICPC_Cluc.cpp | 435ad3fc0b53503a39ce95d5e547256e6042abaf | [] | no_license | Noiri/icpc_practice2018 | 7a12907f4386c51478dee0e79a15441add9e243b | d90dbf1a3ede2c8e58156fe936f918aaa7974aba | refs/heads/master | 2020-03-19T14:34:25.849084 | 2018-06-28T08:48:27 | 2018-06-28T08:48:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,726 | cpp | ICPC_Cluc.cpp | #include<bits/stdc++.h>
using namespace std;
//operand, level
vector<pair<string, int> > v;
int main(){
int n;
cin >> n;
int max_level = 0;
for(int i = 0; i < n; i++){
string tmp;
cin >> tmp;
//count level and push
int cnt = 0;
for(int j = 0; j < (int)tmp.size(); j++){
if(tmp[j] == '.') cnt++;
}
... |
d0e1cd0bd24b5321e67761ea2ac47aef9f942cab | 69d3a1def95e8c38cfb62d18d0c1e3cac10e7ba5 | /Week-1/process_packages.cpp | 86ee03ca43773ab8342ac81077f24a5fbccba661 | [] | no_license | MalikSaurabh/Data-Structures-Coursera-Solutions | 665ec776c79c48b43659694d7a5dad3108c8b021 | 4a678eb954022e3a22c62a101c9c7b203666dafa | refs/heads/master | 2020-09-07T07:30:07.501984 | 2019-11-09T21:28:04 | 2019-11-09T21:28:04 | 220,704,759 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,067 | cpp | process_packages.cpp | #include <iostream>
#include <queue>
#include <vector>
struct Request
{
Request(int at, int pt):
at(at),
pt(pt)
{}
int at;
int pt;
};
struct Response
{
Response(bool dropped, int st):
dropped(dropped),
st(st)
{}
bool dropped;
int st;
};
class Buffer... |
914d500dd28821a8b2c05866a74b2e9e7da529bd | 703cb315cc14a399058b661e2f3ce712a9cae618 | /testSDK/CommandView/CustomCombobox.h | f500b3fa384e0e7712d6b8a1dfe293ab5c2e0a4d | [
"BSD-3-Clause"
] | permissive | yongyuwh/HMI_SDK_LIB | d7180078da2e5cbbbe7a72b7f6dbd607a559b1b6 | 0c97dbd3e7ef1c7704088c40adcde4d99163cd03 | refs/heads/master | 2021-08-31T11:33:54.812790 | 2017-12-21T06:59:10 | 2017-12-21T06:59:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,476 | h | CustomCombobox.h | #ifndef CUSTOMCOMBOBOX_H
#define CUSTOMCOMBOBOX_H
#include <QListWidget>
#include "Common/ScrollBar.h"
#include "CustomComboboxItem.h"
class CustomCombobox : public QListWidget {
Q_OBJECT
public:
explicit CustomCombobox(int iMaxHeight, bool bUp = false, QWidget *parent = NULL);
//explicit CustomCombobox(int iS... |
c030df192ce53b2ae586b9efd17de3a8553fc041 | 8bdd599364b621da20d2fea67b3499dcfc2b1661 | /test(Prime number detection -do while)/test/test/test.cpp | 373a2d6d7f7b3946ad804f138b49c9b8c864e3b5 | [] | no_license | lin60102/Cpp_programs | fd5e3884f4bf666e704ac2f2aa48924867a4db58 | e3709a6648ff23c5aa01843e7e9bc6146408893d | refs/heads/master | 2020-04-18T04:50:07.725509 | 2019-01-27T08:31:16 | 2019-01-27T08:31:16 | null | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 1,167 | cpp | test.cpp | // test.cpp: 主要專案檔。
#include "stdafx.h"
#include "iostream"
using namespace System;
using namespace System::Collections;
int main(array<System::String ^> ^args)
{
ArrayList ^a = gcnew ArrayList();
int num,ans,i=1;
do
{
Console::Write("請輸入一個數字:");
try
{
num = Convert::ToInt16(Console::ReadLine());
if... |
37c88060587f3a9598bb1623a02c76eee323510c | 87b416ca6c742d413ff3e6bc156b611fabecfa72 | /networktest/udp_server.cpp | 98b864390070750324510b0bd67856dfd21f4aee | [] | no_license | killwing/mytests | 895df7b5f4dacf6f8c394111b5048805697e275e | 36592fe0a3c33f0ff6eac0ad0617c4f907233861 | refs/heads/master | 2016-09-06T18:00:20.668274 | 2013-12-11T09:03:55 | 2013-12-11T09:03:55 | 3,735,432 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,745 | cpp | udp_server.cpp | #include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <string>
#include <iostream>
#include <cstring>
#include <stdio.h>
using namespace std;
#define MAXLINE 100
void setrecvbuff(int fd, socklen_t n = 0)
{
socklen_t buflen = 0;
socklen_t l... |
37f45de1f9faec609a1f92f3b636daec04763f98 | 0421bc55fe0928ce76ab1f45fc3cdfd7f8b6a9b0 | /gauntlet/C_Updateable.h | f3bcf55d1e29cb1faffce362e0275e07c00c524f | [] | no_license | GandhiGames/gauntlet | f3ce79cdf85468bc456f0536283a25b516408fe8 | 17ebe9143e2371de47d8a158971d92b4bfaeac9b | refs/heads/master | 2021-01-20T11:39:15.554575 | 2017-09-25T12:54:30 | 2017-09-25T12:54:30 | 101,512,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 262 | h | C_Updateable.h | #pragma once
//TODO: rename - remove C_
class C_Updateable
{
friend class Object;
public:
C_Updateable();
virtual ~C_Updateable() = 0;
virtual void Update(float deltaTime, Object* owner) {}
virtual void LateUpdate(float deltaTime, Object* owner) {}
};
|
f10b33c6345e0486ecfd35c02059551cab9828f2 | 1e97a77a6a86e20b9340247d40dd04ee0317fbfc | /examples/Hardware/adc/adc.ino | 1eafa9f8636777d36b4eb577fe2488ec8ec1d370 | [
"MIT"
] | permissive | dyc1229/Bluefruit52_Arduino | a9ab1b17efbce0d4cbe02c5bbb4cfa4e28d95c7c | 1bffe16d3a296d77c46a082e28d645de9002d850 | refs/heads/master | 2022-02-28T14:35:07.778875 | 2019-09-03T07:23:36 | 2019-09-03T07:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 531 | ino | adc.ino | /*
ADC get input
get adc value from pin and print value.
This example code is in the public domain.
2019/01/02
by Afantor
*/
int adc_pin = A5;
int adc_value = 0;
float mv_per_lsb = 3600.0F/1024.0F; // 10-bit ADC with 3.6V input range
void setup() {
Serial.begin(115200);
}
void loop() {
// Get a fre... |
acda82d6fe980c94577a1520b604a8ff2176e407 | ac82758a30d9b440473209e35e40e3ccf364444f | /Übungsaufgaben/A09/Code/6.cpp | ca09bca6d316c81838454bcabdab6ec1c703aeb7 | [] | no_license | PaulOxxx1/DSAL-Arbeitsverzeichnis | e2eacb68ec07e6a10f240b67aa595244eff52b77 | 72442f472f0505571e8fa1c65de27ed95bdf6f8c | refs/heads/master | 2021-11-11T05:40:45.426744 | 2021-10-28T12:33:07 | 2021-10-28T12:33:07 | 129,533,636 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | cpp | 6.cpp | bool isBipartit(list adj[n]){
queue q;
q.enqueue(1);
while(!q.empty()){
u = q.dequeue();
foreach v in adj[u]{
if(!v.color){
if(u.color == red) v.color = black;
else v.color = red;
q.enqueue(v);
} else if (v.color == u.color) return false;
}
}
return true;
} |
cf39c4cbdd8134b38ab8554a453e3dbb9bde421e | 4ed098beb4924a42931227ba13ad6ca3321e5d33 | /main.cpp | eac7befbdca7a9896284d0ee08970dace31e56c0 | [] | no_license | DanyloOS/Chess_QML | 760d46eae845db389c8647fbd78d953ad623037d | f94387f21684aabc7e1b8ef60c1b3529619dbed8 | refs/heads/master | 2023-05-05T22:44:02.357868 | 2021-02-20T20:49:18 | 2021-02-20T20:49:18 | 340,426,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,087 | cpp | main.cpp | #include "gameengine.h"
#include <QQmlContext>
#include <QtCore>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
// TODO: find better place for this
#define FEN_START_POS "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
int main(int argc, char *argv[])
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, ... |
d0aa81b7ea58bc59e94031038ea5652f311c4b68 | 6204fae696932f831d18b77bc1ebcc2cb1bff1df | /project-euler/volume02/77.cc | 5b1ebfd4ff66d700839c47e4aa2b4114613b0b8b | [] | no_license | Pentagon03/competitive-programming | 3e725bab66ba75f5e8c8489bada41c5ee51fed91 | 8ca7cec0ff7bb7c096d4b8d7100840cef6ae0c99 | refs/heads/master | 2022-11-15T15:36:18.595463 | 2020-07-02T15:27:37 | 2020-07-02T15:27:37 | 287,737,119 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 545 | cc | 77.cc | #include <bits/stdc++.h>
using namespace std;
int sol(int n) {
vector<int> vs(n, 1); vs[0] = vs[1] = 0;
vector<int> pl;
vector<int> dp(n, 0); dp[0] = 1;
for (int i = 2; i < n; ++ i) if (vs[i] == 1) {
pl.push_back(i);
for (int j = i + i; j < n; j += i) vs[j] = 0;
}
for (int i = 0; i < pl.size(); ++ ... |
0be6dc2f3eb93b4281433fc4eba494c24a66393c | 8307623044be8f9ef6310a69e0a957de40f09ab5 | /Implementations/04 - Sorting And Searching (2)/4.1 - Interval Cover.cpp | cea65fae1dee44f8208db7d6955bf6bbfceffa5d | [] | no_license | ailyanlu1/USACO-1 | 488569b16d196180b30cdabdda43f3aa9184ef73 | 100213ccf2036cc89facee0ebc582048955694f5 | refs/heads/master | 2020-03-23T07:48:18.848515 | 2018-07-16T16:06:37 | 2018-07-16T16:06:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 992 | cpp | 4.1 - Interval Cover.cpp | /**
* Usage: https://open.kattis.com/problems/intervalcover
* Description: Example of greedy algorithm
*/
double A,B,cur;
vector<pair<pd,int>> in;
int N,nex;
vi ans;
void solve() {
nex = 0; ans.clear();
cin >> N; in.resize(N);
F0R(i,N) {
cin >> in[i].f.f >> in[i].f.s;
in[i].s = i;
}
... |
d7b0096409547f468068041e45229272396e2671 | 4584df33ba273610ea91efd3f7ad58a6a01a2f20 | /171-excel-sheet-column-title.cpp | 9966aa83ce979671a6747825efb022ad1166ed16 | [] | no_license | Sudha247/leetcode-solutions | bfb761f04844d87dfd5ca60766be82d071b93a15 | b06988c3d84d0b72505b909793b18eb077dd299c | refs/heads/master | 2020-03-25T11:49:39.794696 | 2018-08-16T17:48:07 | 2018-08-16T17:48:07 | 143,750,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | cpp | 171-excel-sheet-column-title.cpp | class Solution {
public:
int titleToNumber(string s) {
int l = s.length();
int i = l-1, pos = 0, sum = 0;
while(i >= 0){
sum += (int(s[i] - 'A' + 1))*pow(26,pos);
pos++; i--;
}
return sum;
}
};
|
5265a6d0f0318ad7aee0ccc77a86b0320f61025e | 3dc9e2aaa40037bc099ed478b027892c03e2839c | /src/exp2-2-2.cpp | e30da99b78cf2e4968ceed588d265906429ec6b9 | [
"MIT"
] | permissive | ASjet/data-struct | 66841462ec6cd97de6bec2b55af2ce6c4a664339 | 184117e353f919c8d752f5b70c814e9a78254c22 | refs/heads/main | 2023-08-18T12:09:19.953989 | 2021-10-15T06:01:59 | 2021-10-15T06:01:59 | 352,577,838 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 590 | cpp | exp2-2-2.cpp | #include <iostream>
#include <string>
#include "LinerLink.h"
////////////////////////////////////////////////////////////////////////////////
using std::cin;
using std::cout;
using std::endl;
using std::string;
////////////////////////////////////////////////////////////////////////////////
int main(void)
{
LinerLi... |
92074ce15b7a8af2033862eb64d6a88423513389 | b221a94867fccca77e30d62cb3230639f1ff2374 | /code/oned/rhs_contrb_diff_br2_p1.cpp | dba9d8d60c17b417af0a1cca1536fc2bd8d88e98 | [] | no_license | karthikncsuiisc/A-Discontinuous-Galerkin-program-for-solving-1D-Nonlinear-Advection-Diffusion-equations | b6bfa3d59d36166be4c95ff3c4030ad70ce85cab | 255fbff2d64044e89911c3733719c0e2862dda82 | refs/heads/master | 2023-02-07T08:47:18.918371 | 2020-12-26T17:54:44 | 2020-12-26T17:54:44 | 324,606,629 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,444 | cpp | rhs_contrb_diff_br2_p1.cpp | //Program contributes diffusive terms to rhspo using BR2 method
//-------------------------------------------------------------------------------------------------
// Cells discrption
//--------------------------------------------------------------------------------------------------
// Ghost domain cells ... |
31778266338cbdbdac97b0200038972fd1bd6574 | 4868c6be7f84a65d8edeaa5cbdc45a677e7e22b3 | /src/geometryUtils.cpp | ab0030c2db1545e6a2c76346cfcecbfafd11f828 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/wsi-to-dicom-converter | cd3e6b7a91760984c7d4dc929b67db720cee9e18 | ee532a3ad944c209585bffb534f426c17fa8abba | refs/heads/develop | 2023-08-18T02:10:53.695454 | 2023-05-12T22:24:21 | 2023-05-12T22:24:21 | 191,454,643 | 55 | 23 | Apache-2.0 | 2023-05-12T22:24:22 | 2019-06-11T21:45:05 | C++ | UTF-8 | C++ | false | false | 1,532 | cpp | geometryUtils.cpp | // Copyright 2019 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... |
1fecfbac79b9078bd307f8db6bf324e34a146431 | 4cd0b9ce7c2e2a57623cc71b936c6dcda79bdd5c | /xfa/fxfa/cxfa_textpiece.h | f115c41e846e3bfae33b24d2304a922e4d95bce9 | [
"BSD-3-Clause"
] | permissive | prepare/pdfium | 32b8f9cecc2dd98cd578d2b4e8d882e5c4f0e1ed | 92770e8072cd3a38597966116045147c78b5a359 | refs/heads/master | 2021-01-21T04:43:53.541194 | 2018-12-23T06:55:27 | 2018-12-23T06:55:27 | 27,119,109 | 7 | 3 | null | 2015-08-11T13:40:07 | 2014-11-25T09:47:59 | C++ | UTF-8 | C++ | false | false | 975 | h | cxfa_textpiece.h | // Copyright 2017 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef XFA_FXFA_CXFA_TEXTPIECE_H_
#define XFA_FXFA_CXFA_TEXTPIECE_H_
#includ... |
92688391aa6af2ab8c6cf5baf5a8ec3e059a4922 | ff25687a61d90efa94871a1f21b8f32ea98998c7 | /SpellCorrect/server/inc/MyPoolThread.h | bd62a43c6b00a69747830d05858aaa44d4240a8b | [] | no_license | bat-battle/ProjectBattle | f45269eb49c24ef0d89cf653e6e38412f61af7ae | b6550761aec7a80b7c44bad2aba587f2dc9f0c37 | refs/heads/master | 2021-01-13T06:53:56.430416 | 2017-10-21T11:28:54 | 2017-10-21T11:28:54 | 81,315,015 | 18 | 15 | null | null | null | null | UTF-8 | C++ | false | false | 536 | h | MyPoolThread.h | #ifndef _MYPOOLTHREAD_H
#define _MYPOOLTHREAD_H
/***************************************/
//1、MyPoolThread继承自Thread,拥有Thread
//的所有非私有成员及函数。
//
//2、之所以要传入线程池的引用,是因为
//Thread中的run()方法要执行线程池中的
//threadFunc()方法
/***************************************/
#include "Thread.h"
class Threadpool;
class MyPoolThread : public Thr... |
48df25e3e173220bb237073e439257b48347ce6b | 6c8a158fd3eea6dc37b8497f9eb7ea2e57b91896 | /137_QtQml_QQuickPaintedItem/outlinetextitem.cpp | 53b33a3358adcec3768bd7cf85097d3dc1ba1ed5 | [] | no_license | beduty/QtTrain | 07677ec37730c230dbf5ba04c30ef69f39d29a45 | 5983ef485b5f45ae59ef2ac33bc40c7241ae6db7 | refs/heads/master | 2023-02-10T11:22:49.400596 | 2021-01-04T14:59:20 | 2021-01-04T14:59:20 | 326,716,000 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,318 | cpp | outlinetextitem.cpp | #include "outlinetextitem.h"
#include "outlinetextitemborder.h"
#include <QPainter>
OutlineTextItem::OutlineTextItem(QQuickItem *parent)
: QQuickPaintedItem(parent)
{
m_border = new OutlineTextItemBorder(this);
connect(this, &OutlineTextItem::textChanged, this, &OutlineTextItem::updateItem);
connect(th... |
0e64dfea1a1d082d54d559cc54f1ca88a6fc4748 | ded918c134d4b3f576658b927602e8e359209197 | /drzpprz.cpp | a72cdb5a87a51e88beb1c7988cbc2ec0549cb167 | [
"MIT"
] | permissive | wdomitrz/Basic_algorithms | f5c352efad394bccfcb2ff41cf8115410439cff6 | f16aa58aecb27329e9d53f7fe62fe4f61680095c | refs/heads/master | 2021-05-15T03:51:48.252020 | 2018-09-25T18:17:04 | 2018-09-25T18:17:04 | 106,850,779 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,273 | cpp | drzpprz.cpp | #include<cstdio>
#include<algorithm>
using namespace std;
const int base = 1 << 20;
int drz[2 * base];
bool gwiazdki[2 * base];
void spusc(int x) {
gwiazdki[x] = false;
drz[x * 2] = drz[x];
gwiazdki[x * 2] = true;
drz[x * 2 + 1] = drz[x];
gwiazdki[x * 2 + 1] = true;
}
void aktualizuj(int x) {
drz[x] = max(drz[... |
2857e894b4bf2a5132e786bec6c083e68e534303 | 3a42866c55c2166338756ef036de6bcdbec33c57 | /fts.cpp | dab11efc08a85e0302ab0600c8b4ce0a1bf1d386 | [] | no_license | dymayday/Fts | 7163bdd88901a19999c634255e7b2a2f9454f396 | ba092d43fb9006c1f72ad43a46a6ac57f90bbb2f | refs/heads/master | 2016-09-05T18:42:15.617515 | 2012-08-28T15:51:33 | 2012-08-28T15:51:33 | 5,514,261 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,152 | cpp | fts.cpp | #include <stdlib.h>
#include <iostream>
#include <fstream>
#include <unistd.h>
#include "chronometer.hpp"
//#include "./mem/mem.cpp"
//#include "./SkelGIS/skelgis.h"
using namespace std;
#define stackOverFlawLimit 20000
float hugeNumber(10000);
const float eps(0.00000001);
int depth(0);
int nbmodif(0);
struct HEADER... |
aa8960dba3d5e01e1a36187a59c52de32516dcd3 | fc86bce28f67772d5a80d5e9c678b68d4eff8be1 | /include/proxsuite/linalg/veg/internal/integer_seq.hpp | ce5dc20696574aabc98476165f0245d1510043b0 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | Simple-Robotics/proxsuite | fb0ef3cfab0f3aacb0fd67df038c4c1034967e24 | 24e9b4c7b346248cc8d0126545c5a4b724306d80 | refs/heads/main | 2023-09-03T18:40:57.331153 | 2023-08-02T18:10:41 | 2023-08-02T18:10:41 | 489,039,140 | 264 | 33 | BSD-2-Clause | 2023-09-12T12:39:31 | 2022-05-05T16:01:55 | C++ | UTF-8 | C++ | false | false | 6,749 | hpp | integer_seq.hpp | #ifndef VEG_INTEGER_SEQ_HPP_JBT0EKAQS
#define VEG_INTEGER_SEQ_HPP_JBT0EKAQS
#include "proxsuite/linalg/veg/internal/typedefs.hpp"
#include "proxsuite/linalg/veg/internal/macros.hpp"
#include "proxsuite/linalg/veg/internal/prologue.hpp"
namespace proxsuite {
namespace linalg {
namespace veg {
namespace meta {
templat... |
dc9eaf732d754abbbb02f79b8463d75ebf472163 | 363ff47ec32297c25c43840d12dae4497b5f0b32 | /src/InternalForces/Muscles/StateDynamics.cpp | 234f9a3281a667d98e90b8ad6f4af10a80639da6 | [
"MIT"
] | permissive | pyomeca/biorbd | 0fd76f36a01bce2e259ddea476d712c60fb79364 | 70265cb1931c463a24f27013350e363134ce6801 | refs/heads/master | 2023-06-25T21:07:37.358851 | 2023-06-22T13:38:47 | 2023-06-22T13:38:47 | 124,423,173 | 63 | 43 | MIT | 2023-09-14T14:40:58 | 2018-03-08T17:08:37 | C++ | UTF-8 | C++ | false | false | 5,620 | cpp | StateDynamics.cpp | #define BIORBD_API_EXPORTS
#include "InternalForces/Muscles/StateDynamics.h"
#include "Utils/Error.h"
#include "Utils/String.h"
#include "InternalForces/Muscles/Characteristics.h"
#ifdef USE_SMOOTH_IF_ELSE
#include "Utils/CasadiExpand.h"
#endif
using namespace BIORBD_NAMESPACE;
internal_forces::muscles::StateDynami... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.