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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
beea0e3c5d00d478817b2bc743dd897cdc060774 | bbe4ea490a469950b7a71240593cd53a3ac7ee4c | /IGRV_src/Main.cpp | 019ddfb13b47c63b0c098994ab8a0a0bc96e2d2a | [] | no_license | SunHaozhe/CG-Rendering-modeling | 82c9135f82aa9b10664de92a112ed2ab160af3ee | 85786b0f3bf1ffe34153119457f6bb336f21332a | refs/heads/master | 2021-09-12T12:57:33.332989 | 2018-01-27T15:13:15 | 2018-01-27T15:13:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,538 | cpp | Main.cpp | // --------------------------------------------------------------------------
// Copyright(C) 2009-2016
// Tamy Boubekeur
//
// Permission granted to use this code only for teaching projects and
// private practice.
//
// Do not distribute this code outside the teaching assignements.
// All rights reserved.
//... |
07e55745eed6b0ca4ca8971facb3fb0c9d091822 | 6158ef4be6194f49de72f43c65493482d92cc35b | /src/core/cart/MapperList.h | 42618344369174cb353ae850bbcf77ff5bf2aae2 | [] | no_license | WesUnwin/nes-emulator | b47edc4cca9b3e93ab0038ad9fa52c41581cd315 | 7bf81f4a5d37e2224a64f18d02b691cd9e4a008f | refs/heads/master | 2021-09-07T19:51:23.318475 | 2018-02-28T04:59:07 | 2018-02-28T04:59:07 | 100,424,032 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 343 | h | MapperList.h | #ifndef CART_MAPPERLIST_H
#define CART_MAPPERLIST_H
#include "iNesRom.h"
#include "iNesFileFormatException.h"
#include "CartMapper.h"
#include "Mapper0.h"
#include "Mapper1.h"
class MapperList
{
public:
MapperList();
~MapperList();
static CartMapper* constructMapper(int iNesMapperNum, iNesRom* ... |
1b0b4f12dbe65410c280e7fefe71f9b307beea9e | 0e989193660bc9ccb2c50cb69deccfe2ba54b6ad | /src/main.cpp | f7838cd4a4b605e2a7b48754f6e0b009e7d7a421 | [
"Apache-2.0"
] | permissive | buffetboy2001/cppmanifest | d513f0c07578f2e3a6dffd91236e352210081675 | 4edfca713deebc53c7c0281fa09e524fe8c3758f | refs/heads/master | 2021-01-20T20:14:40.526446 | 2017-09-14T01:22:24 | 2017-09-14T01:22:24 | 61,448,090 | 0 | 1 | Apache-2.0 | 2018-02-20T14:37:57 | 2016-06-18T18:55:19 | CMake | UTF-8 | C++ | false | false | 1,177 | cpp | main.cpp | //
// Created by Stuart to test cppmanifest. This is NOT needed to use cppmanifest!
//
#include "include/cppmanifest.h"
using namespace std;
int main(int argc, char* argv[]) {
cout << "Starting logging" << endl;
cout << "Build version: " << cppmanifest::getVersion() << endl;
cout << "Created-by:... |
b8082614f9230e2bf9e74f92696af9d9088238f3 | d67b2232d540f7f9ec26519f7c01dc860225d99f | /Data Structure/Day7/PracticeForxm/Tree.cpp | 8a748a239a2a3964169cff97691d11f989196918 | [] | no_license | lalit47/Codes | b5b33ee626041218f8c5d75975985f6c55096931 | 9018bdbf524d58a4e8b758f12b7682eaf603a64c | refs/heads/master | 2022-09-20T08:34:51.123267 | 2020-05-25T02:49:28 | 2020-05-25T02:49:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 843 | cpp | Tree.cpp | #include<iostream>
using namespace std;
struct tree
{
int data;
struct tree *left;
struct tree *right;
};
void traversal1(tree *root)
{
if (root != NULL )
{
traversal1(root->left);
cout<<root->data<<" ";
traversal1(root->right);
}
}
int main()
{
struct tree *t1=new tree();
t1->data=100;
t1->left=NU... |
ce9056a038ee0b8d7b8de2910ba6cb3165efda78 | 58cb3bda08b4b1a6c3440edd48866317b1a95f5a | /src/gui/controllerwidget.cpp | 53a747a01d62e2f919ffe3a55fdf2a454525fce5 | [] | no_license | lutris/virtualjaguar | 1adff5064b572366e5963d3eeb4dc44df31a3dde | 1b6d726df3245de60106274cd8b607c35fc5ed3d | refs/heads/master | 2020-05-20T09:40:25.614504 | 2014-04-14T21:10:22 | 2014-04-14T21:10:22 | 14,670,731 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 7,197 | cpp | controllerwidget.cpp | //
// controllerwidget.cpp: A widget for changing "Controller" configuration
//
// Part of the Virtual Jaguar Project
// (C) 2011 Underground Software
// See the README and GPLv3 files for licensing and warranty information
//
// JLH = James Hammons <jlhamm@acm.org>
//
// WHO WHEN WHAT
// --- ---------- -----... |
420dee997aced72b77deffed681d9da0c99cc857 | c7f3db94cc3d69cd9a2ae24aa3c69cd767b28672 | /must_rma/src/externals/typeart/lib/passes/instrumentation/InstrumentationHelper.cpp | 1f329f0ba01d1f5af9f63d4a10a27e974f68e94f | [
"BSD-3-Clause"
] | permissive | RWTH-HPC/must-rma-correctness22-supplemental | 10683ff20339098a45a35301dbee6b31d74efaec | 04cb9fe5f0dcb05ea67880209accf19c5e0dda25 | refs/heads/main | 2023-04-14T20:48:36.684589 | 2022-08-10T20:28:43 | 2022-11-18T03:33:05 | 523,105,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,229 | cpp | InstrumentationHelper.cpp | // TypeART library
//
// Copyright (c) 2017-2022 TypeART Authors
// Distributed under the BSD 3-Clause license.
// (See accompanying file LICENSE.txt or copy at
// https://opensource.org/licenses/BSD-3-Clause)
//
// Project home: https://github.com/tudasc/TypeART
//
// SPDX-License-Identifier: BSD-3-Clause
//
#include... |
6b15ed5f2005a3af5ab6ef946a783e761c537ae0 | 65e7c147e50a1ae17269c73c79bf885e3f9b1e30 | /TribesAscendSDK/HeaderDump/UTGame.UTSkelControl_SpinControl.h | 05e52b8fa8f6a0b4a9aea3ba2fbd8d69c800307f | [] | no_license | indiecore/TASDK | 05134d7722c941f8e69bbe5bd20616dcc31dd9d5 | b1e7061f0e3695e74cd1bf94b6be38b287f2f2ba | refs/heads/master | 2020-12-25T03:39:55.801138 | 2013-07-31T13:36:10 | 2013-07-31T13:36:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 164 | h | UTGame.UTSkelControl_SpinControl.h | #pragma once
#include "UDKBase.UDKSkelControl_SpinControl.h"
namespace UnrealScript
{
class UTSkelControl_SpinControl : public UDKSkelControl_SpinControl
{
};
}
|
8ce1e6f68bfe755e24596bb7d0a50446f5a3a99e | 28f4fb78ba6a1635b23201efa21e891fb8683e32 | /mudduinodemo/mudduinodemo.ino | efac01453f961e04b8a771c2af6c7dc1e3635b08 | [] | no_license | adobke/e11 | bbf1484f50e983b75fd6b06c140964d400252cc9 | 92d8058f153290a7ce873ba04d2de5fff7a6532d | refs/heads/master | 2020-04-15T12:14:15.132960 | 2013-11-04T02:21:58 | 2013-11-04T02:21:58 | 6,399,569 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,429 | ino | mudduinodemo.ino | #define leftneg 9
#define leftpos 8
#define leftenable 6
#define rightneg 7
#define rightpos 12
#define rightenable 11
#define maxCorrThres 21 // threshold for determining if detected sequence is the gold code.
const boolean PT = true; //false pushes yellow
#define looplen 217 // 31 * 7 One big array for all our val... |
5f1ea5d5ab1adabd5cb135a3d10b367301de0edf | 050c8a810d34fe125aecae582f9adfd0625356c6 | /strmatch/main.cpp | 2299ad21982ace136f2386b7da04386c5438f567 | [] | no_license | georgerapeanu/c-sources | adff7a268121ae8c314e846726267109ba1c62e6 | af95d3ce726325dcd18b3d94fe99969006b8e138 | refs/heads/master | 2022-12-24T22:57:39.526205 | 2022-12-21T16:05:01 | 2022-12-21T16:05:01 | 144,864,608 | 11 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 917 | cpp | main.cpp | #include <cstdio>
#include <cstring>
#include <vector>
using namespace std;
FILE *f=fopen("strmatch.in","r");
FILE *g=fopen("strmatch.out","w");
int F[2000005],N,M;
char A[2000005];
char B[2000005];
vector<int> V;
int nr;
int kmp()
{
F[1]=0;
for(int i=2;i<=N;i++)
{
int k=F[i-1];
while(k&&A[k... |
2f25f7ccda7e512dd20c3aa9c24b73f2f08fe4b2 | eded0885c3c439f96d31a76bc392039120b70069 | /ros_ws/src/robot_soccer/game_control/gamecontroller.cpp | 09ededfadea829d34bba806e717bde2099a02459 | [] | no_license | snydergo/RobotSoccer_TheFirstOrder | aa7ec38a7ea1bf15a64ba27644c03d3fde5b1de8 | 92e3f92f77c18ba876adc41802d357deb81032a7 | refs/heads/master | 2021-01-21T13:17:49.070315 | 2016-04-29T22:23:13 | 2016-04-29T22:23:13 | 49,161,587 | 3 | 1 | null | 2016-04-07T20:06:56 | 2016-01-06T21:06:22 | Python | UTF-8 | C++ | false | false | 9,504 | cpp | gamecontroller.cpp | #include <stdio.h> /* printf, fgets */
#include <stdlib.h> /* atof */
#include <sstream>
#include <iostream>
#include <string>
#include <fstream>
#include <ros/ros.h>
#include <robot_soccer/gameparam.h>
#include <std_msgs/String.h>
using namespace std;
std::string parseColor() {
string newValue;
... |
e65ff46385f79d0fb6d97f909f1cb855ef8d6892 | 88e265f3f0bfb269a8df7717d4a3b303941dc7b0 | /Hill_Kelly_SourceCode/CHAP10/FIG10_29.CPP | f1a97e5bbf61a7db255c04f4f376fd903a716772 | [] | no_license | rcparent17/opengl | 0699afb41d7fb84db22d64f776e086aa7ecf11be | 56c63c9364f0b25c5f2de0da52da39340e899f1b | refs/heads/master | 2020-04-17T04:39:42.407464 | 2019-02-25T05:06:43 | 2019-02-25T05:06:43 | 166,239,831 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | cpp | FIG10_29.CPP | void floodFill(short x ,short y, short intColor)
// Start at (x, y); change all pixels of intColor to newColor.
// assume drawing color is newColor
// 4-connected version
{
if(getPixel(x,y) == intColor)
{
setPixel(x, y); // change its color
floodFill(x - 1, y, intColor); // fill left
floodFill(x + 1, y, ... |
d0b4713e264026040f535306493da374e8113f90 | 65881271497c9c1d17df008fe1fe5671b78e8560 | /Castlevania/Game/Board.h | cc02ebeb2a17adb2c4aad43b73102dac5ccf0868 | [] | no_license | phntrg121/Castlevania | 7ecfcf717cdf0b85a8ac30316d322bd006ae6399 | 1bc67723520b9ccf5387a18e5d81d0bac7538fa2 | refs/heads/master | 2022-11-20T19:36:51.383184 | 2020-07-25T01:03:12 | 2020-07-25T01:03:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,555 | h | Board.h | #pragma once
#include "..\Framework\Texture.h"
#include "..\Framework\Graphics.h"
#include "Objects\Item.h"
#include "Objects\Weapons\Whip.h"
#include "Objects\Weapons\SubWeapon.h"
class Board
{
private:
static Board* _instance;
LPTEXTURE texture;
float x, y;
int score;
int time;
int stage;
int heart;
int l... |
3d0ab71390a77cf786a8397c51da08942b7d6a9f | a109d6d3331e927a75f30d0eb8b0179cbcf790d6 | /Sketch.ino | 2f020005b9ca873c968b3b47956a95ee1f17432b | [] | no_license | torgeir/vise-hvordan-github-funker | e22bb1d020040b9a6c267e8cdf5b4ba91a30660e | d0b38f003db9027de559554932ee68fa3595dc11 | refs/heads/master | 2021-01-10T22:41:29.266166 | 2017-03-08T11:36:52 | 2017-03-08T11:36:52 | 32,449,194 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33 | ino | Sketch.ino | int i = 0;
void loop() {
i++;
} |
637d3692038cd06a16d579ce053cb4273cd864a9 | aadf288b40c29b37bd57f05e9f94515276274e0c | /A-5/q_6.cpp | c94ec21d0805f28fcf80d9f9c45d11d3ba6d913e | [] | no_license | VatsalBatra/CPP_Assignments | 04a44ece2860e7c68aab0e05f12b2b8a90abd294 | c90ec19d467f383d9986c80dc418a74c8a46ff8c | refs/heads/master | 2021-06-24T07:23:42.040372 | 2017-09-10T10:56:31 | 2017-09-10T10:56:31 | 103,022,421 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | cpp | q_6.cpp | #include<iostream>
using namespace std;
void insertion_sort(int a[],int n){
if(n <=1){
return;
}
insertion_sort(a,n-1);
int last = a[n-1];
int j=n-2;
while(j>=0 && a[j] > last ){
a[j+1] =a[j];
j--;
}
a[j+1] =last;
}
int main(){
int arr[100];
int x;
cout<<"enter number of array enteries:";
... |
15fb1a0e7e708a758930f58d24e59a97d19b826d | a81c6131b3688bebb839e7c68cb2f29043332629 | /cnf_gen/clausecounter.cpp | c52b5e3213de0acf0c9183fd1531edc88d2c9cf9 | [] | no_license | SmallLars/ma-sha256 | 40cd682fb66c8dc2acfd320187a0818a46c1200d | 71ff02fda09766fd72c9ca6812d870d8f564078b | refs/heads/master | 2021-05-04T10:31:21.851050 | 2017-06-17T11:18:19 | 2017-06-17T11:18:19 | 52,981,239 | 2 | 1 | null | 2017-06-17T11:18:20 | 2016-03-02T17:11:00 | C++ | UTF-8 | C++ | false | false | 709 | cpp | clausecounter.cpp | #include <vector>
#include <stdio.h>
#include <stdlib.h>
#include "cryptominisat4/cryptominisat.h"
#include "common/dimacsparser.h"
using std::cout;
using std::flush;
using std::vector;
using namespace CMSat;
int main(int argc, const char* argv[]) {
if (argc != 2) {
cout << "Usage: clausecounter <FILE>... |
00fc126c92d3eba0ac802cee7d5fc30a6e41c529 | 02c92550bdb7b5696d7a54bde93f95670c4132a5 | /ejercicio2.cpp | 8a6e2ae5d0b1c0439df84aead7b7c2ca6cd17eb2 | [] | no_license | ChrMlg/FP_laboratorio7_00110219 | 6a680c5cfa88294c8ff00ba30969af26169faecb | 6a4d7cf8145071da782a2f0aa9fcb964f6065170 | refs/heads/master | 2020-08-14T03:01:45.828451 | 2019-10-22T04:19:30 | 2019-10-22T04:19:30 | 215,086,000 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 786 | cpp | ejercicio2.cpp | #include <iostream>
using namespace std;
int main(){
//solicitud de cantidad de casos
int n=0;
cout << "Digite numero de casos "<<endl;cin >> n;
//processo que se repite segun la cantidad de casos asignados
for (int i = 1;i<=n;i++){
int a=0;
int b=0;
//solicitud de ... |
ea25f622ac201bb7b2ce767509e3e45ab68ff62a | 4e9d28e319ee58dd120fda27f5bd695e09bac620 | /DataAnalysis/widget_heatmap.h | b6f3c248dfcf83ca3b681e8b0ff353ef3803eccb | [] | no_license | Lvisual/GraduateProject | f73aa64baac3a0b073abd344d8e1866b06ad81c8 | 25e508aa144960a7934054f9e887cfe71769da0e | refs/heads/master | 2020-03-09T01:29:32.411440 | 2018-05-01T15:44:15 | 2018-05-01T15:44:15 | 128,515,956 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 686 | h | widget_heatmap.h | #ifndef WIDGET_HEATMAP_H
#define WIDGET_HEATMAP_H
#include <QWidget>
#include <QApplication>
#include <QLabel>
#include <QComboBox>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QString>
#include <QPushButton>
#include "heatmap.h"
#include "basestation/formtitle.h"
class Widget_HeatMap : public QWidget
{
... |
4518ef2ac72b74b5814947ac5a0c5f35dfa4bfa6 | bac9f410bdf1c779f95795a9c64a397c9df88715 | /W4H2.ino.ino | ae75fb0d9005e86781484ab794f9dd30e8cd0183 | [] | no_license | kk4090311/-esp32-wk4 | 4fd6377ab38915f51dc7b45e8ad6cff4a482c544 | eada320a9d9c00c13f91810c5ee362782f9c7c5d | refs/heads/main | 2023-08-25T01:30:17.263252 | 2021-10-16T17:07:17 | 2021-10-16T17:07:17 | 417,892,906 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,211 | ino | W4H2.ino.ino | #include <Servo.h> //匯入函式庫
Servo myservo; // 建立伺服馬達控制
bool win=0;
const int servoPin = 13; //用常態變數設定pin腳位,與之前define方式差不多
int pos = 90; //角度初始在中間,設定為90度
const int led_pin = 27;
int win_staus = 1;
const int Button1_Pin = 12, Button2_Pin = 14; //紀錄兩按鈕腳位
bool btn1_Pressed = false, btn2_Pressed = false; //紀錄兩按... |
6f1ddcdf05222bafc1d2b96517196c761c4244fc | 4ef55d3911b2f5797c84b862a616c3c02f0c0951 | /Code/quickfix/ConsoleApplication2/Transaction.cpp | e33feecd6efaf2e8da10791f47dba8fe738392b3 | [
"BSD-2-Clause"
] | permissive | GhostatSpirit/StockExchangeSimulator | 65aad0411401fa335a80aee447868ee77b4b95be | d22cdbe7b70b838baf7930dfc769d460de15e172 | refs/heads/master | 2021-01-09T09:36:38.206696 | 2016-07-24T18:16:08 | 2016-07-24T18:16:08 | 63,987,758 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,317 | cpp | Transaction.cpp |
#include "Transaction.h"
#include "error.h"
using namespace std;
Transaction::Transaction(Order& sell_order, Order& buy_order)
:sellOrder(sell_order), buyOrder(buy_order)
{
// validate the symbol, price, quantity of the two orders,
// if valid, store the symbol, price, quantity
if (sellOrder.getSymbol() != buyOr... |
361de9a4b0735c804bb9c63b6dd3c32933007706 | 882a20fdf88ec1598b1e0031c2f21f521fbbb3f6 | /duff2/Source/PropertyPageDuplicates.cpp | 35e9d2b466f06da6fd2c1c7dabcbd1abc2f8b53a | [] | no_license | presscad/duff | 39fb6db6884c0e46f7b2862842334915ec17375e | eabfd1aa440883cbd5fd172aa9c10e2b6902d068 | refs/heads/master | 2021-04-17T09:16:21.042836 | 2012-01-30T22:42:40 | 2012-01-30T22:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,835 | cpp | PropertyPageDuplicates.cpp | // DuplicatesPropertyPage.cpp : implementation file
//
#include "stdafx.h"
#include "duff.h"
#include "PropertyPageDuplicates.h"
#include "duffdlg.h"
#include "TextClipboard.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
////////////////////////////////////////////... |
596aa7d839bc218e7e83f8b83c974e560b26a5ea | cd67a57944b5871e4a412706b4365a7d48f63243 | /include/a2b/translator.h | 2a83d8e666d8ed3837691e81609d9c8b80d1e033 | [
"MIT"
] | permissive | 0x656b694d/a2b | 43c73bc6674286c502cdd50194a2aa522c4044cc | 6febe9cc02ed46b5ccbea14b95a3d9fa5da28d44 | refs/heads/master | 2021-03-24T14:04:30.358927 | 2018-04-16T08:47:45 | 2018-04-16T08:47:45 | 123,925,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,473 | h | translator.h | /*
* Model Translation Utility
*
* https://github.com/0x656b694d/a2b
*
*/
#include <list>
#include <tuple>
#include <boost/mpl/at.hpp>
#include <boost/mpl/find.hpp>
#include <boost/mpl/list.hpp>
#include <boost/mpl/placeholders.hpp>
#include <boost/mpl/size.hpp>
#include <boost/mpl/transform.hpp>
namespace a2b {... |
76d1374332a0821e1735bc42d630c52d4f2bd032 | 8ff6b90b1ce5312ebc1a2ed3579eed5cc102bec0 | /clock/platformio/src/sound.cpp | 67dc9e4b0cf5aecfedf02b5f1cc8d707aab8f190 | [] | no_license | dcowden/battlepoint | a208aef872c5eccff260254c599c6b67fdd0383a | ed13314fb6bb5a1c96301aa9dc4b7997df31a9c3 | refs/heads/master | 2022-01-20T01:36:01.150910 | 2021-12-24T22:54:49 | 2021-12-24T22:54:49 | 135,941,061 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,122 | cpp | sound.cpp | #include <sound.h>
#include "HardwareSerial.h"
#include "DFRobotDFPlayerMini.h"
HardwareSerial mySoftwareSerial(1);
DFRobotDFPlayerMini myDFPlayer;
void sound_init(int rx_pin, int tx_pin){
mySoftwareSerial.begin(9600, SERIAL_8N1, rx_pin, tx_pin); // speed, type, RX, TX
Serial.begin(115200);
Serial.println()... |
93891826a57330f8bdc84925e9e6b4f1e245b415 | 0eb12fdd27a10e7697153cfce43d9c35a70ba578 | /StuCPPFirst/main08.cpp | 14933acdf4706f9a03c938090f2a4703504d58ad | [] | no_license | VonsName/StuCPPFirst | a180351f52e30b4ecf35726c381e15642cd6e17f | de900889a7986d61ee2c76c303e559bf6b4060d7 | refs/heads/master | 2020-03-27T10:27:08.691499 | 2018-09-01T12:19:55 | 2018-09-01T12:19:55 | 146,421,075 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,341 | cpp | main08.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <assert.h>
using namespace std;
class Name
{
public:
Name();
~Name();
Name(const Name &rn);
Name(const char *name);
public:
char *getName()
{
return name;
}
private:
char *name;
};
Name::Name()
{
}
/**
* 拷贝构造函数,自己实现深拷贝
*/
Name::Name(const char ... |
8b69c69e7af40a65f7d3ec108838a469e0344f9e | f5e2ec3042ee7b186df00cf9cf6598c70f7dfb5f | /16-3sum-closest.cpp | 6e843a4af5e77eab30b38df91daa17829a11213f | [] | no_license | gaocegege/MyLeetcode | b911b6de29f26f734ac91033170efe0138521225 | 7f122b3f83eea1db62cfdca2640bb00ebceb4401 | refs/heads/master | 2021-01-19T17:47:55.789939 | 2016-11-01T13:52:38 | 2016-11-01T13:52:38 | 32,554,802 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | cpp | 16-3sum-closest.cpp | #include <iostream>
using namespace std;
class Solution()
{
int threeSumClosest(vector<int> &num, int target)
{
int sz = num.size();
int front = 0;
int rear = sz - 1;
sort(num.begin(), num.end());
int resSum = num[0] + num[1] + num[2];
int res = abs(resSum - target);
for (int i = 0; i < sz; i++)
{
... |
43b36c644e18c9462840c106465416a7c77eb32d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5695413893988352_1/C++/noxwell/contest.cpp | e4b1f3545de1d9a9eaac725307c17d072b401e67 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 5,450 | cpp | contest.cpp | #pragma comment (linker, "/STACK:256000000")
#define _USE_MATH_DEFINES
#define _CRT_NO_DEPRECEATE
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <iomanip>
#include <fstream>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <cstring>
#include <vector>
#include <utility>
#inclu... |
0c83ead2d80644c60cb6b81d5bf61f5648ea715f | e5c991f8509075eac3a8cad5009c36a94e296a3d | /fpga_labs/S05/CH02/HLS/skin_detect/solution1/syn/systemc/AXIvideo2Mat.h | be772039d72ded019b071222564050ce1c35a145 | [] | no_license | fdu2020/2020 | c18a5c1a76b48baaacbd1cdcecca9e11d0876368 | c2ebfff8c77017a10c697edc0ae49ea473ab9efa | refs/heads/master | 2022-12-01T07:13:43.717995 | 2020-08-06T06:36:06 | 2020-08-06T06:36:06 | 281,705,104 | 0 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 10,275 | h | AXIvideo2Mat.h | // ==============================================================
// RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC
// Version: 2018.3
// Copyright (C) 1986-2018 Xilinx, Inc. All Rights Reserved.
//
// ===========================================================
#ifndef _AXIvideo2Mat_HH... |
d4848192be2cebe3c420c01c6580af81f6f4db56 | af6838bd0efd21b499dce8a8ed3ca61ff631dfd0 | /Module 3 Projects/minmax.cpp | 6469af4e68894aac643c951f7069b465724ab921 | [] | no_license | EJAtwood/CS-161-Projects | 8317925e6bd646cefcccc268e242287f19b39e23 | ab0bb076e6beee00374dd4139b9ddb743774490a | refs/heads/master | 2020-07-13T06:29:15.465143 | 2019-08-28T21:17:10 | 2019-08-28T21:17:10 | 205,017,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,997 | cpp | minmax.cpp | #include <iostream>
int main () {
int userInteger; //number of integers user wants to inputr
int number; //counter variable
int userIntEnter; // user input for set of integers
int maxNum; //used to assign max value from user
int minNum; //used to assign min value from user
//disaplys prompt for user
std::co... |
55cf6bd4c0b4a0e66124bcc366d8f38c95e64b68 | 169251c757f13d19b52ca3443fe4140ee6ceb5a8 | /source/2019.08.08/库致远/sequence.cpp | 1f908b9e6b881b1962d06b8806f55ce6d82810b3 | [] | no_license | kcudcigam/Problems | e394dd75539f69107e2987126036f2638aeaf4e2 | a53b473b9a5df5d91da13d52aba1c59ce1bc5a53 | refs/heads/master | 2023-07-25T06:26:40.350993 | 2019-08-29T11:24:07 | 2019-08-29T11:24:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | cpp | sequence.cpp | #include<bits/stdc++.h>
using namespace std;
template <typename T> void read(T &x){
int f=1;x=0;char c=getchar();
for (;!isdigit(c);c=getchar()) if (c=='-') f=-f;
for (; isdigit(c);c=getchar()) x=x*10+c-'0';
x*=f;
}
int n,m,l,r,s,e;
long long a[500005],kzy;
int main(){
freopen("seq... |
c059507b9f15e1df0befd33b279a4f8254ccc20a | fdf8d0ecc667ad5212ad975f1982e0bf33765179 | /include/libada/Ada.hpp | 214ec64835448a0bd0a54f33d5d12a1ea7930815 | [
"BSD-3-Clause"
] | permissive | personalrobotics/libada | 55b099568e4c4b543e702b51102579d35c7e1125 | f34e88b5d805065e85190fdd526f79875b075fc2 | refs/heads/master | 2023-04-27T16:29:42.425965 | 2023-04-15T23:29:27 | 2023-04-15T23:29:27 | 127,351,940 | 7 | 2 | BSD-3-Clause | 2023-01-16T21:55:54 | 2018-03-29T22:01:14 | C++ | UTF-8 | C++ | false | false | 9,266 | hpp | Ada.hpp | #ifndef LIBADA_ADA_HPP_
#define LIBADA_ADA_HPP_
#include <chrono>
#include <future>
#include <memory>
#include <Eigen/Core>
#include <aikido/common/ExecutorThread.hpp>
#include <aikido/common/RNG.hpp>
#include <aikido/constraint/Testable.hpp>
#include <aikido/constraint/TestableIntersection.hpp>
#include <aikido/cons... |
453981d189b701dbe230b0a5e3801f1b27b0f191 | 7ab3757bde602ebe0b2f9e49d7e1d5f672ee150a | /template/src/libtemplate/Symbol.cpp | 147dd11271d5c2bc8efd5854142aa492a56b9850 | [
"MIT"
] | permissive | brucelevis/easyeditor | 310dc05084b06de48067acd7ef5d6882fd5b7bba | d0bb660a491c7d990b0dae5b6fa4188d793444d9 | refs/heads/master | 2021-01-16T18:36:37.012604 | 2016-08-11T11:25:20 | 2016-08-11T11:25:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 334 | cpp | Symbol.cpp | #include "Symbol.h"
#include "Sprite.h"
namespace etemplate
{
Symbol::Symbol()
{
}
Symbol::~Symbol()
{
}
void Symbol::Draw(const s2::RenderParams& params, const ee::Sprite* spr) const
{
}
sm::rect Symbol::GetSize(const ee::Sprite* sprite) const
{
return sm::rect(sm::vec2(0, 0), 200, 200);
}
void Symbol::LoadReso... |
06455570113890a7735f83b9a57ae1a2b3729940 | 195e0e06d409e663d0a4f3eb964b56d278de7a95 | /Escape-From-Ethically-Questionable-Labs/character.cpp | 64a1ccc11ad76288dbec36aa21246b420c6146b4 | [] | no_license | JasonCFisher/Sample-Coarsework | ee73e6e3a0070a5502da4c88cd00368e418ce50f | 1eca8f09117fbd6c4adc5807b33e701c5dca33e7 | refs/heads/master | 2021-01-19T04:20:16.673570 | 2016-06-15T22:32:23 | 2016-06-15T22:32:23 | 61,242,555 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,816 | cpp | character.cpp | /****************************************************************************
**Program Filename: character.cpp
**Author: Jason Fisher
**Date: 3/3/2016
**Description: character.cpp File for Final Project
**Input:
**Output:
****************************************************************************/
#includ... |
7fab5422af31ee7ccd57169e7e184e6ce34d2afb | 717ee95b70a35672791199458bba9f125f29361a | /third.ino | d1955936e23869f7fa4f38d578b1ec77132a26af | [
"Apache-2.0"
] | permissive | GodofDragons/Smart-Drinks | adf19b511d07054e4b835b0f022208a19a758f5b | 284b2af13b6d9233da19baa1ab296c7b4b3da19e | refs/heads/master | 2020-04-04T15:09:08.786852 | 2018-11-04T18:14:58 | 2018-11-04T18:14:58 | 156,026,174 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 908 | ino | third.ino | int trigPin = 10;
int echoPin = 9;
int pumpPin = 13;
int heightInputPin = A4;
long duration, distanceCM, height;
long heightFill;
void setup() {
Serial.begin(9600);
pinMode (trigPin, OUTPUT);
pinMode (echoPin, INPUT);
pinMode (heightInputPin, INPUT);
pinMode(pumpPin, OUTPUT);
long totalHeight = getDistan... |
8277801ea2ca90b38c1c9568cf9f1e0c21324441 | 1164e110181e49c66f1e09fef6a27b5ac8e8621c | /libs/beacon/include/beacon/trusted_dealer.hpp | 06b1aac951042df85b4f60d5c2b0a363bc334bd7 | [
"Apache-2.0"
] | permissive | fetchai/ledger | 3d560d7f75282bc4c4f08c97a9954100bf6e7257 | c49fb154ec148518d72d4a8f3d2e9b020160d5dd | refs/heads/master | 2021-11-25T06:44:22.761854 | 2021-11-18T09:21:19 | 2021-11-18T09:21:19 | 117,567,381 | 82 | 55 | Apache-2.0 | 2021-11-18T09:28:30 | 2018-01-15T16:15:05 | C++ | UTF-8 | C++ | false | false | 2,100 | hpp | trusted_dealer.hpp | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// 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 Licen... |
6b29134b1b5a8e20d405eead738cea1cdbe88e0c | 2af921e619dead8071ca824bd96a7b9c22a7edd3 | /week07/Practise/Exercise1/main.cpp | ee4516cc74b15906fedd076fd23a2360f94ebf56 | [] | no_license | green-fox-academy/Soulmast3r01 | d1d5fd40b6c40b8d8acd912074dea4302da21c17 | 3426772fb68cc494853db6c161388825adcf30b9 | refs/heads/master | 2020-04-02T17:33:41.075636 | 2019-01-10T16:21:58 | 2019-01-10T16:21:58 | 154,662,186 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | cpp | main.cpp | #include <iostream>
#include <vector>
int matrixSum(std::vector<std::vector<int>>matrix);
int main() {
std::cout << "Hello, World!" << std::endl;
return 0;
}
int matrixSum(std::vector<std::vector<int>>matrix)
{
int counter = 0;
for (int i = 0; i <matrix.size(); ++i) {
if(i % 2 == 0){
... |
07acbb6028fe459e8c51242340354c6b30fd0463 | 7acc93d31b1fad7f0f71625116a7d372ca37c80c | /src/optimization/iSAM2Optimizer.cpp | d93bc6fa1281c0778eb3c20c58e1fd03e23480b7 | [
"MIT"
] | permissive | KMS-TEAM/vi_slam | bcb4b4b7393e395d8861e1c4aae24622f0b0d7b0 | 4cb5ae94bfecef5758f809d84e135e574b4fb860 | refs/heads/main | 2023-06-14T18:21:14.431529 | 2021-07-12T17:08:56 | 2021-07-12T17:08:56 | 384,636,583 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,233 | cpp | iSAM2Optimizer.cpp | //
// Created by cit-industry on 11/07/2021.
//
#include "vi_slam/optimization/iSAM2Optimizer.h"
#include "vi_slam/basics/yaml.h"
namespace vi_slam{
namespace optimization{
using namespace datastructures;
using namespace gtsam;
using namespace std;
iSAM2Optimizer::iSAM2Optimizer(... |
43242fa48e8cd7081bb108455f7c25f19617824b | cd954f06232e3b9fe008f9a6291689e75f179a88 | /acwing/算法竞赛进阶指南/0x08-总结与练习/117. 占卜DIY.cpp | bba037beaa813bf59d0dfe3f8832e90752d006b2 | [
"MIT"
] | permissive | upupming/algorithm | 35446f4b15f3a505041ac65c1dc6f825951d8e99 | a3807ba05960b9025e55d668ef95b3375ae71895 | refs/heads/master | 2023-08-09T03:07:18.047084 | 2023-08-01T05:57:13 | 2023-08-01T05:57:13 | 217,478,998 | 239 | 34 | MIT | 2021-08-13T05:42:26 | 2019-10-25T07:41:19 | C++ | UTF-8 | C++ | false | false | 1,194 | cpp | 117. 占卜DIY.cpp | /*
除了 K 以外,其他牌具有对称性,但是为了进行下标索引,还是需要转为数字
支持放在堆上面,又要从底下抽取一张,可以用 deque 来存储牌
仔细分析一下,放在上面这个过程只需要计数即可,不必真正的放入,可以直接用 vector 就行
模拟一下整个过程即可
*/
#include <iostream>
#include <map>
#include <vector>
using namespace std;
map<char, int> m{{'A', 1}, {'0', 10}, {'J', 11}, {'Q', 12}, {'K', 13}};
vector<int> d[14];
// 统计正面朝上的数的个数
int ... |
968b45a263622c973f78a9ce245321286e8c409b | db6f3e6486ad8367c62163a4f124da185a64ab5d | /include/retdec/loader/loader/segment.h | 4e1697c55e3ff76294de98177740c814c66fe705 | [
"MIT",
"Zlib",
"JSON",
"LicenseRef-scancode-unknown-license-reference",
"MPL-2.0",
"BSD-3-Clause",
"GPL-2.0-only",
"NCSA",
"WTFPL",
"BSL-1.0",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | avast/retdec | c199854e06454a0e41f5af046ba6f5b9bfaaa4b4 | b9791c884ad8f5b1c1c7f85c88301316010bc6f2 | refs/heads/master | 2023-08-31T16:03:49.626430 | 2023-08-07T08:15:07 | 2023-08-14T14:09:09 | 113,967,646 | 3,111 | 483 | MIT | 2023-08-17T05:02:35 | 2017-12-12T09:04:24 | C++ | UTF-8 | C++ | false | false | 2,349 | h | segment.h | /**
* @file include/retdec/loader/loader/segment.h
* @brief Declaration of segment class.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#ifndef RETDEC_LOADER_RETDEC_LOADER_SEGMENT_H
#define RETDEC_LOADER_RETDEC_LOADER_SEGMENT_H
#include <cstdint>
#include <memory>
#include <string>
#incl... |
bb51459404041d9f19193de92027421f4d91f0fe | 20d8e57f4ba8f3984b0eed25be774670f060ef5d | /999_exe/trunk/plugins/web_plugin_factory.cpp | 2d389bbe0593c33c2cbec215947e1dbe5f46d4b2 | [] | no_license | brBart/project-999 | 86a4806df73522cd93c6d479a0a73a62ebb9e59c | 25859f1f3926feb9e044a865d6c96093943fbe55 | refs/heads/master | 2020-03-27T20:52:57.499396 | 2012-04-22T19:16:06 | 2012-04-22T19:16:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,230 | cpp | web_plugin_factory.cpp | /*
* web_plugin_factory.cpp
*
* Created on: 31/05/2010
* Author: pc
*/
#include "web_plugin_factory.h"
/**
* @class PluginFactory
* Class in charge of creating or passing widgets to the QWebPage for display.
*/
/**
* Constructs a PluginFactory.
*/
WebPluginFactory::WebPluginFactory(QObject *parent) :... |
1cd1711e02160d9999c683f5bdd1c54ac31e2f4f | b86d4fe35f7e06a1981748894823b1d051c6b2e5 | /UVa/10784 Diagonal.cpp | 9469d14bb6684df5ab95df5f054be647a8e730f8 | [] | no_license | sifat-mbstu/Competitive-Programming | f138fa4f7a9470d979106f1c8106183beb695fd2 | c6c28979edb533db53e9601073b734b6b28fc31e | refs/heads/master | 2021-06-26T20:18:56.607322 | 2021-04-03T04:52:20 | 2021-04-03T04:52:20 | 225,800,602 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 569 | cpp | 10784 Diagonal.cpp | #include <math.h>
#include <stdio.h>
int nCr(int n, int r) {
if(r>n) {
printf("FATAL ERROR"); return 0;
}
if(n==0 || r==0 || n==r) {
return 1;
} else {
return (int)lround( ((double)n/(double)(n-r)/(double)r) * exp(lgamma(n) - lgamma(n-r) - lgamma(r)));
}
}
int nPr(int n, int r) {
... |
0e1b767b7752cadb9706ef25ed02c10eca061bf0 | 0591bffd540504c2e5fc9bcab71e2c7f833b4787 | /i2cs_ping_attiny.ino | 75c143e5b01d03e918d9acd2bb0cb1ccfb09ef01 | [
"MIT"
] | permissive | omzn/i2cs_ping_attiny | c5459d0094794e3e6370ef3f4300fcd745708bf0 | edd42a44b95b09d33e58d3f6fee228a04e872a6a | refs/heads/master | 2021-01-10T05:55:42.786993 | 2016-03-28T13:27:55 | 2016-03-28T13:27:55 | 50,355,769 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,784 | ino | i2cs_ping_attiny.ino | /*
* Usage write: low_th high_th
* read : distance
*/
#include <TinyWireS.h> // Requires fork by Rambo with onRequest support
#include <TinyNewPing.h> // NewPing library modified for ATtiny
//#include <EEPROM.h>
#define LED_R_PIN (1)
#define LED_G_PIN (4)
#define TRIG_PIN (3)
#define... |
d02bdb740222a38c8866609bf4c44340ee9cfe9f | 7878f4ca118be351c37ecf33ee449521f37c7012 | /ShellProject/computer.h | f4e9d342659210bcf88263039ed9dca860c17087 | [] | no_license | Vaerish/My-Linux-File-manager | 76602880f16c174130119b80be3b0da10249f9ac | befe054b37a48477b042a2e3976d37884931eff9 | refs/heads/master | 2021-02-13T17:53:46.147830 | 2019-12-07T00:38:53 | 2019-12-07T00:38:53 | 244,718,502 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 63,881 | h | computer.h | #include <vector>
#include <iostream>
#include "node.h"
#include <limits>
#include <sstream>
#include <map>
#include <string>
#include <random>
#include "schedulers.h"
#ifndef COMPUTER_H
#define COMPUTER_H
extern bool doneCore;
extern vector<Process> core1;
extern vector<Process> core2;
extern vector<string> schedHist... |
0fb5e65df47d6f63557b31993aed54a24f239bbb | c635ff855ce2fdbae22c402a683af44d41beee44 | /Compucell/include/CompuCell3D/CompuCell3D/Field3D/Field3DImpl.h | df57c519641f94a6892dd8d266fa7ee2e43ad3d8 | [] | no_license | teinvdlugt/ru-modellenpracticum | d2ff87c6253429c3c5a55a3b60c9e9cdcc6eaf44 | d1a1ba344fdddd4cab988cd265d64665b612bbac | refs/heads/master | 2022-11-20T19:09:07.504230 | 2020-07-10T14:32:32 | 2020-07-10T14:32:32 | 256,532,365 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,529 | h | Field3DImpl.h | /*************************************************************************
* CompuCell - A software framework for multimodel simulations of *
* biocomplexity problems Copyright (C) 2003 University of Notre Dame, *
* Indiana *
* ... |
f0f3926f55539bd99523b991128b86b204a5d070 | 1489fb78dfe5d612de7f81e3019f70215dad15c9 | /discord.cpp | 14725321606a4508b53d69db6fc1c00eda0613e2 | [] | no_license | Kawa-oneechan/Asspull3X | 3222223c676a6b315b4d81c09deb084e1d2d92bb | 095a4c347d44695042d095ea72c102a04ec03418 | refs/heads/master | 2023-09-02T19:44:33.810347 | 2023-08-29T12:36:43 | 2023-08-29T12:36:43 | 209,994,262 | 27 | 5 | null | 2022-06-02T18:34:01 | 2019-09-21T13:56:29 | C | UTF-8 | C++ | false | false | 2,300 | cpp | discord.cpp | #include "asspull.h"
#include <discord_rpc.h>
#include <time.h>
namespace Discord
{
bool enabled = false;
const char* ApplicationId = "709359522732441653";
typedef void (WINAPI* INITIALIZEPROC) (const char* applicationId, DiscordEventHandlers* handlers, int autoRegister, const char* optionalSteamId);
typedef voi... |
6f1dbae0185ac7b21428d61b56a4b16f0709d6bc | 43dbc05549b8b9ffe067791c2564aeb150f9fe89 | /10452 - Marcus.cpp | c94d500cf9547d9d7574eb77ac0ed724a4ca43e9 | [] | no_license | maruf-rahad/uva | d985f526d2eec45e34785ef10fb2c8402e7c620b | f8a1e2cf8335f64cbab94461dd3f45bb68e15077 | refs/heads/master | 2023-02-04T04:36:33.272863 | 2020-12-27T08:02:42 | 2020-12-27T08:02:42 | 292,663,715 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,542 | cpp | 10452 - Marcus.cpp | #include<bits/stdc++.h>
using namespace std;
char letter[7] = {'I','E','H','O','V','A','#'};
char ch[10][10];
int r[4] = {0,0,1,-1};
int c[4] = {1,-1,0,0};
int flag = 0;
int flag2 = 0;
int n,m;
void makestep(int x,int y,int xx,int yy)
{
if(flag2==1)printf(" ");
flag2 = 1;
if(abs(x-xx)==1)printf("forth");
... |
b0641af60704c43c5b20b7bba8ffd80ea03bbe11 | 065e4598998ce8b78b12dedd48585fb4b2930033 | /运算符重载/testVec2d.cpp | 1c4a51a2e9e50d3d9bb21d324610a2f0ed1827e7 | [] | no_license | zhuzhu18/C-CPP-learning | ace73a997fb79d5ea96536497cf34b6c1c112e56 | 5852e7f622f49fefb9abdc37bb74bfc8b41ad58a | refs/heads/master | 2023-04-27T10:26:33.304376 | 2023-04-17T00:06:12 | 2023-04-17T00:06:12 | 191,556,152 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 382 | cpp | testVec2d.cpp | #include <iostream>
#include "Vec2D.h"
using namespace std;
int main() {
Vec2D v1{ 2, 3 }, v2{ 3, 4 };
cout << v1.toString() << endl;
cout << (v1 + v2).toString() << endl;
cout << (2 + v2).toString() << endl;
v1 += v2;
cout << v1.toString() << endl;
v1[0] = 10; // ÐÞ¸Äv1[0]
cout <... |
b20575457c231206658ab7352374142e100f7ad6 | 4044f3d0accc6e75141f9428c1a892bfce6256e9 | /src/fix_split_file.cpp | 8b7dceaca4adb212b388c4d3c89731e99dab4378 | [
"BSD-3-Clause"
] | permissive | OuyangJunyuan/annotate-for-category | 48facceb4dc3a9b528944e2ce049992a360efc83 | d1816dfdf57e8f98eb2736da89a4b766930bdc77 | refs/heads/master | 2023-02-24T21:10:53.474735 | 2021-01-28T10:09:09 | 2021-01-28T10:09:09 | 331,904,522 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,898 | cpp | fix_split_file.cpp | //
// Created by ou on 2021/1/26.
//
#include <yaml-cpp/yaml.h>
#include <iostream>
#include <QFile>
#include <QDebug>
#include <QDir>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonObject>
#define CONFIG_FILE "/home/ou/workspace/ros_ws/ironworks_ws/src/tools/my_annotate/config/annodate.yaml"
using name... |
92c14786c19be5eaa3e852fac64ddf172401bd5b | 8508f45dd15ebcad0f9f30c706f78d3524bf833c | /src/OccEdge.cpp | ac7144b746bb47a23fcbb3b0dfb090826da33b50 | [] | no_license | ezzieyguywuf/OccWrapper | 7812b255d4086904fff2593684bbf4857d2ee151 | 1284aaec7bf3bbfc58d423764048cdab9062f127 | refs/heads/master | 2021-07-17T13:57:42.779220 | 2021-05-19T15:37:13 | 2021-05-19T15:37:13 | 124,664,015 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 455 | cpp | OccEdge.cpp | #include <OccEdge.h>
#include <ShapeAnalysis_Edge.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS.hxx>
using Occ::Edge;
Edge::Edge(const TopoDS_Edge& aEdge)
: Shape(aEdge)
{}
bool Edge::overlaps(const Occ::Edge& anEdge, double tolerance) const
{
TopoDS_Edge myEdge = TopoDS::Edge(this->getShape());
Topo... |
1a7ed657b616d1839c00c060d4b49b0f7647724e | 6ec56b18388c28b31d5586a914f1e103b2dc0475 | /SkeletonPuzzleSlam/Attachment.h | 85b1397fae587ba9aa9a92da53c2d597d5ddaa25 | [] | no_license | binhcoding/puzzle-game | 404e9755a8b7764cd73358553e374d3de4b87b10 | a2aaef4edc00cf9ca3c48e9f65899021b8aa6b60 | refs/heads/master | 2021-01-10T22:10:08.066970 | 2015-03-06T02:56:38 | 2015-03-06T02:56:38 | 31,749,548 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 466 | h | Attachment.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameTypes.h"
#include "Attachment.generated.h"
/**
*
*/
UCLASS(Blueprintable)
class UAttachment : public UStaticMeshComponent
{
GENERATED_UCLASS_BODY()
// positive effects of this data
UPROPERTY(EditDefaultsOnl... |
afd0369236c620058169c03a7c554443e07d8e6f | 239907bfd927f0b35848a9a133c0be64cc1e1ac0 | /src/lib/plusula/ExtUUID.cpp | aff617182f8c89e81422e2b384429fa255bb57ea | [] | no_license | kulhanek/abs | 6aa6e279d72af1b510e3d8ccc22d122e375b8ffb | aad1a45d9af418b97a8e21ee96774e2ea122de78 | refs/heads/main | 2023-08-31T23:53:22.708286 | 2023-08-26T13:33:32 | 2023-08-26T13:33:32 | 84,871,208 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,177 | cpp | ExtUUID.cpp | // =============================================================================
// NEMESIS - Molecular Modelling Package
// -----------------------------------------------------------------------------
// Copyright (C) 2010 Petr Kulhanek, kulhanek@chemi.muni.cz
// Copyright (C) 2008-2009 Petr Kulhanek, kulh... |
78e11ad6f063c142213534d31e4b58aae9fb8f92 | ce93985fae06976c8a127f58edaea8501baff07d | /lab_04/lab04/lab04.cpp | 04a82974e1b757406ab474a0d3619bb14043d7ff | [] | no_license | anhud/poly_cpp | 27276ec06c2e2e647345f9cdab563d99da5a1c87 | 5be575e77b59e08055e26bff819f06a5d7c0ce24 | refs/heads/master | 2023-01-31T01:33:56.252671 | 2020-12-15T14:40:02 | 2020-12-15T14:40:02 | 290,545,699 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,161 | cpp | lab04.cpp | // lab04.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
//
#include "pch.h"
#include "drawfunc.h"
#include "glutfunc.h"
#include <iostream>
void main(int argc, char **argv)
{
menu_system menus_;
MenuInit("menu.txt");
MenuOpen(0);
glutInit(&argc, argv);
glutInit... |
d8cecf5e2eaa73f24bfc4e333c4b2b51238eb164 | 049b53634c6f2b7f01edafcf98ddcb546fb57684 | /test/ss_handle_test.cc | 8c3934f923b85cab20064370e0be971ec8f800a5 | [] | no_license | hhhizzz/libshadesocks | a533c721ce1e8cb95289346dc46ba8e9c8f49f36 | e9f3fb4c5b8f3475f72df0f730690be6707306ec | refs/heads/master | 2020-07-01T20:30:59.917738 | 2019-10-17T14:48:43 | 2019-10-17T14:48:43 | 201,291,974 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,520 | cc | ss_handle_test.cc | #include "ss_test.h"
namespace shadesocks {
TEST(ShadeHandleTest, ReadDataTest) {
auto* stream = new uv_stream_t{};
stream->loop = uv_default_loop();
ShadeHandle shade_handle(stream);
stream->data = &shade_handle;
auto block = Util::StringToHex(
"7396C95A33DFFA3042FF661FF0B85155268EF14E148EBFD1638AF6... |
f266fe146a4bef6e16ebd6c6303b1a2250882513 | e2431caf49c0fb3d1e794f11ac50106d800c55f2 | /RatWalkCore/Project.cpp | 8e0526e6875828e8e0c8380b68e207e05e67e1b7 | [] | no_license | CristianDavid/QtRatWalk | 93ae50345c3dd2e82335a5fcb91f921747a9836e | a43b4951f9f52e966da71521fcee601a7e6d23e1 | refs/heads/master | 2021-01-19T12:39:33.078739 | 2017-04-28T21:10:22 | 2017-04-28T21:10:22 | 82,329,468 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,311 | cpp | Project.cpp | #include "RatWalkCore/Project.h"
#include <unistd.h>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <... |
77ffd366b460a7676e54066d8b541b746fb83b77 | c7d88b6163c430293067a3915ca3456820c085cd | /FrmMain.h | 8588a61413c6e6cd82c9ead0a15a1274647f4fae | [] | no_license | tmarkson/Cubesense | c068e6707b4bce5c2da26d1123c49e7a4e66c55c | 49127e18a6886b9827d7ef9ff54ba6d379c0365d | refs/heads/master | 2021-01-15T13:44:30.345653 | 2012-07-13T15:29:04 | 2012-07-13T15:29:04 | 5,010,362 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 43,273 | h | FrmMain.h | #pragma once
#include "Ids.h"
#include "FrmFrames.h"
#include "FrmScriptSource.h"
#include "FrmScriptOutput.h"
#include "FrmNew.h"
#include "Handler.h"
#include "Threads.h"
#include "WndProc.h"
#include "Script.h"
#include "Log.h"
using namespace System;
using namespace System::ComponentModel;
using ... |
397f7082148fe19eeeadcbf8dada3ab9adfb4108 | ad66f2291c1ac449d6451305d97474dc13847601 | /Cpp_2DSTG_3/Cpp_2DSTG/UI.h | f6ee7b9434c7fd3285bba8dca52c867cf05f6401 | [] | no_license | reima22/test_reima | bd3fd338dc3044d0a88b300b2113979f79de06ac | ff10e3ca889f332a2800abade97fd21fa8e4d905 | refs/heads/master | 2023-07-17T23:50:48.522442 | 2021-09-08T04:25:34 | 2021-09-08T04:25:34 | 404,206,740 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 880 | h | UI.h | //=============================================================================
//
// UI描画処理 [UI.h]
// Author : Mare Horiai
//
//=============================================================================
#ifndef _UI_H_
#define _UI_H_
#include "main.h"
#include "scene.h"
// 前方宣言
class CPolygon;
//=... |
62ee82b5dd02caae77e3a8b367af09234a1c50eb | 1004816de8f435d930167ec03e7196f3d033db1f | /Rpkg/src/rutils.h | 9f72da8ea6146175ec3e02df325bbca6b6304e95 | [
"Apache-2.0"
] | permissive | zheng-da/FlashX | 04e0eedb894f8504a51f0d88a398d766909b2ad5 | 3ddbd8e517d2141d6c2a4a5f712f6d8660bc25c6 | refs/heads/release | 2021-01-21T09:38:24.454071 | 2016-12-28T08:51:44 | 2016-12-28T08:51:44 | 19,077,386 | 22 | 11 | null | null | null | null | UTF-8 | C++ | false | false | 1,444 | h | rutils.h | #ifndef __R_UTILS_H__
#define __R_UTILS_H__
/*
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by Da Zheng (zhengda1936@gmail.com)
*
* This file is part of FlashR.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... |
9d837ccd5ed1ebf0f10b1e484e4311bdc2a6fb88 | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /paddle/fluid/platform/resource_pool.h | 737001a50abbf1d710310e87b5e118f3ba59f93a | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | C++ | false | false | 2,925 | h | resource_pool.h | // Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
9e3a5c3cd3c10cffcbfa73e8cd831f78918b94dc | 6eb9adc73c4bc64b891ea0309edbff29b8088ac3 | /TrekStar/Genres.cpp | ac4de95911c7a5f88639765381351f65130f6446 | [] | no_license | jpmono416/TrekStar-Pictures | 1cc0c1202bfd2c044b5c2b2407fb87a351a8fe4b | fb88c8b5816cb164e6a38e699b24a38483d01882 | refs/heads/master | 2020-05-16T07:11:24.033730 | 2019-04-28T22:37:14 | 2019-04-28T22:37:14 | 182,872,725 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 394 | cpp | Genres.cpp | #include "pch.h"
#include "Genres.h"
Genres::Genres()
{
}
Genres::~Genres()
{
}
void Genres::setID(int id)
{
this->id = id;
}
std::string Genres::getGenre()
{
return this->genreList.at(id);
}
std::basic_ostream<char, std::char_traits<char>>& operator<<(std::basic_ostream<char, std::char_... |
b0a4231b55ff2927ad8390b3338fbed4c59d6654 | ae2fd79e8b46fb1f4c9fc1f5575df594c2033917 | /WiiRemoteSensor.cpp | 6aa089719be23f957f1803a1bb86acce757d79ac | [] | no_license | bertelkirk/wiiDemoRollPitch | 98ea9480c5f61eb06a7080fe7b98502ce04b203e | 76fcc06083084ca0fb7c4af25754a4673d8c76db | refs/heads/master | 2020-04-01T11:46:24.983017 | 2018-10-15T20:51:05 | 2018-10-15T20:51:05 | 153,176,965 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,168 | cpp | WiiRemoteSensor.cpp | #include "WiiRemoteSensor.h"
#include "SensorThread.h"
#include <cstdio>
#include <QDebug>
WiiRemoteSensor::WiiRemoteSensor(QObject *parent) : QObject(parent)
{
SensorThread *thread = new SensorThread();
thread->mpParent= this;
thread->start();
}
void WiiRemoteSensor::runThread(){
bool r... |
e84b58f000d2bc1faa7425392e0885b1c23fbf93 | bd288d119b361df94228f1951b62f6a3e4418301 | /tests/test_validation.cc | 5b5ad48bde685e8a1b4c60a8284a9c4d4ab7cfdb | [
"Apache-2.0"
] | permissive | Labs64/NetLicensingClient-cpp | bd66145bf19bd841a18bc33ce79c13c295542722 | 438114e353dca6eaee1ac522b8f9f6c3e31b8e9d | refs/heads/master | 2022-12-06T19:59:02.884222 | 2022-11-22T11:47:46 | 2022-11-22T11:47:46 | 49,488,287 | 12 | 4 | Apache-2.0 | 2022-11-22T11:47:48 | 2016-01-12T09:11:13 | C++ | UTF-8 | C++ | false | false | 1,434 | cc | test_validation.cc | #ifndef WIN32
#define BOOST_TEST_DYN_LINK
#endif
#include <cassert>
#include <boost/test/unit_test.hpp>
#include "common.h"
#include "netlicensing/mapper.h"
#include "netlicensing/validation_result.h"
#include "netlicensing/traversal.h"
BOOST_AUTO_TEST_SUITE(test_licensee_validation)
BOOST_AUTO_TEST_CASE(test_plain... |
d4fdbccb60448c0fcd61b8b097ba722b2b5bce8e | 90222aeecc3eb746bf202ea397a8ed9fe0b19ff0 | /Projects/engine/graphics/renderers/gfw_renderer.cpp | 3a37b170d1c3c50c825f172bbbd53b114c443975 | [
"MIT"
] | permissive | Octdoc/SevenDeities | 5385264ec87e1775b6784cf41c711e970544c50e | 648324b6b9fb907df93fdf2dfab7379369bdfe9e | refs/heads/master | 2020-03-28T06:09:20.015284 | 2018-09-12T13:19:52 | 2018-09-12T13:19:52 | 147,817,141 | 0 | 0 | MIT | 2018-09-11T18:06:01 | 2018-09-07T11:55:27 | C++ | UTF-8 | C++ | false | false | 554 | cpp | gfw_renderer.cpp | #include "gfw_renderer.h"
namespace gfw
{
void Renderer::SetSky(SkyDome::P sky)
{
m_sky = sky;
}
void Renderer::AddEntity(Entity::P entity)
{
m_entities.push_back(entity);
}
void Renderer::RemoveEntity(Entity::P entity)
{
for (auto e = m_entities.begin(); e != m_entities.end(); e++)
{
if (*e == enti... |
72078a18dd0ffb6ac6e25a1cf4a32b2de11ae704 | a25273242e95a87885b08e6716b58d1c1d34416b | /LABFILES/Lab4/testpolygcd.cc | 6697472283014d9d38d86e47e2ca8be5f5ac7da9 | [] | no_license | liecn/eccbook | 827c84136c51244e5c892cd48dc28a847aa14a56 | 9ac744e181c5d111027f165f759c9fb0f2f5255d | refs/heads/master | 2023-05-26T04:32:07.340345 | 2020-08-19T02:17:33 | 2020-08-19T02:17:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,766 | cc | testpolygcd.cc | //
// Program: testpolygcd.cc
#include <math.h>
#include "ModArnew.h"
#include "polynomialT.cc"
#include "gcdpoly.cc"
// create instantiations of the polynomial class of type ModAr
template class polynomialT<ModAr<5> >;
template class polytemp<ModAr<5> >;
// create instantiations of the polynomial class of type doub... |
8aafafff5be7b3be65bd0a3eb52fe21e59aa6747 | 47210b905e964f5a2346b40129fcf88b30086d7b | /第二套/5/main.cpp | c2227f42a02d0da4ae12f66dd06ed4564365f451 | [] | no_license | a5834099147/c_plus_plus_interview | d1030060632754edd6fe3df57db829e605bb4da9 | 827b459e1f96d3503bfde48dc1041d63599adbeb | refs/heads/master | 2021-01-10T21:37:33.535609 | 2014-09-15T01:16:19 | 2014-09-15T01:16:19 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 736 | cpp | main.cpp | #include <iostream>
using namespace std;
int fun(int)
{
return 0;
}
int main()
{
int a; ///< 一个整形数
int *b = &a; ///< 一个指向整形数的指针
int **c = &b; ///< 一个指向指针的指针, 它所指向的指针是一个整形数
int d[10]; ///< 一个有10个整形数的数组
int* e[10]; ///< 一个有10个指针的数组
int(*f)[10] = &d; ///< 一个指向有10个整形数数组的指针
... |
87d465cefafed327d31c7cbcca1fe8258853e7b2 | 5abefd5ecfc74d925ed2e0051ba435e90303ca6a | /LogSys.h | 04a6742553af293bd9b29dbbd8c50aacc862c04b | [] | no_license | dionysusxie/LOG-Module | cc88986db3b47ba3d7ff1e848cabc378397cb75d | cd3b44159c091487e3c66277c56699e3ca48422b | refs/heads/master | 2020-06-04T02:53:42.137943 | 2013-06-05T12:26:23 | 2013-06-05T12:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 521 | h | LogSys.h | /*
* LogSys.h
*
* Created on: Aug 15, 2012
* Author: xieliang
*/
#ifndef LOGSYS_H_
#define LOGSYS_H_
#include "log_config.h"
#include "Logger.h"
class LogSys {
public:
// static methods:
static LogSys& getInstance();
virtual ~LogSys();
bool initialize(const std::string& config_file);
... |
302ad16b6af2e813d60e75445d60f94259192b7a | 9d46cc993666968d3a90250ea45c57eebd68ceb6 | /GameSource/ja2_v1.13/Build/Tactical/Dialogue Control.h | 7c987d899e5cd9cc38543caca31901e7e493a038 | [] | no_license | janisozaur/ja2_1.13 | 950b014c5636b111af15bf91405445706e730e66 | 9cfeeac7d12a48cb936849964f9578f87d8ba9bc | refs/heads/master | 2021-01-17T16:47:30.573267 | 2016-08-17T06:23:45 | 2016-08-17T06:23:45 | 65,851,027 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 15,726 | h | Dialogue Control.h | #ifndef _DIALOG_CONTROL_H
#define _DIALOG_CONTROL_H
#include "Faces.h"
#include "GameScreen.h"
#include "Soldier Profile Type.h"
#include <vector>
typedef struct
{
UINT16 uiIndex; // add
BOOLEAN EnabledSound;
} SOUND_PROFILE_VALUES;
extern SOUND_PROFILE_VALUES gSoundProfileValue[NUM_PROFILES];
// An enumeration... |
96fd2932af13cbc19aff79f422568f20bf6ed05c | 16991ece2dace37f5742ce1ffb6107ffedd96eee | /countSort.cpp | d0ca0cedb3a202ea8bd589299c5fb8e6cb3cf477 | [] | no_license | thakurutkarsh22/Hacktober-Open | 0e34b9c67404d5c8a4dd853150f6d2418e7ea7ce | 4405cd6cefabac71fbc164baeb66ab00c031d038 | refs/heads/main | 2023-08-13T14:36:59.304283 | 2021-10-19T08:53:37 | 2021-10-19T08:53:37 | 418,843,763 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,041 | cpp | countSort.cpp | #include <bits/stdc++.h>
using namespace std;
int findMax(int arr[], int n) //to find max element of an array
{
int m = arr[0];
for(int i=1;i<n;i++)
{
if(arr[i] > m)
m = arr[i];
}
return m;
}
void countSort(int arr[],int n)
{
int max;
max = findMax(arr,n);
... |
cb37ecc5d9a60caf64a64f6354c2f1b7c475f81d | 29a8845b958d4c45d700afebc233a46b7532379b | /Hackerrank/cut-the-sticks.cpp | 76be7bc8679d0eee49f6674a09b07734efa01576 | [] | no_license | aakashc31/Competitive-Programming | af08efe4297a58ba7de0822fbc79583b92b3f588 | 43b7516d83aebdd84cf6cad0506380885e1e9aec | refs/heads/master | 2020-12-24T18:51:26.581034 | 2016-05-22T13:41:28 | 2016-05-22T13:41:28 | 59,413,653 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,027 | cpp | cut-the-sticks.cpp | #include <bits/stdc++.h>
using namespace std;
#define g(n) scanf("%d",&n)
// #define g(n) inp(n)
#define gl(n) scanf("%lld", &n)
#define f(i,n) for(int i=0; i<n; i++)
#define pb push_back
#define mp make_pair
#define fab(i,a,b) for(int i=a; i<=b; i++)
#define test(t) while(t--)
#define getcx getchar//_unlocked
typede... |
c98365ae668263f311020f51efc4882823b98a71 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir29315/dir29712/dir30926/dir32551/dir32552/dir32553/file32745.cpp | f810005e365745beb4169b63630640b2f1e9c582 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | file32745.cpp | #ifndef file32745
#error "macro file32745 must be defined"
#endif
static const char* file32745String = "file32745"; |
acf09f357e906ba634299a20d2922c574e8b3652 | 144a61df621aac711cbbe6da92fd3e76b2ac64c2 | /igisproject.cpp | 9e6b8724541dc2e356c44474f4ea036087454328 | [] | no_license | jacobflanagan/sylphDataManagement | 32ba35083c2119c03a1c69b1efecf0adc2ae9cfc | 0a2eb2b63e2d8b5fea49f928f34b931e3735396f | refs/heads/master | 2020-06-05T05:13:25.507871 | 2019-06-19T05:50:27 | 2019-06-19T05:50:27 | 192,324,736 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,184 | cpp | igisproject.cpp | #include "igisproject.h"
#include "p4dproject.h"
IGISProject::IGISProject(QDir directory)
{
//create the IGISProject
QString dirString = QDir::toNativeSeparators(directory.absolutePath());
//Check if not a IGIS project, otherwise detele this (make sure to test for null)
if (this->isProject(directory)... |
a335afb61fec7d1a97f5d9f5694e98410f1b52c3 | 0335a5fb8a553f243e29e5aee704238612c6dd11 | /src/Collisions/CollisionalNuclearReaction.h | c4b826b39d92e5900c948e97a7b6b76a58df4c44 | [] | no_license | ALaDyn/Smilei | a91b093da10ae4953e5a8d3397846952029a9979 | 81d858dd97ecbceb71dac804ee009763d50eb836 | refs/heads/master | 2023-07-20T16:56:01.085438 | 2023-07-05T10:13:57 | 2023-07-05T10:13:57 | 62,309,652 | 5 | 0 | null | 2016-06-30T12:41:29 | 2016-06-30T12:41:28 | null | UTF-8 | C++ | false | false | 1,862 | h | CollisionalNuclearReaction.h | #ifndef COLLISIONALNUCLEARREACTION_H
#define COLLISIONALNUCLEARREACTION_H
#include <vector>
#include "Tools.h"
#include "Species.h"
#include "Params.h"
#include "Random.h"
#include "BinaryProcess.h"
#include "NuclearReactionProducts.h"
class Patch;
class CollisionalNuclearReaction : public BinaryProcess
{
public:
... |
6a1bf5908388d09f295dab8fe574d11e42cec1b9 | 682807efe7c3e20cc71c8929a720b2452d8443d6 | /tinystl/construct.h | 962417364af6b3464d13258e9d95c2ff2f37ac66 | [] | no_license | clxsh/tinystl | f61438c4fb5c0f133dcfb8c45c20194442e234f0 | 1dbe6f810dc4cede1030790fd44a2a67dbd37906 | refs/heads/master | 2023-06-06T05:15:52.550938 | 2021-06-30T07:56:52 | 2021-06-30T07:56:52 | 368,804,486 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,017 | h | construct.h | #pragma once
#include <new>
#include "typetraits.h"
#include "iterator.h"
#include "util.h"
/* ref: https://blog.csdn.net/lx627776548/article/details/51888789 */
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4100) // unused variable
#endif
namespace mystl {
// 使用 placement new, 构造对象
templ... |
3bd3d323341f528731f4b4cfdc32278941ccae9f | be6dae26822ba5cbbf921d6926f06d27bd4a298f | /mainwindow.cpp | 14f5c0bf30aa84c95069f65f010a4f24ee2072eb | [] | no_license | mfkiwl/RT-Sim | c5c613e21a06dd3a3ac9894ab0fe5d28f569ef6f | 9ebec0d5b4a46d573919b84006c6a077d1929e94 | refs/heads/master | 2023-03-17T08:49:00.278768 | 2019-06-13T04:50:59 | 2019-06-13T04:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,399 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include <iostream>
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent), ui(new Ui::MainWindow) {
ui->setupUi(this);
// initial draw
initial_draw();
connect(&cur_scene, SIGNAL(newImage(QImage)), this, SLOT(draw_image(QImage)));
connect(this, ... |
4a0094f5b0008e18ecd0fe0529c2e133bd494328 | 107b319c611cfd853cd41b84357c865452e194fd | /C++ Project/02. Destructor/mydestructor.cpp | 7284fc37d5e7f1cf30cc24d2807c6b065e1b7954 | [] | no_license | gelabi-alam/C-Plus-Plus-Programming-practice-Coding | 0521b3fd0e7b7ee1c55969a214d6c2e2a30171bf | 4d55c2e796756d513487541c5a901d55ff801902 | refs/heads/main | 2023-01-23T20:22:13.970605 | 2020-11-27T06:23:06 | 2020-11-27T06:23:06 | 316,417,367 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 223 | cpp | mydestructor.cpp | #include "mydestructor.h"
#include <iostream>
using namespace std;
myDestructor::myDestructor()
{
cout << "Constructor is Called."<<endl;
}
myDestructor:: ~myDestructor()
{
cout << "Destructor is Called."<<endl;
}
|
f654b06ff36a4c0c669d2e22ad3609ad0554c3d3 | bb057b858707a47c421db12d7cc3bb65311cacc2 | /kotlin-native/runtime/src/custom_alloc/cpp/ExtraObjectPage.cpp | 4f04ebad69075d418c25d9919ce787330d629e02 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | JetBrains/kotlin | b6c8922b22b54f4e269fddbbb37b7def4c97d788 | 0dd36ad456b8d67cf5f47ec9fe7428a4ee727b20 | refs/heads/master | 2023-08-28T11:15:27.222417 | 2023-08-25T11:01:10 | 2023-08-28T10:22:04 | 3,432,266 | 51,608 | 7,338 | null | 2023-09-14T09:30:01 | 2012-02-13T17:29:58 | Kotlin | UTF-8 | C++ | false | false | 2,771 | cpp | ExtraObjectPage.cpp | /*
* Copyright 2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
#include "ExtraObjectPage.hpp"
#include <atomic>
#include <cstdint>
#include <cstring>
#include <random>
#include "AtomicStack.hpp"
#include "CustomAllocConstants.hpp"
#in... |
6ffd1f0116f88cc234b745fe6752737e060519d9 | 0532e6996508a5da50194ef0abf6637576238d62 | /BOJ/9000/BOJ_9012.cpp | eeaacaff7e40308efd1cd5f608c8c93b168a1485 | [] | no_license | FYLSunghwan/PS_Practice | 72ca2a22a86d55bef276a6c66cc498d7d49ec664 | 082c63cd5db20a6c2e5a1bcb8d02d2461d115231 | refs/heads/master | 2021-07-23T06:42:23.292683 | 2020-05-30T11:26:21 | 2020-05-30T11:26:21 | 173,923,646 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 453 | cpp | BOJ_9012.cpp | //BOJ 9012
#include <cstdio>
#include <cstring>
int c;
int main() {
for(scanf("%d",&c);c;c--) {
char s[100];
scanf("%s",s);
int cnt=0,ans=1;
for(int i=0;i<strlen(s);i++) {
if(s[i]=='(') ++cnt;
if(s[i]==')') --cnt;
if(cnt<0) {
ans=0;... |
59f6cdaea4436ac5d41f8aee8955276e271b65d5 | 52b6f625a804f07340b451d0273ab9d4263f96fe | /src/third-party/flann/algorithms/center_chooser.h | 77a841722c8c66481faed9eaa359880bea0a781e | [
"BSD-3-Clause",
"MIT"
] | permissive | ppwwyyxx/OpenPano | 62a4cbc79d80a4f10e8cca720a47475f608c2872 | ca1b86f6133c0f1ead82280f1a8355ff2711c5dc | refs/heads/master | 2022-09-27T13:26:20.646101 | 2022-09-20T00:58:48 | 2022-09-20T00:58:48 | 9,639,042 | 1,548 | 477 | MIT | 2022-09-20T00:58:49 | 2013-04-24T03:56:02 | C++ | UTF-8 | C++ | false | false | 6,771 | h | center_chooser.h | /*
* center_chooser.h
*
* Created on: 2012-11-04
* Author: marius
*/
#ifndef CENTER_CHOOSER_H_
#define CENTER_CHOOSER_H_
#include <flann/util/matrix.h>
namespace flann
{
template <typename Distance>
class CenterChooser
{
public:
typedef typename Distance::ElementType ElementType;
typedef typename... |
cba0cd51c541e4a7cd827a6b735af7aa2b4b5e65 | b48480256cf2efd6b995dba5296ab0647d98b8ca | /Skaiciuotuvas/skaiciuotuvas.h | 8980b2da8c3b68b28f17f469af1e1dff34d634d5 | [] | no_license | dovileservaite/skaicius | c55fe1036cd293b0d4709a3677007d5bfed70918 | f91859d6639a116fbe05088769715ae1c7ae6990 | refs/heads/master | 2020-12-30T14:00:38.322510 | 2017-05-14T22:38:55 | 2017-05-14T22:38:55 | 91,275,727 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28,610 | h | skaiciuotuvas.h | #pragma once
namespace Skaiciuotuvas {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Summary for skaiciuotuvas
/// </summary>
publ... |
0a9e1b579a0fd353fe4532d73c89941aa77d6159 | 0b60ced553cb6ccd6c53cdd7eb34c13a499a5053 | /Calculadora/Calculadora/Origem.cpp | 04087c5b0787e970421bfc632baf2e485514f265 | [] | no_license | Ale-Hoffmann/Calculadora- | 763de141098e291c4a7784762f49d8d88cbd061c | 5df457e20b6522ffbcc8374892dc466835297354 | refs/heads/main | 2023-03-28T00:10:45.232437 | 2021-03-11T22:02:07 | 2021-03-11T22:02:07 | 346,172,771 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 520 | cpp | Origem.cpp | #include<iostream>
#include"Calculadora.h"
using namespace std;
int main()
{
Calculadora* calc = new Calculadora;
cout << "A soma dos valores 10 + 5 eh igual a " << calc->soma(10.0f, 5.0f) << endl;
cout << "A subtracao dos valores 10 - 5 eh igual a " << calc->subtracao(10.0f, 5.0f) << endl;
cout << "A Multiplicacao... |
d6b2e324ffa28f6c92afa9d3639734f5b20ac71c | 6889dcc1bd55c309d240142ccba5c979efe37399 | /tests/100_basic_work.cpp | eccbc7e540269b705860931fff0a792196b0925e | [
"MIT"
] | permissive | agnat/ncd | c6e8b3afa8de3228676d114be80b104f87b1e296 | 23c928d101dda3146f7a1701deab9ab00c9937b9 | refs/heads/master | 2021-05-07T09:32:11.528371 | 2017-11-22T00:38:47 | 2017-11-22T00:38:47 | 109,622,900 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,611 | cpp | 100_basic_work.cpp | #include <nan.h>
#include <ncd.hpp>
#include <unistd.h>
namespace {
void
testWorkQueue(Nan::FunctionCallbackInfo<v8::Value> const& args) {
Nan::HandleScope scope;
unsigned items = args[0]->Uint32Value();
unsigned delay = args[1]->Uint32Value();
for (unsigned i = 0; i < items; ++i) {
dispatch(ncd::defa... |
292eecbf939e0026c5c9d10e51e3ad57d3755e02 | 500ff736294001e7fa66000e7c7268c739d901cd | /ex1/loja.h | 532b8eb9c142c8052e27bdcd144fc3591d3e849b | [] | no_license | OnikenX/POO-TP | 015090cc4111b71f1ddcf968596569b23df30f71 | ccab3f1d1e34ce605aa73425fad6270c2f6e0277 | refs/heads/master | 2022-04-02T05:27:31.574921 | 2020-01-10T13:16:02 | 2020-01-10T13:16:02 | 218,657,199 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 191 | h | loja.h | #ifndef LOJA_H
#define LOJA_H
#include "imovel.h"
class Loja : public Imovel
{
public:
Loja(int area);
};
std::ostream& operator<<(std::ostream &out, const Imovel &a);
#endif //LOJA_H |
8bf3106d4aabba60ea08a5bbc028eb23d59dfe17 | 58f070c58fcc3da40cf57101c5e9e80eface0afb | /Graph/DFS/Hard/332.ReconstructItinerary.cpp | 1aefade612d81aaad3500a576751451b40da9472 | [] | no_license | Imran4424/LeetCode-Solutions | ab32c829c8c916f0422f4899bc347accdfc50e0d | 1f0f7a86e2ed74741a001e3ba2a6ea6c68c9b484 | refs/heads/master | 2023-04-08T13:01:46.322323 | 2023-03-25T19:17:14 | 2023-03-25T19:17:14 | 231,453,902 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,700 | cpp | 332.ReconstructItinerary.cpp | /*
You are given a list of airline tickets where tickets[i] = [fromi, toi] represent
the departure and the arrival airports of one flight. Reconstruct the itinerary in
order and return it.
All of the tickets belong to a man who departs from "JFK", thus, the itinerary must
begin with "JFK". If there are multipl... |
488a1515035c413f87ebb0c2c82a5d66c2904a3e | 0e7ac176a65f6b690a13f6b72d0b92ec8dad790d | /tuio/libkerat/kerat/listener.hpp | 3b54dddab465b22965caed5b1fc1fbb245b156e1 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Sitola/MUSE | 4fef9a586dbcd746d9d549ce7e34cd7187549590 | e3b6b6060d853beddfe8cda5e540434536b9e41f | refs/heads/master | 2021-01-12T02:32:49.862578 | 2017-01-12T20:00:09 | 2017-01-12T20:00:09 | 78,058,615 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,733 | hpp | listener.hpp | /**
* \file listener.hpp
* \brief Provides the abstract class that provides automatic update calls when new TUIO messages are received.
* \author Lukas Rucka <359687@mail.muni.cz>, Masaryk University, Brno, Czech Republic
* \date 2011-09-22 12:29 UTC+2
* \copyright BSD
*/
#ifndef KERAT_LISTENER_... |
c324952ff28d74754ff92763f31d25b5eb203729 | c537cc790e2d579a6680e6732bd1fd45fd0f3730 | /CWndSource.cpp | ce810fa59663383a0a789fe9fd4dfc94b6265fa1 | [] | no_license | Fengerking/KPCP | 2c32135de1dae40e63cfa87a4fb0c40dbb280992 | b65387f02f33737e8025eb9056dcdc85177c9499 | refs/heads/master | 2020-09-15T05:51:22.316464 | 2020-06-16T13:17:19 | 2020-06-16T13:17:19 | 223,359,613 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,496 | cpp | CWndSource.cpp | /*******************************************************************************
File: CWndSource.cpp
Contains: Window slide pos implement code
Written by: Bangfei Jin
Change History (most recent first):
2016-12-29 Bangfei Create file
************************************************************************... |
95fc14a20be5009d569416e78cd555523a654032 | ce7fcd3d91a1c841de035971947d1c66cca70f3e | /external/opa_plll/plll-1.0/plll/src/lattices/enumimpl-parallelserial.cpp | e85c9000c5a1affdbf7abde3c3afb9775cec1632 | [
"MIT"
] | permissive | unjambonakap/opa | ce4d6e83229f369097d07c253487def8ac9ea4f2 | b0b529a855bab9f18c544d55bda1cbe968bbfabc | refs/heads/master | 2023-04-14T15:30:33.374447 | 2023-04-08T21:09:54 | 2023-04-08T21:09:54 | 145,020,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32,453 | cpp | enumimpl-parallelserial.cpp | /*
Copyright (c) 2011-2014 University of Zurich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, m... |
a68adc360dadbfdb042638b31967f7f1de4807e8 | 7adea0299022caaf58fda29a273a4690989e3ff5 | /tut-2-examples-and-vertex-attributes/examples/virtual-methods/Main.cpp | fc3fab69746a24787917250ece457f517c6e94fc | [] | no_license | emdeha/blackflame-opengl-tutorials | 57ea4d3d8dd7d3abae6c5f8f8ea53559f8a63e27 | addc729fe9cc9cd4615255f86b7d7307ff0bfafb | refs/heads/master | 2020-04-12T19:25:45.151749 | 2012-07-01T16:16:13 | 2012-07-01T16:16:13 | 3,754,570 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 449 | cpp | Main.cpp | #include <iostream>
using namespace std;
class Object
{
protected:
float position;
public:
Object();
Object(float newPosition) : position(newPosition) { }
virtual void Move(float delta) = 0;
};
class Human : public Object
{
public:
void Move(float delta)
{
position += delta;
}
};
class Raptor : public Ob... |
4ed1d81fddaff71fc2d78ca103ec4ee0495bfa60 | 0105094dc5ed9ca5bf344e887ae94b9bf25d353f | /emulator/src/cube_cpu_disasm.cpp | d0eb1d1d34e72b09c7d30f0215342bd87c81150b | [] | no_license | Green92/thundercracker | eed1f59a4c3bfcea9c3cd9e49b23b38720e4dd27 | 75e85aa1bddb1fa07851a12718fa8150ab8428b1 | refs/heads/master | 2021-01-12T10:59:25.892200 | 2016-11-03T21:24:13 | 2016-11-03T21:24:13 | 72,781,762 | 0 | 1 | null | 2016-11-03T19:58:37 | 2016-11-03T19:58:37 | null | UTF-8 | C++ | false | false | 32,829 | cpp | cube_cpu_disasm.cpp | /* -*- mode: C; c-basic-offset: 4; intent-tabs-mode: nil -*- */
/* 8051 emulator core
*
* Copyright 2006 Jari Komppa
* Copyright <c> 2011 Sifteo, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to d... |
439af0775664e9aa63459fdcb3f83cf4bb82ed35 | f84dda6aa2724aa2419f796d14c70d2281df6c61 | /src/event.cpp | d2b88ef240a4348cdeb1e8f88bf1c9b9dd6a7da7 | [] | no_license | jovana193206/Simple-OS-kernel | 0af6f32bf5b6ad9f759fac4783a8c98446703d80 | 59cf7a8af1c1761203ecfbfc24f3b2e852c441cb | refs/heads/master | 2022-11-20T03:32:23.269335 | 2020-07-19T00:37:05 | 2020-07-19T00:37:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | cpp | event.cpp | #include "event.h";
#include "global.h";
#include "kernelEv.h";
Event::Event(IVTNo ivtNo) {
#ifndef BCC_BLOCK_IGNORE
lockCout
#endif
if(IVTEntry::allEntries[ivtNo] != 0) myImpl = new KernelEv(ivtNo); //u necijem projektu pisalo == ali nema logike ??
else myImpl = 0;
#ifndef BCC_BLOCK_IGNORE
unlockCout
... |
0ba601b6ed15ad09951113e611a7e01311afdd3a | 0b9f841e1c1110aded8323c68240dafd8d155c6d | /ch20/fig_20_10.cpp | 1c83a9e31d0418306e422f59a1b075636f801f9c | [
"MIT"
] | permissive | markccchiang/pro-TBB | 03ccaa99991b7f8c440cc021a43dc0180132f7ae | bddbc599d0710283eb9fbd7634b0ae8deee20907 | refs/heads/master | 2020-08-17T23:04:05.215295 | 2020-02-06T02:46:03 | 2020-02-06T02:46:03 | 215,721,549 | 0 | 0 | null | 2019-10-17T06:42:37 | 2019-10-17T06:42:35 | null | UTF-8 | C++ | false | false | 6,539 | cpp | fig_20_10.cpp | /*
Copyright (C) 2019 Intel Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribut... |
3e28a3fffec85ab5623355f84dff491c9850b071 | a2206795a05877f83ac561e482e7b41772b22da8 | /Source/PV/build/Wrapping/ClientServer/vtkImageDataStreamerClientServer.cxx | 252a3a2b0febfed83ac0a268d6007f52f0c5a040 | [] | no_license | supreethms1809/mpas-insitu | 5578d465602feb4d6b239a22912c33918c7bb1c3 | 701644bcdae771e6878736cb6f49ccd2eb38b36e | refs/heads/master | 2020-03-25T16:47:29.316814 | 2018-08-08T02:00:13 | 2018-08-08T02:00:13 | 143,947,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,700 | cxx | vtkImageDataStreamerClientServer.cxx | // ClientServer wrapper for vtkImageDataStreamer object
//
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include "vtkImageDataStreamer.h"
#include "vtkSystemIncludes.h"
#include "vtkClientServerInterpreter.h"
#include "vtkClientServerStream.h"
vtkObjectBase *vtkImageDataStreamerClientServerNewCommand(void* /... |
bb961b970b4a6a10bd638de9814c0c01acd4c418 | 1447489eb365f12fe96a425e3ae7b27f0d2c0a2d | /client/jsc_lv/bbqmfcex/cyclient.cxx | 6a9f0232d07a75da67ac0c87bdedc6dcfbc4f925 | [] | no_license | chonamdoo/-live-video-chat-room | 54f367f4d498e08e97bcf865de59165b2d12a1e6 | f2eb23af1d14fde1f1ce6205ac61fdd6ffdc2573 | refs/heads/master | 2021-09-06T19:47:10.219658 | 2017-12-19T07:00:31 | 2017-12-19T07:00:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,203 | cxx | cyclient.cxx |
#include "bbqbase.h"
#include "cyclient.h"
#include "bbqclient.h"
#include "stdafx.h"
// #include <ptlib\debstrm.h>
#define UDP_BUFFER_SIZE 32768
static void SetMinBufferSize(PUDPSocket & sock, int buftype)
{
int sz = 0;
if (sock.GetOption(buftype, sz)) {
if (sz >= UDP_BUFFER_SIZE)
return... |
70dc2062a106b3319984e8d87b83aef5b1187cb4 | 792adcf040a9c1542c2c0adda391d75270cdd8a1 | /main.cpp | 0a0b24b95d904d20c0ca1481d7d686ad39df489b | [] | no_license | IlonaAK/AdressBookObjectOriented | 39272977b9c945544c88126513432892384ecc98 | 5576082bb4ee28de369f8df8826ac745d4822366 | refs/heads/master | 2023-01-14T06:04:24.896263 | 2020-11-17T12:41:35 | 2020-11-17T12:41:35 | 307,804,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | cpp | main.cpp | #include <iostream>
#include "AddressBook.h"
#include "AdresatMenedzer.h"
using namespace std;
int main ()
{
KsiazkaAdresowa ksiazkaAdresowa ("Uzytkownicy.txt", "Adresaci.txt");
return 0;
}
|
c0d58541c231eaccb54b1946fc85742bdd012835 | 5ea21725bd5958fbfbb9434d8aad3e4b70f47f10 | /include/Hexagon/BuildSystem/BuildStageFactory.hpp | a9c3e850d1bb7ba41df3bb1de1605682394f7a37 | [] | no_license | MarkOates/hexagon | 38610a11bee4c57afb36690d3174da47d093d2bb | f103d717848c903dc24f1e6564fdad36d4fc1e23 | refs/heads/master | 2023-08-31T18:00:28.302024 | 2023-08-28T10:35:00 | 2023-08-28T10:35:00 | 147,267,150 | 0 | 0 | null | 2022-08-30T22:44:12 | 2018-09-04T00:36:30 | C++ | UTF-8 | C++ | false | false | 453 | hpp | BuildStageFactory.hpp | #pragma once
#include <Hexagon/BuildSystem/BuildStages/ShellCommand.hpp>
#include <string>
namespace Hexagon
{
namespace BuildSystem
{
class BuildStageFactory
{
private:
protected:
public:
BuildStageFactory();
~BuildStageFactory();
Hexagon::BuildSys... |
b1ee50455cd7614378b62200edfcd4ba139a1d42 | 70095bef25d836d85a34f0a7d278dd17d6e907c1 | /src/registerManager/registermanager.cpp | 753ce93e88c262e3d7d41c063d09dde711cc4d51 | [] | no_license | JosafatV/FIleSystem | 75e720570d6445ca2227ffdca8217e30ea8aa7c0 | c5b160202b591beceb15a7606d5d31f16141f659 | refs/heads/master | 2021-01-20T05:32:08.466285 | 2014-10-31T18:48:36 | 2014-10-31T18:48:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,955 | cpp | registermanager.cpp | #include "src/registerManager/registermanager.h"
#include "src/HeaderManager/headermanager.h"
#include "src/dataStructures/SimpleList.h"
#include "src/Register/register.h"
#include "src/stringProcessor/decript.h"
#include "readfile.h"
#include "writefile.h"
#include <iostream>
#include <stdlib.h>
#include <fstream>
#in... |
a6254ada6912f2328d88f4736d6dfb6ee4d9ab64 | 93492518f6cf0a616eaafa637a82b8310a01c1a7 | /LightTheremin_Test/LightTheremin_Test.ino | 8ff9e8bc8997f6e08f28ca71033604c036e4725b | [] | no_license | MrWizard69/Wilson_Final_Project | cfecab0fe3512b29bd6ce3f51946321bc1512b53 | 4ef7d4d94703c7142909f99383107b28c0778e7c | refs/heads/master | 2016-09-07T04:23:15.981451 | 2015-05-29T18:47:15 | 2015-05-29T18:47:15 | 33,157,002 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,044 | ino | LightTheremin_Test.ino | /*
Arduino Starter Kit example
Modified Project 6 - Light Theremin
Parts required:
photoresistor
10 kilohm resistor
piezo
http://arduino.cc/starterKit
This example code is part of the public domain
*/
// variable to hold sensor value
int sensorValue;
// variable to calibrate low value
int sensorLow = 1023... |
321f003f56cd161043da0ccdbb5467015a01be07 | 5f04086a1c242aee48655d9c7c0d2d3fbf646867 | /front/source/symbol_table.cpp | bd93e984605b63cda3af62db01d4285d00a710fc | [
"MIT"
] | permissive | fanyi3315/Merdog | 539fd094e4f22c2221380e76b052c45f2d06c113 | 60303b0cbcd0c03e493606b8c535a975f8d56185 | refs/heads/master | 2020-09-10T04:07:31.984558 | 2019-11-14T05:02:23 | 2019-11-14T05:02:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,437 | cpp | symbol_table.cpp | #include "../include/symbol_table.hpp"
#include "../include/type.hpp"
namespace mer
{
// symbol table for user
SymbolTable _symbol_table;
std::string get_tmp_var_name(bool c)
{
static int index = 0;
if (c)
{
index = 0;
return "";
}
return "%" + std::to_string(index++);
}
WordRecorder* find_recorder_by_id(co... |
d9777f10b63691d512d0d1efff24361b3259efb9 | 8164dd9ec33a14acdeda6c148c33de5ff30c91ae | /src/StructuralPattern/FlyweightPattern/FlyweightPattern/UnsharedConcreteFlyweight.h | 41d87c909cc31a3196a54305c071df56898bcd8b | [] | no_license | kingdekong/Design-Patterns | a4ff6d5e91d5d401f8de5b2943a2de2d25d3f805 | cf0dc873d92f45d3457405b5dc670f290974eac6 | refs/heads/master | 2020-03-29T08:37:34.061320 | 2018-09-21T08:56:23 | 2018-09-21T08:56:23 | 149,719,919 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 307 | h | UnsharedConcreteFlyweight.h | #ifndef _HEADER_UnsharedConcreteFlyweight_
#define _HEADER_UnsharedConcreteFlyweight_
class UnsharedConcreteFlyweight
{
public:
UnsharedConcreteFlyweight();
virtual ~UnsharedConcreteFlyweight();
void operation();
private:
int allState;
};
#endif // !_HEADER_UnsharedConcreteFlyweight_
|
958496d3cc737ae11bda5ffad54a4b75e347b1b3 | 05df3699579aba2879d2dd6c4de421e7d4e75c61 | /src/plugins/updaters/qchocolatey/qchocolateyupdaterbackend.h | 17d831b0d3d5924abc16f2a37fde721e698d00fa | [
"BSD-3-Clause"
] | permissive | Skycoder42/QtAutoUpdater | 2474f1df5b8cbbdb63319110941adec99082a4c3 | 762710464659176d1e41e0dc475e6f23c1b278ad | refs/heads/master | 2023-03-17T01:10:59.086734 | 2023-03-04T10:55:51 | 2023-03-04T10:55:51 | 48,326,244 | 731 | 183 | BSD-3-Clause | 2022-03-28T05:56:51 | 2015-12-20T15:26:26 | C++ | UTF-8 | C++ | false | false | 1,260 | h | qchocolateyupdaterbackend.h | #ifndef QCHOCOLATEYUPDATERBACKEND_H
#define QCHOCOLATEYUPDATERBACKEND_H
#include <QtCore/QLoggingCategory>
#include <QtAutoUpdaterCore/ProcessBackend>
class QChocolateyUpdaterBackend : public QtAutoUpdater::ProcessBackend
{
Q_OBJECT
public:
explicit QChocolateyUpdaterBackend(QString &&key, QObject *parent = nullp... |
de1f1e38a06a482d80541bea543b267fb1fc4e32 | e9ca469cc84f3431538c04e5e3f7fbeedefd07a0 | /util.h | ee21f1af4240272c9424673e650b21b7381106e4 | [
"MIT"
] | permissive | daodun/ls1-sys-prog-task6-sockets-YukioZzz | b6c35211cd545907ac1275aab8c1edbe4f2b1b86 | 2a70f5e62a5d686ebb84e2a44c97eec29fee1f58 | refs/heads/main | 2023-08-18T16:23:00.080276 | 2021-06-23T21:19:22 | 2021-06-23T21:19:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,208 | h | util.h | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <time.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <signal.h>
#include <cstring>
#include <... |
d97c378c46d112b869da5447d3c8a2cef403ece9 | 2efc8493e4df2b5304f007cf0bd1e03a629120cb | /popen-example/myuclc.cpp | 2db098c506354f1e1c47c99108ffcca045279166 | [] | no_license | luyongkang/Linux-code | 46ba399fe5baa2f1f928a5aea63027246ba9b323 | 7b82ea09968e08b69e8296414a91d7501be26c10 | refs/heads/master | 2023-04-03T23:46:53.533978 | 2021-04-13T06:48:15 | 2021-04-13T06:48:15 | 301,134,422 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 323 | cpp | myuclc.cpp | #include<iostream>
#include<ctype.h>
using namespace std;
int main()
{
int c;
while((c=getchar())!=EOF)
{
if(isupper(c))
{
c = tolower(c);
}
else if(islower(c))
{
c = toupper(c);
}
if(putchar(c)==EOF)
{
cerr << "output error" << endl;
}
if(c=='\n')
{
fflush(stdout);
}
}
return 0... |
154d588d399505722ad5019e069a2ebe0b649025 | 8a82e2252b2336772aa4825804154a48751c2b5f | /utilities/include/helper/SNoCopyable.hpp | ad3d611711077de683240352d5b0bfac8271ce2a | [
"MIT"
] | permissive | wrongswany/soui | a778a2b0f2e5b2eb3a929b94741144d66a5db709 | 00ed1f21af02877dd2be4881b1caccc168ed9a9b | refs/heads/master | 2020-04-19T23:41:32.464597 | 2019-01-31T01:26:24 | 2019-01-31T01:26:24 | 168,502,695 | 2 | 0 | NOASSERTION | 2019-01-31T09:58:47 | 2019-01-31T09:58:47 | null | UTF-8 | C++ | false | false | 293 | hpp | SNoCopyable.hpp | #pragma once
namespace SOUI
{
/**
* Inheriate this class to make your class cannot be copy and assign.
*
*/
class SNoCopyable
{
public:
SNoCopyable() {}
~SNoCopyable() {}
private:
SNoCopyable(const SNoCopyable &);
const SNoCopyable &operator=(const SNoCopyable &);
};
} |
b3060e37d810a021aeff406f35e22139d453d482 | 4ccf7aa23ae97ce06ebbea5ecb311d9e5604d28a | /2018codes/2018-08-25 HDU-6446丨找规律丨排列组合丨细心.cpp | adc866a7837a757303a33e3011c97959d514c68c | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | TieWay59/HappyACEveryday | 25682d30aafed3a51f645562fb7e5348e9515417 | 6474a05a9eafc83e9c185ba8e6d716f7d44eade0 | refs/heads/master | 2021-08-22T21:29:31.138853 | 2021-06-16T04:19:14 | 2021-06-16T04:19:14 | 190,430,779 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,213 | cpp | 2018-08-25 HDU-6446丨找规律丨排列组合丨细心.cpp | /*http://acm.hdu.edu.cn/showproblem.php?pid=6446
??????е??????????????Щ????x
*/
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
const int mod = 1e9 + 7;
const int N = 1e5 + 5;
typedef long long ll;
ll sum[N], ans;
int head[N], cnted, n;
bool vis[N];
struct Edge {
int nx, v;
ll w;
}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.