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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9b83e8b84abe3ca87a4b766dcb5ffb10ecc81bc9 | 61397d5b4978b50ee91f2a746f3cdb17df37ccbe | /TINA1/C Fabled Rooks.cpp | 2d839344794e36a2ac8cbf50718da2fee801127a | [] | no_license | TraceIvan/backup-copy-of-my-acm-code | 0cdb70a492e10c00651faf267b95cbdfb814279a | 83dbe0f7e7d9872fed5a5fcebc27e932ca60d7c3 | refs/heads/master | 2021-08-27T22:11:11.145896 | 2017-12-10T13:43:49 | 2017-12-10T13:43:49 | 113,750,162 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,740 | cpp | C Fabled Rooks.cpp | #include<iostream>
#include<algorithm>
#include<memory.h>
using namespace std;
const int maxn = 5005;
struct node
{
int id;
int xl, yl, xr, yr;
int x, y;
}ch[maxn];
bool vis[maxn];
int n;
bool flag = true;
void CalX()
{
memset(vis, 0, sizeof(vis));
int r = 1;
for (int i = 0; i < n; i++)
{
... |
441dce7039d6d0abc853883c586eed975029a6ad | c687d488bcf1e3eca06a2dbb67c5a21b67957a5e | /Source/utilityfunctions.cpp | 6379c2d9c427718ea5383a3a8a1ffaea48391783 | [] | no_license | roszar351/My_Zork | a4941155c8e00324aa647cad9c16489ce149664b | 2c195e7cd557b5573af9bcc2d5323c9a852e5feb | refs/heads/master | 2020-06-18T09:05:47.949303 | 2019-07-10T18:00:57 | 2019-07-10T18:00:57 | 196,244,574 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 919 | cpp | utilityfunctions.cpp | #include "utilityfunctions.h"
string util::fTs(float &num)
{
int temp = int(num * 100);
return to_string((int(num))) + "." + to_string(temp % 100);
}
// Not used
string util::toLower(const string &s)
{
string result = "";
for(unsigned int i = 0; i < s.size(); i++)
result += char(tolower(s[i]))... |
f376ff17d6070adb07cbf3bd6095130c6c708794 | d15b3124ef9c8bc9aaabad2981eefd3458f3034a | /Object Oriented Programming/project01/project01/project01/Header.h | 591b32c3727b62aa4740e489955d44e85f40a8c1 | [] | no_license | Snochy/MainWorks | f24c8c1ffb936bba6b1bcffb68bf054767c75e2f | 5f0ee80d17b39609d1736472c03312ca793585b8 | refs/heads/master | 2021-01-10T15:45:50.780276 | 2016-03-23T22:54:30 | 2016-03-23T22:54:30 | 49,404,777 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | h | Header.h | // The header file contains class definitions and function declarations
// Author: Zachary Thorpe
// Course: CS 1410
// Project: Project 01
// Date Last Modified: 1/9/2016
// I declare that the following source code was written
// solely by me, or provided by the instructor.
// I understand that copying any source
/... |
6083516398749534022c8f6f2cda89f6dbff9478 | 3ea4848953688c5ff2ca0c3a79b26372cc839dc8 | /generators/Heawood.h | 35116f436e52aa8b2212d09264f40f2f2755a556 | [] | no_license | rostam/CGTea | a612b758b3d4448062cbd12b02fe3f0a5ae40f99 | 56291e8c7c5ad54e3d29aaf7a07caf0e4e4f6d57 | refs/heads/master | 2023-08-05T09:54:07.123882 | 2023-07-20T10:39:41 | 2023-07-20T10:39:41 | 212,271,988 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,168 | h | Heawood.h | //
// Created by rostam on 03.07.20.
//
#ifndef CGTEA_HEAWOOD_H
#define CGTEA_HEAWOOD_H
#include "GeneratorInterface.h"
class Heawood : public GeneratorInterface {
public:
explicit Heawood() : GeneratorInterface() {};
Graph generate(unsigned int n, unsigned int k) override {
Graph g;
for (i... |
f8a94220b16af8a96a1eb280384244481102d416 | 34d807d2bc616a23486af858647301af98b6296e | /ccbot/language.cpp | 793a3eb976e3dcdeb411f5789327cf005db4915f | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Mofsy/ccbot | 65cf5bb08c211cdce2001a36db8968844fce2e05 | f171351c99cce4059a82a23399e7c4587f37beb5 | refs/heads/master | 2020-12-28T21:39:19.297873 | 2011-03-01T00:44:46 | 2011-03-01T00:44:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,904 | cpp | language.cpp | /*
Copyright [2009] [Joško Nikolić]
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... |
ef8f7a3c747beb97f52b51594103a87859c996bf | 9f97eba66ddbe9dbc85adc5825d326898f47bf87 | /main.cpp | 3b5f9d5a69dbcbf2bd8ba05efcf924582df40652 | [] | no_license | betrand37/10660779_linearSearch | b7f1602f1953ce7dbd4a4ab7c94f9f8fdab025d3 | 08ca22c137f0d0eb4f933678ba88e2dde1e0c978 | refs/heads/master | 2021-01-13T22:49:18.350727 | 2020-02-23T13:12:37 | 2020-02-23T13:12:37 | 242,519,456 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | cpp | main.cpp |
#include <iostream>
using namespace std;
int search(int arr[], int y, int z)
{
// initializing the array
int x;
for (x= 0; x < y; i++)
if (arr[x] == z)
return i;
return -1;
}
int main(void)
{
int arr[] = { 3, 4, 9, 12, 17 };
int z = 10;
int y = sizeof... |
fb147537c8be292b4656953e8e697bc592c4f829 | b3a693cb2c15f95133876f74a640ec585b7a0f62 | /UnacademyFreeLiveClass/Matching.cpp | e401c6ff48e48ac7e4abe3d2c863788d9fab0667 | [] | 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 | 1,013 | cpp | Matching.cpp | #include<iostream>
#include<vector>
#include<cstring>
#define ll long long int
#define mod 1000000007
ll dp[22][(1<<22)];
ll f(std::vector<std::vector<int> > compat, int i, int mask, int n) {
if(i == n+1) {
if(mask == 0) return 1; // one possible way found
return 0; // no possible way found for thi... |
5d11012cf3a6c5f84649436a671bf9ab5697ac8c | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/3f/d09d21e8adfe72/main.cpp | ed7a1df07340e4720567f89d47f510b81057c4dd | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 97 | cpp | main.cpp | void foo(int&) {}
void foo(int const&) = delete;
int main()
{
int const i {};
foo(i);
}
|
9171f007eeb90aa47e42e008583c746003969cb5 | c8b6306ed27d9e3627a271f77934d0acff5f196b | /controller.cpp | b6468ba61501d63a890bbf35d13fb1e17daf99ac | [] | no_license | opeykin/md2loader | ccd19c2dda51743d9f7591ccdf0ec7e4acd9adee | 2b9e86dac9d4465d2c74e5f36c14df36b3da94bd | refs/heads/master | 2020-04-26T13:13:17.871741 | 2013-01-05T14:00:16 | 2013-01-05T14:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,973 | cpp | controller.cpp | #include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <GL/glew.h>
#include <GL/glfw.h>
#include <iostream>
#include "controller.h"
using namespace std;
using namespace glm;
Controller::Controller(Model_MD2& model)
: model(model) {
position = glm::vec3(0);
initial_rotation = glm::rotat... |
59eeeb8526efaf5594cc49f361ad0d92a4bda8be | cf04d132b6ac41dd3d12d7d5aac4ea311cf52a72 | /D3D9RenderWare/HLSLLBuffer.h | 8e2031b8a64883dc3c7de653b24b187559f2c946 | [] | no_license | salhyun/LPPRendering | d3ae6725d4e084bc038ef480b9958aee6f95b880 | c4d7546736771f8ce5e6830faad00d742cd51db3 | refs/heads/main | 2023-06-19T03:33:07.224343 | 2021-07-20T05:04:09 | 2021-07-20T05:04:09 | 350,982,556 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 705 | h | HLSLLBuffer.h | #pragma once
#include "D3D9Shader.h"
class CHLSLLBuffer : public CD3D9Shader
{
public :
D3DXMATRIX m_matInvVP ;
D3DXVECTOR3 m_vLightColor ;
D3DXVECTOR3 m_vLightDir ;
D3DXVECTOR3 m_vLightPos ;
D3DXVECTOR3 m_vCameraPos ;
float m_fLightRange ;
protected :
D3DXHANDLE m_hmatInvVP ;
D3DXHANDLE m_hvLightColor ;
D3... |
ec71459f9b5efa0c1b83ddf07752ccea8287239f | b8ff97758bb19ff034c817541dbde39fedcbdd25 | /Contra/Source/BomBay.h | 5cece5d86a02500725a7dbbce2f3234e20855af2 | [] | no_license | dannylam2502/Portfolio-code-snippet | 172e36e136ac77f138db48b6313616ab6df8d1ae | 70aa667891043579d2f531b3f9ea8310dc8ff684 | refs/heads/master | 2020-05-05T09:23:23.170852 | 2019-07-10T16:17:54 | 2019-07-10T16:17:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 330 | h | BomBay.h | #pragma once
#include "Enemy.h"
#define BOM_WIDTH 14
#define BOM_HEIGHT 14
class CBomBay :
public CEnemy
{
public:
CBomBay();
CBomBay(int type, float x, float y, int width, int height);
~CBomBay();
void Update(float dt);
void ProcessAlive(float dt);
void Attack();
D3DXVECTOR3 CheckTarget();
D3DXVECTOR2 Fin... |
4f1f5a1eff1d07ad3321066b1c3aa711d623c455 | 13cede01e4686d1bb167ec8b896b4f70f2d6b6c4 | /Modules/ServerModule/customserverservice.cpp | 06cbb9c43e2a6d1fa1f2fea91b77825f46e9fe22 | [
"MIT"
] | permissive | OwNet/qtownet | 0b99861f28ac39257d7f8e1ae20500aaf4756512 | bcddc85401a279e850f269cdd14e2d08dff5e02e | refs/heads/master | 2016-08-03T01:55:51.915765 | 2013-07-30T14:12:56 | 2013-07-30T14:12:56 | 11,766,447 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,230 | cpp | customserverservice.cpp | #include "customserverservice.h"
#include "irequest.h"
#include "clientservicecall.h"
#include "irouter.h"
#include "iproxyconnection.h"
#include "isettings.h"
#include <QStringList>
CustomServerService::CustomServerService(IProxyConnection *proxyConnection, QObject *parent) :
QObject(parent),
m_proxyConnect... |
80559f7c297b63491cee6a84e4ce894af33cbfdf | 6baa2d08e433da59e4b0fcb7bfda95fdc0ca3a4e | /codeforces/344/A.cpp | c512a4fa2291ea6a3f22ce2b9bc0a649c0303066 | [] | no_license | raihankhan/ACM_Problem_Solving | 7ce4d7b91ab2e481d849d0b0e5b1aebbb452623f | 57760c3f869373c289e8af3228a3f2a211f0e447 | refs/heads/master | 2023-02-16T10:08:50.792808 | 2021-01-17T09:58:43 | 2021-01-17T09:58:43 | 323,376,030 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 301 | cpp | A.cpp | #include<bits/stdc++.h>
using namespace std ;
int gcd(int x,int y);
int main()
{
int n,i,cnt=1;
string s , p ;
cin >> n ;
cin >> s ;
n--;
while(n--)
{
cin >> p ;
if(s[1]==p[0])
cnt++;
s=p;
}
cout << cnt << endl;
return 0;
}
|
5fdf13929c6411fcb72041ca151cf228c3cc63fb | 67cee5f50fa6e34a68a3e9a4d89c4c24e435be88 | /mainwindow.cpp | 985d15dbb7d7787e318ead84476a0777beb8149e | [] | no_license | Y-Levchuk/Com | 92bde63b3b55ce88ce040009f5c132fc08829207 | be5ee7e31b9ad5656433b9425638123aa2c95951 | refs/heads/master | 2020-11-24T17:02:09.011034 | 2019-12-17T00:02:47 | 2019-12-17T00:02:47 | 228,261,455 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,349 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QTreeWidgetItem>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_treeWidget_itemDoubleClicked(QTreeWidgetItem *item, i... |
ce608946532e2d6eb5b70abc049100a930efea1f | 44c5e3587d3a08560468f89d31e5b634917818a9 | /Menu.h | 7c5e24233564ab6eee2e9fc7f503368a45ffd791 | [] | no_license | SaarAvraham/Tetris | 86871b54276fbd5bcab8904495098d1e288a1ae6 | d5dd4ce5c2c0b003bc5fbdd162819c2b0f8d59cf | refs/heads/master | 2020-03-24T08:09:10.771566 | 2018-07-27T15:02:53 | 2018-07-27T15:02:53 | 142,585,826 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,605 | h | Menu.h | #pragma once
#include "Point.h"
#include "Gotoxy.h"
#include <iostream>
#include "Shape.h"
enum StartPointX { StartPointX=0 };
#define SLEEP 250
#define MIN_SLEEP 77
#define MAX_SLEEP 420
#define SLEEP_CHANGE 120
#define LINE_STRING 5
#define SQUARE_STRING 7
#define JOKER_STRING 2
#define BOMB_S... |
d550499e2e06c2b95c3a17379b18296d41df8f3a | 775acebaa6559bb12365c930330a62365afb0d98 | /source/public/includes/Trace.h | ecf8f62cc9b469144e488bf80cca1ff0fc48c08a | [] | no_license | Al-ain-Developers/indesing_plugin | 3d22c32d3d547fa3a4b1fc469498de57643e9ee3 | 36a09796b390e28afea25456b5d61597b20de850 | refs/heads/main | 2023-08-14T13:34:47.867890 | 2021-10-05T07:57:35 | 2021-10-05T07:57:35 | 339,970,603 | 1 | 1 | null | 2021-10-05T07:57:36 | 2021-02-18T07:33:40 | C++ | UTF-8 | C++ | false | false | 6,141 | h | Trace.h | //========================================================================================
//
// $File: //depot/devtech/16.0.x/plugin/source/public/includes/Trace.h $
//
// Owner: EricM
//
// $Author: pmbuilder $
//
// $DateTime: 2020/11/06 13:08:29 $
//
// $Revision: #2 $
//
// $Change: 1088580 $
// ... |
e6ed26fa40b8e08c4460640bf195615be37b6be6 | 438fdcf2cbc55ceb7383b5b09b99ab24be1cce49 | /src/graphicsframe.h | 1f34209f548c84a7e0b2f061203983e64d270056 | [] | no_license | Squirtle/lazy-newb-pack-qt | 1e900bab8a3c39e273fe8a49073e04c325563e09 | cddbf5bacaaf05b7f8b9dcc4290c0d481b3bddd4 | refs/heads/master | 2020-05-19T13:19:13.535807 | 2012-08-26T22:48:25 | 2012-08-26T22:48:25 | 3,108,045 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,045 | h | graphicsframe.h | /* advancedframe.h
* This is the header file which contains the code for the "Graphics" tab.
*/
#ifndef GRAHPICSFRAME_HPP
#define GRAHPICSFRAME_HPP
#include <QtGui>
#include "functions.h"
class ChangeFrame : public QGroupBox
{
Q_OBJECT
public:
ChangeFrame();
private slots:
void install_pressed();
v... |
2e354f1d881f630db2ca28bf58bd26dc91939a02 | 79edbfb898c02c92559f7b0a63a713f1dbb77518 | /cparser/cexception.cpp | 19be28a30dc1e67b7cd6371c44cd386d528a69f7 | [
"MIT"
] | permissive | bajdcc/clibalgserver_mac | 9cd076a5444ca80aaee82369364c9ed5ec3fb2e7 | 7a55d14eea3a2dab86cd0c73fbe7ae27bfd2e3b5 | refs/heads/master | 2020-08-07T10:03:21.960396 | 2019-10-08T04:07:49 | 2019-10-08T04:07:49 | 213,403,402 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 936 | cpp | cexception.cpp | //
// Project: clibparser
// Author: bajdcc
//
#include <cassert>
#include "cexception.h"
namespace clib {
std::tuple<ex_t, string_t> ex_string_list[] = {
std::make_tuple(ex_none, ""),
std::make_tuple(ex_unit, "UNIT ERROR"),
std::make_tuple(ex_ast, "AST ERROR"),
s... |
617d79d798025c6eb44c5e4dd36e20cb010adb81 | 9805b07c7e75eb8a16cc6b9cb0746dc0a4075729 | /ReadyState.h | 446a6ad8d60fb2b8a94a4d78609a0d44c04035cf | [] | no_license | stephenquan/ArcGISSignInIWA | 3e28b3c8aea611da54123954578dcf4553e67187 | 264774ed3d0752e780b65effc0f431dea1165161 | refs/heads/master | 2023-02-24T12:21:50.755475 | 2021-01-28T07:53:01 | 2021-01-28T07:53:01 | 333,269,929 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 423 | h | ReadyState.h | #ifndef __ReadyState__
#define __ReadyState__
#include "EnumInfo.h"
class ReadyStateEnum : public EnumInfo
{
Q_OBJECT
public:
ReadyStateEnum(QObject* parent = nullptr) :
EnumInfo(parent, QMetaEnum::fromType<ReadyState>()) { }
enum ReadyState
{
UNSENT = 0,
OPENED = 1,
... |
b15dc852f65ddc1090a0a7234675d7478b3cdee4 | 63566afb68c98ac97ce8095cf1b0e20f7576296a | /src/cube_data.cpp | d37dd46a998ae8db15166ebd939b3af25e807003 | [] | no_license | williamho/rubiks | bf82436ff350ee310483658befddb73d79f74cfb | 5b8e14ee960009dea5a348da53c0ca818f41e6cb | refs/heads/master | 2021-03-12T23:17:38.020328 | 2013-03-30T01:28:39 | 2013-03-30T01:28:39 | 8,865,908 | 1 | 2 | null | 2013-03-30T01:28:34 | 2013-03-18T22:41:36 | C | UTF-8 | C++ | false | false | 2,587 | cpp | cube_data.cpp | #include <Angel.h>
#include "rubiks.h"
// Use a bunch of macros to define a single cube
/* 5-------6
/| /| y
1-------2 | |/
| | | | --+--x
| 4-----|-7 /|
|/ |/ z
0-------3 */
#define CUBE_P0 -0.5, -0.5, 0.5, 1.0
#define CUBE_P1 -0.5, 0.5, ... |
be6ec033bc89009394b8e874f3a91068524bd1e2 | 5b8fad490b239dd1a9d16d508226fe4cf7532b36 | /TicTacToe.cpp | 0d560bb998038361dbbe954d67cc085c089a3c46 | [] | no_license | amsok/VirtualClassBoard | def650c507f91872bd859de56895959f40cb3057 | 5e55020e72a89520aec21e072ab3f38056130c34 | refs/heads/master | 2020-03-11T02:21:04.172297 | 2018-04-16T09:10:39 | 2018-04-16T09:10:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,941 | cpp | TicTacToe.cpp | #include <iostream>
#include <iomanip>
#include "TicTacToe.h"
#include <cstdlib>
using namespace std;
Tic::Tic(int k):_warunekwygranej(2)
{
int N=3;
rozmiar_planszy=N;
_plansza= new int*[N];
for(int i=0;i<rozmiar_planszy;i++){
_plansza[i]= new int[rozmiar_planszy];
}
for(int j=0;j<rozmiar_planszy;j++){
for(int i=... |
574b25a371e07f75c016879ae1bdd9b540893e43 | 7e9b7ab3ac268185e46d160f0597706d4bbe4988 | /binarygenerator.h | 70fa046cb5e8097fb1c71b9a6f6dae6332967746 | [] | no_license | GustavoOS/C--Compiler | 134e8631e6099356ce1c87628cdf293c5f9f8303 | 916f4af88ab3bee69cd2993b6e862bfbce39b991 | refs/heads/master | 2021-06-27T14:05:53.531837 | 2020-12-10T16:10:09 | 2020-12-10T16:10:09 | 75,690,765 | 0 | 1 | null | 2020-12-10T16:10:10 | 2016-12-06T03:25:44 | C++ | UTF-8 | C++ | false | false | 1,014 | h | binarygenerator.h | #ifndef _BINARY_GENERATOR_
#define _BINARY_GENERATOR_
#include <iostream>
#include <vector>
#include "instructions.h"
#include "mifgenerator.h"
#define MEMORY_SIZE 8191
#define BIOS_SIZE 256
#define STORAGE_SIZE 32768
class BinaryGenerator
{
public:
virtual void run(std::vector<Instruction *>) = 0;
void setO... |
465f865d56456f9812a338d142ea7be9fa05fc9e | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /MuonSpectrometer/MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/sTgcReadoutElement.h | 12e869bd182564926bc47e9ef66f2d66689fb106 | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,665 | h | sTgcReadoutElement.h | /*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
/***************************************************************************
sTgc Readout Element properties
-----------------------------------------
***************************************************************************/
#ifndef ... |
ba941c692574eb73e52f502b076c547afaf1c1aa | 8f91c5a98c3b2314d3ea4401457f849bfa541fab | /src/server/Server.cpp | 1e330ae0dbac848585e57a95bb94d52f949f3675 | [] | no_license | qcq/Chat | dc833905f5c856c0f96052ba90f5e9800276c114 | 9b7d50de64010ad16e4ed6f8b04b9616ce356770 | refs/heads/master | 2022-08-30T01:48:09.742728 | 2020-05-23T10:58:01 | 2020-05-23T10:58:01 | 255,008,134 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,453 | cpp | Server.cpp | #include "Server.hpp"
#include <fstream>
#include <iostream>
#include <sstream>
#include <util/AnsiColors.hpp>
#include "UserManager.hpp"
namespace server
{
Server::Server() : port_(7890), NAME_LABEL("name"), SEPARATOR("=")
{
// https://github.com/gabime/spdlog/wiki/0.-FAQ
/*
Source information do not ap... |
1233cb1c9f7bdd834b43e535f90d8b3f7dee06ce | 5f6312c591ef9b68f0b110f2ca2972ac40f37508 | /1007.cpp | e996394499739220165dc4400543c6c8dfe77d6c | [] | no_license | GolThr/PAT2019 | 275b9b4c57ce441fe9339ff4f76e86b41242598a | 8d746327626d43391beeacde5f6e22d755045790 | refs/heads/master | 2020-07-14T10:06:17.683432 | 2019-12-07T03:31:47 | 2019-12-07T03:31:47 | 205,297,222 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,196 | cpp | 1007.cpp | /*****************************
*注意:
1. 提交后最后一个测试点运行超时,解决方法是在判断素数时精简
2. 只能被1和自身整除的数是素数,1不是素数
3. 判断素数时,只需判断该素数一半数是否整除它即可(如5,只需判断5是否被1,2,3,即5的开方)
*****************************/
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int i, j, n, harf, pre = 2, cnt = 0;
bool isPrime = true... |
b35fdc236e9ed86667d1f832bf998018a92ff394 | dd52aba98c2addf317ed4eace1058ed5fb00fe20 | /Coding/C++/Code/Pointer/02.cpp | c0dee3af5ecb0748b6cc0497f50eae96f30568e2 | [] | no_license | bovenson/notes | 9ab16bc1d282ae9e268042b7bb9e8b1ac79df584 | 387074588c50973b6fb8645f859ae9ca29b4df4c | refs/heads/master | 2023-01-19T08:21:34.968411 | 2020-11-18T15:16:42 | 2020-11-18T15:16:42 | 88,229,770 | 8 | 2 | null | 2023-01-11T00:56:03 | 2017-04-14T03:33:49 | Java | UTF-8 | C++ | false | false | 293 | cpp | 02.cpp | #include <iostream>
using namespace std;
int main () {
char* a, b;
char *c, d;
cout << "sizeof(a):" << sizeof(a) << endl;
cout << "sizeof(b):" << sizeof(b) << endl;
cout << "sizeof(c):" << sizeof(c) << endl;
cout << "sizeof(d):" << sizeof(d) << endl;
return 0;
}
|
6ead3c228a66ac6f2a0713fd52c0bc625e3eb127 | a5f3b0001cdb692aeffc444a16f79a0c4422b9d0 | /main/svx/source/svdraw/svdmodel.cxx | 35146ad94101df74de56782608db822e3e80c793 | [
"Apache-2.0",
"CPL-1.0",
"bzip2-1.0.6",
"LicenseRef-scancode-other-permissive",
"Zlib",
"LZMA-exception",
"LGPL-2.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-philippe-de-muyter",
"OFL-1.1",
"LGPL-2.1-only",
"MPL-1.1",
"X11",
"LGPL-2.1-or-later",
"GPL-2.0-only",
... | permissive | apache/openoffice | b9518e36d784898c6c2ea3ebd44458a5e47825bb | 681286523c50f34f13f05f7b87ce0c70e28295de | refs/heads/trunk | 2023-08-30T15:25:48.357535 | 2023-08-28T19:50:26 | 2023-08-28T19:50:26 | 14,357,669 | 907 | 379 | Apache-2.0 | 2023-08-16T20:49:37 | 2013-11-13T08:00:13 | C++ | UTF-8 | C++ | false | false | 56,441 | cxx | svdmodel.cxx | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
c88c25d18691e89653339d297824bf3f7813e9b9 | bb705eea53fccdb9fad5cdae1190d19c6249918c | /0_1_Knapsack_Problem.cpp | 2884cea0b969a7c30b1b6e90b44a327b7344d4a1 | [] | no_license | niteshcse14/geeksforgeeks | f1e4e935f7d420caed1c0a142798dae5d09e0dd8 | 99fbfcc6294ff8e148bc8a1f921c0a5ee7e87590 | refs/heads/master | 2020-03-29T13:49:21.000669 | 2018-09-23T12:50:34 | 2018-09-23T12:50:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 739 | cpp | 0_1_Knapsack_Problem.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int T, N, W;
cin >> T;
while(T--)
{
cin >> N >> W;
vector<pair<int, int>> vect;
int val[N], wt[N];
for(int i = 0; i < N; i++)
{
cin >> val[i];
}
for(int i = 0; i < N; i++)
{
cin >> wt[i];
}
int arr[N + 1][W + 1] = { 0 };
for(int ... |
2a991bea6ec1b1650e8494b696dd3c0ff1df940b | da169b698cfcec34fcdb53127850b5293d52299c | /Test1.re | 6d5cc7d9fdc091ffea9c1141bf9af3aa21b02bd3 | [] | no_license | jfrolich/bsc-repro | 9ad45dbfcef29f7a7090df3c0923ea8f76981bdc | 1dab734006495dba5bf7767e2c124d4246ae8d09 | refs/heads/master | 2022-07-30T17:37:21.900229 | 2020-05-19T15:50:06 | 2020-05-19T15:50:06 | 265,291,629 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20 | re | Test1.re | Test2.print("Bla");
|
d1b6516b17d115e48703d3ad727a7b89167a949b | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_old_new_old_log_696.cpp | 8cd1af4a24e2abe911f95fba6acc736d8c4fa206 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26 | cpp | Kitware_CMake_old_new_old_log_696.cpp | sprintf(buf, "%s*", name); |
dedb183f396e98cd383de521c21a3ab45e2b56fc | 1f04d55cfba07f359ed41e3eb9c07812a3874813 | /알고리즘문제해결전략/284_여행짐싸기문제를해결하는동적계획법알고리즘.cp.cpp | 5612eb3d85aa06b08a64f549b7f588643df92d3f | [] | no_license | ssjf409/algorithm | 22c63ad3d6ff57bba696ab535ca87dad366f9624 | 1199a967d4a285d7b89910dbfff52fe29fca5edd | refs/heads/master | 2021-07-25T18:43:54.193772 | 2020-06-21T18:11:39 | 2020-06-21T18:11:39 | 191,801,196 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,227 | cpp | 284_여행짐싸기문제를해결하는동적계획법알고리즘.cp.cpp | #include <iostream>
#include <vector>
#include <cstring>
using namespace std;
int N, capacity;
int volume[100], need[100];
int cache[1001][100];
string name[100];
//캐리어에 남은 용량이 capacity일 때, item 이후의 물건들을
// 담아 얻을 수 있는 최대 절박도의 합을 반환한다.
int pack(int capacity, int item) {
// 기저 사례 : 더 담을 물건이 없을 대
if(item == N) ... |
9d2e49c5574837fe52fe7a67a8377d30175bd624 | 7483c3e9df15504b0d9ea15fa13280120a1b2a26 | /solved/eco/eco.cc | de487c40d107b34f36abc5749de7c03f837b66c7 | [] | no_license | byingyang/brads-solved-uva-problems | d2fa1b748c56f42e02e5850109956f744a6caa83 | 98f9f67d3ef83f552e29f4948c3331ed1634b463 | refs/heads/master | 2021-05-27T17:10:51.406169 | 2011-10-08T20:46:39 | 2011-10-08T20:46:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 802 | cc | eco.cc | #include <iostream>
using namespace std;
class farmer {
public:
unsigned int animal_count;
unsigned int eco_friendliness;
unsigned int farm_space;
farmer(unsigned int a_cnt, unsigned int eco_fr, unsigned int farm_sp) : animal_count(a_cnt), eco_friendliness(eco_fr), farm_space(farm_sp) {
}
float value() {
... |
47f54eb1f7ccf3eb0510b183e5f13b86a0935300 | a794f157aa6dec0d215d6c6719af6426746817db | /lab/1/main (4).cpp | 7570e46019c5503eb90504cb08cb1d3a73effe2d | [] | no_license | manideep1821/pscp-lab | ba78d3e96d841ccd05fb50ee0b0679f19536fb2c | 8f67b23833829b0b4286966cd8c9959abf6cac25 | refs/heads/main | 2023-03-20T20:32:09.785896 | 2021-03-13T15:10:25 | 2021-03-13T15:10:25 | 343,292,824 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 181 | cpp | main (4).cpp | #include<iostream>
using namespace std;
int main()
{
cout<<"*\t*\t*\t*\t*\t\n";
cout<<"*\tP S C P\t*\n";
cout<<"*\t*\t*\t*\t*\t\n";
return 0;
} |
8c08a0ad702b18012af272dccbb07ccaba14d351 | ed2ea2c129957a22d658d4faf6e045adf9e8fdcc | /city-client/source/GraphicsScene.cpp | ccb2cf9730c8acdeaf799e5c56a54a94b41545d8 | [
"MIT"
] | permissive | thewizardplusplus/city | 26a9f45c6eca705f44e6490aa291222cb4f3abb8 | 5a166703a15d9d4453059e19bb5577cb722f2489 | refs/heads/master | 2021-01-01T20:02:14.135407 | 2014-04-27T07:47:00 | 2014-04-27T07:47:00 | 16,868,868 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 899 | cpp | GraphicsScene.cpp | #include "GraphicsScene.h"
#include <QtGui/QPainter>
#include <cmath>
GraphicsScene::GraphicsScene(QObject* parent) :
QGraphicsScene(parent)
{}
void GraphicsScene::drawBackground(QPainter* painter, const QRectF& rectangle) {
painter->fillRect(rectangle, QColor(0x22, 0x8b, 0x22));
}
void GraphicsScene::drawForegrou... |
1ea010231cc6ae710c5ec86922ee6d314fe2e890 | 3332f2538f1e0782d4d3fa7ea461eb89af263f94 | /cpp/USRP_server_diagnostic.cpp | 58c30c581f4c243496d2868fb2c1421907e1bfa6 | [
"Apache-2.0"
] | permissive | LorenzoMinutolo/GPU_SDR | e3f0e4d3d2217d63f571c9f8ccb84a30fed47ab0 | 332aa238f3f583f0d452c39c39abb7e29fd3a1e1 | refs/heads/master | 2023-01-23T14:07:01.545062 | 2020-11-07T00:28:18 | 2020-11-07T00:28:18 | 205,248,054 | 2 | 2 | Apache-2.0 | 2020-11-07T00:28:19 | 2019-08-29T20:47:56 | HTML | UTF-8 | C++ | false | false | 22,143 | cpp | USRP_server_diagnostic.cpp | #include "USRP_server_diagnostic.hpp"
//Set the htread name reported in the logging.
void set_this_thread_name(std::string thread_name){
boost::log::core::get()->add_thread_attribute("ThreadName",
boost::log::attributes::constant< std::string >(thread_name));
pthread_setname_np(pthread_self(), th... |
76649dcf12b8c3ac352b130ccffb898675dcfaee | c80df697c0b66cd58a039c928574926bd6161a36 | /runtime/vm/compiler/assembler/assembler_arm.h | dd0d92ffb066410c193e855342468a1374ee44c8 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-unknown"
] | permissive | dart-lang/sdk | d4e50700dfc54b33c0a7a09fab1aa9623ebc84e5 | b25873f11c68772408f6a4aea5f5c961f31ac9f7 | refs/heads/master | 2023-08-31T11:13:09.400940 | 2023-08-31T09:10:57 | 2023-08-31T09:10:57 | 35,726,310 | 10,701 | 2,079 | BSD-3-Clause | 2023-09-14T10:34:15 | 2015-05-16T14:14:58 | Dart | UTF-8 | C++ | false | false | 63,936 | h | assembler_arm.h | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_ARM_H_
#define RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_... |
678ddc800a963151158e0c2fe847e90971af76af | 85c261b62ac353640081556623be8a2994c2160b | /algorytmy_macierz.hh | ffb5f8c579dd881941ed4b31c9328ad29bd711ef | [] | no_license | filip452/Grafy | 15b79d75a7f672097396accd2f07ff1993f552ea | d10161e35facf025681013c6133486dac2739657 | refs/heads/main | 2023-04-25T15:42:14.634634 | 2021-05-10T20:27:11 | 2021-05-10T20:27:11 | 366,167,102 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | hh | algorytmy_macierz.hh | #ifndef ALGORYTMY_HH_INCLUDED
#define ALGORYTMY_HH_INCLUDED
#include "graf_macierz.hh"
template<int ROZMIAR>
graf_macierz<ROZMIAR> prim(graf_macierz<ROZMIAR>);
template<int ROZMIAR>
graf_macierz<ROZMIAR> kruskal(graf_macierz<ROZMIAR>);
#endif // ALGORYTMY_HH_INCLUDED
|
2509a3626c9d3be7d90a48d6b65e085ef50133d6 | ab78ea45113b918aa49c20cc2ccebe58def3bf6f | /2DProject/Src/Application/Scene.h | 4a0e632d49123fce24eb04af2c13c75d764e3071 | [] | no_license | linmengtingTW/2DGame | 167ae7771679bad083d46d0db5676a646561fa78 | 2b7e05d8109f1b62b479ef7d34041a7ae81ef595 | refs/heads/master | 2023-05-29T00:18:40.037552 | 2021-06-18T09:15:38 | 2021-06-18T09:15:38 | 378,081,555 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 5,408 | h | Scene.h | #pragma once
//#include "Particle.h"
struct tPlayer
{
float mPosX;
float mPosY;
float mMoveX;
float mMoveY;
int mAnime;
int mAnimeWait;
KdTexture mTex;
Math::Matrix mMat;
bool mMoveFlg;
};
struct tObject
{
float mPosX;
float mPosY;
float mMoveX;
float mMoveY;
bool mFlg;
KdTexture mTex;
Math::Matrix mM... |
57bae2d189fb0ebc66f7a8f7a3a40d69e9c6a806 | c80983f5592d226df6dd6f39c3d3030c5fe5cc14 | /regional-train/BAPC 2016/B.cpp | 53cf2705c38eaf496ac1e56ce51e7545350e1460 | [] | no_license | shanjiaming/Competitive-Programming | 161679137c428865c76ca6f3608eaaef20ac1b4c | dab76a869a71c2aaa60a701241a6186e1c6b8a11 | refs/heads/master | 2022-11-30T03:16:01.304545 | 2020-08-11T03:29:34 | 2020-08-11T03:29:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 746 | cpp | B.cpp | #include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define ll long long
#define maxn 300005
#define fr(i,j,k) for(int i=j;i<k;i++)
#define f(n) fr(i,0,n)
#define f1(n) fr(i,1,n+1)
#define ms(i) memset(i,0,sizeof(i));
#define ms1(i) memset(i,-1,sizeof(i));
#define F first
#define S second
int main(){
... |
26be4499aba757e0204e9a512dc17dadf2bc9d60 | 79504be8ce2384b37d5e040b0dd9c8fceebbe686 | /include/rom.hpp | 50423b650c56924ab0b668ad15d4b6a9de082329 | [] | no_license | siddharthseth/sGB-emulator | 9afa9fbc3776c7ea3267b2d8e570b7cc92be5b13 | 88ee1f1e5db3bf1a266daab6bef76a607aabc48c | refs/heads/master | 2021-01-01T06:08:02.602438 | 2017-09-04T08:34:08 | 2017-09-04T08:34:08 | 97,364,274 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 938 | hpp | rom.hpp | #ifndef ROM_H
#define ROM_H
#include <string>
#include <vector>
// ROM types listed by type
// this is read from memory location 0x0147
enum romType {
ROM_ONLY=0x00,
ROM_MBC1=0x01,
ROM_MBC1_RAM=0x02,
ROM_MBC1_RAM_BATT=0x03,
ROM_MBC2=0x05,
ROM_MBC2_BATTERY=0x06,
ROM_RAM=0x08,
ROM_RAM_BATTERY=0x09,
ROM_MMM01=0... |
d9be85197a0dcb3d63ee5c2d7ee64dfcea466ca6 | 44a14a362046c59894a4f3fbaf0ad451a125a911 | /Code/temp.cpp | 3897618a50e07e90f6822adf3fc4205fc3a7074d | [] | no_license | PAF-KIET-GPGPU-Programming-Fall-2018/bonus-assignment-ss | 007741ad4a35a3b9da242b0102ef8e670075e901 | 1479f340577467f87b35bbb2f9387ba0be582373 | refs/heads/master | 2020-04-04T13:17:57.067825 | 2018-12-10T10:10:27 | 2018-12-10T10:10:27 | 155,956,707 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,069 | cpp | temp.cpp | void Rijndael_GPU::EncryptBlock(const unsigned char * datain1, unsigned char * dataout1, const unsigned char * states)
{
const unsigned long * datain = reinterpret_cast<const unsigned long*>(datain1);
unsigned long * dataout = reinterpret_cast<unsigned long*>(dataout1);
//TODO: move these to initGPU
int dev... |
cfa81eb2dbadc30daf94e172696ca39d92d370f5 | 1628234828f7f7b9d06a118587fe803b103e63d6 | /1145.cpp | ca70c7378fe720d8cde3f9999121ce28f74707f8 | [] | no_license | DeveloperKits/URI | 655f010978cc4bab40e73c9a841c9c81a658c2f9 | b6c5de1951029cdae95d5ee008ba94bc8c0d30f3 | refs/heads/main | 2023-02-10T07:50:28.361663 | 2021-01-03T09:58:10 | 2021-01-03T09:58:10 | 326,258,911 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409 | cpp | 1145.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int x,y,i,j,c=1,d=0;
cin>>x>>y;
for(i=0;i<=y;i=i+x)
{
for(j=c;j<=x;j++)
{
d++;
cout<<j;
if(d<y)
{
cout<<" ";
}
}
cout<<"\n";
... |
af291a36e4522c945d972c5b333595d88f5c3f57 | 087cbbd3099ff8fd8d2051c60461a0458333dbac | /practice/data_structure/CF610E.cpp | 297b4a538a1948cf17f00bab58fb3031ea207445 | [] | no_license | 1998factorial/Codeforces | 1046ffb2dbee582191fa59e7290c53e902c0af5c | f5b8139810e0724828e6ce7e26f3f8228589b00a | refs/heads/master | 2021-07-05T21:34:45.053171 | 2021-04-10T06:21:33 | 2021-04-10T06:21:33 | 228,158,437 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,942 | cpp | CF610E.cpp | #include <bits/stdc++.h>
using namespace std;
// we use a range tree to maintain the count of adjcent symbols
// and use lazy propogation to handel range update
const int maxn = 2e5 + 10;
const int maxsz = maxn * 4;
int N , M , K;
char a[maxn];
struct node {
int cnt[10][10] , lsym , rsym;
} tree[maxn * 6];
int laz... |
3daa994d0a11f49bbc05d50709527df252517112 | d6b0e0b1b5ba76760cba4fb0a65f726f1757133b | /Message/message.h | 45b7824f2c5aeedeba47bb742303041449cfed53 | [] | no_license | rafae11/DataStorage | 9d000872dde11155e4d3301f3b61925d3858441f | 28684310dcdbc5ecdc5760e99b7dea2f05d74c67 | refs/heads/master | 2021-01-10T04:49:47.262339 | 2016-03-20T23:50:32 | 2016-03-20T23:50:32 | 53,705,568 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 151 | h | message.h | #ifndef MESSAGE_H
#define MESSAGE_H
#include "message_global.h"
class MESSAGESHARED_EXPORT Message
{
public:
Message();
};
#endif // MESSAGE_H
|
76ee3fe3b7935ebd0831e8c1670f7f2e86ba4726 | 44f8bbdd825e95a2cb2487749ed33fbbd0dd9a0d | /src/bsEdit/bs/gr/Storeable.hpp | 0a8619d8d731b2aa12c68418adc1bc99094aceb8 | [] | no_license | rocketmagnet83/example | 2153efeae6f2f5881cce0a45dbc6449ce43ea4c9 | 525cef614b3ed95d6245404d4df3714cf66daf57 | refs/heads/master | 2021-06-12T17:45:39.625575 | 2020-04-09T12:42:42 | 2020-04-09T12:42:42 | 254,368,109 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 180 | hpp | Storeable.hpp |
#ifndef BS_SYS_STOREABLE_HEADER
#define BS_SYS_STOREABLE_HEADER
class Storeable {
public:
virtual void load() = 0;
virtual void save() = 0;
private:
protected:
};
#endif
|
1a5aaac1010584dc193e199ed9fc89500f41e62e | cfb705f3727ff2f53288269ae37bd2cb6687951d | /CAFCore/CAFxAODUtils/CAFxAODUtils/TQxAODUtils.h | 8ecc082671ad975e0c89f591ef4f2c5a54ab21f5 | [] | no_license | alessio94/di-Higgs-analysis | 395934df01190998057f7c81775209c5d32f906e | 79c793cc819df7c8511c45f3efe6bdd10fd966bf | refs/heads/master | 2023-02-17T05:44:59.997960 | 2023-02-13T18:02:42 | 2023-02-13T18:02:42 | 224,252,187 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 288 | h | TQxAODUtils.h | //this file looks like plain C, but it's actually -*- c++ -*-
#ifndef __TQxAODUtils__
#define __TQxAODUtils__
#include "xAODEventFormat/EventFormat.h"
#include "xAODRootAccess/TEvent.h"
namespace TQxAODUtils {
const xAOD::EventFormat* getMetaEventFormat(xAOD::TEvent* evt);
}
#endif
|
e4ad2f4e9599a63ae4c95dbdba3cd31566559846 | 80b02bff8cfa850dc60497db67e9ff263f671be6 | /proj/calc2dcmd/include/commands/mmPreview.h | 979f346191a968509b8a77149f3a4cf713822f21 | [
"MIT"
] | permissive | ogx/Calculation2D | 68a3188e59d9842647af0e00c52fefe036b16d06 | 79f9d05986227e4677a8f88309c2eb6512a3de69 | refs/heads/master | 2016-08-03T05:06:23.720417 | 2015-03-26T12:45:07 | 2015-03-26T12:45:07 | 3,526,351 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | h | mmPreview.h | #ifndef calc2dcmd_mmPreview_H_
#define calc2dcmd_mmPreview_H_
#include <commands/mmCommand.h>
#include <preview/mmImagePreviewOGL.h>
namespace mmCommands {
class mmPreview : public mmCommand {
public:
mmPreview(mmImages::mmImageStructureI * const p_psImageStructure);
virtual bool Run(std::wstring con... |
06555ccc0e5d7b176288f771324a44f3652e0e79 | d20cf7de868dfb2c53578a70d0dda21306167d72 | /data/preprocessed/test/student_76/sources/LogsMonitor.cpp | 22c5fbd25de0fec365c04cde8d7b9243a7f52cfc | [] | no_license | bulacu-magda/Alemia | 905a84ca79157fb657eb424e337b0303fd3323bd | 0fd019c4517064d300399feb94dbcb0f467e8d48 | refs/heads/main | 2023-03-01T17:41:08.788500 | 2021-02-05T08:00:35 | 2021-02-05T08:00:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 596 | cpp | LogsMonitor.cpp | #include "LogsMonitor.h"
LogsMonitor::LogsMonitor()
{
fstream f;
f.open(NORMAL_LOGS, std::ifstream::ate | std::ifstream::binary);
if (f.tellg() == 20000)
{
f.clear();
}
f.close();
f.open(ERROR_LOGS, std::ifstream::ate | std::ifstream::binary);
if (f.tellg() == 20000)
{
f.clear();
}
f.close();
}
void ... |
7b0fda8fc8203dd3aa6d7e8872f907e8f19f9449 | ffff32a60cfbc310c51413cd4fb053a0672b382f | /base/fd_output_stream.cpp | e4d2057d7428d02ddd2c9391fb86f995e576d287 | [
"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,598 | cpp | fd_output_stream.cpp | #include "fd_output_stream.hpp"
namespace jkgm {
namespace {
template <platform_family>
struct helper_impl;
template <>
struct helper_impl<platform_family::win32> {
static size_t write_some(win32::handle_id fd, span<char const> src)
{
return ... |
4dd7d01e08b8c3725b2a39638e541e439886220f | 4fae914a56b638b351ab4078211b8e1c799b707b | /rpc_server/route_guide_server.cpp | 8932e2c7e1bb3ae5e934fed14439d54e8f66ffb1 | [] | no_license | connLAN/grpc-qt-example | 1b616c02fe8f31c69c5b88af9424538e81377f94 | 672779ebbdecbe2ee8fa584f4e2937deac523f73 | refs/heads/master | 2020-03-28T05:03:57.263649 | 2018-09-07T01:44:38 | 2018-09-07T01:44:38 | 147,753,745 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,810 | cpp | route_guide_server.cpp | #include <QtConcurrentRun>
#include <QDebug>
#include "route_guide_server.h"
using routeguide::Point;
namespace {
ServerPtr buildAndStartService(RouteGuideServer * service_)
{
using grpc::ServerBuilder;
auto server_address("0.0.0.0:60001");
qDebug() << "Server listening on: " << server_address;
... |
051d39f872642db02c02dbf6cb14c77b58427784 | e24347c6d261bc2e7b84e576d14c5fcd077b5488 | /include/detail/select_if_detail.hpp | 84b2773622485457d597e078d639eb8bb41ce4fb | [
"BSD-3-Clause"
] | permissive | tjolsen/tmpl | 7aa140232606f60006a3408974cbac76aea07ec5 | e49e605fe622ed556dab94fb6560b5d3fa46e8e8 | refs/heads/master | 2021-06-14T04:03:39.474878 | 2019-08-15T00:18:45 | 2019-08-15T00:18:45 | 117,387,148 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 420 | hpp | select_if_detail.hpp | //
// Created by tyler on 2/12/18.
//
#ifndef TMPL_SELECT_IF_DETAIL_HPP
#define TMPL_SELECT_IF_DETAIL_HPP
#include "tmpl_common.hpp"
#include "type_list.hpp"
#include "value_list.hpp"
NAMESPACE_TMPL_DETAIL_OPEN
template <typename... T, typename F>
constexpr auto select_if_helper(type_list<T...>, F f) {
return (... |
dffcbb1de7dd9b304f76a4345cb230acee2811e7 | bfcae9e92bcd81f4218f523be43c4e45f66cfc1e | /nameofarray_pointer.cpp | 556b3f823d3af461949602438639c788d85f5dd3 | [] | no_license | touchmenot/cplusplus | 1340acda6fe05613400fe0aec198a5a9581262d4 | aea1f2418485b05566b3a0c787f359d6060176f0 | refs/heads/master | 2021-01-01T20:12:10.249009 | 2013-07-28T21:24:02 | 2013-07-28T21:24:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,374 | cpp | nameofarray_pointer.cpp | #include <iostream>
using namespace std;
int main()
{
int a[3];
short int blah;
int * const p = &a[0];
a[0] = 20;
a[1] = 30;
a[2] = 40;
cout << a << endl;
cout << p << endl;
cout << endl << endl << endl;
cout << &a[0] << endl;
cout << &a[1] << endl;
cout << &a[2] << endl;
cout << endl << endl << endl... |
2dacc70ac9adfd50adca92943d300b85dfce60ea | c35c231a05f24f22c5aae7ef94e1ded6dcfd848c | /codeforces/canada-cup/F.cpp | e6e5faef5e88477514d4d8ce834ebf452cc043bb | [] | no_license | irvifa/online-judges | 081bed8db248c4c0d5a096fb2a196a119778788c | c128a03b711f256f8888ed3d2e526889dce90ca2 | refs/heads/master | 2021-03-12T02:39:44.868187 | 2020-03-11T13:46:07 | 2020-03-11T13:46:07 | 246,582,524 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 676 | cpp | F.cpp | #include <bits/stdc++.h>
using namespace std;
#define mp(x,y) make_pair((x),(y))
typedef pair<int,int> pii;
typedef long long int ll;
int n, i, flag, a1, b1, a2, b2;
ll ans;
priority_queue<pii> pq;
int main() {
cin >> n;
for(i=0; i<n; i++){
cin >> a1 >> b1 >> a2 >>b2;
if(a1+b1>a2+b2){
ans-= b1+b2;
pq.p... |
1e9aef15befc5dd0f23a7b4e9403c1f25181aafb | bf6c965a15f1d02eef6db442af0f5216822773d2 | /before20210628/709. To Lower Case/709. To Lower Case.cpp | 2111599c1a801840388aec8de6b52fec014d6c67 | [] | no_license | ThornLin/My-Leetcode | cb2069dd1b4eb09d4bfd13d5027d4dff2d2d76a3 | 67b6d996423db48af087891c57fb1d9e868d46af | refs/heads/main | 2023-07-08T01:54:27.000657 | 2021-08-04T04:31:12 | 2021-08-04T04:31:12 | 384,394,764 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 669 | cpp | 709. To Lower Case.cpp | /*
Given a string s, return the string after replacing every uppercase letter with the same lowercase letter.
Example 1:
Input: s = "Hello"
Output: "hello"
Example 2:
Input: s = "here"
Output: "here"
Example 3:
Input: s = "LOVELY"
Output: "lovely"
Constraints:
1 <= s.length <= 100
s con... |
dcfb1ab0dde50bfcd4e0a290c923025e2f1bd358 | 32c2ead661729c04ee8aa3dc665d28b3d6911000 | /DataStructure/PAT_B1020.cpp | a9f99cb978502903f1e94b47fda6adfe2770a61b | [
"MIT"
] | permissive | zouzhihao1992/PAT | 8fa1b31f5b3c0200c4e1eb16796e882334d741a4 | a7cd9be25573d57f71644ae6f1dcd69e1700dca8 | refs/heads/master | 2021-01-10T01:50:16.404070 | 2015-06-18T14:08:58 | 2015-06-18T14:08:58 | 33,964,446 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,212 | cpp | PAT_B1020.cpp | //
// PAT_B1020.cpp
// DataStructure
//
// Created by zzh on 15/4/25.
// Copyright (c) 2015年 zzh. All rights reserved.
//
// 题简单,但有几个坑
// 1.库存和总价 用double存 题上写的正数不是整数
// 2.注意考虑 市场需求大于库存的情况
#include "PAT_B1020.h"
#include <stdio.h>
int findMax(double a[],int len);
int main_PAT_B1020()
{
int N,D;
scanf("%d%d",... |
1cfe17ae183871056cc49b471936c0c9c84ca8fc | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_block_1978.cpp | 3a9306cfe0c412068dcd91c9da2bae05b69169e4 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 747 | cpp | Kitware_CMake_repos_block_1978.cpp | {
str << std::endl;
char argument[100];
sprintf(argument, "%s", sit->c_str());
switch (this->Internals->Callbacks[*sit].ArgumentType) {
case CommandLineArguments::NO_ARGUMENT:
break;
case CommandLineArguments::CONCAT_ARGUMENT:
strcat(argument, "opt");
... |
9694ae53661657532c97c63deea2fbef11fa4f00 | 00c6567bbb16f71ed28215f5b48ef923bcb391d9 | /src/mesh.cpp | 1d8be039bd9b9a01b0d357e8a09dc19828cadb2f | [] | no_license | komos90/GameEngineWIP | 729eece6d531a8faba5082dfba388fd3c1e201a3 | 6af0b6a4e79f2179b9b4de133c9c3e240d8614b9 | refs/heads/master | 2021-09-13T07:55:35.603430 | 2018-04-26T20:56:45 | 2018-04-26T20:56:45 | 110,164,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,095 | cpp | mesh.cpp | #include <vector>
#include <fstream>
#include <iostream>
#include <memory>
#include <algorithm>
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>
#include <glm/geometric.hpp>
//#include <boost\tokenizer.hpp>
#include <pugixml.hpp>
#include "common_imports.h"
#include "mesh.h"
#include "util.h"
#include "resource_manage... |
a692b835068109b989b3bc83f5da6eeede851786 | eda03521b87da8bdbef6339b5b252472a5be8d23 | /Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp | 8f1f3f1f77674e43f21fe1621d463a5ca3691888 | [
"BSD-2-Clause"
] | permissive | SerenityOS/serenity | 6ba3ffb242ed76c9f335bd2c3b9a928329cd7d98 | ef9b6c25fafcf4ef0b44a562ee07f6412aeb8561 | refs/heads/master | 2023-09-01T13:04:30.262106 | 2023-09-01T08:06:28 | 2023-09-01T10:45:38 | 160,083,795 | 27,256 | 3,929 | BSD-2-Clause | 2023-09-14T21:00:04 | 2018-12-02T19:28:41 | C++ | UTF-8 | C++ | false | false | 274,836 | cpp | Parser.cpp | /*
* Copyright (c) 2018-2022, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2020-2021, the SerenityOS developers.
* Copyright (c) 2021-2023, Sam Atkins <atkinssj@serenityos.org>
* Copyright (c) 2021, Tobias Christiansen <tobyase@serenityos.org>
* Copyright (c) 2022, MacDue <macdue@dueutil.tech>
*
* SPDX-L... |
58ad96d8d21eac1947839e03bfc4a78e8c63f487 | 0f6af5a095e3ff8e156a82e36ce23e1c600ddf01 | /02_http_client/http_client_test.cpp | baf12f33d6caad815f24f973ee107e7ce8ecbcd6 | [] | no_license | gzhang91/network_examples | ea15d8a397ee59d0cc0f544dfff841724746c1ce | a55d580e0fa76a565acc0b91c5509ca189b7896d | refs/heads/master | 2021-04-09T23:08:39.418475 | 2021-01-28T05:55:10 | 2021-01-28T05:55:10 | 248,890,450 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,081 | cpp | http_client_test.cpp | #include <unistd.h>
#include <iostream>
#include "http_client.h"
using namespace std;
void httpCallback(int req_id,
const std::map<std::string, std::string> &headers,
const std::string& body) {
if (req_id == -1) {
printf("error accured: %d\n", req_id);
return;
}
printf("req_id: %d\n", req_id)... |
1666968fac5ea1399ee5bf65846da218b1db1090 | 147425ff0370b2a7efce1d915249ad89984b7131 | /CoreLib/Graphics/TextureFile.h | 34513d629e5fef9e6fa745c6a0c5019062dd4a96 | [
"MIT"
] | permissive | wangscript007/SpireMiniEngine | 31bcf4dfe97534152eae61e4bb57a9b36ab703fc | 1ac8174714a3a52e22a935f573121dd1ab0fa546 | refs/heads/master | 2022-11-19T13:31:51.465409 | 2020-07-17T20:20:18 | 2020-07-17T20:20:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,484 | h | TextureFile.h | #ifndef CORELIB_GRAPHICS_TEXTURE_FILE_H
#define CORELIB_GRAPHICS_TEXTURE_FILE_H
#include "../Basic.h"
#include "../LibIO.h"
namespace CoreLib
{
namespace Graphics
{
enum class TextureType : short
{
Texture2D
};
enum class TextureStorageFormat : short
{
R8, RG8, RGB8, RGBA8,
R_F32, RG_F32, RGB_F32... |
1273bab34c073003d98661976406103457a25006 | d4f35733b6df180ef9b1d810a44ad9399f0e37fb | /src/parser.cpp | ea2d3e66acd19dd0de5ecce7e301a801925aae26 | [] | no_license | BojanFaletic/sudoku | 06db3c9b1a219cfa0e936d52fda86ce0f9a8959e | f7675a18b87ea90958ea9fcbe93aaea80b4c24cf | refs/heads/master | 2023-07-15T17:44:32.869544 | 2021-09-05T14:50:56 | 2021-09-05T14:50:56 | 403,051,964 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,385 | cpp | parser.cpp | #include "parser.hpp"
sudoku_number str_to_num(std::string const &st) {
if (st.size() != 1)
throw std::runtime_error("Unable to decode number\n");
const char c_num = st[0];
if (c_num >= '1' && c_num <= '9')
return c_num - '0';
if (c_num == 'x' || c_num == 'X')
return 0;
throw std::runtime_error... |
6df0f800879099d2b9bceee52e032467f840a0f3 | f7bfdceed62c0a0c3d322a1870d2d5d335092ef1 | /include/vec/vec4.h | 06df3741d2544a7d1f81006d4c0935cf063b2da5 | [
"BSL-1.0"
] | permissive | magestik/linear-algebra | 2e9cd706cf0ba338986ae51739f02be7819321e9 | dd97242e9b034fc90e12c6d8524bd5b60b34b4ee | refs/heads/master | 2021-06-01T12:54:54.819109 | 2021-05-14T21:39:24 | 2021-05-14T21:39:24 | 25,770,772 | 0 | 3 | BSL-1.0 | 2019-12-05T23:25:22 | 2014-10-26T12:16:10 | C++ | UTF-8 | C++ | false | false | 1,078 | h | vec4.h | #pragma once
#include "bvec4.h"
template<typename T>
struct vector4
{
union
{
struct
{
T x;
union
{
struct { T y, z, w; };
struct { vector2<T> yz; };
struct { vector3<T> yzw; };
};
};
struct { vector2<T> xy; vector2<T> zw; };
struct { vector3<T> xyz; };
float xyzw [4];
};
/... |
53af7cadea0491681c3ec86a72cdb6afee127746 | ac67fad90aee30278893eefbcb64294573dcc47f | /Gaia/src/Gaia/widgets/TextBox.cpp | 8c8edd0753a259e64d32bec97e79b2174e04ea88 | [] | no_license | Iscandel/Gaia | 029ce0560936526111551d2bb387c20ae5d72c81 | adfb699334aadfaf9aa18c9fd13132fa2e19b08a | refs/heads/master | 2021-10-22T11:47:46.194631 | 2021-10-12T22:42:13 | 2021-10-12T22:42:13 | 197,600,076 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 30,416 | cpp | TextBox.cpp | ///////////////////////////////////////////////////////////////////////////////
// Headers
///////////////////////////////////////////////////////////////////////////////
#include "Gaia/widgets/TextBox.h"
#include "Gaia/widgetRenderers/TextBoxBaseRenderer.h"
namespace gaia
{
//const std::string TextBox::myWidgetType =... |
70ee19ac10b16a546afc6deb37cf7cce75a26233 | 4416d4c599f175b68f54e0ee2aca97b18639567f | /DXBase/DXBase/sources/Scene/GamePlay/PauseScreen.h | a788cf2e0944b882155f75916b4d2d953db4ce73 | [] | no_license | kentatakiguchi/GameCompetition2016_2 | 292fa9ab574e581406ff146cc98b15efc0d66446 | df1eb6bf29aba263f46b850d268f49ef417a134b | refs/heads/master | 2021-01-11T18:21:34.377644 | 2017-03-03T08:25:39 | 2017-03-03T08:25:39 | 69,625,978 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | h | PauseScreen.h | #pragma once
#ifndef PAUSE_SCREEN_H_
#define PAUSE_SCREEN_H_
#include "DxLib.h"
#include"../Base/Scene.h"
#include<vector>
#include<map>
#include"../../ResourceLoader/ResourceLoader.h"
class PauseScreen {
public:
PauseScreen();
bool update(Scene& next);
void draw() const;
private:
std::vector<std::string> chang... |
4a701a838ab21ab188a7d7dca0b7b57e5ba99b0d | aaa56e0dea5e33b562eab28cc6535ee1ee0af121 | /src/drivers/arPForthEventVocabulary.cpp | c77d2ee2e3362cda70d4f2b7e06451d0e1b0705c | [
"LicenseRef-scancode-x11-opengl"
] | permissive | IllinoisSimulatorLab/szg | 19357a9867d0d2b18ca384f9830820b101fd0bfe | b9f9a2380107450c2f181ac6372427a0112b5ffe | refs/heads/main | 2022-02-09T23:15:24.015964 | 2016-06-02T19:28:59 | 2016-06-02T19:28:59 | 30,116,435 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,023 | cpp | arPForthEventVocabulary.cpp | //********************************************************
// Syzygy is licensed under the BSD license v2
// see the file SZG_CREDITS for details
//********************************************************
#include "arPrecompiled.h"
#include "arInputEvent.h"
#include "arPForthFilter.h"
// Run-time behaviors
namespace... |
4216014bad0afbf8297217fe17f5a6ea6a972647 | f98439a5ea465239a988f0d0193410f245ccaf5b | /Atomic/AtImfReadWrite.h | 7310b09538736ea94d76f9dd221a1c09215dac61 | [
"MIT"
] | permissive | denisbider/Atomic | 6f0b6040dfdd71f80aa6bb30c1577a26d4136202 | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | refs/heads/master | 2021-07-01T00:27:29.102487 | 2021-03-05T19:21:49 | 2021-03-05T19:21:49 | 220,709,742 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,175 | h | AtImfReadWrite.h | #pragma once
#include "AtImfDateTime.h"
#include "AtMimeReadWrite.h"
#include "AtOpt.h"
namespace At
{
namespace Imf
{
// Strings
Seq ReadQuotedString(ParseNode const& qsNode, PinStore& store);
void WriteQuotedString(MsgWriter& writer, Seq value, Seq afterClose = Seq());
Seq ReadPhras... |
fdf985d62776528dcf944a0938c750698643d2ef | 78c8ac6f0382d9a6a183d4fe117b6d4e2272f7b4 | /veapp/vms/vscvms.cpp | 1f201823faa0caf0989ff592a448b56bfb23a593 | [
"MIT"
] | permissive | xelzin/opencvr | bca7d348e9261aef400e158025e7238869d2bf29 | e0145adebfc052ec70dd4ae2ad3b979a84dfb19f | refs/heads/master | 2020-12-11T08:15:07.029000 | 2015-04-23T16:10:48 | 2015-04-23T16:10:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,189 | cpp | vscvms.cpp | #include "vscvms.h"
#include "factory.hpp"
#include "QColor"
#include <QTranslator>
#include <QtWidgets/QApplication>
#include <vscdevicetree.h>
#include <QEventLoop>
#include "cppkit/ck_string.h"
#include "cppkit/os/ck_sprintf.h"
#include "oapic.hpp"
using namespace cppkit;
using namespace std;
extern Factory *gFa... |
43da4a96fff4ec4108c7829bfcfce7c38bfdafd6 | 5612d019279a1fc1dd4055fa1ddf813e51bc503d | /src/starboard/nplb/media_can_play_mime_and_key_system_test.cc | 2e38c86ad03204236195b77088a2c67c02481359 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | RahulRanjan-TPL/cobalt-1 | 78d9624d01704c7081f8e739e047e4e3970b767c | 4a6dd9fddae25369d7353255865e6f226eeb4962 | refs/heads/master | 2022-12-08T18:04:45.256803 | 2020-08-14T20:45:02 | 2020-08-14T20:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,468 | cc | media_can_play_mime_and_key_system_test.cc | // Copyright 2020 The Cobalt 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 ap... |
d6b5c21143d5a4a8529a9ea8d43604017d6d41a0 | 958ab1ec72270dd3c55f898287e8b8297a19c9eb | /src/events/base_events.cpp | cfc2ab23242c2ef308a22ccfb4e3ef268e9dd36c | [] | no_license | voivoid/EflCpp | 8136a66cbfa7eb30d034623d751c55feafe2977c | 1ab3a6a5b46b5800e85b9f6cfcbd5b93bdc6af9c | refs/heads/master | 2021-01-10T01:33:22.069803 | 2017-04-24T22:29:45 | 2017-04-24T22:29:45 | 70,422,947 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,426 | cpp | base_events.cpp | #include "EflCpp/events/base_events.h"
#include "EflCpp/assert.h"
#include "EflCpp/elm_obj.h"
#include "EflCpp/events/evas_events.h"
#include "EflCpp/events/gesture_events.h"
#include <boost/signals2.hpp>
#include <map>
#include "EflCpp/elementary_inc.h"
namespace EflCpp
{
template <typename Source, typename Even... |
588488ea913ece6026b45a2d8cd6bfd04fd58183 | a3ec8a984eaba3fdc22362f0ee8d593543f208a0 | /UVA Online Judge/uva -294 Divisors.cpp | dc04e6b390264d4321133bcd5b8eeb89346134e9 | [] | no_license | nurennafisa/UVA-Online-Judge | 2703b79fceec969e3daa61ca39986e814e5eb74d | d8a3f683dcf85cacbc84d7d12499a40e61ea3cb6 | refs/heads/master | 2021-05-19T09:30:37.894228 | 2020-03-31T14:50:50 | 2020-03-31T14:50:50 | 251,630,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 942 | cpp | uva -294 Divisors.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int test,c,s;
long long int L,U;
while(scanf("%d",&test)==1)
{
for(int k=1;k<=test;k++)
{
scanf("%lld%lld",&L,&U);
int Max=-1;
int x=0;
for(int i=L;i<=U;i++)
{
... |
799896d83aeffd77bb4b42bd72c56c88177394c6 | b2a2026709fc0de4337db6c2f10bdb8baf94d21c | /examples/FixedPointCalculations/FixedPointCalculations.ino | 772334cc10194a92f96246430e5fdcf2c9367c0e | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | eried/FixedPoints | 665bc010581234cfa5a5da2fcd734efd8f4eff93 | a3abdb446a6acbd8f252393bcc164ce9bec8e003 | refs/heads/master | 2020-12-30T10:49:54.344028 | 2017-07-31T08:11:14 | 2017-07-31T08:11:14 | 98,864,116 | 2 | 0 | null | 2017-07-31T08:04:56 | 2017-07-31T08:04:56 | null | UTF-8 | C++ | false | false | 2,650 | ino | FixedPointCalculations.ino | #include <FixedPoints.h>
#include <FixedPointsCommon.h>
void TestQ8x8(void)
{
Serial.println(F("The size of Q8x8 on your system is:"));
Serial.println(sizeof(Q8x8));
Serial.println();
Q8x8 a = 1.5;
Serial.println(F("Displaying a as float:"));
Serial.println(static_cast<float>(a));
Serial.println(F("Displaying... |
b81bd604076590a6aa467d9eaba1234e96545637 | c86127707379fa4570cf7acdef7566a48b262617 | /C/Queue_Array.cpp | 39644a8c2ca94802c954abe8ee711b5fd2e61d0b | [] | no_license | psyzemin/DataStructure | da7fd78fe66341cc96a913df8f8359ec153854be | dbf5eca58d7e57e634608d2fa9f2f06b309b6d87 | refs/heads/master | 2021-04-06T20:28:29.792985 | 2018-06-01T07:44:53 | 2018-06-01T07:44:53 | 125,229,230 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,251 | cpp | Queue_Array.cpp | #include<stdio.h>
#include<stdlib.h>
#include "Queue_Array.h"
AQueue CreatAQueue(int x) {
AQueue q = (AQueue)malloc(sizeof(struct QueueArray) + sizeof(int)*x);
if (q == NULL) {
perror("Out of space!");
}
q->data = (int*)malloc(sizeof(int)*x);
q->front = 0;
q->rear = 0;
q->Qsize = x;
q->size = 0;... |
d26077288817798c964ec0feb3f1e72040aa4f69 | 1aca4d24211a58d6e51f49c92dd4040bc804bc98 | /turn_negative_integer_ to_positive.cpp | 4dd4410f2b777b704cc93ec8edf26e840765ea91 | [] | no_license | infinityhao/CPP | 299fb4e0303ff16d0dc605d4f48cc39c41a98a07 | 84b54b3205c0cacaa11a4f90198ab52c9732e056 | refs/heads/main | 2023-04-04T15:18:03.658743 | 2021-03-24T15:31:08 | 2021-03-24T15:31:08 | 351,110,155 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 291 | cpp | turn_negative_integer_ to_positive.cpp | #include <iostream>
using namespace std;
int main() {
int negativeN = -5;
int positiveN1 = 0;
int positiveN2 = 0;
positiveN1 = abs(negativeN);
positiveN2 = abs(positiveN1);
cout << "positiveN1 = " << positiveN1 << endl;
cout << "positiveN2 = " << positiveN2 << endl;
} |
d6998f41a32d84456cb96f557ae7797fb5451ac7 | fc034918d460f218be1456cf7a8f9ffbed01830f | /octosimlib/DnsMessage.cpp | c44a2830305931fa239c1ed88d44d837747d04fa | [] | no_license | private-octopus/octosim | 649a2e14be937e1a24be9e8066ed274e3723e129 | ef1b8ab22cac7cf387bbe711a97fa1fbd46cdc2f | refs/heads/master | 2021-01-19T23:00:01.844936 | 2017-05-06T19:07:14 | 2017-05-06T19:07:14 | 88,905,334 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,651 | cpp | DnsMessage.cpp | /*
* Copyright (c) 2017, Private Octopus, Inc.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THIS SOFTWARE IS PROVIDED BY TH... |
43d9537321cc6035c758880fe4621966932da424 | a0c88d1feb246d2b3dfea490c4a4af0fc8f5a62f | /supla-server/src/amazon/alexachangereportrequest.cpp | 0d0b02dca83e80a8cdcc138bbab4aea3b4798b02 | [] | no_license | djack2017/supla-core | 1dea82f5a32240a94bdc8fd33b997d9633b0d36f | 9fda8d66865a42d1793dd27873828fddaacc0ed8 | refs/heads/master | 2020-04-29T00:44:36.891319 | 2019-03-19T10:40:32 | 2019-03-19T10:40:32 | 175,705,864 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,069 | cpp | alexachangereportrequest.cpp | /*
Copyright (C) AC SOFTWARE SP. Z O.O.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in t... |
bdca34df30dcf83f70297d0a31c011336438bf82 | e2a7a60e13303bde79e926d45fb75aa430c3a596 | /10530.cpp | beefc09a570630b28768b2bd70b398587f18359c | [] | no_license | jonathandarryl/UVa-Code | 9ab900ee87e67469ffaa753ae57e070ed60d0b8c | 0cbe8b6e091fc699abba25cbd72ebf1aa9e1709d | refs/heads/master | 2016-09-05T15:45:46.105512 | 2015-01-08T05:16:31 | 2015-01-08T05:16:31 | 27,748,480 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,489 | cpp | 10530.cpp | #include<iostream>
#include<string>
using namespace std;
int main(void){
int input, indicator[11];
bool honest, done;
string response;
while(true){
honest = true;
done = false;
for(int i=1;i<11;i++)
indicator[i] = 0;
while(true){
cin>>input;
... |
e70c0b291a2ddfb70e3a4586e7fa2ef2f1cebbe2 | b74af43bae5c93f5c10efbeb7bafcab084864cd2 | /vulkan/sync/CreateSyncObjects.h | ae015c8aedb2a7269168c0b56da5ca47f1eb6370 | [] | no_license | matthewperiut/vkIsoberry | 01b88099eeeb6c5b121d46e2c870dcd4916e5ed3 | 138457435501d99b68bf17ecdbef04a8ba2e2b26 | refs/heads/master | 2023-06-30T19:17:43.957103 | 2021-08-02T07:31:53 | 2021-08-02T07:31:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 311 | h | CreateSyncObjects.h | #pragma once
#include "../CommonVulkanInclude.h"
void createSyncObjects(std::vector<VkSemaphore>& imageAvailableSemaphores, std::vector<VkSemaphore>& renderFinishedSemaphores, std::vector<VkFence>& inFlightFences, std::vector<VkFence>& imagesInFlight, std::vector<VkImage>& swapChainImages, VkDevice& device); |
f28436924b3a9823dd70f34d11b050194d7a8ceb | 440bc87298fef759de173cfa734f13cd71f03c12 | /Source/ProjectJ/NetWork/Packet.cpp | f82dc7a44560a5e8bebc34cab4bf3ecf9efe1b4f | [] | no_license | ProjectGladiator/ProjectGladiator | 9bb954b01d4e21e5111b518db36fdcf4b3a42617 | 0708250d3e994ffef95527e49b6b5632b9435421 | refs/heads/master | 2021-06-09T03:33:57.499603 | 2019-11-08T11:33:24 | 2019-11-08T11:33:24 | 144,824,947 | 4 | 0 | null | null | null | null | UHC | C++ | false | false | 6,590 | cpp | Packet.cpp | #include "Packet.h"
// 생성자
Packet::Packet()
{
sendSize = 0;
sentSize = 0;
recvSize = 0;
recvedSize = 0;
ZeroMemory(&sendBuf, sizeof(sendBuf));
ZeroMemory(&recvBuf, sizeof(recvBuf));
}
// TCPClient 생성자에 인수 넣어줌
Packet::Packet(SOCKET _socket, SOCKADDR_IN _addr): TCPClient(_socket, _addr)
{
sendSize = 0;
sentSi... |
04f21d816c769cf80b27e97f26dfec959609d971 | b4550cc2b79f0ec6e13a9ba477c77340c287fb6b | /rt/volume.h | 1416ce7c32d6861a89291cc80ffb453865512e6b | [] | no_license | keynekassapa13/lost-in-japan | c75dc32739cfeeab3cb1b4704e005d667f4cdb95 | e1d2707e220f40696378c5bba3d69da7ccf81a52 | refs/heads/master | 2022-11-24T23:15:35.144872 | 2020-04-27T12:53:35 | 2020-04-27T12:53:35 | 259,317,260 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,675 | h | volume.h | #ifndef CG1RAYTRACER_VOLUME_HEADER
#define CG1RAYTRACER_VOLUME_HEADER
#include <core/scalar.h>
#include <core/vector.h>
#include <core/color.h>
#include <rt/bbox.h>
#include <rt/intersection.h>
#include <rt/textures/texture.h>
namespace rt {
class Volume {
public:
virtual RGBColor getColor(const Po... |
dc0eba374ee16c951636f610cf6b1de5eba397be | 1ce4baf0624e287ed56fd532d89ccc374b345f44 | /BOJ_backup/1463.cpp | 38bec8b818d7235df3c9ec2ab16d9cc69df1cbe3 | [] | no_license | craclog/BOJ_backup | 7007fbbb3efa055bd2a9cdcb503b28bb08fe79cc | 5a2d5d80d04349c83d2e1913e10163cfe9934e17 | refs/heads/master | 2021-05-12T00:44:44.256960 | 2018-01-30T16:12:16 | 2018-01-30T16:12:16 | 117,542,703 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 455 | cpp | 1463.cpp | #include<stdio.h>
#define MAX 1000001
int dp[MAX];
int make_one(int N)
{
int i;
dp[0] = 0;
dp[1] = 0;
for (i = 2; i <= N; i++)
{
dp[i] = dp[i - 1] + 1;
if (i % 3 == 0 && dp[i] > dp[i / 3] + 1)
{
dp[i] = dp[i / 3] + 1;
}
if (i % 2 == 0 && dp[i] > dp[i / 2] + 1)
{
dp[i] = dp[i / 2] + 1;
}
}
... |
0b5bae11ffec544d42e127ac7799b3eea4a83e00 | c9822f8c49046088715ea96762dbffedd014a0b0 | /hardwork/sicily/class/未命名3.cpp | b879d446211608eb73416ff967d67f7af0ae9dd7 | [
"MIT"
] | permissive | jskyzero/Cplusplus.Playground | 471d6b6068c5ad9119db86c346143e9f9103f5f8 | b4a82bb32af04efcffb6e251ac8956a3cc316174 | refs/heads/master | 2023-01-07T00:23:48.900807 | 2020-11-12T04:49:21 | 2020-11-12T04:49:21 | 201,798,526 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,062 | cpp | 未命名3.cpp | #include<iostream>
#include<string>
using namespace std;
class Stock
{
public:
Stock(string symbol, string name);
string getSymbol()const;
string getName();
double getPreviousClosingPrice();
double getCurrentPrice();
void setPreviousClosingPrice(double previousClosingPrice);
void setCurre... |
dc14edb535dcd646387f2c8af2d747aede9607e6 | 869e9039b787b4d13ce9530fdac13623cc11889b | /Exercises/Cap12 - Geometry Shader/2. Geometry Shader Icosahedron/Project/Source/CylinderApp.cpp | 0748cbb706a8c4a89a6d9fbe29eca6ad66f3f434 | [] | no_license | MrChampz/LearningDX | bdea9920e9c8c561614ee3ca681d6ea0dc32f423 | 7db82d143b01e056e94630d18ef8d89930a2083b | refs/heads/master | 2020-03-16T19:23:14.478220 | 2018-09-19T18:52:30 | 2018-09-19T18:52:30 | 132,913,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,249 | cpp | CylinderApp.cpp | #include "CylinderApp.h"
CylinderApp::CylinderApp(HINSTANCE hInst)
: D3DApp(hInst)
{
}
CylinderApp::~CylinderApp()
{
}
bool CylinderApp::Initialize()
{
if (!D3DApp::Initialize())
{
return false;
}
// Reset the command list to prep for initialization commands.
ThrowIfFailed(m_CommandList->Reset(m_DirectCmd... |
a46085a8d7a2a064db28ca361c29a79ad09a7ac5 | 3eba54ab52b01cf2220d4debc075b6ef2d8aa07d | /Coin Change/version_2.cpp | d8ede62bf203a5d8503995701aef395b311971d3 | [] | no_license | cluo/LeetCode | beab92b28a99fffdefa531a56ba317a906ba1d32 | 438367764ca7160572ac5d27fa4ce80bf4327c20 | refs/heads/master | 2021-01-23T16:07:03.562466 | 2016-06-09T05:57:48 | 2016-06-09T05:57:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 990 | cpp | version_2.cpp | class Solution {
public:
int coinChange(vector<int>& coins, int amount) {
int len = coins.size();
sort(coins.begin(), coins.end());
vector<int> dp(amount+1, -1);
dp[0] =0;
int now_min = INT_MAX;
if(dfs(coins, amount, 0, len-1, now_min))
return now_min;
... |
af6ac972331bc310c2b18c8b2516e100a2fb6700 | 199db94b48351203af964bada27a40cb72c58e16 | /lang/du/gen/Bible43.h | 3a811b2df48de18b8bb2d86b51c994c888233623 | [] | no_license | mkoldaev/bible50cpp | 04bf114c1444662bb90c7e51bd19b32e260b4763 | 5fb1fb8bd2e2988cf27cfdc4905d2702b7c356c6 | refs/heads/master | 2023-04-05T01:46:32.728257 | 2021-04-01T22:36:06 | 2021-04-01T22:36:06 | 353,830,130 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 118,855 | h | Bible43.h | #include <map>
#include <string>
class Bible43
{
struct du1 { int val; const char *msg; };
struct du2 { int val; const char *msg; };
struct du3 { int val; const char *msg; };
struct du4 { int val; const char *msg; };
struct du5 { int val; const char *msg; };
struct du6 { int val; const char *msg; };
struct du7 {... |
3e4ce597b1dfe4e4d4c68721c0254d1853cbe18e | eed66d3837e352a7ef9e0944addbecdb3ec4c25e | /MetaDataExtractionReadAsYouGo/MetaDataExtractionReadAsYouGo.h | c62ff411af066ef0fcab514a00ff79b3e5bbf728 | [] | no_license | dhananjaykum/MetaDataExtractionReadAsYouGo | 8b73009ab614f9e6fc26ef136674088cebafeb8d | be1bc9822843ff0060968bca92c05bbb558ac2d8 | refs/heads/master | 2022-10-12T09:31:22.989120 | 2020-05-29T17:22:51 | 2020-05-29T17:22:51 | 268,163,558 | 0 | 0 | null | 2020-05-30T21:36:38 | 2020-05-30T21:36:37 | null | UTF-8 | C++ | false | false | 1,349 | h | MetaDataExtractionReadAsYouGo.h | #pragma once
#include <Windows.h>
#include <map>
#include "PEParser.h"
#include "File.h"
#define ORIGINAL_FILENAME_STRING L"OriginalFilename"
#define COMPANY_NAME_STRING L"CompanyName"
#define FILE_VERSION_STRING L"FileVersion"
#define PRODUCT_NAME_STRING L"ProductName"
#define PRODUCT_VERSION_STRING... |
c3af4b960abbf1b0f48940fc68d6cd1e3aeaaca5 | 3e70eda6819fec5bf5ba2299573b333a3a610131 | /gf/db/ser/src/Cgf_numen_skill.h | ec6783ec42b799248c55e9c870497f711804ce9f | [] | no_license | dawnbreaks/taomee | cdd4f9cecaf659d134d207ae8c9dd2247bef97a1 | f21b3633680456b09a40036d919bf9f58c9cd6d7 | refs/heads/master | 2021-01-17T10:45:31.240038 | 2013-03-14T08:10:27 | 2013-03-14T08:10:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | h | Cgf_numen_skill.h | #ifndef __GF_CGF_NUMEN_SKILL_H__
#define __GF_CGF_NUMEN_SKILL_H__
#include "CtableRoute.h"
#include "proto.h"
#include "benchapi.h"
class Cgf_numen_skill:public CtableRoute{
public:
Cgf_numen_skill(mysql_interface * db );
int get_numen_skill_list(userid_t userid, uint32_t usertm,
uint32_t nu... |
10a84737443e01120630880f3df970cba5344ae8 | c28f48ab0207c0e09a3883b170cf33e1ebbe9198 | /Singleton/Singleton.h | 167eb20d68189dfc8014d95901c7403dd98b7432 | [] | no_license | csp123/DesignPattern | 7e5f618a77db72f29a52709dcad7640e5653c942 | 3d175d9eae69d4e2cf11530f043e520c253215ca | refs/heads/master | 2020-06-11T04:55:19.449370 | 2019-06-26T08:27:27 | 2019-06-26T08:27:27 | 193,854,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 192 | h | Singleton.h | #pragma once
class Singleton
{
public:
static Singleton * GetInstance();
~Singleton();
void Operator();
protected:
Singleton(void);
private:
static Singleton * m_Ins;
};
|
c17b13366296e4cefb204eba5b3a55726644d764 | 6b6114e0c4ebf8a68b5a04358f386395f7d1cb83 | /snippets/vector/crbegin.cpp | 64ee932c7fd6fa66a56b776e6ee8b7e2ac3671be | [
"MIT"
] | permissive | sidhant-ray/30-seconds-of-cpp | 7cac04e514bfdef8d67ddadce97c9b8949443cf7 | 0573d34980a80a0adbbe4fcefb7b67740dfaf2ce | refs/heads/master | 2020-08-23T08:41:53.172509 | 2019-10-21T14:46:15 | 2019-10-21T14:46:15 | 216,580,550 | 0 | 0 | MIT | 2019-10-21T13:52:44 | 2019-10-21T13:52:44 | null | UTF-8 | C++ | false | false | 543 | cpp | crbegin.cpp | /*
Author : Sidhant Ray
Date : 21/10/2019
Time : 20:00
Description : Returns an iterator referring to the past-the-end (next to last element) element in the vector container.
*/
#include <iostream>
#include <vector>
using namespace std;
int main ()
{
// initializing vector with values
... |
6bc763ea105ee8431a5569815a8c6ca14016f5a8 | be35502c7d2b20ce8b1a52da9c2d8213a778ce7b | /extra_problems/ile_dob/ile_dob.cpp | 7e80010adc459d0f3fa007727d53eec8a33f7136 | [] | no_license | ZuzaRatajczyk/cpp_Projects | 230554ffb1a948b450efd8baf8a1ba7aa7180856 | ac1e1c7c025a4a976a90541a9e71da07e3702e98 | refs/heads/main | 2023-05-07T12:46:15.391153 | 2021-05-27T14:14:01 | 2021-05-27T14:14:01 | 329,715,645 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,379 | cpp | ile_dob.cpp | #include <iostream>
const int leap_year[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
const int non_leap_year[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
const int seconds_in_minute = 60;
const int seconds_in_hour = 60 * seconds_in_minute;
const int seconds_in_day = 24 * seconds_in_hour;
struct ... |
8c98aafe454dc7defd1c1193cfb4d103ceb8929e | f4470e78c8ed59863ca7d0d7812fa2adc980f163 | /101_OverloadingNewDeleteOperators.cpp | 38ae172763e9f51d7b2f9beedd15030182ce7b4a | [] | no_license | RS-codes/CppQuickRef-101_OverloadingNewDeleteOperators | 545debf05377d02e7a013d48f986f0918ca6bdc0 | 875812a35c5c81da55a2f4d0e5d73d8910f75b77 | refs/heads/master | 2023-08-18T10:16:56.089689 | 2021-09-20T04:09:18 | 2021-09-20T04:09:18 | 407,190,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,784 | cpp | 101_OverloadingNewDeleteOperators.cpp | 101 _ Overloading New and Delete Operators _ C++
//why we need to overload New and delete?
/*
-sometime in some classes, we need to specialize the storage mechanism
-eg: to speedup the creation of object
- to use the memory, that has been already used by another object of the same class.
-since, C++ doesnt ... |
1e37b56cb4b927bb6d80695bdb3d2181c1fc06ae | 01af5ad09a1a2b7cd4f8b9a9e814ec0fc37bc1c6 | /common/message_handler.h | 026248d57de04c56d25ba3de840f20a32daa2c12 | [] | no_license | WhiteAndBlackFox/cacheForDatabase | 6c583f1257fc177ef633cde57f5e2c739ca6318e | 26b50061cb109f8454949aeec34491dd88a827e6 | refs/heads/master | 2020-03-26T01:58:38.768616 | 2018-08-11T14:19:08 | 2018-08-11T14:19:08 | 144,391,012 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,329 | h | message_handler.h | #ifndef MESSAGE_HANDLER_H
#define MESSAGE_HANDLER_H
#include <iostream>
#include <string>
#include "connection.h"
/**
* Message handler is the low-level message handler for messages to/from the
* server. It handles transmission/reception of low-level message units.
*/
class MessageHandler {
public:
MessageHandle... |
c3d7bff2b1b0f9880c048dc610e22345418625b2 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5648941810974720_1/C++/pedrohlf/A.cpp | f4bf70e607013ed7a3de94803205cdb3631d485e | [] | 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,919 | cpp | A.cpp | #include <iostream>
#include <cstdio>
#include <vector>
#include <cstring>
#include <map>
#include <queue>
#include <stdlib.h>
#include <set>
#include <algorithm>
#include <math.h>
#include <stdio.h>
#include <unistd.h>
#include <stack>
#include <sstream>
#include <list>
#include <bitset>
#define ff first
#define ss se... |
2763d98ee2688159c60f0d2c04e86077e3f3bc8b | 70c398d69742e3012241815eb55d4956fe668e4e | /Others/inherit.cpp | 5f97cc6f3f72a951e05418eeaa467335835ded63 | [] | no_license | xingxing0468/CppDemos | deca88e630caa389b7c1074077c61e9075b58f07 | af21eb989bf2a2f60c063012dbd4ca7619e7cf1e | refs/heads/master | 2021-01-01T05:30:15.578896 | 2014-11-19T03:19:55 | 2014-11-19T03:19:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,220 | cpp | inherit.cpp | #include <stdlib.h>
#include <iostream>
class base
{
public:
base()
{
std::cout << "base's constructor" << std::endl;
};
virtual void f() = 0;
virtual ~base()
{
std::cout << "base deconstructor" << std::endl;
}
};
class derived: public base
{
public:
derived()
{
std::cout << "derived's constructor" <<... |
3aff39d4bab202fec6cbef60695ae300c47db71d | 4953af75e4a027d6778cd4e999ad90026b570c7b | /MyEmbriogenesis/main.cpp | 20ab7382f25b204f5ab8ac85177c3f57180ecad0 | [] | no_license | aleks256-1/krsch | bf64269db0bf174e5fa7f9e4a156187c9e1b5ec3 | a104f4449fa8cfe9a33a1ee41755454cc867d345 | refs/heads/master | 2021-05-06T09:00:12.606653 | 2018-04-22T23:08:56 | 2018-04-22T23:08:56 | 114,041,177 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,653 | cpp | main.cpp | #include <malloc.h>
#include "creature.h"
#include "main.h"
#include "rdev.h"
#include "genome.h"
#include "embriogenesis.h"
#include "bmpgen.h"
using namespace std;
int main() {
struct creature *creature;
struct genome *genome;
struct matrix * matrix;
genome = (struct genome*)malloc(sizeof(struct gen... |
ee177bd8e4a38c120234ecc57476e239a82ade24 | 75fc8b7594b2075ff487dc05afdd5ad0a7408c1f | /ElDorito/Source/Blam/FMOD/FMODFunctions.hpp | b97d64d81bbeac4fc2a2903d148eb2face8ddfe0 | [] | no_license | NoShotz/ElDorito | 929e7b4e033914d15257419c8978d0f5fa598177 | a6d2d681e999d2d21f3f8bb3bd272f0771f2d1fe | refs/heads/master | 2021-07-25T18:26:25.982270 | 2020-05-08T17:17:17 | 2020-05-08T17:17:17 | 167,758,023 | 26 | 35 | null | 2019-11-24T05:36:13 | 2019-01-27T01:35:22 | C++ | UTF-8 | C++ | false | false | 1,366 | hpp | FMODFunctions.hpp | #pragma once
#include <cstdint>
#include "FMODEnum.hpp"
#include "FMODGlobals.hpp"
using namespace FMOD;
namespace FMOD::System {
// sub_13884BA
// This function is a wrapper for the real FMOD::System::PlaySound which has an extra function for the System class pointer.
FMOD_RESULT PlaySoundWrapper(void* system1, ... |
149e453230f2f531368b0c330a749f49ace68a2f | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /ui/ozone/platform/scenic/scenic_surface_factory.cc | d9fe0c610810cb99c5c1e98dcf628e10a041e0f3 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 10,085 | cc | scenic_surface_factory.cc | // Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/ozone/platform/scenic/scenic_surface_factory.h"
#include <lib/sys/cpp/component_context.h>
#include <lib/zx/event.h>
#include <memory>
#include "base/containers/... |
ba1ed1639129b05352c5b147d86f857b621f0936 | 589b956c747e1564da30c9b16f233b4ff8cd3705 | /dancex11/domain_deployment_handler/dancex11_ddh_application_manager_impl.cpp | c866035ad1de4b440cd9697a638c8df1cd5dafbf | [
"MIT"
] | permissive | RemedyIT/dancex11 | ae9f905abea1e89ccede7f7673e1b2f2e7f00379 | f74efaf75e94a74a7f91e0a90db999a673100541 | refs/heads/master | 2023-06-22T22:30:10.238265 | 2023-06-20T06:53:05 | 2023-06-20T06:53:05 | 208,991,979 | 7 | 2 | MIT | 2023-09-11T10:41:09 | 2019-09-17T07:50:43 | C++ | UTF-8 | C++ | false | false | 27,980 | cpp | dancex11_ddh_application_manager_impl.cpp | /**
* @file dancex11_ddh_application_manager_impl.cpp
* @author Marijke Hengstmengel <mhengstmengel@remedy.nl>
* @brief Domain application manager
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
#include "dancex11_ddh_application_manager_impl.h"
#include "dancex11/deployment/deployment_connectionC.h"
... |
63a667c0ed57ae3cc21031401d86ead9b27ae5ff | 320a36a3200c7b3abe12807a74c72325e574e3d7 | /laser1/LaserReceiver.ino | 19a202bfc467f575c92e4e57543185360e68a512 | [] | no_license | barafael/Arduino-Sommercamp | 1f1b4addf035595e23b5fd4ee592804799466c40 | a74f2934f87a6a7ee525aecf38b40b9397164da0 | refs/heads/master | 2020-03-23T15:22:41.200446 | 2018-07-20T18:12:56 | 2018-07-20T18:12:56 | 141,743,158 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,366 | ino | LaserReceiver.ino | enum Mode { INIT, DATA, TRANSEND };
// Change for Debug
int lightSensitivity = 30;
// Startzustand
int initalLight;
String msgBin ="";
String tempBin = "";
int isReceiving = 0;
int secSinceReceiveStart = 0;
int millisSinceLastState = 0;
int currState = 0;
int lastState = 0;
unsigned long ts = 0, tmeasure, tlast, tn... |
e8183332cf03b562113c88f6e7be470868356806 | 1b3ee9bf0741aca2745dd6720de1b5ec2c737055 | /Tree_03.cpp | 369b27f72f214bf5a13d0ff2721cbdda0cc44d84 | [] | no_license | kimehwa/untitled2 | ee80ab3671a57508ba470882eb49a59322c9d0be | bbecd2712e67358f586df0eaff7488ad8d3fa7d6 | refs/heads/master | 2020-06-26T06:51:24.423083 | 2019-07-30T03:03:11 | 2019-07-30T03:03:11 | 199,563,892 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 74 | cpp | Tree_03.cpp | //
// Created by 管晓东 on 2019-07-30.
//
#include "Tree_03.h"
//TEST
|
8a50a9f765b8c02a60b86ce36b22983b39b456d4 | 89015a9da1426f7ecabd0ef7dc58135b4f6f0750 | /Proyecto Videojuegos Cocos/Classes/Engine2D/PhysicsGameEntity.cpp | 5100cd9d1add0aae0995cf4ce95a84413be3f96e | [] | no_license | juanpomares/Mobile-projects | b1811951afbb7e54124f6435aaca48bb38ce615c | 2921b85721180db5515af7a955d58cd46b0832b3 | refs/heads/master | 2021-12-23T01:50:23.514370 | 2021-12-16T11:15:27 | 2021-12-16T11:15:27 | 63,624,543 | 7 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 952 | cpp | PhysicsGameEntity.cpp | //
// PhysicsGameEntity.cpp
// Fisica
//
// Created by Miguel Angel Lozano Ortega on 28/3/15.
//
//
#include "PhysicsGameEntity.h"
void PhysicsGameEntity::update(float delta) {
if(m_node && m_body) {
b2Vec2 pos = m_body->GetPosition();
float angle = m_body->GetAngle();
m_node->... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.