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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e613c2d449bd3b98c2b70a1328d92c716232e6ef | c08f8bd82cb6c50a888e4fa403b183662395874a | /binaryTrees/reverseLevelOrderTraversal.cpp | 59f82623b964abd9128570689a4b037332847de5 | [] | no_license | vaibhavgeek/tompetitive | 253a744771b558e8e727a2ad57bc4f2ceebc6c4a | 8d887d10936f22286f48aa1cf328a7d46e28aa0c | refs/heads/master | 2021-06-12T10:12:39.941473 | 2021-05-29T14:11:40 | 2021-05-29T14:11:40 | 202,127,253 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | cpp | reverseLevelOrderTraversal.cpp | vector<int> reverseLevelOrder(Node *root)
{
vector<int> tree;
Node *p = root;
queue<Node*> q;
stack<int> s;
q.push(p);
while(!q.empty()){
p = q.front();
q.pop();
s.push(p->data);
if(p->right) q.push(p->right);
if(p->left) q.push(p->left);
... |
37532d1ba95cbba2d2b260443d9e356a7b7e95f8 | 4634fcae8102e756b508b4fd849f6742280b2596 | /Header/Rectangle.h | d9ee6bcf3cb54906491aec755d338df7bba66488 | [] | no_license | mlilyd/BA-Project | c1c71ea78dd5d97e486e9c06d021a953ff3806b5 | 5ab9cc1c49f6d07a921458a1bb66d2e51497a16b | refs/heads/master | 2023-06-23T12:39:49.156836 | 2021-07-19T16:01:50 | 2021-07-19T16:01:50 | 317,256,774 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,452 | h | Rectangle.h | #ifndef RECTANGLE_H
#define RECTANGLE_H
#include "Renderer.h"
class XY_Rectangle : public Hittable {
public:
XY_Rectangle() {}
XY_Rectangle(double _x0, double _x1, double _y0, double _y1, double _k,
shared_ptr<Material> mat)
: x0(_x0), x1(_x1), y0(_y0), y1(_y1), k(_k), mp(... |
25dea371b4626866abb29e8d1bd3121ed57173dd | 11e1703564f612c025722f83db6b242c43540513 | /Tests/test_opencv_include.cpp | c8f7a94089bb9eb102fae064acc74e82a85df9fa | [] | no_license | kenny5660/wro_2019 | 7e0384467ba30cac753ba95a9db050abdd313454 | 2b1787ea248e14b3784851f35687771991bcc181 | refs/heads/master | 2022-11-10T19:41:30.436750 | 2019-11-08T12:18:43 | 2019-11-08T12:18:43 | 168,344,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 200 | cpp | test_opencv_include.cpp | #include "test.h"
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
TEST(OpenCV, IncludeOpenCV) {
cv::Mat frame;
frame = cv::imread(img_path + "test_img.jpg", cv::IMREAD_COLOR);
}
|
1d1bb93b0498726f6213376fa5b3e66bd94f8bb7 | 6220c1ced65a8ce035363a135aed1e0c94f4c62d | /ARRAY/DAY 1/Rotate Array.cpp | 440f86c51ea729a43ac50b6cdcc83ff3766d1649 | [] | no_license | kashyap99saksham/2-Month-Course | e47cf4515c18a5bb2d7533aef8d1ff99abd7d631 | 88f11417172357feaa3a8b72ae4bf7f0eb0c8bda | refs/heads/master | 2021-05-20T02:28:27.575572 | 2020-09-22T20:32:57 | 2020-09-22T20:32:57 | 252,147,579 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 679 | cpp | Rotate Array.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t; cin>>t;
while(t--)
{
int size,shift; cin>>size;
vector <int> v,temp;
int arr[size];
for (int i = 0; i < size; i++) cin>>arr[i];
cin>>shift;
for (int i = 0; i < shift; i++)
{
... |
bab8c3626ba3ff06f3ea22955d9b5bdfcace30f2 | 19168c2eaedb9da5ae1624d31e342efe875c43fe | /Item.cpp | 9ae1d8fdf06eebe8a0c4d5f11675965b02267cac | [] | no_license | xavierbohin/SokobanProject | b9515e42349a00af360bd906f60f9274a9c2e44b | 94dc22fe90389a596a25a837e9a998db52533cd6 | refs/heads/master | 2021-08-17T01:56:50.531885 | 2017-11-17T15:03:11 | 2017-11-17T15:03:11 | 111,107,340 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | cpp | Item.cpp | #include <iostream>
#include <vector>
#include <string>
#include <queue>
#include "Item.h"
using namespace std;
Item::Item()
{
}
int Item::getx(){return Item::x;}
int Item::gety(){return Item::y;}
void Item::setx(a){Item::x = a;}
void Item::sety(a){Item::y = a;}
|
6feebb1e4a212e1d03ed76cf9905dab0e13d74d6 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc018/C/1450549.cpp | 072ff01502f0906f71675dd4247bf98e24355cea | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 2,095 | cpp | 1450549.cpp | #include <cstdio>
#include <iostream>
#include <cstring>
#include <cmath>
#include <vector>
#include <string>
#include <algorithm>
#include <queue>
using namespace std;
typedef long long ll;
const int maxn = 100005;
int X,Y,Z;
int n;
struct P {
ll x,y,z;
bool operator<(const P&a)const {
... |
c3c6566f93f72039fc05d9f84283a288a3961d8a | 194a9769cf30c39e8636bd5cd106f1c74dcc971c | /vm/native/registry.cpp | 10fc2f7b549ea625890d01fd8cc130338d4ec1d6 | [
"MIT"
] | permissive | aidaka/KayoVM | f60e108f599c0cad6ebcd22dda1853825d10f252 | e86ddb705ebf798f7e9f04a41ab64ca63a7f13f6 | refs/heads/master | 2020-09-28T11:43:01.963519 | 2019-09-18T19:05:09 | 2019-09-18T19:05:09 | 226,771,714 | 1 | 0 | MIT | 2019-12-09T02:54:46 | 2019-12-09T02:54:45 | null | UTF-8 | C++ | false | false | 5,567 | cpp | registry.cpp | /*
* Author: kayo
*/
#include <unordered_map>
#include <cassert>
#include "registry.h"
#include "../symbol.h"
#include "../utf8.h"
using namespace std;
struct MethodInfo {
const char *class_name, *method_name, *method_descriptor;
bool operator==(const MethodInfo &x) const
{
return utf8_equals(... |
c8edfa4a475ebcfcab82b3d5e451221d1a502718 | 4b4db6462e571bbcd18cd12d26060b27c32f2c28 | /src/Entities/MobBomberman.cpp | b5a651e5e9e23da9fe51d444f01b77492e8fad2f | [] | no_license | LeBenki/bomberman | 7ae68830ddaadb0f850bebd62689bcaa73becccf | a33cfbd345f25d0a1168a703bb4dfc9b97961541 | refs/heads/master | 2020-03-24T03:32:17.129222 | 2018-08-02T10:59:34 | 2018-08-02T10:59:34 | 142,423,347 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 566 | cpp | MobBomberman.cpp | /*
** EPITECH PROJECT, 2018
** MobBomberman
** File description:
** Implementation of MobBomberman
*/
#include "MobBomberman.hpp"
MobBomberman::MobBomberman(irr::core::vector3df &pos, int teamId)
: Bomberman(pos, teamId, Event::InputType::AI), _aiManager(ResourceManager::getAiPath(ResourceManager::AI_BOMBE... |
41857243ca0481ce14a9966243e5c8f82cb53df2 | 4144a415afd9a72f2ff048f32bb28d68cef76e9a | /c++/2nd/new.cpp | 3812abb6146a9b7f419a71aed656ec050fb221ba | [] | no_license | Mshrimp/up_code_note | c36fa516f511da26a88eaa6b9e9cd5a766239b88 | 112d4521ea449fd7d27864b1f6c15bf2feb33c4b | refs/heads/master | 2021-06-13T09:29:44.239997 | 2017-04-10T11:51:28 | 2017-04-10T11:51:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 279 | cpp | new.cpp | #include <iostream>
#include <string>
#include <cmath>
#include <cstring>
#include <vector>
#include <iomanip>
using namespace std;
int main(void)
{
char *p = NULL;
p = new char;
//p = new char [1];
*p = 'A';
cout << "*p1 = " << *p << endl;
delete [] p;
return 0;
}
|
b62e32cba4c42b92c8e46228f8f10715d2a1d14b | 0ea94a193ea192c7adac10568d11268620777494 | /src/coro/cloudstorage/util/crypto_utils.cc | 8c15d70b2c1a9bc63898c16b10e157707e86f365 | [] | no_license | 7956968/coro-cloudstorage | 915ab981ec848af5081fc5ccfa303835ddd43300 | 36685dde4dd9f173887d42f231985dcf8efb38a7 | refs/heads/master | 2023-06-20T03:41:16.762065 | 2021-06-29T23:23:29 | 2021-06-29T23:39:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,668 | cc | crypto_utils.cc | #include "crypto_utils.h"
#include <cryptopp/cryptlib.h>
#include <cryptopp/hex.h>
#include <cryptopp/hmac.h>
#include <cryptopp/sha.h>
namespace coro::cloudstorage::util {
std::string GetSHA256(std::string_view message) {
::CryptoPP::SHA256 hash;
std::string result;
::CryptoPP::StringSource(
... |
11d1c6d041ff1bceb1a95f61421045398b5fdbb6 | 0af77ddb9877ad112160b5f8ead96198137a379e | /ld4_biowar/ScriptConsole.cpp | 61789d2a4ce2342f103a4cbd4d867ec13a986c4b | [] | no_license | joeld42/ld48jovoc | 018989b2ef6fdfcb84b1fdbb16fd6d94318101d8 | 46ba4d755698f0e578247b84598046b6d16d48c0 | refs/heads/master | 2021-01-18T23:02:10.099552 | 2020-10-05T22:43:06 | 2020-10-05T22:43:06 | 32,105,995 | 23 | 6 | null | 2020-10-05T22:43:55 | 2015-03-12T22:20:41 | C | UTF-8 | C++ | false | false | 9,338 | cpp | ScriptConsole.cpp | #include <list>
#include <ctype.h>
#include <string.h>
#include <python.h>
#include "ScriptConsole.h"
#include "Game.h"
#include "Map.h"
ALFONT_FONT *f_cons = NULL;
#define CONSOLE_BG_COLOR 107,142,35
#define CONSOLE_TEXT_COLOR 255,215,0
#define CONSOLE_ERR_COLOR 255,10,0
#define CONSOLE_PROMPT... |
5ac4dbaff887e9d72d5b2fe4de24c323efbbc5a1 | 999fdf150a93dc69d920786641fc9cd8e83f2a75 | /src/plastimatch/register/bspline_optimize_liblbfgs.h | a486b7103a90e72f1b7e3f1227afd366f06e393a | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agravgaard/Plastimatch | f79294947a1d44dd0c56798277374222fa92df57 | 7b5b79bb1a258d69a653bc82849ed420e673de3d | refs/heads/master | 2021-01-17T06:53:30.814597 | 2020-08-21T12:51:14 | 2020-08-21T12:51:14 | 52,898,082 | 11 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 464 | h | bspline_optimize_liblbfgs.h | /* -----------------------------------------------------------------------
See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
----------------------------------------------------------------------- */
#ifndef _bspline_optimize_liblbfgs_h_
#define _bspline_optimize_liblbfgs_h_
#include "plmre... |
44357b059ae207d33b7069e5151a470f8f2168cf | 41b3a72244fa5532cab03618c882af96d83490d6 | /CsPlugin/Source/CsCore/Public/Managers/Pool/CsTypes_Manager_PooledObject.h | e242d3a955650540a72894bcc85d4328f1c36204 | [
"MIT"
] | permissive | closedsum/core | 83fe249ef3fd8f543b589b843e85a767820b8ebc | 12c3ab8d3a43d58d431bfd4a7563fdb4943f4a62 | refs/heads/master | 2023-08-30T00:48:34.572460 | 2023-08-30T00:39:11 | 2023-08-30T00:39:11 | 102,293,517 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,699 | h | CsTypes_Manager_PooledObject.h | // Copyright 2017-2023 Closed Sum Games, LLC. All Rights Reserved.
#pragma once
// CVar
#include "CsCVars.h"
// Types
#include "Managers/Pool/CsTypes_Pool.h"
class UWorld;
class UObject;
class UClass;
namespace NCsPooledObject
{
namespace NManager
{
// FConstructParams
#pragma region
/**
*/
struct CSCORE... |
a8958d54ee947cc01b7daeda683652a206dde9b4 | 80aa687b6ef57dfc6c4b1267a2455d387af9aee2 | /AV2/ALG_II_Q1.cpp | 8ac1a1cc5457ad2908ef6282e1b38bf7737c4754 | [] | no_license | daniel0ferraz/ProgramacaoEstruturada | 1bc65b82b291bae3614386fc39277488d5166b8e | f5ad6f0291423eb18e677186d76b0d7bb488111a | refs/heads/master | 2023-01-25T05:32:37.938098 | 2020-12-01T18:01:25 | 2020-12-01T18:01:25 | 290,472,150 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 336 | cpp | ALG_II_Q1.cpp | #include <stdio.h>
#include <stdlib.h>
main(){
int vet[10] = {9, 10, 2, 6, 7, 4, 3, 5, 1, 8}, ind[10] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
for(int i = 1; i <= 10; i++) {
printf("%i-", vet[ind[10 - i] - 1]);
}
printf("\n");
for(int i = 0; i < 10; i++) {
printf("%i-", ind[10 - vet[i]... |
eead189b6f776919e25fef5631c56b8d5e4e3fe4 | 9b675acd1c6d6d155bf34f0fa99e6d84a2744a00 | /dedicnostAuta.cpp | dc9afdbe297a9538a7a02dfc4682a123eec8593c | [] | no_license | martinnsvobodaa/svo0260_ukol_3_auta | a9fdede61768ca5e6911ecdbbd6f4fc5759b7d3c | 1125147c6a9c96ed7b0e4996cd7390a0f1cea090 | refs/heads/master | 2022-04-18T12:29:07.859919 | 2020-04-16T08:50:54 | 2020-04-16T08:50:54 | 256,159,993 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 223 | cpp | dedicnostAuta.cpp |
#include <iostream>
#include "Auto.h"
#include "NakladniAuto.h"
#include "OsobniAuto.h"
using namespace std;
int main()
{
NakladniAuto n(6, 130, 3,2000);
OsobniAuto o(4, 220, 5, 120);
}
|
05afbab195b83ed957ee7e58686ffbbc369c1755 | 607829232b9ec8d6733fb67be85e8555d19e1ee0 | /libs/core/include/fcppt/algorithm/map_iteration_second.hpp | 759a885bdbcb60d8b9bfc16f534e61fb46f30169 | [
"BSL-1.0"
] | permissive | cnsuhao/fcppt | 3b917196d5faf477d769b8f04e0001361a857776 | 104c035118a04011c5fd9574cc78b2889550ea65 | refs/heads/master | 2021-01-13T06:30:29.527419 | 2016-11-05T13:33:41 | 2016-11-05T13:33:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,261 | hpp | map_iteration_second.hpp | // Copyright Carl Philipp Reh 2009 - 2016.
// 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)
#ifndef FCPPT_ALGORITHM_MAP_ITERATION_SECOND_HPP_INCLUDED
#define FCPPT_ALGORITHM_MAP_ITERATION_SE... |
07229194ad2b9a60727ba4ceca826e50403f27b2 | b832bc78ebdc57f127ecc58c1ad1479a2244a603 | /src/core/Graphics.cpp | 6d491d594e1534d6d1aee0dab23b9d4df85f58f1 | [
"MIT"
] | permissive | TerensTare/tnt | a25d3bda795b1693cae66ecc2ee785ae1aa9d541 | 916067a9bf697101afb1d0785112aa34014e8126 | refs/heads/master | 2023-04-08T23:06:53.972084 | 2021-04-20T12:56:23 | 2021-04-20T12:56:23 | 238,545,192 | 35 | 9 | MIT | 2020-09-03T03:14:33 | 2020-02-05T20:46:22 | C++ | UTF-8 | C++ | false | false | 3,814 | cpp | Graphics.cpp | // This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
#include "core/Graphics.hpp"
void tnt::drawLine(tnt::Window const &win, tnt::Vector const &start, tnt::Vector const &finish, SDL_Color cons... |
5a891d7628edf9185bbe61129ed47b845d066632 | ed3c7841b10efea8338417bfff8e5fe22378178f | /TuBaSGa/map.cpp | 0e27cd5f31a962cd6485305086691ccc057de656 | [] | no_license | Pojemnik/turn-shooter | 122a45c92dbafd129b5b537e773b45a2670733a9 | e7bc521507877b4827d450a8cbc8caa30c04526e | refs/heads/master | 2020-05-16T03:42:18.684634 | 2019-04-30T16:29:44 | 2019-04-30T16:29:44 | 182,733,031 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,801 | cpp | map.cpp | #include "map.h"
#include <iostream>
#include <queue>
map::map(float tilesS, sf::Vector2f pos) : tilesSizes(tilesS), position(pos)
{
vis = NULL;
targetTex.loadFromFile("../img/target.png");
lineTex[0].loadFromFile("../img/line.png");
lineTex[1].loadFromFile("../img/curve.png");
rangeTex[0].loadFromFile("../img/ed... |
c99262dcae8516fe1d7e8dc1e985c92d307d8d97 | 5888c735ac5c17601969ebe215fd8f95d0437080 | /All code of my PC/c++6(c).cpp | 96df4051d21d62545f4b53f02f9399bbde7e5e95 | [] | no_license | asad14053/My-Online-Judge-Solution | 8854dc2140ba7196b48eed23e48f0dcdb8aec83f | 20a72ea99fc8237ae90f3cad7624224be8ed4c6c | refs/heads/master | 2021-06-16T10:41:34.247149 | 2019-07-30T14:44:09 | 2019-07-30T14:44:09 | 40,115,430 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | cpp | c++6(c).cpp | #include<bits/stdc++.h>
using namespace std;
class b
{
public:
int i;
void set_i(int x)
{
i=x;
}
int get_i()
{
return i;
}
};
class d: public b
{
public:
int j;
void set_j(int x)
{
j=x;
}
int mul()
{
return j*get_i();
}
... |
2beb750d77d8b21bb176735ea4bec3d8db08da7b | 5ddbdc8895681cade93efb56915129069610a0de | /FinalA1/actor.cpp | 5ad0312e911daa967b1be8037bfbc43702604ab4 | [] | no_license | GeddingsJ/OSU_CS162_Intro-to-CompSci-II | b00ee05d1d877ea064ce47adae60531e854c02f4 | 816e4b5cfd269b63ad6199ee18639665f2e064cf | refs/heads/master | 2020-05-20T17:40:32.854362 | 2019-05-08T23:44:04 | 2019-05-08T23:44:04 | 185,692,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 113 | cpp | actor.cpp | #include "actor.h"
int Actor :: getTimer(){
int timer = 0;
return timer;
}
void Actor :: setTimer(int t){
}
|
79f2efa0cb8bf5db6ff3b66e660667f57724d158 | 6b550d3d0b182bcddda1f0a175d6b6cd07b60fb3 | /logdevice/admin/AdminCommandAPIHandler.cpp | 10ccee8a28be8b24bfad6474c66c03f1d0dd2089 | [
"BSD-3-Clause"
] | permissive | Rachelmorrell/LogDevice | 5bd04f7ab0bdf9cc6e5b2da4a4b51210cdc9a4c8 | 3a8d800033fada47d878b64533afdf41dc79e057 | refs/heads/master | 2021-06-24T09:10:20.240011 | 2020-04-21T14:10:52 | 2020-04-21T14:13:09 | 157,563,026 | 1 | 0 | NOASSERTION | 2020-04-21T19:20:55 | 2018-11-14T14:43:33 | C++ | UTF-8 | C++ | false | false | 1,170 | cpp | AdminCommandAPIHandler.cpp | /**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "logdevice/admin/AdminCommandAPIHandler.h"
#include <folly/io/Cursor.h>
nam... |
c1ed5423758e9f036cd4ad73d8632d5bc204b7bc | e16a922542786c77bff0d4a981d494db59cd593c | /rush00/SpaceObject.cpp | afe83bca29446398a3c6a8334635157cc1caed92 | [] | no_license | vkaz/CPP_POOL-42 | 4cbe837c539fd33dd3658b91f32f1020928a259d | 8b4b334a3ae47b408fbcea28ce534a9028b04616 | refs/heads/master | 2020-05-03T22:40:42.554339 | 2019-04-13T09:41:51 | 2019-04-13T09:41:51 | 178,847,734 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 940 | cpp | SpaceObject.cpp | #include "SpaceObject.hpp"
SpaceObject::SpaceObject(int maxObjPoints) :
_maxObjPoints(maxObjPoints)
{
}
SpaceObject::SpaceObject(const SpaceObject &rhs)
{
(void)rhs;
}
SpaceObject &SpaceObject::operator=(const SpaceObject &rhs)
{
(void)rhs;
return *this;
}
SpaceObject::~SpaceObject()
{
}
void SpaceObject::draw... |
2d212fda320abc16ea5b015a4279919c0cd28261 | 02acec6a11af9cde77e21ddfac8cdb7ddacd50b8 | /assignment/old-cs-100/tags/2008-04-28/gate.cc | aea29e994d42aa9b2e7a4f3e0619df6b6c7097b3 | [] | no_license | mythicalprogrammer/cs100 | a28eda4543437084ecd38f22f095063238fe8468 | 6d49263044b5f6743e27e42aaf48daa9aa14349d | refs/heads/master | 2021-01-21T00:44:25.174006 | 2011-08-06T07:30:39 | 2011-08-06T07:30:39 | 2,164,153 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,182 | cc | gate.cc |
// Course: CS 100
// Lecture Section: 1
// Lab time: Friday 11-2 pm
// Date completed:
// First Name: Jay
// Last Name: Novilla
// ID Number: 860802932
// Email address: jay-r.novilla@email.ucr.edu
// Project: 1
// ==================================================... |
32ec94f51b97b5db84c28728011156a16161bbb0 | 65c2d49370bd4d3ad81127fbe0290d6482493785 | /Proj_X/main.cpp | c0d78e9200e7d49cf8f91a196982165cc2aaa8b0 | [] | no_license | goldami1/SnakeGame | 04ac617b55c8cf72b9d4bc0762a069f9165129fe | 34dc9367fcd29eddaa1d6d82e3f0ab50946735c1 | refs/heads/master | 2021-08-19T16:24:28.924711 | 2017-11-26T22:28:25 | 2017-11-26T22:28:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 336 | cpp | main.cpp | #include <windows.h>
#include <iostream>
#include "TheSnakesGame.h"
#include "_board.h"
using namespace std;
int main() {
TheSnakesGame game;
bool continueGameFlag = true;
continueGameFlag=game.setBoard(board_example);
if (continueGameFlag)
{
game.init();
game.loadMissions();
game.run();
}
else
got... |
af52290461d520d9a3f200ddfbc95aa533389416 | 563c6885b1aab5af7224381a98a58d63376258dc | /pizzaprogram_arnar/Model/delivery1Model.cpp | 8a1b72b65182ad393795f8b83cd95eee965f6766 | [] | no_license | SigurgeirS/H42--Verklegt | eb25896de4c32880b85754c4fdacecf1a0b24d8c | ed92b157cfed3504756544c94e6a2f399ae52514 | refs/heads/master | 2021-08-29T08:22:07.223670 | 2017-12-13T14:51:05 | 2017-12-13T14:51:05 | 112,200,670 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 345 | cpp | delivery1Model.cpp | //
// Afhending.cpp
// Verklegt namskeið
//
// Created by Halldór Alvar Kjartansson on 04/12/2017.
// Copyright © 2017 Halldór Alvar Kjartansson. All rights reserved.
//
#include "delivery1.hpp"
ostream& operator <<(ostream& out, DeliveryUI& deli){
return out;
}
istream& operator >>(istream& in, DeliveryUI& de... |
496bb0fcda7362c3f83c4d740d82aea7a816f6de | 7e3c474bcb4daf3f651115b0dcf3ef7a86643186 | /scripts/da_chatsounds.h | 2b3acfa717c2c6a7f32e96ff6270bd57c38a67ce | [
"Apache-2.0",
"GPL-2.0-only"
] | permissive | TheUnstoppable/RenSharp | 0b5930722378fe0d1e6a814f5f7c226ed938a77f | 2a123c6018c18f3fc73501737d600e291ac3afa7 | refs/heads/master | 2022-12-22T08:16:33.958177 | 2020-09-30T08:58:04 | 2020-09-30T08:58:04 | 299,528,055 | 1 | 0 | Apache-2.0 | 2020-09-29T06:44:26 | 2020-09-29T06:44:26 | null | UTF-8 | C++ | false | false | 1,809 | h | da_chatsounds.h | /* Renegade Scripts.dll
RenCorner Sounds Game Feature
Copyright 2017 Whitedragon, Tiberian Technologies
This file is part of the Renegade scripts.dll
The Renegade scripts.dll 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
S... |
f1ebae26e2b7334e0364d5d400080fcb5b34030f | 4426d65ee98de1deb6e73bf23ddef29b25c1426d | /Codeforces/Contest/Codeforces-CodeforcesRound725Div.3/D.AnotherProblemAboutDividingNumbers.cpp | 8a3c22e3abdb4c7f335505eb8705da88888a081d | [] | no_license | Juantamayo26/Train | 0c50f985a70bc922dddb9b13a94c8f0bf8406a96 | cdf46c99db13a0ddfe55323e3a895e105dd87452 | refs/heads/main | 2023-06-29T13:07:25.629555 | 2021-08-06T21:54:41 | 2021-08-06T21:54:41 | 285,504,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 338 | cpp | D.AnotherProblemAboutDividingNumbers.cpp | // time-limit: 2000
// problem-url: https://codeforces.com/contest/1538/problem/D
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef vector<int> vi;
#define INF 1000000000
#define endl '\n'
int main(){
ios::sync_with_stdio(0); cin.tie(0); ... |
2e47fdd2e7a593c04b70e8e266721e9d3651b63b | 51f98979e9a4fd79788519f2cb06f42e3925e08f | /src/Game/Mount.cpp | b865b8e3f25e2d8793a92b0897b4e50ee37ae56c | [
"MIT"
] | permissive | ananace/LD44 | 3bdfa548f56c853240659b045a58f312fc6d5cc8 | 472e5134a1f846d9c2244b31fe3753d08963b71e | refs/heads/master | 2020-05-16T11:00:35.581521 | 2019-04-28T22:41:25 | 2019-04-28T22:45:44 | 183,001,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,986 | cpp | Mount.cpp | #include "Mount.hpp"
#include "Hardpoint.hpp"
#include "Weapon.hpp"
using Game::Hardpoint;
using Game::Mount;
using Game::Weapon;
std::size_t Mount::getHardpointCount() const
{
return m_hardpoints.size();
}
Hardpoint& Mount::getHardpoint(std::size_t aId)
{
return m_hardpoints.at(aId);
}
const Hardpoint& Mount... |
aea25c27e39089d52a25ae227bf4743f367d6a31 | ba5d1d776888be6ae9688d850f0445d80973ee8f | /public/vgui_controls/Panel.h | b70771ec7827794b760eb8fe64d6b0df16785d97 | [
"MIT"
] | permissive | BerntA/tfo-code | eb127b86111dce2b6f66e98c9476adc9ddbbd267 | b82efd940246af8fe90cb76fa6a96bba42c277b7 | refs/heads/master | 2023-08-17T06:57:13.107323 | 2023-08-09T18:37:54 | 2023-08-09T18:37:54 | 41,260,457 | 16 | 5 | MIT | 2023-05-29T23:35:33 | 2015-08-23T17:52:50 | C++ | UTF-8 | C++ | false | false | 41,037 | h | Panel.h | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//===========================================================================//
#ifndef PANEL_H
#define PANEL_H
#ifdef _WIN32
#pragma once
#endif
#include "tier1/utlflags.h"
#include "vgui/VGUI.h"
#inclu... |
c6c68b30d00bbfc1fb47aebc9c7d34aadf743111 | 1eff9d1a0a8b9d5b0cf330d52583ce972b205e81 | /signalGenerator/src/signalGenerator.hpp | bed5d1415fa98fc94370dd5ed82fd72107e31fba | [] | no_license | oogre/deafDancer | 65ddd6fe45e35d2139d453249b51469ee3d9a28a | 1dc5eae0d70706ba6e0b70c6cf1b6e35471824a8 | refs/heads/master | 2020-03-11T20:22:26.499784 | 2018-04-19T15:21:23 | 2018-04-19T15:21:23 | 130,234,578 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,560 | hpp | signalGenerator.hpp | //
// signalGenerator.hpp
// signalGenerator
//
// Created by Vincent Evrard on 19/04/18.
//
#pragma once
#include "ofMain.h"
#include "ofxOsc.h"
#define HOST "localhost"
#define PORT 12345
class SignalGenerator{
float changeAt = 0;
float oldRandom = 0;
ofxOscSender sender;
public :
... |
f4575a020a588835d07ac37cb5a0d95d670c326e | 19f8b5710df1c10217003040a853f67e2f2afda1 | /src/node_lkl.cc | ae72a64f153ec42ff36f3fc5d87cf7f4ec9cc9c5 | [
"Apache-2.0"
] | permissive | balena-io-modules/node-lkl | a09774b56c8f4b92f4ee1d422050c40ecc7549d5 | 599d175d69d308353ada8c221d89f48e371cb4c3 | refs/heads/master | 2023-08-22T00:25:00.348895 | 2018-11-29T16:25:15 | 2018-11-29T16:25:15 | 46,466,301 | 1 | 0 | Apache-2.0 | 2020-04-07T18:05:29 | 2015-11-19T03:56:59 | C | UTF-8 | C++ | false | false | 5,214 | cc | node_lkl.cc | extern "C" {
#include <lkl.h>
#include <lkl_host.h>
}
#include "node_lkl.h"
#include "async.h"
#include "worker.h"
NAN_METHOD(startKernel) {
// FIXME: we should prevent this from being called twice.
if (info.Length() != 1) {
Nan::ThrowTypeError("Wrong number of arguments");
return;
}
lkl_host_ops.print = N... |
9d5f87b490ce4d349c387876f048f53967753906 | d8dbc1d3168b6c71b860d7fde1584707618dabbf | /src/Test.hh | a257713a5720dd8ec2365dcd505c6c787b64b50b | [] | no_license | chinchiquderolean/C-_EngineCode | 9857b4a9982f33841b8a8b6d9006ff70993eb440 | 042e5dc3e780fa67cb7475629c37849061996b7d | refs/heads/master | 2021-04-12T10:26:05.231374 | 2017-08-12T10:29:39 | 2017-08-12T10:29:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 917 | hh | Test.hh |
#ifndef TEST_HH
#define TEST_HH
#include "VectorWrapper.hh"
#include "umlrtoutsignal.hh"
#include "umlrtprotocol.hh"
#include "umlrtsignal.hh"
struct UMLRTCommsPort;
namespace Test
{
class Conj : public UMLRTProtocol
{
public:
Conj( const UMLRTCommsPort * & srcPort );
UMLRTOutSignal isRea... |
c07ced2297283d829c6ffabc8316407b44cacccb | e29b55229bb40ceffb214e3f1728b50ccf78d13c | /Project/ServerRentSystem/server/ClientThread.h | b2f511d9993f1af71cdeed58ccd0d5690d372dcc | [] | no_license | lyj1021/CodePool | 667be765a1e50a55676f2206acbea2cb7f463336 | a667004f35ba16594efce6d4970c544b42c2acdc | refs/heads/master | 2020-12-02T07:54:45.548458 | 2017-07-09T14:59:49 | 2017-07-09T14:59:49 | 96,746,361 | 1 | 0 | null | 2017-07-10T07:05:12 | 2017-07-10T07:05:12 | null | UTF-8 | C++ | false | false | 407 | h | ClientThread.h | #ifndef __CLIENTTHREAD_H__
#define __CLIENTTHREAD_H__
#include "LogThread.h"
class ClientThread : public LogThread
{
public:
ClientThread(int accfd); // 构造函数
~ClientThread();
virtual void run(void); // 接收客户端数据的线程处理函数, 存入存储队列
private:
int m_accfd; // 用于接收客户端数据的套接字描述符
};
#endif // __CLIENTTHRE... |
ab31adf3a3e75510ae34a7237824db8fe8d28ae4 | cdab2ef737a481a92fee3e08bbdb7227adbb4259 | /libbrillo/brillo/blkdev_utils/lvm_device_test.cc | 6b5dc8b90548f5f279485c647ae6f210e5216219 | [
"BSD-3-Clause"
] | permissive | manduSry/platform2 | a2c1c829e45356b920e6c7ba546324e6d6decfdf | 58ede23d2f4cd5651b7afaae5c78893cc836f01d | refs/heads/main | 2023-04-06T19:06:50.384147 | 2020-12-30T04:41:55 | 2021-01-20T04:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,559 | cc | lvm_device_test.cc | // Copyright 2020 The Chromium OS 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 "brillo/blkdev_utils/mock_lvm.h"
#include <base/files/file_util.h>
#include <gtest/gtest.h>
namespace brillo {
TEST(PhysicalVolumeTest, Inv... |
cea88d18a45462bb776989fa91b14b545f5ff825 | 0c5545760a18b895833388cf869f2a9d24240ab7 | /SJF/main.cpp | 36001a51043128b9bc92143bf4197dcc693c1953 | [] | no_license | KillerDiscret/SJ | 953edcc8dbf6bf01ffc2b0cf16490f0ec81ec2bf | e9233c4e0a1157bb9798d57c3551e6d41f49e086 | refs/heads/master | 2020-06-03T15:03:04.943423 | 2019-06-12T17:44:09 | 2019-06-12T17:44:09 | 191,618,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,301 | cpp | main.cpp | #include<iostream>
using namespace std;
int main()
{
int i, j, n, min, k = 1, SumaTiempoDuracion = 0, DuracionTotal = 0, Suma = 0;
int TDuracion[10], aux, TArrivo[10], TiempoEspera[10], Volver[10], OrdenProcesos[10] = { 1,2,3,4,5,6,7,8,9,10 };
float EsperaMedia = 0, TAMedio = 0, SumaVuelta = 0, sumaTiempoEspera = 0;... |
699d76b8c622f7c90563cf0ad02bba7c06fcb64c | d5963ea921732fb5aaee01efb48f66556c138c2c | /code/Api/AsXMLElement.h | 48a098de561e1ad40feb445350cdb7774aea4683 | [] | no_license | weeeBox/oldies-bc-cpp | 1ef51c86ffe326b4233f83014e10e59cbbdb9d09 | f954023b8f9502d8c87870d65e669eb4e1399f25 | refs/heads/master | 2016-09-06T15:09:27.830396 | 2012-05-20T22:00:08 | 2012-05-20T22:00:08 | 4,340,313 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,484 | h | AsXMLElement.h | #ifndef AsXMLElement_h__
#define AsXMLElement_h__
#include "AsBc.h"
#include "AsXML.h"
#ifndef AsXMLList_h__
#include "AsXMLList.h"
#else
AS_CLASS(AsXMLList);
#endif // AsXMLList_h__
#include "AsString.h"
#ifndef AsXML_h__
#include "AsXML.h"
#else
AS_CLASS(AsXML);
#endif // AsXML_h__
AS_CLASS(AsXMLElement... |
9efebd77397284602b58a4b19ce41a170651ca96 | 01d93b65364f9b42b6b015d0312cda99ad930ee6 | /power_iteration/pagerank.h | 218ef76912174015cb7fae59fbf6fd5234ce2f9c | [] | no_license | NikoWil/variable_precision | 893e362fd9a3f3a5d7cc97c241808eb1bc202ade | 1de4f472575c4ec799964003d2b98fb383088b50 | refs/heads/master | 2021-07-13T19:36:17.698618 | 2020-09-13T20:10:44 | 2020-09-13T20:10:44 | 202,329,344 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,303 | h | pagerank.h | //
// Created by khondar on 17.03.20.
//
#ifndef CODE_PAGERANK_H
#define CODE_PAGERANK_H
#include <array>
#include <cstdint>
#include <mpi.h>
#include <utility>
#include <vector>
#include "../matrix_formats/csr.hpp"
namespace pagerank {
struct pr_meta {
bool converged;
int used_iterations;
... |
c4c452fefd768f990cc4026382eb37c9ff232fb0 | e2a4ddb143bfc57b08c6062f88ff9271923001ad | /160.IntersectionOfTwoLinkedLists.cpp | 118aed083e9b274ed864de4143a5c5af78180952 | [] | no_license | jo-qzy/LeetCode | d99bdf6f73c3e081059f4bcb0c781580f1c7b644 | 47081a328481c14074173cd481f3b8241f45b9e3 | refs/heads/master | 2021-06-27T18:28:55.779325 | 2019-03-12T16:15:19 | 2019-03-12T16:15:19 | 134,131,932 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,498 | cpp | 160.IntersectionOfTwoLinkedLists.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution1 {
public:
ListNode *getIntersectionNode(ListNode *headA, ListNode *headB) {
//两种方法:
//1.找到两个尾节点,若相同,相交,长的链表先走相差的步数,两者同时走找交点
//2.同样的找尾指针,若相... |
b58162d14f364c81e9642c78df81f95c9fcbed75 | 3fe995d804048d810341fd67186b706a15e8fb7c | /src/terrain.cpp | 8f4c51ac0a2460f1e19d849c0511b5f60a6838ae | [
"Zlib"
] | permissive | tomalexander/topaz | aae5a57bf8e89d118af2e918aa74dd891618a53d | a0776a3b14629e5e1af3a4ed89fded3fe06cfea3 | refs/heads/master | 2020-05-18T07:12:03.438355 | 2012-12-23T23:09:23 | 2012-12-23T23:09:23 | 5,740,705 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,489 | cpp | terrain.cpp | /*
* Copyright (c) 2012 Tom Alexander, Tate Larsen
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* ... |
597a8d9662617df5ff65e401c1d7c1bd801d9566 | b01ee478b903e193f4f7c557254f1edaf210850f | /archive/DEC15/PLANEDIV.cc | 47daf3aedd6f97388cf0513399cfe55430a6405d | [] | no_license | Rodomonte/chef | 55a18f01ade3336da3a791c161769c6a89c5be3e | 13f3cc02c99ea666d75719aa9d3ea6b9eec6e169 | refs/heads/master | 2022-03-09T21:03:30.963621 | 2019-11-16T17:03:15 | 2019-11-16T17:03:15 | 103,997,091 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,272 | cc | PLANEDIV.cc | // PLANEDIV
#include <stdio.h>
#include <map>
using std::map;
#define gc getchar_unlocked
#define _mi map<int,int>
#define _mmi map<int,_mi >
#define _mmmi map<int,_mmi >
#define _mmmmi map<int,_mmmi >
inline int getn(){
int n = 0, c = gc(), f = 1;
while(c != '-' && (c < '0' || c > '9')) c = gc()... |
9fbcb84b816885d199046e52a588dbba36679bb4 | fcc777b709d795c4116bad5415439e9faa532d39 | /rongyu/homework1/file/2015110226_1044_正确_245.cpp | d866573f81d0ee46455f07cb1adfbc62a14284d3 | [] | no_license | demonsheart/C- | 1dcaa2128ec8b20e047ae55dd33f66a359097910 | f567b8ca4a4d3ccdf6d59e9fae5b5cea27ec85c1 | refs/heads/master | 2022-11-29T00:27:30.604843 | 2020-08-10T11:48:36 | 2020-08-10T11:48:36 | 283,923,861 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | cpp | 2015110226_1044_正确_245.cpp | #include <bits/stdc++.h>
#define RE register
#define FOR(I,START,END) for(RE int I=START;I<END;++I)
using namespace std;
int main(int argc, const char *argv[]) {
int T;
cin>>T;
while(T--){
int m,n;
cin>>m>>n;
int max = -999;
int min = 999;
int **mat = new int*[m];
FOR(i,0,m){
mat[i] = new int[n];... |
26b3b2da7317e031fa2f96c34df2b46c4595839a | bdd643af155b84b210cbbabd9edc8e9a24a04356 | /IDeferredLight.cpp | ac04bbf04eaa1ba4c265389a8ae70bdaf6041093 | [] | no_license | lukebitts/Deferred-Rendering-Example | 5ff0d3d0581437c0953c6692af998b7899a51d4f | 06e7ff0c1f763018a659c22dbb3f4a47e701befa | refs/heads/master | 2021-01-10T21:35:49.510377 | 2013-09-30T17:35:21 | 2013-09-30T17:35:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 30 | cpp | IDeferredLight.cpp | #include "IDeferredLight.hpp"
|
7bc13e47ef7d4f5f769a355869e8d70ead8293b2 | 30af63823dfd9e6cceaeb399108c789851acb175 | /SLE/sle_process.h | 98d51664714cd52612d19e5b92919461f9be9ced | [] | no_license | hrjackson/SLE | e5f7430ee5420a1737cc1e72e65db5f275c1ae76 | f35e8c75a3a1652862659dd5afdf1974aca1ca39 | refs/heads/master | 2016-08-03T19:10:44.694130 | 2015-07-16T07:48:19 | 2015-07-16T07:48:19 | 32,461,455 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,596 | h | sle_process.h | //
// sle_process.h
// SLE
//
// Created by Henry Jackson on 20/03/2015.
// Copyright (c) 2015 n/a. All rights reserved.
//
#ifndef __SLE__sle_process__
#define __SLE__sle_process__
#include <stdio.h>
#include <vector>
#include <set>
#include <complex>
#include <thrust/complex.h>
#include <map>
#include "stochast... |
03c16a91ab7d19dee05e07cb01db6ba042d9b2a5 | b4b4e324cbc6159a02597aa66f52cb8e1bc43bc1 | /C++ code/Zero Judge/B583(3).cpp | 5608c9028e44fb302a68a2cc6fd222814515f464 | [] | no_license | fsps60312/old-C-code | 5d0ffa0796dde5ab04c839e1dc786267b67de902 | b4be562c873afe9eacb45ab14f61c15b7115fc07 | refs/heads/master | 2022-11-30T10:55:25.587197 | 2017-06-03T16:23:03 | 2017-06-03T16:23:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,054 | cpp | B583(3).cpp | #include<bits/stdc++.h>
using namespace std;
int T,V,E;
vector<int>AD[1000];
int ADD[1000][1000],VIS[1000],IN[1000];
bool Dfs(int u)
{
if(VIS[u]==1)return true;
else if(VIS[u]==2)return false;
else assert(VIS[u]==0);
VIS[u]=1;
for(int i=0;i<AD[u].size();i++)
{
if(Dfs(AD[u][i]))return true;
}
VIS[u]=2;
return... |
bfd3d2b3eb4b6ae91bf359bc9d37d3777452b497 | 1946106f2024747767655878a8f157a1407a1476 | /ADVANCED-PROGRAMMING/ASSIGNMENTS/LOOPS ASSIGNMENT/11.cpp | a7a4d07b3cbb3331e1b0b3f577babd35c6258741 | [] | no_license | sridhar-5/Advanced-programming | f0de50ba8ce25789412fc551b53afd5147b5e5c0 | 610f6965984a15c2a55d19dc7f1ae9e3d2190e14 | refs/heads/master | 2022-12-09T02:45:14.852741 | 2020-09-09T15:58:27 | 2020-09-09T15:58:27 | 292,258,266 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 387 | cpp | 11.cpp | #include <iostream>
#include <cmath>
using namespace std;
int main()
{
float x,sum,t,d;
int i,n;
cout << "Input the Value of x : ";
cin >> x;
cout << "Input the number of terms : ";
cin >> n;
sum =1; t = 1;
for (i=1;i<n;i++)
{
d = (2*i)*(2*i-1);
t = -t*x*x/d;
sum =sum+ t;
}
cout << "\nthe sum = " ... |
45d4162ab9a2d4b844b3e91fb40c76100a3d02af | 41c678a8d10648fbfe09e8af6227f80b001b3c8e | /src/gui/window.h | 9279fd3dbe0cca634067e259830d56336aa12820 | [] | no_license | bagobor/Beetle | b1fd1d76658d5bdd7870f461bf3f402e0da000b9 | 74be790ba2d0894f7e7604b02d2f363e296a8c8f | refs/heads/master | 2020-12-30T23:21:40.625167 | 2014-10-08T17:32:37 | 2014-10-08T17:32:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 928 | h | window.h | #ifndef WINDOW_H
#define WINDOW_H
#include "guiitem.h"
#include "button.h"
class Window: public MouseEvents {
QGLWidget *glWidget;
QList<GuiItem *> items;
Layout *root = nullptr;
Plate plate;
QPoint _position;
bool _needRender = false;
GuiMaterial *material = nullptr;
public:
Window(QGLWidget *glWidget);
vi... |
cdf7812ed223efb7989f9d1a1324ec5398266a7d | 4b0966039c92be28fef75aa7af5ada1d38b90e88 | /src/geant4/app/include/DagSolidMaterial.hh | 9a84a885a7ead17f5d0d97a41035695b0bbd9ca8 | [
"BSD-2-Clause"
] | permissive | svalinn/DAGMC | 517a0b62d5df3754f424488c545b2d0a02a644e9 | a7d1f3fe5e7d048308f17d7a494c702ed25f795f | refs/heads/develop | 2023-08-31T19:04:26.026888 | 2023-08-31T14:56:08 | 2023-08-31T14:56:08 | 5,625,571 | 81 | 56 | NOASSERTION | 2023-09-14T14:29:23 | 2012-08-31T07:10:14 | C++ | UTF-8 | C++ | false | false | 1,023 | hh | DagSolidMaterial.hh | #include <map>
#include "G4Material.hh"
#include "G4SystemOfUnits.hh"
#include "pyne.h"
#ifndef uwuw_hpp
#define uwuw_hpp 1
#include "uwuw.hpp"
#endif
/*
* Load the full material collection from PyNE library, return G4Materials
*/
std::map<std::string, G4Material*> load_uwuw_materials(UWUW* filename);
/*
* Load ... |
0d4638623f705d057bb3b31736b6c033449a3cdf | 0fd20c882591fa0fe27aea8a70d5d90b792e415d | /lib/ObjectCarrier/ObjectCarrier.h | 37f2b8c0e80990b344fb719f0266bac65e980a20 | [] | no_license | MechatronikDoubleScara/DoubleScaraSoftware | f685aee3b91ef93f9b95c7f1ad3e278779df3692 | f0b9cda6a03c5de7b9483543dc515c25db54125b | refs/heads/master | 2021-04-28T08:15:55.676882 | 2018-06-12T14:15:48 | 2018-06-12T14:15:48 | 122,244,339 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,051 | h | ObjectCarrier.h | #ifndef OBJECTCARRIER
#define OBJECTCARRIER
#include <Communication.h>
#define OBJECTCARRIER_OFFSET_X 110 // x-Offset from coordinat system origin to first element in object carrier (in mm)
#define OBJECTCARRIER_OFFSET_Y 60 // y-Offset from coordinat system origin to first element in object carrier (in mm)
#define... |
eaa85c4da394f05df21bd5ed4d62d87e1407e974 | 91814d825cf3939a0b0aad577752f4dedb217400 | /src/fbximporter.h | 8e53ff2ff1d20ad99e2ba0bdb1b473a0856f660f | [
"MIT"
] | permissive | Neill3d/fbx | 63c68cb799bf832da2430eb4cd48cb87ebbcd2c9 | f1216d69831ca5783d0aba4e4234688b60e4816c | refs/heads/master | 2022-09-15T05:36:31.474044 | 2022-08-28T21:32:02 | 2022-08-28T21:32:02 | 123,277,049 | 3 | 1 | MIT | 2018-02-28T11:43:00 | 2018-02-28T11:43:00 | null | UTF-8 | C++ | false | false | 589 | h | fbximporter.h |
#ifndef _FBXIMPORTER__H_
#define _FBXIMPORTER__H_
#include <fstream>
namespace fbx
{
#define IMPORTER_BUFFER_SIZE 1 << 16
// forward declaration
class FBXDocument;
/////////////////////////////////////////////////////////////////
//
class Importer
{
public:
//! a constructor
Importer();
//! a destr... |
9415b93bc5a5fb63f0d0fc362931dd8fa4836498 | 9be246df43e02fba30ee2595c8cec14ac2b355d1 | /dlls/hl1_dll/hl1_npc_headcrab.cpp | 5a4b4a64cca83e13c7e83c7a82397921bb725eb8 | [] | no_license | Clepoy3/LeakNet | 6bf4c5d5535b3824a350f32352f457d8be87d609 | 8866efcb9b0bf9290b80f7263e2ce2074302640a | refs/heads/master | 2020-05-30T04:53:22.193725 | 2019-04-12T16:06:26 | 2019-04-12T16:06:26 | 189,544,338 | 18 | 5 | null | 2019-05-31T06:59:39 | 2019-05-31T06:59:39 | null | WINDOWS-1252 | C++ | false | false | 17,731 | cpp | hl1_npc_headcrab.cpp | //========= Copyright © 1996-2001, Valve LLC, All rights reserved. ============
//
// Purpose: Implements the headcrab, a tiny, jumpy alien parasite.
//
// $NoKeywords: $
//=============================================================================
#include "cbase.h"
#include "game.h"
#include "AI_Default.h... |
722a80ad0c7b6db5bab82cfdc993ab22cfd372fe | e742080c7940fcdc702fd6c89bd38bf36dd3792a | /hooks/hooks/hooked_postscreeneffects.cpp | 1462fa0566126cf7aa20d3a4ac71130ea6811257 | [] | no_license | alooftr/Dynamism | 472ac1326dc5c881ed0920e65e67c670a5ca0703 | 4806fd10ab6c6a245b628146521f8d4ee145e9e4 | refs/heads/master | 2023-06-27T01:43:30.529919 | 2021-07-10T13:01:44 | 2021-07-10T13:01:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,894 | cpp | hooked_postscreeneffects.cpp | // This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
#include "..\hooks.hpp"
#include "..\..\cheats\visuals\other_esp.h"
#include "..\..\cheats\misc\fakelag.h"
using DoPostScreenEffects_t = vo... |
e070adf04d03a19d98923598a3e20b5d885e5e4d | 9dcec4a5e2dda327c890f1f3e60285eb18cc974a | /linux/zeverlogger/url_request.cpp | bc02aae6cce55187568938d8d4455f438e416306 | [] | no_license | Jacajack/misc | 9d5b038ca6a13dfcf42c4d350168db977db4871c | 6a67b40c6256ff00bca56e4461dee76a522f0e12 | refs/heads/master | 2023-06-26T14:46:35.851866 | 2023-06-13T18:06:40 | 2023-06-13T18:06:40 | 185,191,599 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,426 | cpp | url_request.cpp | #include "url_request.hpp"
#include <algorithm>
#include <stdexcept>
// The write callback function
size_t url_request::write_callback( void *contents, size_t size, size_t nmemb, void *userp )
{
size_t realsize = size * nmemb;
url_request *rq = static_cast<url_request*>( userp );
std::uint8_t *b = static_cast<std::... |
4b970a0c27255a420e3518121069c10e7013c4af | b95acef088a0f6a70cfbb3ea14a77378d09f1ca6 | /src/win10/VoiceMyNewsAppUI/pages/IndividualNewsPage.xaml.cpp | 3711ef1a1e5eba1370308db2135f61a77dbf3368 | [] | no_license | rcosnita/voicemynews | d1f32c284d004fb5f8266e893f9941e51a857051 | 79c231da430170324d5efbee871eda1631f7001b | refs/heads/master | 2021-03-24T13:15:32.587968 | 2017-01-10T22:27:14 | 2017-01-10T22:27:14 | 59,607,433 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,168 | cpp | IndividualNewsPage.xaml.cpp | //
// IndividualNewsPage.xaml.cpp
// Implementation of the IndividualNewsPage class
//
#include "pch.h"
#include "events/EventNames.h"
#include "utils/Conversions.h"
#include "IndividualNewsPage.xaml.h"
#include <ppltasks.h>
using namespace Platform;
using namespace Platform::Collections;
using namespace Windows::D... |
a62c90d5fb444062018f338005701d8bd447e3bc | a73abb19302b42d3733eef5c8cf49c451f904968 | /src/tests/ui/pathfinding_test.cpp | ed5e11325ca1531b8c730fdb9bfeec76c0aad083 | [
"MIT"
] | permissive | ejrh/hex | 12d6a5987b3579860a061aa03df8b7d012f8cc0c | 3c063ce142e6b62fb0f92f71bc94280305b53322 | refs/heads/master | 2021-04-09T17:52:29.517673 | 2018-05-20T02:21:54 | 2018-05-20T02:21:54 | 37,802,975 | 10 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 14,334 | cpp | pathfinding_test.cpp | #include "common.h"
#include "hexutil/basics/error.h"
#include "hexutil/basics/hexgrid.h"
#include "hexutil/basics/noise.h"
#include "hexav/graphics/font.h"
#include "hexav/graphics/graphics.h"
#include "hexgame/game/game.h"
#include "hexgame/game/movement/movement.h"
#include "hexgame/game/movement/pathfinding.h"
... |
9a20ff71e05c64c38b827b95c2cf71e256af3672 | 24ec54f6d896b8b27621712c5b28f896282a76a2 | /Code/watercolor/manager.cpp | 04f90cae1461b4846c4e692e0bf843c567223e36 | [] | no_license | franslom/graficos-proyecto-final | fcdee06816d114ee9383e7c3ab37155ed094c9a8 | acde87cde86ad65b5b6892f248279ee4b8b2e44d | refs/heads/master | 2021-04-26T23:23:34.274712 | 2018-03-06T01:12:33 | 2018-03-06T01:12:33 | 123,984,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,596 | cpp | manager.cpp | #include "manager.h"
#include "manager.h"
Manager::Manager()
: m_program(0)
{
m_active = new QList<Splat*>();
m_fixed = new QList<Splat*>();
m_dried = new QList<Splat*>();
m_startTime = QTime::currentTime();
timer = new QTimer();
timer->setInterval(33);
generator = new simple_brush();
... |
81ba36925725a96346aa9a54db80f27b242553f2 | 139f9fe8bb5101c6d162daa6848e5dbb35bb327e | /include/utils/misc.h | 8be73e0e99a0633b7ef816722caee1e96ff6fde8 | [
"MIT"
] | permissive | dextero/arkanoid-opencv | 98ff5630f07af82dd1201df568e5c96681f6b97d | 5aca253876586da12b5f3d8f57ec6ccd802d6994 | refs/heads/master | 2021-01-10T12:03:32.555000 | 2015-10-16T19:21:55 | 2015-10-16T19:21:55 | 44,406,064 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 249 | h | misc.h | //
// Created by dex on 26.04.15.
//
#ifndef ARKANOID_MISC_H
#define ARKANOID_MISC_H
template<typename T>
T clamp(T val, T min_val, T max_val)
{
return std::max(min_val,
std::min(max_val, val));
}
#endif //ARKANOID_MISC_H
|
a5fe3d0f560da7f695e2b88b6dfebbe80950c2ea | a0b0eb383ecfeaeed3d2b0271657a0c32472bf8e | /leetcode/1-1000/671-second-minimum-node-in-a-binary-tree.cpp | a5218de046c1f7191b39380b295da8b504af5629 | [
"Apache-2.0"
] | permissive | tangjz/acm-icpc | 45764d717611d545976309f10bebf79c81182b57 | f1f3f15f7ed12c0ece39ad0dd044bfe35df9136d | refs/heads/master | 2023-04-07T10:23:07.075717 | 2022-12-24T15:30:19 | 2022-12-26T06:22:53 | 13,367,317 | 53 | 20 | Apache-2.0 | 2022-12-26T06:22:54 | 2013-10-06T18:57:09 | C++ | UTF-8 | C++ | false | false | 1,093 | cpp | 671-second-minimum-node-in-a-binary-tree.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... |
84e796c87461aee1262414f476bb2a4632f3446c | 63a75aa5ff831440062cf7710c8e2d29b5a104a3 | /A4D/Engine/Transform.cpp | d803e177f6534a7b30d0ccfab7863ef4073be222 | [
"MIT"
] | permissive | 365082218/A4D | f544db96cb808287e70dc54824877f264c4f4b2e | 4c34c53c5cc0eeaaffface9f60ed114b8388c2c0 | refs/heads/master | 2020-11-27T11:50:19.753133 | 2020-01-06T03:55:28 | 2020-01-06T03:55:28 | 229,427,023 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,765 | cpp | Transform.cpp | #include "stdafx.h"
#include "Node.h"
#include "transform.h"
#include <d3dx9tex.h>
#include "Component.h"
#include "EventDispatcher.h"
REGISTER_CLASS(Transform)
void Transform::SetPosition(float x, float y, float z)
{
localMatrix._41 = x;
localMatrix._42 = y;
localMatrix._43 = z;
worldUpdate = true;
localUpdate();... |
8258d074511f66f3ec43203c64eb44b5b7b29700 | 0ae39e4f9744046848868cd58598f3f489fb22b4 | /Tests/TestsRosicAndRapt/Source/Main.cpp | 08fdabd789d79616b354712b7a3bcd3a2623f0d4 | [] | no_license | gogirogi/RS-MET | b908509ddd7390d05476ffce9c9cbb30e95439e8 | d767896f542d8e00e803ad09d20c05b2f25c2c71 | refs/heads/master | 2021-08-19T21:56:36.416451 | 2017-11-27T14:11:52 | 2017-11-27T14:11:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,864 | cpp | Main.cpp | #include "../JuceLibraryCode/JuceHeader.h"
#include "rosic_tests/rosic_CorrectnessTests.h"
using namespace rotes;
#include "rapt_tests/Experiments/MathExperiments.h"
#include "rapt_tests/Experiments/FilterExperiments.h"
#include "rapt_tests/Experiments/GeneratorExperiments.h"
#include "rapt_tests/Experiments/Graphics... |
9b3e2edd1600d1762cca6ff63a7d992e53037865 | ba7511a3f3a275158a35fc569c8cdcf52d571572 | /include/pose_graph_3d.h | 5164b7c49bb4c39def9fddc9f030f0c82b5dfb14 | [] | no_license | bdholt1/toy-pose-graph-optimization-ceres | 82c8a621984e275917a5798db66b805e8402bf36 | 7d198450aebcc89020f75dae43f7d560a68610b0 | refs/heads/master | 2022-11-09T20:15:49.502089 | 2020-06-30T19:58:53 | 2020-06-30T19:58:53 | 275,665,838 | 0 | 0 | null | 2020-06-28T20:49:37 | 2020-06-28T20:49:36 | null | UTF-8 | C++ | false | false | 1,455 | h | pose_graph_3d.h | #ifndef _POSE_GRAPH_3D_H_
#define _POSE_GRAPH_3D_H_
#include <Eigen/Eigen>
#include <memory>
#include <string>
#include <list>
#include <vector>
enum class EdgeType { Odometry, LoopClosure, BogusLoopClosure, LandmarkObservation };
struct Vertex3D {
Vertex3D(int index, Eigen::Vector3d p, Eigen::Quaterniond q) : i... |
f1d22a204733a4c1f8fd3ceb48a27296e13c4e61 | 043cffc19d437c318915ffebde5d1ef5a054e1a4 | /eventloop/swapping.hh | 4dea396f1132734b2b7b305ae2c3b12b5c8cb7a4 | [] | no_license | e12exp/ucesb | 125fe30cf546dfbd1ff04c7cf0d9e60aa9b19558 | 7243a48dd1feb3fa3ea6f8c69449b9c407942ff6 | refs/heads/master | 2022-11-30T06:45:34.837594 | 2022-11-25T13:55:02 | 2022-11-25T13:55:02 | 228,606,166 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 783 | hh | swapping.hh | #ifndef __SWAPPING_HH__
#define __SWAPPING_HH__
#include "byteswap_include.h"
#include "byteorder_include.h"
#include <assert.h>
#include <stdlib.h>
#include <sys/types.h>
#if BYTE_ORDER == BIG_ENDIAN
# define HOST_ENDIAN_TYPE(x) x##_big_endian
#endif
#if BYTE_ORDER == LITTLE_ENDIAN
# define HOST_ENDIAN_TYPE(x) x... |
7e478559da8cff2f6e4375e57f754e89e3a21121 | a734a640272fc3e59404ceb7885b881af707178d | /arithmetic_coding/Encode.h | 139bf66bc16bec8c8e0e3eca41b10b69bc68f37e | [] | no_license | tienpm/CS232_Introduction_to_Mutimedia_Computing | ca77ffb7af0564da77577a0443aaada6eb9a5fba | 050f022519df6579cecb7db804aab25bb4e2010a | refs/heads/master | 2022-11-29T16:24:41.227195 | 2020-08-13T08:36:13 | 2020-08-13T08:36:13 | 286,196,406 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 434 | h | Encode.h | #pragma once
#include "Compress.h"
#include <string>
using namespace std;
class Encode : public Compress
{
int low, high;
int opposite_bits;
int buffer;
int bits_in_buf;
ifstream in;
ofstream out;
public:
Encode(void);
~Encode(void);
void write_bit(int bit);
void output_bits(int bit);
... |
aa451559a5359f4bdf509a7772a601c213b2fba5 | 58a0ba5ee99ec7a0bba36748ba96a557eb798023 | /CodeForces/Complete/600-699/600C-MakePalindrome.cpp | e46197ed976588fcc241792017d4ca8b63c0377f | [
"MIT"
] | permissive | adityanjr/code-DS-ALGO | 5bdd503fb5f70d459c8e9b8e58690f9da159dd53 | 1c104c33d2f56fe671d586b702528a559925f875 | refs/heads/master | 2022-10-22T21:22:09.640237 | 2022-10-18T15:38:46 | 2022-10-18T15:38:46 | 217,567,198 | 40 | 54 | MIT | 2022-10-18T15:38:47 | 2019-10-25T15:50:28 | C++ | UTF-8 | C++ | false | false | 787 | cpp | 600C-MakePalindrome.cpp | #include<iostream>
#include<vector>
int main(){
std::ios_base::sync_with_stdio(false);
const int N = 26;
std::string s; std::cin >> s;
std::vector<long> a(N, 0);
for(long p = 0; p < s.size(); p++){++a[s[p] - 'a'];}
std::vector<int> odds;
for(int p = 0; p < N; p++){if(a[p] % 2){odds.push_ba... |
5fdf1b5499de2490fce621f9102028a6a1c1d333 | 58debc85cec245ee793a369ba8f5fba02d036867 | /Core/include/ACTFW/EventData/SimParticle.hpp | 309c24c33ee5289b89e680a664992b5baa5d5921 | [] | no_license | osbornjd/acts-framework | 8562f212aca4be2d58657833a08bba2c275045e9 | 936dfeafc4c5420e76d222aa9c6202cf64e6aab6 | refs/heads/master | 2021-01-04T11:22:18.665970 | 2020-03-30T12:23:09 | 2020-03-30T12:23:09 | 240,524,734 | 0 | 0 | null | 2020-02-14T14:20:02 | 2020-02-14T14:20:01 | null | UTF-8 | C++ | false | false | 1,291 | hpp | SimParticle.hpp | // This file is part of the Acts project.
//
// Copyright (C) 2018 CERN for the benefit of the Acts project
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#pragm... |
4a8909046d4e2c22c473e6caa2387a8f7e5774fa | 52e85afe3047e967b1a131e406bdc4deaf8121e1 | /src/kafka_conf.hpp | ea1ff1b09d3e8e53e71c6884e759b59d6c578697 | [] | no_license | A-j-K/kafka-notifier | e87f5b9c273ebc9ce98a3eae653e4c7d351d3f32 | 5cfcc59e446cf02e320ef0419ef17250448741a8 | refs/heads/master | 2020-03-16T16:34:16.959581 | 2018-05-17T10:37:12 | 2018-05-17T10:37:12 | 132,793,932 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | hpp | kafka_conf.hpp | #pragma once
#include <librdkafka/rdkafkacpp.h>
#include "utils.hpp"
#include "config/abstract_config.hpp"
class KafkaConf
{
public:
KafkaConf();
virtual ~KafkaConf();
static RdKafka::Conf *
get(const AbstractConfig*, RdKafka::Conf *outpConf, RdKafka::Conf *pTopic=0);
};
|
fac106c4f76e937dfd86ac92008951591b5a7581 | b819c29719ecb14440dab9d5cbc49d9901fc2d04 | /Client/Code/SpiderBornPattern.cpp | 1f5568a07111d8b7c0eaaae7f485115747caa336 | [] | no_license | Underdog-113/3D_portfolio | d338f49d518702b191e590dc22166c9f28c08b14 | 6b877ff5272bea2e6d2a2bd53e63b6ee4728cd9c | refs/heads/develop | 2023-07-07T20:30:00.759582 | 2021-07-27T06:01:52 | 2021-07-27T06:01:52 | 371,051,333 | 0 | 1 | null | 2021-06-13T14:30:32 | 2021-05-26T13:52:07 | C++ | UHC | C++ | false | false | 796 | cpp | SpiderBornPattern.cpp | #include "stdafx.h"
#include "SpiderBornPattern.h"
#include "FSM_SpiderC.h"
#include "FSMDefine_Spider.h"
#include "DynamicMeshData.h"
#include "PatternMachineC.h"
CSpiderBornPattern::CSpiderBornPattern()
{
}
CSpiderBornPattern::~CSpiderBornPattern()
{
}
void CSpiderBornPattern::Pattern(Engine::CObject* pOwner)
{
... |
b945843625b610bb967d971101a102d12d862f2a | b9606c302edeb76b52ab22bdccd596d9f7a94209 | /modules/task_1/andronov_m_min_column_matrix/min_column_matrix.h | a3f5c96c057360c896e168a0e357b7d99a1e8d50 | [] | no_license | DrXlor/pp_2019_autumn | 31f68a32f2fc334f4ce534161fb32c8cb70baf1c | e01960c714ad1e86d68cbf3be551741106dc908d | refs/heads/master | 2020-09-20T11:56:11.773825 | 2019-11-26T09:00:15 | 2019-11-26T09:00:15 | 224,469,332 | 2 | 0 | null | 2019-11-27T16:11:27 | 2019-11-27T16:11:26 | null | UTF-8 | C++ | false | false | 614 | h | min_column_matrix.h | // Copyright 2019 Andronov Maxim
#ifndef MODULES_TASK_1_ANDRONOV_M_MIN_COLUMN_MATRIX_MIN_COLUMN_MATRIX_H_
#define MODULES_TASK_1_ANDRONOV_M_MIN_COLUMN_MATRIX_MIN_COLUMN_MATRIX_H_
#include <vector>
std::vector <int> GetRandomMatrix(int rows, int column);
std::vector <int> GetTransposeMatrix(std::vector <int> Matrix, ... |
734895393b1b6a5e605fd8c590661aaa1e5bf4d6 | 07b7340c6219648f884265783fbad1c03f17afd4 | /Source/Soul_Like_ACT/Public/UI/AttributeSlot.h | 2c42406cd9331cb86abc1d362f11ad6d3fd61332 | [] | no_license | parayc/Soul_Like_ACT | 77f5c39ea518d1fd75a211364b0bbfae8657ee10 | 70e19e3ee222ffc93394a6d1fcf6d880607e170e | refs/heads/master | 2022-07-14T15:50:50.086406 | 2020-04-21T02:06:31 | 2020-04-21T02:06:31 | 263,363,381 | 1 | 0 | null | 2020-05-12T14:38:49 | 2020-05-12T14:38:48 | null | UTF-8 | C++ | false | false | 924 | h | AttributeSlot.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "AttributeSet.h"
#include "Blueprint/UserWidget.h"
#include "AttributeSlot.generated.h"
class UTextBlock;
/**
*
*/
UCLASS(Abstract)
class SOUL_LIKE_ACT_API UAttributeSlot : public UUserWi... |
16694e74fccb377d01ecb5189647dbb458414a24 | bcf63c9ce35434332e9ca2eb5eedee7a1434031b | /stm32butterfly/fatsdio/sdmainspi.cpp | 8cc513083967d2a4097bd4e86a91a4bb4a9ce13d | [] | no_license | lucckb/isixsamples | b464211f0f8fcb3438e14ddd5752c55db8b89f38 | 4e0c047b5230e47f3676e1442f42fed4480948ea | refs/heads/master | 2023-04-20T08:51:11.766219 | 2021-04-30T20:48:35 | 2021-04-30T20:48:35 | 112,535,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,577 | cpp | sdmainspi.cpp | #include <isix.h>
#include <stm32lib.h>
#include <foundation/sys/dbglog.h>
#include <foundation/sys/tiny_printf.h>
#include <usart_simple.h>
#include <config/conf.h>
#include <stm32system.h>
#include <stm32rcc.h>
#include <stm32gpio.h>
#include <fs/fat.h>
#include <cctype>
#include <cstring>
#include <stm32spi.h>
#incl... |
3ba2749e3c05bfbc9450db858e59f36bec402a8c | 24fea01eea373397d71984af629ac6e7725754c3 | /LevelDBLib/jni/KvDB/TextField.cpp | c6bfcdd083556b5b9fd8dc092b82bdcc9910ccd0 | [] | no_license | lesteryan/leveldblib | 6df243c92b180377975cde351c607367ec2f460a | 495f84f2a99d0f5d6bfc434355afce08b2322bf6 | refs/heads/master | 2023-05-11T12:28:29.133365 | 2016-08-16T08:02:42 | 2016-08-16T08:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 212 | cpp | TextField.cpp | #include "TextField.h"
namespace kvdbEngine
{
TextField::TextField(string name,unsigned int length)
{
init(name,FIELD_TYPE_TEXT,name);
setLength(length);
}
TextField::~TextField(void)
{
}
}
|
eedaa9caf461a0df4ae1ff0704672fa1b51309e0 | 15214308abdd5dd1603d32303051647282295e3e | /resources/ews/ewsclient/ewssyncfolderhierarchyrequest.cpp | ad820438ab33c8e8e447998adfc1fd0fbcea4e5c | [
"BSD-3-Clause"
] | permissive | KDE/kdepim-runtime | 2c3f6bcc6f251cb3e51b3a49f85009593afd3339 | 61c3403c0632579d2996d5a3b12380076703ff77 | refs/heads/master | 2023-08-16T11:15:00.872529 | 2023-08-16T01:47:59 | 2023-08-16T01:47:59 | 42,729,679 | 14 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 6,983 | cpp | ewssyncfolderhierarchyrequest.cpp | /*
SPDX-FileCopyrightText: 2015-2017 Krzysztof Nowicki <krissn@op.pl>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "ewssyncfolderhierarchyrequest.h"
#include <memory>
#include <QXmlStreamWriter>
#include "ewsclient_debug.h"
#include "ewsxml.h"
enum SyncFolderHierarchyResponseElementType {
Sy... |
05e3a5886aacc3ef7f9b9cbd18e8856017bf0869 | 14d6c1355153d754af11fa7b8b5489ca6cee4457 | /src/include/mcs/core/detail/lapack.inc | 002da97d160eb8e9f33c150b4f3cc7f2cce1e133 | [] | no_license | cran/lmSubsets | 29f9f5ad2576127b5d86d7552d525aa2a08d4c71 | 6fd1894f47e240cd056f50bf0e31b8fc30206c53 | refs/heads/master | 2021-04-12T08:50:45.054164 | 2021-02-07T19:10:13 | 2021-02-07T19:10:13 | 126,402,148 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,066 | inc | lapack.inc | // Copyright 2009-2020 Marc Hofmann
//
// This file is part of the 'mcs' library (see
// <https://github.com/marc-hofmann/mcs.cc/>).
//
// 'mcs' 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 versi... |
b0da0a5603a1f658b6c53df63f72f8854eb7f737 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/multimedia/directx/dplay/dvoice/dxvutils/dvcdb.cpp | feed678ebb459aea16654cb02c3f8bb75cc7c64c | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 16,137 | cpp | dvcdb.cpp | /*==========================================================================
*
* Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
*
* File: dvcdb.cpp
* Content:
* This module contains the implementation of the compression
* subsystem and the associated utility functions.
*
* H... |
d24601107bf24dde76091b8d0651dfaa1f404775 | 6d0aac739669200185cfe4804b6f95dc4bbe037d | /SPFA(Queue).cpp | dd4acc8b4613448519d17ea22205a29802fd66a4 | [] | no_license | Rasadell09/algModels | f4762d6bd35e2fcd3076276cbe7427ce6c4d3fcf | 7fe1305547eab3fe1b9ceb41593199232a651723 | refs/heads/master | 2021-01-21T12:26:29.995167 | 2015-05-03T10:03:40 | 2015-05-03T10:03:40 | 34,981,437 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,187 | cpp | SPFA(Queue).cpp | #include <iostream>
#include <queue>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#define inf ~(1<<31)
using namespace std;
/**最大边数、最大点数*/
const int E=500000;
const int V=50000;
struct SPFA_Queue {
/**
*变量的意思分别是:
*邻接表头数组、第i点到起点的最小距离、节点访问控制符、节点入队列次数数组、邻接表计数
*/
int head[V],dist[V],visit[... |
9186a0569a83502cd1f40035fcff38140213e8ef | 5d01a2a16078b78fbb7380a6ee548fc87a80e333 | /ETS/Components/MM/EtsMmReports/MmRpMatrixByStockOptAtom.cpp | fc89832b74dc921f2fe88b609c984f5a3f15f896 | [] | no_license | WilliamQf-AI/IVRMstandard | 2fd66ae6e81976d39705614cfab3dbfb4e8553c5 | 761bbdd0343012e7367ea111869bb6a9d8f043c0 | refs/heads/master | 2023-04-04T22:06:48.237586 | 2013-04-17T13:56:40 | 2013-04-17T13:56:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 177 | cpp | MmRpMatrixByStockOptAtom.cpp | // MmRpMatrixByStockOptAtom.cpp : Implementation of CMmRpMatrixByStockOptAtom
#include "stdafx.h"
#include "MmRpMatrixByStockOptAtom.h"
// CMmRpMatrixByStockOptAtom
|
1e0d298e3c5cca79d5f97300e6172fa923b27748 | b8ececec40fe010c94d80359840d2e658a945cae | /DemoVCA/AlarmListCtrl/AlarmListCtrl.cpp | 84d9e35b60bbfab347c73f437941f949e0b7444e | [] | no_license | anyboo/UCADemo | 62295c23be88a375aaab137c8e79fe8574c909eb | e81b83b9f79b09ad59e505f7c561cc3ebbc4d596 | refs/heads/master | 2021-01-01T04:35:05.803748 | 2016-05-06T07:50:54 | 2016-05-06T07:50:54 | 58,035,735 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 23,124 | cpp | AlarmListCtrl.cpp | #include "StdAfx.h"
#include "../resource.h"
#include "AlarmListCtrl.h"
#include "AlarmViewDlg.h"
#include "VCADataMgr.h"
#include <Shlwapi.h>
#include "wm_user.h"
#include "../Common/EventFilter.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
RULE_NAME_TYPE AlarmL... |
4b4da2f3fde0497e7600ecbab33a37f069876a8b | e47d31724d6c5b33fdea6839a057498229baa195 | /week_4/ex26/ifdstreambuf/ifdstreambuf2.cc | 9833793594c43b36a3e353a60cac487d2c401584 | [] | no_license | davidvroom/C-CPP-ll | 47f75cb2d67b4185714c994de98377adadccd097 | a4e016be0c325d8cd37bbc8000e2cdc19734db1b | refs/heads/master | 2021-09-07T14:49:54.866679 | 2018-02-24T08:22:46 | 2018-02-24T08:22:46 | 110,444,878 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 155 | cc | ifdstreambuf2.cc | #include "ifdstreambuf.ih"
IFdStreambuf::IFdStreambuf(int fd, Mode mode)
{
open(fd, mode);
setg(0, 0, 0); // buffer is initially empty
}
|
0b88be46f8e2d2d0892e5dff1ef76621b95f8160 | 3ad2395c99540968f68d9f4a56ed19f1c1c1fe26 | /src/Bomberman/Escena.h | 2578d88324bf43a69e0a2002c1eb740590362e48 | [] | no_license | adriaret14/SDLProjects | 0cc32e6a4bc79fad56ceb17294681cde231f9419 | 76efcfba3c690c16090257d751d05f048bb7bda7 | refs/heads/master | 2021-09-05T19:26:02.071593 | 2018-01-30T14:35:59 | 2018-01-30T14:35:59 | 111,785,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 509 | h | Escena.h | #include "Types.h"
#include "Renderer.h"
#include <string>
#pragma once
enum estadoActual {Running, GoToLvl1, GoToLvl2, GoToRank, Exit};
struct RankStruct
{
std::string name;
int score;
bool operator<(const RankStruct &a)const
{
return score < a.score;
}
};
class Escena
{
public:
Escena(int, int);
~Escena(... |
14d840175e8326d103c57fe84a0ad6dbc5ee872e | 1b6419fe28053b42f5ff6c965a3e8fcb5a95305e | /Data_Structure_project3/FamilyTree.h | e5af283fe4c5f5930c021c2e0c17663548190f8a | [] | no_license | future-xy/Data_Structure_project3 | b45a3a2b6d485d9f82b3fefff09a5ff561c4f39c | eb55fbadf6bc668f9e81c92cb085c60cde6bf6e3 | refs/heads/master | 2020-04-02T18:03:03.185535 | 2018-11-20T07:29:10 | 2018-11-20T07:29:10 | 154,684,388 | 0 | 4 | null | 2018-11-15T08:01:40 | 2018-10-25T14:21:59 | C++ | UTF-8 | C++ | false | false | 1,695 | h | FamilyTree.h | #ifndef _FAMILYTREE_H
#define _FAMILYTREE_H
#include "Member.h"
#include "header.h"
#include <string>
#include <tuple>
using std::tuple;
using std::string;
using std::vector;
//typedef tuple<int, Member*, Member*, Spouse> Line;
typedef tuple<int, string, string, string> Line;
class FamilyTree{
public:
FamilyTree(M... |
7369d7e7b22985d63607efe441e425e051696f6e | 3afc5cbff71c5bc003c1c0c0fe81f5444467e841 | /RtcDemo/Global.cpp | 7bf95ac232389cbd3c7cb3235a2e83c50d0261b9 | [
"Apache-2.0"
] | permissive | HYQLV/QNRTC-Windows | be323eb9a565a5af3d94bfc9d9656d1e6bf5b6b7 | 15bf72a3dfa3e11e2f43371734335ebbb192f7ca | refs/heads/master | 2020-05-14T13:19:52.272235 | 2019-03-21T03:43:41 | 2019-03-21T03:43:41 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,024 | cpp | Global.cpp | #include "stdafx.h"
#include "Global.h"
#include "curl.h"
#pragma comment(lib, "libcurl.lib")
#pragma comment(lib, "Ws2_32.lib")
#pragma comment(lib, "winmm.lib")
#pragma comment(lib, "wldap32.lib")
#pragma comment(lib, "Version.lib")
size_t WriteBuffer(void *src_, size_t src_size_, size_t blocks_, void *pa... |
0e79714f2dc4c7b68b887cd5881f2bed85430b27 | eb1448980f007e6d0237a0109df26e0f6fa9d007 | /BFS.cpp | 4940766204497be7555f5ecf610d7aa939a3b4df | [] | no_license | priyankyadav31/operation_research | d47655f2ec1c9a8ea5f2b6b964fbf76898794d90 | 169f22612b7a2e2392c8857d0999cda220b8adb9 | refs/heads/master | 2021-01-21T13:29:58.970542 | 2018-08-12T14:42:50 | 2018-08-12T14:42:50 | 53,196,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,169 | cpp | BFS.cpp | #include <iostream>
#include<iomanip>
#include<limits>
#include <math.h>
using namespace std;
int counter=0;
//function to print the matrix
void printmat(double a[][20],int row,int column)
{
int i,j;
for(i=0;i<row;i++)
{
for(j=0;j<column;j++)
{
cout<<a[i][j];
... |
5f3c5c0dffddc54318d456533f255425c4e80a83 | d6b5438fdc4b41ee5e13ec3c6c781e53da87b34b | /LTIME68B/WTCH/wtch.cpp | fc9bd4ec391775bdde30d415badb5fe8597f0d4e | [
"MIT"
] | permissive | prateekguptaiiitk/Codechef | ba7aeb99bbddc898bba864759b500c238b086e15 | 3bc5aedae751319a1aaaedb680c71abb18cb8ced | refs/heads/master | 2020-04-18T09:00:28.784084 | 2019-05-17T18:19:55 | 2019-05-17T18:19:55 | 167,418,357 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 768 | cpp | wtch.cpp | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
ll t,i,n;
cin>>t;
while(t--)
{
cin>>n;
string s;
cin>>s;
ll c = 0;
for(i=0;i<s.length();i++)
{
if(i == 0 && s.length() > 1)
{
if(s.at(i) == '... |
ebd5de2e9f0ae5eaf59e1774cc5c6db4d747d2a2 | f77745de17ece258452b1d26643d3accc59fbb52 | /vision/coprocessor/shape_detector.h | 07e9c4627e617da8b448d2eea416164ce4f4a6d4 | [] | no_license | ailyntong/robot-2016 | 9a59110b89d6000090dec6139f1c5e6d43ed08fb | 23a67575dfd5f3462501b1b451b37a692b6002bf | refs/heads/master | 2021-01-12T11:12:21.307377 | 2016-08-10T06:19:23 | 2016-08-10T06:25:53 | 72,868,354 | 0 | 0 | null | 2016-11-04T17:04:40 | 2016-11-04T17:04:39 | null | UTF-8 | C++ | false | false | 886 | h | shape_detector.h | #ifndef _SHAPE_DETECTOR_H_
#define _SHAPE_DETECTOR_H_
#include <vector>
#include "unitscpp/unitscpp.h"
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
class ShapeDetector {
public:
ShapeDetector(std::vector<Angle> angles);
// run detection on a black and white image
void setData(cv::Mat image);
//... |
dd6482d15c6327a3ef3d79599aec995e348a3150 | 70e5f8c58a56d5bef7329f4b368cdfb1241e7f10 | /VarDef/varitem.cpp | eaadf38c0d43a261ae7f7c8cdf5d298d38c0c455 | [] | no_license | wxfzy/relkonIDE | 51d56d911b603349ed119deffb4628d36adc6998 | 8adf66cf2055da6813cb1322e30290f3ce8e2837 | refs/heads/master | 2020-05-31T22:58:49.189676 | 2018-06-01T11:09:40 | 2018-06-01T11:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,464 | cpp | varitem.cpp | #include "varitem.h"
const QString VarItem::charType = "char";
const QString VarItem::ucharType = "unsigned char";
const QString VarItem::shortType = "short";
const QString VarItem::ushortType = "unsigned short";
const QString VarItem::intType = "int";
const QString VarItem::uintType = "unsigned int";
const QString Va... |
482e758b3bc2b1a839f9938f97704c961cac460f | ae939902ff7adc24cb14ad9b51227ded643bc315 | /C++/5.STL模板/example23-3.cpp | c18dd92330e74548a845ca869bf654fcb5723592 | [] | no_license | robcore/Qt-Training | df643304658b2e8f0b561f6fa5b39458ecb1ab9c | c63def5e2cd40284f37eefb1c717fcfc1aae4fb7 | refs/heads/master | 2021-05-29T06:03:34.333202 | 2015-09-06T09:48:26 | 2015-09-06T09:48:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 843 | cpp | example23-3.cpp | #include <cstdlib>
#include <iostream>
#include <list>
using namespace std;
int main(int argc, char *argv[])
{
list<double> l;
cout<<"l size: "<<l.size()<<endl;
for(int i=0; i<5; i++)
{
l.push_back((i + 1) / 1000.0);
}
cout<<"l size: "<<l.size()<<endl;
list<doub... |
e511e1115acafc6beb07f0134ec3dfcf9f07e6fa | 66f93aaddc733b414bf02f824e6ebc534fd954d9 | /test/execinfo_test.cpp | 1e593101d0512dbe60227ab8592890d686e3449e | [
"Apache-2.0"
] | permissive | vogro-x/vogro | f941c53dd6f1cb412facd6137aba40e7e58a981e | 76f2c89cd85509e9b989bfab54a36b4a48acf70e | refs/heads/master | 2020-03-27T10:27:09.209932 | 2018-12-23T07:54:43 | 2018-12-23T07:54:43 | 146,421,089 | 17 | 1 | Apache-2.0 | 2018-12-22T15:47:50 | 2018-08-28T09:07:28 | C++ | UTF-8 | C++ | false | false | 1,509 | cpp | execinfo_test.cpp | #include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <execinfo.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#define PRINT_DEBUG
static void print_reason(int sig)
{
void *array[10];
size_t size;
size = backtrace(array, 10);
#ifdef... |
6f24a7d88075343d0053ffeb05db4b5f2582cbda | b5d130d7e3a668b661ce3c9d976e255533d24b89 | /source/zisc/core/zisc/internal/ieee_754_binary_software_impl-inl.hpp | f6f9f6bf5c79e5dfafb92d82676b95c002d65971 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | byzin/Zisc | f00c4f7116a7f1c22f2bc7abeb7e5285a2d131d1 | d67e244d95192b434ffcd341a54616e922b1157b | refs/heads/master | 2023-07-09T23:58:27.130798 | 2023-07-03T06:58:20 | 2023-07-03T06:58:20 | 66,723,872 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 35,428 | hpp | ieee_754_binary_software_impl-inl.hpp | /*!
\file ieee_754_binary_software_impl-inl.hpp
\author Sho Ikeda
\brief No brief description
\details
No detailed description.
\copyright
Copyright (c) 2015-2023 Sho Ikeda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#ifndef ZISC_IEEE_754_BIN... |
c887a8b3bca0b88f64164556f9562830176c6ca0 | 9c364c35b71f169e2e48d84f8d12e7e4f9c34e4e | /win_directx_helper/win_directx_helper.cpp | d987a32b973bfdecf62ccdd0aeac33641a8188eb | [] | no_license | Nojzug-vugroh-wiqva0/cmake_helpers | ccdb89f207ee1aacb4208686b73426324cbe8393 | 5217f7154254c819c21c7bc7761c2c3429c441b8 | refs/heads/master | 2023-06-14T06:45:21.451312 | 2021-07-06T12:54:43 | 2021-07-06T12:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,104 | cpp | win_directx_helper.cpp | // This file is part of Desktop App Toolkit,
// a set of libraries for developing nice desktop applications.
//
// For license and copyright information please follow this link:
// https://github.com/desktop-app/legal/blob/master/LEGAL
//
#include <d3d9.h>
#include <d3d11.h>
#include <string>
#define LOAD_SYMBOL(hand... |
0363600c23615c489522a9a7c668a1dabe2a31da | 8fccc348f62ec9e16a4ccb6739a3866c3c97fbcd | /3DTPS/SourceCode/Enemy.cpp | 6a90ec2ac54c3922ac6a4f885d7bff6b1ec0d37b | [] | no_license | Kyostar1112/3FirstHalfProjct | e62197d3106873e2575d271c05162872d962069d | 0717580c41af78e3c1ea2df39022780877bc5409 | refs/heads/master | 2020-03-17T20:31:54.609680 | 2018-05-18T07:39:40 | 2018-05-18T07:39:40 | 133,914,782 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 3,379 | cpp | Enemy.cpp | #include"Enemy.h"
const float PI = 3.141592f;
namespace ConstantEnemy
{
const float fSpawnLength = 30.0f;//敵が出てくる距離.
const int iExpImg = 3; //爆発画像の数.
const int iAttakInterval = 180; //攻撃間隔.
}
namespace CE = ConstantEnemy;
clsEnemy::clsEnemy()
{
m_vsmpExplosion.reserve(CE::iExpImg);
for (size_t i = 0; i < CE::... |
65a865194fb0d1773bb0e3f55ba5efd2ae16015d | e21abef1d146798e625f7178f93d7ab343e3cbef | /Sorting and Searching/Movie_Festival_II.cpp | 075ec59e718c174e48b3699a5f55c5d809e489eb | [] | no_license | yadurajgupta/CSES_Solutions | 6a83e8c147c2de7549a06cf5a5007f2441d99b9b | 712ffb168e0f07a4fdfa931be9352afb9874a534 | refs/heads/master | 2023-06-19T00:28:38.178563 | 2021-07-18T00:57:37 | 2021-07-18T00:57:37 | 373,908,543 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,030 | cpp | Movie_Festival_II.cpp | #include <bits/stdc++.h>
#include <iostream>
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define endl "\n"
#define int long long
#define all(a) a.begin(), a.end()
#define forn(i, N) for (int i = 0; i < N; i++)
#define print(x) \
... |
a8a3242136da766cfc281a0712fec2c0428f40a5 | 33e53f444a1b256b8d15307f37694abba0921de3 | /SCHNApps/include/controlDock_mapTab.h | 004bf4b2238e02b4d3a7c57a63d29d9c76cee550 | [] | no_license | tewk/CGoGN | 468665a650ff3a07c53d2a50e21d30d19b7d97f8 | 7039925801ac5241f604ff50a32d8416b1a04282 | refs/heads/master | 2022-11-04T22:27:29.477218 | 2022-10-28T22:37:46 | 2022-10-28T22:37:46 | 44,613,432 | 0 | 1 | null | 2020-01-10T16:37:18 | 2015-10-20T14:51:44 | C++ | UTF-8 | C++ | false | false | 1,791 | h | controlDock_mapTab.h | #ifndef _CONTROL_DOCK_MAP_TAB_H_
#define _CONTROL_DOCK_MAP_TAB_H_
#include "ui_controlDock_MapTabWidget.h"
#include "mapHandler.h"
#include "dll.h"
namespace CGoGN
{
namespace Utils
{
class VBO;
}
namespace SCHNApps
{
class SCHNApps;
class View;
class SCHNAPPS_API ControlDock_MapTab : public QWidget, public Ui... |
180a40656f317e5ea4a65568defeb2d1830d7bda | a4b7c87b34f965ec06a9a855b14defe1a5d13031 | /MyException.h | b5608b1df3c6e9cb75804c04c80f12935a5f73ef | [] | no_license | mavan001/ooa4 | 9c6cd0d9c2c91632346898ed75b84ba1c577aca2 | 26582efaeaff0163a48e6e4da93e7ad6271e584e | refs/heads/master | 2020-05-31T01:41:09.667195 | 2019-06-03T18:01:28 | 2019-06-03T18:01:28 | 190,055,626 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 244 | h | MyException.h | #pragma once
#ifndef EXCEPTION_H
#define EXCEPTION_H
#include <string>
class MyException {
private:
std::string _message;
public:
MyException();
MyException(std::string errorMessage);
std::string getMessage();
};
#endif |
261143079e2eed708d339899d4c6e217019c6d4b | affae9c241594e945cb831d3d08501aa47c1d4d5 | /Advance/A1035.Password.cpp | eee5709dadd45d369884ad2bd4824d8c52eadbb4 | [] | no_license | primerX/PAT | 37834959ee187abf7c4dfceebd5c8758f6a820c0 | 5fbb8a8779810e396c015788d168bd47898e5d5d | refs/heads/master | 2020-03-28T23:10:15.871709 | 2018-10-22T04:29:26 | 2018-10-22T04:29:26 | 149,279,741 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,642 | cpp | A1035.Password.cpp | #include<cstdio>
#include<cstring>
struct node{
char name[20], password[20];
bool ischange; //ischange == true 表示 password 已经被修改
}T[1005];
//cypt 函数判断 t 的password 是否需要被修改,若需要
//则对其进行修改并令计数器 cnt++
void crypt(node& t, int& cnt)
{
int len = strlen(t.password);
for(int i=0; i<len; i++){ //枚举 password 的每一位
if(t.pa... |
1092f127f85dd5b34f5e217e402b444b09cd8cac | b91d32cb31d4e6528bec10b25bd2210eb6330756 | /RenderEdge/Source/DllMain.cpp | d69e764e786bf52e7806a1e23dd2231d9c7805c0 | [] | no_license | bmjoy/RenderEdge | 8a58d07623cb2009190599ee6faf2e9ad02948c0 | 7e2d614163fd22680da6d21444f8daf032749894 | refs/heads/master | 2020-05-19T11:08:11.965471 | 2019-02-06T13:32:37 | 2019-02-06T13:32:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,698 | cpp | DllMain.cpp | #define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include "JassApi.h"
#include "GameUI.h"
#include "Input.h"
#include <stdio.h>
#include "Storm.h"
#include "ResourceManager.h"
#include "RenderingHook.h"
#include "Camera.h"
#include "MultiWindow.h"
#include "GameOffsets.h"
#include "fp_call.h"
#include "d3d8to9.hpp"
#... |
c57560f79952417a8b865e31c0c65e0329d0f378 | 98a81ccec5c523c1a6d4d23af2cc3d25d03961e5 | /bs_bos_core/include/py_reservoir.h | 9856303b870460f3736a56d481a9319e24058bd2 | [] | no_license | bs-eagle/bs-eagle | 1af7b4c788f6f6aa9ffe094ac1a7d72a6efe4bdc | b1017a4f6ac2dcafba2deafec84052ddde792671 | refs/heads/master | 2021-01-18T21:48:44.426068 | 2016-06-06T13:13:09 | 2016-06-06T13:13:09 | 1,061,323 | 9 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 726 | h | py_reservoir.h | /**
* \file py_reservoir.h
* \brief Export python wrappers for reservoir,
* see reservoir.h
* \author Sergey Miryanov (sergey-miryanov), sergey.miryanov@gmail.com
* \date 17.10.2008
* \copyright This source code is released under the terms of
* the BSD Licens... |
5d7d60ee639bdd76cc029885a4d1940a48c682bd | 0cae0706aca4f6b937475a2a0875252a524a9d02 | /LeetCode/maximum-product-of-word-lengths.cpp | 49511f7a0ea15de2f7a53d127df5771d0c47fd7a | [] | no_license | Constantor/Cookie | e42ed2090a5ad5250fd0d605f2ca066d189d4fdc | 6b68c326e71048126b5bd92b6ce65bb2de11abb4 | refs/heads/master | 2021-01-12T04:30:13.252786 | 2016-12-12T15:04:29 | 2016-12-12T15:04:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 632 | cpp | maximum-product-of-word-lengths.cpp | class Solution {
public:
int maxProduct(vector<string>& words) {
vector<int> bits;
for (auto& word : words) {
int bit = 0;
for (auto c : word) {
bit |= 1 << (c - 'a');
}
bits.push_back(bit);
}
int maxVal = 0;
int... |
53ce2734fe73cc17bc14372616e98af79a0b3a8b | 675c2022d91b05e8977fbf077921a782599d8306 | /test/times.cpp | 64201132e70abf70fd029464a1389da3754432fa | [
"BSD-3-Clause"
] | permissive | jaydee-io/oowe | aaae7b0bf85d2071e86b2210b5157875a6227a3c | 3669b4c060a916e14c6284b06809963df1ec5541 | refs/heads/master | 2016-09-06T10:19:33.593823 | 2015-06-29T07:13:00 | 2015-07-04T15:48:11 | 37,420,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,307 | cpp | times.cpp | #include <oowe/oowe.h>
#include <list>
#include <vector>
#include <map>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <fstream>
#include <cstdlib>
#include <cerrno>
#include <cmath>
#include <cstring>
#include <unistd.h>
using namespace std;
using namespace oowe;
#define ITER_MODULO 10
struct Si... |
54bfc887202a62aa3a33eac965deabbb5a6860d3 | b07fc923116c446120e41b1c5404ab04de4e283f | /Workshop 6/In Lab/Contact.cpp | 985166a49bd7d5c9074dba871c01feead4374f97 | [] | no_license | jatinAroraGit/OO-Programming | 1965feeded4f8c078fa03975a879f360eb04e057 | 8670d359c13366c639753c8a528326a9e504a5e8 | refs/heads/master | 2021-06-28T11:10:37.735777 | 2017-09-18T14:36:36 | 2017-09-18T14:36:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,758 | cpp | Contact.cpp | /***********************************************************
Workshop 6: LAB
_____________________
| NAME - JATIN ARORA |
| 136897162 |
|_____________________|
!#^*(&!^@
DATE - 6/22/17
FILE - Contact.cpp
// PURPOSE - tis file includes definitons of member functions of the class and two constructors and one ... |
1384fc63faf52c5885348a01a5cf4bfb1f697a45 | 89f68bbb5fa653f0c95db5bc38f54769c45428ff | /german_collegiate_2015/I.cpp | 1bfc5ee655d68cc794ecacb19c57de8984b91743 | [] | no_license | PedroBortolli/group_contests | 5255c0b24d313780568d5474dfadaa3f69ed68ea | 2e1e66e85bc5b34b1fda8ccbc61d929fe33c378b | refs/heads/master | 2021-01-20T06:59:19.415386 | 2017-08-27T02:39:11 | 2017-08-27T02:39:11 | 101,523,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,706 | cpp | I.cpp | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <functional>
#include <iomanip>
#include <ios>
#include <iostream>
#include <map>
#include <queue>
#include... |
7893c715d9ae73268a41641dc4606b3117ca02cc | a19040be78efec36f0c0d05da5667def3ace9143 | /benchmarks/transportation/NTST/include/NTSTPrimaryGeneratorMessenger.hh | e1e3c929ed4b40923ccefde31358c50cd93df825 | [] | no_license | w00zie/field_propagation | 0f1030d415e8fc6e272c9e82798c4aaa650225a5 | 3e0994ae839b19ae91043091566c132abb0df962 | refs/heads/master | 2021-01-22T21:12:42.274692 | 2017-03-19T15:54:19 | 2017-03-19T15:54:19 | 85,406,733 | 1 | 0 | null | 2017-03-18T14:19:27 | 2017-03-18T14:19:27 | null | UTF-8 | C++ | false | false | 3,088 | hh | NTSTPrimaryGeneratorMessenger.hh | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.