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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
61d6cf8d6c9a8a5764c1591fe64e6d44e825680f | c0dffa026eb98d46c9c48d54dc8fd33062667bb3 | /f9_os/inc/os/devices/stm32f7_uart.cpp | fbd0278bfb23ad2838ddcd11ad8d4bc12129859b | [
"Apache-2.0"
] | permissive | weimingtom/arm-cortex-v7-unix | 322b7f339a62a016393d5dba44b290116ff5d23b | cd499fa94d6ee6cd78a31387f3512d997335df52 | refs/heads/master | 2022-06-02T21:37:11.113487 | 2017-07-21T13:14:42 | 2017-07-21T13:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 450 | cpp | stm32f7_uart.cpp |
//#include "stm32f7_uart.hpp"
//UART_HandleTypeDef huart1;
//DMA_HandleTypeDef hdma_usart1_tx;
#if 0
int uartputc(int c) {
while(__HAL_UART_GET_FLAG(&huart1, UART_FLAG_TXE) == 0);
huart1.Instance->TDR = c & 0xFF;
while(__HAL_UART_GET_FLAG(&huart1, UART_FLAG_TC) == 0);
return c & 0xFF;
}
#endif
#if 0
static os::de... |
bc58de5dd2659d26a2df93cb77c1ace110935b0a | c92fd29132b276988a132f7e2887677e879f0ed7 | /Code/170222/Score.h | a59bf787c8d0098d9153f8d5ddd2ba54f315cfb7 | [] | no_license | Kucladell/Friseven | 3f199bc956bc692ac7a2e623cefd3e798fd65e08 | b1af0c7d2ab1f7da528ee384b01298347f594ce8 | refs/heads/master | 2020-09-26T19:06:00.001646 | 2017-03-01T04:27:08 | 2017-03-01T04:27:08 | 66,899,352 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | h | Score.h | #pragma once
#include <iomanip>
#include <iostream>
#include <fstream>
#include <string>
struct Score
{
std::string name;
int credit;
float grade;
std::string gradeText;
bool isMajor;
Score(std::string name, int credit, float grade, std::string gradetext, bool isMajor);
void Print();
void input(LinkedList<Sco... |
b92c5799ee1330dd417313c1d142e9278dfe2c79 | 7efaa0e97588a3c677b22e9e1220f72e37063e07 | /src/sst/elements/vanadis/inst/vgpr2fp.h | 8808e56c944653df9b63fdf3a690954ba64f1554 | [
"BSD-3-Clause"
] | permissive | amroawad2/sst-elements | 6e3e67e47fa5a891cdb3d68cc2d0728b9a1abcf2 | dd1bf1d32dd2b4800a92b93103e297224bcdb120 | refs/heads/master | 2021-06-25T20:53:03.966249 | 2020-12-21T02:10:35 | 2020-12-21T02:10:35 | 133,526,382 | 0 | 0 | NOASSERTION | 2019-05-09T15:33:43 | 2018-05-15T14:14:02 | C++ | UTF-8 | C++ | false | false | 3,004 | h | vgpr2fp.h |
#ifndef _H_VANADIS_GPR_2_FP
#define _H_VANADIS_GPR_2_FP
#include "inst/vinst.h"
#include "inst/vregfmt.h"
namespace SST {
namespace Vanadis {
class VanadisGPR2FPInstruction : public VanadisInstruction {
public:
VanadisGPR2FPInstruction(
const uint64_t addr,
const uint32_t hw_thr,
const VanadisDecoderOptions*... |
729bb6e8beacbe3a8c7926a09c043ae8472ccd23 | 36c00fe2afff4818c937e312ce0c6a79f35e2a77 | /7-kyu/see-you-next-happy-year-/c++/solution.cpp | 5ecf494cd8ad2c1b5ea1e125836a5459356518f1 | [] | no_license | p-lots/codewars | 0a67b6ee4c91180ff78c648421b9d2d64463ddc3 | 535faeee475c6b398124d6f5002b0e111406e8bb | refs/heads/master | 2023-08-23T22:14:33.635011 | 2023-08-23T13:30:37 | 2023-08-23T13:30:37 | 195,320,309 | 0 | 0 | null | 2023-05-09T19:25:50 | 2019-07-05T01:40:15 | Python | UTF-8 | C++ | false | false | 515 | cpp | solution.cpp | #include <vector>
bool isHappyYear(unsigned short int year)
{
std::vector<int> year_vec;
while (year > 0) {
year_vec.push_back(year % 10);
year /= 10;
}
for (const auto &n : year_vec) {
if (std::count(year_vec.begin(), year_vec.end(), n) > 1) return false;
}
... |
907ca9c52c3ec50ae10e68c3bc08402ac3ce7180 | b0037831a6dc021c1c9c67f2b0511d750f33a91e | /Project4/Project4/源.cpp | 07e22109f8baa399a035790cec1470bd96b9f49d | [] | no_license | 477918269/C-cpp | a01b47b55bb8b0b6d88f5efb8eda4925fe43cc95 | a2a1a435fe030bfc76ef8e960949aacbc84edf6c | refs/heads/master | 2022-03-03T23:20:34.542904 | 2019-10-13T15:05:05 | 2019-10-13T15:05:05 | 163,571,435 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 769 | cpp | 源.cpp | #include "stdio.h"
#include "stdlib.h"
void fun1(){
int *data = malloc(sizeof(int)* 4);
data[0] = 1;
data[1] = 2;
data[2] = 3;
data[3] = 4;
printf("%d\t%d\n", *data, *(data + 1));
}
void fun2(){
void *data = malloc(sizeof(int)* 4);
*(int*)(data + sizeof(int)* 0) = 1;
*(int*)(data + sizeof(int)* 1) = 2;
*(in... |
53056090d61d8a44f629bce35e8d68d5f864a5bc | 8e734cf429e5aeeef3a479da01ef9017204f8e60 | /Skystone/Components/Render/SpriteAnimator.h | 2e2f6a8210ce01d1b743f58f9c52faab894be616 | [] | no_license | kgwong/ProjectSkystone | e559f2dea5e4d4f5c9b2e4fd385e375d91e39a7e | dcf1970c36714464b7850ed74ecaf39f2a63d414 | refs/heads/master | 2021-01-21T13:52:35.712255 | 2016-06-04T06:59:29 | 2016-06-04T06:59:29 | 44,451,311 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 892 | h | SpriteAnimator.h | #ifndef SPRITE_ANIMATOR_H
#define SPRITE_ANIMATOR_H
#include "RenderComponent.h"
#include "Resources/SpriteSheet.h"
#include "GameTypes/Axis.h"
class SpriteRenderer;
class SpriteAnimator : public RenderComponent
{
public:
SpriteAnimator(GameObject& owner, SpriteRenderer* renderer);
virtual ~SpriteAnimator();
vi... |
1df7b28eb28fc3079f097a618cc310ebb243c216 | 08e506bfd24e05ff4f2c27d4e97ce98591a8954b | /poj/3183.cpp | 8d524a90e655c5e15ab7f35afbe9b71c8a2dd1b0 | [
"MIT"
] | permissive | 331072838/poj | 808c901eb402e669d14a05de93e75c25260f11b8 | 80cccc7287f23d33cde75b51a78a04bdb75408cb | refs/heads/master | 2021-09-19T16:07:15.386778 | 2018-07-29T09:14:29 | 2018-07-29T09:14:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 325 | cpp | 3183.cpp | #include<stdio.h>
int main()
{
int n,i,j,r,stump;
scanf("%d",&n);
r=0;
stump=0;
for (i=0;i<n;i++)
{
scanf("%d",&j);
if (j>stump)
r=0;
else {
if (r==0)
{
printf("%d\n",i);
r=1;
}
if (j==stump)
r=0;
}
stump=j;
}
if (r==0)
printf("%d\n",i);
return 0;... |
9dbca7cd1c8a1aab42dfbd5670bfe28e3d6e712f | 34c54b791e4c6843a7dae05716e1c91419b15677 | /Day26.cpp | 253ab52802253b2aa2b3cfef28cf41da9924cec1 | [] | no_license | semihalperenkayaalti/HackerRank30daysofcode | e9fec4be5c0bd0fab8fb8a0fd2a0f818c37dda16 | afb9c6e0bb84f82e459ff6e0120a1ad209b102e4 | refs/heads/master | 2020-06-07T09:13:41.264703 | 2019-06-26T21:19:57 | 2019-06-26T21:19:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 665 | cpp | Day26.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
int firstDay, firstMonth, firstYear, dueDay, dueMonth, dueYear;
cin >> firstDay >> firstMonth >> firstYe... |
e4356d650c7d9eaa4d1e056a2dcead4745b9587e | 8ebf4049ef5db02df19c978dabee3c53e5ef565c | /parser/src/slr.h | e25bc1bf4cd92056ff74005fd426582a04c8ae5c | [] | no_license | vicvon/crowbar | 9ab99eedb2c47b171e27f688e6c799abc2d63610 | 7fca7d2504bda95ae9bd40476b8258bd5377605e | refs/heads/master | 2021-01-01T04:01:38.622034 | 2017-03-07T03:11:52 | 2017-03-07T03:11:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,875 | h | slr.h | #ifndef SLR_H
#define SLR_H
#include <set>
#include <string>
#include <vector>
#include <map>
#include <stack>
#include <utility>
#include <iostream>
#include "bnf_rule.h"
#include "../../lexer/src/lex.h"
#include "../../lexer/src/util.h"
using namespace std;
namespace ENUM {
enum ActionType {
ACTION_SHIFT,
... |
f4aec3358182018b5cdd5654e86e844bf2fef812 | 7e9a73cf9e01b353945b53c91556536641a02137 | /tdutils/td/utils/port/detail/ThreadPthread.h | c86935b3e63b2f775a0911387e0ed07f1dac8e0e | [
"JSON",
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | tdlib/td | a3036bf50a834f68337f8dc451165d4dd474b6e1 | 470c36ceef780ff6189bbd8e2f889941ca828247 | refs/heads/master | 2023-09-04T01:37:21.754421 | 2023-08-24T09:21:04 | 2023-08-24T09:21:04 | 115,883,761 | 6,323 | 1,497 | BSL-1.0 | 2023-09-04T19:10:38 | 2017-12-31T20:23:47 | C++ | UTF-8 | C++ | false | false | 2,888 | h | ThreadPthread.h | //
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#include "td/utils/port/config.h"
#ifdef TD_TH... |
8c57a21b9db58d8110d8d70581340c44015bce3e | e79b9ca3529d77b63247b0d0d4f82f14ab85fc1f | /led_string/led_string.sdk/SDK/SDK_Export/oled_project/src/GraphicsDisplay.h | 0d458b51811c2792e53b1843689a1be062ed08d5 | [
"MIT"
] | permissive | SiaFahim/fpga | cb435e9f04147369f58f2e628fb2fe5399256ac7 | ab58ffc8b4bd1e520c69acd7a52070c28e2163d3 | refs/heads/master | 2021-01-23T01:35:28.310908 | 2014-04-02T22:21:34 | 2014-04-02T22:21:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | h | GraphicsDisplay.h | /*
* GraphicsDisplay.h
*
* Created on: Jan 5, 2014
* Author: DGronlund
*/
#ifndef GRAPHICSDISPLAY_H_
#define GRAPHICSDISPLAY_H_
class GraphicsDisplay {
private:
bool** pixels;
int width;
int height;
public:
GraphicsDisplay(int, int);
virtual ~GraphicsDisplay();
void pixelSet(int, int, bool);
void sp... |
6a4b8d9c2f448c6c0557f6b81c6083e8e7ac81fe | afde9a797303f0035df169868dd3fd12b54b0543 | /lib/builddrawlist.h | c20089fd5f41413342d6c13606c5b67339834c36 | [] | no_license | ninjapanzer/St-Vincent-College-Driving-Simulator-CS355-Fall | 6645b0ee95b9f250ff20f066920feddcc7a4f5a4 | 76e7b0ec901e27d7fe8716c30006cb08ad1b0467 | refs/heads/master | 2016-08-08T14:04:31.578867 | 2009-11-29T21:58:17 | 2009-11-29T21:58:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,501 | h | builddrawlist.h | //Author: Paul Scarrone
//Class to complete a draw list of objects from a single vector array
//Depends upon <iostream> "coordstructs.h" "linkedlist.h"
using namespace std;
//Creates a doubly linked list in the exact draw order of both sides of the road surface
class BuildDrawList: public CalculateNormals, public Par... |
7317864d5e6c2b47747f354c162060891671a17a | 867040dcc598170096799175c189583a7c891897 | /Hemautomation/hub_new/hub_new.ino | e6a3a36b943b2f40213622e1a08359651acf3337 | [] | no_license | sockur/ArduinoKod | f5eb6629515048edf65cc767ab4d3353d2e0357b | cc67e8becc3eccfabf49ab436a64de6883d7bd9f | refs/heads/master | 2021-01-10T03:36:15.182351 | 2015-12-09T00:38:04 | 2015-12-09T00:38:04 | 47,657,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,726 | ino | hub_new.ino | #include <VirtualWire.h>
#include <SPI.h>
#include <Ethernet.h>
#include <PubSubClient.h>
// Update these with values suitable for your network.
byte mac[] = { 0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x02 };
IPAddress server(192, 168, 1, 34);
EthernetClient ethClient;
PubSubClient mqttClient(ethClient);
float temp;
bool... |
ae5547866368ade37cd261dfd6e2165ac401d6a1 | bc1e0e56cd6cc337d4d60a1040d87c8634e4f99e | /src/map/map-sector-database-hashmap-impl.cpp | 413afb6179a8b9d65c2d0418e23e258c1c826d62 | [] | no_license | spacekitcat/isometric-sdl-demo | dfbda7e1806417fa7c85d030ca62939b9eaf4b10 | a1e3aefb0f6dd145e4804319660bdef73a4bfc98 | refs/heads/main | 2023-08-13T22:35:41.421884 | 2021-10-09T16:41:16 | 2021-10-09T16:41:16 | 380,589,963 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 430 | cpp | map-sector-database-hashmap-impl.cpp | #include "map-sector-database-hashmap-impl.hpp"
MapSectorDatabaseHashmapImpl::MapSectorDatabaseHashmapImpl() {}
MapSectorDatabaseHashmapImpl::~MapSectorDatabaseHashmapImpl() {}
void MapSectorDatabaseHashmapImpl::put(
std::string key, std::shared_ptr<IsometricTileMapSector> sector) {
_map[key] = sector;
}
std:... |
b8157aa81b8005a7570efbd240f10b32b974cf0e | 136ef215ae05f74d31dab2336979a94dfe960992 | /019-debouncing/019-debouncing-con-delay/019-debouncing1-delay.ino | c82dcbc9e7e14cfefcf2fc895eceb6b9b5a1c0bd | [] | no_license | zmaker/arduino_cookbook | 5ff4791ebce916e35060f2e9a7c26a014adeb26c | a972470c10f2c283d66aad8f389acf117a25f01e | refs/heads/master | 2023-08-30T21:08:28.290973 | 2023-08-28T11:14:41 | 2023-08-28T11:14:41 | 135,202,699 | 196 | 134 | null | 2020-05-27T17:53:02 | 2018-05-28T19:46:44 | C++ | UTF-8 | C++ | false | false | 150 | ino | 019-debouncing1-delay.ino | void setup() {
pinMode(7, INPUT);
Serial.begin(9600);
}
void loop() {
if (digitalRead(7)) {
delay(200);
Serial.println("B1");
}
}
|
008f790ac72389889c6086c7e9b469a613322ddc | ffff32a60cfbc310c51413cd4fb053a0672b382f | /renderer/primary_surface.cpp | 743862935f10b9e969996800a649413fa54c2c88 | [
"MIT"
] | permissive | jdmclark/jkgfxmod | 99f2c751d57d468dedc6d117c89e0091d31814e1 | 6612413810129ebeae2affeb956d0a5fdb41dd0e | refs/heads/master | 2022-08-20T11:55:24.079818 | 2021-07-19T06:30:29 | 2021-07-19T06:30:29 | 175,068,739 | 71 | 13 | MIT | 2022-07-15T03:58:07 | 2019-03-11T19:19:32 | C++ | UTF-8 | C++ | false | false | 1,623 | cpp | primary_surface.cpp | #include "primary_surface.hpp"
#include "base/log.hpp"
#include "common/error_reporter.hpp"
#include "dxguids.hpp"
#include "renderer.hpp"
jkgm::primary_surface::primary_surface(renderer *r)
: DirectDrawSurface_impl("primary")
, r(r)
{
}
ULONG WINAPI jkgm::primary_surface::AddRef()
{
// Primary surface is... |
93b43f59f294099897ddf9b47d420d31838cbb9b | a71e120698165b95c6c3f4cdb9b8ec1e5e118170 | /Validation/VstMathUtils/src/matrix.cc | d7b697570bc010b4d766cdf19c12fa31f667195e | [] | no_license | peiffer/usercode | 173d69b64e2a4f7082c9009f84336aa7c45f32c5 | 7558c340d4cda8ec5a5b00aabcf94d5b3591e178 | refs/heads/master | 2021-01-14T14:27:32.667867 | 2016-09-06T13:59:05 | 2016-09-06T13:59:05 | 57,212,842 | 0 | 0 | null | 2016-04-27T12:47:54 | 2016-04-27T12:47:54 | null | UTF-8 | C++ | false | false | 7,409 | cc | matrix.cc | /**********************************
Implementation of a simple matrix class
Bruce Knuteson 2003
**********************************/
#include "Validation/VstMathUtils/interface/matrix.hh"
#include <vector>
#include <iostream>
#include <iomanip>
#include <cmath>
#include <cassert>
using namespace std;
#ifdef __MAKECIN... |
36a4d91edc255d5ed533963e846f29e7bfc01013 | d9c3d703811620b58ad62be1ee30763d0cff859f | /Fade/Fade.ino | 17a1616213b710bf1b2705c545f2ab95c379c747 | [] | no_license | jackrayner/arduino-projects | 114b49ddb1ee1b7426996795dbf396d2af732a55 | 6d8e6ee05609d25f9405443dee491fdef91aecf7 | refs/heads/main | 2023-07-13T20:09:17.681110 | 2021-08-27T00:32:47 | 2021-08-27T00:32:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 987 | ino | Fade.ino | int red = 9;
int green = 11;
int blue = 10;
int brightness = 0;
int fadeAmount = 5;
void setup() {
// declare pin 9 to be an output:
pinMode(green, OUTPUT);
pinMode(red, OUTPUT);
pinMode(blue, OUTPUT);
}
colours = {red, green, blue, raspberry, cyan, magenta, yellow, white};
void loop() {
for colou... |
486319c34fc4434c5a11e98800d1aa54d506d7b0 | 97b606b776e41d6fe6860df59145736c528ae1a9 | /3ds/mesh/mesh3dsobject.h | 27e81131d713abb51085e11baea1b602fc7f1099 | [] | no_license | MORTAL2000/UniversityRacer | e982423bf61b78e2b7b87adb50ccacc06684fdce | 491eec5236a1e3da06b5d4879e7682d53f713c8c | refs/heads/master | 2021-04-28T22:04:25.703355 | 2011-12-13T08:21:52 | 2011-12-13T08:21:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,286 | h | mesh3dsobject.h | #ifndef MESH3DSOBJECT_H
#define MESH3DSOBJECT_H
#include <map>
#include <string>
#include <vector>
#include "../chunk/chunk.h"
struct Mesh3DSVertex
{
float x , y , z;
};
struct Mesh3DSTextureCoord
{
float u , v;
};
struct Mesh3DSFace
{
int a , b , c;
};
struct Mesh3DSMatrix
{
float m[4][4];
};
/***/
class Mesh3... |
88f9933f9546b43a666633a519305eb6bade1ba0 | b3a693cb2c15f95133876f74a640ec585b7a0f62 | /CB/LPU/Session10/dnf.cpp | 0270abd7e8275ebeaf97c035f529bb8f598ddf67 | [] | no_license | singhsanket143/CppCompetitiveRepository | 1a7651553ef69fa407d85d789c7c342f9a4bd8e9 | 6e69599ff57e3c9dce4c4d35e60c744f8837c516 | refs/heads/master | 2022-06-23T01:42:38.811581 | 2022-06-16T13:17:15 | 2022-06-16T13:17:15 | 138,698,312 | 349 | 148 | null | 2021-03-06T18:46:58 | 2018-06-26T07:06:16 | C++ | UTF-8 | C++ | false | false | 498 | cpp | dnf.cpp | #include <iostream>
using namespace std;
void dnf(int *arr, int n) {
int start = 0, mid = 0, end = n-1;
while(mid <= end) {
if(arr[mid]==1) {
mid++;
} else if(arr[mid] == 2) {
swap(arr[mid], arr[end]);
end--;
} else {
swap(arr[start], arr[mid]);
start++;
mid++;
}
}
}
int main(int argc, ch... |
f6a651826e8bd5760d86588b748405cd90f7cf49 | b0126a613e3d547adb00df65a137a37ace60a92f | /project/code/model/one element of db/source/Publication.cpp | 7bb6089714c2b6eccad994c4a438ea4cb1a8309d | [] | no_license | AJIOB/uni_courseWork_3 | df000bd349528e0ed4bd30b8113c14efe1dcbeeb | de921039da982b44cf978a8f397909f7c752f121 | refs/heads/master | 2021-01-17T09:03:18.139441 | 2017-06-21T09:41:05 | 2017-06-21T09:41:05 | 83,974,479 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,492 | cpp | Publication.cpp | #include "../headers/Publication.h"
#include "../../dbs/headers/PublicationDBClass.h"
std::ostream& OneElementOf::operator<<(std::ostream& s, const Publication& that)
{
s << "ISBN: " << that.cl_ISBN.GetAsString() << std::endl;
s << "Название издания: " << that.cl_name << std::endl;
s << "Авторы: " << that.cl_autho... |
2e7e9f12b68000ec56552041f5c89b7c5543021b | 35e4cd883280f94e2aa4be0be9b574292155c8b6 | /SearchRoute.cpp | c335d5678e95a3c9d2d34404d7ac574bc681c6b3 | [] | no_license | Harryx2019/Bus-Management-System | c40955005ff904d655042b1be67b4ee44da30ee8 | 467bf5ed5ab5c894b1ea42057cce6084b422ada2 | refs/heads/master | 2022-11-12T05:27:30.641076 | 2020-07-01T07:21:39 | 2020-07-01T07:21:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,197 | cpp | SearchRoute.cpp | #include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include "model.h"
#include "Stack.h"//广度优先搜素辅助栈结构
#include "LoadMapData.h"
#include "SearchBus.h"
#include "SearchStation.h"
#include "SearchRoute.h"
int SearchRoute(BusMap &Map)
{
system("cls");
char *startStation=(char *)malloc(sizeof(char)*20);
... |
cbfd772305477ae0018af25cd34ccdeff3117f37 | 8034a82dfb0987d22a84bafbb101e026481bb23a | /src/win/WebviewContainer.cpp | abaddf4427493f4766eb925769854b64e8ceef04 | [] | no_license | PatchLion/simple_share_image_library | a1a5100c08b81d382668531bacd64a8530767263 | 48804707188e3937379a143866a3a954111749d4 | refs/heads/master | 2021-06-11T10:16:42.994122 | 2017-01-12T12:29:50 | 2017-01-12T12:29:50 | 47,523,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,076 | cpp | WebviewContainer.cpp | #include "WebviewContainer.h"
#include <QtCore/QTimer>
#include "SharePublicFuncDefine.h"
#include "ShareMacroDefine.h"
#include <QtNetwork/QNetworkAccessManager>
#include <QtWebKitWidgets/QWebPage>
CWebviewContainer::CWebviewContainer(QWidget* pParent)
: QWebView(pParent)
{
connect(this, &QWebView::loadFinished, thi... |
d55cc156533bdcb26ff01cb31c4cb99fab2748b0 | 6e57bdc0a6cd18f9f546559875256c4570256c45 | /packages/apps/Bluetooth/jni/IUserManager.h | 2164d9aa5e53d0cef8a3e7552bc33063fe7e78b1 | [] | no_license | dongdong331/test | 969d6e945f7f21a5819cd1d5f536d12c552e825c | 2ba7bcea4f9d9715cbb1c4e69271f7b185a0786e | refs/heads/master | 2023-03-07T06:56:55.210503 | 2020-12-07T04:15:33 | 2020-12-07T04:15:33 | 134,398,935 | 2 | 1 | null | 2022-11-21T07:53:41 | 2018-05-22T10:26:42 | null | UTF-8 | C++ | false | false | 1,310 | h | IUserManager.h | /*
* Copyright (C) 2015 The Android Open Source Project
*
* 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 app... |
fd124202d992ca6bf56453fbf1f99632359601ce | 48b317e77e7f39d192a2bfd4958595976897439d | /code/Game/World/MessageDispatcher.cpp | b0ce2b05f0cccad2dadcfe10e7e797b013d996f4 | [] | no_license | Syrdni/AiBattle | 9292625e7608c2801d1239aaf6eff4e85c5832ab | 859eb2e1ddb214411a782cd6e255e82f61a7a803 | refs/heads/master | 2020-07-18T19:51:20.464896 | 2019-04-03T08:22:55 | 2019-04-03T08:22:55 | 206,303,058 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 692 | cpp | MessageDispatcher.cpp | #include "MessageDispatcher.h"
void MessageDispatcher::OnLoad()
{
localTick = 0;
}
void MessageDispatcher::DispatchMessage(const Ptr<Entity>& receiver, const Ptr<Message>& message, int delay)
{
if (delay <= 0)
{
receiver->OnReceiveMessage(message);
}
else
{
MessageContainer msgC;
msgC.message = message;
... |
98eadef8d6931398e6d74f49a3c20c7d297ae190 | 89a08cabcf3e87f0a0946597d94b8e5129ccb1ef | /MediaCaptureReader/MediaCaptureReader/MediaCaptureReader.Shared/WinRTBuffer.h | 7b25bbeb6d28b402a79a9bc314f901b6e1efd201 | [
"Apache-2.0"
] | permissive | AcropolisA/MediaReader | fda0baa9957a53c2b573e57757e27c40b2490165 | 07262c20d45b351f4a7c29919f6010b4950b7b16 | refs/heads/master | 2021-06-05T23:31:17.823575 | 2016-09-12T12:36:46 | 2016-09-12T12:36:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,037 | h | WinRTBuffer.h | #pragma once
namespace MediaCaptureReader
{
class WinRTBuffer WrlSealed : public MW::RuntimeClass <
MW::RuntimeClassFlags<MW::RuntimeClassType::WinRtClassicComMix>,
AWSS::IBuffer,
MW::CloakedIid<WSS::IBufferByteAccess>,
MW::FtmBase // if cross-process support is needed, replace with... |
0af25b4efc2a54e804401fcb213e2e21def5c045 | 77affc8438ff3dc90b2b93e8dd6e965f9879e4a8 | /asg4/src/env/stp_env.hpp | e494b7ffe9b309a2713948d3a75b74e0c17146cd | [] | no_license | YouruiGuo/search-C | 61b37a9825c3e3a0144fedd5bed3b940799c5a93 | 3b6103cf90ef7875407ada024f146e10ff6fcf07 | refs/heads/master | 2020-04-27T18:33:46.137888 | 2019-04-18T17:06:09 | 2019-04-18T17:06:09 | 174,576,738 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,215 | hpp | stp_env.hpp | //
// stp_env.hpp
// search-C
//
// Created by Yourui Guo on 2019-03-08.
// Copyright © 2019 Yourui Guo. All rights reserved.
//
#ifndef stp_env_h
#define stp_env_h
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include <iterator>
#include <map>... |
8350d43573c7bd78d276e1e1e2b92f89d30c9f09 | 251aa1249861d13ed6a5bbf3920e1580cf6fcb15 | /sticher/MainForm.h | 5dedecadc1d5ad8ba07de8219a8725de7d6cd01b | [] | no_license | rodrigomas/autostitcher | 98071ff37013e433e03c3f884fde817fc4d229ed | e6e0b33c2fd964fc1c2d3e6e3434b1c4cd60d4eb | refs/heads/master | 2021-01-01T20:14:21.857137 | 2013-05-07T17:55:51 | 2013-05-07T17:55:51 | 98,795,903 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,413 | h | MainForm.h | #pragma once
#include <opencv2/stitching/stitcher.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <fstream>
#include "Utils.h"
#include "ProgressDialog.h"
#using <mscorlib.dll>
namespace sticher {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Col... |
6c1a9d0ed2e8c92f4d05de2d9334f1ec6b2188c5 | 05569ef4785c267e1815c6ef10b759f947e28bcc | /final/atm.cpp | fd50784be1a7a949d23577de07d216c98476a5ba | [] | no_license | nadavshalev/OS102 | 36a5d44ec72977366288473aa20f310c1ee055bf | 04cac3daa58b01b08ca0858ba5f14d751719e767 | refs/heads/master | 2020-09-30T02:06:30.460583 | 2020-01-19T20:02:18 | 2020-01-19T20:02:18 | 227,173,868 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,659 | cpp | atm.cpp |
#include "atm.h"
//********************************************
// function name: runATM
// Description: read atm file and exec each line
//********************************************
void* runATM(void *argin){
// get input arguments
struct atmArgs *arg;
arg = (struct atmArgs *) argin;
// open file for s... |
15a741d094b631aaa14f18eeea1e588890a3234b | 2013e024e03b233f6f19c9e225c13090a7414e74 | /nytl/fwd/span.hpp | 9a2faabca5076ca5e758ea1077d7c36a254f22a2 | [
"BSL-1.0"
] | permissive | salom12/nytl | 3223a553cab656d8d75e35c786011fc9a327891d | 3689a4f6db7d5f847a01c52a8e5d0996f3b7c137 | refs/heads/master | 2020-03-22T07:26:23.332046 | 2018-05-26T21:31:55 | 2018-05-26T21:52:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 384 | hpp | span.hpp | // Copyright (c) 2017-2018 nyorain
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
#pragma once
#ifndef NYTL_INCLUDE_FWD_SPAN
#define NYTL_INCLUDE_FWD_SPAN
#include <cstdlib> // std::size_t
namespace nytl {
template<type... |
c779088430e1c838c2abf818eea29c243dc1e77e | d06120aaff28e4e90f891201a9278fc339566a8d | /monopoly/Classes/Land/Jail.h | 40d3db35b2efd2cf8fd2eb04ecc1b4fc1d7ca2a8 | [
"MIT"
] | permissive | li-letian/Monopoly | 7b8d9372bb1fe1ad6565205ce9014b67b468e9d1 | 6427672842ed94bb4dad585206ec08ec9a5f7a4d | refs/heads/master | 2022-11-13T03:44:57.776063 | 2020-06-21T14:21:18 | 2020-06-21T14:21:18 | 261,958,000 | 4 | 3 | MIT | 2020-06-13T15:54:52 | 2020-05-07T05:30:03 | C++ | UTF-8 | C++ | false | false | 331 | h | Jail.h | #ifndef _JAIL_H_
#define _JAIL_H_
#include "cocos2d.h"
#include "Land.h"
#include "Common/CommonMethod.h"
#include "Character/Character.h"
#include<string>
USING_NS_CC;
class Jail : public Land {
protected:
public:
virtual bool onLand(Character* standing) override;
static Jail* create(int index);
};
#endif //... |
d560e709d2928726173818bf7b6190064093e20e | ba9d425fd2da1f10bb01f7ae0a3b46e0d459067a | /problem045/main.cpp | efca5efdc8792d982bbf9cd1398b6d951909f212 | [] | no_license | koeleck/euler | 445415571c136f4df3933d9925df6a5e207bdd59 | 5b92b2d953b37f09cef839ed3346a6df8e743dc8 | refs/heads/master | 2021-03-22T03:03:18.199215 | 2015-08-02T19:40:03 | 2015-08-02T19:40:03 | 39,467,094 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,819 | cpp | main.cpp | #include <iostream>
#include <vector>
std::vector<unsigned long long int> computeTriangleNumbers(const unsigned long long int max)
{
std::vector<unsigned long long int> result{1};
unsigned long long int cur = 1;
for (unsigned long int n = 1; cur < max; ++n) {
cur = cur + n + 1;
result.emp... |
5f4aef96349f2fab01b061bde07f66b704932e59 | 9f65b341f176aead0aa6f3de881db793ced46a9d | /cpp/FE.cpp | e3681d601aa43f1b1f397740970ebc05d418cc84 | [] | no_license | itsjustwinds/study-path | 2e66c0d85a431983e60ffde126131cb3dd8e865b | 5bfd3cc1c4d3f0b20c2bbc852f43dfbf3d726507 | refs/heads/master | 2020-05-30T07:51:30.320218 | 2020-04-05T11:29:02 | 2020-04-05T11:29:02 | 189,585,900 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 838 | cpp | FE.cpp | #include<bits/stdc++.h>
#define maxn 1005
using namespace std;
int a[maxn],n,dd[maxn],trace[maxn];
vector<int> dem;
int main()
{
freopen("FE.inp","r",stdin);
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin>>n;
for (int i=1;i<=n;i++)
cin>>a[i];
sort(a+1,a+n+1);
... |
5e84714cf68d37b13f5b5466f930e0b3d0db8883 | 2ed9ed857b646c9ee68abf57fc0db6b5e1827e35 | /pbinfo/590.cpp | d41f99c80e118371bb9b48e85715e4d956d9d02c | [] | no_license | Ca3zsar/Code-Problems | 56c2eeb9a33b2b66d54dbe59b3a6955b2db4e866 | 1592cfddcfaa7c6dfd32732532a98b9acd4b90f5 | refs/heads/master | 2022-11-10T05:10:19.747918 | 2020-06-27T12:43:43 | 2020-06-27T12:43:43 | 275,247,465 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,199 | cpp | 590.cpp | #include <bits/stdc++.h>
#define triplu tuple<int,int,int>
using namespace std;
ifstream fin("prim.in");
ofstream fout("prim.out");
int n,m,a,b,cost,d[101],d2[101],ra,rb,total,x[101][101];
vector<triplu>v;
int get_root(int nod)
{
if(nod==d[nod])return nod;
d[nod]=get_root(d[nod]);
return d[nod];
}
int m... |
9fa8e1385589e7cbbd9110ff443c60c76fae3973 | 803e2cc1ee6e0ea49b7e9963d738473ea07e7e89 | /Raycasting engine/src/Map.cpp | ae7f502ba68be158c53d3b9c2c9a3084ee6faf6a | [] | no_license | Gonadaie/Raycasting-engine | a27a54e1874bf2d6ffaa2c09da24ea13e69e53aa | f9a511317a886e9d4099a5f287bf9a52d7dc32b2 | refs/heads/master | 2020-05-23T03:55:57.298162 | 2018-01-26T18:19:51 | 2018-01-26T18:19:51 | 84,747,410 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,009 | cpp | Map.cpp | #include "Map.h"
#include <iostream>
#include <fstream>
#include "constants.h"
#include <math.h>
#include "trigo_functions.h"
using namespace std;
Map::Map(){
renderingRect = {0, 0, 4, 4};
}
Map::~Map(){
for(unsigned int i = 0; i < width; ++i){
delete cells[i];
cells[i] = NULL;
}
de... |
93f148a930a6d938fa56981bec3b81c804b6d415 | 17bf8eca8ece516e65118a91d60134092a8f68e4 | /C++/451. Sort Characters By Frequency/sol.cpp | 640d931f7b35bf64fed6506224fb54bfc65dd78f | [] | no_license | HaelC/LeetCode | a433bb49e62a3b331982cb6fa337a72726c45a11 | 549c0217e771726611287f7bcd43c704190a60f1 | refs/heads/master | 2022-12-29T16:53:56.159942 | 2020-10-11T05:50:25 | 2020-10-11T05:50:25 | 177,907,987 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 737 | cpp | sol.cpp | class myCompare {
public:
bool operator()(pair<char, int> p1, pair<char, int> p2) {
return p1.second < p2.second;
}
};
class Solution {
public:
string frequencySort(string s) {
unordered_map<char, int> count;
for (char c : s) {
count[c]++;
}
prio... |
5f5b7191e3d2f261ca381aa032b5e37f516421cb | 8881ec4b35654b2ead0cf078fb3b39affe41b8a5 | /src/DetectorMessenger.cc | f2d2b63b63e622d489d9cd34be94d88c85b6f9ef | [] | no_license | swissco67/fastrad | 38915a14882440454d20776a0392ee5a3e8caae2 | f3eee7f2b69ccd866e132abf0b6f50aa0dfaa95f | refs/heads/master | 2020-09-15T14:19:03.241842 | 2019-11-22T22:58:21 | 2019-11-22T22:58:21 | 223,473,748 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,851 | cc | DetectorMessenger.cc | /****************************************************************
* DetectorMessenger.cc
* Implementation file for class: DetectorMessenger
* (Geant4 compatible class)
*
* Project: Ht
*
*
* Neither the authors of this software system, nor their employing
* institutes,nor the agencies providing financial suppo... |
c8c96833ebc4567213b92e7c0320ed16a3b01e4d | eb88a6353d04dcf8fffc560eb089ab6939e84123 | /Win32Project1/Win32Project1.cpp | a8ed091ffef51d02b0d767d5e830e065e584e8b7 | [] | no_license | uchitacchin/CsCallDll | a65a9f8a5466fc8ca4e817ad725e52ab1027cf62 | 6d99129cebacef170c43c4a87b8fec348fb063af | refs/heads/master | 2020-05-07T09:22:13.072974 | 2019-04-09T13:32:54 | 2019-04-09T13:32:54 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,388 | cpp | Win32Project1.cpp | // Win32Project1.cpp : DLL アプリケーション用にエクスポートされる関数を定義します。
//
#include "stdafx.h"
extern "C" __declspec(dllexport) int FunctionName(int x, int y)
{
return x + y;
}
//
//class CTest
//{
//public:
// int Add(int x, int y)
// {
// return x + y;
// }
//
//};
// wrap_native_class_for_mgd_consumption.cpp
// compile with: /... |
a31cdc26a9843b809018e0c29f6fa3326874dd5e | 2eeab40a405a7b27a52386f52f6f9753672cde78 | /OJ_Codes/hacker_cup/2021/2A.cpp | 398a3aa50992c5c66ba5bcf6041d69a372489c9c | [] | no_license | rifatr/Competitive-Programming | c562c56f5090b9b76510d8c57e74a2c90d723643 | e802d9e73624607904223fddf7f29950fa429341 | refs/heads/master | 2023-05-24T02:02:56.062656 | 2023-05-22T08:08:02 | 2023-05-22T08:08:02 | 611,465,080 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,055 | cpp | 2A.cpp | #include "bits/stdc++.h"
#define ll long long
#define pb push_back
#define ff first
#define ss second
#define yes cout << "YES\n"
#define no cout << "NO\n"
#define Case(i) cout << "Case #" << int(i) << ": "
#define lop(n) for (int i = 0; i < n; i++)
#define lopj(n) for (int j = 0; j < n; j++)
#define ... |
b28b5d5c8c9ab6f188cb4f0eb8a0818b347cfcf3 | 4f1e906c09f32b9dfe28168448b5a9546d05f6a1 | /software/urho3d/game/iceweasel/src/Math.cpp | f1b887c369fcc29d589fe727ef6d8013bc916e54 | [] | no_license | TheComet/iceweasel | 76c2269ac42d35808b9c78ec9726850d270df0b2 | 6a386d0a2dfc0ec1695bc786c7b9140abad89e9e | refs/heads/master | 2021-09-26T12:46:07.580197 | 2018-10-30T11:48:20 | 2018-10-30T11:48:20 | 62,078,010 | 11 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 267 | cpp | Math.cpp | #include "iceweasel/Math.h"
// ----------------------------------------------------------------------------
float Math::Wrap180(float angle)
{
while(angle < -180.0f)
angle += 360.0f;
while(angle > 180.0f)
angle -= 360.0f;
return angle;
}
|
d1a38dcd6c81ce4055a6d28f0094096276683ca8 | 4bcc9806152542ab43fc2cf47c499424f200896c | /tensorflow/lite/delegates/gpu/common/transformations/add_quant_adjustments.h | 6eb4aaaf029e6e0358b3a87d88a8f94692d99523 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | tensorflow/tensorflow | 906276dbafcc70a941026aa5dc50425ef71ee282 | a7f3934a67900720af3d3b15389551483bee50b8 | refs/heads/master | 2023-08-25T04:24:41.611870 | 2023-08-25T04:06:24 | 2023-08-25T04:14:08 | 45,717,250 | 208,740 | 109,943 | Apache-2.0 | 2023-09-14T20:55:50 | 2015-11-07T01:19:20 | C++ | UTF-8 | C++ | false | false | 1,802 | h | add_quant_adjustments.h | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
c32975085e1bfddd9c17bb846aac822b967c4191 | 9a3bd642e50f0f954749e5be67d59460ece5be82 | /OLDfilez/sorce_workfiles_outdateddec5/main_010.17.cpp | f2c9e1d3c30d5998fa5f8601187a97dd73fabd71 | [] | no_license | zeplaz/railhubz | 6d4da4e5c02a8c467d5f81c9c84caa04617388bf | 607ff22c9bf42b7692f66eeb33e2b2abb97b0aad | refs/heads/master | 2022-03-20T20:19:09.593530 | 2022-02-10T01:07:57 | 2022-02-10T01:07:57 | 160,031,932 | 1 | 0 | null | 2022-02-12T19:57:30 | 2018-12-02T09:27:09 | C++ | UTF-8 | C++ | false | false | 3,399 | cpp | main_010.17.cpp |
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
#include <SFML/OpenGL.hpp>
#include "enity_2test.h"
#include "Sym_Map.h"
#include "Defined_train_path.h"
#include "Base_TSym_entity.h"
int main ()
{
int total_ent_count;
time_t* main_runtime_o;
*main_runtime_o = clock();
//... |
0296e88847f766480a3bc775064dbd0432275483 | d3cfaa7be41b70205e027d718f5546723f59906d | /LeetCode/0845. Longest Mountain in Array.cpp | 41166f7cc747afc9d1331f0b7b4155024f8893f1 | [] | no_license | 15757170756/All-Code-I-Have-Done | 8836c11ad1648f06cb815ab76f3378cddc41ac63 | e8985935efa641e68b76c231dddaf6326e3f3f98 | refs/heads/master | 2022-12-12T10:01:26.132458 | 2021-09-02T13:34:00 | 2021-09-02T13:34:09 | 111,758,971 | 9 | 3 | null | 2022-12-07T23:30:17 | 2017-11-23T03:31:03 | Jupyter Notebook | UTF-8 | C++ | false | false | 1,672 | cpp | 0845. Longest Mountain in Array.cpp | /*
845. Longest Mountain in Array
User Accepted: 944
User Tried: 1188
Total Accepted: 953
Total Submissions: 3308
Difficulty: Medium
Let's call any (contiguous) subarray B (of A) a mountain
if the following properties hold:
B.length >= 3
There exists some 0 < i < B.length - 1
such that B[0] < B[1] < ... B[i-1] < B[i... |
a4dd6aa0770bca407dabf9a0bf0a274ad0f09de5 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/angle/src/tests/gl_tests/SRGBTextureTest.cpp | 961ec37ae66ab11be9da50c95863e994e69a6c7b | [
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 22,282 | cpp | SRGBTextureTest.cpp | //
// Copyright 2015 The ANGLE 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.
//
#include "test_utils/ANGLETest.h"
#include "test_utils/gl_raii.h"
namespace angle
{
// These two colors are equivelent in different colorspac... |
5a35e76655c3a4eb1116fe23648d9df1b4dcb1a3 | 144e5ddf006b252cc9b353d41944bdf7e69cf06c | /pdf/pdf_view_web_plugin_unittest.cc | b010445d9b7868a32fe8f9ca701be1f406187909 | [
"BSD-3-Clause"
] | permissive | wzis/chromium | 6501d10b8239a7289e91b37ea0b4cf6a2120cf36 | 2de45c79a6fdc461a168158a9001cd9a20f2b9a8 | refs/heads/master | 2023-03-24T18:11:08.835171 | 2021-04-29T12:04:55 | 2021-04-29T12:04:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,493 | cc | pdf_view_web_plugin_unittest.cc | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "pdf/pdf_view_web_plugin.h"
#include <memory>
#include <utility>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/pub... |
ec6b26bb697b6f830a342ddd8ed9f6027f4b86ca | 4cb0f2cfb9ec3ec8c851f83ff3ea73ca5a62aa70 | /democodebase/pt/d3d9/rendering/source/material_collection.cpp | 0f5c7d1a8b62f6a20d35edc783d362b9c1f4fcfe | [] | no_license | Codarki/Pyrotech_2016 | 99733bb543621d755dc0451cee86e3988021a1e2 | 5e7a71b9ec751061285f3f784e861ac8f2726ee1 | refs/heads/main | 2023-05-30T08:11:30.626406 | 2021-06-24T23:13:53 | 2021-06-24T23:13:53 | 380,065,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,468 | cpp | material_collection.cpp | #include "material_collection.h"
#include "material.h"
#include "pt/exceptions/path_file_context.h"
#include "pt/any_error.h"
#include "pt/config_node.h"
#include "pt/log.h"
#include "pt/parameter_node_utility.h"
#include "pt/format.h"
#include "pt/path.h"
#include "pt/boost/path.h"
#include "pt/directory_iterator.h"
... |
cbca153c111019d09de0b3c0e59068ef0105b295 | b6ed93d36e53f20e9d5a082146c8eb86a8812175 | /FinalProject/disease.cpp | 73ea32210ed11bad2f0cbb1a6f9b2ec1655b8bdc | [] | no_license | Jphsx/PHSX815 | 964c9b058b95ad61963baaaa9f1949c6ddca9e72 | 9143d17cb0b14c4d408c868c61f0f6e663b05245 | refs/heads/master | 2021-01-10T15:54:33.561758 | 2017-01-28T02:15:59 | 2017-01-28T02:15:59 | 50,152,615 | 0 | 0 | null | 2016-02-09T09:37:23 | 2016-01-22T02:41:57 | C++ | UTF-8 | C++ | false | false | 597 | cpp | disease.cpp | #include "disease.h"
disease::disease(int mode, double parameter, double infectedDays){
if(mode == 0){
SpatiallyCertain = true;
SpatiallyProbable = false;
criticalAngle = parameter;
}
else{
SpatiallyCertain = false;
SpatiallyProbable = true;
resolutionParameter = parameter;
}
daysOfInfection = infecte... |
aa29117622eeddf5c5ee84b82ed0afc0d1799429 | f7f09782d15ee7bdd14e637bd717dfb8327bc57c | /2014Train/TreeDivide/C.cpp | b1e281cc75ba4d7c390ad48f2047d642fa42f981 | [] | no_license | whywhyzhang/ACM-ICPC-Code | 14f3f6b0532c18da9694d7f70914a97e0983913f | d15bd475774ff104ebfe9504f8ea0acffdb5ddb0 | refs/heads/master | 2022-12-09T06:27:14.893967 | 2017-03-09T14:31:49 | 2017-03-09T14:31:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,459 | cpp | C.cpp | // ━━━━━━神兽出没━━━━━━
// ┏┓ ┏┓
// ┏┛┻━━━━━━━┛┻┓
// ┃ ┃
// ┃ ━ ┃
// ████━████ ┃
// ┃ ┃
// ┃ ┻ ┃
// ┃ ┃
// ┗━┓ ┏━┛
// ┃ ┃
// ┃ ┃
// ┃ ┗━━━┓
// ┃ ┣┓
// ┃ ┏┛
// ... |
4966478ba689bbed9b19151959ec1daf12d93ef6 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2463486_0/C++/petrzlen/Fair-and-Square.cpp | 9b69687ebfff2062176dcfe012f946214824635c | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,278 | cpp | Fair-and-Square.cpp | #include <iostream>
#include <vector>
#include <cstdio>
#include <algorithm>
#include <set>
#include <string>
#include <map>
#include <cmath>
using namespace std;
#define REP(i, to) for(int i=0; i<to; i++)
typedef long long int LLI;
string toDigits(LLI n){
string result;
while(n>0){
result += (char)('0' +... |
72dd14e7fad79ad724067a3501f5c863f24a1f7f | a4b7ff2e44c4582d6c39ae09714ed7a2bd977eb2 | /soa/service/rest_service_endpoint.h | 94f2066886accd5dfe1665c32000bea85a3dded8 | [
"Apache-2.0"
] | permissive | datacratic/DasDB | 01f122911e644038d891a70a09d0411acbd5030b | 5ccc1fc7c6c69c97e3dae0e02bb4009f95908d3b | refs/heads/master | 2021-01-23T14:57:12.091421 | 2014-08-13T14:05:30 | 2014-08-13T14:05:30 | 22,917,273 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,094 | h | rest_service_endpoint.h | /* json_service_endpoint.h -*- C++ -*-
Jeremy Barnes, 9 November 2012
Copyright (c) 2012 Datacratic. All rights reserved.
*/
#ifndef __service__zmq_json_endpoint_h__
#define __service__zmq_json_endpoint_h__
#include "zmq_endpoint.h"
#include "jml/utils/vector_utils.h"
#... |
a17146f3061dff9f0058fe5a2c0077c7becf26db | 6f32307e81d264da66e47311faba4f54236b988e | /LoveLiveWallpaper/src/Vector.cpp | 0db33cd7199bfc915140e02e9e4abd2712a176b5 | [
"MIT"
] | permissive | Juvwxyz/LoveLiveWallpaper | 60883f435b92b4e789026656afd10929ba094dfb | a0eeac941b5ccd53af538192cb92b7df049839c4 | refs/heads/master | 2023-03-15T17:37:02.955884 | 2020-05-14T13:10:23 | 2020-05-14T13:10:23 | 256,424,461 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,680 | cpp | Vector.cpp | #include "Vector.h"
#include "Matrix.h"
using namespace ::DirectX;
namespace LLWP
{
Vector::Vector(float a, float b, float c):
vec{ a, b, c, 1 }
{
}
Vector::Vector(DirectX::FXMVECTOR& v) : vec(v)
{
}
float Vector::x() const
{
return DirectX::XMVectorGetX(vec);
}
... |
de2eaa0d7f9656e7d61f12b9792fe73316e8b8e2 | c8fcc1acf73585045a5c7213cfb9f90e4c1e809e | /POJ/2376.cpp | ffb3b7eeaff1881d6aeee36c448cfabe36707355 | [] | no_license | Jonariguez/ACM_Code | 6db4396b20d0b0aeef30e4d47b51fb5e3ec48e03 | 465a11746d577197772f64aa11209eebd5bfcdd3 | refs/heads/master | 2020-03-24T07:09:53.482953 | 2018-11-19T09:21:33 | 2018-11-19T09:21:33 | 142,554,816 | 3 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,886 | cpp | 2376.cpp | /****************
*PID:poj2376
*Auth:Jonariguez
*****************
贪心
先安排第一个牛,然后找下一个出了目前范围的牛,此时
找到之前的结束最后的牛(用优先队列维护)来接上
接不上则无解
*/
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <queue>
#include <vector>
#include <algorithm>
using namespace std;
const int maxn=25000+10;
struct pp{
int x,y;
boo... |
e038e5fec3902725bcc087e6f0f668cabd860ed5 | e45026c3d9aeec954bc6a52729e0166212471859 | /luogu/p1141/p1141.cpp | 5a5c9c52850e9730e513dca1f874cfb2e8f5ab8e | [] | no_license | refervl/PracticeCode | 1b972e6d264e9862afef927f6f5bc7b1a4f5f78f | 25688ba710f3b47c364b20fcb0f7b07deb2587c6 | refs/heads/master | 2020-07-06T21:00:52.922996 | 2019-08-24T14:00:56 | 2019-08-24T14:00:56 | 203,136,354 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,359 | cpp | p1141.cpp | #include<iostream>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<queue>
using namespace std;
#define _for(i,a,b) for(int (i) = (a);i<(b);++i)
#define _rep(i,a,b) for(int (i)= (a);i<=(b);++i)
#define LL long long
#define INI(x) memset(x,0,sizeof(x))
struct point{
int x,y;
};
queue<point> q;
int way[5]... |
3115b667fbc2fa9ce2c860db17bb24c636eea1b6 | a57acc31981ecce13e8a16db0de3b2b54a10169a | /module03/ex01/main.cpp | 14868942663bfb7999a74e1881a8e73376f73bb7 | [] | no_license | alan-pires/CPP | 3ce86e8adabad3b373b67c04d2ed4dd4f48cd32a | 82b0bb9e8126e3f43ebbb15aba0f65d12e2ca635 | refs/heads/main | 2023-03-18T14:19:04.682436 | 2021-01-28T13:51:40 | 2021-01-28T13:51:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,822 | cpp | main.cpp | /* ************************************************************************** */
/* */
/* :::::::: */
/* main.cpp :+: :+: ... |
7f45167c7fa30b702f733c923281fa205614957b | 8ebf327f53c2e26a937fca97384388e260af617f | /src/Random.h | 316ddc9785449ab901f2d7e6593c87046ff8f713 | [] | no_license | bratek20/RCG | 0369432c04060d17d013c0ff440fe287d09b6456 | 930f8c15f700260c7fbdd5a53fea42a107aaa95e | refs/heads/master | 2020-04-27T13:28:26.645702 | 2019-06-11T13:40:40 | 2019-06-11T13:40:40 | 174,371,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | h | Random.h | #ifndef RANDOM_H
#define RANDOM_H
#include <random>
#include <glm/glm.hpp>
#include <memory>
class Triangle;
using TrianglePtr = const Triangle*;
class Random {
static std::default_random_engine generator;
public:
static float uniform(float a = 0.0f, float b = 1.0f);
static bool tossCoin(float winProbabi... |
9cdea828531d9519530d2f54a7cd3342217a5bd0 | fce9da7922fead6082fde2f2e31dc1df07d756e4 | /ABC/116/D/main.cpp | 0b087c827f546385417326a08734d6a7563e4613 | [] | no_license | kraquos/AtCoder | df0a82171cbe04a193e0fa312899c1c05d28c23d | 4b73be2ba56b510f3349dc3e48276720e8980a0e | refs/heads/master | 2020-06-11T10:03:54.909914 | 2019-09-09T07:56:28 | 2019-09-09T07:56:28 | 193,923,921 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,378 | cpp | main.cpp | #include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
#include <queue>
#define rep(i,n) for(int i=0;i<n;i++)
#define ll long long int
#define MAX 1000000007
using namespace std;
bool comp(pair<ll,ll> a, pair<ll,ll> b){
return a.second > b.second;
}
int main(void){
ll n,k;
cin>>n>>k;
vector<pa... |
2906cb385fae9c4dddc32fdc0e87f48b459313a0 | a8ee46d4e8ad7f02f92a49b0dec6b694122b9e9a | /Dll_export_1/a_dll.cpp | 23038ee9bebd1b6a2906b9e343e89425e4297745 | [] | no_license | wolflog/Develop | 6ddc03224a71169d2900d2fe1835d71c333f790a | c884050621f8ab03c1d1dfdb19fa8ce1a46bf685 | refs/heads/master | 2021-06-09T14:12:17.306275 | 2016-12-05T15:29:19 | 2016-12-05T15:29:19 | 75,639,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 98 | cpp | a_dll.cpp | #include "a_dll.h"
YL_FIRST_API int first_test_dll_fuction(int a, int b)
{
return a > b? a:b;
}
|
be88daa3bf695b3e28f9d896620e6575a977e09e | 73c8a3179b944b63b2a798542896e4cdf0937b6e | /UVA/MischeavousChildren.cpp | cd5c9e067fafd9732f6e7e482a57f6b0291029d0 | [
"Apache-2.0"
] | permissive | aajjbb/contest-files | c151f1ab9b562ca91d2f8f4070cb0aac126a188d | 71de602a798b598b0365c570dd5db539fecf5b8c | refs/heads/master | 2023-07-23T19:34:12.565296 | 2023-07-16T00:57:55 | 2023-07-16T00:57:59 | 52,963,297 | 2 | 4 | null | 2017-08-03T20:12:19 | 2016-03-02T13:05:25 | C++ | UTF-8 | C++ | false | false | 1,069 | cpp | MischeavousChildren.cpp | #include <bits/stdc++.h>
template<typename T> T gcd(T a, T b) {
if(!b) return a;
return gcd(b, a % b);
}
template<typename T> T lcm(T a, T b) {
return a * b / gcd(a, b);
}
template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; }
template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ... |
30c0488d12dc17b62d59b3b229b669be29fce12b | 2b3993ba8056a3fee109e0088cc8b6a547a10301 | /RegistryTime/DateTimeDlg.cpp | 79703167c25ad1523f359ccba6d0f8f0fefbf20e | [] | no_license | RickLeinecker/RegistryTime | e8e7b78065fdef266600f596abf4dc367adff5c4 | 53725c9b4d721e06a456af4e25e910ec090adaa9 | refs/heads/master | 2020-08-16T22:30:24.196375 | 2019-10-16T14:05:10 | 2019-10-16T14:05:10 | 215,562,823 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,883 | cpp | DateTimeDlg.cpp | // DateTimeDlg.cpp : implementation file
//
#include "stdafx.h"
#include "RegistryTime.h"
#include "DateTimeDlg.h"
#include "afxdialogex.h"
// CDateTimeDlg dialog
IMPLEMENT_DYNAMIC(CDateTimeDlg, CDialogEx)
CDateTimeDlg::CDateTimeDlg(CWnd* pParent /*=NULL*/)
: CDialogEx(CDateTimeDlg::IDD, pParent)
{
... |
76c89e2ea273015dfcf5137b49144a5bcf8dc73f | fb153a2975b9c084d01b268bbdec506ffa133092 | /SortingAlgorithms.cpp | 2b6e55516b14b5a7e7e58ccb374c10fbf7dca50e | [] | no_license | olcayakman/CS202-studies | ec787ea7b8a5d7d01599678e63d0359c6a8c3435 | ebc019c57c51d645b8e34bd6229dbbcf35e3619c | refs/heads/master | 2020-08-06T02:09:45.295632 | 2019-10-04T12:58:16 | 2019-10-04T12:58:16 | 212,794,990 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 387 | cpp | SortingAlgorithms.cpp | /**
* SortingALgorithms class implementation file.
* @author Olcay
* @version 04.10.2019
*/
#include "SortingAlgorithms.h"
#include <iostream>
using namespace std;
void SortingAlgorithms::selectionSort(int arr[], int arrSize) {
for (int last = arrSize - 1; last >= 1; --last) {
int max = utilities.fin... |
419ba6e6bb749acb35bc9f6c1726158a98322ac7 | 362bec098e4f192016afb7e417285493ef9d8892 | /libvast/src/system/spawn_sink.cpp | d818925bac3a6383431f9e2c4fc89c4087ed4775 | [
"BSD-3-Clause"
] | permissive | knapperzbusch/vast | 4c30a8d5dadde74ceeea493e21ccfa63b4a35008 | 9d2af995254519b47febe2062adbc55965055cbe | refs/heads/master | 2023-04-07T07:46:37.386419 | 2020-03-03T14:57:14 | 2020-03-03T14:57:14 | 223,018,439 | 0 | 2 | BSD-3-Clause | 2023-04-01T20:24:38 | 2019-11-20T20:09:07 | C++ | UTF-8 | C++ | false | false | 3,793 | cpp | spawn_sink.cpp | /******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... |
e2c05ecf5d0c6bb6cc97baefc3cea15e28b60f26 | 3a0e06c5ff680fe2bb316551204684b3478c1015 | /Engine/Math/Geometry/Disc.hpp | a4220bc348ff9256dedffa38aaba9a26461b2280 | [] | no_license | itsdrell/Strawberry | 3fdb37a0300506780ca94959dae68010d5d6f122 | e852a67a161e5b026b039e0794209d517d7a84bc | refs/heads/master | 2022-05-10T18:51:56.767445 | 2022-05-08T04:21:27 | 2022-05-08T04:21:27 | 168,198,048 | 0 | 0 | null | null | null | null | WINDOWS-1258 | C++ | false | false | 1,164 | hpp | Disc.hpp | #pragma once
#include "Engine/Math/Vectors/Vector2.hpp"
class Disc2
{
public:
// Constructors /Decon
~Disc2() {}
Disc2() {}
Disc2(const Disc2& copyFrom);
explicit Disc2(float initialX, float initialY, float initialRadius);
explicit Disc2(const Vector2& initialCenter, float initialRadius);
// Mutators
void S... |
0dd8302a92cbe4ea2abf2b807318a876511c2584 | b19f30140cef064cbf4b18e749c9d8ebdd8bf27f | /D3DGame_181018_052_1_Scattering/Components/UIModelTransform.cpp | 081a45f66364502d5b04b8c01ef550091e3a630a | [] | no_license | evehour/SGADHLee | 675580e199991916cf3134e7c61749b0a0bfa070 | 0ebbedf5d0692b782e2e5f9a372911c65f98ddc4 | refs/heads/master | 2020-03-25T13:22:42.597811 | 2019-01-03T07:05:54 | 2019-01-03T07:05:54 | 143,822,128 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,134 | cpp | UIModelTransform.cpp | #include "stdafx.h"
#include "UIModelTransform.h"
#include "./Objects/GameModel.h"
UIModelTransform::UIModelTransform()
: targetObject(nullptr)
{
this->uiType = ComponentUI::UIType::UIModelTransform;
}
UIModelTransform::~UIModelTransform()
{
}
void UIModelTransform::Update()
{
if (targetObject == nullptr || cont... |
5dacc369024c5788c6a5df5dbb8227cba006560c | 9067b0571e62632e1d2eaa06eaa7c8c9608427f4 | /Week15(Calculator)/stack.cpp | 6f81e8776170395234ebe4a89e7fd726a29cc78e | [] | no_license | khsu95/CPP | 40bf1b1166d555b05f0169d16c65dd3dc170d764 | beb3728985230dbfc344615630996c51bb75a5ec | refs/heads/main | 2023-03-13T18:27:46.238464 | 2021-03-06T05:19:49 | 2021-03-06T05:19:49 | 345,012,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 503 | cpp | stack.cpp | #include"stack.h"
#include<iostream>
#include<string.h>
Stack::Stack() {
stack[0] = eos;
}
void Stack::push(int* ptop, precedence token)
{
if (*ptop >= (MAX_SIZE - 1))
cout<<"Stack is full\n";
stack[++(*ptop)] = token;
}
void Stack::push(double op) {
_stack[++(this->index)] = op;
}
precedence Stack::pop(int* ... |
c1e735857c90d3db65c4d0f4bd85ccb62f3cf22a | 127fd33172f3823d46274281e3cdbc3adf3656a7 | /hashCache.h | e8997d5533cd98e2a5afcff8964d3fc296904cfe | [] | no_license | mou23/HashCache | 38e1e79565f9284973b257ad0df2b0342d0d300d | c9bb8bb921bdd12c1e5a502f605d16d0effbad05 | refs/heads/master | 2021-09-03T03:38:20.336026 | 2018-01-05T07:37:43 | 2018-01-05T07:37:43 | 116,355,162 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,138 | h | hashCache.h | #ifndef _HASHCACHE_H_
#define _HASHCACHE_H_
#include<string>
#include<vector>
#include"hashFunction.h"
#include"caching.h"
//#define maximumBucketSize 8
#define cacheSize 3
using namespace std;
int *counter,numberOfBucket=8;
//int *localDepth,globalDepth=2;
template<class K,class V>
class HashCache{
private:
... |
a08a42f5648627645ccb58cf1415a71fab5cbc89 | 61456f36bc796cd8b4e5ebe489bc6e4c019363ad | /CompuCell3D/core/CompuCell3D/steppables/PDESolvers/OpenCL/OpenCLHelper.h | 2bce6450c7bf942402f5014c38c848279e834e9b | [] | no_license | insafbk/CompuCell3D | f3556be82d10e71b6993a68e9a3fee552d10eb16 | 4c8b3b38f6fb9b96de7b7c13575ef0738f53dbc0 | refs/heads/master | 2023-01-03T08:55:37.934247 | 2020-08-22T18:13:13 | 2020-08-22T18:13:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,863 | h | OpenCLHelper.h | #ifndef OPENCL_HELPER_H
#define OPENCL_HELPER_H
// 2012 Mitja:
// #include <CL/opencl.h>
#if defined (__APPLE__) || defined(MACOSX)
#include <OpenCL/opencl.h>
#else
#include <CL/opencl.h>
#endif
#include <cassert>
namespace CompuCell3D {
class OpenCLHelper
{
cl_context context;//device's context
cl_comm... |
248047afba482557ea15deb6f13a6b1b86fddca9 | e2b7245e17a81a6e1c2feb88d220b80f36abecd9 | /Examen progra 4/Ejercicio1.cpp | f79cf05b6569368bf67899151d7bcfdb5f3f2a29 | [] | no_license | danielmr28/Laboratorios | 8efa0e5e173d1bcbdc4aef7708e37fa86af9b3a2 | cf85bb183a63742cdbb774e1e4ffab675d2d9e02 | refs/heads/master | 2022-11-15T08:00:23.421949 | 2020-07-12T04:06:49 | 2020-07-12T04:06:49 | 262,451,758 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 726 | cpp | Ejercicio1.cpp | #include <iostream>
using namespace std;
int main()
{
char frase[100];
int i=0;
cout << " Ingrese la frase: " << endl;
cin.getline (frase, 100);
while(frase[i]!='\0'){
if (frase[i]=='M'||frase[i]=='m')
frase[i]='0';
if (frase[i]=='U'||frase[i]=='u')
frase[i]='1';
if (frase[i]=='R'||frase[i]=='r')
frase[i]='2'... |
e042ba69133d03adf8c4f39bcd215af700aa386b | 5a02f06d58b318051931771b2f6da5a5a52ca5f2 | /src/Tests.cpp | cdb3bb6f189a7e11b3dbe642f5ba3c93de72ee9f | [] | no_license | mineawesomeman/JankMonopoly | 448230314cb46697d52d6ff9c628b2191d9e1887 | 5dec2a6fe88f9a90fed99dfa11ae4f53ad84021c | refs/heads/main | 2023-06-20T20:24:18.358161 | 2021-07-30T19:39:58 | 2021-07-30T19:39:58 | 391,171,505 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,158 | cpp | Tests.cpp | /*
* Tests.cpp
*
* Created on: Mar 18, 2021
* Author: daraw
*/
#include "Tests.h"
#include "Player.h"
#include "Board.h"
#include "Production.h"
#include "Definitions.h"
#include <iostream>
Tests::Tests() {
// TODO Auto-generated constructor stub
}
Tests::~Tests() {
// TODO Auto-gen... |
3e34e4009e842c2e4ba79de1f6d7ca4ef61f1311 | efb6dee9804f4504101ae4e37e13056c0507cfde | /Task00/test.cpp | 31bd8d164de11ab1ca4aceb429ba94375a3bfeff | [] | no_license | lukasas111/TD_seq_cpp_code-trainings- | 3c4fbcb4601a52f50c08bddfcffb17a89eab99ca | 9b0d8cb719cfd9113fce46069098f2680a40ca38 | refs/heads/master | 2020-03-21T15:04:20.685647 | 2018-06-29T17:03:31 | 2018-06-29T17:03:31 | 138,692,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,246 | cpp | test.cpp | //========
//this is template aimed at reading bitfinex prices
//https://api.bitfinex.com/v2/candles/trade:15m:tBTCUSD/hist?limit=5
//example: http://www.cplusplus.com/reference/string/string/substr/
//cd c:\sources\test
//g++ test.cpp -o test.exe
//test.exe
//=============================================
#include <... |
fc1d36762a4c960d0afc0887b7bf07e7c70581d3 | b7e97047616d9343be5b9bbe03fc0d79ba5a6143 | /test/protocols/ligand_docking/Transform.cxxtest.hh | 45139f5d4e3486ed4f549e6d51ab2ae3872f19da | [] | no_license | achitturi/ROSETTA-main-source | 2772623a78e33e7883a453f051d53ea6cc53ffa5 | fe11c7e7cb68644f404f4c0629b64da4bb73b8f9 | refs/heads/master | 2021-05-09T15:04:34.006421 | 2018-01-26T17:10:33 | 2018-01-26T17:10:33 | 119,081,547 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 4,766 | hh | Transform.cxxtest.hh | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// (c) Copyright Rosetta Commons Member Institutions.
// (c) This file is part of the Rosetta software suite and is made available under license.
// (c) The Rosetta software is developed by the co... |
e96af339180f0e2757a0083e2a0faa3a9d1e6b10 | 3f148b1ad8a4bda468cbf8663d0012608d406c3d | /proyectoFinal/proyectoFinal/FriasCarrilloJuan_PROYECTO_FINAL_GPO4.cpp | 2e3e2923479115a17a5e582732811ee8c04cf99b | [] | no_license | RKJFC/JuanFriasProyectoGPO4 | 63bd769e244f092271a1052c8aa1868de274018f | ab679fd83cd2b5e1838cd70bd2ad174e05757dc9 | refs/heads/master | 2020-09-04T22:18:41.009656 | 2019-11-20T18:36:45 | 2019-11-20T18:36:45 | 219,907,053 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 47,376 | cpp | FriasCarrilloJuan_PROYECTO_FINAL_GPO4.cpp | //Semestre 2020 - 1
//************************************************************//
//************************************************************//
//************** Alumno (s): *********************************//
//************* Proyecto Final ******//
//********* Laboratorio Computación Gráfica - GPO4 ... |
2c1c0b925c39ff951319b40b5a0daa41e7fcfe76 | 3faf8eb9c6201d7091fa63169dd74462095f5ef2 | /src/LightField.h | ee2f94511c4ca04d58a1117eafa3c9e0b453780d | [] | no_license | evgeny-t/imagestack | c1ab04a73cd85e648269c50b3f7c27d5e48bd0a8 | 09d565e864ff60354780401a08f70bfcd833fccd | refs/heads/master | 2020-12-30T09:26:32.931340 | 2015-05-01T05:56:59 | 2015-05-01T05:56:59 | 34,891,298 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,595 | h | LightField.h | #ifndef IMAGESTACK_LIGHTFIELD_H
#define IMAGESTACK_LIGHTFIELD_H
namespace ImageStack {
// a LightField is an image which assumes u and v are rolled up into x
// and y, like an image of the lenslets in a plenoptic camera
class LightField {
public:
LightField(Image im, int uSize_, int vSize_) : image(im), uSize(uSiz... |
efa6079f6ba1786520957cabd6a431afb87d4d89 | ec606498d8c4ff237058ad4588c96c564911c938 | /src/SDF/ConnectedFace.hpp | 4f23a66cc636f18da3e833c714d61a1560e34a3c | [] | no_license | yanchian/XuXu | 9377b456d83c923486470673c6c681c6acf4c7d6 | d7cc130c219ef775c47bb7f6cb26d06e0214df14 | refs/heads/main | 2023-03-21T16:06:51.869100 | 2021-03-17T03:57:08 | 2021-03-17T03:57:08 | 348,165,893 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,001 | hpp | ConnectedFace.hpp | #pragma once
#include <vector>
#include <iostream>
// Forward declarations
template<typename T> class ConnectedEdge;
template<typename T> class ConnectedVertex;
template<typename T> class Polyhedron;
template<typename T> class ScanConvertiblePolyhedron;
/** A face which stores adjacency relations with edges.
*
* On... |
2ab4c3a4ddafd5df4a96190869d08d8aa1acf043 | fe6e47273fed2ed22a2443637805c51ee3b09a7c | /Command/Command.cpp | b1c79558a837de1dbf51cc03185294291484202f | [] | no_license | hljgirl/DesignPatterns | 303f209d9b8b86ecb9bec834e14cd7725f1eaca8 | ea8e4b6a63080453ac6d2da0c044c61a70008162 | refs/heads/master | 2021-01-02T09:23:57.940239 | 2017-08-10T08:58:33 | 2017-08-10T08:58:33 | 99,206,422 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 138 | cpp | Command.cpp | #include "stdafx.h"
#include "Command.h"
Command::Command(RunnerClub* runnerClub):_runnerClub(runnerClub)
{
}
Command::~Command()
{
}
|
068d883a40a75dcc8861fc029b0db6bd834251b7 | 325977b462657720c8df5fcd394b1179477494e8 | /object3dwindow.h | d0711e28746b5ea25a5cb88aafe8bd442f75e053 | [] | no_license | jakubpradzynski/azariah | f2a19338c729eccdc061ba9f47b7e343e4d2f1ef | 030aed32fe5dd52f07a18d59986ef6d1ff238c17 | refs/heads/master | 2020-03-22T08:24:51.220533 | 2018-09-11T16:14:29 | 2018-09-11T16:14:29 | 139,764,856 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | h | object3dwindow.h | #ifndef OBJECT3DWINDOW_H
#define OBJECT3DWINDOW_H
#include <QWidget>
#include <iostream>
namespace Ui {
class Object3DWindow;
}
class Object3DWindow : public QWidget
{
Q_OBJECT
public:
explicit Object3DWindow(QWidget *parent = 0);
~Object3DWindow();
void start(const char *pathToFile);
private:
... |
48550e4ad896be6cfb9e4b84ec1288c7812414bc | 9b7a6a7ceed99f121623d75b46514e060ce84096 | /include/yama/shorthand.hpp | db76d7256ab82adecc0776d8ec891c13010307ea | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | iboB/yama | 16831001e68487ae3a898af423334fd20a158f73 | cc47134777187048ad850505f1327e1ee578232a | refs/heads/master | 2022-10-09T00:38:18.178326 | 2022-09-26T17:20:28 | 2022-09-26T17:20:28 | 79,384,127 | 12 | 2 | NOASSERTION | 2019-08-04T15:31:13 | 2017-01-18T21:04:10 | C++ | UTF-8 | C++ | false | false | 269 | hpp | shorthand.hpp | // Copyright (c) Borislav Stanimirov
// SPDX-License-Identifier: MIT
//
#pragma once
#if !defined(YAMA_NO_SHORTHAND)
#if !defined(YAMA_PREFERRRED_TYPE)
#define YAMA_PREFFERED_TYPE float
#endif
namespace yama
{
using preferred_type = YAMA_PREFFERED_TYPE;
}
#endif
|
d9cee96a8638d48901865f056dc4255b0d9e18b1 | 6b847c6638d0021155991817b1b326644bf254cf | /src/interface.cc | 4ab36bbbb9899d899ae04a0233c02a7d0e6f04bc | [] | no_license | jagd/ariadne_expr | 185daf8631ef536ef4c4f5a40004d9f5403d966b | 859871dc91e385338901c152a48ff60d840a8ee9 | refs/heads/master | 2022-01-16T08:16:40.934136 | 2015-10-15T07:57:28 | 2015-10-15T07:57:28 | 197,926,274 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,988 | cc | interface.cc | #include "interface.h"
#include "parser.h"
#include "ast.h"
#include <sstream>
#include <utility>
#include <string>
#include <parameter.h> // ariadne code
struct ExpressionImpl
{
std::unique_ptr<Ast> ast_;
bool hasError_;
std::string msg_;
};
Expression::Expression()
: impl_(std::make_shared<Express... |
7149572ed14149e9e8943676bb682150cfd3337d | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /C++/invert-binary-tree.cpp | f08fa7b42a15a0e60591b8ae8f0d67a5de7ca284 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | C++ | false | false | 1,886 | cpp | invert-binary-tree.cpp | // Time: O(n)
// Space: O(h)
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
// Time: O(n)
// Space: O(w), w is the max number of nodes of the levels.
// BFS solution.
... |
47e313e2b5cfb7366a800012382cdb7dbf5cd1a7 | 6c7a957fe0d5d7d43b5739b5b2660b0637f3bc9a | /Tema4/problema3.cpp | 0b6c7891c84b348a39bef5aa44f11ff3a8d97de7 | [] | no_license | Starnox/Bac | 36daa296578bd99b7ef35c6730318e348b817529 | 98e302ee0d446cd0d3005eeb6755225ae201e6d9 | refs/heads/master | 2021-06-25T11:50:04.527571 | 2021-04-20T07:17:22 | 2021-04-20T07:17:22 | 221,260,147 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 697 | cpp | problema3.cpp | //#pragma GCC optimize ("O3")
//#pragma GCC target ("sse4")
#include <bits/stdc++.h>
#include <cstring>
using namespace std;
// CHECK THE LIMITS
typedef long long ll;
static const int NMAX = 1e5;
int gcd(int a, int b) {
return b ? gcd(b, a%b) : a;
}
char s[25][25];
char first[405];
char second[405];
int main()
{... |
48d8f4b3f0756a42c68b4f3a43ebc1609880e2c2 | 4df53d4396ef3ebd4b87353f392162dd266cb819 | /src/26.cpp | e0ac9c75021e877fe4c58e6bef9b5cd19fb9de3f | [] | no_license | NearXdu/huawei | 14c635cc23ffe0845ca58c0cf48e40d23fa6df1e | 571927a25f3e429ffd760ee5f37521ab2e101f28 | refs/heads/master | 2020-04-05T13:05:16.305389 | 2017-06-30T08:28:10 | 2017-06-30T08:28:10 | 95,072,828 | 10 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 684 | cpp | 26.cpp | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main(int argc,char **argv)
{
string raw;
while(getline(cin,raw))
{
vector<string>sorted(26);
for(int i=0;i<raw.size();++i)
{
if(std::isalpha(raw[i]))
{
if(raw[i]>='a'&&raw[i]<='z')
{
... |
49d0ea803b63f6970545423f819fe61a1fc2b303 | 689878216addb2a55ae0ee15df4d433e799228d4 | /controller.hpp | 18cf245a5e2b309248058bbc400c0782786bd638 | [
"Apache-2.0"
] | permissive | eddiejames/phosphor-usbd | 14a690c6d882dd5c071203c680432618ee4894ee | 61ce952dce43237e37f98b2a913dc1e6ee384358 | refs/heads/main | 2023-07-09T10:26:53.511003 | 2021-08-10T19:56:00 | 2021-08-10T19:56:00 | 381,129,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 691 | hpp | controller.hpp | #include <xyz/openbmc_project/State/USB/server.hpp>
#include <sdbusplus/bus.hpp>
namespace phosphor
{
namespace usbd
{
namespace fs = std::filesystem;
using ControllerInherit = sdbusplus::server::object::object<sdbusplus::xyz::openbmc_project::State::server::USB>;
class Controller : ControllerInherit
{
public:
... |
652d686dde218c709a9fa5b52fcfec0dcf83ef03 | 35731244794c4b9d70a3070124c94446b0a9adf4 | /PEA3/PEA3.cpp | f1381d6c594a6e5e795ea87cf97f7676ffec823d | [] | no_license | kbrzezinska/projects-in-C- | 706e5d44836157e81e9564f2587576a2a377e0ef | ccb40e7cb8d894029978ddcdca8c6d6cd994b0b9 | refs/heads/master | 2021-02-05T19:32:59.652992 | 2020-02-28T18:00:03 | 2020-02-28T18:00:03 | 243,823,337 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 709 | cpp | PEA3.cpp | // PEA3.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <ctime>;
#include "genetyczny.h"
#include "Menu.h"
#include <ctime>
#include "stdlib.h"
int _tmain(int argc, _TCHAR* argv[])
{
srand(time(0));
Menu m = Menu();
/*Genetic g = Gen... |
b25dcde613991f7616c99c7b923cb8f2d628b989 | 1ab6a152184bc9fe36a111e4f7be85eeac19ed97 | /code/util/fileUtil.h | 92873a5d2ba4045b91f0ec6226c395fbb1b023a7 | [] | no_license | WangShanyue/X86ToMips | a8ee562776a07982c39741ad63a8f40f11e645f4 | 2a92ca690b6f914f84820cd988dcc51db7773f24 | refs/heads/master | 2020-04-23T06:36:56.508471 | 2018-12-25T06:28:26 | 2018-12-25T06:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | h | fileUtil.h | //
// Created by cyw35 on 2018/12/25.
//
#ifndef X86TOMIPS_FILEUTILL_H
#define X86TOMIPS_FILEUTILL_H
#include<iostream>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <cassert>
#include <string>
#include <map>
#include <vector>
#include <cstring>
using namespace std;
//文件处理类
class fileUtil {
... |
c1579f305bfbc511520aaf79ea06c3e0a8dbd4f8 | e9f6461fea7045bb07fc2be09ae1a9ec609b50f0 | /2011/server_src/Frame/MD5.h | ccc32d77c2194eac802f1801e8435cec3fb77660 | [] | no_license | cash2one/important-files | bd1a88ea30e3ff16b4fbba6b4939ab6b13f5a6c8 | 12aebeae6322fafb89869ab15eac588420cbb004 | refs/heads/master | 2021-01-15T23:20:54.484632 | 2012-09-19T04:21:08 | 2012-09-19T04:21:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,326 | h | MD5.h | /* MD5.H - header file for MD5C.C
*/
/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
rights reserved.
License to copy and use this software is granted provided that it
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
Algorithm" in all material mentioning or referencing this... |
a85b94265a2eccacc857dc43e8f0f26bd5ba14cb | e31e59c4c0097f163d892b698c01dbabaa0f26bf | /torch/csrc/jit/python_compiled_function.h | 24847df590f81337ba049f736a31c2e3a0ad3362 | [
"BSD-2-Clause"
] | permissive | aszenz/pytorch | f76d35eadd5fd05f651eeab69fb4563782b6cd12 | 5b2204beedef764a21586c886cc599de67f7b5de | refs/heads/master | 2020-04-03T15:03:07.389441 | 2018-10-30T08:56:59 | 2018-10-30T08:56:59 | 155,348,066 | 0 | 0 | NOASSERTION | 2018-10-30T08:13:39 | 2018-10-30T08:13:39 | null | UTF-8 | C++ | false | false | 170 | h | python_compiled_function.h | #pragma once
#include "torch/csrc/jit/pybind.h"
#include <tuple>
namespace torch { namespace jit { namespace python {
void initCompilerMixin(PyObject *module);
}}}
|
e89131050bb2d63fcd90e9b4d29c59e2c0cf9f5a | e64392aad7be42a24278dcfd350f5e06e3fdef21 | /include/std/Array.h | 142d01a69f98b916cc8e8681ba5951b57054d784 | [] | no_license | vehar/TurtlOS | 05bf0fad3ca9b284fd694214045fa7cfd43d375d | 76c73b3abae5c7564f695a9532e35931020c7131 | refs/heads/master | 2023-03-15T21:51:18.416519 | 2014-04-09T06:16:29 | 2014-04-09T06:16:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,429 | h | Array.h | #ifndef INC_ARRAY_HPP
#define INC_ARRAY_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#ifndef __cplusplus
#error "This C++ header was included in C file"
#endif
/// Represents a generic Array
template <class T, unsigned SIZE>
class Array {
public:
/// Array iterator
class It {
friend class A... |
5525f1f06945da79adb0ab51a357e6c84b6cdad6 | aecb05939172464d69029dacbd6b5673867fb062 | /Comet/Animation.h | 24230f238b5853c4f06d592495f25652825afe2f | [] | no_license | MegaMilkX/Comet | d84cd393de594624ecd91e8071f2b06b48cab96f | 4b6889ad0017f1a9e564840c43f344a3b65823eb | refs/heads/master | 2021-01-09T23:42:03.415250 | 2015-05-16T22:50:50 | 2015-05-16T22:50:50 | 26,982,001 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,627 | h | Animation.h | #pragma once
#include "Resource.h"
#include <fbxsdk.h>
#include <fbxsdk\fileio\fbxiosettings.h>
#include "math3f.h"
#include <vector>
#include <algorithm>
#include <memory>
#include "Node.h"
namespace Comet
{
class Key
{
public:
enum INTERPOLATIONMODE { CONSTANT, LINEAR, CUBIC };
Key(int t, float v) : tim... |
b4133e39db69189f8b6f962ed138738e349963ae | cff366a360ad7d0e17ad0ab13831fa7203ed1b2d | /C++/ConsoleTricks/src/Sprite.h | 6e5b3fafab0dbb5b0853f581dbda9a9a729b2e0d | [] | no_license | tcstrength/projects | c2bf6c4dfc5023483eff939a9860bf3f66833205 | 995fae7d94e8e2ec3e3cf40d04d43121f3cbaa02 | refs/heads/master | 2021-10-25T11:43:03.781429 | 2019-04-03T23:39:10 | 2019-04-03T23:39:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 395 | h | Sprite.h | #ifndef SPRITE_H
#define SPRITE_H
#include "Screen.h"
class Sprite
{
public:
Sprite(const std::vector<std::string>& data);
void render(Screen& screen);
uint getPosX() const;
void setPosX(const uint& posX);
uint getPosY() const;
void setPosY(const uint& posY);
private:
std::vector<std... |
f92e42547d69a9506f7fe6d9017e524d7cda936d | b60f7f4a4883f0fe177a09a3ca97b52d1a584d90 | /server/BINARIZADO/machine_events.cpp | f10737c2d1d1ea210a095d0c357ae7899e0495cd | [] | no_license | dirgnisally/basedatos2 | c904eee99c2cfb8bc21339ad0daf52832850bd2a | 0da8c2464d1d180b331c750b0eabdccfb0df685a | refs/heads/master | 2020-03-18T13:45:24.242130 | 2018-07-20T19:48:30 | 2018-07-20T19:48:30 | 134,806,228 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,404 | cpp | machine_events.cpp | #include <iostream>
#include <string>
#include <cmath>
#include <limits>
#include <map>
#include <unordered_map>
#include <fstream>
#include <cstdio>
#include <string.h>
#include <cstdlib>
#include <vector>
using namespace std;
struct MachineEvents{
long time; //Integer
long machineId; //Integer
char even... |
367e34efd1ddbb60e7b577dcb701847396550e5f | 16addc5cd60d79c5309e63bb582fe1870155ef59 | /Castlevania_Game/Dagger.h | 3b918d3683a34a0d93a6ed03aa6854a11a16ce44 | [] | no_license | tienthanght96/Directx_Game_2016 | 3b2e2f6182e89de9aea9d83a969a09b8ae50cf59 | 98e6cdabdcbc0dc26d61d81bf51a2d9638314923 | refs/heads/master | 2021-01-12T05:23:19.279433 | 2017-01-03T13:52:52 | 2017-01-03T13:52:52 | 77,919,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 837 | h | Dagger.h | #pragma once
#include "CObject.h"
#include "Box.h"
#include "SweptAABB.h"
#define DAGGER_SPRITE "Resources\\Sprites\\Weapons\\Dagger\\DaggerSheet.png"
#define DAGGER_SHEET "Resources\\Sprites\\Weapons\\Dagger\\DaggerSheet"
#define DAGGER_ANIMATE_RATE 8
#define GRAVITY 0.00048828125F
#define DAGGER_X 0.1825F
#defi... |
2ce30480d7cdde9fd9b543ea5964d69816b995cf | 7fae527bf3468cd93c7642f176df0b5720fc581f | /Framework/src/Mesh.cpp | bd02f9b861bd84f5c7ecb3406eb41ed1481342d8 | [] | no_license | jparimaa/myvk | bf325d6b357ecd87bc7bc54e71835eab503dbdd2 | b52043f2c566863ddbfdb433f2f7b1d301046117 | refs/heads/master | 2021-07-04T08:31:02.515972 | 2019-05-14T09:52:21 | 2019-05-14T09:52:21 | 105,790,146 | 2 | 1 | null | 2018-11-06T17:34:19 | 2017-10-04T16:17:18 | C++ | UTF-8 | C++ | false | false | 894 | cpp | Mesh.cpp | #include "Mesh.h"
#include "Common.h"
#include <stdexcept>
#include <utility>
namespace fw
{
Mesh::Vertices Mesh::getVertices() const
{
Vertices vertices;
vertices.reserve(positions.size());
for (unsigned int i = 0; i < positions.size(); ++i)
{
Vertex v;
v.position = positions[i];
... |
c6e5438ec549d2a5999247bdd33bd53049f9f6db | d85978556a8e57fe33fedfc9b2c7ff38d0cb6e8b | /A Chessboard Game/A Chessboard Game.cpp | 59a5665d7248692663fb09adac55a268b4671eca | [] | no_license | Lianghe-Chen/hackerrank-2 | c9ee73df5b6f13e92f057281c12789a61bec8554 | 1d7aa60f9c02e2130da1ac7482bd3c9ae1de8a83 | refs/heads/master | 2022-03-27T03:10:02.998643 | 2019-12-12T01:00:29 | 2019-12-12T01:00:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 326 | cpp | A Chessboard Game.cpp | #include <iostream>
using namespace std;
int main() {
int t;
cin >> t;
for (int x, y; cin >> x >> y; ) {
int r1 = x % 4, r2 = y % 4;
if ((r1 == 1 || r1 == 2) && (r2 == 1 || r2 == 2)) {
cout << "Second\n";
} else {
cout << "First\n";
}
}
return... |
882c6ac44a0e559991576e43e510d3b69e84d285 | ceeb04e3e5a04d1567c6df13d0f18dc4578f5f7b | /C语言实现多态诸葛亮的锦囊妙计/诸葛亮的锦囊妙计.cpp | 034955bd96d66514b60e41b8fc27a48f3df0b216 | [] | no_license | ahangshizz/Learningrecord | ca74784b2158f9d448e823279a4a7e4586c3cd59 | 47ee426d7b3ee77d1c518a37d47e7aaa57a74a07 | refs/heads/master | 2022-02-28T17:10:26.688422 | 2019-09-15T02:18:29 | 2019-09-15T02:18:29 | 177,227,190 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,574 | cpp | 诸葛亮的锦囊妙计.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
using namespace std;
//抽象层
//打开锦囊的方法
typedef void (TIPS)(void);
struct tip {
char from[64];
char to[64];
TIPS*tp;
};
//创建锦囊的方法
struct tip* creat_tip( char const*from, char const*to, TIPS*tp) {
struct tip* temp = (struct tip*)malloc(sizeof(struct tip))... |
0a8203ffb9cd50e8784907cdb38efbccda626781 | a5a0be53e13091e7b63991057e8b95fca7201f0b | /Mario 2D/Mario 2D/Mario 2D/FPS.h | d93c17b743b66b551b687f468e06506d31863586 | [] | no_license | doanhtdpl/mario-uit | 7924b288b1f2bc281daa7df0dabfc0eb1484542e | ac673408f71ac4d9e45f888e26d6692de0184c58 | refs/heads/master | 2020-06-04T13:00:43.127215 | 2013-10-31T03:19:54 | 2013-10-31T03:19:54 | 40,475,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 503 | h | FPS.h | #ifndef FPS__H
#define FPS__H
#include <Windows.h>
#include "Device.h"
#define DEFAULT_LIMIT_FPS 25
class CFps
{
protected:
int m_iLimitFps;
int m_iLimitFrameDt;
int m_iFrameDt;
private:
long m_iStartTime;
public:
// Singleton
static CFps * s_pInstance;
static CFps * GetInstance();
// ... |
895936d33fefbb9ff00c5f0a8a4c31207bc74234 | 2a1999fa13337bae62bdb81f8d0379ef29a9d36e | /Ativar sensor de laser/laser.ino | dfdf2410d1d6d5eb4aa152020c7ad51570f1e56f | [] | no_license | gabrielbastoos/arduino-projects | 80f6545402362788d6fbdadb7a9cc4686a642389 | 26845b3e0c00330c07503e3e6f9ee1c9b16feae9 | refs/heads/master | 2021-01-10T11:09:16.995416 | 2015-10-18T22:22:17 | 2015-10-18T22:22:17 | 44,426,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 471 | ino | laser.ino | int led=11;
int lightPin = 0;
char leitura;
void setup(){
Serial.begin(9600);
pinMode(led,OUTPUT);
digitalWrite(led,LOW);
}
void loop(){
Serial.println(analogRead(lightPin)); //Write the value of the photoresistor to the serial monitor.
delay(500);
while(Serial.available()>0) {
leitura=S... |
f8e0422d26509a67b260515140c7d35e70adffcf | e7f8c7fbfe0c36aeaea110eba524c210403b63de | /src/Utils/clock.h | 5e9774b18b522afaa440f08c2767bb528a9daea4 | [
"MIT"
] | permissive | Nelarius/PBGI | 182b1e15c478af88f5cb99abf935e05742401500 | edd91f69ab4f26dc297d0679d8628d812c866122 | refs/heads/master | 2020-05-29T11:40:22.919161 | 2016-03-29T15:48:51 | 2016-03-29T15:48:51 | 54,681,470 | 0 | 0 | null | 2016-03-24T23:44:53 | 2016-03-24T23:44:52 | C++ | UTF-8 | C++ | false | false | 417 | h | clock.h | #pragma once
#include <chrono>
//-----------------------------------------------------------------------------
// Class Clock
//-----------------------------------------------------------------------------
class Clock
{
public:
Clock() = default;
~Clock() = default;
double getElapsedTime();
void sle... |
64da54cc7b555b3e38b9b20afb6504fa57583fd3 | a1a13311376367fa5a7cfeef6035b92d62aa5d1e | /OOP-Cpp/4-1IO-test.cpp | 0bb3835439cdd06f7985383936c170c1e05df579 | [
"MIT"
] | permissive | Sprinter1999/PlayGround | 31936194ff0b363027769ab09df5003451117c0c | cb6f2668ec8b747684255cf0a3cb07436aaf8830 | refs/heads/master | 2022-08-13T23:44:59.761820 | 2022-07-28T03:46:44 | 2022-07-28T03:46:44 | 223,189,297 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 1,253 | cpp | 4-1IO-test.cpp | /*
@作业要求:
编写 C++程序完成猜价格游戏的以下功能:
(1) 假定有一件商品,程序用随机数指定该商品的价格(1-1000 的整数);
(2) 提示用户猜价格,并输入:若用户猜的价格比商品价格高或低,对用户作出
相应的提示;
(3) 直到猜对为止,并给出提示。
(提示及要求:1,要求使用 C++的输入输出方式(cin, cout),不能使用 C 语
言的 printf 等;2,注意检查输入的合法性)
*/
#include<iostream>
#include<ctime>
#include<stdlib.h>
using namespace std;
int main()
{
srand((unsi... |
f67e27818838f011f88849e2f14bae559feeabe8 | 66e7a9d4c67701f644945f6a98bde877728046a2 | /osl/src/liboslexec/debug.cpp | a608388427d6ed733f802f655e1ce5c519932f2a | [
"BSD-3-Clause"
] | permissive | BRL-CAD/osl | 196f7b14e0bff13c2fcfc16d18c425a4aaa3618b | df77f166e66e154c7da05ba4f73f25ee9229393b | refs/heads/master | 2023-02-23T17:56:32.656986 | 2011-08-24T12:59:45 | 2011-08-24T12:59:45 | 333,447,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,826 | cpp | debug.cpp | /*
Copyright (c) 2009-2010 Sony Pictures Imageworks Inc., et al.
All Rights Reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of co... |
7153c09d2d406796d24cf16c832ab154fe207dc6 | 98e6c125bc326236bc463b7e08b4012712a69e27 | /test_opencv.cpp | 19e96a75e6af23d7280a0b731fd5c16eb5dcf2a7 | [] | no_license | libuqima/OCR_Learning | a39689232b59cfb2a5fce6d7b4d31a2096492745 | fe6117e7a4d811c77b718d2d12aa5e3a73ac47fb | refs/heads/master | 2020-06-13T13:03:39.744466 | 2019-07-01T13:13:12 | 2019-07-01T13:13:12 | 194,664,266 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,816 | cpp | test_opencv.cpp | #include "opencv2/imgproc.hpp"
#include "opencv2/core.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/videoio.hpp"
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <iostream>
#include "tesseract/baseapi.h"
#include "leptonica/allheaders.h"
using namespace cv;
u... |
d3f77258b77c50e74773eee9f87b59899830d747 | c87095bd13b9080224324b3a6dd4fd538912d97e | /OpenGL/Particles/particle.h | b75b94d4f64853ff39a12c7b10428d00d8400339 | [
"MIT"
] | permissive | Agrelimos/tutorials | 6a0a8ef6652a44bd5a35b59bf192326c831367ff | 7d2953b8fbb5c56a921a17e7e3cac3d1f4fbb41b | refs/heads/master | 2020-04-01T05:26:56.560609 | 2018-10-13T18:45:56 | 2018-10-13T18:45:56 | 152,903,588 | 0 | 0 | MIT | 2018-10-13T18:44:42 | 2018-10-13T18:44:42 | null | UTF-8 | C++ | false | false | 1,787 | h | particle.h | #ifndef PARTICLE_H
#define PARTICLE_H
#include <stdio.h>
#include "vector.h"
#include "gl_texture.h"
// Creates an ARGB color
#define ARGB(A, R, G, B) ( (int)((A & 0xFF) << 24 | \
(R & 0xFF) << 16 | \
(G & 0xFF) << 8 | \
(B & 0xFF)) )
// Gets the A, R, G, and B from an ARGB color ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.