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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3a86799a3e0782931286816d9da01b7c588c3677 | efb1e3bd4f1bf79f5c2bc90a34bb33bf171f5f43 | /drake/automotive/maliput/monolane/test/monolane_road_geometry_test.cc | 162973bb150efbf98749c70507851cf80855f1a6 | [
"BSD-3-Clause"
] | permissive | martiwer/drake | dab2278d41fc4197ccc13a518c4327caa57040b1 | 709171b00b92e79557920329346f5500718a2caf | refs/heads/master | 2021-05-16T09:44:48.965884 | 2017-09-22T01:25:43 | 2017-09-22T01:25:43 | 104,477,877 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,249 | cc | monolane_road_geometry_test.cc | /* clang-format off to disable clang-format-includes */
#include "drake/automotive/maliput/monolane/road_geometry.h"
/* clang-format on */
#include <cmath>
#include <gtest/gtest.h>
#include "drake/automotive/maliput/api/test/maliput_types_compare.h"
#include "drake/automotive/maliput/monolane/builder.h"
namespace d... |
9a6d589cc1132020f181f3e085bddffdc1f3f700 | 22eb20dfa5bf05630d398829e72d971f7fad38ac | /myValueControl/myphotoview.cpp | 547b3f125846ddcf3723f36a02563f6c123ffa94 | [] | no_license | zhoajianjun/QT | 634e984f365679e21047f59817ee5f46ca9d25c9 | 32e9362b088ffb150fe2fda036d8472edb4a1346 | refs/heads/master | 2016-09-12T21:05:12.316379 | 2016-04-25T06:40:06 | 2016-04-25T06:40:06 | 56,022,827 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,013 | cpp | myphotoview.cpp | #include "myphotoview.h"
PYNum::PYNum(QWidget* parent):QWidget(parent)
{
m_opacity = 0.0;
setWindowOpacity(PYN_FIN_OPACITY);
m_fadeTimer = new QTimer(this);
m_fadeTimer->setInterval(PYN_TIMER_INTERVAL);
connect(m_fadeTimer,SIGNAL(timeout()),this,SLOT(DoFading()));
m_hideTimer = n... |
55eab91165063bc1135ed9bafe61b6b3b878f0cd | fb2d3702450ae18d2d5e2796e8f22f5dff60b4f2 | /engine/Fury/Matrix4.h | 23eec3b9f2bf5b71a33bb40f35b58989a0ac78fc | [
"MIT"
] | permissive | fireword/fury3d | d15b56be504bc441372b207deb2457279f99e27f | a280c276e59fa758b269ca605a95aee5f3ed78c9 | refs/heads/master | 2021-01-13T07:39:40.584122 | 2016-10-11T13:39:15 | 2016-10-11T13:39:15 | 71,447,923 | 1 | 0 | null | 2016-10-20T09:40:19 | 2016-10-20T09:40:18 | null | UTF-8 | C++ | false | false | 1,968 | h | Matrix4.h | #ifndef _FURY_MATRIX4_H_
#define _FURY_MATRIX4_H_
#include <string>
#include <initializer_list>
#include "Macros.h"
namespace fury
{
class BoxBounds;
class Quaternion;
class Vector4;
class Plane;
/**
* Matrix stores position info in Raw[12, 13, 14] like opengl.
* 0 4 8 12
* 1 5 9 ... |
e2b9fa46eeec22f7763b7cebee9043c2cac39829 | 0d8d848ee3bdf343dcc5da6d2b361cf595f5e4b5 | /game/game/BackInvis.cpp | e991d50928b6df13da46409eb7aa623d37444091 | [] | no_license | HanL-XX/Mario-bros-3 | 8b0074367c91821daec34e27b73b89ab6def4491 | 930b9d63df9f380730e084892de1b5eb3e5f17e0 | refs/heads/master | 2023-01-23T20:32:53.136243 | 2020-12-06T16:41:46 | 2020-12-06T16:41:46 | 303,575,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 189 | cpp | BackInvis.cpp | #include "BackInvis.h"
void CBackInvis::Render()
{
animation_set->at(0)->Render(x, y);
RenderBoundingBox();
}
void CBackInvis::GetBoundingBox(float& l, float& t, float& r, float& b)
{
} |
41b3f6c41b01c34b8381af81f58d4b7090db6457 | 221e5bf40534fcf3f661f4de3669e4fafd1fd788 | /MOBJFile.cpp | 04b357e695e07224f193b59d22fbcf1a5ef592fd | [] | no_license | BlueSpud/Spud-Model-Converter | 9dda57770098ff25ab172e3b498f0b647cab686f | 3768b7c64a12ec890353167ebba9e7bb411c93d7 | refs/heads/master | 2021-01-09T06:01:13.740165 | 2017-02-25T16:13:46 | 2017-02-25T16:13:46 | 80,876,168 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,031 | cpp | MOBJFile.cpp | #include "MOBJFile.h"
/******************************************************************************
* Function for loading *
******************************************************************************/
void MOBJFile::loadFile(const QString& path) {
... |
bbf5a9c1f433191ba00d129e433981a661bc80b3 | c8cfe03f33cbe3f6622c31f3f94000d249d9d7df | /Maze Game 1/Maze Game 1/mazeClass.cpp | b43ed023b140334be20d0c63097f16923a445283 | [] | no_license | jeremyc61298/Maze-Game | a7dfd9a48c5099b46575df0847e873d67ba4f7c1 | 0f6a9d04a1e7fe7b6e64bdad1c3592045c28b011 | refs/heads/master | 2021-03-27T09:40:34.631867 | 2018-09-30T03:34:07 | 2018-09-30T03:34:07 | 123,033,646 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,995 | cpp | mazeClass.cpp | /* mazeClass.cpp */
// Author: Jeremy Campbell
// Implementation file for mazeClass
#include "mazeClass.h"
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <windows.h>
using std::cout;
using std::endl;
Maze::Maze()
{
buildMaze();
printMaze();
}
Maze::~Maze()
{
}
void Maze::... |
883f5d0500b11ed0747aea7b063b4f17a5055aef | 5715bb8eaa97d3ea609ddd4043ced71dd2d602d4 | /src/Main.cpp | 0ab4667973a335b560d10cca62888f28c1b39a45 | [
"MIT"
] | permissive | InversePalindrome/Chess | 832a9b40d718a2bd326a521c07dc66902ec0ff85 | 191a02693865805309dd09e1d75dc23566509eed | refs/heads/master | 2020-04-29T09:47:16.789853 | 2019-12-29T19:51:38 | 2019-12-29T19:51:38 | 176,038,214 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 704 | cpp | Main.cpp | /*
Copyright (c) 2019 Inverse Palindrome
Chess - Main.cpp
https://inversepalindrome.com/
*/
#include "MainWindow.hpp"
#include <QTimer>
#include <QApplication>
#include <QSplashScreen>
int main(int argc, char* argv[])
{
QApplication a(argc, argv);
auto* splashScreen = new QSplashScreen(QPixmap(":/Resource... |
8e47fa8e562100e92edb921c396e5e991afd589e | 628f60ea185d57334e350a6e3bbbb6eac6f77bd0 | /Framework/Engine/Resources/Code/RcAlphaTex.cpp | 96d2ad2acb27d1c8e1c514fbb4f34b7e5f92f01e | [] | no_license | ems789/Wizard-of-Legend-2.5D-Team-Project | e31a2a50e1971f88b8ec1d9320332f1f5608d16d | 345136dc7a76dc66b9b864945804dddabf88be8e | refs/heads/master | 2022-05-26T12:41:44.766735 | 2020-04-29T01:24:52 | 2020-04-29T01:24:52 | 252,634,747 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,036 | cpp | RcAlphaTex.cpp | #include "RcAlphaTex.h"
USING(Engine)
Engine::CRcAlphaTex::CRcAlphaTex(LPDIRECT3DDEVICE9 pGraphicDev)
: CVIBuffer(pGraphicDev)
{
}
Engine::CRcAlphaTex::CRcAlphaTex(const CRcAlphaTex& rhs)
: CVIBuffer(rhs)
{
}
Engine::CRcAlphaTex::~CRcAlphaTex()
{
}
HRESULT Engine::CRcAlphaTex::Ready_Buffer(const D3DXCOLOR& d... |
1df7751360a7f3fa47add66bd27261c327e2fc58 | 2007c9f6cb68dcfd0a24c7c9ff8533e0c08a2240 | /#StayHome/challenge.hpp | 7b9b5e6078d6ea20caa4d0cc30c4f0fa66953db6 | [] | no_license | ivon99/Smaller_Projects | de75532c87054b5481d94ac210c8ea27378eb073 | 505b6635fad74b9eda831c2d77dbd1f159197ec0 | refs/heads/main | 2023-06-25T10:54:06.679894 | 2021-07-21T13:07:02 | 2021-07-21T13:07:02 | 388,109,467 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,135 | hpp | challenge.hpp | #ifndef _CHALLENGE_HPP_
#define _CHALLENGE_HPP_
class Challenge
{ //represented under 40 bytes
static const int MAX_TAG_SIZE = 31;
static const int MAX_STATUS_SIZE = 20;
char *m_tag; //уникално, започва с # и е до 31 символа ???
char *m_status; //0--new, 2-10 --quite ... |
9badb10f06d441dfd688ca90b697e567b6f711f9 | c5f1a804dbd1f5de123469dd5432633633e80597 | /BarrelDrop2/HighScores.cpp | 5b517b09f809913b0165e5ef46e249aa4e49eaaa | [] | no_license | brosell/HTS-Games | 2d03a8988adc5c613dba1e249a7e0b409593ff11 | 3c7c1cc2ec4fe0ba7865f6eec5cec905faab5a3f | refs/heads/master | 2021-01-22T21:23:38.681074 | 2020-01-12T15:41:47 | 2020-01-12T15:41:47 | 85,423,760 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,991 | cpp | HighScores.cpp | #pragma warning (disable : 4786 4503 4530)
#include "HighScores.h"
#include "IniFile.h"
#include "Log.h"
#include "Convert.h"
#include "boost/format.hpp"
HighScores::HighScores():
m_justAdded(-1)
{
// for (int x=0; x<10; x++)
// {
// m_scores[x].name = "";
// m_scores[x].level = 0;
// m_scores[x].score = ... |
f4d38474fcb7d07076c54abf8ef923af3d8b62da | 32709d5de776d864df9581b1a9c2d9d966c3c31f | /isaac/08_06_Isaac_Room/Door.cpp | 7cb28f2b5a9eed472bc76ceb4fba46786d6a21eb | [] | no_license | dadm8473/DirectX_Class | 76010b18e490306cd44c21554cc8ab31f53df1ce | 34dd319d39d93c1f73a7c7dd6c2047aa20694e69 | refs/heads/master | 2022-03-16T05:30:41.434207 | 2019-11-10T12:45:37 | 2019-11-10T12:45:37 | 186,415,853 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,196 | cpp | Door.cpp | #include "DXUT.h"
#include "Door.h"
Door::Door()
{
}
Door::~Door()
{
}
void Door::Start()
{
type = BG_DOOR;
// 스프라이트 렌더러 추가
renderer = new CSpriteRenderer(L"Door", L"Assets/Images/BG/BossDoor_", L"png", true, 2, 2, 0);
renderer->SetIndex(0, 0, 1, false); // 닫힌 문
renderer->SetIndex(1, 1, 1, false); // 열린 문
p... |
e311e730f2c8e1f30a2e33265e101606cffbca8d | a46d634a4e862eb34a080e97edc9547a231b857a | /V4l2CameraControl.cpp | 1a9d4c0541a2cb43afe7f59a2cf18cbe455f21cf | [] | no_license | yexiaopeng/QHLCamera | b446f2e6fab12bac9f50f33ba4e90927d919b066 | c7af2b05223655f58de3bb2661c325eee7bb1eb3 | refs/heads/master | 2020-03-19T09:31:02.443167 | 2018-06-12T11:40:52 | 2018-06-12T11:40:52 | 136,295,724 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,485 | cpp | V4l2CameraControl.cpp | #include "V4l2CameraControl.h"
#include "QDateTime"
//
int V4l2GetJpg(char *camserId, char * jpgpatch, int pictureCcount)
{
int fd_video;
FILE* fp_jpg;
struct buffer *buffers;
fd_video = open(camserId,O_RDWR);
if(fd_video < 0 ){
printf("\r\n # 1 error: %s open error ",camserId);
... |
c5580e95f923a456c8eac3ea7a00a77452febb65 | 790e33cd347a90e90ed93a3db9c408e58a6c90c4 | /algorithmclass/wordcreator.cpp | a385df0ee6b94858652f19a54e4b3edddbfa6328 | [] | no_license | garetroy/AlgorithmPractice | 7bcaa68a7288d68c2e00d7fda9d21ea3b8880308 | 6572c70447b9c2d026c16120f4cdc8daca083889 | refs/heads/master | 2021-01-22T17:39:32.156674 | 2018-01-04T17:20:26 | 2018-01-04T17:20:26 | 85,026,342 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,993 | cpp | wordcreator.cpp | #include <algorithm>
#include <unordered_set>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
using namespace std;
string
get_string(bool memo, int *location, string instring)
{
string outstring = "";
if(!memo){
outstring = "No, cannot be split\n";
}else{
out... |
69b449ae2642d09242f1ce9f0400bf4c1d5c81de | 4a7073455f0c5184ad22fccbfbdbe5659abb77e4 | /board.cpp | 93f88f559d188f7607f2ed1078e2605b4257c910 | [] | no_license | Bhaumik-Tandan/CPP_playground | a45e0bdcaf5d5d727f44d9407b69936828762231 | d00be2ad79071e7bbb8fcefaedce08542e8c81e0 | refs/heads/master | 2023-08-24T15:10:25.210847 | 2021-04-09T07:55:23 | 2021-04-09T07:55:23 | 351,698,021 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 259 | cpp | board.cpp | #include <iostream>
using namespace std;
class A
{
public:
A()
{
cout<<"First Line\n";
}
~A()
{
cout<<"\nThird Line";
}
};
//First line
//Second line
//Third line
main()
{
A j;
cout<<"Second line";
}
|
f89181a926691d6951cba30e1fac0bcbb311224b | 7ccfb888013ea5442d0b35fceb5b281c00c0a809 | /DES_DEC_Vivado_HLS/DES_DEC/qB1_5/syn/systemc/des_dec.h | 6706c313c3ab9cc736c6a1259a202f00c92c335a | [] | no_license | Deepsavani/DES-Decryption-Implemented-in-Vivado-HLS | d60b77e5f03b981596470a541b158a76f106eb98 | 6712279402d8ea80aef2d1285005483de962a002 | refs/heads/master | 2023-03-08T12:22:19.224436 | 2021-02-23T06:10:11 | 2021-02-23T06:10:11 | 341,445,708 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,370 | h | des_dec.h | // ==============================================================
// RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC
// Version: 2019.1
// Copyright (C) 1986-2019 Xilinx, Inc. All Rights Reserved.
//
// ===========================================================
#ifndef _des_dec_... |
f6d277f18a13a5d25a0fe8f1e950e5b0bfe59710 | 77d1bd5ae4f8423bfea3119c3260b3b34de1f652 | /AnalyzeNystagmus2.cpp | 54d968bbb751d0d609b1168316fcb31563f4b318 | [] | no_license | dlsyaim/sm-eye-app | c6b20303e10c8f42c12f64a767d77a2cbac9f8f3 | 3058da8998683c4453f1470a1f5e4c047ba837a1 | refs/heads/master | 2016-09-06T05:28:48.892101 | 2013-04-17T20:53:33 | 2013-04-17T20:53:33 | 37,705,615 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 16,114 | cpp | AnalyzeNystagmus2.cpp | #include "StdAfx.h"
#include ".\analyzenystagmus2.h"
#include "corwldefines.h"
#include "math.h"
CAnalyzeNystagmus2::CAnalyzeNystagmus2(void)
{
}
CAnalyzeNystagmus2::~CAnalyzeNystagmus2(void)
{
this->deleteAllNystagmus();
}
void CAnalyzeNystagmus2::deleteAllNystagmus()
{
if(!m_listNystagmus.IsEmpty... |
db0e1d6de9221750cb4eef02f8a32d0df084666b | 1e1b124f7c55e28477203f22e82627bf0784c558 | /common/halfBeat.cpp | b3edcd0b1ce36a2ae38912518937ac4526596302 | [] | no_license | jcowles/effects-salad | 4a5349dd9ddb9079accc9e1560dd38a695e2143d | 52b9259ffc0b5a3095bfcaf8c232efad51cb7bc1 | refs/heads/master | 2021-01-21T00:00:34.678815 | 2012-10-18T02:47:14 | 2012-10-18T02:47:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 582 | cpp | halfBeat.cpp | #include "common/halfBeat.h"
HalfBeat::HalfBeat()
{
_previousBeatTime = 0;
_currentBeatInterval = 0;
_downBeat = false;
_multiplier = 2.0f;
}
bool HalfBeat::Update(bool beat, float time)
{
if (beat) {
_currentBeatInterval = time - _previousBeatTime;
_previousBeatTime = time;
... |
34dd1180e4acb5f9b3d6f64192fbfff1ee9a41b3 | 8436a2f8e2d51dc1d4a2c013de2526b69c88ab58 | /main.h | 248eba659b594814695b1762ec099741ffee711f | [] | no_license | kpanek206/base-converter | 88fb93f14edadc8d8b63f03b8ec0184939774692 | 71a62486b72adda7f5b2a743b6305e90fddadcf2 | refs/heads/master | 2022-11-12T23:02:03.848855 | 2020-07-01T17:02:38 | 2020-07-01T17:02:38 | 276,434,699 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 250 | h | main.h | #include <vector>
#include <string>
using namespace std;
char to_char(int a);
int to_int(char a);
void change_parameter();
pair<vector<int>, vector<int>> conversion(pair<vector<int>, vector<int>> number);
void handle_input(string input);
int main(); |
3ae838278bc7914d4709e6a791e7e6f82cebe0ef | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/printscan/faxsrv/com/win2k/faxtiff.h | a861195bbf7dc3f569178debdc4d04c15d3c45a6 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 2,490 | h | faxtiff.h | /*++
Copyright (c) 1997 Microsoft Corporation
Module Name:
faxtiff.h
Abstract:
This file contains the class definition for the faxtiff object.
Author:
Wesley Witt (wesw) 13-May-1997
Environment:
User Mode
--*/
#ifndef __FAXTIFF_H_
#define __FAXTIFF_H_
#include "reso... |
8f003c498e092095fd3154816cfb53bba8e7f0ad | 05db601940f6f1da845bdab5a30fa06942c67d90 | /645div2/C.cpp | 99831b34a3a503cf106983070880061f3ebf3772 | [] | no_license | NeoClear/codeforce | 184875c33828645cede2d1da39f48a6f44565508 | 0522b194a7b964b4b96f552d89edebc6d6939c5b | refs/heads/master | 2022-09-04T04:39:40.155809 | 2020-05-28T21:30:49 | 2020-05-28T21:30:49 | 267,700,857 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 444 | cpp | C.cpp | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
ll T;
ll a1, a2, b1, b2;
int main() {
cin >> T;
while (T--) {
cin >> a1 >> b1 >> a2 >> b2;
ll dx = a2 - a1;
ll dy = b2 - b1;
ll ans = 0;
ll K = min(dx, dy);
ll V = max(dx, dy)... |
c2ad413fd0d29c5c413c43df15e9435ff47ac118 | 689d20b714e1a4fec0a9b179f8c13f1e7f871b33 | /BinarySortTree/TreeNode.cpp | f2446d53fa30076d3e810b1b037633dc131b6ec1 | [] | no_license | gyuqian/BinarySortTree | b4c769382341cd6eece054bf64e1e7cb60945f41 | 3618cc3a9c4b31c9275a4bccc41d75642db59186 | refs/heads/master | 2023-03-24T05:57:33.685927 | 2021-03-15T05:35:52 | 2021-03-15T05:35:52 | 321,879,232 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,287 | cpp | TreeNode.cpp | /***********************************************
* Auther: gyuqian
* Data: 2020/12/15
* Last-modified: 2020/12/18
* File: 二叉节点类声明的具体实现
************************************************/
#pragma once
#include "TreeNode.h"
#include "iostream"
/***********************************************
* Auther: gy... |
99057d754ee67e2238fa880a70165448f1a5819a | c8023d5ac12f074e4a33c750e3a4fccac616522d | /Blatt2_Parallel/src/solver.cpp | b3bb8a510321bae6df59ef11c827c564f9cc1f5c | [] | no_license | MrHankey/NumSim | 2ae5a4258a603de9a7262692cdc21c4a629b949f | 2f84712a412c68c505a27cb28d7f003031f19bf2 | refs/heads/master | 2021-01-15T12:41:28.506103 | 2015-12-19T09:34:39 | 2015-12-19T09:34:39 | 44,682,550 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,489 | cpp | solver.cpp | /*
* Copyright (C) 2015 Raphael Leiteriz, Sebastian Reuschen, Hamzeh Kraus
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any lat... |
77852a9216e4c6b8d361112f0f6613b0a8083efa | 88949f2ef38ed853a1749d6394a92eb3e97bf8fd | /1_year/2_term/3/3-2/main.cpp | 2b50cc89bbc97bc7a52148d1474f9101a10a9ba2 | [] | no_license | TanVD/SpbSU-Homeworks | c64f6d3a812492daff1df058d178f34fab292613 | 18ec404eee91df47a264942a08637113e06abefa | refs/heads/master | 2021-01-21T04:36:49.194487 | 2016-05-20T14:25:49 | 2016-05-20T14:25:49 | 30,809,072 | 0 | 1 | null | 2016-05-20T14:25:49 | 2015-02-14T21:17:11 | C++ | UTF-8 | C++ | false | false | 801 | cpp | main.cpp | #include <QtTest/QTest>
#include <QtCore/QObject>
#include "testBypassMatrix.h"
#include <iostream>
#include "fileOut.h"
int main()
{
BypassMatrixTest test;
QTest::qExec(&test);
std::cout << "This program will print your matrix spiral way.\nEnter size of matrix: ";
int size = 0;
std::cin >> size;
... |
27e1ab44b2a72706ff75bacf8762e25c03c8f3e1 | 196ef01aec42275e1d922c080afb57eab36390a6 | /DoctorBLib/Searcher.cpp | 8d5c8269a713f942be2de3a8bc3b6466d96e2667 | [
"MIT"
] | permissive | hiblom/DoctorB | 6b13760c225b72d4a468ffc57b40345fb1dd2783 | c874ed54a7a20392b6f0aff19fb5bb412938c2b6 | refs/heads/master | 2021-06-20T22:20:54.156440 | 2021-06-13T15:28:53 | 2021-06-13T15:28:53 | 217,548,446 | 2 | 0 | MIT | 2021-06-10T20:11:21 | 2019-10-25T14:11:50 | C++ | UTF-8 | C++ | false | false | 2,047 | cpp | Searcher.cpp | #include "stdafx.h"
#include "Searcher.h"
#include <iostream>
#include <chrono>
#include <algorithm>
#include "MoveGenerator.h"
#include "Evaluator.h"
#include "AlphaBetaOrder.h"
#include "Options.h"
#include "Polyglot.h"
#include "Globals.h"
using namespace std;
Searcher::Searcher(const Position& base_position, cons... |
9bd6e8f326c13ae25a748eda1a5164fcd5e0a1e5 | fad392b7b1533103a0ddcc18e059fcd2e85c0fda | /build/px4_msgs/rosidl_generator_cpp/px4_msgs/msg/parameter_update.hpp | f216ab69faa359695c25a039edc3114231f1e4c3 | [] | no_license | adamdai/px4_ros_com_ros2 | bee6ef27559a3a157d10c250a45818a5c75f2eff | bcd7a1bd13c318d69994a64215f256b9ec7ae2bb | refs/heads/master | 2023-07-24T18:09:24.817561 | 2021-08-23T21:47:18 | 2021-08-23T21:47:18 | 399,255,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 360 | hpp | parameter_update.hpp | // generated from rosidl_generator_cpp/resource/idl.hpp.em
// generated code does not contain a copyright notice
#ifndef PX4_MSGS__MSG__PARAMETER_UPDATE_HPP_
#define PX4_MSGS__MSG__PARAMETER_UPDATE_HPP_
#include "px4_msgs/msg/parameter_update__struct.hpp"
#include "px4_msgs/msg/parameter_update__traits.hpp"
#endif ... |
08e10ed2e8f58805f40637b008cd1b4658b70455 | aafcc55c71c0716724d68867f98f92e019417524 | /Wrapper.hpp | d05525046ef166c458225cd54414494f990dac3d | [
"Apache-2.0"
] | permissive | GuillaumeGomez/Wrapper-RS232-COM-PORT | 709eb0200daf3e43bcb20f001b39420fd58f91b7 | c7fa7bb2261e3eef351806ad719dd473f1bea4ca | refs/heads/master | 2020-04-06T04:03:05.191301 | 2014-11-26T10:05:19 | 2014-11-26T10:05:19 | 16,872,547 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,345 | hpp | Wrapper.hpp | #ifndef Wrapper_H
#define Wrapper_H
#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <map>
#include <string>
#include <string.h>
#if defined (WIN32)
#include <windows.h>
#include <conio.h>
#define RX_SIZE 4096 // in buffer size
#define TX_SIZE 4096 // out b... |
b80db45ad1cb420097cb2d1c1f94247772252aa5 | f122c8f7f0ec239c3a19c679ccf3c23ae758a097 | /test/core/casts/storage.cpp | 00c03e95b16c3fdf63915c4486f2fd5ecb7798a9 | [
"AFL-3.0",
"AFL-2.1",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Qznec/vrm_core | 305773c7682deb3d4fe7168ae4e23e61afa55a09 | f5119841892fc4244b261dddf80dea1fb4e1889a | refs/heads/master | 2022-06-24T04:41:25.678978 | 2022-06-03T10:11:21 | 2022-06-03T10:11:21 | 126,380,398 | 0 | 0 | null | 2018-03-22T18:42:58 | 2018-03-22T18:42:58 | null | UTF-8 | C++ | false | false | 612 | cpp | storage.cpp | #include "../../utils/test_utils.hpp"
#include <utility>
#include <vrm/core/casts/storage.hpp>
TEST_MAIN()
{
using namespace vrm::core;
using st = std::aligned_storage_t<sizeof(float), alignof(float)>;
st s;
new(&s) float(100.f);
TEST_ASSERT(storage_cast<float>(s) == 100.f);
TEST_ASSERT(*(sto... |
cf1e857e34b1056cd65366d230150eec7d6d2eec | 548cb8f04bf7bedb805d689d956d7f9578789b1a | /realphysics/physics/management/inc/PostStepActionStage.h | 5cc6cad166b7e71400b18d84b8a90bf5d4219d69 | [] | no_license | Radiation-Physics-Group-of-Alexandria/GeantV | 0d57918dacbde0468f55568558fb60cb651b955e | f22382017671286bab1a50cd9636dec7d2c12d31 | refs/heads/master | 2021-05-07T22:46:41.503813 | 2017-10-13T13:45:38 | 2017-10-13T13:45:38 | 107,283,199 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,357 | h | PostStepActionStage.h |
#ifndef POSTSTEPACTIONSTAGE_H
#define POSTSTEPACTIONSTAGE_H
// from geantV
#include "SimulationStage.h"
// from geantV
namespace Geant {
inline namespace GEANT_IMPL_NAMESPACE {
class GeantPropagator;
class GeantTrack;
class GeantTaskData;
class Handler;
}
}
namespace geantphysics {
/**
* @brief Simulati... |
948c47709ad8cb04e740fb5367b89967c4363aff | bbda507ac43fab77865378e33b7238c425485d86 | /gvb/lex.h | a83821ebde4c2b9ed09df7f0fcdc47bd22336201 | [
"MIT"
] | permissive | arucil/gvbasic-simulator4cpp | 6f5a4d3f8ea438f2c77359397831efd44916f39f | 7f8416e7d4999a0b5dd4813ac38194c60bd7e2c4 | refs/heads/master | 2022-09-30T12:01:20.087517 | 2022-08-30T01:33:36 | 2022-08-30T01:33:36 | 47,590,707 | 32 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 1,086 | h | lex.h | #ifndef GVBASIC_LEX_H
#define GVBASIC_LEX_H
#include <string>
#include <cstdio>
#include <unordered_map>
namespace gvbsim {
struct Token {
enum {
TOKEN_FIRST = 256,
ID, INT, REAL, STRING, DIM, LET, SWAP, GOTO, IF, THEN, ELSE, ON, FOR, TO,
NEXT, STEP, WHILE, WEND, DEF, FN, GOSUB, RETURN, AND, OR,... |
25a2535658041d02148633ff488578ce9a1b40ba | c6b35f785b69ffaacfcf28c08d6fda05d562a054 | /PathExtractor.cpp | da3f3552b6ff6ecf92ca3d45d65a92b7d0dda9e6 | [] | no_license | cbrunschen/MorphPlot | a67f1465d3561c2d7391969febfab6c851decd57 | 2e3c1724e23d45afc5109d35dcb8a0291b8995d1 | refs/heads/master | 2021-01-17T08:48:39.422858 | 2016-04-09T15:57:10 | 2016-04-09T15:57:10 | 17,036,406 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,519 | cpp | PathExtractor.cpp | /*
* PathExtractor.cpp
* Morph
*
* Created by Christian Brunschen on 27/11/2011.
* Copyright 2011 Christian Brunschen. All rights reserved.
*
*/
#include "PathExtractor.h"
namespace Extraction {
#if 0
}
#endif
ostream &preparePS(ostream &out, int width, int height) {
out << "%!PS-Adobe-3.0" << endl;
o... |
9794107ac33695e91e1412019554eea8f95e065e | 3de81993057b267a31b4928a7a54697ea71ad165 | /MYSTRING.CPP | fa9c8791795dd37a1d5a2b5a8093242286322838 | [] | no_license | YNazar/Mystring | 3bf3f743418489df56288afb647e0938d19461ee | 346115b9e54b04740047b6dba3790c0f755a57df | refs/heads/master | 2021-01-25T09:54:13.302170 | 2014-09-27T16:56:15 | 2014-09-27T16:56:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,844 | cpp | MYSTRING.CPP | #include "MYSTRING.HPP"
#include <iostream>
#include <limits>
using namespace std;
Mystring::Mystring():siz(0)
{
str=new char[1];
str[0]='\0';
}
Mystring::Mystring(size_t ins): siz (ins)
{
str=new char[siz+1];
for (size_t i=0; i<ins; i++)
str[i]='0';
str[ins]='\0';
}
Mystring::Mystring(Myst... |
4b8e0bbae55fd56165638f69c18602154bdb1569 | be1e241c8960f999c46b0c79aa7ec624aff9d2d0 | /include/private/DumpFormatter.hpp | 39d502579d07cc20c9cccf4f35f4d49a4f4b676a | [] | no_license | jiajuwu/bb_eventloop | 983feeb01e777053124da3ec2f9fe125cd229f5a | 2436732833cc5688283a68bbd113ed60bbea9a87 | refs/heads/master | 2021-01-10T09:08:11.589533 | 2015-12-11T12:27:11 | 2015-12-11T12:27:11 | 47,827,806 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,136 | hpp | DumpFormatter.hpp | #ifndef EVENTLOOP_DUMPFORMATTER_HEADER
#define EVENTLOOP_DUMPFORMATTER_HEADER
#include <ostream>
#include <boost/iostreams/stream.hpp>
#include <boost/iostreams/concepts.hpp>
namespace EventLoop
{
namespace Detail
{
class DumpFormatterSink: public boost::iostreams::sink
{
public:
... |
4b405019f3cc855d8ec101c3c79782460eefe66d | 402511d388ad7b4f3633d44975c6037bd770a73c | /2056(직업)/2056(직업)/2056.cpp | 651f19a930d012497db2e588dafc66321bffeedd | [] | no_license | hg010303/Baekjoon | 33c9747f2b2adea66c5ac07fe5f444a4d1457dcc | 28b1df13aec07823d7ad0990bb94e4988e962094 | refs/heads/master | 2023-06-19T18:20:49.576626 | 2021-07-12T14:24:08 | 2021-07-12T14:24:08 | 278,156,857 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 621 | cpp | 2056.cpp | #include<iostream>
#include<algorithm>
#include<queue>
using namespace std;
int time[10010];
int num[10010];
int gp[10010][103];
int ans[10010];
int main() {
int n;
cin >> n;
queue<int> q;
for (int i = 1; i <= n; i++) {
cin >> time[i] >> num[i];
for (int j = 0; j < num[i]; j++) cin >> gp[i][j];
if (num[... |
f1f2d1e4056eff0e1ddba25dfaf466f5161a9a9d | 47b0b89a88039c099448968e014b441cf2d15ec5 | /不规则vector数组.cpp | 3c86a1c2307f3f5a626540648da9485114496906 | [] | no_license | MengQingguo377/C-tips | 271dfa4664b608eaf2cc55e971df268acc220978 | 62d220008a84342f919344f56c1273337cc7407b | refs/heads/master | 2023-01-18T20:16:43.923020 | 2020-11-20T00:32:03 | 2020-11-20T00:32:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 344 | cpp | 不规则vector数组.cpp | #include<iostream>
#include<vector>
using namespace std;
int main()
{
vector<vector<int> >arr;
arr.push_back({1,2,3,4});
arr.push_back({5,6,7});
arr.push_back({8,9});
for(int i = 0; i < arr.size(); i++)
{
for(int j = 0; j < arr[i].size(); j++)
cout << arr[i][j] << " ";
... |
a901bb017609679d809133ca75030ec258490895 | 68bfa9d7a6b267f52354415fc72fada1ddfdc9ab | /src/gennylib/include/gennylib/PhaseLoop.hpp | bfb3871c82fa925536fdacd8911bdca1d2192718 | [
"Apache-2.0"
] | permissive | mongodb/genny | 5aa3c3be01d8bd8e5b7c9a9d019c5b206d7e97fb | 788eaf26e3b8b08d76c71d54fb0013befee9b032 | refs/heads/master | 2023-09-06T09:25:21.933670 | 2023-09-05T15:59:07 | 2023-09-05T15:59:07 | 121,291,048 | 44 | 76 | Apache-2.0 | 2023-09-14T16:50:21 | 2018-02-12T19:23:44 | C++ | UTF-8 | C++ | false | false | 29,314 | hpp | PhaseLoop.hpp | // Copyright 2019-present MongoDB Inc.
//
// 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 t... |
3628be87a05bb989935e87d05ab92f02154ed9a2 | 0de0000dca1e26313d24e90f311a0bbedc272dd7 | /codecs/json/codec.hpp | d92563f0529371840fad36a7a68167e8ce2e62a1 | [
"MIT"
] | permissive | garettbass/reflect | efbd06032ac3fe0b155738dcecf415063649bc72 | e3618446e62ebc53e2066eeea3bbb07b25eeb9e6 | refs/heads/master | 2021-12-15T08:59:12.283769 | 2021-12-02T19:10:39 | 2021-12-02T19:10:39 | 115,894,990 | 58 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 103 | hpp | codec.hpp | #pragma once
namespace reflect {
template<typename Decoder, typename Encoder>
struct codec
} |
1286c1b3e488c7c8823e319ddab48dd93d23d213 | 3f7028cc89a79582266a19acbde0d6b066a568de | /mobile/library/common/extensions/filters/http/local_error/config.h | 5132e5e79768f73048a2afc5ec87dbb243adb9b8 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | envoyproxy/envoy | 882d3c7f316bf755889fb628bee514bb2f6f66f0 | 72f129d273fa32f49581db3abbaf4b62e3e3703c | refs/heads/main | 2023-08-31T09:20:01.278000 | 2023-08-31T08:58:36 | 2023-08-31T08:58:36 | 65,214,191 | 21,404 | 4,756 | Apache-2.0 | 2023-09-14T21:56:37 | 2016-08-08T15:07:24 | C++ | UTF-8 | C++ | false | false | 1,030 | h | config.h | #include <string>
#include "source/extensions/filters/http/common/factory_base.h"
#include "library/common/extensions/filters/http/local_error/filter.pb.h"
#include "library/common/extensions/filters/http/local_error/filter.pb.validate.h"
namespace Envoy {
namespace Extensions {
namespace HttpFilters {
namespace Loc... |
1e8b664460e385260ae2072caa3bea2752d0f92a | 5f7469de7ba2aab1f89adac8c4c2fc6bcecc93a7 | /Algorithm/1181.cpp | 355c718cab2fd18a39e6dccd99399968ca07f016 | [] | no_license | SeoMuseong/Algorithm | cf65f3ec8093258cc7d6ac12f579d52167a0e1db | 055551ab12d03fd6938054484de3aced5a2da827 | refs/heads/master | 2023-08-23T16:15:30.523002 | 2021-10-20T16:55:54 | 2021-10-20T16:55:54 | 414,271,613 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 558 | cpp | 1181.cpp | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
int N;
string* str = nullptr;
bool comp(string s1, string s2) {
if (s1.length() < s2.length())
return true;
else if(s1.length() == s2.length())
return s1 < s2;
return false;
}
int main()
{
cin >> N;
str = new s... |
bdd18b5cf4b16b1316c23db96aaaf20bba0b5719 | 7bb11750e13e2bbc63b3db83d178cfdced0531ef | /src/utils.cpp | 3d2c54413c5c75644499ad6ad1bebfa09b77270c | [
"MIT"
] | permissive | jltsiren/gcsa2 | 3b3b0e749526dca0cb57c21fabfe10cdbf0de1e9 | d246cfd5dbe0d45546f28213c0245aa308bdb462 | refs/heads/master | 2023-08-03T04:08:05.205238 | 2023-08-02T11:21:51 | 2023-08-02T11:21:51 | 32,087,454 | 77 | 13 | MIT | 2023-08-02T11:21:53 | 2015-03-12T16:20:15 | C++ | UTF-8 | C++ | false | false | 7,221 | cpp | utils.cpp | /*
Copyright (c) 2018, 2019 Jouni Siren
Copyright (c) 2015, 2016, 2017 Genome Research Ltd.
Author: Jouni Siren <jouni.siren@iki.fi>
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 wi... |
c25008be14b720a7de80bddc6ddd12d23799a7d9 | bb60ffdb40f49222d269f745c2699741d8f367c9 | /objects/Building.h | e081863e919f1b1f7c820b46f84395d9b63375ef | [] | no_license | regality/opengl-turret | 28f446d2a9d56837b07675a3997e9243f42694da | 46086b298e0027b3a291fa8b71779207d2bb1c06 | refs/heads/master | 2021-01-01T06:34:02.098499 | 2011-10-11T08:50:31 | 2011-10-11T08:50:31 | 2,551,320 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | h | Building.h | #ifndef Building_h
#define Building_h
#include <cmath>
#include <GL/glut.h>
#include <GL/gl.h>
#include "Cube.h"
class Building : public Cube {
private:
float pos[3];
float height;
float width;
public:
Building(float x, float z, float h, float w);
float posX();
float posZ();
... |
2704dce90c1d65c8db7c2585197415c55a904e24 | dd8714a71c05e387e239ff6e5d52c09219fdc624 | /module/mpc-be/SRC/src/filters/parser/AudioSplitter/MPC7File.cpp | 9e0268884132f68b6af6897c5196f602c3d29ff9 | [
"MIT"
] | permissive | dbyoung720/PBox | bbd6a77bad5bd7673f4c9dcbf2eec024ff01e0ce | d71740d858896dceee74f7412afad26a0eb56324 | refs/heads/master | 2023-01-23T01:39:29.638523 | 2023-01-03T06:01:07 | 2023-01-03T06:01:07 | 303,229,311 | 35 | 29 | null | null | null | null | UTF-8 | C++ | false | false | 4,696 | cpp | MPC7File.cpp | /*
* (C) 2020 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
*... |
792210153b4fda381448a1807a7ccfda2b6b85a2 | e0edbd7b0bdc1e5554137fe5d9886f1e4e9efcd6 | /contest46/661Image Smoother.cpp | 630e17227bf6701ca6025da05c042f6f45e3e2a7 | [] | no_license | ucas-joy/weekly-contest | c09d3e6e5f3d8125d5ebc9207ff34dfae79d9856 | 2fc3ebe9e1e9a7f49bb7f63dcbdb5a3e33e45103 | refs/heads/master | 2021-01-22T19:22:29.338357 | 2017-08-20T03:26:59 | 2017-08-20T03:26:59 | 100,775,310 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,444 | cpp | 661Image Smoother.cpp | #include<iostream>
#include<vector>
using namespace std;
class Solution {
public:
vector<vector<int>> imageSmoother(vector<vector<int>>& M) {
vector<vector<int>>res;
int row = M.size();
int col = M[0].size();
for (int i = 0; i < row; ++i) {
vector<int>tmp;
for (int j = 0; j < col; ++j) {
... |
2b25a18768724ceb452408c7b79c8fed65ba2a5b | c1b2e1fb29092cf7ac0827cb373a76f014fd5c69 | /rover_simulation/src/nodes/controller_server/ControllerServerMain.cpp | 7c930cd287fb7b644cc0487883595742cbd71677 | [] | no_license | pwalczykk/phobos_simulation | 15d13da021f869e506d7c356f78b0b84fa998990 | cc0d7a94809198779f58a1e5a3dd618daee522de | refs/heads/master | 2021-06-15T14:14:18.202193 | 2016-08-16T16:48:02 | 2016-08-16T16:48:02 | 58,233,332 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 439 | cpp | ControllerServerMain.cpp | #include "ControllerServer.hpp"
int main(int argc, char** argv)
{
ros::init(argc, argv, "ControllerServer");
double Kp = atof(argv[argc-4]);
double Ki = atof(argv[argc-3]);
double Kd = atof(argv[argc-2]);
ControllerServer server(argv[argc-1], Kp,Ki,Kd); // Jako argument przyjmuje topic dla nastaw... |
aba9829259f72da7ff09c581c16039445e9b0c11 | 44b3e2ca9777e6b8186b8b2eb7c390d1c4c4c8bc | /src/librearcam/NX_CDeinterlaceFilter.h | 422d6b387ccfc7a08c0ec27076c08199a43323cf | [] | no_license | NexellCorp/linux_apps_NxQuickRearCam | 78d7f40599e91965d8877cd11f34925121f9f240 | df7a25f077b714ac1e24501e48d26cad666175c5 | refs/heads/master | 2021-07-11T02:33:50.861562 | 2020-06-12T04:29:23 | 2020-06-12T06:14:42 | 170,825,661 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,891 | h | NX_CDeinterlaceFilter.h | //------------------------------------------------------------------------------
//
// Copyright (C) 2016 Nexell Co. All Rights Reserved
// Nexell Co. Proprietary & Confidential
//
// NEXELL INFORMS THAT THIS CODE AND INFORMATION IS PROVIDED "AS IS" BASE
// AND WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED... |
a47f93e032593fa7a8b9d2f8ab28b2ff4508a20b | fb6343f8a1e2a4922b02f4413a80020549dc6d64 | /17/17.11/两组连加.cpp | a62d493e1dffd3b7ecaadba8c66fcdc99b1338f2 | [] | no_license | xzbat/learn-c | daa3edb2bec1bea358020d119a4b311d348d8524 | 3819340d025df318535e68c3d136be5a275ad55b | refs/heads/master | 2020-03-07T10:28:27.576496 | 2018-04-24T07:25:10 | 2018-04-24T07:25:10 | 127,432,320 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 204 | cpp | 两组连加.cpp | #include<stdio.h>
int main()
{
long a, b, i, j;
scanf("%ld%ld",&a,&b);
long s1=0, s2=0;
for(i=1;i<a;i++)
{
s1=s1+i;
}
for(j=1;j<b;j++)
{
s2=s2+j;
}
printf("%ld\n%d\n",s1,s2);
return 0;
}
|
1b3d44af1b854db9d4a7db1148c57ed719b00680 | 1d16fdcbd5fbd91d8325170cb74115a045cf24bb | /CSCommon/Include/MAsyncDBJob_InsertGamePlayerLog.h | 9442dc0d141e1452d1cf0a9efd7e931d24aa5d35 | [] | no_license | kooksGame/life-marvelous | fc06a3c4e987dc5fbdb5275664e06f2934409b90 | 82b6dcb107346e980d5df31daf4bb14452e3450d | refs/heads/master | 2021-01-10T08:32:53.353758 | 2013-07-28T18:15:09 | 2013-07-28T18:15:09 | 35,994,219 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 574 | h | MAsyncDBJob_InsertGamePlayerLog.h | #pragma once
#include "MAsyncDBJob.h"
class MAsyncDBJob_InsertGamePlayerLog : public MAsyncJob
{
protected: // Input Argument
int m_nGameLogID;
int m_nCID;
int m_nPlayTime;
int m_nKills;
int m_nDeaths;
int m_nXP;
int m_nBP;
protected: // Output Result
public:
MAsyncDBJob_InsertGamePlayerL... |
739a2c3674cfc7ca66f572c6c06aafdb896e575d | 618734c07c3cd262c67bd54d7f10e70c32545ad7 | /Source/print.cpp | 75018636c1ffcd0624f652d9cadd8f3b1c1b85e7 | [] | no_license | Caspila/GUInity | c9e97ed2e0ad4c9c9a9afb3b036cdef2ac4ad204 | 0fe75e767fd0913ebb00f76afd3d181caa215efd | refs/heads/master | 2021-01-22T07:32:47.297635 | 2015-07-13T07:46:38 | 2015-07-13T07:46:38 | 28,250,903 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,980 | cpp | print.cpp | #include "print.hpp"
#include "Transform.hpp"
#include "Math.hpp"
ostream& operator<<(ostream& os, const glm::vec4& vec3)
{
os << '(' << vec3.x << ',' << vec3.y << ',' << vec3.z << ',' << vec3.w << ')';
return os;
}
ostream& operator<<(ostream& os, const glm::vec3& vec3)
{
os << '(' << vec3.x << ',' << vec3.y << '... |
0d2eca388a8c3eadb5f2e281347fd9acaddec1e5 | 263bfa7db19012c2b6ea9114f957bd9cee7d9cf7 | /Document_Search/test/libraryIndexerTest.cpp | f087c2c21203e591fa9afe67fd81e973daba99ee | [] | no_license | akifyilmaz/Document-Search-Software | 28785f9d21517ba512d20797e9c1626a0acabe6e | 70925f7900bbbd06c5efb3917ce424e1bb8196b6 | refs/heads/main | 2023-01-18T16:01:42.651282 | 2020-12-16T20:23:50 | 2020-12-16T20:23:50 | 322,092,303 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,221 | cpp | libraryIndexerTest.cpp | /*
* libraryIndexerTest.cpp
*
* Created on: Dec 16, 2020
* Author: akifdev18
*/
#include "gtest/gtest.h"
#include "libraryIndexer.h"
#include <fstream>
namespace {
class libraryIndexerTest : public ::testing::Test {
protected:
libraryIndexer library_Indexer;
std::vector<std::string> file_path_vector... |
2c236230e5e6295ee55122c7ff28a02d0adb13f4 | 95acf4f6e07ab10c1fb4f95a816e5b61d1c30e3c | /godel_surface_detection/src/nodes/robot_scan_node.cpp | 6f674b854d05d73dc023b999c1d0f9e22eaa6f5f | [] | no_license | Jmeyer1292/godel | a0470f4c39264fe69c14523d02653f4e11a566bf | 6793ccc2cc4105034287af71612aee11b929b62f | refs/heads/hydro-devel | 2020-04-04T19:15:52.227607 | 2016-01-05T20:53:28 | 2016-01-05T20:53:28 | 30,308,164 | 1 | 3 | null | 2017-03-22T21:49:26 | 2015-02-04T16:20:33 | C++ | UTF-8 | C++ | false | false | 4,544 | cpp | robot_scan_node.cpp | /*
Copyright Apr 15, 2014 Southwest Research Institute
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... |
7108fefebd0c820de33fafc15ee31f0d6e9d0406 | 5d60c1a4a769b4911791c07297ab4e60b1fb9f04 | /Course/StreamFormatting/StreamFormatting/main.cpp | 1cac5b6e68f35554f5d605ac505e997e97a3064c | [] | no_license | alernerdev/CPlusPlus | ec39a1d02c04b6b4347bb43a9f66a75f763b80d8 | 27d184ffbb966ae6f276a26b4586e07a55bb3153 | refs/heads/master | 2020-03-27T06:27:16.717179 | 2018-09-22T16:10:27 | 2018-09-22T16:10:27 | 146,107,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 902 | cpp | main.cpp | #include <iostream>
using std::cout;
using std::endl;
#include <iomanip>
using std::setw; // right justified column width
using std::setprecision; // at most floating point precision
using std::fixed; // display floating numbers as fixed even if there is no floating point portion
#include <cmath> // the old mat... |
fb31ac0fb1f17a6747fb08956d5e7e5ebffa6c85 | 843807ac71c1d935ccb5a4d54456663000f21f8d | /wifi_screen.ino | dcbe1e888ae7eb8972ab172396a7b26d34b0b6ea | [] | no_license | ognjetina/wifi_screen | 4e3f39e448a659bcb2773d7de3f3e38d1d677cd8 | 058fd15be41df1eb37985985d580584f5d3f5fa2 | refs/heads/master | 2021-05-01T15:14:22.017861 | 2018-03-06T07:22:42 | 2018-03-06T07:22:42 | 121,032,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,377 | ino | wifi_screen.ino | #include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <ArduinoOTA.h>
#include <LiquidCrystal_I2C.h>
#include <EEPROM.h>
#include <ESP8266HTTPClient.h>
#include <ArduinoJson.h>
StaticJsonBuffer<200> jsonBuffer;
const char* username = "admin";
char password[32]... |
4503fc2c1458def1100458f52fcc2b60df3e2899 | 5eb01b2eff25fb0d8fbbb00b02961e565ac3f415 | /inst/util/MsgEncryptionUtil.h | 9d17a02411ee0981f5995cbc0b66aa150d7367ec | [] | no_license | biglone/LT-PureCodes | 3ca6fc47731e2d566cd1c5389cce93e55768933a | 22d7ec1a1414bc99a16a050800a2cc9259546b9a | refs/heads/master | 2020-05-04T10:29:03.603664 | 2019-04-02T14:23:40 | 2019-04-02T14:23:40 | 179,088,457 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 401 | h | MsgEncryptionUtil.h | #ifndef _MSG_ENCRYPTION_UTIL_H_
#define _MSG_ENCRYPTION_UTIL_H_
#include <QString>
#include <QByteArray>
class MsgEncryptionUtil
{
public:
static QByteArray generatePassword(const QString &seed);
static QByteArray encrypt(const QByteArray &text, const QByteArray &password);
static QByteArray decrypt(const QByteA... |
1fd77e863b6138b1e5aee497aa098ae1355798ca | 292861d73519f2ecd0d531c403d2ae3e41de2de0 | /het_cpp/FACT_CON.CPP | b2b5e05dd09bf90abf3e6a714826d68bbc4ad3f6 | [] | no_license | hetsthr/cpp_cdac | 0bcbda19179ab105f5a41dd0e0ad924bd3589ffe | 24d497459441d1685f9f8c82c0e3edf6f041b256 | refs/heads/master | 2020-06-18T17:58:00.264992 | 2019-07-11T12:37:53 | 2019-07-11T12:37:53 | 196,390,782 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 318 | cpp | FACT_CON.CPP | #include<iostream.h>
#include<conio.h>
class fact
{
public:
int k,i;
fact(int j)
{
k=1;
for(i=1;i<=j;i++)
{
k=k*i;
}
cout<<"Fctorial is "<<k;
}
};
void main()
{
int b;
clrscr();
cout<<"Enter no to find factorial:";
cin>>b;
fact a1(b);
getch();
}
|
48a71635ce6cf907ef2936f69e16e25f8176c7cc | a87cb0f806b44a853050dc18962779bc83610f74 | /Simulator/mainwindow.cpp | e2d6e86a402590e4e65cacef321a5e693bcfcefe | [] | no_license | IngyN/AssemblyProject | e5c5c7baa1ad75b74653b515727cc3fe6db06202 | 440b884026dea8d76eee0b6ef6b9ad8a2726fe49 | refs/heads/master | 2021-01-19T13:26:50.467837 | 2015-04-15T15:29:05 | 2015-04-15T15:29:05 | 32,596,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,616 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <Simulator.h>
#include <QMessageBox>
#include <iostream>
#include <simulatorwindow.h>
SimulatorWindow * w0=NULL;
MainWindow::MainWindow(QWidget *parent, Simulator * S) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
this->S=S;
ui->setupUi(th... |
9655ed595bdcf3a643b20cd149689466c941644c | bed336fc87b09834348f6c3de364953c7558d8bb | /src/stack.cpp | 796ace65fd78fb06becffecf4e1de8d05b0b1ab7 | [] | no_license | keleslab/mosaics | 7bc6b95376d8b8a78427194ef3181be67020de40 | 786f5db1438015aaa6bac6c423e7b3655e5df946 | refs/heads/master | 2021-07-14T18:00:09.109482 | 2020-02-27T00:37:56 | 2020-02-27T00:37:56 | 38,325,192 | 1 | 0 | null | 2016-05-02T17:50:57 | 2015-06-30T18:11:55 | R | UTF-8 | C++ | false | false | 586 | cpp | stack.cpp | // Calculate score function to obtain updated mu (Rcpp)
#include <Rcpp.h>
RcppExport SEXP cpp_stack( SEXP S, SEXP E, SEXP minx, SEXP maxx ) {
using namespace Rcpp;
Rcpp::IntegerVector SVec(S), EVec(E);
int minxValue = Rcpp::as<int>(minx);
int maxxValue = Rcpp::as<int>(maxx);
Rcpp::NumericVector... |
5f0c7a1245eccbae31eee784a571b45b9166e6ec | 24221ab2cbbc5605e7c2648633fb009d3901ccd1 | /lib/lb_xplane_ui/widgets/spacer.h | e961f69b2323d5dd2c91d56ecd35ae0726187c41 | [
"MIT"
] | permissive | leecbaker/datareftool | 843565a18283bfefbb26954bd74fa7d62e2c818a | a2b238838a130b8d0df1908c72300b22fb837323 | refs/heads/master | 2022-11-15T20:00:30.812405 | 2022-10-24T05:24:57 | 2022-10-24T05:24:57 | 29,484,885 | 143 | 41 | MIT | 2022-09-18T20:25:35 | 2015-01-19T18:23:22 | C | UTF-8 | C++ | false | false | 274 | h | spacer.h | #pragma once
class Widget11Spacer : public Widget11 {
Size min_size;
public:
Widget11Spacer(Size min_size = {0,0}) : min_size(min_size) {
}
virtual Size getWidgetMinimumSize() const override { return min_size; }
virtual void draw(Rect) override {}
};
|
9d34d5cbef7cfd849b8c6c3fd58ee40ec80f032b | f01194e047dd38a8568cddf9565e54411fd17596 | /Practice Codes/toughest.cpp | 4c45f3afc86b77baa4fb5837e6aefc0f3f4ad761 | [] | no_license | 2012ankitkmr/My-works | 118df8cf651785d19b962ee9afc2278d12d5a69a | 910e5425e2ded2fb59a3613d33d3468dc1be1158 | refs/heads/master | 2020-04-05T23:08:29.182573 | 2017-02-24T12:19:03 | 2017-02-24T12:19:03 | 52,659,326 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | cpp | toughest.cpp | #include<iostream>
#define d 1000000037
int main(){
short t,x;
long unsigned int a,b,w,h,n,y,p,q,j;
cin>>t;
for(i=0;i<t;i++){
cin>>a>>b>>n;
long unsigned int arr[a][b];
for(j=0;j<n;j++)
p=0;
q=0;
while(){
if(arr[p][q]==)
}
cout<<endl;
}
return 0;
}
|
9e0bd37b68fe6a2d8c168cbb082ebd8830ca6047 | 761e340eea8e982766afd850590d05c22f357cda | /tmp_/code/src/query_parser/QueryEncoder.h | 9a871a91dd6690eda5648c4ef361d82208572134 | [] | no_license | fjamour/MAGiQ | 70d421121f1d7f880077d7e13def42c4a0c85e2a | 92886e2b7b215799082b399712d0222bbf8557cb | refs/heads/master | 2023-03-09T09:40:24.211580 | 2023-02-28T05:19:38 | 2023-02-28T05:19:38 | 166,398,618 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 5,250 | h | QueryEncoder.h | /*
* File: QueryEncoder.h
* Author: abdelai
*
* Created on November 13, 2017, 3:10 PM
*/
#ifndef QUERYENCODER_H
#define QUERYENCODER_H
#include <cstdlib>
#include "utils.h"
#include <iostream>
#include <dirent.h>
#include <errno.h>
#include "SPARQLLexer.hpp"
#include "SPARQLParser.hpp"
#include "utils.h"
usin... |
e07e83dc3ca7b400b46ac348b2392b6996b33745 | ad73f24307fa65781818fba6819c60e6fcfc3523 | /Examples_3/Unit_Tests/src/09_LightShadowPlayground/SDFVolumeData.cpp | 23dd542d88c0c45fba765a4bffcdfa7f282def84 | [
"Apache-2.0"
] | permissive | ValtoLibraries/The-Forge | 786d0960f9a721bd944fc5e69acf7c3496f57522 | 56edfc8828bdb31da60e3386478334d8f95c2b8e | refs/heads/master | 2020-03-28T09:59:58.183716 | 2019-08-11T00:41:57 | 2019-08-11T00:41:57 | 148,074,785 | 0 | 0 | Apache-2.0 | 2019-08-11T00:41:58 | 2018-09-09T23:34:40 | C++ | UTF-8 | C++ | false | false | 14,368 | cpp | SDFVolumeData.cpp | #include "SDFVolumeData.h"
#include "Intersection.h"
#include "Ray.h"
#include "Geometry.h"
#include "BVHTree.h"
#include "../../../../Common_3/OS/Interfaces/IThread.h"
#include "../../../../Common_3/OS/Core/ThreadSystem.h"
#include "../../../../Common_3/OS/Interfaces/IFileSystem.h"
#include <sys/stat.h>
#ifdef _WI... |
772a1ca330672a510129db7ea94d9728771df9d6 | d1cad1a0fc1cbd3ea75291e09de94d583cc7a30a | /display/font.cc | 3294b162215e06578a9c4cfd5727389a15117a2d | [
"Artistic-1.0"
] | permissive | vladki77/simutrans-extended | c8e2157e2647ea5b7af815a103ee7ef64c447b17 | 7641da8ed5603fc9154e3009a556b2b23747f523 | refs/heads/master | 2022-12-31T17:39:37.578712 | 2020-10-25T15:13:31 | 2020-10-25T15:13:31 | 106,965,323 | 2 | 0 | null | 2019-04-10T19:14:22 | 2017-10-14T21:50:06 | C++ | UTF-8 | C++ | false | false | 13,680 | cc | font.cc | /*
* This file is part of the Simutrans-Extended project under the Artistic License.
* (see LICENSE.txt)
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "../simtypes.h"
#include "../simmem.h"
#include "../simdebug.h"
#include "../macros.h"
#include "font.h"
#include "../utils/simstring.h"
/... |
38d0a01c66bb328c603f8a0866c817cdfe18dfe6 | 936bd76dd3cc6bd422b93388fede4469f87f1bab | /shiftregister/shiftregister.ino | c229834ac1aaf33e6d83ae5decb17d583f21a909 | [] | no_license | procastino/shiftRegisterArduino | 1e18302e62bbfa19e75bbbff1006446c5c96dc06 | 99c7aab30a72ed332e8bc6b96685b37cb92f926d | refs/heads/master | 2021-03-12T22:49:44.058580 | 2013-06-17T10:15:35 | 2013-06-17T10:15:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,164 | ino | shiftregister.ino | /*
From Adafruit lesson, improved to patterned LED lights controlled by two pushbuttons
*/
//definimos botons e variables precisas
int pinBotons[]={3,2};
int ultimoEstadoBoton[]={LOW,LOW};
int estadoBoton[]={LOW,LOW};
long ultimoDebounce=0;
long retardoDebounce=20;
/... |
e49aadd7d0808b9b4b22a7f2a97a0fab200ef89a | f721566b16077f9445e1f6edd3b9f0c52e88478c | /plugins/PrimaryVertexSelector.cc | c65d2d8634f1b1c3df3857174370a99823edd1c2 | [] | no_license | horace-cl/BParkCinves | 147cdf6de55f2ed0c2bcd6734dce2c331107d8db | 58c948202f1b7907ad1d8d8b4e8fe64a19d9a3c4 | refs/heads/master | 2023-02-26T07:59:39.077760 | 2020-09-16T02:00:12 | 2020-09-16T02:00:12 | 260,793,130 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,206 | cc | PrimaryVertexSelector.cc | #include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/global/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/ParameterSet/interface... |
d626d5cf72a952cc4085322ecee6eb82243972be | f3a61097296d888e64067e837cb52641316a6487 | /Unreal4XBook/Source/Unreal4XBook/Chapter06/Warrior_CH6.cpp | cc5636756de2dbda417d99419ecf5e9239b09f18 | [] | no_license | klauth86/Scripting-with-UE4X | be3c66bc5de7fc5fa6c69cb95d2f3cf2981b26af | 0bdfeed473932af27066c2722f5dd417a5b8e5a0 | refs/heads/master | 2020-09-13T08:42:24.061941 | 2019-12-07T14:24:44 | 2019-12-07T14:24:44 | 222,715,613 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,754 | cpp | Warrior_CH6.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "Warrior_CH6.h"
#include "Components/CapsuleComponent.h"
// Sets default values
AWarrior_CH6::AWarrior_CH6()
{
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it... |
bb10d141a9d74aab666d3814b801d07d96f28cec | 4a51af77ee7bfd76d120d914599ff05d36d4e605 | /engine/include/opengl/GLVertexArray.h | e3e6b35bb7ecd2d04c7fd73d6bf4e184ed37bdf5 | [] | no_license | vic4key/flyEngine | 6929a3b4d60a7cf4f32191af9b76c296bcb8bfaf | 2ed68f8cd022849fbc7d93d1f42c12bfcd0de098 | refs/heads/master | 2020-03-13T20:45:12.909031 | 2018-04-26T12:40:21 | 2018-04-26T12:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 231 | h | GLVertexArray.h | #ifndef GLVERTEXARRAY_H
#define GLVERTEXARRAY_H
#include <GL/glew.h>
namespace fly
{
class GLVertexArray
{
public:
GLVertexArray();
~GLVertexArray();
void bind() const;
private:
GLuint _id;
};
}
#endif
|
a99442ee572c32dc88de9abe0f4e950dfddddaaf | d43b226bee2aae82b13171b6b912483c5197d341 | /Problem Solving/UVa/272.cpp | e84f0cbf827df4d7ef4172a0f34d7c558ec4a227 | [] | no_license | AshHasib/my-last-stand | 2d6c4d220e41fe4aa651511c01d963ad34ec4fde | f618d959a08861f89424c789ffbf8bf4126d8dc3 | refs/heads/master | 2020-06-23T09:32:49.105969 | 2020-01-01T18:47:04 | 2020-01-01T18:47:04 | 198,585,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 628 | cpp | 272.cpp |
#include<bits/stdc++.h>
using namespace std;
int main()
{
//freopen("input.txt", "r", stdin);
char S[100000];
while(gets(S)) {
long sz= strlen(S);
long p=0;
//int c1=0,c2=0;
for(long i=0;i<sz;i++) {
if(S[i]=='"') {
p++;
if(p... |
253812cf5837b8483906f0eb8e5d521d3e662bb0 | 11e62f23bd66c0455b6e7c0e96375ae5a9a33468 | /src/Projection3D.h | b921d5d4dfd084c0a8dc3c086f08d56157fbed7e | [] | no_license | Tomas-Homola/PG_cv8 | 1d0b872e25d99d814c721b8be90ce6f3895ef539 | d8237cad6bd4004a240b038fb9c3be4051b1d416 | refs/heads/master | 2023-04-30T15:59:37.160495 | 2021-05-21T17:37:41 | 2021-05-21T17:37:41 | 365,853,229 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,178 | h | Projection3D.h | #pragma once
#include "qmath.h"
#include "qcolor.h"
#include "structs.h"
#include "qvector3d.h"
// napad pre tuto triedu mi poradil Alex Filip
class Projection3D
{
private:
int projectionType = 0;
int shadingType = 0;
double zenit = M_PI_2;
double azimut = 0.0;
double clipNearDistance = 0.0;
double clipFarDist... |
0e43e32230bd69a3967e28ad2507cf420647ea04 | e65a4dbfbfb0e54e59787ba7741efee12f7687f3 | /graphics/libgltf/files/patch-src_Shaders.cpp | a5a68b445ed9590a09c5952303b4ee2705ee289a | [
"BSD-2-Clause"
] | permissive | freebsd/freebsd-ports | 86f2e89d43913412c4f6b2be3e255bc0945eac12 | 605a2983f245ac63f5420e023e7dce56898ad801 | refs/heads/main | 2023-08-30T21:46:28.720924 | 2023-08-30T19:33:44 | 2023-08-30T19:33:44 | 1,803,961 | 916 | 918 | NOASSERTION | 2023-09-08T04:06:26 | 2011-05-26T11:15:35 | null | UTF-8 | C++ | false | false | 310 | cpp | patch-src_Shaders.cpp | --- src/Shaders.cpp.orig 2014-10-01 18:31:43 UTC
+++ src/Shaders.cpp
@@ -175,7 +175,7 @@ bool ShaderProgram::compileShader(const char* pShader,
};
const GLint aSizes[] = {
- strlen("#version 130\n"),
+ sizeof("#version 130\n") - 1,
iGLSize,
};
|
e236f9ea0be62a7f65e024212851e70f3e5591f0 | 6da981a79c000e383b18fca44a25c4eb6595101e | /src/plugins/Pie/commands.cpp | 6c204baa3d85b8af52aef7e41361c48e59986e77 | [] | no_license | Artanidos/AnimationMaker | bb48aa2166e6c70a7768ffe71dc4ff9cf0f6f03c | 9b34fea1182e11708e21c6fc568712992bb9e7ee | refs/heads/master | 2022-06-30T04:39:35.996533 | 2022-06-09T16:25:33 | 2022-06-09T16:25:33 | 79,568,692 | 137 | 21 | null | 2021-06-22T20:24:26 | 2017-01-20T15:05:26 | C++ | UTF-8 | C++ | false | false | 2,823 | cpp | commands.cpp | /****************************************************************************
** Copyright (C) 2017 Olaf Japp
**
** This file is part of AnimationMaker.
**
** AnimationMaker is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Sof... |
5078dacd12939bcab218704bcdf47137348edea7 | 85c604d8cfba6b60ab8297b1288536344006d926 | /CodeChef/Easy/ANUBTG.cpp | 9076107189f8e7e08b94c37a5ee6445c20ef4d8b | [] | no_license | bhuvi99/SPOJ | 6f693e65e29b279e5e7b6a854e1538210f1c86ea | 9f2c209165ea8c3f08bed07ae9e85ab64e65d195 | refs/heads/master | 2021-07-04T23:19:45.194740 | 2017-09-26T11:58:29 | 2017-09-26T11:58:29 | 104,072,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 358 | cpp | ANUBTG.cpp | #include<iostream>
#include<algorithm>
#define rep(i,a,n) for(int i=(a);i<n;i++)
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
int t,n,cost;
cin>>t;
while(t--){
cin>>n;
int k[n];
rep(i,0,n) cin>>k[i];
sort(k,k+n);cost=0;
for(int i=n-1;i>=0;i-=4){
cost+=k[i];
if(i)
cost+=... |
d011134202824aae13126cf53ca4e10c55c1a2b6 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5634947029139456_0/C++/Darsein/a.cpp | 8ef06a96143a577b843af096f6861bac59fd974e | [] | 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 | 1,207 | cpp | a.cpp | #include<iostream>
#include<string>
#include<algorithm>
#include<stack>
#include<queue>
#include<set>
#include<complex>
#include<map>
#include<list>
#include<deque>
#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<cstring>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;
typedef long long ll... |
e9cba1201f5ab20c28d421bc89e790ed04027f21 | e753edbd9a55616fa123b7f4b116891cb43cef6c | /player.h | 34ee5c9536c87700350a0411cad9151a8810d038 | [] | no_license | JulieMckenna/BattleShip-game | 26538df5392b6fcfdabf077a94b5a9a75c9fef40 | 6581491d63f97b4de15c819c1752e32ef2436bf0 | refs/heads/master | 2022-10-13T17:26:15.948176 | 2020-06-09T15:05:59 | 2020-06-09T15:05:59 | 271,033,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,242 | h | player.h | #include "board.h"
#include <sstream>
#include <limits>
class player_c{
private:
//each boat hit they get a point
int score;
string name;
int hitsAgainst;
vector<string> gueses;
board myShips;
board myMoves;
player_c *enemy;
public:
player_c(){
//cout << "Mad... |
6616d2435b6eb7488fb80174ee11a3df844cc2da | 1a2796041b763f7176427d53cb895cec59efb1a3 | /UdemyNotes/Complete_Modern_C++/lvaluervalue.cpp | 464a922d8af489d9e7766f198da384598b9cfd86 | [] | no_license | vineethkartha/Notes | 2e20bf2494f76f2cd43a111022cc5d5096497a3b | 1ec70129e6fddac8dad4ff62466d7fbb230596a8 | refs/heads/master | 2021-06-16T22:00:18.192608 | 2021-02-18T10:45:00 | 2021-02-18T10:45:00 | 158,053,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 207 | cpp | lvaluervalue.cpp | #include <iostream>
int foo(int &a) {
std::cout<<"This is lvalue overload\n";
}
int foo(int &&a) {
std::cout<<"This is rvalue overload\n";
}
int main() {
int a =5;
foo(a);
foo(5);
return 0;
}
|
a0e70b83b91908ac6998d8d507aa17f141d9ed2d | 6d088ec295b33db11e378212d42d40d5a190c54c | /contrib/mul/mbl/mbl_minimum_spanning_tree.h | cc4fd8205fe10df3fa11913cee5c1995cba30572 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | vxl/vxl | 29dffd5011f21a67e14c1bcbd5388fdbbc101b29 | 594ebed3d5fb6d0930d5758630113e044fee00bc | refs/heads/master | 2023-08-31T03:56:24.286486 | 2023-08-29T17:53:12 | 2023-08-29T17:53:12 | 9,819,799 | 224 | 126 | null | 2023-09-14T15:52:32 | 2013-05-02T18:32:27 | C++ | UTF-8 | C++ | false | false | 1,659 | h | mbl_minimum_spanning_tree.h | #ifndef mbl_minimum_spanning_tree_h_
#define mbl_minimum_spanning_tree_h_
//:
// \file
// \author Tim Cootes
// \brief Functions to compute minimum spanning trees from distance data
#include <vector>
#include <iostream>
#include <utility>
#include <vnl/vnl_matrix.h>
#include <vgl/vgl_point_2d.h>
#include <vgl/vgl_poin... |
d9e67b3044abe2206a1e5fe9bea14ccbda936fb0 | 72ed63c92ff6b2c66eb26f9bb8fe42f9c30b6dcc | /PAT test/050 algorithm中的常用函数.cpp | 4cc22f5bafa29ebfcab16986a120a3289817e97a | [] | no_license | wangjunjie1107/CodeTesting | ceee7adbf73d357cb3b93e751682e05b83b54328 | 2e614831877f30db109e5b669a1d77bb17208a5a | refs/heads/master | 2020-07-15T04:59:36.138974 | 2019-10-30T00:39:29 | 2019-10-30T00:39:29 | 205,484,180 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 882 | cpp | 050 algorithm中的常用函数.cpp | #define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<set>
#include<vector>
#include<string>
#include<map> //map和multimap的头文件
#include<unordered_map> //unordered_map
#include<queue>
#include<utility>
#include<algorithm>
using namespace std;
void test01()
{
//最大值 最小值 ... |
55f0c9ff832504b5fcbcc0733936d45f21fe0bad | efb87e4ac44f9cc98eab0dc162266fa1b99b7e5a | /Codeforces/CF100283-Gym-C.cpp | 116a318dc803fa64024037887e618168fd9af04f | [] | no_license | farmerboy95/CompetitiveProgramming | fe4eef85540d3e91c42ff6ec265a3262e5b97d1f | 1998d5ae764d47293f2cd71020bec1dbf5b470aa | refs/heads/master | 2023-08-29T16:42:28.109183 | 2023-08-24T07:00:19 | 2023-08-24T07:00:19 | 206,353,615 | 12 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,748 | cpp | CF100283-Gym-C.cpp | /*
Author: Nguyen Tan Bao
Status: AC
Idea:
- At each second, for each position (i,j), calculate number of thieves that would be asked by other thieves to get treasure.
- More formally, let a[t][i][j] = sum(a[t+1][u][v]) (the distance between (u, v) and (i, j) is smaller than t) (t >= 1, t is... |
1eb3bcea42a4b09f6e45906c2fb41144dc130b9c | d0f5a31932b49ac1a80d61d308bd43490631b1a3 | /1.4 Array/int.cpp | b1b61fe9558dc5f39cc54ea6dd9ceb456fa736c4 | [
"MIT"
] | permissive | arryaaas/Programming-Algorithms | 2930d9ee7768f4a3f975d692abc60baf189567f8 | f469431830cbe528feb297abd47d2d6c08e0781a | refs/heads/master | 2023-07-10T12:39:46.704085 | 2021-08-10T23:21:08 | 2021-08-10T23:21:08 | 316,120,041 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 713 | cpp | int.cpp | #include <iostream>
using namespace std;
int main() {
int tabInt[5], jumlah;
cout << "Array integer berisi 5 elemen" << endl;
cout << "Elemen ke-1 : "; cin >> tabInt[0];
cout << "Elemen ke-2 : "; cin >> tabInt[1];
cout << "Elemen ke-3 : "; cin >> tabInt[2];
cout << "Elemen ke-4 : "; cin >> ta... |
c50973186b854834a37084db4281a69723548f43 | 3f94fde265e466368ca72a9b26c7a404cf2fba8f | /Engine/src/trace/tracescene.cpp | 92ea3709b5cbff68dc1052fe6c4532cad8e28d09 | [] | no_license | HanfeiChen/ray-tracer | f0c3937525a81205281ce19b90fe4d250003dd94 | 83657818d45cb4f495c2068dc9595960bc0bf1f0 | refs/heads/master | 2022-11-10T06:38:25.432149 | 2020-06-26T21:22:27 | 2020-06-26T21:22:27 | 275,250,143 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,674 | cpp | tracescene.cpp | #include "tracescene.h"
#include <scene/scene.h>
#include <scene/sceneobject.h>
#include <scene/components/triangleface.h>
TraceScene::TraceScene(Scene *scene, bool use_acceleration)
{
AddSceneObjects(&(scene->GetSceneRoot()), glm::mat4());
if (!use_acceleration) {
for (auto obj : bounded_objects) {... |
d030925899cb4cdc17f0667f11f84280b654dd67 | fa0a4154da274110436f5eeacdd5309e084b6325 | /timing/timing.cc | 85222a6f04035b1206d8858ad65fe5ad5434982b | [
"Apache-2.0"
] | permissive | MollyDream/grpc | 3755e22e98314454997205bc6a88517e13e1770e | d2c4e593d1cf04445cd9bb5eb0de548c958af6f9 | refs/heads/master | 2020-07-09T22:33:26.413790 | 2019-08-24T05:40:02 | 2019-08-24T05:40:02 | 204,096,600 | 0 | 0 | Apache-2.0 | 2019-08-24T02:16:42 | 2019-08-24T02:16:41 | null | UTF-8 | C++ | false | false | 2,483 | cc | timing.cc | #include <iostream>
#include <chrono>
#include <array>
#include <vector>
#include <math.h>
#include <cassert>
#include <pthread.h>
#include <unistd.h>
using namespace std;
using namespace chrono;
enum ProfType {k_init, k_alloc, k_sched, k_run, k_other};
class TimingReference {
public:
using D = duration<int,nan... |
2d009d8cf3e04ec9a212463f9b1cc84d04cf94bb | dff19e230b4ce0175d84d18c9844aa097b11c019 | /BoardSpace.cpp | fcb0dc9ec4c285450c942989c552089f1425eeb1 | [] | no_license | LordMotas/OnitamaAI | b882de3b7bbc288cce11129e053b40b876897dd3 | 40c6b149f2c620fdab18bd0ab6f18c70078a8cad | refs/heads/master | 2020-06-10T20:31:02.886677 | 2016-12-12T17:55:34 | 2016-12-12T17:55:34 | 75,882,421 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 210 | cpp | BoardSpace.cpp | #include "BoardSpace.h"
BoardSpace::BoardSpace(Piece spacePiece, int onmyo)
{
piece = spacePiece;
isOnmyoSpace = onmyo;
}
BoardSpace::BoardSpace(Piece spacePiece)
{
piece = spacePiece;
isOnmyoSpace = 0;
} |
f60c233efb6bd05b5081c49e99a2cd251b9a2dbe | ed480e5030ec091da42401b204345da285f74620 | /sdr-cxx/src/AUBasicStream.cpp | 8bfb18f8c1c89f72092360eecb20c9a003ed163e | [
"BSD-3-Clause"
] | permissive | jdstmporter/SDRAudio | d1d0679d479ec6886b732ad23909e7c7161094ad | 40392ab443de2e565f8e6b448af6cc3012c906db | refs/heads/master | 2023-01-13T12:59:07.632630 | 2020-11-20T01:00:20 | 2020-11-20T01:00:20 | 310,144,111 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 870 | cpp | AUBasicStream.cpp | /*
* AUBasicStream.cpp
*
* Created on: 10 Nov 2020
* Author: julianporter
*/
#include "AUBasicStream.hpp"
namespace audio {
AUBasicStream::~AUBasicStream() {
if(stream!=nullptr) {
try {
Pa_CloseStream(stream);
stream=nullptr;
}
catch(...) {}
}
}
void AUBasicStream::open() {
PaStream *stre... |
1acf3824e1938004cd550a3e906cff47ecc6bada | 7020ea489625e4cfa14bebe16c324e331b9641a1 | /Utilities/_Source/MemoryPool/MemoryPool.inl | f943975b9b9fbfa830527be460800042a37680dd | [] | no_license | fredlim/GameEngine | fe129b2042357f03d4a3415b5c80bab2af519e8e | 1ba2f86b321082a8e8f6159bd90dcaab738e5c59 | refs/heads/master | 2021-01-24T20:54:00.445552 | 2014-09-23T03:37:36 | 2014-09-23T03:37:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,236 | inl | MemoryPool.inl | /**
****************************************************************************************************
* \file MemoryPool.inl
* \brief The inline functions implementation of MemoryPool class
****************************************************************************************************
*/
#include <assert... |
875d2efbb39c9473cf78593149d26c7808f94646 | 4e57ad279fb04b17f0b024dba780cbd7c0f14ec7 | /lib/armadillo-11.4.1/include/armadillo_bits/SpSubview_bones.hpp | da60d972e5842a7f0369f8ea76f8e9ed4d6e8afd | [
"Apache-2.0"
] | permissive | dcajasn/Riskfolio-Lib | b9ed51b8da93c648f0e255bc7bc20e17d1290cfa | 06dfe24745dd8ab40665621e72cfeb40a80c2b2e | refs/heads/master | 2023-08-09T16:11:47.258143 | 2023-08-01T20:05:00 | 2023-08-01T20:05:00 | 244,460,835 | 2,266 | 403 | BSD-3-Clause | 2023-06-20T04:04:38 | 2020-03-02T19:49:06 | C++ | UTF-8 | C++ | false | false | 16,453 | hpp | SpSubview_bones.hpp | // SPDX-License-Identifier: Apache-2.0
//
// Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
// Copyright 2008-2016 National ICT Australia (NICTA)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may ob... |
7cfc45021a724317da657abe8afd3a8b7e10861f | 63053b31a0293533907420e9a198e709596c0c7b | /Source/Unix/PlatformProcess.h | c1028be4002f86309beff0cefa18b7d37ce7377c | [
"MIT"
] | permissive | Alprog/GitTern | 44e48646a640fd36cbd8b319d09840af5622d569 | 498c81de9081fe409d6c983b1fa961cddcaa3b7f | refs/heads/master | 2021-04-29T22:59:37.905478 | 2019-02-17T19:59:47 | 2019-02-17T19:59:47 | 121,545,935 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 342 | h | PlatformProcess.h |
#pragma once
#include "Process.h"
#include <unistd.h>
class UnixProcess : public Process
{
public:
UnixProcess();
~UnixProcess();
virtual void Run(std::string path, std::string commandLine, std::string directory);
virtual void Stop();
virtual bool IsRunning();
pid_t pid;
};
using PlatformP... |
763fbfaf455d14307141fca5ae17685040ea6b0d | 914c61d58282b9e00e8d2426c367eba67512f169 | /Projects/Project2/partB/human.h | 81563c7b91e18cfe07707331fe75f8a62d62687a | [] | no_license | Zachary-Rust/Zachary-Rust-CSCI-21 | ab8d6c7b39cf74f826b70055d91408823051a1b9 | 23ea9cf0165f2b3d64656526b861575ac37a1fec | refs/heads/master | 2021-05-09T20:43:40.145431 | 2018-05-20T04:27:35 | 2018-05-20T04:27:35 | 118,703,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 448 | h | human.h | //Zachary Rust
//3/8/18
//Description: This class handles all operations relating to the human player (Sub-Class)
#ifndef HUMAN
#define HUMAN
#include "player.h"
#include "gameboard.h"
class human: public player {
public:
human();
human(gameboard b);
void MarkBoard(char row, int col, char c... |
e61ab1d0b326f96f02e518a31b3272e499828983 | 64f9af56eec1ba3b09e4dae3cd583b1bb9fef4bb | /Spatial_Filtering/Filter2D.cpp | 5302f81e25a9648590ace4ff3fe865350f8026a9 | [] | no_license | allisonh32/IPCV | 42ea83960d2d69508fc634f6b38462590236e8d9 | edc9314959cdab69c77571d71a4face026325815 | refs/heads/master | 2020-12-21T19:20:53.920913 | 2020-01-27T16:47:35 | 2020-01-27T16:47:35 | 236,533,521 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,209 | cpp | Filter2D.cpp | /** Implementation file for image filtering
*
* \file ipcv/spatial_filtering/Filter2D.cpp
* \author <Allison Hazebouck> (<amh7966>)
* \date 10 21 2019
*/
#include "Filter2D.h"
#include <iostream>
using namespace std;
namespace ipcv {
/** Correlates an image with the provided kernel
*
* \param[in] src ... |
55c8acc1166fe51bb3782820f781c7b4bbd9d87c | a871415fe39f81e55851346d5ef7ad4823ac7d28 | /include/hamls/TSeparatorTree.hh | 43d400f815538757fcd9191d2cd09bbe35bd222f | [
"MIT"
] | permissive | PeterGerds/HAMLS | 18892e5bc30a75a28ff37d3ad439a65d691f236c | 6531765a364b44c02e3763b5d3283fdde980b2f2 | refs/heads/master | 2020-08-03T06:46:10.460169 | 2019-11-14T07:40:59 | 2019-11-14T07:40:59 | 211,658,319 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,908 | hh | TSeparatorTree.hh | #ifndef __HAMLS_TSEPARATORTREE_HH
#define __HAMLS_TSEPARATORTREE_HH
//----------------------------------------------------------------------------------------------
// This file is part of the HAMLS software.
//
// MIT License
//
// Copyright (c) 2019 Peter Gerds
//
// Permission is hereby granted, free of charge, ... |
200163b93b2afd16ea758fcd77cc93a43909b616 | 83e80c6e94013f93e8bd116570f66d4c8b7d5582 | /src/src/io/read_multilayer_network.cpp | 183599931ebdef84c03aa334590b51bff7cf3bd7 | [] | no_license | cran/multinet | 3c049047487484ff988ae0457ef8c1b8681ac02f | 8693584b3359e335df0199137203b578c7ecf86c | refs/heads/master | 2023-02-26T05:49:52.698760 | 2023-02-14T09:20:03 | 2023-02-14T09:20:03 | 79,171,174 | 5 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 9,692 | cpp | read_multilayer_network.cpp | #include "core/exceptions/DuplicateElementException.hpp"
#include "core/exceptions/WrongFormatException.hpp"
#include "core/exceptions/assert_not_null.hpp"
#include "io/read_multilayer_network.hpp"
#include "io/read_network.hpp"
#include <sstream>
namespace uu {
namespace net {
std::unique_ptr<MultilayerNetwork>
rea... |
e70f662fef278e070716cc222b45b358ee6bb41d | 9fdb16f3d1cdb24f75024088383d3cb0d8744f3d | /ChaseTagAI/Source/Astar/AstarNode.h | e4825fe20f9eb7f4e70d7af82eb606be4b5c044c | [] | no_license | whitephenix13/ChaseTagAI | 1b096c5ba3b274746f2e8d5b20998f35a6fafedc | f809762c008559061c1c31f9ea4f03de13220474 | refs/heads/master | 2023-02-15T21:27:00.630067 | 2021-01-16T18:11:36 | 2021-01-16T18:11:36 | 285,898,945 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 431 | h | AstarNode.h | #pragma once
#include <utility>
class AstarNode {
public:
std::pair<int, int> cellIndex;
float totalCost;
AstarNode();
AstarNode(const AstarNode& copy);
AstarNode(std::pair<int,int> cellIndex);
// the top of the priority queue is the greatest element by default,
// bu... |
e61bde32bbd1bcc2c4c8ae407ddf7aefb69fbc29 | 30549c5d42f41d3423178d802f6791fb28875fbd | /src/utils/shared_structs.hpp | d3f6f529a9a0d896cbab723295e000504dc614b2 | [
"MIT"
] | permissive | new2f7/RayTracing | 7d4cdf96616aacacab1e63262c861e8e62b0e421 | 609b230c68f2129f53fd3c85b479b947dce39949 | refs/heads/master | 2021-07-09T09:41:16.075302 | 2021-03-20T11:13:44 | 2021-03-20T11:13:44 | 235,313,525 | 1 | 0 | null | 2020-02-10T13:23:14 | 2020-01-21T10:15:16 | C++ | UTF-8 | C++ | false | false | 2,255 | hpp | shared_structs.hpp | #ifndef TRIANGLE_HPP
#define TRIANGLE_HPP
#ifdef __cplusplus
#include "mathlib/mathlib.hpp"
#include <CL/cl.h>
#include <algorithm>
#endif
#define MATERIAL_BLINN 1
#define MATERIAL_METAL 2
#define MATERIAL_ORENNAYAR 4
#define MATERIAL_PHONG 5
#ifndef __cplusplus
typedef struct
{
float3 pos[2];
} Bounds3;
#endif
... |
93f1338c1a20678583b4b189b7214703a30e2012 | 8751901f535ca551df4299022e964f71ac3848d2 | /c++/LeetCode/LeetCode/CountBinarySubstrings.cpp | f8e2baaff4ed4ab2eae82d2707062234cef70613 | [] | no_license | iorinie/LeetCode | af97154229e085156459107090982118d438a37b | 666e59e92385a4b78d5f864885407196ecd6126a | refs/heads/master | 2023-01-13T18:18:02.535492 | 2020-11-20T09:45:29 | 2020-11-20T09:45:29 | 263,205,449 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,651 | cpp | CountBinarySubstrings.cpp | #include "CountBinarySubstrings.h"
/*
题目描述:
给定一个字符串 s,计算具有相同数量0和1的非空(连续)子字符串的数量,并且这些子字符串中的所有0和所有1都是组合在一起的。
重复出现的子串要计算它们出现的次数。
示例1:
输入: "00110011"
输出: 6
解释: 有6个子串具有相同数量的连续1和0:“0011”,“01”,“1100”,“10”,“0011” 和 “01”。
请注意,一些重复出现的子串要计算它们出现的次数。
另外,“00110011”... |
f7f8c45afd2eb1fab20a80e266285151a66aa3de | 5027897d89efd1d698b2287283fb0fc8288c1ef4 | /Leetcode/LinkedList/707.DesignLinkedList/solution.h | 4d89e0516391edf43f4bef81c6a626e2aec74c8f | [] | no_license | meteora211/SelfLearning | 99adea31682370b07f69f407bcd019dea3d5a489 | f6cf3753c5aa7e9a187575385eff315582cfdcaf | refs/heads/master | 2023-06-24T15:21:09.984079 | 2023-06-16T15:15:39 | 2023-06-16T15:15:39 | 138,721,097 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,149 | h | solution.h | class MyLinkedList {
private:
struct ListNode{
int val;
ListNode* prev;
ListNode* next;
ListNode(){};
ListNode(int e, ListNode* p, ListNode* s):val(e),prev(p),next(s){};
};
ListNode* header = new ListNode();
ListNode* tailer = new ListNode();
int _size;
public... |
1ce1e5dbc5786c5412dbf7160d59ae391bd0311d | 751ea79faabf3d0ba4679ccfb4758aa6e88ef54c | /oop12/main.cpp | d76413b1d7412d5efae7dcf9e18c1e9588b39e86 | [] | no_license | aabriti58/oop | 66dd35c6cb8c740fa53fccd3feb6539f0531b2a1 | bfdcde58ab49b415079cf8b1444225ae1a3dd295 | refs/heads/main | 2023-03-15T03:22:48.879754 | 2021-03-14T11:31:16 | 2021-03-14T11:31:16 | 347,614,415 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,189 | cpp | main.cpp | /*Binary operator
#include <iostream>
#include<math.h>
using namespace std;
class A{
public:
float a;
float b;
float c;
}ft,inch,total;
int main()
{
int i;
int d;
cout<<"enter ft1:"<<endl;
cin>>ft.a;
cout<<"enter ft2:"<<endl;
cin>>ft.b;
cout<<"enter inch1:"<<endl;
ci... |
72b8931f916b25624597ac1cc1a23f04acdf29d2 | 065b619484cf0b32d6bf6c35d48a0a09505c1406 | /分类题目/算法竞赛入门经典/Ch4--函数和递归/Uva1339/Uva1339-pro.cpp | 80ce4a08d4913a7ad9f705b096473d07ee4ff9c3 | [] | no_license | shanPic/CodeOfAcm | 8683caf552dbaebae19bb9c6d0816db8356eef43 | 67ea5ba1695035669f15dbccc88d36ddd1abca54 | refs/heads/master | 2021-07-10T09:14:02.500346 | 2017-10-11T15:55:18 | 2017-10-11T15:55:18 | 106,294,149 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 655 | cpp | Uva1339-pro.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int set1[30],set2[30];
char str1[110],str2[110];
bool flag;
while(scanf("%s%s",str1,str2)==2){
memset(set1,0,sizeof(set1));
memset(set2,0,sizeof(set2));
for(int i=0;i<strlen(str1);i++){
set1[str1[i]-'A']++;
... |
17613143be44b45fe29289703a26bc666a04bfde | 8178161f4eabf12eae1b0e099eac9e8bc4df1bbe | /simulation client/SimulationLoop/TCP_sender.h | afe26883c1aa79ac7ac8c13e9c6ec2d24150f594 | [] | no_license | AlexKLM/Physics-sim-and-concurrency | 367f1820e6d0049f07f9b733d72685fea9d77256 | 16218695242a879f8d064e77d2a35184298464e1 | refs/heads/master | 2020-05-17T17:32:11.166574 | 2013-07-24T10:33:48 | 2013-07-24T10:33:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 735 | h | TCP_sender.h | #pragma once
#include <iostream>
#include <winsock2.h>
#include <process.h>
#include<Windows.h>
#include <string>
#include <vector>
#include <sstream>
#include "shared_memory.h"
#include "shared_struct.h"
class TCP_sender
{
private:
HANDLE thread;
SOCKET send_socket;
sockaddr_in server_addr;
bool ready;
int run()... |
05e642e2eb46ea1034155e34ec9a6fff6fa26472 | 7d010c8ac4751fcfc6b3b6d638a69dcdad14d87b | /Codeforces_ChoosingTeams.cpp | 9c0c2fb64b73a01a4c987caf362486bd0a93c48f | [] | no_license | JoyCmollik/CodeforcesSolvedProblems | 23e925c2a3d88f9b17e5ad6a5d96c9498a16282b | 43a7ddfe0fc5c8e236c3e288ab74a4327c1ddb33 | refs/heads/master | 2023-05-30T16:42:19.759150 | 2021-06-09T06:31:11 | 2021-06-09T06:31:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 263 | cpp | Codeforces_ChoosingTeams.cpp | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int ulli;
int main()
{
int n, k;
cin >> n >> k;
int members = 0;
while (n--)
{
int y;
cin >> y;
if (5 - y >= k)
members++;
}
cout << members / 3 << endl;
return 0;
} |
4ad6cab23ac219879c7c453599140d82b88fc1ff | e76ea38dbe5774fccaf14e1a0090d9275cdaee08 | /src/chrome/browser/bookmarks/bookmark_tag_model.h | b30e565cc37d53aef5ab38cac7eecc113a9d8087 | [
"BSD-3-Clause"
] | permissive | eurogiciel-oss/Tizen_Crosswalk | efc424807a5434df1d5c9e8ed51364974643707d | a68aed6e29bd157c95564e7af2e3a26191813e51 | refs/heads/master | 2021-01-18T19:19:04.527505 | 2014-02-06T13:43:21 | 2014-02-06T13:43:21 | 16,070,101 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 9,504 | h | bookmark_tag_model.h | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_TAG_MODEL_H_
#define CHROME_BROWSER_BOOKMARKS_BOOKMARK_TAG_MODEL_H_
#include "chrome/browser/bookmarks/bookmark... |
36d9061bb70affddc37428edac3ebc8b0a165ada | bb313333858dba1cc34d656f6b667ca21b491378 | /src/widgets/windows/HistoryWindow.cpp | d39cee730b56c33ca7749db5df2033a1dbf85a77 | [] | no_license | KittyIM/Client | 8ac66957173788ab3f1d3898b031fe78b9584d72 | 4b436b5ac08d671109c936e4cbc0f64515497228 | refs/heads/master | 2016-09-06T17:49:14.332802 | 2012-03-18T20:06:06 | 2012-03-18T20:06:06 | 1,348,825 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,989 | cpp | HistoryWindow.cpp | #include "HistoryWindow.h"
#include "ui_HistoryWindow.h"
#include "ProtocolManager.h"
#include "AccountManager.h"
#include "SettingsWindow.h"
#include "ContactManager.h"
#include "IconManager.h"
#include "Profile.h"
#include "Core.h"
#include <SDKConstants.h>
#include <IContact.h>
#include <QtGui/QStan... |
d8ca3ec531eeb224f4a4ef84f6fcc366ac0039a5 | aeb4711e7738ead627d170c4c61c103d277cb96c | /moneybot_extern/backtracking.h | 6ac6833cc14a8233f949ebafe627c7b4f1e210db | [] | no_license | navewindre/moneybot-external | a535b80a942192b5ce89efc76da0207832ddc26d | 5328bab6151cf76858543189e804565693bd862b | refs/heads/main | 2023-03-21T23:03:03.766271 | 2021-03-05T17:18:25 | 2021-03-05T17:18:25 | 344,880,019 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,842 | h | backtracking.h | #pragma once
#include <array>
#include "entity.h"
#include "client.h"
#include "sdk.h"
constexpr const size_t BACKTRACKING_BACKUP = 64;
namespace lagcomp
{
class c_backtracking {
public:
c_backtracking( ) { };
~c_backtracking( ) { };
void update( ) {
for ( int i{ }; i < 64; ++i ) {
auto ent = g_instan... |
2a3a706270fb741a06cb54827d6c420c1388becb | 11e97f87deb25babb4a32c80941e7ff4e476c92a | /SMA/Rotor/SEQUnit.h | c4d2f0351026a5b7d69c947b552cc87a9a31ad8a | [] | no_license | xhyangxianjun/Builder6-program | b9d03d98658db5a5a8cf1586210a373bc391dc48 | a12d811d7a5fa3dba6d3e8c05989a41cb89783de | refs/heads/master | 2022-04-03T00:25:47.274355 | 2019-09-19T08:26:56 | 2019-09-19T08:26:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,337 | h | SEQUnit.h | //---------------------------------------------------------------------------
#ifndef SEQUnitH
#define SEQUnitH
#include <Classes.hpp>
#include <Grids.hpp>
//---------------------------------------------------------------------------
//void Msg(AnsiString _sMsg)
typedef void (__closure *SeqMsgFunc)(AnsiString);
class... |
af74495f87a2ad96c2e8e59d323cc9a2ac73ffc9 | 0517284f941161b5f7d7663d3bc1ab735a5efb9b | /ch10/ex10_12.cc | 2b1af2fbfd66edded630b29f9d86d95d39c4f517 | [] | no_license | LuckyGrx/CppPrimer | 874d56efa56aa23278afebb278752ff473835479 | 6818a2e80d6d343a86fe59bca104652948063abb | refs/heads/master | 2021-09-21T17:04:13.800399 | 2018-08-29T12:49:40 | 2018-08-29T12:49:40 | 94,493,037 | 10 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 690 | cc | ex10_12.cc | ///
/// @file ex10_12.cc
/// @author zack(18357154046@163.com)
/// @date 2017-08-25 14:04:56
///
#include "../ex07/ex7_26.h"
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using std::vector;
using std::endl;
using std::string;
using std::sort;
using std::cout;
inline bool comp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.