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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f6c8595a6a67497394f3e38eaffa4949a40020d1 | 38896a5b3a68fd5272c8f929baf0bb3eec133a7d | /ex2_320827694_302893680/JigsawPuzzleAbstract.cpp | 6744af1c150f02fde1780945ca0f1ee6d23a4899 | [] | no_license | AShugaley/AP_JigsawGame | b0c785c05ee3e2ce3a001d1b3f776480c4f13243 | 27e91cf6cd8ca0974b8e7249c04513ad40be8e7a | refs/heads/master | 2021-09-05T12:48:54.285640 | 2018-01-27T17:32:56 | 2018-01-27T17:32:56 | 109,441,657 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 947 | cpp | JigsawPuzzleAbstract.cpp | //
// Created by okleinfeld on 12/15/17.
//
#include "JigsawPuzzleAbstract.h"
void JigsawPuzzleAbstract::initSolMatrix(){
this->solutionMatrix = std::vector< std::vector<int> >((size_t) this->lastRowIndex + 1, std::vector<int>((size_t) this->lastColIndex + 1));
for (int i = 0; i < this->lastRowIndex+1; i++)
... |
daab1307044cd38b55a63f9e1edc3c9bd19b738d | 98bcad8f9cb904f5b596b50ec7af8d70b637d8b9 | /src/UCNBStackingAction.cc | 30000953c4c693f3a16604af474e1f15f0dcd208 | [] | no_license | bradplaster08/UCNBspectroscopy_Geant4 | 0fb2d02775ba84bb1bcc52c80e3138c52b9662e7 | 03b629587085337035be627463bd363fc8ac90b4 | refs/heads/master | 2021-01-19T03:02:59.221477 | 2014-12-14T14:13:22 | 2014-12-14T14:13:22 | 27,996,005 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,901 | cc | UCNBStackingAction.cc | #include "UCNBStackingAction.hh"
#include "UCNBAnalysisManager.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleTypes.hh"
#include "G4Track.hh"
#include "G4ios.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
UCNBStackingAction::UCNBStackingAction()
: nCerenkovCounter(0... |
ad67a1b71c86aea26e25dadca7ee25ee414e1a69 | 4dad3e137f89638cc1c13903d2f82cfee9e9a611 | /234-PalindromeLinkedList.cpp | 1e1a9e5b0f92a5489abc90a24041160bc44c357d | [] | no_license | AbubakirovRA/leetcode | 5b510c34b89b207319f65d7a925d37f02c6924a5 | 6eb9d5a4f978f9bf31a45b356a09b93322e192fd | refs/heads/master | 2023-03-16T22:40:06.209726 | 2019-07-14T05:12:43 | 2019-07-14T05:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,441 | cpp | 234-PalindromeLinkedList.cpp | /*
Given a singly linked list, determine if it is a palindrome.
Follow up:
Could you do it in O(n) time and O(1) space?
*/
// http://www.geeksforgeeks.org/function-to-check-if-a-singly-linked-list-is-palindrome/
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next... |
47e0468728b25838602197e8342e50acea280641 | f43711e16bf8e16fee28df8376814e14ec6ee10e | /Spoj/new.cpp | 2d38a9b935d2e93fa64a5573b694d17e6d31a4ee | [] | no_license | kshav/My_codes | 5e3ed56b99ba2860462d485b2c2c6cdc485db14a | 4337b951454b62010bcc91b8f78db2eb04dcdc67 | refs/heads/master | 2016-09-06T00:24:47.843220 | 2014-02-19T12:49:31 | 2014-02-19T12:49:31 | 16,978,109 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 213 | cpp | new.cpp | #include<iostream>
#include<math.h>
using namespace std;
int main()
{
int n;
cin>>n;
float k;
k=log(n)/log(2);
if (fmod(k, 1) == 0);
cout<<"HLT";
system("pause");
return 0;
}
|
4b7c817a85ecd1ab129f06e4613f96627a1cc469 | c22dbf8b58f205c5b748eeff49dfaf04e3a40f39 | /tools/doc/doxyinput/except.cpp | de15cc659b40aa515c459cfd8505ce83eddae596 | [] | no_license | VishalKandala/Cantera1.8-Radcal | ee9fc49ae18ffb406be6cf6854daf2427e29c9ab | 1d7c90244e80185910c88fdf247193ad3a1745f3 | refs/heads/main | 2023-01-20T17:07:23.385551 | 2020-11-29T05:50:51 | 2020-11-29T05:50:51 | 301,748,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 448 | cpp | except.cpp | #include <cantera/Cantera.h>
//
// artifical example of throwing and catching a CanteraError exception.
//
void mycode() {
ThermoPhase* gas = newPhase("h2o2.cti","ohmech");
if (gas->temperature() < 3000.0) {
throw CanteraError("mycode","test of exception throwing and catching");
}
}
int main() {
... |
15cb5e14bf2625f4bf748a0e1aa084735fcc2f6c | 3b434d0c9a175bee2d41a219afb09dbe438ea021 | /source/Worker.cpp | d1ef49725d10a0849c50c0c8ce13a722ea4084e4 | [] | no_license | SgtBacon/Project8_FinalExam | 9257dc3305873dac93ecf0d77cb773ae77065774 | 9eaf2321afc20954d99e4446b6e5733e9b69ba28 | refs/heads/master | 2020-05-20T16:52:48.539942 | 2019-05-16T22:20:47 | 2019-05-16T22:20:47 | 185,673,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,047 | cpp | Worker.cpp | #include "Worker.h"
Worker::Worker(){ //Base constructor
name = "Captain Price";
jobTitle = "Vault-Tech Representative";
cd = 900;
}
Worker::Worker(string n, string jobT){ //base constructor
name = n;
jobTitle = jobT;
cd = 900;
}
void Worker::Remove_FuelCell(Reactor... |
7b1d435688e018213cfb553de3f77f3eb719f3f9 | 7b509139082191e7302ac29620811c797a4b0609 | /EXAM_004/main.cpp | 85e633bc8ece91d6fabb988a21f07c2ac69092f0 | [] | no_license | stratomaster84/LEETCODE | c0a51aae3b984152ecf72a3caec307b43ffd2e5e | 31614a37dbad19c419039e2e04dfe4df5ecc52cc | refs/heads/master | 2023-08-13T00:18:25.142889 | 2021-10-15T03:34:33 | 2021-10-15T03:34:33 | 406,693,929 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 573 | cpp | main.cpp | #include <iostream>
using namespace std;
class A{
public:
A(){cout<<"A+"<<endl;}
virtual void func() = 0;
virtual void func2() = 0;
~A(){cout<<"A-"<<endl;}
};
class B:public A{
public:
B(){cout<<"B+"<<endl;}
//void func(){cout<<"B func"<<endl;}
virtual void func2(){cout<<"B func2"<<endl;}
~B(){cout<<... |
5ced134ebcd8b3f23053ae826b5335f623e55ea1 | fbba2dd799483a413eaaa2629c23e1dd7a2bc029 | /NFServer/NFMasterServerPlugin/NFCMasterModule.cpp | 4751241e514856a8fc1803aa3a63a480571adc42 | [
"Apache-2.0"
] | permissive | zmyer/NoahGameFrame | 976695518fb46c660aee5190213361e1c06900f9 | a9f174712cbbde5f74669aaeebd7527d0dfffd76 | refs/heads/master | 2021-01-21T16:38:43.326329 | 2016-04-03T02:59:51 | 2016-04-03T02:59:51 | 56,921,421 | 1 | 0 | null | 2016-04-23T13:47:35 | 2016-04-23T13:47:34 | null | UTF-8 | C++ | false | false | 732 | cpp | NFCMasterModule.cpp | // -------------------------------------------------------------------------
// @FileName : NFCMasterModle.cpp
// @Author : LvSheng.Huang
// @Date : 2013-01-02
// @Module : NFCMasterModle
// @Desc :
// ------------------------------------... |
afac1a82b70225ebc8eafbbf4ed90b29b2f9e751 | 85c561f4d44b175c87cf4342784f57923d8552fa | /assembler/src/coder.cc | 539cbf7d0361595960bb8f9c04ab4a8f04a83e4c | [] | no_license | ianmurfinxyz/nand2tetris | 16c28ff3654af303e1de9e240df3a6e38b39696f | 42b19f88ec68e6e48d85cc4c252202d635f928d1 | refs/heads/master | 2023-08-17T12:31:17.727270 | 2021-09-10T12:19:38 | 2021-09-10T12:19:38 | 398,554,448 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,582 | cc | coder.cc | #include <sstream>
#include <cassert>
#include <limits>
#include "coder.hh"
#include "error.hh"
namespace hackasm
{
const std::unordered_map<std::string, uint16_t> coder::comp_codes = {
{"0" , 0b0101010},
{"1" , 0b0111111},
{"-1" , 0b0111010},
{"D" , 0b0001100},
{"A" , 0b0110000},
{"!D" ,... |
21cda955b5ef83e8076c21eeb61e6909fbd3ac12 | c0682742df103b3377dadedb555f495e82efabf3 | /UVa10226 - Hardwood Species.cpp | 5edc3a1256b45ab7a752b49a3b3082e69e13f168 | [] | no_license | JuanCarlosUNAL/CompetitivePrograming | da919ee0a88fc3c5caf5abf79c67b05889c9b135 | 91aca52cabe38b9329f6e19704c2054bfa453c40 | refs/heads/master | 2022-04-09T17:54:13.982284 | 2020-03-07T22:45:47 | 2020-03-07T22:45:47 | 117,785,031 | 0 | 0 | null | 2020-03-07T22:37:43 | 2018-01-17T04:42:51 | C++ | UTF-8 | C++ | false | false | 756 | cpp | UVa10226 - Hardwood Species.cpp | #include <iostream>
#include <map>
using namespace std;
int main(){
int test;
string arbol;
map<string, unsigned long long> lista;
unsigned long long n;
cin >> test;
cin.ignore();
cin.ignore();
cout.setf(ios::fixed);
cout.precision(4);
bool space = false;
while ( test-- ){
n = 0;
lista.clear(... |
4eccdaebc4b8db7dc1e27287f1aa4222877e81b8 | c605c0bdc5c80539b3302ab892d3378ef11d4047 | /프로그래머스/lv1.이상한 문자 만들기.cpp | 530c22ab3890880a6192f7e366369071ef4da018 | [] | no_license | yujin0719/Problem-Solving | 44b4d6e5669c56488ab347e17d22b8346f560a88 | a481d7028f98b107f96483a7b3718b6d401c7822 | refs/heads/master | 2023-06-08T07:47:27.584629 | 2021-07-01T11:26:53 | 2021-07-01T11:26:53 | 252,609,862 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 426 | cpp | lv1.이상한 문자 만들기.cpp | // leve1 이상한 문자 만들기
#include <string>
#include <vector>
using namespace std;
string solution(string s) {
string answer = "";
int idx = 2 ;
for(auto a : s){
if(a == ' ') {
answer += a;
idx = 2;
}
else {
if(idx%2==0) answer += toupper(a);
... |
a465b704120f42be9dfbae71336f2d865741ea71 | e93660c66bfba2a6e17b16bacdf2c6ee180a7d4e | /main.cpp | 059ff6dbb26dac0dac55ace6fb099aad5832704a | [
"MIT"
] | permissive | grantpauker/bigint | afb703856e9a4eedb34a52dd95cc04a71dbe4fc1 | ce8942f9f5e141061c9f57e3c909381fa95ff21e | refs/heads/master | 2022-02-11T09:23:38.806292 | 2018-12-03T23:13:58 | 2018-12-03T23:13:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 232 | cpp | main.cpp | #include <iostream>
#include <string>
#include "bigint.hpp"
#define pln(n) std::cout << (n) << std::endl
#define p(n) std::cout << n
int main()
{
BigInt num0("199");
BigInt num1("99");
num0 -= num1;
pln(num0);
}
|
6df30b543106780514756c00a762aaeb3d0c5e0e | fad74b1a98f24a6097d94c586489cb8370ca9736 | /source/Rectangle.h | 3b70ba567254816a444306bc9d97b091375351f7 | [] | no_license | CrystalCoding/Shape-Modelling---C- | da0a000648238e639953b4f495e243be97734677 | 054aef0be350d689bc5966dc54ef8398a2676714 | refs/heads/master | 2020-12-25T11:15:12.639989 | 2016-08-08T06:23:11 | 2016-08-08T06:23:11 | 65,177,972 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 810 | h | Rectangle.h | #ifndef RECTANGLE_H
#define RECTANGLE_H
#include "Shape.h"
class Rectangle : public Shape {
private:
int width ;
int height ;
public:
Rectangle ( const int w, const int h, const string & description = "Generic Rectangle" ) ;
public:
int getWidth () const {
return width ;
}
int getHeight () const {
re... |
cd4aeda6524f4cef49eb498959e6d69ffb95f6e8 | cd43d71c865e25092c7bf9ff526c13825cc2e4d8 | /Collision/CollisionManager.hpp | edd98a8f32e217806b239362139ba4225468a9aa | [] | no_license | JTuthill01/Hell-on-Treads-v2.0 | 78d95b31528651cc98f5ffe41e76743ed5a4b017 | 5f6544db4e2f45984d765b21214cab8f84ff47a6 | refs/heads/master | 2020-05-19T08:41:06.534888 | 2019-05-12T21:33:37 | 2019-05-12T21:33:37 | 184,926,541 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 546 | hpp | CollisionManager.hpp | #pragma once
#include <Entity/Enemy/Enemy.hpp>
#include <Entity/Entity.hpp>
#include <Entity/Player/Player.hpp>
#include <Collision/Collision.hpp>
class CollisionManager
{
public:
CollisionManager();
~CollisionManager();
void playerEnemyTankProjectileCollision();
void playerPlaneEnemyProjectileCollis... |
55c7a4ea1242eef0020b1ee5541608f6bfb569ed | 70e3a0bdcb906694c8e1c74a0ea21a91635b5a57 | /MyTime.h | 6a019adc66158cda61a6a2f12d274f1dcaa694f9 | [] | no_license | gikraychik/nesterov | d20adf85c7eba9d99a793631d2e4b729ba93efb5 | 8aa3429b202f6ef8bfc271dd37d39472f484309b | refs/heads/master | 2021-01-19T10:26:21.839615 | 2014-05-11T16:19:36 | 2014-05-11T16:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 300 | h | MyTime.h | #pragma once
#include "basic_type.h"
typedef unsigned long long time_l;
class MyTime : public Basic_Type
{
public:
friend std::istream &operator >>(std::istream &input, MyTime &time);
MyTime(const time_l time = 0);
~MyTime(void);
//inline unsigned int operator -(const MyTime &time) const;
};
|
4a9841385b1480f7f537d1172789d1d5b0aee231 | 68e3cbcd32ef49a64267a92486ae7e0dc8f3916f | /cf 1337 D.cpp | a46d73c93446ee8fe94df6d4e393fb66a33e9f6f | [] | no_license | star-platinum127/uva | d2db4e0078a502628257ac6b4b6ac7d6f4899e5e | fc660aad483909055f5397be267c4ce9c033c4ef | refs/heads/master | 2023-05-26T15:57:48.922938 | 2023-05-21T15:45:46 | 2023-05-21T15:45:46 | 240,208,573 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,064 | cpp | cf 1337 D.cpp | #include <bits/stdc++.h>
using namespace std;
#define miku mywaifu
#define misaka mywaifu
typedef long long ll;
ll r[100005],b[100005],g[100005];
ll mini(ll r[],ll b[],ll g[],int rn,int bn,int gn){
ll min1=3e19;
for(int i=0;i<rn;i++){
ll buf=r[i];
int pos1=lower_bound(b,b+bn,buf)-b;
int pos2=upper_bo... |
2cade3148c67d179fd9a2ab99272f0a61128f5b5 | 8368d6976e64cfb79b5ef4b36d98d0bd1a434bfc | /hydra/renderer/renderer_engine_module.cpp | 0fc770384c7a4d44f60ee83eef2a009be6a6bd8a | [
"MIT"
] | permissive | tim42/hydra | 0ce75f729366aa19af07b8c72d65c5081c60898b | 837f45388497a9d7b55ce6de1e89b59c604f90e1 | refs/heads/master | 2023-07-26T14:30:34.671187 | 2023-07-15T23:19:43 | 2023-07-15T23:19:43 | 66,951,521 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,530 | cpp | renderer_engine_module.cpp | //
// created by : Timothée Feuillet
// date: 2022-5-23
//
//
// Copyright (c) 2022 Timothée Feuillet
//
// 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 with... |
ef1a5cd4c62859648fddbfe2430589987f6ae077 | 3d5d1af7763ca875ed4a114bc8c0f7f8c05b5ae7 | /lab3/points_pair.hpp | f882973d6cec3bc31774a75cc35a947e3529dcd1 | [] | no_license | alena-zayts/BMSTU_4sem_object_oriented_programming | 0652073c089d1c70bfd0cb3ce5066323c6c7e963 | a3f424c607af3d46459453925e086c59e47977df | refs/heads/main | 2023-05-28T01:41:19.973443 | 2021-06-05T14:02:22 | 2021-06-05T14:02:22 | 344,856,811 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,494 | hpp | points_pair.hpp | #ifndef POINTS_PAIR_HPP
#define POINTS_PAIR_HPP
template <class T1, class T2>
class Pair
{
public:
explicit Pair();
Pair(const T1 &, const T2 &);
~Pair() = default;
void set_first(const T1 &);
void set_second(const T2 &);
void set_both(const T1 &, const T2 &);
T1 &get_first... |
83f4a2cd116ddc93ae01c7db3afc41a891ab69a1 | 902dfe3bb1643d39523d32871d18fa939feae8ae | /esp-dht/esp_dht_oled.ino | fe33ffb38ed3e60926063f48eba4c22700465aa9 | [] | no_license | derfel-c/esp-dht-sensor-project | 8227a96546599c7298884ec23c4728fec17c8d11 | 51e5341ca6fd43cabcf9406a3938c0d4e1c3cbea | refs/heads/main | 2023-02-11T21:38:28.649986 | 2021-01-05T14:34:52 | 2021-01-05T14:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,372 | ino | esp_dht_oled.ino | #include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <DHTesp.h>
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <ArduinoOTA.h>
// Modifiable parameters:
#define DHTPIN 16
#define BUTTONPIN 0
#define SCREEN_HEIGHT 64
#define SCREEN_WIDTH 128
// WIFI Conn... |
041d68331a23719932ad3f18f456aeba9234bbd4 | 9017be6c535d993765e3f28024ecc5d8cb155c97 | /Invengo_Sign/currentsign.h | fc6c396af267111f8086d9a418cbc045acd35448 | [] | no_license | linux-downey/linux_uart_test | 3120540a9576e5f56bb90a5f4c6d656e74d32987 | 7936f47301fe88e1dbf52f96819082e9c5b90fa6 | refs/heads/master | 2020-08-02T05:32:55.019818 | 2019-10-14T14:39:45 | 2019-10-14T14:39:45 | 211,249,727 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 291 | h | currentsign.h | #ifndef CURRENTSIGN_H
#define CURRENTSIGN_H
#include <QDialog>
namespace Ui {
class CurrentSign;
}
class CurrentSign : public QDialog
{
Q_OBJECT
public:
explicit CurrentSign(QWidget *parent = 0);
~CurrentSign();
private:
Ui::CurrentSign *ui;
};
#endif // CURRENTSIGN_H
|
d73e23eeaac098b171023f693b4c01cafbd506f4 | 66b4eb2c460cac5d9f40f99f725538c0a3e2feda | /Company Course/Homeworks/01-Cpp_Course/08-Template_Class/calculator.h | f53cbd33da3524033f521a901218122d89064b0e | [] | no_license | Mavrikant/Qt-Course | 0fe4e766af4f9e91b7727273c37ab7b5fd499a1d | de702b0121fa85c33cc5ec02819d2fb84cc74191 | refs/heads/master | 2022-12-15T23:01:36.868043 | 2020-09-10T17:41:34 | 2020-09-10T17:41:34 | 255,144,522 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 310 | h | calculator.h | #ifndef CALCULATOR_H
#define CALCULATOR_H
template <typename T>
class Calculator
{
public:
Calculator(){}
static T sum(T a1,T a2){return a1+a2;}
static T sub(T a1,T a2){return a1-a2;}
static T mul(T a1,T a2){return a1*a2;}
static T div(T a1,T a2){return a1/a2;}
};
#endif // CALCULATOR_H
|
3aa5605def724825b0527c847e0adff368f49f22 | 32a6a4bc43bc49ef678fd2fcb050b8564243ad1d | /sysctl.cpp | ab219803d7522f1df14ae48f3b823ed308cbbe7f | [] | no_license | metarutaiga/mips | aafaf9e008f7db78e5832ea421e58f0c259e5d3b | 1568bb48d382acaa2269e90b395fe1c8479d9d9b | refs/heads/master | 2023-04-14T07:21:59.916546 | 2021-05-10T08:31:19 | 2021-05-10T08:31:19 | 364,579,657 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,974 | cpp | sysctl.cpp | //==============================================================================
// MIPS(R) Architecture For Programmers Volume II-A: The MIPS64(R) Instruction Set Reference Manual
//
// Document Number: MD00087
// Revision 6.06
// December 15, 2016
//
// Copyright (C) Wave Computing, Inc. All rights reserved.
//======... |
f6184ad37e06dbc3dd115ce4eb9a99b195a7bea6 | 6ead6669806e8b90efbbf5a1b304d695e2424a9c | /C++/Number Theory Algorithms/Divisors.cpp | 0617826f87d91a581af8006d94e949fc41fa61d1 | [
"Apache-2.0"
] | permissive | chubbysingh/interview | 5fa43ee84cb0ad430cc343d80cbbac31d6c51f22 | 180bc33139277688bc88b1822ca04130ebda74fb | refs/heads/master | 2021-01-13T11:52:33.030786 | 2019-03-10T21:10:18 | 2019-03-10T21:10:18 | 81,696,096 | 4 | 0 | Apache-2.0 | 2019-03-10T21:10:19 | 2017-02-12T01:52:30 | Java | UTF-8 | C++ | false | false | 466 | cpp | Divisors.cpp | #include<iostream>
#include<set>
using namespace std;
set<int> generateDivisors(long long int num){
set<int> divisors;
for(int i = 1 ; i*i <= num; i++ ){
if(num % i == 0){
divisors.insert(i);
if( i != num/i ){
divisors.insert(num/i);
}
}
... |
97a7cd984fb3a3adb66348932ecb1f57d17d6d6b | abe20324c6fd5cb12f0f36fd90152709db679f7c | /模板/后序中序求前序.cpp | c909115d8cb399f7f5fdce42037e74069ceb357e | [] | no_license | makixi/PAT | 07d258d27404a709bdf38556edc5ead6e4be8f1d | b8facc7b5bc24d65a51be68284d22905fae0b3aa | refs/heads/master | 2021-01-20T05:59:50.082574 | 2018-04-09T01:13:23 | 2018-04-09T01:13:23 | 89,830,373 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 495 | cpp | 后序中序求前序.cpp | //前中-》后
int pre[maxn], in[maxn];
vector<int> post;
void findpost(int root,int l,int r) {
int i=l;
while (i <= r&&in[i] != pre[root])++i;
findpost(root + 1, l, i - 1);
findpost(root + 1 + i - l, i + 1, r);
post.push_back(pre[root]);
}
//中后=》前
int post[maxn], in[maxn];
vector<int> pre;
void findpre(int root,int l,... |
9ae638ec9026eec46fd1c062902bd1c6bb131ecc | 785da520180ff09639fdb6443bcd194652946a97 | /algorithms/KMP.cpp | caefca400e6f2f2855a96895d0db3226d4840d64 | [] | no_license | cha63506/Archive-184 | 32e6e4dc894a6814db2bf76df7107ec7ec0be29d | 2bd2ac649020bcd6c7666be350409942c812532d | refs/heads/master | 2018-01-14T21:20:16.529494 | 2015-07-17T06:03:55 | 2015-07-17T06:03:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,067 | cpp | KMP.cpp | #include <iostream>
#include <string>
using namespace std;
const int MAXN = 100;
int next[MAXN];
/*
* can be optimistic
void getNext(int next[], const string& p)
{
int pLen = p.length();
int k = -1;
int j = 0;
next[0] = -1;
while(j<pLen-1){
if(-1==k || p[k]==p[j]){
k++;
j++;
next[j] = k;
} else {
... |
e643637368a12468dc5536a2d56b718629faa25e | 84aa236202a548206fea62f47b48d6c24409a7f1 | /src/log.cpp | d14fa1bba49405cf070515bf68d4fd65622edb13 | [] | no_license | occivink/opengl-sandbox | 23d38d654c3a0431192aa9976433fbb752c92143 | e10b74e2920f9c5602587c9df26759b622806f88 | refs/heads/master | 2020-03-28T11:12:26.014828 | 2018-09-12T21:40:55 | 2018-09-12T21:40:58 | 148,188,525 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,741 | cpp | log.cpp | #include "log.hpp"
#include "engine.hpp"
#include "time.h"
#include "imgui/imgui.h"
#include <vector>
namespace Log {
namespace {
struct Line {
uint64_t timestamp;
enum Type {
Fatal = 1 << 0, // fatal messages only
Error = 1 << 1, // error messages
Warn = 1... |
63b27ac62e351d8ded307e589b2b90c6a792d708 | a2835f69393d56c3eef1454e0e8ef6d542701088 | /ch10/A1018.cpp | 2e64027b92c7d595a41dbf781013b438fb1e381a | [] | no_license | PiFtch/PAT | 1656614922c2f1128c591e348f2eb5d41951afb2 | 683eab8dc96f9615544ec00ce214628896b5b248 | refs/heads/master | 2020-04-07T22:17:18.098697 | 2018-11-23T01:06:49 | 2018-11-23T01:06:49 | 158,763,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,776 | cpp | A1018.cpp | #include <cstdio>
#include <algorithm>
#include <vector>
using namespace std;
const int MAXV = 501;
const int INF = 100000000;
int graph[MAXV][MAXV];
int numOfBikes[MAXV];
int dis[MAXV];
bool vis[MAXV] = {false};
vector<int> pre[MAXV];
int c, n, p, m;
void dijkstra(int s) {
fill(dis, dis+MAXV, INF);
... |
73f98b0bdf610671f7cd686cde7697f991e63bbd | f4ef80c10e3e4e6e3d327285ced5a9c1b9b0d88c | /includes/Vector.hpp | ecaf6f2189a0266def026d1ce009156832e0cb47 | [] | no_license | Kmykhail/Abstract-VM | 0c0ce9e04c50538ade1f5df9ce7a4b77236af492 | 8d341c72fc68515711f67bb88bab6f03f2ad1d2b | refs/heads/master | 2020-03-24T07:47:30.782749 | 2018-09-12T21:38:31 | 2018-09-12T21:38:31 | 142,575,007 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 649 | hpp | Vector.hpp | //
// Created by Kostiantyn MYKHAILENKO on 7/28/18.
//
#ifndef AVM_A_VM_HPP
#define AVM_A_VM_HPP
#include "Operand.hpp"
class My_Vector {
public:
My_Vector();
~My_Vector();
My_Vector(My_Vector const & rhs);
My_Vector & operator=(My_Vector const & rhs);
std::vector<IOperand*> getVector() const;
... |
0c2b8590bf37677424207b1d46071780a87f4f1b | 9889e7fd73314382fb2f9e8f63d92cf3254b75fb | /ThirdParty/NairnMPMFEA/NairnMPM/src/Boundary_Conditions/NodalConcBC.cpp | b084ee983874b50c3ccdcb2456406e92fce9b3df | [] | no_license | bbanerjee/ParSim | 0b05f43cff8e878658dc179b4a604eabd873f594 | 87f87816b146f40013a5e6648dfe20f6d2d002bb | refs/heads/master | 2023-04-27T11:30:36.252023 | 2023-04-13T22:04:50 | 2023-04-13T22:04:50 | 13,608,512 | 16 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,291 | cpp | NodalConcBC.cpp | /********************************************************************************
NodalConcBC.cpp
nairn-mpm-fea
Created by John Nairn on Thu Apr 1 2004.
Copyright (c) 2004 John A. Nairn, All rights reserved.
********************************************************************************/
#include... |
03fb1e63a16c4502fbf3063daacaeb05ac8749d3 | 60defd73359a391d70f83e599ffb7531b6af70ba | /Shizuku.Core/Utilities/Stopwatch.cpp | 4c43c40a9bd1e7fcd17e01dbf60fc0726b8248e6 | [
"MIT"
] | permissive | blackoffee/Shizuku | 88b5473faf64b815f5d4d462a68419a4079eb117 | dde4c4f437ca271181d59a78da2815dee01800eb | refs/heads/master | 2022-10-01T17:04:46.845471 | 2020-06-08T13:28:30 | 2020-06-08T13:28:30 | 74,714,522 | 21 | 4 | MIT | 2019-02-06T03:56:16 | 2016-11-25T01:04:35 | C++ | UTF-8 | C++ | false | false | 459 | cpp | Stopwatch.cpp | #include "Stopwatch.h"
#include "StopwatchImpl.h"
using namespace Shizuku::Core;
Stopwatch::Stopwatch()
{
m_impl = new StopwatchImpl();
}
Stopwatch::Stopwatch(const int p_recCount)
{
m_impl = new StopwatchImpl(p_recCount);
}
void Stopwatch::Tick()
{
m_impl->Tick();
}
double Stopwatch::Tock()
{
retu... |
ce190359654d9920c8da1642307313fda334b93e | b215d9b596be2cc5dc9a98e581f0eb2be8100bcd | /data.h | 856be53e6bf1a884c3f72ba52b1263af67f698cf | [] | no_license | tdespatie/comp2404_A3 | 0de291f6f32e26c924f913b7040fb5f869ef9f35 | 1575028057bbfb6bf885f93416e936936a3280ce | refs/heads/master | 2021-08-14T13:20:22.021726 | 2017-11-15T19:39:25 | 2017-11-15T19:39:25 | 110,464,519 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | h | data.h |
// File Name: Data.h
// Created by Tyler Despatie on 11/12/2017.
// Student Number: 101010622
// Assignment: 1
// Course: COMP 2404
// Section: A4
#ifndef ANSWER_CODE_DATA_H
#define ANSWER_CODE_DATA_H
#include <vector>
template <typename T>
class data {
public:
int id;
vector<T*> collection;
int getID... |
5edf7cf88ceaf08b923e2ddeb6bba5f4ccf162a3 | 303483be36fe981b50b051766a57212239e5d90a | /The Caribbean Training Contest #47/A.cpp | ee6ee93d4d831c2a5ea38e63c35214308be1d65e | [] | no_license | garo9521/Concursos | 375be1361788614daaf32bb5f5c1fe0420dc6707 | fd4f4c6835177a82e27997cfbe5fc313ab5cc9b0 | refs/heads/master | 2021-01-19T19:39:50.443367 | 2015-10-21T01:29:32 | 2015-10-21T01:29:32 | 24,471,098 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 775 | cpp | A.cpp | #include <bits/stdc++.h>
using namespace std;
#define MAXN 1000005
set <string> vis;
char cadena[MAXN];
string palabras[MAXN];
int main(){
int T;
scanf("%d", &T);
while(T--){
vis.clear();
getchar();
gets(cadena);
int N = 0;
palabras[0] = "";
for(int i = 0; cadena[i]; i++){
if(cadena[i] == ' '){
... |
8e88c87d48b4daf92a0d027956de1f9a49214f09 | 473e27a0eb3f8d04623ec535b330fc64499bf522 | /simple_but_bloody_team_battle/Queue.hpp | 7ee832b2726bcba5697b1465ca66d917bb1ef238 | [] | no_license | Alex-McEvoy/C_plus_plus | 65bd0aa1cefde5aa4206ff0ab4d1d48fcde99bc5 | a3887c8d0124a32980b25e2dd6e7c1501417aa53 | refs/heads/master | 2022-08-01T16:22:09.390410 | 2018-03-21T15:51:14 | 2018-03-21T15:51:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 870 | hpp | Queue.hpp | /***********************************************************************************
* Author: Alex McEvoy
* Date: 03/01/18
* Description: Header file for Queue class, which creates a container with queue like
* behavior and using Node classes as its elements. These nodes contain a pointer to the
* next element and a p... |
ec482d10241132577a2d02c861170dd99c95a932 | b073369d1a61f04c3bd1aff9f3b4793dd23fd173 | /client/chatclient.h | 00ba41f908a7519c7139fa359cf4485211177010 | [] | no_license | ft420203/QChat | 98423208166ebf5dc86d9a9e565c9e8576b05bd9 | cc96e4080fa95f8c5c5b0f5a10a3d17013a72041 | refs/heads/master | 2021-01-10T11:07:49.725530 | 2015-10-22T08:12:41 | 2015-10-22T08:12:41 | 44,728,785 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,124 | h | chatclient.h | #ifndef CHATCLIENT_H
#define CHATCLIENT_H
#include <QObject>
#include <QTcpSocket>
class ChatClient : public QObject
{
Q_OBJECT
Q_PROPERTY(State state READ state NOTIFY stateChanged)
Q_PROPERTY(QString userName READ userName)
public:
enum State
{
Connected,
Disconnec... |
df9609ff3f908ace4cb1a311d949355abd1a849e | e18d4db30a6f597cd3db59336dbc13c33b1487a8 | /PAT (Basic Level) Practise (中文)/b1001.cpp | 01a44ab826a186eb08885b8f86b9d27adb947940 | [] | no_license | hzjTurbo/pat_Practice | 5542873f457b697bd0b80e8d82e7061835c76f17 | fac946bbebdd3dcda58e72d2858949ed68e0ab67 | refs/heads/master | 2016-08-10T22:29:31.426565 | 2016-04-06T06:44:24 | 2016-04-06T06:44:24 | 53,175,699 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 211 | cpp | b1001.cpp | //pat_b1001
#include<iostream>
using namespace std;
int main(){
int n,iStep=0;
cin >> n;
while (n != 1){
if (n % 2 == 0) n /= 2;
else n = (3*n + 1) / 2;
iStep++;
}
cout << iStep << endl;
return 0;
} |
e84d3e01f24d50da03f2c4d4eba0634049c6c107 | 49bd11981e002407ffe78d0eb93d4457fe0c657e | /Image Processing Project/Pixel.cpp | 85d4ffb846f96c5bb2b0eeb237bdda0571f30def | [] | no_license | biswesh456/Image-Processing-Project | f79f6ed71170e8fb075a30a68f5da4e97484b38d | 719ad5c74286e51ab714a8ad211af978ff778087 | refs/heads/master | 2020-03-27T22:04:24.723292 | 2018-09-16T16:25:08 | 2018-09-16T16:25:08 | 147,202,082 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | cpp | Pixel.cpp | #include "Pixel.h"
using namespace std;
Pixel::Pixel(){
}
Pixel::Pixel(int X,int Y,Color c):x(X),y(Y),col(c){
}
Pixel::~Pixel(){
}
Pixel::Pixel(Pixel &p){
x=(p.x);
y=(p.y);
col = p.col;
}
void Pixel::operator=(Pixel &pix){
x = pix.x;
y = pix.y;
col = pix.col;
}
void Pixel::setCol(Color c){... |
c9aad0515a22b8b54088973d5a933628b606bdff | 913715640fb0ead3eabeaeb77ab6fa9a945fdadd | /Battleship/battleship.cpp | 63e317b4dff79944da4177c06acc145a56de2689 | [] | no_license | lucastherrien/ECGR2103_Battleship | 617135390e8ce33533db167420d4420023e9ab0f | 5edc75d7e2f1ef8f7af80dd4680979caaac3ac5e | refs/heads/master | 2020-09-06T04:09:33.181234 | 2019-11-19T18:10:49 | 2019-11-19T18:10:49 | 220,317,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,373 | cpp | battleship.cpp | #include <iostream>
#include <cmath>
#include <cstdlib>
#include <ctime>
using namespace std;
char playerOneShipMapE[5][5];
char playerOneShipMapM[6][6];
char playerOneShipMapH[7][7];
char playerTwoShipMapE[5][5];
char playerTwoShipMapM[6][6];
char playerTwoShipMapH[7][7];
int x;
char y;
int yInt;
string p1Name;
... |
1fa8d506bc7eee655a66795e1816be0d41f5368d | 91ac1e5ee1e7d51745f21e6511d226f18259a2fa | /libs/libupmq/decaf/lang/Integer.cpp | 014dfa63bf2e9c2ad16ef35a0c9049ac2669c3c6 | [
"Apache-2.0"
] | permissive | ivk-jsc/broker | 951b692ff6db4ac0f987ecef4dba6e84533bb5a2 | 42732c9df37832959bcb85a9d78ebb5b82417d3f | refs/heads/master | 2022-11-08T06:50:54.753841 | 2022-01-11T08:25:33 | 2022-01-11T08:25:33 | 191,403,782 | 10 | 3 | Apache-2.0 | 2022-10-04T23:53:30 | 2019-06-11T15:49:24 | C++ | UTF-8 | C++ | false | false | 11,399 | cpp | Integer.cpp | /*
* Copyright 2014-present IVK JSC. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
836cf65c44899f022b6184cef86dad15248134f3 | c811e5aa2762e3a3b23091a6ac172fe609e5ac57 | /Tree/BinaryTree/binarytree_deletion.cpp | 592c9e11af5778ad314183d7ecb3d1e096ba0e8b | [] | no_license | kunal164107/GfG | 9f7f2ed64ef9022d3fa11e1645356af488345122 | f8286c24357367ee3cadd04c16c88d7d6fa3eeb5 | refs/heads/master | 2020-03-23T08:04:24.357531 | 2018-10-02T19:23:35 | 2018-10-02T19:23:35 | 141,300,852 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,846 | cpp | binarytree_deletion.cpp | #include <iostream>
#include <queue>
using namespace std;
class node{
public:
int data;
node* left;
node* right;
};
node* getnewnode(int key){
node* newnode = new node();
newnode->data = key;
newnode->left = NULL;
newnode->right = NULL;
return newnode;
}
void levelorder(node* root){
queue<node*> q;
... |
ff9a50581f1fa2a7893a3c6bb7e5521c52160029 | f02cafd34d4b6a017a4d865af0a20b9c3a5f691c | /src/mechanics/constitutive/staticData/IPAdditiveInputExplicit.cpp | 0eb7d5634970552e4126e4b6ca78d1fada92b91d | [
"BSL-1.0"
] | permissive | Batmanabcdefg/nuto | 5f9bde81df4b517a76b2aedf22f774cf4079121a | 79b40e0c66013544ff2a61dad5fb5f82880e4db7 | refs/heads/master | 2021-09-23T10:00:03.291034 | 2018-08-22T15:37:56 | 2018-08-22T15:37:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,515 | cpp | IPAdditiveInputExplicit.cpp | #include "mechanics/constitutive/staticData/IPAdditiveInputExplicit.h"
#include "mechanics/constitutive/laws/AdditiveInputExplicit.h"
#include "mechanics/constitutive/inputoutput/EngineeringStrain.h"
#include "mechanics/constitutive/inputoutput/EngineeringStress.h"
using namespace NuTo::Constitutive;
IPAdditiveInput... |
ddad9d6743321ab05b1f34a6f9b31b76f93db04f | 837a24b071e6e770f7ebbe4ace89c7298d302813 | /Codeforces/!Junior Training Sheet/B/B_Summer_sell_off.cpp | e78acd14acb01520ce8a6330bd7ba18310eea4ca | [] | no_license | MedAzizTousli/Competitive-Programming-Solutions | ddcb32003a493d56b24b41fb060750cf7656e29f | f796f3d2b26d440f1c8a8949a4ffecfac4d44408 | refs/heads/master | 2023-08-17T11:46:16.917475 | 2023-08-16T16:04:09 | 2023-08-16T16:04:09 | 183,100,646 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,103 | cpp | B_Summer_sell_off.cpp | #include <bits/stdc++.h>
#define int long long
#define ll long long
#define FLASH ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define all(v) ((v).begin()), ((v).end())
#define rep(i, begin, end) for (__typeof(end) i = (begin) - ((begin) > (end)); i != (end) - ((begin) > (end)); i += 1 - 2 * ((... |
617fa7d12323cf6e9e764cdb96e842e6e8f68243 | 52d3e871bd3ed61ddd8f842351835530839fa9bc | /Gibson_StoreCheckout/Gibson_StoreCheckout/AbstractProduct.h | acdecb06c1567871f434f7b83a5ba2f424395c6b | [] | no_license | denzellgibson/StoreCheckout | 1e7733c5484e629c6f79129661a69310fb6154f2 | 486a3031e10030622143ac105e79f740dd2a8304 | refs/heads/master | 2020-04-05T14:49:50.589864 | 2018-11-10T03:17:50 | 2018-11-10T03:17:50 | 156,942,453 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 549 | h | AbstractProduct.h | //Denzell Gibosn
//8/18/2017
#ifndef ABSTRACTPRODUCT_H_
#define ABSTRACTPRODUCT_H_
#include "Header.h"
//Abstract Product for food and nonfood product classes.
class Product
{
public:
//Setters and getters.
void setName(std::string newName) { name = newName; };
void setPrice(float newPrice) { pric... |
d75e1c38152cc128c66edb41c848931a36d95a9d | c11cbef1b79a6085b1d871d50bc1ff26b9cb7bb7 | /dot11_frame.h | 247939cc9676c824e296b99cb32a267b0525dd2b | [] | no_license | jise8893/airodump | a0a8eaa87b37298850d83674f137ee53fd0a757a | 4190fcef8d46c5216abb50150dcef5478953e23f | refs/heads/main | 2023-02-23T08:58:47.503137 | 2021-01-30T11:36:15 | 2021-01-30T11:36:15 | 333,444,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 638 | h | dot11_frame.h | #ifndef DOT11_BEACON_H
#define DOT11_BEACON_H
#endif // DOT11_BEACON_H
#include "ip.h"
#include "mac.h"
#include "radiotap_header.h"
#include "frame_control.h"
#pragma pack(push,1)
class Dot11_frame {
public:
Frame_control frame_control;//check frame to ds or from ds
uint16_t duration_id;
Mac address_1; /... |
1c7ea34ddc1baad28f25155e4f826ce388cddd19 | 5c72689fcb220927c87102a4386fc9e01d576803 | /人工智能/第二次实习/翻转棋/types.h | 09efc360de78eb98354f51249811da0820337e2d | [] | no_license | MansourGu/College_Work | fc100ba3da39244fc8ef4a5c107bb09147b0cdd4 | 52583eddb6308b29ce1905f50cbc391d9071c230 | refs/heads/main | 2023-08-14T16:59:58.165589 | 2021-10-05T07:56:31 | 2021-10-05T07:56:31 | 361,366,294 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 599 | h | types.h | #pragma once
#include <vector>
#include <string>
#include <algorithm>
#include <iostream>
#include <streambuf>
#define BOARD_SIZE 8
#define TIME_LIMITATION 5000
typedef unsigned long long _time;
enum piece_color
{
COLOR_DARK,
COLOR_LIGHT,
COLOR_EMPTY
};
struct position
{
int Row;
int Col;
std::vector<position... |
0d9f36eb7e3eab0a2adb3465251edc5ff1ec4215 | c5e26167d000f9d52db0a1491c7995d0714f8714 | /白马湖OJ/1956.cpp | 58b6ae2b76894624e52139648e8393230a772253 | [] | no_license | memset0/OI-Code | 48d0970685a62912409d75e1183080ec0c243e21 | 237e66d21520651a87764c385345e250f73b245c | refs/heads/master | 2020-03-24T21:23:04.692539 | 2019-01-05T12:38:28 | 2019-01-05T12:38:28 | 143,029,281 | 18 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 432 | cpp | 1956.cpp | #include <bits/stdc++.h>
using namespace std;
const int maxn = 1010;
int n, m, a[maxn], b[maxn], x, y, key, ans, k = 0;
int main() {
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
scanf("%d%d", &x, &y);
k++;
a[k] = x;
b[k] = y;
}
scanf("%d", &m);
while (m--) {
scanf("%d", &key);
ans = -1;
for (int i... |
97a209b3e1bc9a754ad5c427d9e283a6d9408f15 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/WebKit/Source/core/layout/LayoutTableCell.cpp | 6337d20c92b630967ae47e9965b81e648a549730 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | C++ | false | false | 57,806 | cpp | LayoutTableCell.cpp | /*
* Copyright (C) 1997 Martin Jones (mjones@kde.org)
* (C) 1997 Torben Weis (weis@kde.org)
* (C) 1998 Waldo Bastian (bastian@kde.org)
* (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009... |
84f1b243a8d5486a9c74526e15d1727b69df6754 | 97726959ca7a1f6f98010f855348e0b27031f5db | /src/expression/assign_expr.cpp | 6ae76b58767c8606b88fdc17bc56a142113f3fc5 | [] | no_license | buchuitoudegou/QuestionGenerator | 0dea58532d7e240ec8ad494ee1ee393900c5095f | 43d636faeb8157eaccb650904015273f0c4eccbc | refs/heads/master | 2023-07-01T16:32:09.467101 | 2021-07-17T09:06:24 | 2021-07-17T09:06:24 | 373,533,337 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 780 | cpp | assign_expr.cpp | #include "assign_expr.h"
AssignExpr::AssignExpr(Variable v, Expr* e): Expr(ASSIGN), v1(v), right_expr(e) {}
string AssignExpr::stringify() {
return v1.v_name + " = " + right_expr->stringify();
}
AssignExpr::~AssignExpr() {
delete right_expr;
}
BoolExpr::BoolExpr(Expr* e1, Expr* e2, CompareType ct)
: Expr(BOOL... |
b4d7213e71df81fd12bd5a649ed491733b6c0636 | 943749492734b86191ea63e73289581fd2467a44 | /base/io/modbus/modbus_serial.h | fdad6867fbf53ee6bb885dc138888687073fa8ac | [] | no_license | silverdragon106/pobase_share | 2223b6a81c5c326a517644de9bcd32305a078702 | 626e388a1f8c3c9cce0c87b2338963d11c452c19 | refs/heads/master | 2020-11-26T15:18:48.549904 | 2019-12-19T18:56:56 | 2019-12-19T18:56:56 | 229,119,639 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 836 | h | modbus_serial.h | #pragma once
#include "define.h"
#include "modbus_com.h"
#include "modbus_memory.h"
class CMBMemory;
class CModBusSerial : public CModBusCom
{
Q_OBJECT
public:
CModBusSerial();
virtual ~CModBusSerial();
bool initInstance(CMBMemory* modbus_mem_ptr, CModbusDevParam* modbus_param_ptr);
void exitInstance... |
074a3a4ccf231ea5a30f912531a3194b709ac376 | b3aa2f47d94a46514d86946799dd290d7477eac4 | /openface-android-sample-master/OpenFaceDemo/app/src/main/cpp/native-lib.h | c4f12627091d41371aaf51bcd5a8fa616efa8dae | [] | no_license | kimhagyeong/face_ex | 4ea67d7dc3ccec06f648743cb0b00257526d1454 | 79cab0931087527f9ba7803f62a2c0d6c758984b | refs/heads/master | 2022-11-27T17:07:50.084978 | 2020-08-05T08:27:08 | 2020-08-05T08:27:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 674 | h | native-lib.h | #include <jni.h>
#include <string>
extern "C"
{
JNIEXPORT void JNICALL
Java_org_utils_JniManager_init(JNIEnv *env, jclass type, jstring resourceDir,
jint inputWidth,
jint inputHeight,
jint ... |
36b2b9cc56aa9309a7068c504dcb9403912ad809 | 30b77c1dd8b7b5a744a5b92e3c455d34349ae283 | /Headers/Ai.h | 3fe69eed37b901b6a04bc4d618942118d0903c1f | [] | no_license | jon-lad/40kRL | d67db317abb789fca45a11fb6a8ddb5546e8bd70 | c592977c444e1e16093ba633dec9f17bf45d2b19 | refs/heads/master | 2020-09-07T14:47:03.792743 | 2019-11-17T15:50:55 | 2019-11-17T15:50:55 | 220,813,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,426 | h | Ai.h | #pragma once
static constexpr int SCENT_THRESHOLD = 20; //amount of turns monser can smell scent
class Ai : public Persistent {
public:
virtual void update(Actor* owner) = 0;
static std::unique_ptr<Ai> create(TCODZip& zip);
protected:
enum class AiType {
PLAYER = 0,
MONSTER,
CONFUSED_MONSTER
};
};
class ... |
38951af3a619a41f3df82e7d6bc7251dfbd3e19d | 3faccaa7e463083ca67871fb02e89824a34211a5 | /primefactors.cpp | 0fe47d7b1e83642bf502f831d6192f8487ae7760 | [] | no_license | abhishekd23/C--Codes | 7cff6c2b10bc74b3a2f258484dc015b7fd8284cd | e6179a7fe71b4261b85b72e5026063cd5d88a338 | refs/heads/main | 2023-05-31T01:41:15.823124 | 2021-06-24T17:55:47 | 2021-06-24T17:55:47 | 380,010,248 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 731 | cpp | primefactors.cpp | #include<iostream>
using namespace std;
// void primeFactors()
// {
// }
int main()
{
int n;
cin>>n;
int prime[n+1];
// for(int i=2;i<n;i++)
// {
// cin>>prime[i];
// }
for(int i=2;i<=n;i++)
{
prime[i] = 0;
}
for(int i = 2;i<=n;i+... |
0c4d1d52372e0d227b0000c5a76d8a42da26bed3 | 017f6714f8068d03f4078c4b6fa5680a7d966ed9 | /ESEP/src/test/ft/hal/tester.cpp | 6b43e9731ddf6c21c72b8c5e9cd01dfb20dea8a2 | [] | no_license | davekessener/SE2-Project | fa635fc8be7103d5f2d28c9fb2da6c0f9678585d | 8099119cddfc7dc169b16c1f41656157b5ca2866 | refs/heads/master | 2020-03-21T05:50:00.446941 | 2018-06-21T12:07:09 | 2018-06-21T12:07:09 | 138,183,878 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,308 | cpp | tester.cpp | #include <iostream>
#include "test/ft/hal/tester.h"
#include "lib/deferred.h"
#include "hal/physical.h"
namespace esep { namespace test { namespace functional {
HALTester::HALTester(void)
: mHAL(new hal::Physical)
, BUTTONS(mHAL)
, HEIGHT_SENSOR(mHAL, &mConfig)
, LEDS(mHAL)
, SWITCH(mHAL)
, L... |
a65176bd91af9aaf4fd41134267aa2bfc30073ef | 640806c77e8efbdec4d609f82fc680b16cfa8e4a | /Day1/Game/MyGameInstance.h | 0c1022feda348af9206d7f8cecb9cd91c95e87b2 | [] | no_license | JaeminShim/NCUAdvancedUE4 | 1c35bdbc8f7a03fd101eecca0063a0f08bfc511d | 595a023ea3864abb0a77ab36b66945875395e882 | refs/heads/master | 2016-08-12T20:39:01.161224 | 2015-11-19T08:56:44 | 2015-11-19T08:56:44 | 46,324,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 484 | h | MyGameInstance.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#if PLATFORM_ANDROID
#include "Android/AndroidJNI.h"
#include "AndroidJava.h"
#endif
#include "Engine/GameInstance.h"
#include "MyGameInstance.generated.h"
/**
*
*/
UCLASS()
class DAY1_API UMyGameInstance : public UGameIns... |
dce7a144a6a90b54574422e2cbb46da248be015d | 43dde6024f6a3f72efc3c7217443726756b06bf3 | /src/pe_lib/message_table.cpp | 84afa980a0ad02568790f836467c3921c43c57d9 | [] | no_license | apriorit/portable-executable-library | 1fe41e74f751b61af8fc4797eb58b74257fe6e1a | 801202d94aa27075f2afa3b34a2d5b0526f01186 | refs/heads/master | 2020-05-29T12:26:53.755950 | 2018-01-23T19:31:02 | 2018-01-23T19:31:02 | 63,158,681 | 22 | 7 | null | 2018-01-23T19:31:03 | 2016-07-12T13:07:52 | C++ | UTF-8 | C++ | false | false | 1,307 | cpp | message_table.cpp | #include "message_table.h"
#include "utils.h"
namespace pe_bliss
{
//Default constructor
message_table_item::message_table_item()
:unicode_(false)
{}
//Constructor from ANSI string
message_table_item::message_table_item(const std::string& str)
:unicode_(false), ansi_str_(str)
{
pe_utils::strip_nullbytes(a... |
4691352ab03b07a3f66a43a701551d969d209783 | 18de72a507b6273a83724932d4500870d54720cb | /Control/Spacecraft_control/src/non_linear.cpp | 6fa562326941fa716f13343c7e86d217cd60eced | [] | no_license | kdricemt/assignments | 66118044ae8bda8bc16af2488e3d225327196632 | 3aa33c0126afb57b19e856d0467bd2881874f0d6 | refs/heads/master | 2020-04-09T02:55:30.645997 | 2019-12-15T02:43:37 | 2019-12-15T02:43:37 | 159,960,435 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,657 | cpp | non_linear.cpp | #include "non_linear.hpp"
#include <fstream>
#include <iomanip>
#include <iostream>
#include <random>
#include <string>
/***********************************************************
state propgation function
propagation()
cal_omega_qt_dot()
quartanion_to_dcm()
*************************************... |
dfd16e2a8497831ab4d619d0b69109cfca639fe2 | 227807bb34a91b94e4c832ae14bb21fe6297b456 | /src/lib/mesh.cc | 6bb21c960c839f4e9b8e43297ebae995bde7a157 | [] | no_license | connorzl/DeformCoSeg | 386af79704d8ceb1d6da23670b8ec7e1b10f61d9 | 981d001212eb3446fcee606e3a5ada3196d17e3c | refs/heads/master | 2023-02-05T01:12:05.305998 | 2020-09-08T00:07:37 | 2020-09-08T00:07:37 | 288,631,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,469 | cc | mesh.cc | #include "mesh.h"
#include <fstream>
#include <strstream>
#include <set>
#include <igl/copyleft/marching_cubes.h>
#include <igl/point_mesh_squared_distance.h>
Mesh::Mesh()
: scale_(1.0), pos_(0, 0, 0)
{}
void Mesh::ReadOBJ(const char* filename) {
auto& V = V_;
auto& F = F_;
std::ifstream is(filename);
char buf... |
f6ea865267eccdbb30d9179702cdabad4cd49767 | 740eea09764634a32e747a7cce139c5a9e50dc68 | /MPZ/Training/test68.cpp | 5d350f3271728710811401c70a68be1f0f6fc494 | [] | no_license | mpzadmin/yuc | ceeae65fe72cbd4212ebdf20774f9e2cda7f5fce | e6c73c24ff41b48617ec2e436e356516291a4656 | refs/heads/master | 2023-02-28T21:35:13.407372 | 2021-02-11T08:42:08 | 2021-02-11T08:42:08 | 321,592,407 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 310 | cpp | test68.cpp | #include <iostream>
using namespace std;
int main()
{
int number = 100;
// & = Reference operator * = Dereference operator
int *ptr = &number;
cout << number << endl;
cout << ptr << endl;
cout << *ptr << endl;
number++;
(*ptr)++;
cout << *ptr << endl;
} |
15ff6032ef2dc66a66aa0c33a4067a7a22a04923 | 297497957c531d81ba286bc91253fbbb78b4d8be | /third_party/jpeg-xl/lib/include/jxl/decode_cxx.h | fd00f38ed36c8e3fdf492be9c0c41b9388f4eae6 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | C++ | false | false | 603 | h | decode_cxx.h |
#ifndef JXL_DECODE_CXX_H_
#define JXL_DECODE_CXX_H_
#include <jxl/decode.h>
#include <memory>
#if !(defined(__cplusplus) || defined(c_plusplus))
#error "This a C++ only header. Use jxl/decode.h from C sources."
#endif
struct JxlDecoderDestroyStruct {
void operator()(JxlDecoder* decoder) { JxlDec... |
a6ffea7d4c8dc7278fbcad72b298ef146e6531bd | 54cc63a4762eef3acab5de155f61b6a11ba7cb0d | /CS500-framework/NiceTypes.h | f534ea8f2cbc7d2afab8801d5ae28c504cbe4867 | [] | no_license | localBlackMage/RayTracer | 0ca067b22a93b0db05e479532ff4e96fbbbc7f82 | 130151251d48de87051e1754d0235f7c0b7ca94a | refs/heads/master | 2022-07-09T15:15:31.095330 | 2019-03-01T17:51:35 | 2019-03-01T17:51:35 | 162,648,800 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 459 | h | NiceTypes.h | #pragma once
using uint8 = unsigned char;
using uint16 = unsigned short;
using uint32 = unsigned int;
using uint64 = unsigned long long;
using int8 = signed char;
using int16 = short;
using int32 = int;
using int64 = long long;
using byte = unsigned char;
#ifdef _WIN64
using... |
206ef7aa3ba5e1985b3691eeb69b9a6d40f6174e | ef89e8f4b8e27f10ef217d0061fe3d535fefb257 | /spoj_br/CHUVA11.cpp | 503d167b439a0fea7c6e83fd40843408732f76f2 | [
"MIT"
] | permissive | sohakes/programming-problems | a5b65c116be7298db2cd62a3918666ec01bf8cc2 | 802195775ff9683c52fa87b7d615ff1d20b64683 | refs/heads/master | 2021-01-01T04:57:42.266204 | 2016-05-06T00:57:38 | 2016-05-06T00:57:38 | 57,862,058 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 444 | cpp | CHUVA11.cpp |
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include<map>
using namespace std;
int main () {
int n=0;
int m1[100][100],m2[100][100];
cin>>n;
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cin>>m1[i][j];
}
}
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cin>>m2[i][j];
... |
a1d9f3044003a93833d824e799e049be6531f8d4 | df3048d87916c4a64359eedae371328932e52af8 | /include/caffe/layers/brainwash_data_layer.hpp | 34e5bcec9ce7a4d6e14e0b231697c2fe455e39e8 | [
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | joyousrabbit/caffe | d693be3216ef8779726fa8a4941a5633ce097887 | 64b6629ea1d33e3ce3bcbf02efd7c8c30847f8b8 | refs/heads/master | 2021-01-22T07:28:09.465275 | 2017-03-10T10:18:20 | 2017-03-10T10:18:20 | 81,826,531 | 0 | 0 | null | 2017-02-13T13:11:53 | 2017-02-13T13:11:52 | null | UTF-8 | C++ | false | false | 1,591 | hpp | brainwash_data_layer.hpp | #ifndef CAFFE_BRAINWASH_DATA_LAYER_HPP_
#define CAFFE_BRAINWASH_DATA_LAYER_HPP_
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/data_transformer.hpp"
#include "caffe/internal_thread.hpp"
#include "caffe/layer.hpp"
#include "caffe/layers/base_data_layer.hpp"
#include "caffe/proto/caffe.pb.h"
#define MAX_O... |
4dda88e38d0abb42be9a9c651bf1a19fe18f0053 | bc3d6594ef6494153fe7006ab63bd5c51ebf5085 | /Chapter07/problem_66/main.cpp | f75dcfd05f1eb34b99ea44d1ca3975a361553d8d | [
"MIT"
] | permissive | PacktPublishing/The-Modern-Cpp-Challenge | c7b213a53d61fdb253dbc58c84d8c65740621af3 | 6a79f529c038a15c752acb67b4aef7c0d366f1a3 | refs/heads/master | 2023-02-02T14:49:38.309156 | 2023-01-30T10:22:25 | 2023-01-30T10:22:25 | 133,945,626 | 301 | 107 | MIT | 2021-12-11T18:51:48 | 2018-05-18T11:28:53 | C | UTF-8 | C++ | false | false | 4,021 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <chrono>
#include <random>
#include <thread>
#include <string_view>
#include <mutex>
#include <condition_variable>
#include <queue>
#include <string>
#include <array>
class logger
{
protected:
logger() {}
public:
static logger& instance()
{
static logger lg... |
a770a6609e929c4be5ac9a87817c0de721b43b78 | 5a60d60fca2c2b8b44d602aca7016afb625bc628 | /aws-cpp-sdk-chime-sdk-voice/include/aws/chime-sdk-voice/model/LoggingConfiguration.h | b4cfc0407bc7d30f5d0e70f825f7015ee876201f | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | yuatpocketgems/aws-sdk-cpp | afaa0bb91b75082b63236cfc0126225c12771ed0 | a0dcbc69c6000577ff0e8171de998ccdc2159c88 | refs/heads/master | 2023-01-23T10:03:50.077672 | 2023-01-04T22:42:53 | 2023-01-04T22:42:53 | 134,497,260 | 0 | 1 | null | 2018-05-23T01:47:14 | 2018-05-23T01:47:14 | null | UTF-8 | C++ | false | false | 1,262 | h | LoggingConfiguration.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/chime-sdk-voice/ChimeSDKVoice_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
na... |
816b39abaf830df85e3ce50aca9783612b98c321 | e3c11ab0f5cbd9c6d4666ff557fe6f9c44a2be0d | /C++4ed-SourceCode/Visual Studio/deref.cpp | cd9e1b02c855fb12ebecc4cbfea32e39b8b52e04 | [] | no_license | charleswang007/c-plus-plus | d43be6d9f70b99eb212a28d6216e64dc613419d4 | 6f0c38ec21fe1593e9322850e62f6d26278e7939 | refs/heads/master | 2020-03-31T04:10:59.236307 | 2018-10-07T03:01:19 | 2018-10-07T03:01:19 | 151,894,240 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 941 | cpp | deref.cpp | //=============================================
// C++ Programming in easy steps 4ed. [6:100]
//=============================================
#include <iostream>
using namespace std ;
int main()
{
// Declare and initialize regular variables.
int a = 8, b = 16 ;
// Declare and initialize pointer variables
// ... |
abf2b582ac561fdb7f83c01e5b441c848642d0ed | a5921a3f063304eb69d9f6c31c132e9ee111fd21 | /main.cpp | 12e5f90da97b641438c54bb8e0a60180ae5caa75 | [] | no_license | iceShaver/SBD2 | 7dd58c6ede9938c7e1a5a30a7c6ac15debea9c07 | d3a8e8f0e0c89940b5801390eb31e26e3a333cc4 | refs/heads/master | 2021-07-15T13:25:22.548709 | 2020-05-30T08:47:07 | 2020-05-30T08:47:07 | 158,963,193 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 100 | cpp | main.cpp |
#include "dbms.hh"
auto main(int argc, char **argv) -> int {
return Dbms::Main(argc, argv);
} |
41415b2c744d2e0e5129f4bdbb9d52d35b6ee95b | 0aa55ea844443e9c23fef4fc627155c9e94c5610 | /chapter-5/5.4.cpp | 433f0a0cc69612f3461859c4b0cb02adc86be711 | [
"MIT"
] | permissive | zero4drift/Cpp-Primer-5th-Exercises | c17d1bd0d93a9c34451fd21c69c991173e4e12f7 | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | refs/heads/master | 2020-03-09T00:32:19.886544 | 2019-01-09T03:09:04 | 2019-01-09T03:09:04 | 128,490,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 423 | cpp | 5.4.cpp | #include <string>
using std::string;
int main()
{
string s;
// while(string::iterator iter != s.end()) {/* ... */}, iter is uninitialized
string::iterator iter = s.begin();
while(iter != s.end()) ;
// while (bool status = find(word) {/* ... */}
// if(!status) {/* ... */}
// status defined in while loop... |
73c73e6a672bb96f80f955b3e68659452a6f0e71 | 48709dc0c7e9373dd54f52021ad981db0527fdd6 | /easy-35.cpp | 98b3a131c67ad658cb9763366b917fd0a8a7c1f8 | [] | no_license | RuntimeTerror-404/Leetcode-easy | 3bbb69595c558d2b9ed84fcf58d58c8f093afa29 | e3103133db181462507ee484c7a8e55eba2ccc05 | refs/heads/master | 2023-03-22T03:34:02.305985 | 2021-03-18T17:25:12 | 2021-03-18T17:25:12 | 348,799,780 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | cpp | easy-35.cpp | #include <bits/stdc++.h>
using namespace std;
int solution1(vector<int>&v, int target){
int n = v.size();
for(int i=0; i<n; i++){
if(v[i] == target){
return i;
}
else{
if(target > v[i] && target < v[i+1]){
return i+1;
}
els... |
3878f29241afbf39945d6f8343861ff2ceb0792e | 8e3536792df19a68131024676287f3be11a62f02 | /cpp1/xiti5_1.cpp | 66e4fd0ad4cc109ec4b4eb7d716d4f09ed74ec53 | [] | no_license | dutcjh/CPP11-demo | 3c64e3b1f6271e540f8de939cb96c1cc7bfc32fb | f00caa3f1d6cc4f39d186856ffa16b97e2f012ab | refs/heads/master | 2021-01-19T17:19:46.382679 | 2017-04-08T14:59:36 | 2017-04-08T14:59:36 | 82,443,833 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 912 | cpp | xiti5_1.cpp | #include <iostream> // 包含iostream库
using namespace std; // 使用标准命名空间std
class CTest // 定义类 CTest
{
private: int x, y; // 定义私有数据
public: // 定义公有成员函数
// 定义带参数的构造函数
CTest(int p1 = 0, int p2 = 0) { x = p1; y = p2; }
// 定义拷贝构造函数
CTest(CTest &p) { x = p.x; y = p.y; }
// 定义Show成员函数
void Show( )... |
31a6170db429fd15072c23cfc03bbcce57dd1bc2 | 7b6222cbf0ac34152af44d8179de865a9d2c31ea | /countLetters.cpp | 6b5b0714e41cf2be656aa6187997a6ebe9043f39 | [] | no_license | asamieh/Algorithms | b4ffe8664a15f91c552e043107e5674c4c5bad47 | 508a07a763ad2f3ade4c456ab04331a2f9d29ea3 | refs/heads/master | 2022-04-24T06:54:33.461329 | 2020-05-02T20:29:00 | 2020-05-02T20:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,167 | cpp | countLetters.cpp | /*
Given a string S, return the number of substrings that have only one distinct letter.
Input: S = "aaaba"
Output: 8
Explanation: The substrings with one distinct letter are "aaa", "aa", "a", "b".
"aaa" occurs 1 time.
"aa" occurs 2 times.
"a" occurs 4 times.
"b" occurs 1 time.
So the answer is 1 + 2 + 4 + 1 = 8.
*/
/*... |
ba770ffacb3befffbd67ed41c5c33d2b84035e6c | 63257ae40607399c62e6d490af8852c5220ec411 | /天梯赛刷题/L1-060 心理阴影面积 (5 分).cpp | a6dbcb28d13b1308bc7653fe4e8c56b5f3c16721 | [] | no_license | doctoroyy/algorithm | 034040a2258a3bfad371357873022b25d7b7fa88 | 2d503450c78b310876063e09ca3375d77f600069 | refs/heads/master | 2021-08-30T13:15:13.819685 | 2021-08-30T12:02:13 | 2021-08-30T12:02:13 | 158,483,283 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 171 | cpp | L1-060 心理阴影面积 (5 分).cpp | #include<iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
cout << 5000 - ((100 - x) * (100 - y) / 2 + x * y / 2 + (100 - x) * y);
return 0;
}
|
b176240dedc0b8209675f28632bbe29914ff40fb | 1cd002f38d009447de6a9c9cccb031e7676b38c9 | /assignment.cpp | 7bc6c4bd24ddc734dedacc0465e2c06e62fa1e61 | [] | no_license | harmankaler2000/CPP-Practice-Files | 1234868eab05a67dae42edcc6eab997d706d90b8 | 077ba20c89eb3abde783a3ec72d93c274f2ce35d | refs/heads/main | 2023-06-04T19:42:45.314580 | 2021-06-17T15:52:03 | 2021-06-17T15:52:03 | 373,423,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,615 | cpp | assignment.cpp | #include<iostream>
#include<list>
using namespace std;
struct node
{
char data;
node* next;
};
void printlist(node* n)
{
for(int i=0;i<10;i++)
{
cout<<n->data<<" ";
n=n->next;
}
}
void reverse_List(node * n)
{
/*
char arr[10];
for(int i=0;i<10;i++)
{
arr[i]=n->data... |
488ba92fda1939e9c1d3bd6d4106d50953935a22 | e6d15e304152a71f99fb40ff76b3decb2a80d09a | /src/libraries/GL/ShaderProgram.cpp | 472638b94c3ced436fc9c469e3020eae6f729db3 | [] | no_license | mbaldus/BA-SimulationVisualisierungRauch | 7fabb06a0e977aa572da9f5c2a79df6b7f55dccc | 30f9d7787fcfc4ec8bfc4c62b7706dee3dcc8f9c | refs/heads/master | 2021-01-10T07:33:01.533514 | 2016-03-02T17:11:13 | 2016-03-02T17:11:13 | 52,976,253 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,567 | cpp | ShaderProgram.cpp | #include "ShaderProgram.h"
ShaderProgram::ShaderProgram(std::string vertexshader,std::string fragmentshader)
{
// Initially, we have zero shaders attached to the program
m_shadercount = 0;
m_shaderProgramHandle = glCreateProgram();
//set up shaders
Shader vertexShader(GL_VERTEX_SHADER);
vertexShader.loadFro... |
b947c62c3e252fc4b947f56d4797a35d048250a9 | 8a6c98a052cef2c9d49680bdd4d4517e477e25d3 | /Plugins/UI_Text3D/jsaTextureCache.cpp | 21dbe0d41163110d0dcf75b72c1939cba8fa5e9b | [] | no_license | PSP-Archive/PSPRadio | d4bc2a43e7a2f79ba5090d8d84bb9de25aa367e6 | dfeb55b359cc125379f7f97282e9058c2c79b485 | refs/heads/master | 2023-02-05T18:17:26.980200 | 2020-12-31T06:45:53 | 2020-12-31T06:45:53 | 325,731,433 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,986 | cpp | jsaTextureCache.cpp | /*
Texture cache manager for the Sony PSP.
Copyright (C) 2005 Jesper Sandberg
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 2
of the License, or (at your option) any later ver... |
feebdd593ba3f74c8d1e22139f6acb8ba0513a23 | f97ce0a588e023675eaa980f2f105f0a9c25ce18 | /UVa/v114/11499.cpp | 4217202f8231b8677913178a91aba996e6146475 | [] | no_license | anindya028/Programming-Contest-Problems | a5c49653d990391a6e2003f2ec9d951222cabbe2 | 7038b6267432189de72539ef5ad046d38e730ee8 | refs/heads/master | 2023-03-17T06:27:38.339049 | 2021-02-23T22:58:06 | 2021-02-23T22:58:06 | 277,399,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | 11499.cpp | #include<stdio.h>
#define For(i,a,b) for(i=(a);i<(b);++i)
#define Foro(i,a) For(i,0,(a))
#define Max(a,b) (((a)>(b))?(a):(b))
int mat[605][605],pp[605][605];
int main()
{
int n,m,i,j,k,ans,now;
while(scanf("%d%d",&n,&m)==2 && n && m)
{
Foro(i,n)
Foro(j,m)
scanf("%d",&mat[i][j]);
Foro(i,... |
d1dce15637f5947ac429dd69790b1ff18661dedc | 6407d032098fb301cc5c5404171c0c931b64b8f2 | /H1Z1 LoginServer/LoginServer.cpp | a880b537dfdd4e5cf97980cc7b4244517b019d9f | [] | no_license | alvazhang79/H1Z1-LoginServer | 8863e68956f854f626d207adf57cff16c5ff308b | 3b743bf120ea6c6dbd24387ef19cef67a2270884 | refs/heads/master | 2020-07-28T13:21:53.056833 | 2019-09-18T22:13:53 | 2019-09-18T22:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,586 | cpp | LoginServer.cpp | #include "DisconnectReasons.hpp"
#include "LoginServer.hpp"
#include "Misc.hpp"
#define Packet unsigned char
Packet LoginRequestPattern[] = { 0x00, 0x01, 0x00, 0x00, 0x00 ,0x03 };
Packet LoginReply[] = { 0x00, 0x02, 0x99, 0x99, 0x99 ,0x99, 0x98,0x98, 0x98, 0x98, 0x02, 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x... |
ce3e7d638e0f08c8e5833b3a98374028cac44a78 | 5fb72f5ef6636131cb4ec947a9da152dbf8c14ea | /calc-client/calcclient.cpp | 6de886f17f1e6031383ea3d898d0103cc7076eb4 | [] | no_license | i-v-s/calculator | bba7b56749ce487e93de6d1ae3c0f0719ee0ec1a | 156360cb9b5168c840d4fca55c1eb714fbb3e6ec | refs/heads/master | 2021-01-19T06:46:09.030982 | 2016-07-28T11:26:19 | 2016-07-28T11:26:19 | 63,684,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,933 | cpp | calcclient.cpp | #include "calcclient.h"
#include <QAbstractSocket>
CalcClient::CalcClient(QObject *parent) : QObject(parent), receivingSize(0)
{
connect(&tcpSocket, SIGNAL(readyRead()), this, SLOT(readData()));
connect(&tcpSocket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(error(QAbstractSocket::SocketError)));
}... |
b7f2bc40235c76b80d458d34c1bdeb9b5a6ff127 | 9823e29fcebfb764302ffa8743a725cc98acf9b5 | /arreglos/notas.cpp | 57e63bc27106251610d091cbb3c769d647fa5a32 | [] | no_license | rtufino/introduccion-c | b5f92c9846f21dd6e78d361dc237f3d4fe7168d6 | 011bdd078de00c3051546cb8de3e1f29cc8f4a77 | refs/heads/master | 2021-03-22T17:53:45.618921 | 2020-06-16T03:39:16 | 2020-06-16T03:39:16 | 247,389,345 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 601 | cpp | notas.cpp |
/*
* Curso Introducción a C/C++
* Autor: Rodrigo Tufiño <rtufino@ups.edu.ec>
* Fecha: 18-03-2020
*
* Ejemplo de arreglos
*/
#include <iostream>
using namespace std;
void promedio(int[], int);
int main()
{
int t = 5;
int notas[t];
cout << "Ingrese " << t << " notas:\n";
for (int i = 0; i < t... |
5a1e92e4f70f3c779685399e3dbd109ab46ca9ba | 98157b3124db71ca0ffe4e77060f25503aa7617f | /codechef/march16/seatstr2s.cpp | bd19e0535bec6a5accc70153ec51b0f790dcd43a | [] | no_license | wiwitrifai/competitive-programming | c4130004cd32ae857a7a1e8d670484e236073741 | f4b0044182f1d9280841c01e7eca4ad882875bca | refs/heads/master | 2022-10-24T05:31:46.176752 | 2022-09-02T07:08:05 | 2022-09-02T07:08:35 | 59,357,984 | 37 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,009 | cpp | seatstr2s.cpp | #include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const int N = 1e5 + 5;
long long powmod(long long base, int pw) {
if(pw < 0)
return 0;
long long ret = 1;
while(pw) {
if(pw & 1)
ret = (ret * base) % mod;
base = (base * base) % mod;
pw >>= 1;
}
return ret;
}
long ... |
b0058cc3661524ad5c3d2c0be622c26ba1e97e10 | a2c2159f95d96a3a2f2488388dcae780c291e400 | /include/Minion.hpp | c15c23177d2fdd705df09335cbe4af7d19d89071 | [] | no_license | Yoggiburken/AntWarsServer | 8d87b6b53019c99fe03c60c01f843e60600a4e6a | 6275658559a1b132aed5a624770c1f15a8564995 | refs/heads/master | 2021-01-10T21:17:20.434708 | 2013-10-11T21:32:23 | 2013-10-11T21:32:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370 | hpp | Minion.hpp | #include<SFML/System.hpp>
#ifndef MINION_HPP
#define MINION_HPP
class Minion {
private:
int health;
sf::Vector2f position;
int damage;
public:
Minion(sf::Vector2f position, int health, int damage);
void attacked(int damage);
void setPosition(sf::Vector2f position);
int getHealth();
sf::Vecto... |
249e6c03b9c4423e1e99e3cc98298845b9970390 | 3ab3cd90366886a85d3c5c70271dea196a7058d6 | /imapp/ImApp.cpp | ca1bc1a94018e8918d0b430e8c546a3784cdfd6a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ousttrue/ImGuizmo | 12a7e666fe0147f0a3bd448b94620fe474fe153f | 68bcda2563d24c909f1c103eab8aa8df5e540692 | refs/heads/master | 2023-08-03T18:51:18.378111 | 2023-07-31T02:02:31 | 2023-07-31T02:02:31 | 242,710,616 | 1 | 0 | MIT | 2020-02-24T10:46:34 | 2020-02-24T10:46:33 | null | UTF-8 | C++ | false | false | 24,959 | cpp | ImApp.cpp | #include "ImApp.h"
#include <imgui.h>
#include <gl/glew.h>
#define glGetProcAddress(name) (void *)wglGetProcAddress((LPCSTR)name)
static bool IsAnyMouseButtonDown() {
ImGuiIO &io = ImGui::GetIO();
for (int n = 0; n < IM_ARRAYSIZE(io.MouseDown); n++)
if (io.MouseDown[n])
return true;
retur... |
46cd1048b9adc62c2b9fbd1e94c6a6affd6dba8f | 0c0acfc78a33fef84f3048f30db64c192a76b5b9 | /hooklib/src/main/cpp/utils/offset.cpp | acbb7af917a1e8e92191f5543fac3ecc51999859 | [
"LicenseRef-scancode-996-icu-1.0"
] | permissive | WindySha/SandHook | 6ed6f66d1d59af4fea62b4267a5c9e367c782c53 | a78eedf3fbd35f37a97bd93a2b47bf29352a96a0 | refs/heads/master | 2022-09-19T21:28:01.240677 | 2022-08-26T18:34:13 | 2022-08-26T18:34:13 | 180,837,316 | 13 | 1 | Apache-2.0 | 2021-01-12T18:08:00 | 2019-04-11T16:49:47 | Java | UTF-8 | C++ | false | false | 1,840 | cpp | offset.cpp | //
// Created by swift on 2019/2/3.
//
#include "../includes/offset.h"
namespace SandHook {
template<typename T>
int Offset::findOffset(void *start, size_t len, size_t step, T value) {
if (nullptr == start) {
return -1;
}
for (int i = 0; i <= len; i += step) {
... |
a4cdadd3743fd1139ec9dbffb26c717a61e649a7 | d5497ebcddd0581b530a053f83d9189e1fb62684 | /QT/Pointer.cpp | 10a9316e364ade264d9361ad8dfb6572c60b4b03 | [] | no_license | DebugJO/HelloWorldSample | 7d0ba46c602fb6365988f89c9ffdbbc897287b0b | 5f5e4f1ab434de59c6a4cbb47b893b3ed5180c91 | refs/heads/master | 2023-06-13T04:05:02.224229 | 2023-06-05T04:33:49 | 2023-06-05T04:33:49 | 159,214,266 | 10 | 2 | null | 2022-06-27T00:43:37 | 2018-11-26T18:26:47 | C# | UTF-8 | C++ | false | false | 1,004 | cpp | Pointer.cpp | #include <QCoreApplication>
#include <QDebug>
#include <QPointer>
#include <iostream>
#include <memory>
using namespace std;
class Person : public QObject
{
public:
explicit Person(const QString &name, QObject *parent = nullptr);
~Person();
virtual QString name() const;
private:
QString m_name;
};
... |
5f8d01a1ee0b5b79ba3ac8b30b28b103551bd01d | 4baa62e54b5ad336d989cb0554ae422c591f73af | /1000/1087.cpp | 277c009c6e8e288d617dea6bb50b6447c17104f7 | [] | no_license | shikgom2/Codeup | 219283fc487c2da781ba562bda4fcba40cfe7c46 | 111243633fbec7116e52e609b01415d6d2cbba99 | refs/heads/master | 2020-06-13T06:56:56.586964 | 2019-07-09T07:50:19 | 2019-07-09T07:50:19 | 194,578,627 | 7 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 188 | cpp | 1087.cpp | #include <stdio.h>
int main()
{
int i, a, sum=0;
scanf("%d",&a);
for(i=1; ;i++)
{
sum += i;
if(sum>=a) break;
}
printf("%d", sum);
return 0;
}
|
f8506d2b93a9ce8fc3d9ecc1026d6286a969389a | 84ce4567164148b52abc4de6b51f748571b47f2d | /positivedef.cc | 6dc0ca704d35e075da6f1e95d1b5f64d19d52bb8 | [] | no_license | RuijieZ/cc3k | bcd92f458937cb2f58e7a6be08d11d008a9a6470 | c5dccdc0f8d3be48dccd46df34cf877d0411cd94 | refs/heads/master | 2020-04-10T22:42:06.448484 | 2016-02-10T17:03:05 | 2016-02-10T17:03:05 | 51,455,184 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 568 | cc | positivedef.cc | #include <iostream>
#include <string>
#include "positivedef.h"
using namespace std;
PositiveDef::PositiveDef(Player* next, string race){
type = "BD";
this->next = next;
this->race = race;
if (next != NULL) {this->gold = next->getGold();}
}
int PositiveDef::getHp() {
return next->get... |
63937e62ca5ac217b58e0ae9b9e761bdafa06cd6 | 58f188fa528dbb5df3ebd5711c10ac9f860d5de9 | /studying/array_bitmask/UVa-10935/10935.cpp | c8ce8ea6227ec5723adce89b5dd9b41a6fd804ef | [] | no_license | laviniameds/CP | 1775bed77b3f7c056a6ac416198fa07efc137d1b | 1f2daf2d5e7f0c81a446d7c64477bd2cba60b54a | refs/heads/master | 2020-04-28T07:03:42.562217 | 2019-07-06T14:45:46 | 2019-07-06T14:45:46 | 175,079,168 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 746 | cpp | 10935.cpp | #include <iostream>
#include <deque>
using namespace std;
int main(){
deque<int> dq;
int num;
while(cin >> num, num){
int max = num;
for(int i=1;i<=max;i++){
dq.push_back(i);
}
if(dq.size() != 1)
cout << "Discarded cards: ";
else
... |
efe9c8036b2e9a96d1677e3eebd7aaa2b56f6862 | 4e2e733abff761f162bb73df7c315dd0334d9c52 | /Vector.hpp | 8fb0a39425ae39ef45cf6799ee94b6854e46e599 | [] | no_license | yechoi42/ft_containers-1 | 71b0ab7c713617828555c3c913e0a9319f8abb7b | 3e64233c5db31a98fc190d5b420b06836fc2abbc | refs/heads/master | 2022-12-06T20:37:29.990286 | 2020-08-10T19:52:43 | 2020-08-10T19:52:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,337 | hpp | Vector.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Vector.hpp :+: :+: :+: ... |
13c147ce38842f24d5f1c17081be8110aac17af3 | 9773369b12438f847a2601ec8bd4f15d172a700e | /tuto4_SaturatedSegmentation.cpp | 8d62adf0272ec0735ea4742df373efce7bc101b0 | [] | no_license | kerautret/MT_DGtalTutoIWCIA | d77d5f8e7bd7f94dec6d4651eaa9017cd671f2bd | 136f2f66c50b92497cf1189ba9eb9bbe975e36ab | refs/heads/master | 2021-01-10T08:21:04.635194 | 2015-11-22T16:33:43 | 2015-11-22T16:33:43 | 46,669,132 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,215 | cpp | tuto4_SaturatedSegmentation.cpp | #include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/io/readers/PointListReader.h"
#include "DGtal/io/boards/Board2D.h"
// To compute the AlphaThickSegments
#include "DGtal/geometry/curves/AlphaThickSegmentComputer.h"
// For global tangential cover
#include "DGtal/geometry/curves/Saturated... |
b7c6fa2d8d55227c3029e98002d37d92da60b4b0 | fac499cf0fafdfd6f6625219d8b3c240fa58c61b | /Weight.cpp | 1e4c1a60079b30283763768009e86cba19568e98 | [] | no_license | ferrpete/CS575-Project1 | 1fe6c92155cfa0c4d54e7f6da8df565e81262292 | 3f0ccb656a86b701a553f9a80fa02b7709fe1e3a | refs/heads/master | 2020-03-10T23:49:14.865979 | 2018-04-19T05:33:27 | 2018-04-19T05:33:27 | 129,648,837 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,300 | cpp | Weight.cpp | // Weight.cpp
// Determines the weight for each node
double Weight( int iu, int iv )
{
// To calculate the weight, we're going to first convert the node numbers
// into Cartesian coordinates. The domain is from 0 to 3 for both x and y.
float u = (float)iu / (float)(NUMNODES-1);
float v = (float)iv / (float)(N... |
ccc5f0d2a2ea49c5cd9038c26c0627e9c7a6ddd7 | e39408ca6d2f8b6b34222e180196470b3680b900 | /src/visitor/normal_init_visitor.cc | ee643b934c1d4a950473575a352dcea1c91519f3 | [
"Apache-2.0"
] | permissive | lingbozhang/intellgraph | abd425a3e032ddf224525d90f7e41b8aaaa9db83 | fd71f379d304e6909a0f0e1c9092574ed6ab7e56 | refs/heads/master | 2021-06-29T03:51:12.473700 | 2020-12-17T17:43:13 | 2020-12-17T17:43:13 | 177,602,264 | 1 | 1 | Apache-2.0 | 2020-12-17T17:43:14 | 2019-03-25T14:26:27 | C++ | UTF-8 | C++ | false | false | 1,709 | cc | normal_init_visitor.cc | /* Copyright 2020 The IntellGraph 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-1.0
Unless required by applicable law or agr... |
a04deb651b238c0f48c827096e4d803263693887 | 4f30221422cc02d938f829c34186ed68abc2d054 | /Zad1/main.h | d3e8708384b90c3b9a214a7dcc8c462556502ecf | [] | no_license | artifact113/stsp | 4bccf2e74a7398fd3d96980a4287f855398f4ddd | 5f4edd2bec487446823f6a0dc34207cbadb16fba | refs/heads/master | 2021-01-10T13:55:14.623332 | 2013-11-11T10:14:14 | 2013-11-11T10:14:14 | 48,757,901 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 182 | h | main.h | #ifndef MAIN_H
#define MAIN_H
#include <iostream>
#include <string>
#include "reader.h"
#include "measurement.h"
#include "algorithms.h"
#include "tabu_search.h"
#endif //MAIN_H
|
2af949c9b5b5b5dba6d28cd661f439fe3af7eb79 | 50bb1c5830405d8e13ab0f384d45ae355820c3e7 | /Saper/saper.h | 34e0b0113288ed2560bf6014bea8167d5de9eb0b | [
"MIT"
] | permissive | and-r/saper | 3c3a85e1503429148bb246a454dbfda533ef68f2 | 988c80dec3f397b823d7cf281ec71b95b89894d6 | refs/heads/master | 2020-03-25T16:09:14.579337 | 2018-08-30T17:47:52 | 2018-08-30T17:47:52 | 143,917,465 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,588 | h | saper.h | #pragma once
#include<ctime>
#include<windows.h> //potrzebne do Sleep()
//#define PL //jezyk polski - przelacznik kompilacji
//deklaracja zapowiadajaca
class cWyswietlacz;
class cObiektPlansza;
enum STAN_GRY { PYTANIA, ROZBRAJANIE, UDALOSIE, DETONACJA };
enum STAN_POLA {
MINA = -6, PUSTE = 10, OBOK1 = 1, OBOK2 = 2... |
ce6b629a84a5e6cceee9905e892a5a55eb14e29a | 67e5bce19ef8bbd2ea7a9d3638661c0faa7cb0f4 | /src/math/Transform.h | 7039af1c1457faa74ba87acb3ae45fa08feaa921 | [] | no_license | ChaseCarthen/Didgeridoo | e43f36959a7568ffef7a3af9434418b1e2a8a601 | 39a0bb00b34c19aab1c60d5cd4ef67af0273d633 | refs/heads/master | 2020-12-24T19:46:51.726313 | 2016-04-18T18:48:43 | 2016-04-18T18:48:43 | 56,175,384 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 947 | h | Transform.h | #pragma once
#include <cavr/cavr.h>
using namespace cavr::math;
namespace cavr
{
/**
* Represents affine transformations and their inverse transformations.
*/
class Transform
{
public:
Transform();
/**
* Rotates about an arbitrary axis intersecting the origin.
*/
void rotate(vec3f axis, double angle);
/... |
abf375eab5315898ce4b698806f1b50325589805 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/4b/09ddc37068368b/main.cpp | 8e4c8129d8578e7d732a368de0ee09e87c9e8dbb | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 542 | cpp | main.cpp | #include <boost/iterator/iterator_facade.hpp>
struct my_obj
{
my_obj(std::string v) :value(v) {}
std::string value;
};
class my_iterator
: public boost::iterator_facade<
my_iterator,
my_obj,
boost::forward_traversal_tag,
my_obj> //tell iterator_facade that d... |
63c3834539ee158b600c3e3216ca5759473b8f1b | 75a479eea58befc216580df0c52baba44c90a82b | /game/src/core/id.h | 28cac77ef183999e6fa07daac4e352e2ac780658 | [
"MIT"
] | permissive | wateret/mengde | c75cff31d723a40020c2b55615d0b0fc813c3061 | 03c1894603b76916351550d03df8f4af38eb4ca6 | refs/heads/master | 2021-08-30T22:18:30.724554 | 2021-08-18T11:42:11 | 2021-08-18T11:42:11 | 115,745,105 | 27 | 9 | MIT | 2019-09-29T02:40:41 | 2017-12-29T18:29:17 | C++ | UTF-8 | C++ | false | false | 1,944 | h | id.h | #ifndef MENGDE_CORE_ID_H_
#define MENGDE_CORE_ID_H_
#include <boost/optional.hpp>
#include <utility>
namespace mengde {
namespace core {
template <typename T, typename Tag>
class Id {
public:
Id() : val_{boost::none} {}
Id(T&& o) : val_{std::move(o)} {}
Id(const T& o) : val_{o} {}
Id(Id<T, Tag>&& o) : val_{... |
e79380f7ca1d6db9d725d96abaade6fd481511fb | f49b95ea21383d9a9a82c68d80091b991a74f07b | /src/ShannonPacker.cpp | 42f0d0af32504e17adb37bebeef008dcba6254f5 | [] | no_license | renurtt/Data_compressor | 20e85033e796375e5a97acd0f5a0b870551d22d7 | 67efb9c71e7aa635dc7d2c33697f029a880172bd | refs/heads/master | 2023-01-18T20:30:18.647808 | 2020-11-13T08:23:20 | 2020-11-13T08:23:20 | 312,514,472 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,167 | cpp | ShannonPacker.cpp | //
// Created by Renat Nurtdinov on 30.03.2020.
//
#include "ShannonPacker.h"
string ShannonPacker::pack(const string &original_filename)
{
ifstream input(original_filename, ios::binary);
string compressed_filename = original_filename.substr(0, original_filename.find('.', 0))
... |
2d7a48298533a7d9e7d809c9d1b8123da1acbc83 | e5f4f37d941ceb8145d65f92028cc54658b1ac01 | /Code/EditorPlugins/Jolt/EditorPluginJolt/Actions/JoltActions.h | 278a64af63497d2a76aaf4cfebac9c96a255331e | [
"MIT"
] | permissive | ezEngine/ezEngine | 19983d2733a5409fb2665c6c3a0a575dadcefb50 | c46e3b4b2cd46798e4abb4938fbca281c054b039 | refs/heads/dev | 2023-09-06T02:17:28.152665 | 2023-09-05T18:25:43 | 2023-09-05T18:25:43 | 18,179,848 | 1,050 | 165 | MIT | 2023-09-14T21:44:39 | 2014-03-27T15:02:16 | C++ | UTF-8 | C++ | false | false | 808 | h | JoltActions.h | #pragma once
#include <EditorPluginJolt/EditorPluginJoltDLL.h>
#include <GuiFoundation/Action/BaseActions.h>
#include <GuiFoundation/GuiFoundationDLL.h>
class EZ_EDITORPLUGINJOLT_DLL ezJoltActions
{
public:
static void RegisterActions();
static void UnregisterActions();
static void MapMenuActions();
static ... |
075ed0793836937bae7bde56947b6bb8ccdb4839 | 52a08f0c3c025089dd435e1fdc15f5ebf4eef3a5 | /arduino/midi2cv/arp.h | 25559257c4341ab92eaf835702a06b53b41a7f57 | [] | no_license | dbosnyak/midi2cv | 6f20d5cd809cea308d726d006650063d68bbef33 | c5fdc00db192de0ebbcd4ec8ecf15bc001a3d47d | refs/heads/master | 2020-07-02T22:29:43.115470 | 2019-07-07T21:31:42 | 2019-07-07T21:31:42 | 201,688,798 | 1 | 0 | null | 2019-08-10T22:21:10 | 2019-08-10T22:21:09 | null | UTF-8 | C++ | false | false | 597 | h | arp.h | #ifndef ARP_H
#define ARP_H
#include "Arduino.h"
#define NOTE_BUFFER 32 // max nr of notes to be arpeggiating
#define MIN_ARP_SPEED 10 // min duration in ms
#define MAX_ARP_SPEED 300 // max duration in ms
class Arp
{
public:
Arp();
void Reset();
int PlayNote();
int CheckPlayNote(int speed);
int HandleNoteOn(by... |
8209d3f0f4e5148e6dcfcdcd00e5ff52a7a7f983 | 0b15c7a046d703e153b6e6054cb57a0664a2d4df | /RobWorkStudio/src/rwslibs/jog/Jog.cpp | 9d1e704f5e476cc6b2ef3553843383913f859487 | [
"Apache-2.0"
] | permissive | skyellen/robwork-mirror | bf5d97ce19775c2928432854a93fb87ab2f7cd26 | 5a74a49d9ef98eff7c75f48fe48c2e655480e9b3 | refs/heads/master | 2020-04-16T06:10:11.359979 | 2018-09-06T09:26:01 | 2018-09-06T09:26:01 | 165,335,340 | 4 | 0 | null | 2019-01-12T02:01:40 | 2019-01-12T02:01:40 | null | UTF-8 | C++ | false | false | 29,306 | cpp | Jog.cpp | /********************************************************************************
* Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exc... |
0ab238f816898772c35c90a1a075ddc0921b275f | 1e71f6b201281ac5937748b717d7fee2604d4570 | /ladder_11/B43.cpp | 22c60e0fc57fe9ab61b3c2bb589171792741bbb3 | [] | no_license | earthshakira/road-to-2k | 895255a4e1a0944ac1ff9b93ca5ccc10e2badd49 | 219bdcb8522564db75ad60c62b93af55b57a395e | refs/heads/master | 2021-03-06T15:01:09.343076 | 2020-03-11T05:58:05 | 2020-03-11T05:58:05 | 246,206,283 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 299 | cpp | B43.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
string s,t;
getline(cin,s);
getline(cin,t);
map<char,int> f;
for(char a:s)
f[a]++;
for(char a:t){
if (a == ' ')
continue;
f[a]-=1;
if (f[a] < 0){
cout << "NO\n";
return 0;
}
}
cout << "YES" << endl;
return 0;
} |
1b3eb8feb7acecbfa012dc4b58707a954e18e390 | 6b7325dcd0d5dd2eb66077a2b136c05395755ef0 | /Photorealism/Aggregate.h | 62ff9461a24f1095979f128b892e0d7ae912f792 | [] | no_license | MUV38/RayTracingTraining | 0716b32f6eb0a635e2f5d5f986a3c1f6e9a1370a | 7e05014d41775f22117a0e221bb2b0c1018fbdfb | refs/heads/master | 2021-10-20T17:05:41.050900 | 2019-03-01T05:29:04 | 2019-03-01T05:29:04 | 68,614,423 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 904 | h | Aggregate.h | #ifndef AGGREGATE_H_
#define AGGREGATE_H_
#include <memory>
#include <vector>
#include "Ray.h"
#include "Hit.h"
#include "Sphere.h"
class Aggregate
{
public:
std::vector<std::shared_ptr<Sphere>> spheres;
Aggregate() {}
Aggregate(const std::vector<std::shared_ptr<Sphere>>& spheres)
: spheres(spher... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.