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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f334d4e79645e5aeb30785ff54a94d0fba0c4d27 | 37851bf986918e7529e7f221e883184ea3f87289 | /TracerService.cpp | f5fa635c4d4cce5cad4757229c4eeee049b66b0f | [] | no_license | Hydrotoast/WashingMachineSimulation | dc7d6624995476b13cbf6a5df4decc39d308e4e0 | 2a5babee334ac7548855f63b68a8fbf093fbbfe7 | refs/heads/master | 2021-01-19T00:12:06.820034 | 2014-03-13T07:35:46 | 2014-03-13T07:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 629 | cpp | TracerService.cpp | #include "TracerService.h"
#include <sstream>
using namespace std;
void TracerService::log(discrete_time::time_point time, string message) {
string timeStr = formatTime(time);
string delim = " - ";
cout << timeStr << delim << message << endl;
cout.flush();
}
string TracerService::formatTime(discrete_time::time_p... |
877d7b94cbc7e165f3d8ec55b9f282fef602c5cd | 5d29aca40103012977a0a4eb0d3be02bd58e24f4 | /c++后端开发/WebServer-master/code/buffer/buffer.h | 90db7a4eb29d7d01b69bbd8dcb2738dce0a30273 | [
"Apache-2.0"
] | permissive | wangjunstf/computer-system | c03e0170cfe0cd1b423ae1afad601c41e360ff19 | e4da8caf8614f6b6cac05ee317c0346717886f19 | refs/heads/main | 2023-08-18T07:44:59.198700 | 2021-10-14T12:27:42 | 2021-10-14T12:27:42 | 361,100,742 | 3 | 0 | null | 2021-09-08T09:13:56 | 2021-04-24T07:39:27 | null | UTF-8 | C++ | false | false | 1,348 | h | buffer.h | #ifndef BUFFER_H
#define BUFFER_H
#include <cstring> //perror
#include <iostream>
#include <unistd.h> // write
#include <sys/uio.h> //readv
#include <vector> //readv
#include <atomic>
#include <assert.h>
class Buffer {
public:
Buffer(int initBuffSize = 1024);
~Buffer() = default;
size_t WritableBytes() ... |
c78677bb69d4954862f142ad331f6bdfd705e779 | edb124700cfea12419370d99346e1bf6b8c480b6 | /Vec4.hpp | 557effedd4997de854235b53c604048f57555b83 | [] | no_license | AyoubOuarrak/Caffeina | d43b4808599a2d23061748d94f4e28aafed38ada | b5326c33d5473b8a7f3a75418ccd832afd9914b2 | refs/heads/master | 2020-05-20T13:21:56.210507 | 2015-04-06T00:19:41 | 2015-04-06T00:19:41 | 33,387,006 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,224 | hpp | Vec4.hpp | /*
* Copyright (C) 2014 Ayoub Ouarrak, ouarrakayoub@gmail.com
*
* This file is part of Caffeina.
*
* Caffeina 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... |
51a04f3f11134f0ce9a329300cb2488edb957ccf | c4d6f65be488d4f3945b8f47b7c805fa956f677d | /main.cpp | ba93e80ab8070c8df17afacf2a0f9331f345d633 | [] | no_license | AlejandroIV/prct2EstrcDts | 0ecd357bf031dcb418c325d8b8195473df2b3ebd | 7513b11045e8ae3473f0bcfb919b633da6e8771d | refs/heads/master | 2023-08-24T09:14:40.925617 | 2021-09-23T09:04:22 | 2021-09-23T09:04:22 | 409,519,441 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,024 | cpp | main.cpp | /**
* @file main.cpp
*
* Codigo para extraer numeros enteros de un documento, aplicar el algoritmo "MergeSort" en una lista doblemente enlazada
* y para escribir en un archivo de texto el contenido de la lista
*
* @author Alejandro Delgado Rivera <AlejandroDR_IV@Outlook.com>
* @version 1.0
* @date 23/09/2021
... |
89a21f8fc6146360210b43f2f2766cb8f1311c58 | 1f63dde39fcc5f8be29f2acb947c41f1b6f1683e | /Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/modules/audio_coding/neteq/delay_manager_unittest.cc | e32d24e426a6b452b66453348e5099204ca7ae00 | [
"LicenseRef-scancode-google-patent-license-webrtc",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"GPL-1.0-or-later",
"LicenseRef-scancode-takuya-ooura",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown",
"MS-LPL",
"MIT",
"LicenseRef-scancode-google-patent-licen... | permissive | koobonil/Boss2D | 09ca948823e0df5a5a53b64a10033c4f3665483a | e5eb355b57228a701495f2660f137bd05628c202 | refs/heads/master | 2022-10-20T09:02:51.341143 | 2019-07-18T02:13:44 | 2019-07-18T02:13:44 | 105,999,368 | 7 | 2 | MIT | 2022-10-04T23:31:12 | 2017-10-06T11:57:07 | C++ | UTF-8 | C++ | false | false | 16,486 | cc | delay_manager_unittest.cc | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
ee57b1c1b293eacf03ef570393518dcb2ed48773 | 19fea0b2ce220a4d5475a4b71af6ecefb7b570e6 | /src/CSVStatLoggerTask.cpp | 4f071eca12b389095d2c566fafc9a591c3a6699f | [] | no_license | BodonFerenc/NanosecPeriodicTimer | 9597941e9aefb5df16dc29c95931d0ec4a904f27 | 6c2f056e616569693123d70c6612a0ed0b56d2f9 | refs/heads/master | 2021-07-19T21:06:11.431420 | 2021-04-05T17:27:19 | 2021-04-05T17:27:19 | 245,814,204 | 0 | 2 | null | 2021-04-05T12:32:17 | 2020-03-08T12:55:12 | C++ | UTF-8 | C++ | false | false | 1,642 | cpp | CSVStatLoggerTask.cpp | #include <iostream>
#include <fstream>
#include <numeric>
#include <algorithm>
#include "constant.hpp"
#include "CSVStatLoggerTask.hpp"
using namespace std;
CSVStatLoggerTask::CSVStatLoggerTask(unsigned long triggerNr, std::string filename) : filename{filename} {
latencies.reserve(triggerNr);
}
bool CSVStatLogge... |
212c26ebdec256762f41d1c4742483535693f336 | ee47a7c90cea2944e587cdccdf4fd5edf568b3f5 | /DistributionOfWork/efficientArray.h | 811d771e240c14854f37e1f1b60a1911c33dcfaf | [] | no_license | khamoyer/scripts | 68b0fd246729cf9446782fd68fec2a5d9307e393 | 3bc4bdf03fc5bc3c767d080d1eae9464e9833e89 | refs/heads/master | 2021-05-05T10:30:03.020154 | 2020-03-07T05:50:57 | 2020-03-07T05:50:57 | 104,251,615 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,907 | h | efficientArray.h | #include "judge.h"
using namespace std;
template<typename T>
class Heap : public T {
public:
int size=0;
void push(int value) {
size++;
T::data[size] = value;
}
bool isAny() {
return size > 0;
}
int peek() {
if(isAny()) {
int exIdx = 1;
for(int i=1; i <= size; i++)
if(T::compare(i, exIdx))
... |
693a0c27da62d1b0b9a0be0ba656bbb8374f91a1 | 12512c75a5aa4e5fcd61e95a314e3f2d531e3d03 | /ufora/core/serialization/OQueueProtocol.cpp | 887546eb0e5d698ba8cd280e48729c3130a8d66a | [
"dtoa",
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | arita37/ufora | ecc4c2820b1d47e8e23f77676e6def4501ee41f7 | 55c9ebef12806bf0b17fe6ff7c102ae756b13b47 | refs/heads/master | 2021-01-11T01:12:29.461835 | 2016-10-11T14:23:22 | 2016-10-11T14:23:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,100 | cpp | OQueueProtocol.cpp | /***************************************************************************
Copyright 2015 Ufora 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/licen... |
2ab68c6cd3b4a011eafdf290fbb3c7d0e9a995d6 | 3f6649885e8d391a490cdc2b652058a1dab29f57 | /考试4.cpp | 05df4c874ac449abcda7d4238f33a8a7760b34ab | [] | no_license | cxy205/205 | c7f6194431fa1fa0f9eded0088aca155ebf8c181 | aa85e300546560a618e6df6d47daebab4bcf96a8 | refs/heads/main | 2023-02-10T23:38:43.737293 | 2021-01-13T03:52:02 | 2021-01-13T03:52:02 | 309,595,779 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 844 | cpp | 考试4.cpp | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
int n,i,j,A,B;
float G;
char g[5]={};
A=0;
B=0;
scanf("%d",&n);
if(n<1||n>100)
return 0;
char NAME[100][10]={},STUDENT_ID[100][19]={};
int GRADE[100]={};
for(i=0;i<n;i++)
{
scanf("%s %s %s",NAME[i],STUDENT_ID[i],g);
if(strc... |
cbca91c74774e0709b2df58f893727ef232acdce | ad3b46656bf0a74739827cc3bbc256da05927b80 | /ofApp.cpp | e56a452dd6a619de029df1b4b81f3a27e5f87000 | [] | no_license | junkiyoshi/Insta20171013 | aef80f39268a400d07e5b87e50be4b482c469383 | 3eec0132c5e8c08e67e1254cdc03e86fc1015023 | refs/heads/master | 2021-07-12T09:43:32.158296 | 2017-10-13T04:04:36 | 2017-10-13T04:04:36 | 106,773,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,306 | cpp | ofApp.cpp | #include "ofApp.h"
//--------------------------------------------------------------
ofApp::~ofApp(){
for (int i = this->ripples.size() - 1; i > -1; i--) {
delete this->ripples[i];
this->ripples.erase(this->ripples.begin() + i);
}
}
//--------------------------------------------------------------
void ofApp::set... |
b7bfa45695bea475106968c7d682fbd8b81fc937 | 2fd3f4c6d72981a53ca34305f9069f1bbe6c1f52 | /LP/lp.cpp | 7c7ed74f7f957d7ecebb45bc2b1806ecde7869ed | [] | no_license | gerricduncan/LP | 51fdf23e57b0c351ac82920cc210afbe26944a77 | e8f17364d1dfde7f4506f0ffa20c18bc18b945fb | refs/heads/master | 2021-01-01T15:55:48.834278 | 2015-09-18T16:22:42 | 2015-09-18T16:22:42 | 42,676,034 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 936 | cpp | lp.cpp | //
// lp.cpp
// LP
//
// Created by Gary Duncan on 9/17/15.
// Copyright (c) 2015 Gary Duncan. All rights reserved.
//
#include "lp.h"
bool lp::validForm() const{
auto numVariables = c.size();
for (auto i : constraints)
if (i.a.size() != numVariables)
return false;
return true;
}
... |
532c4c7f8c4ca0d87a3addf77a53164625b44fb0 | b1f101c2290dc7cce50e3296e9b58ab1297b8337 | /include/ki/protocol/control/ServerKeepAlive.h | 520ff51af1ce7df7a4a3884abd39ed1e3149adc1 | [] | no_license | SeanOMik/libki | e28559142bf3d6aad93fdab6cb0507d99a2c2f14 | e8d25eeb67338f7891561934ce32a1187d56dba2 | refs/heads/master | 2023-02-01T17:13:04.862710 | 2020-12-16T06:36:51 | 2020-12-16T06:36:51 | 318,951,417 | 0 | 0 | null | 2020-12-06T04:35:47 | 2020-12-06T04:35:46 | null | UTF-8 | C++ | false | false | 579 | h | ServerKeepAlive.h | #pragma once
#include "../../util/Serializable.h"
#include <cstdint>
#include <iostream>
namespace ki
{
namespace protocol
{
namespace control
{
class ServerKeepAlive final : public util::Serializable
{
public:
ServerKeepAlive(uint32_t timestamp = 0);
virtual ~ServerKeepAlive() = default;
uint32_t get_timest... |
6762c37de284e35d6471a7cf8052b3f13a377019 | 31a8e74237625adb92e891ebe41335133d0ec61c | /14.Longest_Common_Prefix/LongestCommonPrefix.cpp | 3c08ad0e47501bbe859a3860844a384d2c158909 | [] | no_license | forked-from-repos/LeetCode | e6f5b14a1e1424b8852c73cea8cffd114ccb27b9 | 4a598cfbfa47f2144991704725fa19acc4ba7a93 | refs/heads/master | 2023-03-18T16:05:48.911637 | 2021-03-07T16:10:09 | 2021-03-07T16:10:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 651 | cpp | LongestCommonPrefix.cpp | class Solution {
public:
string change(string a, string b) {
string temp = "";
int i = 0, j = 0;
while(a[i] == b[j] && i < a.length() && j < b.length()){
temp += a[i++];
j++;
}
return temp;
}
string longestCommonPrefix(ve... |
f76d0ee12b6239b7585d6925440e93d763235990 | d1a4f5b3806676c937d2d25d4dd10d225f6369a6 | /XMFCaptureCPP/XMFCaptureUsingIMFSinkWriter.h | fb6f5a4bfca6457fa7bc7686722b58087db9040d | [] | no_license | sdaly2324/XMFCapture | 38aa7fd566a39971d95df09565b6b84f4e5d8139 | 0343f2ed71d6ffa5cba1d77d2eff0923802010b2 | refs/heads/master | 2021-08-19T23:38:24.775250 | 2017-11-27T17:33:26 | 2017-11-27T17:33:26 | 104,789,605 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 949 | h | XMFCaptureUsingIMFSinkWriter.h | #pragma once
#include <memory>
#include "IXMFCaptureEngine.h"
class XMFCaptureDevice;
class XMFCaptureUsingIMFSinkWriterRep;
class XMFCaptureUsingIMFSinkWriter : public IXMFCaptureEngine
{
public:
XMFCaptureUsingIMFSinkWriter(std::shared_ptr<XMFCaptureDevice> pAudioDevice, std::shared_ptr<XMFCaptureDevice> pVideoDevic... |
7ebd4825ca7f13ab9e6ef62cccf56689bf8d2b89 | 8b3607e7376a2acb57456c30106c5a91372cf6cf | /Game.h | ff2f18de6360d2ff7e9a80066a70014b0d43c4d2 | [] | no_license | AhmedElsayed200/Coin-Dozer-DS-Project- | 914f1150b9f5997408be4f0ad413874e5f41530e | 9966c62da7aa8369bf03fe59638664470f481a26 | refs/heads/master | 2022-09-20T14:45:27.449387 | 2020-06-03T19:28:34 | 2020-06-03T19:28:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | h | Game.h | #ifndef GAME_H
#define GAME_H
#include <QGraphicsView>
#include <QGraphicsScene>
class Game: public QGraphicsView{
Q_OBJECT
public:
// constructors
Game(QWidget* parent=NULL);
// public methods
void displayMainMenu();
// public attributes
QGraphicsScene* scene;
QStri... |
9a079b521e8c34bb7267c978c4ae9bddcbb82b75 | 3bf914538f23ddae0b37a43d489f40be846c711f | /gunMayhem/headers/Platform.h | ec9a4c74a8bcfc618cf0278c014365c20164b760 | [] | no_license | 26eldrpau/gunMayhem | 61f0c9b1375eaa71dbdba36672b4cc3e9ed8a4e0 | 3b6eb5d0385365f3131c2511e29ffb5d3edcc652 | refs/heads/master | 2023-02-15T04:39:02.415073 | 2021-01-10T14:43:28 | 2021-01-10T14:43:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 695 | h | Platform.h | //
// Created by Maťo Prošovský on 30. 11. 2020.
//
#ifndef GUNMAYHEM_PLATFORM_H
#define GUNMAYHEM_PLATFORM_H
#include <iostream>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include <SFML/Network.hpp>
#include <SFML/Audio.hpp>
using namespace sf;
class Platfor... |
6ff2961fb35904c54f421924abb3a0f666a9f8d7 | ee7543fe2aaf7bf45f8ddcb3c30ab9333e50d5f1 | /graph_orthogonal_list.cpp | cd69f5572fcfc662d162be174e840b94f023ad81 | [] | no_license | 645082160/dsa | dce5553ef1e9fcc745a512df2d416a45017560c1 | d3b63c89c3d0ffb5ba894fa087f4a4404b9d7d7b | refs/heads/master | 2021-04-06T01:24:46.025119 | 2018-07-29T14:04:05 | 2018-07-29T14:04:05 | 124,818,018 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,407 | cpp | graph_orthogonal_list.cpp | /*
图的十字链表表示法
*/
#include <iostream>
#include <stack>
#include <list>
#include <string>
using namespace std;
//弧节点
struct ArcNode
{
int headvex;//弧头
int tailvex;//弧尾
ArcNode* hlink;//连接以该点为头节点的弧
ArcNode* tlink;// 连接以该节点为尾的弧
};
//顶点
struct VexNode
{
string value;//顶点名字
ArcNode* firstin;//指... |
056c00d3439801959ad1911b28fdea65ed23b27b | 3955942801052872fe265e40f228c545780e1323 | /CSQUAREacc.cpp | c5f3d2d8cb10e0f09aa6a0ec0d0a2b954feda1ef | [] | no_license | rajnishkr/SpojSolution | ccc23008fea3d5cbaebccd1fa06463d56cc6fa84 | 0c077085594733af8cba58ac65253c120ddef873 | refs/heads/master | 2016-09-06T10:13:54.016885 | 2013-06-19T16:43:57 | 2013-06-19T16:43:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 664 | cpp | CSQUAREacc.cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<vector>
using namespace std;
int main(){
int test;
cin>>test;
while(test--){
long long a,m,z,y;
scanf("%lld",&a);
char s[251];
scanf("%s",s);
scanf("%lld",&m);
z=1;
y=a;
for(... |
cb183986454473b652c577e2d30668a33e1a2d09 | 19a6a3e5fa40ff2e5c337e541020ecbfecc8bc4d | /SpaceWar/Bullet.cpp | 81fcaf6d1796c5cfcd91b70dd3a33f3af70171b3 | [] | no_license | AhmetOzyilmaz/SpaceGun | b8aeada17ea6ffc6b792bfd36c60ff3dd258cee2 | 6784ead1874ae393c5652009e98ba672e5500559 | refs/heads/master | 2021-03-24T12:42:38.470116 | 2017-09-18T10:22:35 | 2017-09-18T10:22:35 | 103,923,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 600 | cpp | Bullet.cpp | #include "Bullet.h"
#include "Game.h"
#include "EnemyShip.h"
Bullet::Bullet(vector2f pos, vector2f vel) : GameObject(Texture::Load("bullet2.png", 0.35), pos), velocity(vel)
{
//rotation = 3.14/2;
radius = 5;
}
Bullet::~Bullet()
{
}
void Bullet::Update()
{
position += velocity;
auto contacts = Game::insta... |
f2eb7ae3ef6c620361b84e95b6ce7dda531c5b35 | d30e692b0a2425c3942aeca3373292480c0263cc | /Lizard.cpp | 0be2ade07ee73fa0e478297502a1a847a8405dfc | [] | no_license | Kate1900/Zoo | edb7296197dfeeb044df799aaca88aaaa06ab5b1 | 4230e8376a06e9744860009bd17ed1b38032bd1b | refs/heads/master | 2021-05-20T01:21:14.062777 | 2020-04-01T10:36:52 | 2020-04-01T10:36:52 | 252,125,965 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | cpp | Lizard.cpp | #include "Lizard.h"
TLizard::TLizard() : TReptiles()
{
cvet = 3;
kolvokonechnostei = 4;
kolvosystems = 3;
}
const char* TLizard::Golos()
{
return "Frrt";
}
int TLizard::teeth()
{
return 0;
}
bool TLizard::Shell()
{
return 1;
} |
923a2ecd59daed369efdd885590fb6e8e3eef681 | 6c44fb8c76ac4d6f2584a248bcf1963b3789d87f | /csvfile.cpp | 3570e13de05741b3d98792d63a944af8069df3fc | [] | no_license | bollian/ScoutAnalyzer | a70ce9d61cfb72dd14983dce7f59f78aac4efc62 | 742fc06c527df4a40ec5a8da6c6116e63de7ecb8 | refs/heads/master | 2021-06-10T13:50:47.593311 | 2017-03-17T19:37:40 | 2017-03-19T10:35:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,177 | cpp | csvfile.cpp | #include <csvfile.h>
#include <cstdlib>
#include <strings.h>
#include <qiodevice.h>
#include <parseexception.h>
CSVFile::CSVFile(const QString& path) : QFile(path) {}
bool followedBy(char* str, int len, int index, char suf) {
return index < len - 1 ? str[index + 1] == suf : false;
}
/**
* @brief grabCell takes the... |
3470f4f1a770b0c7f9cdb20ecf259182e4f4534e | a2e865796d179a3dcbad45aa3e97cc5b4d870597 | /Physics/Source/Load_File.h | c0edffd5bfbcad2e89103eb9c2f5296d811f56e2 | [] | no_license | thunderblader/SP3 | 78d6e6ad489d248f875d3dbcec8a72b5af75d56b | 808103cf6d262377390055c5e3af6ebe7a014081 | refs/heads/master | 2021-01-16T21:13:53.194894 | 2017-08-29T09:56:28 | 2017-08-29T09:56:28 | 100,222,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 980 | h | Load_File.h | #ifndef LOAD_FILE_H
#define LOAD_FILE_H
#include <iostream>
#include <fstream>
#include <sstream>
#include "Spawner.h"
#include "Tree.h"
using std::vector;
using std::string;
using std::ifstream;
using std::istringstream;
using std::ofstream;
using std::ios;
using std::cout;
using std::endl;
class Load_File
{
public... |
67c810862d05f9f7d12e4d04ead66d59c8bb8154 | 172e7db57c5ad7f1ab029c86807e01deba20ca03 | /ComputerNetworks/Pracownie/Pracownia 1 - (5 na 10)/icmp_send.cpp | a29b045ec99a69071086402159e6d6be79145aa3 | [] | no_license | TheFebrin/UNIVERSITY | 419edd42b0965bb65d30e15ae982a36b7a277006 | cd2bc9198c355fcc213397e87757b5b27f493cbb | refs/heads/master | 2023-03-16T22:04:36.513670 | 2023-02-01T15:45:53 | 2023-02-01T15:45:53 | 135,926,363 | 10 | 10 | null | 2023-03-07T17:13:51 | 2018-06-03T17:38:50 | Jupyter Notebook | UTF-8 | C++ | false | false | 1,588 | cpp | icmp_send.cpp | /*
Dawid
Dieu
302052
*/
#include "icmp_send.hpp"
void print_as_bytes (unsigned char* buff, ssize_t length)
{
for (ssize_t i = 0; i < length; i++, buff++)
printf ("%.2x ", *buff);
}
u_int16_t compute_icmp_checksum (const u_int16_t *buff, int length)
{
u_int32_t sum;
const u_int16_t* ptr = buff;
assert (length ... |
d6e8d13966d8f9487beb8d880058a4babe62185b | 9b4f93cbada087291f70bfe44ba01458a28f0144 | /src/base/Mouse.cpp | 80b3113d3132f50a9f149a83cb7538e53b9226e9 | [] | no_license | namuol/lite | b499155eabcefa95412d58e31d572793de82a13d | a3d674b3b1787a6932899de890e8a25484b9e33f | refs/heads/master | 2021-01-18T13:58:41.232411 | 2012-03-27T20:13:13 | 2012-03-27T20:13:13 | 1,080,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | Mouse.cpp | //#define _MOUSE_DEBUG
#ifdef _MOUSE_DEBUG
#include <iostream>
using namespace std;
#endif
#include "Vector2.h"
#include "ITimer.h"
#include "Mouse.h"
namespace lite
{
Mouse::Mouse()
{
}
const Vector2& Mouse::position() const
{
return _position;
}
void Mouse::position(const Vect... |
310926d268f5193fecd3aaec6d8fe53f78c09592 | 6aa810357c774e1532a34bc038ee54afd0413319 | /Console_mode.h | 9014efb2c871dd7724ec3e3029450dd59f9a45d2 | [] | no_license | vishalsinghdeepak/parking_lot | 48992d469c7219f01b9138b743eff87ad02f5df4 | 74897aa0accfd627578366f037827742120b5fc7 | refs/heads/master | 2020-06-07T03:50:55.168248 | 2019-06-25T13:37:21 | 2019-06-25T13:37:21 | 192,915,613 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,785 | h | Console_mode.h | //
// Created by Vishal Singh on 20/06/19.
//
#ifndef GOJAK_CONSOLE_MODE_H
#define GOJAK_CONSOLE_MODE_H
#include <iostream>
#include "Global_declaration.h"
#include "Command_function.h"
#include "Formatting.h"
void Console_Mode()
{
while (!cin.eof())
{
global_command_name=input_string();
Ident... |
c9c3ca180a13c179d319e21ca6b48f8a305cacec | d055864962e316d80951cacf65a79a1f28e1c0fd | /BookPublication/BookPublication/Publication.h | 21b5b5ae85b4bc7cec2ebbe29f16c6e697bf4ccb | [] | no_license | openupmta/HDT | 61ca960064ac169d3bc121a85a506a69ac706e86 | 637db35c0e0b7f03013c49af8676eef17d078db7 | refs/heads/master | 2020-05-28T09:38:07.667595 | 2019-05-28T16:34:09 | 2019-05-28T16:34:09 | 188,957,592 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 247 | h | Publication.h | #pragma once
#include<iostream>
#include<string>
using namespace std;
class Publication
{
protected:
string title;//tieu de
float price;//gia
public:
virtual void getData() = 0;
virtual void putData() = 0;
Publication();
~Publication();
};
|
b12711d7d768b2fc8ccc2de7a5c22cd6f58b277a | ac39242880a90c7f8708ab76f721747f1f60269d | /sharpeye15_ws/devel/include/seagull_commons_msgs/SeagullHeartbeat.h | 00e2e8d760300137aa2379a42370e02a915e5d4b | [] | no_license | eloipereira/sharpeye15 | 0668152f5c66e6155d035d48651b2e80f4be73bc | 46895f09c4c35a0686fcd598c61bdf706a2022f6 | refs/heads/master | 2021-01-23T14:41:15.976135 | 2017-06-03T15:40:47 | 2017-06-03T15:40:47 | 93,257,653 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,485 | h | SeagullHeartbeat.h | // Generated by gencpp from file seagull_commons_msgs/SeagullHeartbeat.msg
// DO NOT EDIT!
#ifndef SEAGULL_COMMONS_MSGS_MESSAGE_SEAGULLHEARTBEAT_H
#define SEAGULL_COMMONS_MSGS_MESSAGE_SEAGULLHEARTBEAT_H
#include <string>
#include <vector>
#include <map>
#include <ros/types.h>
#include <ros/serialization.h>
#includ... |
54d14133dc0e8337e65ef4dfe8463b7f5d963dbf | a7cc00f82b9768154a144e2cd81327aa8100f866 | /schemeparams.cpp | a38c7b6c567c38e765e02f514cefb655a0281b5e | [] | no_license | Ekop007/CSM | 88ab74d62915b7ae7a953275595f258f7e0639f7 | 2bab84f5b5fc5b9570a8ba5c15c2e3d0b1eedb63 | refs/heads/master | 2020-07-25T23:57:45.845957 | 2020-04-20T11:49:53 | 2020-04-20T11:49:53 | 208,456,655 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,919 | cpp | schemeparams.cpp | #include <algorithm>
#include "schemeparams.h"
SchemeParams::SchemeParams(): node_count(0), resistors(0), capasitors(0), inductances(0),
itun(0), inun(0), itut(0), inut(0), b_p_transistors(0),
u_p_transistors(0), oper_amplifiers(0), transformers(0),
... |
de5054cae8033d4b1818174feee57e1df9b1ab10 | cfc105d0d7954ad5ec8a8f2a53d4a86f73d8fe22 | /src/OTNThread.h | 3f105b03340f0ecabbffdfc04d16292b0893a39e | [] | no_license | mrjojan/OTN | 5dcd882acdcf5a4966c196b5b3451a03aca62f2e | 96a094664880fd02618589287697fd1594ebd181 | refs/heads/master | 2021-01-01T18:11:04.748487 | 2013-08-17T09:14:35 | 2013-08-17T09:14:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 272 | h | OTNThread.h | #ifndef OTNTHREAD_H
#define OTNTHREAD_H
#include <pthread.h>
#include <iostream>
class OTNThread
{
public:
void start();
public:
virtual void execute();
public:
void wait_for_exit();
private:
pthread_t handle;
};
#endif
|
b811bbc39b6c603b9021be527ab3291a3a664dd8 | db3134c14114a91842c72f992bb054d8d780ba6a | /PathSumII.h | de5f32c3da3bfea0009576aa785415b900c8b3e8 | [] | no_license | Yunping/leetCode | 17ba201573b320e181ef7dbf5ebda547ec6807cc | e7c0e6abcec706a7cc7799aac557875ae06fe453 | refs/heads/master | 2016-09-11T08:35:33.218972 | 2015-12-27T12:30:52 | 2015-12-27T12:30:52 | 13,895,058 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,550 | h | PathSumII.h | /*
Problem: Path Sum II
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
For example:
Given the below binary tree and sum = 22,
5
/ \
4 8
/ / \
11 13 4
/ \ / \
7 2 5 1
retu... |
a40de89ff2f99cae5dd55f1cb66fd20aea6edce6 | 62e55902c7ee22940c2e756a308916882a3ac15b | /Source/Core/Core.cpp | 3eecaeb2bfb810d77f3546cadd4ec9cdb54a0696 | [
"CC0-1.0"
] | permissive | killvxk/X86Emu | 9cfa10df850ac8cea8f2b6e3fdeaa8dcf4ad4a74 | 11fb7b2fd6667745f7ac861f373a5d64a9947fb2 | refs/heads/master | 2020-04-12T19:39:09.973614 | 2018-11-29T02:20:34 | 2018-11-29T02:20:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,087 | cpp | Core.cpp | #include "Bootloader/Bootloader.h"
#include "Core.h"
#include "ELFLoader.h"
#include "LogManager.h"
#include <unicorn/unicorn.h>
#include <unicorn/x86.h>
static uint64_t AlignUp(uint64_t value, uint64_t size) {
return value + (size - value % size) % size;
};
static uint64_t AlignDown(uint64_t value, uint64_t size) {... |
c0288fd27e6094abb6008c3baa4c986f7c6d325d | 335db9546b7b862546446100fc2385caf79f6006 | /task_3/task_3.cpp | bd3195a4cc0aa820bcbdc5ed13853ee57912b6ad | [] | no_license | EugeneMagergut/ElementsOfProgramming | 6dbc062c4e8318c4792c77fd440de45deb3e323e | 5d807845f4f0e6d288370e5d9eb1af554c0280ab | refs/heads/master | 2016-09-05T14:50:02.195085 | 2013-09-29T16:37:43 | 2013-09-29T16:37:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,956 | cpp | task_3.cpp | #include <iostream>
#include <vector>
#include <assert.h>
#include <math.h>
#include <algorithm>
using namespace std;
template <class T>
T Gcd(const T& a, const T& b){
T temp;
T a2 = a;
T b2 = b;
while (b2 != 0){
temp = b2;
b2 = a2 % b2;
a2 = temp;
}
return a2;
}
template <class T>
class polynom
{
private... |
9741165ac2311c9e2e2c6e8d34f608e7202b030f | 0ff730907cce3c00786e7d6478943b4b6d08ca46 | /codeforces/908B.cpp | f94eaec55c2787f06d7ee1478e9d6902f8a0e07e | [] | no_license | satyakesav/Competitive-Programming | 1a864220a4adc183e278a499e184c636e932e04d | be825fb286224de946a31a7549c93d63e3ad176a | refs/heads/master | 2021-09-05T15:17:15.574373 | 2018-01-29T07:10:57 | 2018-01-29T07:10:57 | 119,345,560 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,421 | cpp | 908B.cpp | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
vector<vector<int>> perm;
void generate(vector<int>& curr, int n)
{
if (n==4)
perm.push_back(curr);
else
{
for(int i=n;i<4;i++)
{
swap(curr[n],curr[i]);
generate(curr, n+1);
swap(cu... |
037d71282bab029baabcb59a7cf049a408682481 | caf9892271b196a115a1461c1532c6379ddb2271 | /mzModel/SpatialStructure.cpp | b0218ae52fb5071bb6f0206608a7938c90112159 | [] | no_license | mzleman/mzModel | 436b5b8c345828f0587747934974d79816d05cae | e58374dd66df2b20a3ae45aa5dc756be0df7205c | refs/heads/master | 2023-02-02T00:13:56.933787 | 2020-12-15T12:32:27 | 2020-12-15T12:32:27 | 321,662,076 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,782 | cpp | SpatialStructure.cpp | #include "mzModel.h"
#include <iomanip>
SpatialStructure::SpatialStructure() {
this->cellArray = NULL;
}
SpatialStructure::SpatialStructure(int M, int N, double Blx, double Bly, double Dx, double NoValue) {
this->rows = M;
this->cols = N;
this->blx = Blx;
this->bly = Bly;
this->dx = Dx;
this->noValue = NoValue... |
65914ec80b31e7ebea6c97c898c573ea0dd6858b | e615dc15378d56a052c945c52bbf534e40b30047 | /xmlparser.cpp | 44138092979adc1d326c47d89c101b4e126b2898 | [] | no_license | k1dyamamoto/xml_corporate_parser | 608fcdc3f7a41e4142f4bd4a3683070755bf0751 | d0d954f6dd22f5a3c096c01b3160b64ff663fa62 | refs/heads/master | 2022-11-17T17:58:07.997094 | 2020-07-07T08:31:52 | 2020-07-07T08:31:52 | 274,208,413 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,495 | cpp | xmlparser.cpp | #include "xmlparser.h"
std::string cut(std::string &s)
{
int p1 = 1 + s.find('>');
int p2 = s.find('<', p1);
return s.substr(p1, p2 - p1);
}
bool contains(const std::string &str, const std::string &sub)
{
return (str.find(sub) != std::string::npos);
}
void read_xml(const std::string ... |
f02f2f066984a81e1c87ecdd1c3ed5cfa7cea0e9 | 9f8ff58fac6fdb0e1c612aa00b3f954a03d58bfe | /C++/Fibonacci.cpp | d107ca199a81bf38645193ab858a2435aaebfc6a | [] | no_license | sukriti-singh/Hacktober-Fest-2019 | 9db87786433e7877fb33990dbc9c1bec117e31e3 | cee38660deba2ebeda53547a719f607d5a6e1317 | refs/heads/master | 2020-08-27T11:06:18.730065 | 2019-10-24T17:03:34 | 2019-10-24T17:03:34 | 217,344,423 | 1 | 0 | null | 2019-10-24T16:29:13 | 2019-10-24T16:29:12 | null | UTF-8 | C++ | false | false | 291 | cpp | Fibonacci.cpp | #include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
int a=0,b=1;
int f=1;
cout<<"0"<<endl;
for(int i=2;i<=n;i++){
for(int j=1;j<=i;j++){
cout<<f<<" ";
f=a+b; a=b; b=f;
}
cout<<endl;
}
return 0;
}
|
a535f6607272edc90024e055310a32fb7822be0b | 6fb523a5ad9eb2152b306de7a2741acd26f6bded | /ProjetInterSpe/animation.h | 62996b7b2fb9b281540cc1e701ce5f30f4a7c303 | [] | no_license | JohnDRO/ProjetInterSpe | 7954c9dedbf05aab7e46271c8f9f4096911c1423 | dcf831fa817f8c68c6df88447b4605b16e034c1c | refs/heads/master | 2020-12-30T18:16:20.132461 | 2016-06-17T13:42:25 | 2016-06-17T13:42:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 682 | h | animation.h | #pragma once
#include "geometry.h"
#include "math.h"
#define PI 3.14159265358979323846
class Animation
{
private:
double angle;
double angle_incr;
Vector rot_vect;
public:
Animation(double agl = 0.0, double aglinc = PI / 12, Vector vect = Vector(1.0, 0.0, 0.0)) { angle = agl; rot_vect = vec... |
21de30d6c015766b6fd92100f36297fe52c09d31 | 508188ce839f454a128c3a1e9bb50c09cb83fcc0 | /DotNet/IlAsm2Cpp/bin/Release/il2cpp/Root.T_x59.h | 91d03e6078122afcc2aa45c6741ad7448401329c | [] | no_license | dreamanlan/OldWork | 1162bd208c9c5697ac4a30570b134c8b717e6ee6 | f49b780e7094ae8d4be6920da0a900a5feb5cce8 | refs/heads/master | 2020-07-02T06:35:07.616480 | 2019-09-29T02:32:50 | 2019-09-29T02:32:50 | 67,272,042 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 19,990 | h | Root.T_x59.h | #pragma once
namespace Root
{
[StructLayout(LayoutKind::Auto , CharSet=CharSet::Ansi)]
public
ref class T_x59 : Reflector::CodeModel::ILanguage
{
ref class T_x1;
internal:
[StructLayout(LayoutKind::Auto , CharSet=CharSet::Ansi)]
ref class T_x1 : Reflector::CodeModel::ILanguageWriter
{
ref class T_x1... |
581395ea055b3aacc86b8081358d0199c143c766 | 338c6e51883f9264890dbdfa4cbf141fce1db35d | /include/Fly.h | 2341de9f4edba2ffeedb9290bbad6a5befb617e1 | [] | no_license | dvora1208/Fun-Run | 53791286469bf0d412fa2b3a08825fd6d25308c8 | 12658b6c3fa5d28eadd2c44c9538893e37e9d171 | refs/heads/main | 2023-03-25T19:12:19.983560 | 2021-03-24T18:13:16 | 2021-03-24T18:13:16 | 351,179,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 495 | h | Fly.h | #pragma once
#include "Enemy.h"
class Fly :
public Enemy
{
public:
Fly(sf::Vector2f pos, sf::RenderWindow & window);
void draw(sf::RenderWindow &);
sf::Vector2f get_position() const;
const sf::Sprite &get_pic() const;
void update(sf::Vector2f centerPos);
void flip_pic_left();
void flip_pic_right();
void SetDel... |
9c2430ec83bfd45802c1e23f5ae1f393c8fd47ec | 420e0537269dc0e47832205b3982bce6189b850e | /Spoj/NECKLACE.cpp | a849cae73d7c61046923c37750641cceae5ae530 | [] | no_license | gcdart/PC-solutions | 20819d8bd89e4847773174120453d417f1aa2bdb | 0660b46053389ab895440583fef5d4fee0f011ee | refs/heads/master | 2016-09-06T15:10:57.597470 | 2013-07-16T16:53:52 | 2013-07-16T16:53:52 | 11,454,579 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,707 | cpp | NECKLACE.cpp | /*
ID: gcdart1
PROG: beads
LANG: C++
*/
#include <fstream>
#include <iostream>
#include <string>
#include <math.h>
#include <vector>
#include <list>
#include <queue>
#include <algorithm>
#include <map>
#include <cstdio>
#define rep(i,n) for(int i=0;i<n;i++)
#define repv(i,ar) for(int i=0;i<ar.size();i++... |
86eb9f827a36562f45a2dfbb6a92b45f8cb2229c | 693b19cd36f52a503b8ac1c9b54b9be6aeea9e76 | /componentes/TMS Component Pack/TMS Scripter Studio Pro/Source/DesignerTabOrderDialog.hpp | b90d86e9646efa71505f46ba80734083dbf25dad | [] | no_license | chinnyannieb/Meus-Projetos | 728e603b451ea4262f9e6f4bf7e3dd05f0d1e79e | 6e08497c8fc45c142d7be1c4408f02fa524cd71f | refs/heads/master | 2020-12-25T23:58:02.724867 | 2015-07-05T11:45:08 | 2015-07-05T11:45:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,799 | hpp | DesignerTabOrderDialog.hpp | // CodeGear C++Builder
// Copyright (c) 1995, 2010 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'DesignerTabOrderDialog.pas' rev: 22.00
#ifndef DesignertaborderdialogHPP
#define DesignertaborderdialogHPP
#pragma delphiheader begin
#pragma option push
#pragma opt... |
6d245a06454910de52fe04cdff8f5e3e47f1ad81 | 34bdaccc678444fe335b34d449323acf3887c3ef | /mainwindow.h | 4b49256b673374fb57227b685848edfadaf60cdc | [
"MIT"
] | permissive | bmhenry/MusicVisualizer | 58e40675acd2137d8092889905ce99cb2e6762b1 | 52669a2370a5e31d113e7342989a1065cf05ebf1 | refs/heads/master | 2021-04-15T07:29:21.900880 | 2018-03-24T19:54:33 | 2018-03-24T19:54:33 | 126,635,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 646 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QLabel>
#include <QMenuBar>
#include <QAction>
#include <QShortcut>
#include "canvaswidget.h"
/*
* MainWindow:
* Main display window for the Qt app
*/
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow... |
5b7096ded31c82e2ef1e9c6615269b3ba3a9ba66 | 7c4e895b9db057e1b02c3576c4facff4ec37a851 | /libraries/USB_Host_Shield_2.0-master/examples/Xbox/XBOXONE/XBOXONE.ino | e54b9c28c6563a0b7c0589731dcc856dc598a567 | [
"GPL-2.0-only",
"GPL-1.0-or-later"
] | permissive | westpoint-robotics/GLAWS | dcd2c1510fe241c9663585aa71cdabde6b5b4fd0 | dc40dfc914a3193c298088db7a578739876d217d | refs/heads/master | 2023-05-01T05:08:12.486235 | 2023-04-19T16:40:52 | 2023-04-19T16:40:52 | 54,519,438 | 1 | 2 | Apache-2.0 | 2023-04-13T19:10:19 | 2016-03-23T00:53:18 | null | UTF-8 | C++ | false | false | 4,138 | ino | XBOXONE.ino | /*
Example sketch for the Xbox ONE USB library - by guruthree, based on work by
Kristian Lauszus.
*/
#include <XBOXONE.h>
// Satisfy the IDE, which needs to see the include statment in the ino too.
#ifdef dobogusinclude
#include <spi4teensy3.h>
#endif
#include <SPI.h>
USB Usb;
XBOXONE Xbox(&Usb);
void setup() {
... |
156a90778f7e4a42493dabfd618c5c2ebe46f55f | b3e525a3c48800303019adac8f9079109c88004e | /platform/drivers/linux/rdma/test-res/test_res.cc | 017a8c1e39d1f690ac696a3c7f9eb7a9f501c55f | [] | no_license | PsymonLi/sw | d272aee23bf66ebb1143785d6cb5e6fa3927f784 | 3890a88283a4a4b4f7488f0f79698445c814ee81 | refs/heads/master | 2022-12-16T21:04:26.379534 | 2020-08-27T07:57:22 | 2020-08-28T01:15:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,004 | cc | test_res.cc | #include <random>
#include <gtest/gtest.h>
#include "wrap_res.h"
class Buddy : public ::testing::Test {
protected:
Buddy() {
order_max = 20;
buddy_init(&buddy, BIT(order_max));
}
~Buddy() {
check_invariants();
buddy_destroy(&buddy);
}
void check_order_next(int order) const {
int pos = bitmap_find_free_... |
58cdb3f02b622a9e41381d2adfbfd181e572333c | 993592f426a5257437cb7adacc71332be211ac13 | /Algorithm/Baekjoon/lv1/01924_2007년/01924_main.cpp | 2a30847f42eee51b55ead156d68ac04bb85c3841 | [] | no_license | Robi02/HomeStudy | c88c6b4a94e8a9d9d2c34651539e3a12b4c6e89c | ac23d8d55731d8ded12c4af727e01d4570657d90 | refs/heads/master | 2023-07-21T01:08:44.414637 | 2022-05-12T09:54:09 | 2022-05-12T09:54:09 | 160,051,975 | 0 | 0 | null | 2023-07-07T21:51:08 | 2018-12-02T13:47:38 | Java | UTF-8 | C++ | false | false | 1,132 | cpp | 01924_main.cpp | /**
* 오늘은 2007년 1월 1일 월요일이다. 그렇다면 2007년 x월 y일은 무슨 요일일까? 이를 알아내는 프로그램을 작성하시오.
*
* > IN : 첫째 줄에 빈 칸을 사이에 두고 x(1≤x≤12)와 y(1≤y≤31)이 주어진다. 참고로 2007년에는 1, 3, 5, 7, 8, 10, 12월은 31일까지, 4, 6, 9, 11월은 30일까지, 2월은 28일까지 있다.
* > OUT : 첫째 줄에 x월 y일이 무슨 요일인지에 따라 SUN, MON, TUE, WED, THU, FRI, SAT중 하나를 출력한다.
*
**/
#include ... |
75f3223b5691a6e7d8acbe94a48b7fe8339573f3 | 22c66068bd9341b86ac121bbfa494afec2750625 | /code/cpp/pair_test.cc | cce8977afd560d71ed407f215933402cc1a6da03 | [] | no_license | linghutf/topcoder | 54f5124563008ae23c0ac6227c8e44579ee371ba | 07da54aecaac0484675a91775140eb3c40ea5aa6 | refs/heads/master | 2020-04-07T06:49:33.114570 | 2017-05-28T08:21:10 | 2017-05-28T08:21:10 | 52,865,558 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 614 | cc | pair_test.cc | /**
* 测试pair和hashmap可不可以使用char *作为key,value
*
* 结论: pair map 可以
* unordered_map 不可以,需要自己实现hash函数
*/
#include <iostream>
#include <utility>
#include <unordered_map>
#include <map>
using namespace std;
template<>
struct std::hash<std::pair<char*,char*>>{
};
int main(int argc, char *argv[])
{
std::pair<c... |
1a805ee6a9bd7803c11a97715b0bd700fa46f3c9 | 604b98184de326e87b6bc290763b4bcede48eea6 | /cpp/mergeIntervals/mergeIntervals.cpp | 5202f22f583f792ac764e94f320ae72549b2666b | [] | no_license | xienan6/leetcode | b980fb736e8dac34e5c137afeeb35dddd10eed1e | da16b439f0f3b7c146c42191c66cda1bec0b3e94 | refs/heads/master | 2020-04-09T12:38:31.567787 | 2020-01-14T05:44:34 | 2020-01-14T05:44:34 | 160,358,300 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,247 | cpp | mergeIntervals.cpp | // Source : https://leetcode.com/problems/merge-intervals
// Author : Nan
// Date : 2018-12-23
// 169 / 169 test cases passed.
// Runtime: 8 ms
/*
* Sort the array and greedy.
*
* Time complexity O(nlogn), Space complexity O(n)
*/
/**
* Definition for an interval.
* struct Interval {
* int start;
* i... |
e57aa357bd51f1f3f9d0cc8f81c72dacb8db86a9 | 7d52b5f692fb8cae5eb38442bc417fcabbc22a82 | /modules/sync/src/transaction.cpp | 2d0dec8c032bdd3857730c1236a0fdd5b7748d7e | [] | no_license | Plaristote/crails | 0acaf96415e7c465e9d6413b50d20db40283f0cc | ea56c227932f752190e677d41341d0a3203603fa | refs/heads/master | 2022-11-14T18:13:33.091360 | 2022-10-24T17:23:58 | 2022-10-24T17:23:58 | 8,987,507 | 41 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 852 | cpp | transaction.cpp | #include "../crails/sync/transaction.hpp"
#include "../crails/sync/client.hpp"
extern thread_local Faye::Client faye;
using namespace Sync;
using namespace std;
namespace Sync
{
bool enabled = true;
function<void (DataTree&)> Transaction::on_commit;
}
bool Transaction::is_enabled()
{
return Sync::enabled;
}
... |
57e8a54c9a42198c3c78b4e3ae0f254ae7a21899 | 67b83e5d2b897754027414590548074c9dfba661 | /20190918_4_4div_test1.cpp | f7897aa541baac3a6a2f70ad3c1889502fe6e5c6 | [] | no_license | outum1500/OpenCV | 1680974ea6eba88d1f120764dcd4921f81266f84 | 372bf189909e29dc79cee00e0b9e3787b7726b15 | refs/heads/master | 2020-09-16T16:25:11.198910 | 2019-11-25T00:31:58 | 2019-11-25T00:31:58 | 223,828,684 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,532 | cpp | 20190918_4_4div_test1.cpp | #include "opencv2/opencv.hpp"
#include <iostream>
using namespace std;
using namespace cv;
int main() {
VideoCapture cap(0);
if (!cap.isOpened()) {
cerr << "camera open failed" << endl;
return 0;
}
Mat frame;
cap >> frame; // 초기 프레임 크기 설정!!
int fourcc = VideoWriter::fourcc('D', 'I', 'V', 'X');
double fp... |
4e64e5172b9de7ccba3ef91b47b6e208fbfc0009 | 254428fdb3a8609d2fa590cbd57ced0cf3f604c2 | /nachos/code/userprog/usersemaphore.h | 34d62161294a35845b9c8a4c5ca96e270ab0a234 | [
"MIT-Modern-Variant"
] | permissive | AntoninCastel/nachOS | 951f1ac7d05b0a0ec1f9947d279fc388b9f0a2a9 | 87c288d060d496d54f08e7b3bf39512ff48fc74c | refs/heads/master | 2020-04-22T13:05:13.374243 | 2019-02-13T21:10:02 | 2019-02-13T21:10:02 | 170,396,555 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 287 | h | usersemaphore.h | #ifndef __USERSEMAPHORE_H__
#define __USERSEMAPHORE_H__
#include "synch.h"
#include "system.h"
class Semaphore;
extern int do_Sem_Init(int n);
extern int do_Sem_P(int sem);
extern int do_Sem_V(int sem);
extern int do_Sem_GetValue(int sem);
extern int do_Sem_Destroy(int sem);
#endif |
4970fa76a1fdaa78550053d84f7c59e0293571a6 | 1dd7e9814bf96b19f812d1d8f123b156aed399dd | /Triangles/Triangles.h | cc43deb70e949f0ccc3b10bc08be8dc1bec5ee03 | [] | no_license | AverkinaNastya/LR20 | d09656972230ee605fa18326e354386e8585985d | 1e4547c470d4eec4ba1448bfd463ea1defcfd727 | refs/heads/master | 2023-08-29T00:58:44.935896 | 2021-10-15T07:18:24 | 2021-10-15T07:18:24 | 417,403,954 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 756 | h | Triangles.h | #ifdef TRIANGLES_EXPORTS
#define TRIANGLES_API __declspec(dllexport)
#else
#define TRIANGLES_API __declspec(dllimport)
#endif
namespace TrianglesFuncs
{
// This class is exported from the MathFuncsDll.dll
class MyTrianglesFuncs
{
public:
// Вычисление периметра треугольника A - сторона, b и c - прилежащие углы
... |
2f4bc7b540f8b978b3796f972b39f3369ba87195 | ea2d8f87328a70a52c92ebe3d083f76dcdba433c | /iitem.cpp | 4e1748f897927667166d4e9aa9646e578d6687ed | [] | no_license | salazc2/Video-Store-Management-System | f256188e19055f4acc32e767f1869ed70f30f7a8 | 222536d77a5d9d89d6a35441b13b37bf5dd03592 | refs/heads/master | 2021-01-24T02:52:46.235514 | 2018-02-25T16:03:01 | 2018-02-25T16:03:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,012 | cpp | iitem.cpp | #include "iitem.h"
// --------------------------------------------------------------------------
// destructor
// --------------------------------------------------------------------------
IItem::~IItem()
{
}
// --------------------------------------------------------------------------
// change stock of item for bor... |
03ee2034fc799e00eb92a4ea8e7a2af5444ed66d | e8378466a24fb0fe0a1e9bf1af7f41b77d2c20b4 | /hoomd/LoadBalancerGPU.cc | 1411f7962f262feaf0a791a495745a04fd0b2d81 | [
"BSD-3-Clause"
] | permissive | glotzerlab/hoomd-blue | eeabed0fee10a76b50d99b94ae0e93d3dc1d8037 | abdd76bc854358426e4cf055badd27f80df6ec85 | refs/heads/trunk-patch | 2023-09-02T21:32:24.986845 | 2023-08-22T19:02:21 | 2023-08-22T19:02:21 | 147,663,007 | 287 | 131 | BSD-3-Clause | 2023-09-08T11:59:16 | 2018-09-06T11:23:27 | C++ | UTF-8 | C++ | false | false | 4,875 | cc | LoadBalancerGPU.cc | // Copyright (c) 2009-2023 The Regents of the University of Michigan.
// Part of HOOMD-blue, released under the BSD 3-Clause License.
/*! \file LoadBalancerGPU.cc
\brief Defines the LoadBalancerGPU class
*/
#ifdef ENABLE_HIP
#include "LoadBalancerGPU.h"
#include "LoadBalancerGPU.cuh"
#include <hip/hip_runtime.h>
... |
fa7fc9c1c808f0a9ace7b36040fa7390972e9bf5 | aa156e0747cdf17fb6698bd55e0e98aa297dcdfd | /NetServer/echo.cpp | f8cc52d1c5063ad5a06c1d8735e293f210ab698e | [] | no_license | m5623skhj/BackupFolder2 | 1b6188c3d4d7139b3c51e6ea793c4e8330456b2c | be7c89dd02fce26c1b565f57666179ac89b94e8a | refs/heads/master | 2021-02-17T10:38:31.857937 | 2020-03-09T10:14:11 | 2020-03-09T10:14:11 | 245,090,345 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,777 | cpp | echo.cpp | #include "PreComfile.h"
#include "Echo.h"
#include "Log.h"
#include "Profiler.h"
#include "NetServerSerializeBuffer.h"
CEcho::CEcho(const WCHAR *IP, UINT PORT, BYTE NumOfWorkerThread, bool IsNagle, UINT MaxClient)
{
_LOG(LOG_LEVEL::LOG_DEBUG, L"ERR", L"Start\n");
SetLogLevel(LOG_LEVEL::LOG_DEBUG);
Start(IP, PORT, N... |
f7fa313f4adeb61b059908507ce9f86e14046951 | 4e9e4b2aa28113e307c87cd6c777d7498fd85b0a | /src/consensus/pbft/libbyz/Request.cpp | 78363caeaffe7a08b008aa4990837e554f51ef56 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | kuychaco/CCF | b0608e4f241a1c0dfa1c3f72021b4b4d786e0e02 | e11acde3be6a7d2213fe5b406b959bb5bb64361d | refs/heads/master | 2020-12-23T05:14:45.012959 | 2020-01-29T17:49:12 | 2020-01-29T17:49:12 | 237,045,643 | 1 | 0 | Apache-2.0 | 2020-01-29T17:45:36 | 2020-01-29T17:45:35 | null | UTF-8 | C++ | false | false | 4,558 | cpp | Request.cpp | // Copyright (c) Microsoft Corporation.
// Copyright (c) 1999 Miguel Castro, Barbara Liskov.
// Copyright (c) 2000, 2001 Miguel Castro, Rodrigo Rodrigues, Barbara Liskov.
// Licensed under the MIT license.
#include "Request.h"
#include "Message_tags.h"
#include "Node.h"
#include "Principal.h"
#include "Statistics.h"
... |
f199ee0b48c2f75860beb27a70581f975d002e87 | d394ea72dc1773893447cca00cc4e881d969c29d | /Semester-2/Deque/Deque/Deque.cpp | 67ea68e6b8947476f4ff1967df866f3b71950d22 | [] | no_license | ACC-Stas/OAIP | e00cf74a001a7efa0c5e6fd2911ee9eeba3c3dd2 | 7ccb806a7bd9e149642169d84eccb3ad5323dc94 | refs/heads/main | 2023-04-30T18:09:50.293939 | 2021-05-11T18:31:54 | 2021-05-11T18:31:54 | 352,179,624 | 50 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 12,929 | cpp | Deque.cpp | #include <iostream>
#include <vector>
#include <initializer_list>
#include <iterator>
template <class T>
class Deque {
private:
int leftIndex, rightIndex; //show first empty index
static const int blockSize = 32;
std::vector<T*> posHeaders;
std::vector<T*> negHeaders;
public:
Deque(int length = 0, T def = T()) {... |
0beb489ac74dee60961ddc1e63c84dd999c97a7f | 393320d4dc9463ae7047390e4afe6f3e25fd70b9 | /tek2/C++/cpp_arcade/src/interfaces/IPicture.hpp | 4d3b7cc0f67f6cb75b85d31353abc366772c542f | [] | no_license | Lime5005/epitech-1 | d1c4f3739716173c8083ea4e6a04260d6dc92775 | cb25df1fa5d540624b9e7fd58de6e458cd5cc250 | refs/heads/master | 2023-02-09T07:38:57.850357 | 2019-10-14T15:03:44 | 2019-10-14T15:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,071 | hpp | IPicture.hpp | /*
** IPicture.hpp for cpp_arcade in /home/ventinc/epitech/cpp/cpp_arcade/interfaces/IPicture.hpp
**
** Made by Vincent DUSAUTOIR
** Login <vincent.dusautoir@epitech.eu>
**
** Started on Fri Mar 17 15:39:28 2017 Vincent DUSAUTOIR
** Last update Fri Mar 17 15:39:28 2017 Vincent DUSAUTOIR
*/
#ifndef CPP_ARCADE_IPICTU... |
c9546a7645bb7f1a8766ac525be471dfd91faac9 | 5a66a73c1328afa6c68b104376d1538a2e89130d | /Device/DeviceManager/DeviceManager.h | 5bc74f8c0bc4baa8379ae9f426ea8787bf861903 | [] | no_license | QingChunm/USBtest | 819689e0e3d38cd3e030e384f756bfe47b2ed9c2 | f2ff9f0a1e1a50b2aced90f35c153ac3b97b1a95 | refs/heads/master | 2020-04-26T19:37:13.767325 | 2019-03-05T00:39:32 | 2019-03-05T00:39:32 | 173,780,981 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,763 | h | DeviceManager.h | #pragma once
#include "USBDeviceMonitor.h"
#include <map>
#include <string>
#include <SetupAPI.h>
#include "Data/AX32XXDevice.h"
class DeviceManager
{
public:
static DeviceManager& GetInstance();
void Initialize();
void Uninitialize();
void AddSupportedHardwareId(const wchar_t* deviceModel, con... |
de81a647682a694c42c01255e7639b600c62c966 | 55897f2ac51734b9f299ec0ea00a83f26ae94c3a | /src/CriAtomEx3dListener.h | 55a429927081d87e098b2fb6542dca2adb3c42dc | [
"MIT"
] | permissive | Boyquotes/ADX2LE-GodotPlugin | 60f3825c9ba05c702245e473c6e4b5eda5f3713f | cb0d9a585e2c35c1d1708a0904899e1a47096b77 | refs/heads/master | 2023-05-25T19:41:35.855112 | 2020-09-27T11:01:53 | 2020-09-27T11:01:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 666 | h | CriAtomEx3dListener.h | #pragma once
#include <Godot.hpp>
#include <cri_adx2le.h>
#include "CriAtomExAcb.h"
namespace godot {
class CriAtomEx3dListener : public Reference
{
GODOT_CLASS(CriAtomEx3dListener, Reference)
public:
static void _register_methods();
CriAtomEx3dListener();
~CriAtomEx3dListener();
void _init();
voi... |
c2f5f1b0fc1ebc244d009cda2793f6c5045b5398 | 13739586a566a82b47b88f06a9ba7da61d9f167e | /GeeksforGeeks/Largest square formed in a matrix.cpp | 50576251b630f44b077e42770550b0d49ff2f2ef | [] | no_license | sajalagrawal/BugFreeCodes | d712e5a46fa62319b66b00977a157e4c1758273f | c1930a68bdc50619daefea7f7088b506dd921e4c | refs/heads/master | 2023-01-20T19:13:08.736719 | 2023-01-15T14:38:27 | 2023-01-15T14:38:27 | 56,171,988 | 5 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 967 | cpp | Largest square formed in a matrix.cpp | //https://practice.geeksforgeeks.org/problems/largest-square-formed-in-a-matrix/0
//https://www.geeksforgeeks.org/maximum-size-sub-matrix-with-all-1s-in-a-binary-matrix/
//Author- Sajal Agrawal
//sajal.agrawal1997@gmail.com
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define MOD 1000000... |
2b3f053fcc533118f688330710092d2271315fae | 7c93cfc7b98995f580eed0f9e920ff2a9da8d4bc | /Playground/SimPhotonStudies.cxx | 250f76560b21872ced3eff56824ef725accebfe8 | [] | no_license | davidc1/CaraTool | 0d8f09b18af07b55bdf930e70a96349c6fa063dc | 3e88c5b7f66d771a9160b296b275e23c9c5c681e | refs/heads/master | 2021-01-19T01:38:50.199022 | 2017-12-14T18:13:40 | 2017-12-14T18:13:40 | 33,445,761 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,506 | cxx | SimPhotonStudies.cxx | #ifndef LARLITE_SIMPHOTONSTUDIES_CXX
#define LARLITE_SIMPHOTONSTUDIES_CXX
#include "SimPhotonStudies.h"
#include "DataFormat/simphotons.h"
#include "DataFormat/simch.h"
#include "DataFormat/mctrack.h"
#include "DataFormat/mcshower.h"
namespace larlite {
bool SimPhotonStudies::initialize() {
if (_tree) delete ... |
8254ea56508b5b6f537de545a53b0a2175265c56 | 3a495c2c5c2f821fe260a412f994566012df4769 | /C++/2225.cpp | 31f6cde7177900a77eb3dc623c558525dca7366a | [] | no_license | seohyoj55/Baekjoon | 796a0846e9c5af91d8147930fd285c3d17d3ff48 | 4b1b467e6497e0f16c431b43443dfc4d76bcb49d | refs/heads/master | 2021-07-12T14:18:40.468767 | 2020-07-15T11:39:19 | 2020-07-15T11:39:19 | 174,791,625 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 428 | cpp | 2225.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <algorithm>
using namespace std;
long long d[201][201];
int dp(int N, int K) {
if (K == 1)
return d[N][K] = 1;
if (K == 2)
return d[N][K] = N + 1;
if (d[N][K] != 0)
return d[N][K];
for (int i = 0; i < N; i++)
d[N][K] += dp(N - i, K - 1);
d[N][... |
ff5b3415e43006c442d6e56c5a8ebd0a4bccbc0d | ca170d96a960e95a7822eb69c65179898a601329 | /3rd/fltk/src/CheckButton.cxx | 94bd53e0f15f7ccd84ce77661d730eb2645a0d45 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"LGPL-2.0-only"
] | permissive | sgumhold/cgv | fbd67e9612d4380714467d161ce264cf8c544b96 | cd1eb14564280f12bac35d6603ec2bfe6016faed | refs/heads/master | 2023-08-17T02:30:27.528703 | 2023-01-04T12:50:38 | 2023-01-04T12:50:38 | 95,436,980 | 17 | 29 | BSD-3-Clause | 2023-04-20T20:54:52 | 2017-06-26T10:49:07 | C++ | UTF-8 | C++ | false | false | 3,105 | cxx | CheckButton.cxx | //
// "$Id: CheckButton.cxx 6141 2008-07-13 06:41:56Z spitzak $"
//
// Copyright 1998-2006 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// ver... |
bee21680c186b3de675b37c2f2d92973a1015d0a | 98f7dcefc3ae8549939bd42b07b083fe1822f3ea | /DatalogProgram.h | 5d3a1dd820eb33f915fbd6bbc1120b674e4e8f2e | [] | no_license | andresmatos2000/project5 | a1701c8a81d5f7e583d1e802058cfcad3f3fae05 | 313c4bdd14ddd2fdb09b70d600ec7866dbc7a42d | refs/heads/main | 2023-06-29T00:03:18.245889 | 2021-08-02T17:14:30 | 2021-08-02T17:14:30 | 388,567,091 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,242 | h | DatalogProgram.h | //
// Created by munch on 7/3/2021.
//
#ifndef PROJECT1_DATALOGPROGRAM_H
#define PROJECT1_DATALOGPROGRAM_H
#include "Predicate.h"
#include "Parameter.h"
#include "Rule.h"
#include <vector>
#include <set>
class DatalogProgram{
private:
public:
std::vector<Predicate*> Schemes;
std::vector<Predicate*> Facts;
... |
08dd20353b7efb7545936175b3c98dd6ce67d528 | 753b12c79a61a4b903453b8b73249661dd7247fe | /opencvhelper.cpp | 7ed271fd3aa84c74ae1ae4193c987c22bf7dfb3d | [] | no_license | sheMnapion/Opencv-Qt-Image-Processor | 4697ad24121c9bdf0ab56f98d4c71741b0c34431 | 6f444cc32c662e162b43a90e25f2eb0d9e131a08 | refs/heads/master | 2020-03-28T08:00:14.183599 | 2018-09-26T15:29:28 | 2018-09-26T15:29:28 | 147,938,246 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,497 | cpp | opencvhelper.cpp | #include "opencvhelper.h"
#include "mymainwindow.h"
#include <QDebug>
#include <QString>
uchar *pixelColor(Mat &img,int x,int y)
{
if(x>img.rows||y>img.cols||x<0||y<0){
cout<<"Invalid position!!!"<<endl;
return NULL;
}
int channelNumber=img.channels();
assert(channelNumber>=1);
ucha... |
01250ff7f8f648b7cceb9ce7cb517b109ac53da1 | 2400447effade918f9962578d18365889db75e2d | /SinglyLinkedList/Source.cpp | 7ea9707d1f6b30c7f9ee8311dd233e5f3b620c62 | [] | no_license | bjoonly/SinglyLinkedList | fb2f451ebb69360d51a1645d7a0018003c8b2543 | 7280875d52999b74bce2584d74ec62859cad2e75 | refs/heads/master | 2022-11-18T09:08:40.186807 | 2020-06-27T16:31:50 | 2020-06-27T16:32:38 | 275,006,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,402 | cpp | Source.cpp | #include"List.h"
#include"StackList.h"
int main(){
cout << "Singly linked list:\nCreate list:\nAdd to head:\n";
List<int>l1;
l1.AddToHead(12);
l1.Print();
l1.AddToHead(17);
l1.Print();
cout << "\nAdd to tail:\n";
l1.AddToTail(77);
l1.Print();
l1.AddToTail(55);
l1.Print();
cout << "\nAdd to position:\n";
l... |
724a4a47a1fab2b445bd32a20b557d9aa783d580 | 39689c7df24cb5df4155ccb6b2303cd730d6c949 | /14649.cpp | a1cacb9df07d5e559b6b10d9cf03a8ce3f4b43c2 | [] | no_license | kisang0365/baekjoonAlgorithm | 7f154cfa3dd2a4f50112061973cd2914acd2c9aa | 781e8473f158488cf2cab8cbba8800c0102271ac | refs/heads/master | 2021-01-23T03:59:16.446254 | 2017-10-27T08:55:09 | 2017-10-27T08:55:09 | 86,140,982 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 724 | cpp | 14649.cpp | /*
* 14649.cpp
*
* Created on: 2017. 7. 23.
* Author: chokisang
*/
#include<iostream>
using namespace std;
int main(){
double money;
cin >> money;
int Rock[101] = {0, };
int N;
cin >> N;
for(int i=0; i<N; i++){
int number;
char d;
cin >> number >> d;
if(d == 'R'){
for(int a=number+1... |
069c5480d6d982979356b805677a4bd70c788091 | 9f9266a40a869e34c8627f66d0ef05ec25c40236 | /AnvilEldorado/Source/Game/UI/UIImpl.cpp | 73e8beb5059b43a23fd8c078f1ebc7e7c364290e | [
"MIT"
] | permissive | AnvilOnline/AnvilClient | b2d6273de7c1f7d436f939e19948edf2c69631da | 9b7751d9583d7221fd9c9f1b864f27e7ff9fcf79 | refs/heads/development | 2020-04-13T22:12:16.638751 | 2017-04-22T17:22:10 | 2017-04-22T17:22:10 | 44,775,425 | 57 | 23 | null | 2017-04-22T17:22:10 | 2015-10-22T21:53:19 | C++ | UTF-8 | C++ | false | false | 969 | cpp | UIImpl.cpp | #include "UIImpl.hpp"
#include "Hooks.hpp"
using namespace AnvilEldorado::Game::UI;
bool UIImpl::Init()
{
m_Hooks = std::make_shared<UI::Hooks>();
if (!m_Hooks->Init())
return false;
return true;
}
const auto UI_Alloc = reinterpret_cast<void *(__cdecl *)(int32_t)>(0xAB4ED0);
const auto UI_OpenDialogById = rein... |
98652abd6387351846b84c604dbff7c8df48797e | 1ddeb3857ee629e950dc930b679ffc05c684d562 | /CommunicationModule/FC_ESP8266_WiFiComm.h | a4d84e0d86dd3bc9ea4518f17f8e0a6daae58a36 | [] | no_license | JanWielgus/STM_FlightController | 5f1c51a6fe5eea31a162a7fcb12121aa94ded36e | 03b84d3523a03ddff387ce6d1ca1c530f5a74167 | refs/heads/master | 2021-07-12T00:44:36.291868 | 2020-06-06T22:26:53 | 2020-06-06T22:26:53 | 142,678,917 | 1 | 0 | null | 2020-06-05T11:29:56 | 2018-07-28T13:20:07 | C++ | UTF-8 | C++ | false | false | 1,799 | h | FC_ESP8266_WiFiComm.h | // FC_ESP8266_WiFiComm.h
//
// Author: Jan Wielgus
// Created: 04.06.2020
//
#ifndef _FC_ESP8266_WIFICOMM_h
#define _FC_ESP8266_WIFICOMM_h
#include "arduino.h"
#include <Arduino.h>
#include <DataBuffer.h>
#include <IPacketTransceiver.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
class FC_ESP8266_WiFiComm : pub... |
3c28c1c4343d03bfac016df9f6a44fcaf087f5f7 | db666b5c6b5381c55c716f95818a7ecc241d59c7 | /C++/4-medianOfTwoSortedArrays.cpp | 674b6769f50ed2720a95eab2cacb5dc0fc0e10b9 | [] | no_license | SaberDa/LeetCode | ed5ea145ff5baaf28ed104bb08046ff9d5275129 | 7dc681a2124fb9e2190d0ab37bf0965736bb52db | refs/heads/master | 2023-06-25T09:16:14.521110 | 2021-07-26T21:58:33 | 2021-07-26T21:58:33 | 234,479,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,878 | cpp | 4-medianOfTwoSortedArrays.cpp | #include <iostream>
#include <vector>
using namespace std;
double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2) {
int m = nums1.size();
int n = nums2.size();
if (m > n) {
return findMedianSortedArrays(nums2, nums1);
}
if (m == 0) {
if (n & 1 == 1) {
ret... |
ac01516b308d8f265b20d09d34406b5303f04a1c | c78f29e9f1fbdaa2e8fcae5dfebb364d325bb818 | /src/kmeans/kmeans_main.cpp | ce3432bd3c0014a88ec93557ade0a671732e66f1 | [
"MIT"
] | permissive | ivanzamanov/kmeans | 8cac332d3292753be08d69baca0b0231413a8eb6 | 5b24fb7549b05ee82a8e5081a9194e3c61ed9da5 | refs/heads/master | 2021-01-22T00:10:22.601385 | 2014-02-12T01:33:49 | 2014-02-12T01:33:49 | 16,419,252 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,866 | cpp | kmeans_main.cpp | #include<stdio.h>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<math.h>
#include<sys/stat.h>
#include<sys/types.h>
#include<dirent.h>
#include<unistd.h>
#include<fcntl.h>
#include"ptree.h"
#include"hash.h"
#include"list.h"
#include"kmeans.h"
void save(list<article_entry*> &entries, hash<double> &h, c... |
bb4720e0ce9981ad531246dc0f460f9b1a7702c9 | 1885ce333f6980ab6aad764b3f8caf42094d9f7d | /test/e2e/test_master/podofo/base/PdfEncodingFactory.h | 8b5e1551ff4ca1fc355fa1b0eaa92d472e25703c | [
"MIT"
] | permissive | satya-das/cppparser | 1dbccdeed4287c36c61edc30190c82de447e415b | f9a4cfac1a3af7286332056d7c661d86b6c35eb3 | refs/heads/master | 2023-07-06T00:55:23.382303 | 2022-10-03T19:40:05 | 2022-10-03T19:40:05 | 16,642,636 | 194 | 26 | MIT | 2023-06-26T13:44:32 | 2014-02-08T12:20:01 | C++ | UTF-8 | C++ | false | false | 8,444 | h | PdfEncodingFactory.h | /***************************************************************************
* Copyright (C) 2008 by Dominik Seichter *
* domseichter@web.de *
* *
* This pr... |
fbed2078ba32b9a22647029c691d47e35d2d6068 | 906784701763ff93539eff9c15b43dbbdabc8046 | /main/page19.h | 214f4fcb07c70ace146598c34ff67d55e8fddf2b | [] | no_license | sandeep123patel/Tao | f964f1a36712017abcb1c76223602444cd23efff | 8dfbca53362582e26afe7d5fa554db93a7c6cd74 | refs/heads/master | 2021-01-20T10:05:33.396743 | 2017-12-28T19:06:50 | 2017-12-28T19:06:50 | 101,622,044 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251 | h | page19.h | #ifndef PAGE19_H
#define PAGE19_H
#include <QDialog>
namespace Ui {
class page19;
}
class page19 : public QDialog
{
Q_OBJECT
public:
explicit page19(QWidget *parent = 0);
~page19();
private:
Ui::page19 *ui;
};
#endif // PAGE19_H
|
4c6a781cdb0f4513ced6ad9fcd0f918eb39def8e | a406aea9ba5bf9f961263ea80b48dd0475a7b82e | /12_1StrBlob/StrBlobPtr.hpp | 660559018d55be1cb76126eeb37e8d0676ad2337 | [] | no_license | coder-wpt/Cppprimer_Codes | 9b9c82ef642075f3767934f7a48fb8c5384f4227 | 19e71707fbb6dfa4fa35e938ddb6132db44719b0 | refs/heads/master | 2023-02-15T10:27:02.681395 | 2021-01-16T08:20:08 | 2021-01-16T08:20:08 | 311,896,540 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | hpp | StrBlobPtr.hpp | #ifndef STRBLOBPTR_HPP
#define STRBLOBPTR_HPP
#include "StrBlob.hpp"
#include <vector>
#include <string>
#include <iostream>
#include <memory>
class StrBlobPtr
{
public:
StrBlobPtr():curr(0){}
StrBlobPtr(StrBlob & a,std::size_t sz=0):wptr(a.data),curr(sz){}
std::string& deref() const;
StrBlobPtr& invr(... |
6394908e671a5b458981e461144745c59bbaafc7 | a477fd0aca844fa3f2d391d53bec9fa424e30a9d | /wxChess/ChessPanel.h | f2e715ac5fbd60b5099eea33070c9be25b727442 | [] | no_license | ChristianPao/wxChess | 878a58b05d3592d1256d78a7380ae5b108e0d05a | 68f9d8f5c80d8bf721a27190fe827221d62eb16b | refs/heads/master | 2022-12-22T14:46:38.570148 | 2020-09-27T20:06:45 | 2020-09-27T20:06:45 | 282,753,434 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 537 | h | ChessPanel.h | #pragma once
#include <wx/wx.h>
#include "Board.h"
#include "Pieces.h"
#include <wx/graphics.h>
class ChessPanel : public wxPanel
{
public:
ChessPanel(wxFrame *parent, Board *board);
private:
void OnPaint(wxPaintEvent& event);
void OnLeftMouseDown(wxMouseEvent& event);
void clearBuffer(wxGraphicsContext *gc);
vo... |
11f71b64dbde3f35fad6b24918be5991a9549a27 | bb9df1b69c2f855a0a094f6bc71c671a70b9da36 | /leetcode/p083-remove_duplicates_from_sorted_list.cpp | 4de7a1d4752b1dfb90274f2d9545d71afe20bd5e | [] | no_license | cjin/exercises | 267c0876946c8afebdb5571810de50f3296d590f | 9207ae241648e611c4bfe0ae7ac383b31ff471f6 | refs/heads/master | 2021-06-05T12:10:39.259668 | 2015-08-25T03:59:41 | 2015-08-25T03:59:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,240 | cpp | p083-remove_duplicates_from_sorted_list.cpp | /*
83
Remove Duplicates from Sorted List
https://leetcode.com/problems/remove-duplicates-from-sorted-list/
Given a sorted linked list, delete all duplicates such that each element
appear only once.
For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3, return 1->2->3.
(EASY) Linked List
*/
/*
Use a curren... |
22ba15305e6d6cf58d00d1ba2b8efd7a35ab8065 | a899a86b1d18cd252fe2acc9ae13b4c146e2747b | /core/tests/assert/compilation/assert_tu_always_and_disable_always.cpp | d318b3cbe1c98124c7bdf94904b2ab309a096000 | [
"MIT"
] | permissive | BartSiwek/Gris | 5ca5b8f40b681c08e02d83fa4c57e71b4f46ce2d | 4521c10dad31b5ffb320a38d7c4c34ffae3b3d22 | refs/heads/master | 2023-04-20T11:23:51.076848 | 2021-05-05T23:23:43 | 2021-05-05T23:23:43 | 166,608,215 | 0 | 0 | MIT | 2021-05-05T23:23:44 | 2019-01-20T00:33:37 | C++ | UTF-8 | C++ | false | false | 120 | cpp | assert_tu_always_and_disable_always.cpp | #define GRIS_TU_MODE_ALWAYS
#define GRIS_TU_MODE_DISABLE_ALWAYS
#include <gris/assert.h>
int main()
{
return 0;
}
|
eb2b16dcc5480b1bc0c86e4ce60dbfb800ccc673 | fcddfe074fbd7f02f28a6823aa6b6610324739c9 | /src/DOM/NodeList.cxx | 302e56ae96b30967917a51d580db1c9465a75ce5 | [] | no_license | sigsegv42/QuantumXML | 3e36b126327731634ddc0240bcb0b0012a1ca333 | f98a9beaa4c5228460fde8218e4e009c3751f41a | refs/heads/master | 2016-09-06T21:54:24.699216 | 2011-11-05T05:46:23 | 2011-11-05T05:46:23 | 794,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 430 | cxx | NodeList.cxx | #include "NodeList.h"
#include "DOMException.h"
using namespace DOM;
boost::shared_ptr<Node> NodeList::item(unsigned long index) const
{
if (index >= _nodes.size())
{
DOMException ex(INDEX_SIZE_ERR);
throw ex;
}
return _nodes[index];
}
unsigned long NodeList::length(void) const
{
return static_cast<unsigne... |
075d22bccce3b3f98fed969b093408693178d548 | 1428039f4841e31b5f5a6acdcf23970f78163b42 | /Android/graphics/BitmapFactory.h | 01ce090b12cb015a15b65532fceb6046dd76930c | [] | no_license | Shymae/androidpp | 6b0dc62223b0574e02424b307de2050109a4c08a | 5fd587157232d1d92bcc9402c0b9acfb5e65034b | refs/heads/master | 2021-05-11T04:04:37.821087 | 2014-02-20T21:56:57 | 2014-02-20T21:56:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,022 | h | BitmapFactory.h | //
// BitmapFactory.h
// cocos2dx
//
// Created by Saul Howard on 11/13/13.
// Copyright (c) 2013 cocos2d-x. All rights reserved.
//
#ifndef cocos2dx_BitmapFactory_h
#define cocos2dx_BitmapFactory_h
#include "AndroidMacros.h"
#include "cocos2d.h"
#include "Android/graphics/Bitmap.h"
#include <SkImageDecoder.h>... |
b8aff27c9f3d1651d38bc3bbbe936ac1652dc892 | c67cb288cfe0fae0e30138124c836663ae2a7a0c | /week4/exercise3/car.cpp | 1711db92405ccdf69f58325c3524f2299eaeaec7 | [] | no_license | drcox23/cs162 | 287dc89922bb58413a9629ecdfd0862ac8b20fe6 | 2a62d60e1dc78e45b358f659adaaefc0942b7fd3 | refs/heads/master | 2023-01-22T18:07:44.235369 | 2020-12-08T01:19:34 | 2020-12-08T01:19:34 | 298,374,324 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,104 | cpp | car.cpp | // Douglas Cox
// Week 3, Exercise 2
#include <iostream>
#include <cstring>
#include "car.h"
using namespace std;
const char *Car::getMake()
{
return make;
}
const char *Car::getModel()
{
return model;
}
int Car::getYear()
{
return year;
}
void Car::setMake(const char *xmake)
{
if (make != NULL)
{
d... |
778c1b4216452f6301e6469f798fd9dab283c82d | 72421c5016bd88e1457bc2573fcb14cf80da55ca | /src/planner/planner.cc | 9b4a22cbe4d5dd282319a731c56d2a5d2485bdaa | [] | no_license | jakeware/uwp | 01a2f35bae5051e30a7959905e415bb8164c122c | 2d1cfee259bbb03d802a7472df22bb4e53d272ab | refs/heads/master | 2021-06-29T18:24:02.040147 | 2017-09-17T20:55:42 | 2017-09-17T20:55:42 | 103,861,136 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36,269 | cc | planner.cc | // Copyright 2015 Jake Ware
// c system includes
// cpp system includes
// external includes
// project includes
#include "planner/planner.h"
Planner::Planner(FlowData * W, App * app) {
if (!app->quiet && app->verbose) {
fprintf(stderr, "Starting planner...\n");
}
initMap(W, app);
if (!app->test_sg) ... |
73de906dd2e9bd726441900812002772b54d0b49 | d619b3a4bd27f4b2af552490fa4d5af07e4d6514 | /src/codigo/TP taller/TP taller/Parser/yaml/ParserYaml.h | 6756b44ae255466a15b6be2db2e6079bd023c549 | [] | no_license | matiduarte/tp-taller-dkt | 1a54cc0a701590dd555c0534479a82209521f694 | cb54ca800c01c7a3347f306a6f324c48504ed0bd | refs/heads/master | 2020-05-16T01:57:01.919564 | 2014-06-20T19:50:02 | 2014-06-20T19:50:02 | 32,113,268 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,011 | h | ParserYaml.h | #ifndef __YAMLPARSER_H__
#define __YAMLPARSER_H__
#include "yaml-cpp/yaml.h"
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <valarray>
#include <algorithm>
#include "../../constantes.h"
#include "../../Logger/Logger.h"
#include <time.h>
#include<windows.h>
using nam... |
d3578120ee058a3a0024e28b5c927490a0314455 | a6bfdf4d2dd1ea4ae285215c651c2b64479b6b6a | /include/boost/simd/function/interleave_odd.hpp | 13e19ce0852925f0a2ed07f7a8103fa1a84aa729 | [
"BSL-1.0"
] | permissive | jeffamstutz/boost.simd | fb62210c30680c3cb2ffcc8ed80f8a0050f675fd | 8afe9673c2a806976a77bc8bbca4cb1116a710cb | refs/heads/develop | 2021-01-13T04:06:02.762442 | 2017-01-05T02:56:52 | 2017-01-06T16:11:47 | 77,879,665 | 6 | 1 | null | 2017-01-03T03:08:57 | 2017-01-03T03:08:57 | null | UTF-8 | C++ | false | false | 1,124 | hpp | interleave_odd.hpp | //==================================================================================================
/**
Copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
**/
//====================================... |
8e9b7c9b511f715cf7cffee50d2bd56c1669edb2 | cbcba10c1d313c909297d875a1a1621d07b35d78 | /11Jan2020/demo2.cpp | 37110e099be4f1fe3875d4fdf9129cda89658595 | [] | no_license | vikrant911998/CPP_batch_dec | 1faf7f48b6a5fd741de3ab092b2be5085dbe8a92 | 3c90c6946869d29a5fb6c3afd5aa901b2b718a2c | refs/heads/master | 2020-12-02T03:11:24.246083 | 2020-02-23T08:59:15 | 2020-02-23T08:59:15 | 230,867,869 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 543 | cpp | demo2.cpp | #include<iostream>
using namespace std;
class SimpleInterest{
int principal;
float rate;
int time;
float simple;
public:
void input(){
cout<<"Enter the principal ,rate, time"<<endl;
cin>>principal>>rate>>time;
}
void si(){
simple = (prin... |
7ba18c08e143331da552f2706890a98c4713f78a | b2a7f5eb3e404aa867b6cf9bb2c68f1324abc2c3 | /Simulado 02/Exer 1.2.cpp | 0200284d263b4210e103ccd863231639b868fdda | [] | no_license | Scrowszinho/C | 34ee7d1cacf64dd267529ce7db44f67cd2fab528 | 60fe7a8938075cd4170548e569785fdd1e354914 | refs/heads/master | 2021-07-16T04:37:27.738950 | 2020-10-19T13:56:48 | 2020-10-19T13:56:48 | 218,769,109 | 4 | 1 | null | 2020-10-19T13:56:49 | 2019-10-31T13:11:16 | C++ | ISO-8859-1 | C++ | false | false | 589 | cpp | Exer 1.2.cpp | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include<locale.h>
main() {
setlocale(LC_ALL,"");
int i, b = 0,c;
float o1 = 0,o2 = 0,o3 = 0;
float m1 = 0, m2 = 0,m3 = 0;
char p;
for(i = 0; i<=45; i++){
printf("1- Santa Maria, 2- Pinta e 3 - Nina: ");
scanf("%i", &c);
printf("M- Matutino, V- Vespertino e N - N... |
efe002a14e771d35169f413615aa0b32aada7255 | 4c544bb3b7f8a06edc1b61da50c8c7d041a15896 | /leetcode-cpp/LongestNiceSubstring_1763.cpp | 2e5c11171fc7fa56f506eded3cdc8a1632f8cd1a | [
"Apache-2.0"
] | permissive | emacslisp/cpp | fb5385d4008ebb8367da93427474b0b118651d54 | 29beeead4fb385a3702e0022ebdac9608869877d | refs/heads/master | 2023-04-12T05:42:25.022888 | 2023-03-11T14:30:09 | 2023-03-11T14:30:09 | 97,773,677 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,664 | cpp | LongestNiceSubstring_1763.cpp | #include <vector>
#include <iostream>
#include <climits>
#include <algorithm>
#include <queue>
#include <stack>
#include <map>
#include <math.h>
using namespace std;
#define ll long long
class Solution {
public:
string longestNiceSubstring(string s) {
string result ="";
if(s.size() < 2) return res... |
45620d8241ddfd6bbd29f090acbda6e92400d862 | 13864263b42c3582e5505e1ad15259aafc55cd52 | /Bishop.h | 19ca41f924fd2b473a9e0a6409876d3834571e3b | [] | no_license | JermSmith/ChessGame2 | 8421cf937409af9f7ab0d89a98cf56c1e9e9a0ef | 5f59886786701aa3e63f9a1d9f35e570f65f82b9 | refs/heads/August-28/17-Restructure | 2021-06-29T16:12:53.506612 | 2018-04-18T07:35:05 | 2018-04-18T07:35:05 | 94,967,130 | 0 | 0 | null | 2017-09-28T06:44:54 | 2017-06-21T05:42:48 | C++ | UTF-8 | C++ | false | false | 162 | h | Bishop.h | #pragma once
#include "Piece.h"
class CBishop : public CPiece
{
public:
CBishop(EColour); // constructor
virtual void calcDestinations(CBoard*);
};
|
18c93d99a81489e1bae5690144a93d22d3b6715d | fbe68d84e97262d6d26dd65c704a7b50af2b3943 | /third_party/virtualbox/src/VBox/Runtime/common/ldr/ldrEx.cpp | 0686986209b0519710e853b3995acb172b54d2f1 | [
"MIT",
"GPL-2.0-only",
"LicenseRef-scancode-unknown-license-reference",
"CDDL-1.0",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-1.0-or-later",
"LGPL-2.1-or-later",
"GPL-2.0-or-later",
"MPL-1.0",
"LicenseRef-scancode-generic-exception",
"Apache-2.0",
"OpenSSL"
] | permissive | thalium/icebox | c4e6573f2b4f0973b6c7bb0bf068fe9e795fdcfb | 6f78952d58da52ea4f0e55b2ab297f28e80c1160 | refs/heads/master | 2022-08-14T00:19:36.984579 | 2022-02-22T13:10:31 | 2022-02-22T13:10:31 | 190,019,914 | 585 | 109 | MIT | 2022-01-13T20:58:15 | 2019-06-03T14:18:12 | C++ | UTF-8 | C++ | false | false | 27,934 | cpp | ldrEx.cpp | /* $Id: ldrEx.cpp $ */
/** @file
* IPRT - Binary Image Loader, Extended Features.
*/
/*
* Copyright (C) 2006-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify i... |
dc6ee9fb3523047f7b60cba28023ef70221f3e02 | 31745b176ee0d30f47fb6cbdf0e9c621d104d441 | /Library/Include/Cylinder.hpp | 3f4cfed18e65cc9dd9967f3eb808d78b28eeb283 | [] | no_license | BlenderCN-Org/GraphicalMiller | 8406dcc900a00c7457ebe1f2adcc59c1e2de1bcc | 59acabb386e462809d7b50b1250df2be53404570 | refs/heads/master | 2020-05-27T08:23:53.923312 | 2017-02-21T04:54:11 | 2017-02-21T04:54:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,791 | hpp | Cylinder.hpp | //***************************************************************************//
// Cylinder Class Interface
//
// Created: May 24, 2006
// By: Jeremy Michael Miller
//
// Copyright (c) 2016-2016 Jeremy Michael Miller.
// Author: = "Jeremy Michael Miller"
// Copyright: = "Copyright 2005-2016, Graphical Miller, All rig... |
1a7dd4ab832bc192d0c872c18fa1c5f1efd7d8f2 | df30714101a14b52499a8a6bafdf5f3ddb9b77cb | /sonicball/sonicball/Scene/TitleScene.h | 7a094310e51d61b308d1e05cf99c9febf0381eac | [
"MIT"
] | permissive | nomissbowling/game_samples | 3eea4ec84cf63e90554d7ec314abc891db0d8370 | 9acfb3101d84f65a8be5b9846bd4764e822baf5f | refs/heads/master | 2022-02-10T19:12:15.385892 | 2019-06-19T00:52:32 | 2019-06-19T00:52:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 941 | h | TitleScene.h | #pragma once
#include "Scene.h"
#include"../Geometry.h"
class Input;
class TitleScene final:
public Scene
{
private:
struct ImgInfo {
int handle;
Size size;
void Load(const char*);
};
struct BgImgs{
ImgInfo mostbackImg;
ImgInfo farImg;
ImgInfo middleImg;
ImgInfo foregroundImg;
ImgInfo mostforeImg;
... |
0c0430f167b80d3e99b1167e79e1442f60dc63ad | 201e09cd2e8d2b2787dbd5d9ec71192c0d46edd1 | /Menu Searching.cpp | ec7de52e6f5d7a4b8caf860a40ebb6d8d699e2ac | [] | no_license | Haikallr/Program-Searching | 23077479b88e18e291db9d02ed90677c870ddcf4 | 30b83509f54031681ea2a74668014cde5cc02d90 | refs/heads/master | 2020-03-22T20:07:22.843297 | 2018-07-11T12:50:15 | 2018-07-11T12:50:15 | 140,574,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,620 | cpp | Menu Searching.cpp | #include <iostream>
#include <math.h>
using namespace std;
int main(){
int nilai[30];
int pil,i,n;
char menu;
cout<<"=========================================="<<endl;
cout<<"||\t PROGRAM SEDERHANA SEARCH \t||"<<endl;
cout<<"=========================================="<<endl;
cout<<"|| NAMA : Mo... |
a1593844261231eb962d033917ebdf3e74b3f4d3 | 30863e0df8ed5fc61c4b1c195582e4d33f20d297 | /Linked-list/10.cpp | 88c50bc309528e48871fa6d7264166a7b2793dc1 | [] | no_license | BUX404-git/DataStruct | 7e9c9b59c4fe7682643ed099e104696307b7a70d | 7a076ecf9a1a3e33cc11a8f4abb48b91778db922 | refs/heads/main | 2023-04-23T15:20:31.898657 | 2021-05-13T00:26:21 | 2021-05-13T00:26:21 | 364,550,889 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 866 | cpp | 10.cpp | /**
* 将一个带头结点的单链表A分解为两个带头结点的单链表A和B,
* 使得A表中含有原表中序号为奇数的元素,而B表中含有原表中序号为偶数的元素,
* 且保持相对顺序不变.
*
* 思路:for循环遍历链表,if语句判断序号奇偶.
*
* */
LinkList DisCreate_1(LinkList &A){
LinkList B = (LinkList)malloc(sizeof(LNode));
B->next = nullptr;//定义B链表的表头结点
LNode *ra = A,*rb = B;//ra和rb分别指向将创建的A表和B表的尾结点
LNo... |
e822ff8ce40c5f8a08174bc63aa5c4c8bdea5e58 | 08af5e857c3cd8e77b706a3d25f94edcd0836793 | /Password.cpp | a0b044a56d29e796d1f4b90c7e2e958f1ca2f898 | [] | no_license | swarooprth/password_validity_checker | 4fc6f66fead41555768ffb11d97f8775ed610588 | 5fa18d93114c4de48e4d86e77d7d9a3e1b044b0a | refs/heads/master | 2020-04-25T18:33:14.286519 | 2019-02-27T20:50:58 | 2019-02-27T20:50:58 | 172,988,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,248 | cpp | Password.cpp | #include<iostream>
using namespace std;
void Password_validate(string s)
{
int l=s.length();
if(l < 6)
{
cout<<"Failure Password must be at least 6 characters long.";
return;
}
if(l > 24)
{
cout<<"Failure Password must be at max 12 characters long.";
... |
a6626c1f3a6ac4e768642cfadc21bbe70ca683b1 | dee02119dba1b3c470fdefc32b3660a26e878cd0 | /rotation.ino | 7a6e744145a6281e1b26cc3c2bf32ff5904af4c5 | [] | no_license | vignanpogu/IOT | d3d2628920956cc8e752a00e1321070f5f228e97 | a5a2f40d89f374b0ccae54fc97d40c696c639ed3 | refs/heads/main | 2023-02-10T10:24:42.573102 | 2021-01-10T09:44:20 | 2021-01-10T09:44:20 | 328,348,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 135 | ino | rotation.ino |
void setup() {
pinMode(A0,INPUT);
Serial.begin(9600);
}
void loop() {
int angle = analogRead(A0);
Serial.println(angle);
}
|
66b4f1cf828a715396c8a6e14c7bdb7ba76179c9 | 8a1fa5f5045130c193aae3d810fd64acf14c2ce5 | /hw07_inheritance/Warrior.cpp | ce029a51c5c6db52fd551b7fcd2a4baeab4f4b13 | [] | no_license | EddieSource/oop_lab | 8959e4e3361eeb6ad5374ec2191a369cfbdf328c | f00253982276c6c5998904c01c51adbd1d455be3 | refs/heads/master | 2023-08-31T07:24:02.230656 | 2023-08-18T20:05:53 | 2023-08-18T20:05:53 | 367,999,905 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 311 | cpp | Warrior.cpp | //
// Warrior.cpp
// cs2124-hw7
//
// Created by Eddie Zhu on 2020/4/15.
// Copyright © 2020 EddieZ. All rights reserved.
//
#include <stdio.h>
#include "Warrior.h"
using namespace std;
namespace WarriorCraft {
Warrior::Warrior(const string& name, double strength) : Protector(name, strength){}
}
|
80fab47f09c95c2edb567a7041c45ee65db659a0 | dd826131205a23d707556f463ff6fec4df7dd8fb | /GameEngine/GDK/Skybox/Skybox.cpp | 40148e2fd234dc953e08dbf92a7b72c02f510631 | [] | no_license | Tahir98/GameEngine | 57494c3dbc17c84a6a2d7e4cc4f775f8c82e45ff | 427dd60165bfe7ad336d96e1005d39e5d436908b | refs/heads/master | 2023-04-19T03:40:43.783579 | 2021-04-25T10:37:14 | 2021-04-25T10:37:14 | 335,883,416 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,048 | cpp | Skybox.cpp | #pragma once
#include "Skybox.h"
#include "GL/glew.h"
#include <stdlib.h>
float proj[4][4];
Skybox::Skybox(){
textures = (Texture*)malloc(sizeof(Texture) * 6);
textures[0] = Texture("assets/skybox/miramar_ft.jpg");
textures[1] = Texture("assets/skybox/miramar_rt.jpg");
textures[2] = Texture("assets/skybox/mi... |
fd518260c86567029c1104cafa4cb635efbf85f5 | 67d4b73fa612c33ccd33ab7bd98ebf185ceb4fe2 | /DataMag/TagPathLink.h | eb8bb47efb674e747ac51c82ad1348298249058b | [
"Apache-2.0"
] | permissive | lvan100/DataMag | 5b13086f3fea8c6f6fa3c01bf0ede33b4e1fa0ea | a9995c3af1f08b62d6cb64c9dad43e083f790369 | refs/heads/master | 2020-12-25T17:25:47.013698 | 2016-08-10T09:07:50 | 2016-08-10T09:07:50 | 37,748,519 | 3 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,369 | h | TagPathLink.h | #pragma once
#include <vector>
#include <algorithm>
#include <functional>
using namespace std;
#include "HilitButton.h"
/**
* 反射自身的按钮点击事件
*/
typedef function<void(CMFCButton*)> ReflactClickEvent;
/**
* 链接路径控件的子按钮
*/
class CPathLinkButton : public CHilitButton
{
DECLARE_DYNAMIC(CPathLinkButton)
public:
CPathL... |
04c7cc78b74c766493bc9dffcad74220867cad04 | c79e45a4f65eda2a32368025739b218ea6f9d71f | /AMT830-0131_old/Screen_Main.h | c5145fc6e649b266892019166fa194cd6aed7569 | [] | no_license | ybs0111/AMT830 | d3c2ad6ae593ff16d7d4e8cc48908803f6752455 | 39791856ee2c6e17d24b9aa6a4434790c7dc2801 | refs/heads/master | 2020-04-06T04:42:59.512039 | 2017-08-11T03:40:44 | 2017-08-11T03:40:44 | 82,889,436 | 0 | 1 | null | null | null | null | UHC | C++ | false | false | 12,439 | h | Screen_Main.h | #if !defined(AFX_SCREEN_MAIN_H__7A483F1B_61FF_4EB9_B41D_251A637D6074__INCLUDED_)
#define AFX_SCREEN_MAIN_H__7A483F1B_61FF_4EB9_B41D_251A637D6074__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Screen_Main.h : header file
//
#include "Variable.h" // 전역 변수 정의 클래스 추가
#include "Public_Function.h... |
da70ad36236e2ea9d14c5c3395342cda2a1d1927 | cf7ae4ac2644daa52e0f7c5ae30c72b66d15fc7f | /LayoutEditor/LayoutEditorCore/Common/EditorCoreBase.cpp | 8b50ad2f11dbab52fbe11d1404680929fb831ec8 | [] | no_license | ZHOURUIH/GameEditor | 13cebb5037a46d1c414c944b4f0229b26d859fb5 | eb391bd8c2bec8976c29047183722f90d75af361 | refs/heads/master | 2023-08-21T10:56:59.318660 | 2023-08-10T16:33:40 | 2023-08-10T16:33:40 | 133,002,663 | 18 | 21 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | cpp | EditorCoreBase.cpp | #include "EditorCoreBase.h"
#include "EditorCoreRoot.h"
EditorCoreRoot* EditorCoreBase::mEditorCoreRoot = NULL;
CoreEventSystem* EditorCoreBase::mCoreEventSystem = NULL;
ECUndoManager* EditorCoreBase::mUndoManager = NULL;
ActionTreeEditorCore* EditorCoreBase::mActionTreeEditorCore = NULL;
ComponentEditorCore* EditorCo... |
3be71254a770fb0cf93e4a2145547896b3a52100 | ce9149fc317e62cc5c1cc68ec9c3813830eb3fbf | /color.h | bfcaa3b89e4c24f213f76fe197b82653024bc346 | [] | no_license | rasmusbonnedal/raytrace | 5c35abab6d1299c5e0b723f992e00b16806e26b6 | 30a8eec35717e2aedcbde93cdee1747c7b219527 | refs/heads/master | 2020-03-10T02:37:13.867232 | 2018-04-14T21:06:41 | 2018-04-14T21:06:41 | 129,140,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 532 | h | color.h | #pragma once
#include "vecmath.h"
#include <algorithm>
class Color8
{
public:
Color8(unsigned char r, unsigned char g, unsigned char b) : r(r), g(g), b(b)
{
}
unsigned char r, g, b;
};
class Color
{
public:
Color() {}
Color(const Vec3d& v) : r(v.x), g(v.y), b(v.z) {}
Color8 clamp() co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.