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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a0b7eaa5292d0c1d2d923aec6864f6849c837614 | 81e8e6b4bb4af832ed7230b299b9cc9bb98a0b12 | /src/io/GLGPUDataset.cpp | e4f96c8144b8cd52055bb875faf4a49415854be6 | [
"LicenseRef-scancode-other-permissive"
] | permissive | cquammen/vortexfinder2 | 293d4d23e67056b6963b0be91d38dbcb575d33b6 | a66df322a201112bf06738b5ad40d58a308c9d12 | refs/heads/master | 2022-12-11T13:19:49.841436 | 2019-03-29T19:56:51 | 2019-03-29T19:56:51 | 291,189,298 | 1 | 0 | NOASSERTION | 2020-08-29T03:05:05 | 2020-08-29T02:55:57 | null | UTF-8 | C++ | false | false | 11,830 | cpp | GLGPUDataset.cpp | #include "GLGPUDataset.h"
#include "GLGPU_IO_Helper.h"
#include "common/Utils.hpp"
#include "glpp/GL_post_process.h"
#include <cassert>
#include <cmath>
#include <climits>
#include <cstring>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <fstream>
#include <glob.h>
#if WITH_PROTOBUF
#include "commo... |
36012d1df7249d7ad7c71b56265adc50d538a0d3 | 0ae50405d60e245a025c6f984cb315a7afeb6833 | /pointlike/HealpixDiffuseFunc.h | e9ac95e588caf5d6617a42ef9b052db26297bb70 | [
"BSD-3-Clause"
] | permissive | fermi-lat/pointlike | 65977ee0085670c24800982ffa0855dba6c46680 | edcdc696c3300e2f26ff3efa92a1bd9790074247 | refs/heads/master | 2021-11-11T19:18:42.676557 | 2020-01-23T20:57:54 | 2020-01-23T20:57:54 | 103,187,044 | 1 | 3 | BSD-3-Clause | 2021-11-05T15:33:32 | 2017-09-11T20:52:43 | Python | UTF-8 | C++ | false | false | 3,136 | h | HealpixDiffuseFunc.h | /** @file HealpixDiffuseFunc.h
@brief declare class HealpixDiffuseFunc
$Header: /nfs/slac/g/glast/ground/cvs/pointlike/pointlike/HealpixDiffuseFunc.h,v 1.1 2008/10/20 23:40:12 markusa Exp $
*/
#ifndef skymaps_HealpixDiffuseFunc_h
#define skymaps_HealpixDiffuseFunc_h
#include "skymaps/SkySpectrum.h"
#include "sky... |
a8d4a2c69e2e30ca86d0b4c962b936748d3d83fb | 9851c3dca7338965d7fc57b55ef33ad35a1af30a | /Account_m/Account_m/Checking.cpp | ef9f0a7faceb7b59a34fd469784c2adf0944e01d | [] | no_license | Cottonterrorrr/MyRepo | 6b23e6ec4a6d02649c90f375a37509e16a937e96 | a7a8f3c6de47e6fb7682bef55e7b5bb2dfc763df | refs/heads/main | 2023-09-04T13:24:58.882508 | 2021-11-03T21:35:41 | 2021-11-03T21:35:41 | 424,386,841 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 318 | cpp | Checking.cpp | #include "Checking.h"
#include <iostream>
Checking::~Checking()
{
}
void Checking::Withdraw(float amount)
{
if ((m_Balance-amount)>50)
{
Account::Withdraw(amount);
std::cout << " Withdraw " << std::endl;
}
else
{
std::cout << "inseficient Balance. balance need to be more than 50 " << std::endl;
}
}
|
9ec202b1dfb2a45f6ef8550465b8919eb36bf753 | f3c8d78b4f8af9a5a0d047fbae32a5c2fca0edab | /Qt/my_old_programm/Games/Chess/other/checkmate/checkmate-checkmate/src/checkmate.h | 65cf99905b609b386e77e21f20e1e2583013598d | [] | no_license | RinatB2017/mega_GIT | 7ddaa3ff258afee1a89503e42b6719fb57a3cc32 | f322e460a1a5029385843646ead7d6874479861e | refs/heads/master | 2023-09-02T03:44:33.869767 | 2023-08-21T08:20:14 | 2023-08-21T08:20:14 | 97,226,298 | 5 | 2 | null | 2022-12-09T10:31:43 | 2017-07-14T11:17:39 | C++ | UTF-8 | C++ | false | false | 2,581 | h | checkmate.h | /************************************************************************
* Copyright 2009 Miquel Canes Gonzalez miquelcanes@gmail.com *
* *
* This program is free software; you can redistribute it and/or *
* modify it under th... |
5e0cb2117cbf73e967842c15feec707338e0c5ac | 7a898faeba337793828cceffbf828f90fc25fcf1 | /src/core/server/client_session.h | e8ef8a9d0830bc43b381a585b649e1393fcb0a55 | [] | no_license | N500/open-carom3d-server | 83ac643ec6ea0f782176572ad05d10b31cd6696d | 7b0c81a067a13ac9bd38120cc3b25b1e9fc20b34 | refs/heads/master | 2022-12-18T07:06:54.793294 | 2020-07-10T02:42:51 | 2020-07-10T02:42:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,894 | h | client_session.h | //
// Created by CGR on 13/05/2020.
//
#ifndef __OPEN_CAROM3D_SERVER_CLIENT_SESSION_H__
#define __OPEN_CAROM3D_SERVER_CLIENT_SESSION_H__
#include <nettools/ntConnection.h>
#include <core/util/types.h>
#include <vector>
namespace core {
class Server;
class ClientSession {
protected:
Server& m_se... |
fd7c90ad64576f2ebf451ab648b9ba590716d39c | 0d78e9f4547d2fc002b889bbe43ee444a39d08c8 | /simple_demo/inc/MLNativeWindow.h | c42ebbae693cbd51719fbaaeeedf7b27192670d6 | [] | no_license | jafffy/LpGL_ML1 | ff04ecc99b9508edcd84e125d7c2e75891553cd9 | b486a6367a2f49fee79cf15a3f448ee1950e4ce8 | refs/heads/master | 2020-04-06T14:31:40.465558 | 2019-02-22T23:59:20 | 2019-02-23T07:29:56 | 157,544,524 | 0 | 0 | null | 2019-02-19T13:48:28 | 2018-11-14T12:19:56 | C++ | UTF-8 | C++ | false | false | 296 | h | MLNativeWindow.h | #ifndef MLNATIVEWINDOW_H_
#define MLNATIVEWINDOW_H_
#include "App.h"
class MLNativeWindowImpl;
class MLNativeWindow
{
public:
MLNativeWindow(App* app);
~MLNativeWindow();
int Start();
void OnRender(float dt);
private:
MLNativeWindowImpl* impl = nullptr;
};
#endif // MLNATIVEWINDOW_H_ |
370cf3441e78ef123a11cc6b2c7706c0012c6ce2 | 9c5309cc7e8cef9a60c84484b662fab8d0b5b32a | /esp8266_controller/IAnchor.hpp | d2d4ee337df8cb19e4240c026827fd95b9130580 | [] | no_license | msieverding/gondola | 18c353acc4a8fc0e5c072fdd472b3f500990775a | 108d027fd79323830952ecba03cc6cc7486d6408 | refs/heads/master | 2021-08-14T21:04:51.695501 | 2017-11-16T19:45:19 | 2017-11-16T19:45:19 | 99,155,564 | 1 | 0 | null | 2017-08-02T19:55:22 | 2017-08-02T19:55:22 | null | UTF-8 | C++ | false | false | 4,655 | hpp | IAnchor.hpp | #ifndef _I_ANCHOR_HPP_
#define _I_ANCHOR_HPP_
#include "Coordinate.hpp"
#include "Config.hpp"
#include <functional>
#include <Ticker.h>
/**
* Class for an Anchor of a gondola
*/
class IAnchor
{
public:
/**
* Type for the callback, that should be executed, when movement is finished
*/
typedef std::function... |
60c3a9f2a59014babb3f0bd4ebe4e6b65e506c6e | 304ef9ff301d97451d01ed44e145a974ecf8ff87 | /leetcode/111-minimum-depth-of-binary-tree.cpp | c4376691ae59be9a1f0eec87577e49aab02308e3 | [] | no_license | hartaacme/competitive-programming | eafb8d6ca09b000d2a6207e8e7f915742b440b79 | 0f77cb0c2240e687ce7813b4f5bf79a4d9828715 | refs/heads/master | 2021-01-17T15:55:03.735973 | 2016-07-12T06:52:47 | 2016-07-12T06:52:47 | 57,095,232 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 812 | cpp | 111-minimum-depth-of-binary-tree.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int minDepth(TreeNode* root) {
if (root == NULL) return false;
queue<TreeNode*> q;
q.p... |
5566a1a3e084111ab7ee4c4aa9685caa0c54863a | 8137ce070a3c30626d2a6afd3d3585eba9cb5370 | /include/Search.h | 2948820c3ffafcda5f7a49d5c4ff54cae3af697c | [] | no_license | fiftyfivebells/not-so-deep-blue | b26f76463d30d4cd3d413481640151138e6606a7 | 05411edd5dd01e65af44a691d7a529546df8b5af | refs/heads/master | 2022-07-29T17:42:34.504035 | 2020-05-17T20:37:03 | 2020-05-17T20:37:03 | 261,883,007 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | h | Search.h | #ifndef SEARCH_H
#define SEARCH_H
#include "Chessboard.h"
class Search {
public:
Search();
Search(Chessboard &);
void findBestMove();
//private:
Chessboard cb;
Move bestMove;
int alphaBeta(Chessboard &, int, int, int);
int evaluate(Chessboard &);
int quiesce(Chessboard &, int, int);
};
#endif
|
05f9ac4506d4fb714e56a79d143fc9d7ab6ca88f | 639cdc6ce0e94a27b72ceede7a295ca621fae21a | /build/linux-build/Sources/src/zpp_nape/util/ZNPList_ZPP_InteractionGroup.cpp | 6a87dcbf7e042ff2a65a56626585eaf01f0723d6 | [
"MIT"
] | permissive | HedgehogFog/TimeOfDeath | fb04bd6010115dc37b5d7777821f8fa53e1854a0 | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | refs/heads/master | 2020-04-27T10:48:43.759612 | 2019-03-18T04:30:47 | 2019-03-18T04:30:47 | 174,270,248 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 41,617 | cpp | ZNPList_ZPP_InteractionGroup.cpp | // Generated by Haxe 4.0.0-preview.5
#include <hxcpp.h>
#ifndef INCLUDED_zpp_nape_dynamics_ZPP_InteractionGroup
#include <hxinc/zpp_nape/dynamics/ZPP_InteractionGroup.h>
#endif
#ifndef INCLUDED_zpp_nape_util_ZNPList_ZPP_InteractionGroup
#include <hxinc/zpp_nape/util/ZNPList_ZPP_InteractionGroup.h>
#endif
#ifndef INCLU... |
7ff582a356f4edf68e98caea99679011bf770584 | 6f5f3a1745923eb8769b0609ffb67c2517befa4e | /External/FEXCore/Source/Interface/Context/Context.h | bd216e86a570488d53029ac51254de94abf8d402 | [
"MIT"
] | permissive | giomasce/FEX | 1f0d004c0cfed829d6cc1ee59257edf17c395056 | 69118cbc8677b699cb5e868f008cfc5d45ed6fe2 | refs/heads/main | 2023-08-20T15:41:12.436887 | 2021-10-26T19:34:53 | 2021-10-26T19:34:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,880 | h | Context.h | #pragma once
#include "Common/JitSymbols.h"
#include "Interface/Core/CPUID.h"
#include "Interface/Core/HostFeatures.h"
#include "Interface/Core/X86HelperGen.h"
#include <FEXCore/Config/Config.h>
#include <FEXCore/Core/Context.h>
#include <FEXCore/Core/CoreState.h>
#include <FEXCore/Core/SignalDelegator.h>
#include <FE... |
88ac51d9e282eb1cdba9480d080985eb28ebe7e9 | 9256db8d0af4f2224bcb9ef282e19da0e7f49029 | /src/NodeVisitor.cpp | 78656a8c2e5bfd4599f05fa55fea85b16a8221ac | [] | no_license | killvxk/wscript | fc57e8bc96468e6a89d2beac335d8472f4804848 | 39f572bb46bd1a2bacdbc16a1f9fd8cf66862136 | refs/heads/master | 2020-05-07T08:41:12.367168 | 2018-11-02T13:50:06 | 2018-11-02T13:50:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,996 | cpp | NodeVisitor.cpp | #include "includes/NodeVisitor.hpp"
#include <iostream>
void NodeVisitor::error(std::string message) {
throw std::runtime_error("[error][NodeVisitor]: " + message);
};
anything NodeVisitor::visit(AST* node) {
if (dynamic_cast<AST_BinOp*>( node ))
return (anything)this->visit_AST_BinOp((AST_BinOp*) no... |
1f71e6548cd38af1df3b01eb8eebb3905847a0cf | 4044b9de0d2cde8fbe1f0e8fee0073c818a89d13 | /SimpleMRP/composant.h | 169341faa96b131e3ddffd4bf1d97937ae7add2b | [] | no_license | stefmedjo/simple-mrp | 2b7eba139326ae879ebd0dc65233ec15f4b1b52e | 4b6fb4d8e8b0765d366fff2d2e0c1e9054dad16a | refs/heads/main | 2023-03-27T07:03:05.426747 | 2021-04-02T13:47:13 | 2021-04-02T13:47:13 | 354,031,118 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | h | composant.h | #ifndef COMPOSANT_H
#define COMPOSANT_H
#include "article.h"
#include "QHash"
class Fournisseur;
class Compose;
class Composant : public Article
{
Q_OBJECT
public:
explicit Composant(QObject *parent = 0);
void addFournisseur(Fournisseur *f);
void removeFournisseur(Fournisseur *f);
QList<Four... |
471c833375a94d695272da1f101894956e900336 | 2593fe77ac639d7504993c5aa5572df80451ec9e | /Apna College/KadeneAlgo.cpp | f5bde01ae1391164f55792043c1ab44404fc1ce9 | [] | no_license | jaimit25/Cpp_dsa | 873d02b2f4519fbe76bf8101ad557e1b8f472917 | b05a284a028c931b9814ac727aaee1b9d59962e1 | refs/heads/master | 2023-08-19T00:34:30.781252 | 2021-10-04T10:31:38 | 2021-10-04T10:31:38 | 373,571,184 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 448 | cpp | KadeneAlgo.cpp | #include <iostream>
using namespace std;
int maxSumSubArray(int A[], int n)
{
int maxSum = 0;
int currSum = 0;
for (int i = 0; i < n; i++)
{
currSum = currSum + A[i];
if (currSum > maxSum)
{
maxSum = currSum;
}
if (currSum < 0)
{
currSum = 0;
}
}
return maxSum;
}
int main()
{
int A[] = ... |
61d0eed857102c5e24fb7dabc59a20fd3699a294 | 1df2034fd14c9a757bab238b955c0855dc1337a1 | /tests/nostdlib/llvm_passes/IndVars/CannonLoopVars/cannonloopvars.cpp | 112aa3a07254e7aa44cc4f6d365c93612554e035 | [
"MIT"
] | permissive | OCHyams/dexter | 60d4aecbe7d749a79a84082b86bbcca50044fada | d89b66ca6a0d1ba29a4c32f152773a34ce2881e8 | refs/heads/master | 2020-06-02T10:54:44.706186 | 2019-10-08T12:05:31 | 2019-10-08T12:05:31 | 191,132,435 | 0 | 0 | MIT | 2019-06-10T08:57:20 | 2019-06-10T08:57:20 | null | UTF-8 | C++ | false | false | 871 | cpp | cannonloopvars.cpp | // RUN: %dexter -- -fno-unroll-loops
int
foo(int blah)
{
int i = 0;
for (i = blah; i < blah + 10; i++) { // DexWatch('i', 'blah')
if (i < 3) // DexWatch('i', 'blah')
return 0; // DexUnreachable()
}
return 1; // DexWatch('i', 'blah')
}
int
main()
{
return foo(3);
}
// And at O2 we just can't read ... |
5474145792d0043a7036417f7c66e1cc4b5e8d8f | a90d5b17c624888fad66a2a5d6fbb07430424726 | /resources/code/application/03-ModelLoading/model_loading_application.cpp | 2d643df5e8da639b592133d8a5160b44780ec256 | [] | no_license | atherlangga/blowgun | 1e039e9a160ddddfbb0b8dffd8f4e1b21aec6822 | 9500aa8e1b2b78b45165f62a19f4ffb0f0c68a7a | refs/heads/master | 2020-05-17T07:58:12.562488 | 2014-01-10T12:47:38 | 2014-01-10T12:47:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,368 | cpp | model_loading_application.cpp | #include "model_loading_application.h"
#include <memory>
#include <iostream>
#include <fstream>
#include <stdexcept>
#include <GLES2/gl2.h>
#include <blowgun/matrix.h>
#include <blowgun/program.h>
#include <blowgun/program_builder.h>
#include <blowgun/vertex_attribute.h>
#include <blowgun/model_loader_obj.h>
#includ... |
434a30e84d59a156efd8d7330aa143f6198172cf | 8e5d3e0cf1bb293e9e85c9c13c87798f80f18e51 | /kameleon-plus/branches/kameleon-plus-MJS/src/example/c++/integrator_prog.cpp | 042b2de80ebd73282b4b5c3692e417988ff830a4 | [] | no_license | ccmc/ccmc-software | 8fc43f9fa00e44d0b4a212c1841d574a9eaf3304 | 0e2fb90add626f185b0b71cdb9a7b8b3b5c43266 | refs/heads/master | 2021-01-17T03:58:07.261337 | 2018-04-04T15:22:37 | 2018-04-04T15:22:37 | 40,681,189 | 10 | 7 | null | 2015-08-13T20:51:18 | 2015-08-13T20:51:18 | null | UTF-8 | C++ | false | false | 4,267 | cpp | integrator_prog.cpp | #include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
#include <vector>
#include <ccmc/Kameleon.h>
#include <ccmc/Tracer.h>
#include <ccmc/Fieldline.h>
#include <ccmc/StringConstants.h>
#include <ccmc/Interpolator.h>
//#include <ccmc/old-tracer.h>
#include <ccmc/Point3f.h>
#include <boost/lexical_... |
013cc5e879ed6bb43ef0c76147856f50d070acc7 | fb548f9e6912ad127eea02ddba18029819cd8acc | /src/mesh.cpp | 16883148186707b83c3642fe510aa1d95c47f287 | [] | no_license | Mrninjatoe/Particle-Collision-Project | 28c8859c1b3d7a488f0c798be780eadb9c75bc2e | b05786ea2655d1191bd17abb12a1ffd5c437181b | refs/heads/master | 2020-03-10T04:22:37.482776 | 2018-11-20T18:21:19 | 2018-11-20T18:21:19 | 129,190,493 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,250 | cpp | mesh.cpp | #include "mesh.hpp"
Mesh::Mesh(std::vector<Vertex> vertices, std::vector<GLuint> indices, bool hasMX) {
_vertices = vertices;
_indices = indices;
_hasModelMX = hasMX;
_hasTextures = 0;
_setupBuffers();
_setupAttributes();
}
Mesh::Mesh(std::vector<Vertex> vertices, std::vector<GLuint> indices, glm::vec3 min, glm... |
ca00391626870f6662b73382ba05611616aab066 | 9eb2245869dcc3abd3a28c6064396542869dab60 | /benchspec/CPU/523.xalancbmk_r/build/build_base_mytest-64.0001/XMLDouble.cpp | 2c0e325fd1ea173a437df3f1368bdbabee5a971c | [] | no_license | lapnd/CPU2017 | 882b18d50bd88e0a87500484a9d6678143e58582 | 42dac4b76117b1ba4a08e41b54ad9cfd3db50317 | refs/heads/master | 2023-03-23T23:34:58.350363 | 2021-03-24T10:01:03 | 2021-03-24T10:01:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | cpp | XMLDouble.cpp | version https://git-lfs.github.com/spec/v1
oid sha256:6e046400ca59a82051df0846ed15344fc74060f61c5c77f59c51eee676a1e20f
size 1920
|
2b6fc923825831227541602e16070a557f9ce5f3 | 867e60f17fdf0148a0ed744f0ee43d43e244dc08 | /Classes/GameScene.h | 47b1bb57f47361957d8c25d085e9ff253fe791f2 | [] | no_license | AIRIA/WhiteTile | 0f98fcb8c4097252b8fa5b1becc6174c8c46b0eb | 7fc7b48f54996e602e21e2638cbb5c7991cbecb5 | refs/heads/master | 2016-09-05T21:15:43.998819 | 2014-07-28T06:01:14 | 2014-07-28T06:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,923 | h | GameScene.h | //
// GameScene.h
// WhiteTile
//
// Created by AIRIA on 14-4-21.
//
//
#ifndef __WhiteTile__GameScene__
#define __WhiteTile__GameScene__
#include <iostream>
#include "cocos2d.h"
#include "GameConfig.h"
using namespace cocos2d;
class GameScene:public CCLayer
{
private:
//classic mode proper
float m_fCl... |
804fb05223fb0de1dafe6eb40c20828c990d1c73 | 835dc1d5613032fc19afd70d557b09c5b478192e | /engine/engine.cpp | de0701666e3c3a88fe28cb4969cb92b5a6ab974f | [] | no_license | AmadeusDeadDmytro/AmaEngine | 0b6230504ec362d38df2963e3717306052710144 | b1b184c8035e35c71613ce367b3faab680427e5f | refs/heads/master | 2023-02-19T13:32:29.393748 | 2021-01-21T07:29:57 | 2021-01-21T07:29:57 | 331,546,922 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,106 | cpp | engine.cpp | #include "engine.h"
#include <stdio.h>
#include <windows.h>
#include <GL/GL.h>
#include <SDL.h>
#undef main
#include "texture.h"
namespace deusage
{
namespace engine
{
SDL_GLContext glContext;
SDL_Window *window;
draw_method_ptr draw_method;
input_handler_ptr input_handler;
bool running;
void init(d... |
d95f441d2aa1577f217b73b07ab78165ddcc4941 | 30d65bd092e4750655cb5af2a7945ebb5082cc7c | /CheckPath/CheakPath.cpp | ef7b7ffda66af0bef93f6fe25fd7ab029b2c471f | [] | no_license | Gao-zhenfeng/Object-Oriented | ad2b4077165bee1c21aa20dce412f979747183fe | a19fa99d5714e44dfe7294c3dcb11817c0a2ffe5 | refs/heads/master | 2023-03-10T22:36:24.202926 | 2021-02-28T15:07:31 | 2021-02-28T15:07:31 | 319,052,636 | 0 | 0 | null | 2020-12-07T08:28:15 | 2020-12-06T14:28:46 | null | UTF-8 | C++ | false | false | 1,108 | cpp | CheakPath.cpp | #include <iostream>
#include <filesystem>
#include <string>
using std::cout;
using std::endl;
int main()
{
namespace fs = std::filesystem;
//定义路径,使用RAW字符串、转义字符串、正斜杠字符串
fs::path p1{ "E:\Program\C++练习\class_exe\CheckPath\Hello.txt" };
fs::path p2{ R"(E:\Program\C++练习\class_exe\CheckPath)" };
fs::path p3{ "E:/Progr... |
85ce038f66b0efaed9c31fac24e5aa6c9a9b1de8 | 11cb07ccbfdbe794147def48d4649d7a80bdc8e4 | /base/Imp/nSocket.cpp | d0621dec57ea6d939107d49c5852791a056679eb | [] | no_license | qq587282/GameServerFramework | e34078d148400772b6473c49dd732d4c57bb2d7f | 64f0b71b81dc94ce92517f3e7efecc1d775a32ee | refs/heads/master | 2020-05-20T18:41:54.102213 | 2017-07-03T10:33:03 | 2017-07-03T10:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,174 | cpp | nSocket.cpp | #include <netdb.h>
#include "base/nMisc.h"
#include "base/nSys.h"
#include "base/nBaseServer.h"
#include "base/nDebugger.h"
#include "base/nZip.h"
#include "base/Imp/nSocket.h"
namespace Tidy
{
nSocket::nSocket(const int sock, const struct sockaddr *addr, const CommandCtl* ctl, const BYTE zipMethod, const bool need... |
4945bc2a44561b7b691afd3033148a8f7bc6c785 | 9ba0255bc414c35aa1792f5fc1827b655ae549f8 | /Library/LaserScan/include/RegistrationStructs.h | 808d1b2e287f8c3d0e4953a28b44c23c7096c662 | [] | no_license | Geodan/3D4EM-LoD2buildingmodels | 526353e190cd0e985a461a9e2fcad355baad559e | 4ce4d87af56303d58ce0295634c5ca1d727ce5b3 | refs/heads/master | 2021-01-20T12:41:54.687549 | 2017-02-20T08:10:15 | 2017-02-20T08:10:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,774 | h | RegistrationStructs.h |
/*
Copyright 2010 University of Twente and Delft University of Technology
This file is part of the Mapping libraries and tools, developed
for research, education and projects in photogrammetry and laser scanning.
The Mapping libraries and tools are free software: you can redistribute it
a... |
0e6c8917d0522f0b8813ef99ddf2301f07622d90 | 22fe0a7a3ccba95e3f4dfcd3e5e061478578b494 | /www/seamonkey/patches/patch-mozilla_js_src_jit_LIR.cpp | 390bb01d531123599f09e2fa6b6291bc5e09b1f5 | [] | no_license | alslater/pkgsrc | 0f97f3eaf7a980e9ceaed5802012333e11946e08 | c5c9c96a3375320018106521f805574f96e77751 | refs/heads/trunk | 2023-07-08T15:53:53.435685 | 2015-07-08T22:51:58 | 2015-07-08T22:51:58 | 38,878,918 | 2 | 4 | null | 2021-05-04T11:31:12 | 2015-07-10T12:19:51 | Makefile | UTF-8 | C++ | false | false | 467 | cpp | patch-mozilla_js_src_jit_LIR.cpp | $NetBSD: patch-mozilla_js_src_jit_LIR.cpp,v 1.1 2015/03/17 19:50:42 ryoon Exp $
--- mozilla/js/src/jit/LIR.cpp.orig 2015-03-09 05:34:37.000000000 +0000
+++ mozilla/js/src/jit/LIR.cpp
@@ -314,7 +314,7 @@ LNode::printName(FILE *fp, Opcode op)
const char *name = names[op];
size_t len = strlen(name);
for (s... |
3d401d7d2fea0ad64b8075b6a8ead989fd550f7c | 892d94d439d22613e913c6893799cc4427550f90 | /googletest/GeneralTest.cpp | 6410c4f448faa12d8adda369027a591517ee844d | [] | no_license | VovaMiller/digger-offline-2d | cc3452e06ef73070b75ed1ccc709e646e644367b | cb6d01ef5c5884a156a4ac94b4827519638411b6 | refs/heads/master | 2021-09-14T19:25:58.035846 | 2018-05-17T21:15:36 | 2018-05-17T21:15:36 | 121,681,872 | 0 | 0 | null | 2018-05-17T20:46:07 | 2018-02-15T20:56:43 | null | UTF-8 | C++ | false | false | 8,425 | cpp | GeneralTest.cpp | #include <gtest/gtest.h>
#include <DiggerOffline/utils_double.h>
#include <DiggerOffline/Point2DInt.h>
#include <DiggerOffline/Point2D.h>
#include <DiggerOffline/Box2DInt.h>
#include <DiggerOffline/Box2D.h>
TEST(Box2DIntTest, Has) {
Box2DInt box(0, 0, 10, 5);
EXPECT_TRUE(box.Has(0, 0)) << "Top Left corner";
... |
e95f71bc16820323cc826b843974ba6f0374549f | 76763c51ed3049882c1a30cc64d3a1a9f37d0cb1 | /Creational Pattern/Builder/Basic Builder/Builder.cpp | 67ee96be9e2a4bfd8773f9261e4439b4b30683e4 | [] | no_license | tolerance93/Design-Patterns-in-cpp | e23636a0dc0d83ed0981c886df629d8b52be2b68 | ac05ea2ac981c6f8727a3517c1453ec07da68399 | refs/heads/master | 2023-04-06T01:07:53.681244 | 2021-05-08T09:23:21 | 2021-05-08T09:23:21 | 331,330,814 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,712 | cpp | Builder.cpp | #include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <memory>
using namespace std;
/**
* 빌더 패턴은 생성이 까다로운 객체를 쉽게 처리하기 위한 패턴. 즉 생성자 코드 단 한 줄로 생성할 수 없는 객체를 다룸
*/
struct HtmlBuilder;
struct HtmlElement
{
string name;
string text;
vector<HtmlElement> elements;
const size_t... |
5e44299441f46fffd76f5a6866146a215b533c20 | e0170d9e91b3a51d03992ce1bd290f50517aaee4 | /Player.h | 45546ad68d81957c0cf59664af88515202fd9309 | [] | no_license | artyrex7/CommanderMak | 7c917c8297dca2af116f24ce6d200a444fae5520 | 51984beb79b809a3231f50084d0c7751de1fbfc0 | refs/heads/master | 2020-04-09T03:55:16.010743 | 2018-12-06T03:15:21 | 2018-12-06T03:15:21 | 160,002,820 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 303 | h | Player.h | #pragma once
#include <iostream>
using namespace std;
class Player{
public:
Player(int max=1, int position=20, int width=40);
int takeTurn();
int getPlayerPos();
private:
void move(int);
int currentPos;
int fieldWidth;
int maxMoves;
};
|
5b3a8cf745ae63a7e9c1d01654943d43d8bfc22e | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /media/capture/video/video_capture_device_factory.h | 57e8c87cb877c88982427c0d318f099607153772 | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | C++ | false | false | 3,140 | h | video_capture_device_factory.h | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_FACTORY_H_
#define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_FACTORY_H_
#include "base/macros.h"
#include... |
e34facbce4aeac2f1cdd6774cad3feba43bbc3ff | 22101bafa870a4ad9000905bb89a40d4a93c098c | /HTML.h | 10f823d65c72be4095095281d1bfab390d28efd3 | [] | no_license | cruxeon/porthole | bfe3975ed34343643a57c2127318e719fedfc815 | 1de9885bceb253d6193b7cc1f606d1ed8bf185d6 | refs/heads/master | 2021-01-09T20:15:14.711538 | 2016-08-12T01:58:12 | 2016-08-12T01:58:12 | 63,287,539 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,288 | h | HTML.h | // HTML namespace will contain all html events,
// so that parser could know which attribute is a Javascript event
namespace HTML {
static const int eventsNumber = 19;
enum Event{
OnLoad,
OnUnload,
OnBlur,
OnChange,
OnFocus,
OnReset,
OnSelect,
O... |
4c90abb8a8c5f84f148283598d95e76758c2ae86 | 87e76e8765594898acfea10e6c7af52fdc40fcd7 | /code/AuthorInfo.cpp | dba315ae1cbc1dfdca58020bb10c38ef56fad3dc | [] | no_license | adam-zhang/codefactory | 7813e1c696983c8ec35fcd6007a76fff3412dbf0 | aed43fa568e23b6919c4d56881e76ab8b89f14d4 | refs/heads/master | 2023-04-07T00:19:08.288616 | 2023-04-01T14:32:39 | 2023-04-01T14:32:39 | 173,849,887 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 387 | cpp | AuthorInfo.cpp | /********************************************************************************
> FileName: AuthorInfo.cpp
> Author: Mingping Zhang
> Email: mingpingzhang@163.com
> Create Time: Fri Jun 04 10:47:58 2021
********************************************************************************/
#include "AuthorInfo.h"
... |
12fccf99c6d2f919619e0b64d8d4bcc93eac15c0 | fae551eb54ab3a907ba13cf38aba1db288708d92 | /content/browser/interest_group/interest_group_storage_unittest.cc | 1d40d3055c0a5928b5329a5e5ba215c402fd6641 | [
"BSD-3-Clause"
] | permissive | xtblock/chromium | d4506722fc6e4c9bc04b54921a4382165d875f9a | 5fe0705b86e692c65684cdb067d9b452cc5f063f | refs/heads/main | 2023-04-26T18:34:42.207215 | 2021-05-27T04:45:24 | 2021-05-27T04:45:24 | 371,258,442 | 2 | 1 | BSD-3-Clause | 2021-05-27T05:36:28 | 2021-05-27T05:36:28 | null | UTF-8 | C++ | false | false | 15,100 | cc | interest_group_storage_unittest.cc | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/interest_group/interest_group_storage.h"
#include <functional>
#include <memory>
#include "base/bind.h"
#include "base/files/f... |
c596bcd8199853389a83a2ff2252fddb2be79d85 | 5b0f5482e6af4a023d5b094ba69e424e46b6f511 | /fossa files/FOSSASAT-2-master/FOSSASAT-2-master/software/TestSketches/CameraPhoto/src/ADCS/ADS/measure_hybrid.cpp | a6186d3c1878b1efbbb14bfcfa8fd1474fcac3d8 | [
"GPL-3.0-only"
] | permissive | THRMAT007/EEE4022S_LoRa_Hydrological | 9a067dd205e623441e88a68e58700f78808c6cfb | dd856ac68b60b47170115b53aadff57781b46024 | refs/heads/main | 2023-08-30T12:55:43.157856 | 2021-11-09T17:09:28 | 2021-11-09T17:09:28 | 413,339,467 | 0 | 0 | MIT | 2021-11-09T10:33:29 | 2021-10-04T08:36:40 | HTML | UTF-8 | C++ | false | false | 3,185 | cpp | measure_hybrid.cpp | /* Project: FossaSat-2 Flight Software
Author: Team Steiner
Module: attitude_determination
File:
04/18/20
This file drives the measurements hybridation algorithm
*/
/*********************** Headers ***********************/
#include "../ADCS/adcs.h"
/********************* Main function ****************... |
38a61bfa02a2a8d2ee1117847f1908e4700d0955 | 317c7bbb3ce5bc47fc88ad68812d19ba8823d99d | /src/search/real_binary_search.hpp | 7fc2f58aeb481e642d3befd4e17345f7932beb1f | [] | no_license | gtnao0219/algorithm | f7d6c8e86ed75d420ecce2042204f25e0759f465 | 1fd6a44dfd1456997f9caca683b414a96b7ef8ce | refs/heads/main | 2023-03-17T14:41:54.020904 | 2023-02-26T17:40:15 | 2023-02-26T17:40:15 | 201,729,617 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 311 | hpp | real_binary_search.hpp | #pragma once
#include <bits/stdc++.h>
using namespace std;
template <typename T>
T real_bin_search(T ng, T ok, function<bool(T)> is_ok, int loop = 100) {
for (int i = 0; i < loop; i++) {
T mid = (ok + ng) / 2;
if (is_ok(mid)) {
ok = mid;
} else {
ng = mid;
}
}
return ok;
}
|
3669f58b444a6a41d77787cc24562666f820942a | e7a38548297bd80835f48b5d4c66fd1e4b53d7dc | /src/pot.cc | 46d41464a9ece93640afb3a4bfb3f939d41f4a9f | [
"Unlicense"
] | permissive | codezoid/Lagzilla | f14a364bd92a351fa7cf697e32497dc694c048e3 | 3b69b7cb4110932986840da25480416dcc2b88ab | refs/heads/master | 2016-09-08T00:41:59.155753 | 2011-10-17T01:12:07 | 2011-10-17T01:12:07 | 2,574,028 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 981 | cc | pot.cc | #include <iostream>
#include "pot.h"
#include "card.h"
Pot::Pot() {
pot_amount = 0;
betting_round_count = 1;
minimum_raise_amount = 0;
small_blind_amount = 0;
big_blind_amount = 0;
}
int Pot::GetPotAmount() {
return pot_amount;
}
int Pot::GetBettingRoundCount() {
return betting_round_count;
}
int Pot... |
928292ec17bef21407cbed0b0267dcccd079641d | 553d991a81342552c4b8ca325fcee65042ea27fc | /src/DirectShowAccess.h | c31bd7c1a7dbf5f0557a27f1e9fdf580d899a81e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | NanteroKun/kte | c0e8ba8611aed6af956e81cc0b2dbf02d30c62cd | 5bf8318279553562e3d93d1e7f343507591b84bf | refs/heads/master | 2021-01-22T22:44:02.384603 | 2017-03-18T16:53:13 | 2017-03-18T16:53:13 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 17,930 | h | DirectShowAccess.h | #pragma once
#include "DirectShow.h"
#include "DirectShowEncoder.h"
#include "DirectShowASFWriter.h"
#include "DirectShowAudioVolume.h"
//プラグインの構造体
struct FilterPluginStruct
{
GUID guidFilter; //フィルタのGUID
GUID guidCategory; //フィルタのカテゴリGUID (DMOのみ)
int nFilterID; //フィルタに登録した際に得られるID (-1なら未作成)
CString strFil... |
fede8ceb2a1d29d28d6ad8eeb4e05c5dfc6669d3 | 92d05ea68d5882f6969b077de04674df5c8d0b65 | /main.cpp | fefeef851da252b920ddb216b3a509f4af361343 | [] | no_license | amystek/TEP_Lab_2 | d08944a90e5c1bc30d6d3664e99b47549b0781d8 | d5537873a811eebd39cd2f848aae597b252d0ae3 | refs/heads/master | 2022-08-01T10:26:25.096416 | 2020-05-29T22:11:06 | 2020-05-29T22:11:06 | 266,632,145 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,273 | cpp | main.cpp | #include "main.h"
int main()
{
// v_lista2();
v_lista3();
return 0;
} //int main()
void v_mod_tab(CTable *pcTab, int iNewSize)
{
pcTab->bSetNewSize(iNewSize);
} //void v_mod_tab(CTable *pcTab, int iNewSize)
void v_mod_tab(CTable cTab, int iNewSize)
{
cTab.bSetNewSize(iNewSize);
} //void v_mod_tab... |
954477fb5a154a9707bdd2c45e4c66ad3bddcb1d | 9edca2e178d153f5e309914c526605cacafb9c2b | /Directx11FPS/Help/Graphic/Inter/inter.IFlush.h | 0ca73052e432681db0e00607ff5508ff189bea86 | [
"MIT"
] | permissive | sekys/FPS | 0165dd35a3b2ff09e38165cb2fa5e9b49ac79e06 | d582b6b5fb55adc88b6c4aa6a4cd2145488db31f | refs/heads/master | 2020-05-31T03:45:19.610501 | 2014-12-10T16:08:08 | 2014-12-10T16:08:08 | 24,189,970 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 66 | h | inter.IFlush.h | #pragma once
class IFlush {
public:
virtual void Flush() = 0;
}; |
a04c88c512f0375ecb96dcd282dde5bd2a160f7b | 8fc1619aea082639b3a13d607e9e36abd3c91c5e | /include/network/address.hpp | ab63da9451a28c7c731246f5c4c487673a97b993 | [
"MIT"
] | permissive | RoseLeBlood/aSTL | 2dcf28160b5152c33d3ccf99f91ebc0d4cc2f89f | 5b532499f26cf406e30152bdb6bd51d853fbec03 | refs/heads/master | 2021-07-16T13:06:23.405363 | 2021-02-25T10:11:50 | 2021-02-25T10:11:50 | 77,330,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,192 | hpp | address.hpp | /*
* The MIT License
*
* Copyright 2016 annas.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... |
5c76d05e6f9afdbc9a8679fd61d28e387b195a3e | 27fdddea150d37f310c259cd55f9bd8688cf64d2 | /bmengine/cHardwarePlatform_Unix.cpp | c518f3fc06ef7450f2448f6150b108e0222e798e | [] | no_license | thebadmonkeydev/BMG.Engine | 3f1be9ed582d5b1ab6c45469a0589a10e1f495ea | d2b14d2798ef6ec4a977d04d9974151235b1a13f | refs/heads/master | 2021-01-22T14:38:52.961949 | 2014-02-14T20:44:15 | 2014-02-14T20:44:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 710 | cpp | cHardwarePlatform_Unix.cpp | /*
* cHardwarePlatform_Unix.cpp
*
* Created on: Feb 25, 2013
* Author: michael
*/
#include "cHardwarePlatform_Unix.h"
namespace bmcore {
cHardwarePlatform_Unix* cHardwarePlatform_Unix::sm_pinstance = NULL;
cHardwarePlatform_Unix::~cHardwarePlatform_Unix() {
}
cHardwarePlatform_Unix::cHardwarePlatform_Un... |
53da44dd5b9e38d0018642efa296865eafd9069d | 6f3f43161f34af60b6efcd1685dab51ddc5881df | /สัปดาห์ที่3.2/Source.cpp | 1402f914859db0c0bf850aa826ba452a051fd52b | [] | no_license | 64011150/-3.2. | 1c8e4311e6327d2bd9bfa786de130bfc0d231840 | f9dd6574a8ffcc0731e56e249570122114dc514e | refs/heads/master | 2023-07-13T08:18:48.450228 | 2021-08-22T07:47:39 | 2021-08-22T07:47:39 | 398,743,428 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 132 | cpp | Source.cpp | #include<stdio.h>
int main() {
int a;
int b = 1;
scanf_s("%d", &a);
while (b <= a) {
printf("*");
b = b + 1;
}
return 0;
} |
d9adb1f2d155770990442dc169a6e011b1a50bf1 | c2edc63819f7634a951c3e9a7d524c3321201490 | /VZ03/sea_horse.cpp | fa98215facae4dda9504ecfe01514394a0156d1d | [] | no_license | aryapradipta9/OkeOce | 07c574ef22ff90947db828b2eaf608543d7aa322 | 6e227ae44baeaf34e0caa56f66161c554a48222e | refs/heads/master | 2021-01-21T11:19:11.476512 | 2017-03-17T03:39:57 | 2017-03-17T03:39:57 | 83,553,908 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 238 | cpp | sea_horse.cpp | #include "sea_horse.h"
/** @brief Inisialisasi Hewan
*/
SeaHorse::SeaHorse() {
Animal::species = "Hippocampus mohnikei";
Animal::experience = "Horselike sea creature";
Animal::berat = 10;
Animal::animal_char = 't';
}
|
bd8b9b60975c7266dd244fa150cc831e22394efb | 9655da99ede9d123c05ff8118e4034e948bca2e8 | /arm-rtmp/inc/RtmpH264.h | 07141f0027f6d2e509045fd7646cfd9f8ea71cb6 | [] | no_license | tla001/arm-rtmp | 115c01fa1895623ce992f3215238096f26dc3b97 | 682a4a37aff16cb5235f7c75d84bb9902929da07 | refs/heads/master | 2021-01-12T00:39:22.964314 | 2017-01-13T10:10:09 | 2017-01-13T10:10:09 | 78,751,451 | 2 | 1 | null | null | null | null | GB18030 | C++ | false | false | 4,984 | h | RtmpH264.h |
#pragma once
#include "librtmp_send264.h"
#include "sps_decode.h"
//#ifdef _BASEFUNC_EXPORT_
//#define BASE_API extern "C" __declspec(dllexport)
//#else
//#define BASE_API __declspec(dllimport)
//#endif
//
//#define __STDC_CONSTANT_MACROS
extern "C" {
#include "x264.h"
#include "x264_config.h"
//#include "mp4... |
301ccbfe70727d264a62f4a75d873570ed47485a | 7cd9a827ca5ffd3d5adcce200fb446ee027a293c | /include/ShiftLib/Geometry/XSVector3D.hpp | 007ede8d79dfcd41d37fdc41ba57f29a5c8342e7 | [
"Apache-2.0"
] | permissive | Sibras/ShiftLib | dc41889504731df7277587c7cb390d9a8f5c8c14 | 144e4cee18b20c92d06c7c2c4c338d85d8f2049e | refs/heads/master | 2023-07-07T00:35:25.229618 | 2023-06-30T15:35:22 | 2023-06-30T15:35:22 | 203,160,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,739 | hpp | XSVector3D.hpp | #pragma once
/**
* Copyright Matthew Oliver
*
* Licensed under the Apache License, Version 2.0 (the "License") noexcept;
* 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 applica... |
718899b5d1437049c57c23ebccd2700f18403e4a | bec4ce7862948e5057b9573dd82a4aa0733ff485 | /src/ch3/string/demo13.cc | 9131da7acaeadf6d7749be28deb280a27960725e | [
"MIT"
] | permissive | HerculesShek/cpp-practise | 27b850a9c446a6571a95629cb6045e18957e6071 | aa0cdc3101c831c1c677f0de46a2f85a4b407bc3 | refs/heads/master | 2016-09-06T13:05:04.184703 | 2014-09-23T01:41:38 | 2014-09-23T01:41:38 | 17,898,200 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 172 | cc | demo13.cc | #include <iostream>
#include <string>
using namespace std;
int main()
{
string name("zhangsan");
string res = "hello, " + name;
cout << res << endl;
return 0;
}
|
7b956301f52e6b8a45817d7142b83c2e329e1f28 | 8f3cd6fda9299e125918512060e91aeb2d708b4c | /hafta7/hafta7_3.cpp | 78d0895487f26d22c3db8e8291f4fc4fbf9190a6 | [] | no_license | BurakKaragol/CPlusPlus | cdba22fff7b0ef40bade41b81695ab3291376b3d | 90b026704ec858d37830b54646eb9039885716f0 | refs/heads/master | 2022-05-20T23:21:14.938980 | 2022-03-29T10:33:42 | 2022-03-29T10:33:42 | 149,350,694 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | cpp | hafta7_3.cpp | #include <iostream>
// haftanın konusu : nesnelere işaret eden pointerlar
using namespace std;
class Ogrenci
{
private:
int yas;
public:
Ogrenci():yas(22){}
void Goster()
{
cout << yas << endl;
}
};
int main()
{
Ogrenci *ogr1 = new Ogrenci;
ogr1->Goster();
delete ogr1;
re... |
d0b9d351473156717b1ba4d5d4509d4bb9b8650a | c4cf2bc7a5c7de9cf9af2f9b48543b068b0cb59b | /1. Practice/Questions/Arrays/5.1 Product_of_Array_Exc_Self_Efficient.cpp | 398e29456a171a61b8d2f4ab4c4d41303b1a3621 | [] | no_license | PacificPR/DS_ALGO_PRACTICE | abcf36007818d8448fbe50cf7a552ac89cfddf7f | ce42bf740035abb1deab75db78b2ec92bb9d8d8d | refs/heads/master | 2021-05-20T09:45:26.941780 | 2020-10-01T20:08:11 | 2020-10-01T20:08:11 | 252,231,972 | 1 | 2 | null | 2020-10-01T20:08:13 | 2020-04-01T16:41:16 | C++ | UTF-8 | C++ | false | false | 1,004 | cpp | 5.1 Product_of_Array_Exc_Self_Efficient.cpp | /*
Given an array nums of n integers where n > 1, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i].
Example:
Input: [1,2,3,4]
Output: [24,12,8,6]
*/
class Solution {
public:
vector<int> productExceptSelf(vector<int>& nums) {
if(nums.size()==0... |
97cc4399e9cfd8269836df0496072f74154b0e47 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/a0/9e0c410f74bd29/main.cpp | a2ffe4f33227394dcdbd71fd1fc93cf7f6db92df | [] | 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 | 1,406 | cpp | main.cpp | #include <algorithm>
#include <initializer_list>
#include <iostream>
#include <type_traits>
#include <vector>
template<typename T>
class any_t{
public:
explicit any_t(std::initializer_list<T> const& list)
: data(list) { }
template<typename InputIt>
explicit any_t(InputIt begin, InputIt end)
... |
363f15800885820c911d5afa3db9fb7d06d1dda8 | eb77b7e6744e7380db2b4835a0faeddca479619b | /apps/fortran/shsgc/updateRK3_kernel.inc | 6fe285c8221d4feddc945f7a4301ba7c5777b5e7 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | OP-DSL/OPS | b4fea672de28973acc9a1ae611fd4fd475d04dd9 | 73d0dd431ea70be98b27f49275c43840fd3073ca | refs/heads/develop | 2023-08-16T23:05:22.584318 | 2023-08-14T22:37:16 | 2023-08-15T11:26:12 | 16,912,507 | 44 | 34 | NOASSERTION | 2023-09-10T18:40:12 | 2014-02-17T12:44:34 | C++ | UTF-8 | C++ | false | false | 885 | inc | updateRK3_kernel.inc | subroutine updateRK3_kernel(rho_new, rhou_new, rhoE_new, rho_old, &
& rhou_old, rhoE_old, rho_res, rhou_res, rhoE_res, a1, a2)
real (kind=8) , DIMENSION(1) :: rho_new, rhou_new, rhoE_new, rho_old, rhou_old, rhoE_old
real (kind=8), DIMENSION(1), INTENT(IN) :: rho_res, rhou_res, rhoE_res... |
9cba22e92a0de81d90b756fbc5f9362cb56b9241 | df9de80e6a36a73502db652fe8d73ff8e9f00815 | /AuroraFlux/Source/AI/Ambient Fighters/Ambient Fighter.cpp | 5eb48bc1b9a0fe50f3d7bfd5f66f4abc1f5462ec | [] | no_license | BSchotanes/AuroraFlux | 090137d66f566f96ff8a3d5092206f54e8b3986d | 6819056104601ac582260e22b7545db908162420 | refs/heads/master | 2021-07-08T01:57:49.783068 | 2017-10-04T22:54:11 | 2017-10-04T22:54:11 | 105,750,121 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,477 | cpp | Ambient Fighter.cpp | #include "Ambient Fighter.h"
#include "../../Collision/Physics.h"
#include "../AmbientFlockingMovement.h"
#include "../../Entity/Missile.h"
#include "../../Object Manager/ObjectManager.h"
#include "AmbientBoundingBox.h"
#include "../../Camera/Camera.h"
CAmbientFighter::CAmbientFighter(CAmbientBoundingBox* _pContaini... |
4120cf3b4ad943e91fe9f0a91dcf0ec67fbbf1ed | 1c027949aa9c9b255c994ccdef9cffb34a6746c2 | /handle-inl.hpp | 89264e02646dc951d383e2e21894075c8307e3b5 | [] | no_license | overmind2/sanya-cpp | dee7e81a7d061c2497e42eb6ad4114a5d7fd657d | 7ba15f18d103f3fdcfed95faad0bebb8b415414d | refs/heads/master | 2016-09-06T01:15:30.747847 | 2011-11-09T04:38:15 | 2011-11-09T04:38:15 | 2,727,418 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,240 | hpp | handle-inl.hpp | #ifndef HANDLE_INL_HPP
#define HANDLE_INL_HPP
namespace sanya {
inline Handle::~Handle() {
if (prev_root_ || next_root_) {
UnlinkFromRootSet();
}
}
/** @brief Construct from newly-allocated raw object */
inline Handle::Handle(RawObject *ro) {
Empty();
LinkToRootSet(ro);
}
/** @brief Copy cons... |
6b7530bfbb402658ddc2470c927b49e30220d4e3 | d1760931952b6e5a18d4666547068b50a11f0056 | /FBXImport/WriteFile.h | 366caddf92a55a2739ce07d00362be0ea089e8cc | [] | no_license | xx8086/ReadFbx | 19d68a7513d998703e8288e3d844bf32b71859da | 8fe2392c8f8b69699a87a0aeca75fc6574aa15bc | refs/heads/master | 2021-01-12T04:23:24.111455 | 2016-12-29T09:46:41 | 2016-12-29T09:46:41 | 77,600,087 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 512 | h | WriteFile.h | #ifndef _WRITEFILE_FBXNODE_H
#define _WRITEFILE_FBXNODE_H
#include "AnalyseFbx\ExtractFbxNode.h"
class CWriteFile
{
public:
CWriteFile(FbxScene* secen, FbxManager* _fManager, int fps = 24);
public:
bool DoFile(FbxNode * pRoot);
bool WriteToBinary();
bool GetFileName(const char* fileName);
public:
bool WriteMesh(... |
d16043fc18e4a7f3e40c3a8f46d15d13dcfb328c | 315b0b26f54c4aba01607fc74886b7a9ceee234f | /Simulation_src/LoadResources/LoadObject/ObjFileParser.cpp | f9bc68716ea5dd0fb32b75d13e975fca6f94e26b | [] | no_license | kbenedek/Testing-OpenGL | 8d9eba11413454e71a1761b97ab76d37f9904dfa | 266d036875301efbe40a10b40ed22cfa2594404e | refs/heads/master | 2022-01-11T09:39:14.900871 | 2019-10-13T10:29:27 | 2019-10-13T10:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,539 | cpp | ObjFileParser.cpp | //
// Created by biomfire on 10/12/19.
//
#include "ObjFileParser.h"
ObjFileParser::ObjFileParser(std::istream &file) {
ParseObjFile(file);
}
void ObjFileParser::ParseObjFile(std::istream &file) {
parseVertices(file);
organizeVertices();
}
void ObjFileParser::parseVertices(std::istream &file) {
std... |
4b2b56ba33a22b314953c0c022b2d78bd233da3f | 27420b4c3d261840465a28895490432959f4f2b6 | /s3/src/common/s3_lock.h | 08da3155b963bb8a2e1942d712e985aa0cb31a69 | [] | no_license | skei/old-plugin-frameworks | 18d15314c0ed3f0ee9f0a9282bbcacd9e907c2fb | c2ad1cb10f38ee4a28a0f9e9ac77effcbc0d5f9c | refs/heads/main | 2023-03-18T04:54:20.491450 | 2021-02-22T16:53:15 | 2021-02-22T16:53:15 | 341,266,302 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,408 | h | s3_lock.h | #ifndef s3_lock_included
#define s3_lock_included
//----------------------------------------------------------------------
#ifdef S3_WIN32
//#include <windows.h>
class S3_Lock {
private:
CRITICAL_SECTION MCriticalSection;
public:
S3_Lock() {
InitializeCriticalSection(&MCriticalSect... |
13a07af97dd86fabde61d33f451394073ec38893 | 14192459ed8ca68de9214191b956d740a44d418f | /tools/lookup/lib/file.hh | 5ec94e9d6ec03cf4b5da72b1bd5cb9276a9c4524 | [
"MIT"
] | permissive | mbits-os/tangle | a1d5835700daf66659576a884d9270238ad84058 | 78d445fe9cf8865a5075c233f954a6d039456887 | refs/heads/main | 2023-03-11T11:01:15.442391 | 2023-02-19T20:02:50 | 2023-02-19T20:02:50 | 67,643,354 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 814 | hh | file.hh | // Copyright (c) 2020 midnightBITS
// This code is licensed under MIT license (see LICENSE for details)
#pragma once
#include <cstdio>
#include <filesystem>
#include <memory>
#include <vector>
namespace fs = std::filesystem;
struct file_closer {
void operator()(std::FILE* f) { std::fclose(f); }
};
struct file {
... |
e17c8521c1742fe483d709f90c06d9e1c773ef10 | a492e8528a19446e7ad3ea72885a249c39213ba2 | /echelon/hdf5/dataset_dimensions.hpp | 8236b12ff1c0619df0988e20a4de4e56a79101aa | [
"BSL-1.0"
] | permissive | qbb-project/echelon | 3f80dc4f94a9b3f19a3af147932f5620e0f242f6 | 73feef2b539eab34f6908a746f53ed86fac8a5e1 | refs/heads/master | 2020-12-19T14:58:45.299144 | 2020-02-02T17:45:37 | 2020-02-02T18:10:08 | 26,272,618 | 2 | 2 | null | 2016-10-31T18:57:17 | 2014-11-06T14:06:33 | C++ | UTF-8 | C++ | false | false | 4,385 | hpp | dataset_dimensions.hpp | // Copyright (c) 2013-2014 Christopher Hinz
//
// 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 ECHELON_HDF5_DATASET_DIMENSIONS_HPP
#define ECHELON_HDF5_DATASET_DIMENSIONS_HPP
#include <echelon/hdf5/type... |
260aa82f66c815652bff6dbb8db59d0c421ed4bc | ca74848e60e1a86279cba5b527f197680ae1c487 | /src/libsk/add_root_ca_entry.cc | 85e6046e80b9aa13a449064f395ba2ce0d8dd41a | [] | no_license | EFForg/sovereign-keys | 72d61c48325b80b0bc5ed31612d7797757266149 | 423a664fe5a3f2418520d51faad0e053c8642baa | refs/heads/master | 2020-03-21T03:54:21.278926 | 2012-08-01T03:07:17 | 2012-08-01T03:07:17 | 138,080,343 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 461 | cc | add_root_ca_entry.cc | // Copyright 2012 the SK authors. All rights reserved.
#include "add_root_ca_entry.h"
#include "add_root_ca_descriptor.h"
namespace sk {
AddRootCAEntry::AddRootCAEntry(int version)
: LogEntry(GetDescriptor(version)) {
}
AddRootCAEntry::~AddRootCAEntry() {
}
// static
const AddRootCADescriptor* AddRootCAEntry::G... |
ac206427a2fbf810c771d43b5b66da77d4435e79 | 5369d02ed95b7b32d412df533247c2d26c7a768c | /341/proj3/fptr.cpp | e235c8a56b4c3017b99b01d69691a0d3ac628cf1 | [] | no_license | mcdyl1/Projects | 304a6b7b2b74fcf7b5409f9eb6fc9e1b1d3ea803 | 2b83415935ae365a3d1fe4b1d82363afc35cbeb9 | refs/heads/master | 2022-10-13T07:24:41.613676 | 2020-06-08T18:55:46 | 2020-06-08T18:55:46 | 167,740,105 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,511 | cpp | fptr.cpp | // File: fptr.cpp
//
// CMSC 341 Fall 2017
//
// Simple use of function pointers
//
#include <iostream>
using namespace std ;
// An example function
//
int add3(int x) {
return x + 3 ;
}
// Another function that has same
// signature as add3()
//
int add5(int x) {
return x + 5 ;
}
// function that takes t... |
03aba6da34b276fded48872f3b3b0d2d36a5e558 | 99f19b9e53faa4d078829deb7124b0b500c060e8 | /MPI-Convolution.cpp | c08b894ac39cf999f953f97ab664ba9737dac116 | [] | no_license | GreyVader1993/MPI | 03e764bdcaf9cf4d91dd7f26c4dede9b41486210 | 5de6b910b56c9ac5044e74000355c82064642a5e | refs/heads/main | 2022-12-15T07:23:11.383348 | 2020-09-21T19:50:46 | 2020-09-21T19:50:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,620 | cpp | MPI-Convolution.cpp | //CONVOLUTION
#include <iostream>
#include <stdlib.h>
#include <math.h>
#include "mpi.h"
class conv
{
public:
int y[10];
void calculate(int m, int n, int *x, int *h);
void display();
conv()
{
for (int i = 0; i < 9; i++)
y[i] = 0;
}
};
void conv::calculate(int m, int n, int x[... |
b22daebae16fe9be82587f98f03e415bd071b9fe | 70bdd0066f99a1a122d0b08d17b58fd0bc29efba | /onevariable_pdp/chains.cpp | a66c6653aa8776328b3386e7d6be9c2f0cee10b7 | [] | no_license | gopalkedia71/autoparallel | ac11b2b8cdc85eb82d1e1f365a38356dc6903ff1 | b56978b3fd60b3a89c1fce639dfd168be8f20a8b | refs/heads/master | 2020-04-10T08:45:33.838615 | 2017-01-28T13:13:16 | 2017-01-28T13:13:16 | 68,215,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,203 | cpp | chains.cpp | #include<iostream>
#include "solutions.hpp"
#include<math.h>
#include "solutions.cpp"
using namespace std;
void chains(int a,int b,int c,int l1,int u1,int &t1,int &t2,int &x,int &y,bool &ifposs)
{
int x0 = 0;
int y0 = 0;
solution(a,b,c,x0,y0);
x = x0;y = y0;
float t1_x,t2_x;
... |
53c31a190b3c877e4f6b65256cca37aac8d4c55b | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5706278382862336_0/C++/sankalpbihani/curr.cpp | 159337d6cf8f5a06dc26cfa7c6e1975f6dc5b5bb | [] | 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,237 | cpp | curr.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long L;
L gcd(L p, L q) {
if(q==0)
return p;
else
return gcd(q, p%q);
}
L log2(L x) {
if(x<=1)
return 0;
else
return 1+log2(x/2);
}
bool check(L x) {
if(x!=0 and x%2==0) {
ret... |
f4a29bdfc9243183d2ab70b72d918031129f0785 | 6cffd9701f69a41a1245c993d6b51d4f9e095449 | /T_Area/T_Area.h | fb33a87bc2bf9f61a3eb684036b94030c7e84018 | [] | no_license | oldmadjackal/Geo_3000 | bb9ea259082d2be822336e7c346aef35c841c9e8 | 429fe18fe10a209fe047c13728e765fb043e22bb | refs/heads/master | 2021-01-13T03:45:28.108418 | 2017-03-12T10:18:04 | 2017-03-12T10:18:04 | 77,243,687 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 11,453 | h | T_Area.h |
/********************************************************************/
/* */
/* МОДУЛЬ ЗАДАЧИ "АНАЛИЗ ПОВЕРХНОСТИ" */
/* */
/********************************************************************/
#ifdef T_AREA_EXPORTS
#define T_AREA_API __declspec(dllexport)
#else
#define T_AR... |
be02c2e8dffd43827bced5bfb736076bb19ac430 | c94e8af6187b75677b784eccc10006a9c21fb270 | /trees/pointer.cpp | 6a3ab4eb9b8cf081ab446571dbe87dedddfa454b | [] | no_license | jdgarcia01/data_structures | 401e5be37974924636ddb76c40116bbf03f25755 | 5b39fce824e3defaaacb0fa7c499afa2b9d2020a | refs/heads/master | 2021-09-08T23:09:23.505648 | 2018-03-12T19:39:59 | 2018-03-12T19:39:59 | 112,858,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 230 | cpp | pointer.cpp | #include <iostream>
#include <cstddef>
int main(int argc, char **argv){
int *p = NULL;
int ival = 43;
std::cout << p << std::endl;
p = &ival;
std::cout << *p << std::endl;
}
|
b4444e0dc791c3aa2256065fb3db648be4675726 | 3c5b079da3c442504b9e71f8626e7407313aa4cf | /Second Semester/March 25, 2018/primjer10.cpp | 7d97ce3133063b9f3a4ed6aa0108f84016d3217f | [] | no_license | muhamedkarajic/functional-programming | b1fc5eebdbcc989afc9ed6fddc535f7eae7bc79b | 881476a30320116d4c57eb44b081faf24c29b345 | refs/heads/master | 2023-04-21T06:34:42.162240 | 2021-05-20T23:35:06 | 2021-05-20T23:35:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,766 | cpp | primjer10.cpp | #include <iostream>
using namespace std;
void unos(int **matrica, int red, int kolona)
{
for (size_t i = 0; i < red; i++)
{
for (size_t j = 0; j < kolona; j++)
{
cout << "[" << i << "][" << j << "] = ";
cin >> matrica[i][j];
}
}
system("CLS");
}
void ispis(int **matrica, int red, int kolona)
{
for (s... |
77cc5688832fa2b76ffbb7b9bc527f6e0077a1d7 | 30092b6d0f13018ff5f35785a91a33dc1ab034d9 | /Pacman/Classes/Model/Spirit/Spirit.cpp | 1500b818ff971ac2904c16fced67d43cf59ed6f8 | [
"BSD-3-Clause"
] | permissive | nonothing/pac-man-cocos2dx | f551a31d317c7cd571afcfa867a7816faacd8bf0 | 0d244893e67b51cd1497224948cc8a9aa76be299 | refs/heads/master | 2021-01-20T12:21:44.975531 | 2016-11-03T02:56:39 | 2016-11-03T02:56:39 | 21,959,875 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,194 | cpp | Spirit.cpp | #include "model/Spirit/Spirit.h"
#include "model/World.h"
Spirit::Spirit(PPoint* position, ETexture texture, int width, int height, Level* level) :
WorldObjectMove(position, texture, width, height) {
level_ = level;
setState(ATTACK);
setCountStep(0);
createMap(level_->getWidth(), level_->getHeight());
coun... |
a96321b450df8ec3cde0f8a89c5fc6e87a8c0c0e | d81f77b9216c2a0b9c5f08a42fbd0eeaebc546df | /GCPAssignment/GCPAssignment/Camera.h | ecb5d60a717436735eadf732fe8e7e6b76142f6b | [] | no_license | samuelbrown3199/GraphicsComputationProgramming | c71ea8e5721a201212e9c5438f12eb58cb4f7029 | a88b428eb0b29a983abc179b25401b2fc6b6f1d9 | refs/heads/main | 2023-01-18T15:49:41.809816 | 2020-12-05T15:20:56 | 2020-12-05T15:20:56 | 302,592,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 531 | h | Camera.h | #pragma once
#ifndef CAMERA_H_
#define CAMERA_H_
#include <iostream>
#include <glm/glm.hpp>
#include <glm/ext.hpp>
#include <glm/gtx/transform.hpp>
#include "InputManager.h"
class Camera
{
private:
bool firstMouse = true;
float pitch = 0.0f, yaw = -90.0f;
const float movementSpeed = 0.1f;
glm::vec2 oldMousePo... |
5217a10acbe77ef28ff1a793710f2d7d24d8b232 | fa55d8ed32564195f2687d1e18b99f80c5683073 | /lbc_lintcode/442-implement-trie.cc | 25406ad1f96ceb8f87fc23585b336649b79a3186 | [] | no_license | TenFifteen/SummerCamp | 1841bf1bd212938cee818540658185cd3e429f0c | 383b9321eee9e0721772f93a897c890f737f2eff | refs/heads/master | 2020-04-05T23:48:01.393256 | 2018-03-11T12:37:38 | 2018-03-11T12:37:38 | 38,595,086 | 9 | 4 | null | 2016-07-18T14:21:15 | 2015-07-06T03:15:55 | C++ | UTF-8 | C++ | false | false | 1,636 | cc | 442-implement-trie.cc | /*
题目:27 % Implement Trie 中等
题目大意:
实现一个trie树
解题思路:
见代码
遇到的问题:
没有问题。
*/
/**
* Your Trie object will be instantiated and called as such:
* Trie trie;
* trie.insert("lintcode");
* trie.search("lint"); will return false
* trie.startsWith("lint"); will return true
*/
class TrieNode {
public:
unordered_map<char,... |
3d04c6d22bfa17cc5a3eb241b6d63ddf3df9e608 | 9f48878caa37ac5f2ccf938fc476efa47c89c644 | /tests/Unit/PointwiseFunctions/MathFunctions/Test_TensorProduct.cpp | 6db711401cfd698256142280b471f87a141b3c9f | [
"MIT"
] | permissive | sxs-collaboration/spectre | 34f7733ab4c75dbca2f432028145fed110c9ef24 | 96f573cf158201f712da2bfb3378edf497a35a0d | refs/heads/develop | 2023-08-19T11:18:18.465609 | 2023-08-19T04:24:25 | 2023-08-19T04:24:25 | 87,570,510 | 149 | 190 | NOASSERTION | 2023-09-14T20:10:35 | 2017-04-07T17:28:20 | C++ | UTF-8 | C++ | false | false | 10,089 | cpp | Test_TensorProduct.cpp | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Framework/TestingFramework.hpp"
#include <array>
#include <cstddef>
#include <memory>
#include <pup.h>
#include <string>
#include <utility>
#include "DataStructures/DataBox/Prefixes.hpp" // IWYU pragma: keep
#include "DataStructures/Dat... |
c94918b6d3ffd1d077c57d2c2fb969b99be2aebc | 74bb403b0d41d837e65da91e538bdac703acd682 | /CameraBase.h | 06aebb90dd5b9a61843ee1add1af7911e04d8903 | [] | no_license | younggilyoun/MapTool | f9a6ba81cac89eb6042569dc17f3f4157d882210 | 26ccb5bbc40c3f4437b4641e48abc0cff1a353f2 | refs/heads/master | 2020-05-20T05:48:31.176601 | 2019-05-09T13:08:08 | 2019-05-09T13:08:08 | 185,414,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 889 | h | CameraBase.h | #pragma once
struct CameraInfo
{
char _strName[256];
D3DXVECTOR3 _vEye;
D3DXVECTOR3 _vLookAt;
D3DXVECTOR3 _vUp;
};
class CameraBase
{
protected:
D3DXVECTOR3 m_vEye;
D3DXVECTOR3 m_vLookAt;
D3DXVECTOR3 m_vOrgEye;
D3DXVECTOR3 m_vOrgLookAt;
D3DXVECTOR3 m_vUp;
D3DXVECTOR3 m_vOrgUp;
D3DXVECTOR3 ... |
2c6a7b2f5bd90a8dc2f266f54b8c168181423f28 | fd9d7610860a0b406405038bf057160025566fdd | /src/NpcHit.cpp | 9095cd97c2cc8901fed8483d118d273efac73205 | [] | no_license | Mitch-Muscle-Man-Sorenstein/CSE2- | a7a89ad9394279e6291102130845bd20c6871c17 | 83e803b5feccd83dcc89e0914bd233013cb3fdad | refs/heads/master | 2022-12-09T20:18:43.891396 | 2020-09-06T05:23:21 | 2020-09-06T05:23:21 | 289,932,065 | 11 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,008 | cpp | NpcHit.cpp | #include "NpcHit.h"
#include "WindowsWrapper.h"
#include "Back.h"
#include "Bullet.h"
#include "Caret.h"
#include "Flags.h"
#include "Game.h"
#include "Map.h"
#include "MyChar.h"
#include "NpChar.h"
#include "Sound.h"
#include "TextScr.h"
#include "ValueView.h"
void JadgeHitNpCharBlock(NPCHAR *npc, int x, int y)
{
... |
c3763e7bba01fc735c0796a77f73fd891a804d8f | ba124544200d011da6500f0543aee72d6e8007f8 | /Lab2.cpp | 012d35cf6a281ebd3defb6ad6123b0fe7e85c14f | [] | no_license | Jvictor97/FileSystem | f4ad91f618b574748c88d80074ccae337e75da87 | f08613204ecf897a3d7c98343b7834d856f116c6 | refs/heads/master | 2020-05-18T09:07:02.646410 | 2018-09-22T20:12:42 | 2018-09-22T20:12:42 | 184,314,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,121 | cpp | Lab2.cpp | #include <iostream>
#include <bitset>
#include <cstdio>
#include <string>
#include <ostream>
using namespace std;
void writeHeader(FILE * hd, int sizeBloco, int qtdeBlocos){
fputc('$', hd);
for(int bloco = 0; bloco < qtdeBlocos; bloco++){
for(int size = 0; size < sizeBloco; size++){
fputc('0', hd);
}
//fpu... |
282f3828b893a1d68e1804b725ba97b0eee7c68e | a9aa074f0d0bbbd75bc5ea72c4a60c3985407762 | /hitomi/sxs/tasks/sxsflagpix/sxsflagpixlib.h | 21c3143f42afbd355673e65f3420c47ff479d5b8 | [] | no_license | Areustle/heasoft-6.20 | d54e5d5b8769a2544472d98b1ac738a1280da6c1 | 1162716527d9d275cdca064a82bf4d678fbafa15 | refs/heads/master | 2021-01-21T10:29:55.195578 | 2017-02-28T14:26:43 | 2017-02-28T14:26:43 | 83,440,883 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 17,465 | h | sxsflagpixlib.h | /// \file sxsflagpixlib.h
/// \brief functions for sxsflagpix
/// \author Mike Witthoeft
/// \date $Date: 2016/08/22 23:20:35 $
/// \addtogroup tool_sxsflagpix
/// \section tool_sxsflagpix_sxsflagpixlib Supplementary functions for sxsflagpix
///
/// \subsection tool_sxsflagpix_sxspixelmap SXS Pixel Map - sxspixelmap
/... |
a2424ccbc5c150a7f402a599f4db2650f53422db | 737f2d68e6dec69091b030e31ed281cfe0658f66 | /2021_04_29/vector.hpp | 3bc1795667471f54ba542159d05bf65168833558 | [] | no_license | niangeer/Jie | b0517cf6a6abfa4cc905f17c0e7408ed990f79ea | f2f37207713b729ae4bf00fe82f33989e8758256 | refs/heads/main | 2023-06-01T20:04:05.883583 | 2021-06-16T15:16:51 | 2021-06-16T15:16:51 | 315,895,149 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,269 | hpp | vector.hpp | #include <iostream>
#include <assert.h>
using namespace std;
namespace jzh
{
template<class T>
class vector
{
public:
typedef T* iterator;
typedef const T* const_iterator;
//Constructor
vector()
:_start(nullptr)
, _finish(nullptr)
, _endofstorage(nullptr)
{}
vector(int n, const T& data = T()... |
67640d0c0e6dab2bfc5e382de011a00eac3b8899 | 92e5ea8186da4b62820c95825292aeb1eeeb2f87 | /include/gui/group.hpp | 5d5e2d2faab6bc167041c79b141362a8e4c26638 | [
"MIT"
] | permissive | dawikur/c8 | aceda567aa63be34d33e1de96206a0c2921bd1a7 | 8b335158d92c283965c71e911a10bc897f293d97 | refs/heads/master | 2021-01-01T05:16:16.483947 | 2016-06-01T07:15:19 | 2016-06-01T07:15:19 | 57,598,268 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 654 | hpp | group.hpp | // Copyright 2016 Dawid Kurek. All Rights Reserved.
#ifndef INCLUDE_GUI_GROUP_HPP_
#define INCLUDE_GUI_GROUP_HPP_
#include <nana/gui.hpp>
#include <nana/gui/place.hpp>
#include <nana/gui/widgets/form.hpp>
#include <nana/gui/widgets/label.hpp>
#include <nana/gui/widgets/panel.hpp>
#include <string>
namespace gui {
... |
03414fb10564efeb830cee5c1282efb11522af49 | 9f424a27353e57c575fbbd083e018045c1e4bbc4 | /rsdevice.h | 08f49441d5d61095285ada1079ac682ba2bdd5ed | [] | no_license | leon1205/librealsensePlus | 19a8824332af8aea558a911c9db3b02ece99be01 | f442222cc3c4b340e4b7f9b6f406ad80ebfbc141 | refs/heads/master | 2021-06-08T11:31:04.540317 | 2016-12-11T13:58:30 | 2016-12-11T13:58:30 | 75,485,895 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 834 | h | rsdevice.h | #ifndef RSDEVICE_H
#define RSDEVICE_H
#include <librealsense/rs.hpp>
#include <QString>
class rsdevice
{
public:
rs::context ctx;
rs::device * dev;
int devCount;
QString devName;
QString devSerial;
QString devFwVersion;
QString devCamType;
QString devIspFwVersion;
bool streamEnable;... |
e8f19959326bd9d1089350cd0cb6953ab6e49997 | a36dd074b4df149877ddf84cd7c1032ff8bfc531 | /Equilibrium Index | c741acc4a7e8e68a75515a93b0f8373a9effabed | [] | no_license | Kalkivenkatesh/Bankers_algorithm | 5c4d1c41875d33747b29dd667e2cb72004daeea0 | 628ec59b53e6340bebacc4e0de684943ad086ea1 | refs/heads/master | 2021-07-01T12:50:25.831286 | 2020-10-06T20:07:54 | 2020-10-06T20:07:54 | 181,349,963 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | Equilibrium Index | #include<bits/stdc++.h>
using namespace std;
int equi(int arr[], int num)
{
int sum=0,leftsum=0;
for(int i=0;i<num;i++)
{
sum=sum+arr[i];
}
for(int i=0;i<num;i++)
{
sum = sum-arr[i];
if(leftsum==sum)
{
return i;
}
leftsum=leftsum+arr[i];
}
return -1;
}
int main()
{
int n;
cin>>n;
int a[n];
fo... | |
609001a7013dac2f30acbc3a1949ee6906dce86f | 94ca84163372e5e42871f24fafd3dc0b57f942fa | /GameEngine_Prototype/GameEngine_Editor/EditorMain.cpp | 5aa500cff5ea74b1ec75acd4c30d0098bd7836b7 | [
"MIT"
] | permissive | Michaelwolf95/XEngine | 2f957c09965e70e46fbc061d02c0d49aa56e3107 | d134fa376484d1115bf5af75f062ef44c8e70263 | refs/heads/master | 2020-04-05T06:00:27.423995 | 2019-05-17T02:17:59 | 2019-05-17T02:17:59 | 156,621,443 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,620 | cpp | EditorMain.cpp | //==================================================
// ENTRY POINT FOR EDITOR
//==================================================
#ifndef STB_DEFINE
#define STB_DEFINE
#define STB_IMAGE_IMPLEMENTATION
// Disabled to prevent duplicate from the engine.
//include <stb/stb_image.h>
#endif
#include "XEngineEditor.h"
... |
2389b8815f20fcf79223a1cfa05c4ff4166788f2 | 6d6add25752e31c66dc4cf62501bd6e07907c49d | /engine/src/Menu.cpp | 113b7bac5e8da6d41319a54aa1b60f279a81b9a7 | [] | no_license | Jin992/PongSDL2 | dff8a5846a544cdecde58fddc3e533e2d3fb2a7a | 908c6bb4999b05fa2c42dadd7fa87a678c848fe9 | refs/heads/master | 2020-12-23T22:05:25.884955 | 2020-02-09T16:55:01 | 2020-02-09T16:55:01 | 237,290,183 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,484 | cpp | Menu.cpp | //
// Created by jin on 2/3/20.
//
#include <Menu.h>
namespace Engine {
namespace ui {
Menu::Menu(int32_t x, int32_t y)
: _item_pos(0), _active_index(0) {
set_x(x);
set_y(y);
type(entity::Pressable);
setOnKeyPressDown_hdl([this](SDL_KeyboardEvent &ev)... |
50f98b6428ce8bd9a1bd2cf962718236d7220116 | 52cacec1a8f389810465d2fbfa1b62f19b93c935 | /yaris/Common/Mrc.cpp | f37fb9cd24ed8f05dfa5f95ec8f4d240861c4938 | [] | no_license | michel-launier/yaris | 33905ef0adb88101fffad0d205eac49403256485 | fb82470585614f5b3ffca18e8cfdc72b1c25c11e | refs/heads/main | 2023-08-18T23:00:54.470220 | 2021-10-02T03:23:48 | 2021-10-02T03:23:48 | 410,304,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 945 | cpp | Mrc.cpp | //
// Mrc.cpp
// yaris
//
// Created by Michel Launier on 2021-09-28.
//
#include "Mrc.hpp"
// ---------------------------------------------------------------------------
/// Creation & destruction of the MRC pointer
///
_MrcPtr::_MrcPtr(Mrc* p) { if (p != 0) p->retain(); ptr = p; }
_MrcPtr::~_MrcPtr() { if... |
79a9ed58a014ecc10d23009016611892a21aad5c | d024ccbb4cc04af3866a4db1ac1d8c1d7395d909 | /boj/11575 Affine Cipher.cpp | cf25937f55e718a470a6283a412c8c20e277980b | [] | no_license | demetoir/ps-solved-code | ff0418dddd10f3b053c9b8d32af48027b10c8481 | f4d4fd2183176b083f2287c9d89c6d5a1e983cc5 | refs/heads/master | 2022-10-14T20:11:34.581439 | 2020-06-12T11:24:11 | 2020-06-12T11:24:11 | 68,782,768 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 803 | cpp | 11575 Affine Cipher.cpp | #include <stdio.h>
#include <vector>
#include <set>
#include <algorithm>
#include <queue>
#include <math.h>
#include <iostream>
#include <stack>
#include <string>
#include <string.h>
using namespace std;
#define LL long long
#define MP pair < int,int>
#define si(a) scanf("%d",&(a))
#define sLL(a) scanf("%lld",&(a))
#d... |
a75cd3c8e50faab95876f51497c05811b24b0f6a | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Simulation/ISF/ISF_Fatras/ISF_FatrasDetDescrTools/src/components/ISF_FatrasDetDescrTools_entries.cxx | d0dabb9c1c700cd599b5967c6e6bae014b6bf750 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 640 | cxx | ISF_FatrasDetDescrTools_entries.cxx | #include "GaudiKernel/DeclareFactoryEntries.h"
#include "ISF_FatrasDetDescrTools/PlanarDetLayerBuilder.h"
#include "ISF_FatrasDetDescrTools/InputLayerMaterialProvider.h"
#include "ISF_FatrasDetDescrTools/LayerMaterialProvider.h"
using namespace iFatras;
DECLARE_TOOL_FACTORY( PlanarDetLayerBuilder )
DECLARE_TOOL_FACTO... |
4ff6c178a3e52c15f26fa2aa45d9f9ed55e00f3c | f73caed888febd9216c7f94639c25042f0136b0d | /Source/BattleTanks/Private/TankAIController.cpp | 5712ddaa67f921216c77afb527aa5fa63a7ea0b0 | [] | no_license | kacperluk/BattleTanks_Final_Version | e063315ab0d897f4514370df0c86efe0dc8026ac | 906d1efc2e8ca4635713f25e2a13b95b4e947e7c | refs/heads/master | 2022-01-11T17:14:18.376003 | 2019-05-31T18:35:47 | 2019-05-31T18:35:47 | 187,662,040 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,543 | cpp | TankAIController.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "TankAIController.h"
#include "Tank.h"
#include "TankAiminngComponent.h"
#include "TankPlayerController.h"
#include "Tank.h"
#include "Engine/World.h"
void ATankAIController::BeginPlay()
{
Super::BeginPlay();
}
void ... |
7d182453cbee41c0cb2592d95ce368b86d7c7ba3 | c963f96d5715a03c18ebc8489a9b1c9c63a8c086 | /first_steps/2_3/main.cpp | c06b0398f7c077cc48232fb6acb2c178eea40362 | [] | no_license | barabun/first_steps_mediapipe | 650728a3864b0ff6f76385a2505e222635fb0583 | c17432a15ffe260b54babafbbef03ddf25203588 | refs/heads/master | 2023-04-22T00:02:17.683101 | 2021-04-29T07:56:06 | 2021-04-29T07:56:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,274 | cpp | main.cpp | /// Example 2.3 : Video pipeline with ImageCroppingCalculator (dynamic crop)
/// By Oleksiy Grechnyev, IT-JIM
/// Here I show how to use ImageCroppingCalculator with a dynamic crop
/// Translation: the cropping rect is no longer supplied in calculator options,
/// But cropping rects for each frame come from a separate ... |
e1a006dbd1f467e5f9f3358dc4619395c5a9fe3d | 61bd1270ec9722a9519f0311cf1ecc01f401b2fe | /Codeforces/1335/D.cpp | 3a5bc092bcd6ea686cea8806538edaffed53a8c5 | [] | no_license | GonzaloPereira/CompetitiveProgramming | 495aef87835d13b9f5491b8ac56ef0face9be428 | ffc06d855ca021490cc071b92dd3aa84a978dd5b | refs/heads/main | 2021-11-19T03:34:46.578008 | 2021-08-10T00:46:29 | 2021-08-10T00:46:29 | 190,089,378 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 603 | cpp | D.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define FIO ios_base::sync_with_stdio(false), cin.tie(NULL);
#define N 100
char ar[N][N];
int main(){
FIO;
int t; cin >> t;
while(t--){
for(int i = 0 ; i < 9 ; i++){
for(int j = 0 ; j < 9 ; j++){
... |
53a1b6a13ec3d7334b1cca535fb415379ff0ce91 | 15568eb5834435a24538ac50368bb1cbf64049a1 | /RU/Files/day2_LabWork/cases/t-junction-st/0.45/C2 | 9761dc12aee41f688589ce791f4ac5f4818d751d | [] | no_license | lhp18/TwoDaysFoamProgrammingCourse | 9a2c2de84c7d76ad80dd7392fc024b46b9b0e368 | 200206cdcb66e40fc360e579d6d2f8519b53dd5d | refs/heads/master | 2021-05-30T16:26:52.957290 | 2016-01-05T17:03:59 | 2016-01-05T17:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 64,329 | C2 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.0 |
... | |
2feda63bb896894af9ced43bfe1aed9978a9a7ed | 7f9df16c8ea390d32e2939e1da1becdc7a82f40f | /StackLanguage/StackLanguage/ProcessorState.h | 5bf9048540ab34b889732d9f4950a3eba88562da | [
"Apache-2.0"
] | permissive | Pharap/WorkInProgressStackLanguage | 3ecbd862731baa0271989a897b1a4ff03f5289c2 | 61d55636e36d35b9080a8bcda81a10ce1b51b264 | refs/heads/master | 2020-03-29T01:10:38.177568 | 2018-09-19T01:38:50 | 2018-09-19T01:38:50 | 149,374,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,183 | h | ProcessorState.h | #pragma once
//
// Copyright (C) 2018 Pharap (@Pharap)
//
// 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
//
// ... |
106419c0749a827f3bac9eaa038cde0f6601276c | 7f9a5b9bb4b85d48e958efb078f076c081c6aee2 | /SudoPlacements/Trees/07.ZigZagTraversal.cpp | 654000c1d5933b396822fc0d447c51be504025c4 | [] | no_license | anuragroy11/GeeksForGeeks | dd6075df188033f3c740ec98b98c7c12911e1594 | ec9af2d85f1900394be19063ff5196da83c6dc7c | refs/heads/master | 2020-03-22T17:27:45.646008 | 2018-08-16T14:21:49 | 2018-08-16T14:21:49 | 140,396,797 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,405 | cpp | 07.ZigZagTraversal.cpp | /*Please note that it's Function problem i.e.
you need to write your solution in the form of Function(s) only.
Driver Code to call/invoke your function is mentioned above.*/
//User function Template for C++
/*Structure of the node of the binary tree is as
struct Node {
int data;
struct Node *left, *right;
};
*... |
b6363d02bfa36d709337248347e34854739584b6 | dc5d7e573caabdce36a35095dd26616d514e1408 | /CataZJUT/CCrystalPlanes.h | d09064dbab29522b37cb80804a144d5867edc342 | [] | no_license | gvtheen/IACS | 29c11f12e63ef890009cb90bc77136ad07c10371 | 360e85d667c38fe0212866cd9fbb287059e8625a | refs/heads/master | 2022-07-15T10:08:08.742473 | 2020-05-14T12:44:31 | 2020-05-14T12:44:31 | 201,960,213 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,905 | h | CCrystalPlanes.h | #ifndef CCREATEPLANE_H
#define CCREATEPLANE_H
#include <Eigen/Dense>
#include <vector>
#include "../Util/Point-Vector.h"
#include "CPlane.h"
#include "../Util/Bitset.h"
/*
This class main function is to identify crystal plane of the known cluster.
*/
using util::Point3;
namespace CATAZJUT{
class CConfigurationBa... |
d509feb5797a3f6bcc3f7313319a4d5a4652d02d | a943ecc0f1ea5367a315a9b7760f12b67c4fb21b | /rollerOpt_COBYLA_NEW/runLogs/Optimization35/2500/k | b237726b1ec4c5971123ad6db2a58190dc65c1de | [] | no_license | Owbr3335/3M_Roller | d86e59fc8a8e174c793bffb63abdf118e57ad153 | 5136a1b84a674199acab2d11b111b61bef83e3bf | refs/heads/master | 2020-04-24T06:09:31.546146 | 2019-04-26T21:43:50 | 2019-04-26T21:43:50 | 171,755,246 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 117,215 | k | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*-----... | |
e23b3c2a7fe12580bacac756bcc24140e6a61b2e | 28897cab8fac8b0f4c14deaa14954999bd3346f5 | /code/dataFile.cpp | 477fe10a3226879a3096fe82fa94cc1817443bbd | [] | no_license | ifarbod/skincontrol | bbf1419dc6d26b007dcf77d375103e9ae8a1c027 | 241991bbd5283764bebaa9882d7eabc34dfe3b81 | refs/heads/master | 2021-12-24T07:57:35.731373 | 2021-07-30T23:17:41 | 2021-07-30T23:17:41 | 91,604,052 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 28,212 | cpp | dataFile.cpp | /*
Skin Control dataFile.cpp
By Neutrinobeam
*/
#pragma once
#include "dataFile.h"
#include "modMenu.h"
#include "skin.h"
#include "tattoo.h"
#include "weapons.h"
#include <fstream>
/* Save File Format
v1.0 & v1.1 ?
Skin Control.dat
Save file for Skin Control. Do not edit.
name mode... |
4b1a6872850796c46ca81e4e82fffe8ffba97fca | fc9509b72acc753eaae129a1fcb27cd9f8ee56b0 | /zhengtu/mcode/IOCPServer/TestServer/TestServer.cpp | 06483e00a7d0e373c61985fafda401bd71057e56 | [] | no_license | edolphin-ydf/hydzhengtu | 25df5567226c5b7533e24631ae3d641ee0182aa9 | 724601751c00702438ffb93c1411226ae21f46a0 | refs/heads/master | 2020-12-31T03:25:48.625000 | 2012-10-24T10:58:00 | 2012-10-24T10:58:00 | 49,243,199 | 2 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,110 | cpp | TestServer.cpp | // Server.cpp : Defines the entry point for the console application.
//
#include <iostream>
#include <tchar.h>
#include <windows.h>
#include <string.h>
#include ".\gameworld.h"
using namespace std;
CGameWorld g_gameWorld;
#define CONFIG_FILE ".\\config.ini"
int _tmain(int argc, _TCHAR* argv[])
{
... |
8c1c43c51a26ad2fe4e15b8308e2032f9c41629a | 5ac19d80b92609cd3506220675ec45088d92441e | /examples/artificial_neural_networks/perceptron/percept.h | 0d93b28bd68cded99af478242db158d564fee330 | [] | no_license | pmanoonpong/gorobots_edu | 3d5dc739a3058819fa6e5976c9041b07c944a616 | ee904c0e6c0773490c2d51229a15d00652a2472e | refs/heads/master | 2023-05-25T13:30:37.175280 | 2023-05-19T15:49:37 | 2023-05-19T15:49:37 | 42,652,094 | 3 | 8 | null | 2015-10-02T08:33:08 | 2015-09-17T11:21:12 | null | UTF-8 | C++ | false | false | 608 | h | percept.h | //percept.h V. Rao, H. Rao
// Perceptron model
#include <stdio.h>
#include <iostream>
#include <math.h>
using namespace std;
class ineuron
{
protected:
float weight;
float activation;
friend class oneuron;
public:
ineuron() {};
ineuron(float j) ;
float act(float x);
};
class oneu... |
17d0a3554f8bd3db8e4ab6fbb3825418e6b2dfb0 | 43260ae9ca878721e72b37ad21349cd9d7553c8d | /solve.edu.pl/Liczby Królewskie.cpp | 133fe770edbcf734585ea893b04d5a0114b92368 | [] | no_license | PawelMasluch/Programming-tasks-and-my-solutons | 55e9d72917499c30e596d3e64639048edbf22e01 | 6177e0908bca61141b1851b73dc0d0c950d6229f | refs/heads/main | 2023-08-24T07:10:55.111954 | 2021-10-17T10:01:48 | 2021-10-17T10:01:48 | 372,923,592 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 615 | cpp | Liczby Królewskie.cpp | #include<cstdio> // 100 pkt
using namespace std;
#define FORD(i,b,a) for(int i=b; i>=a; --i)
int f(int n)
{
int wyn = 0, tmp = ( 1 << 30 ), ile = 0;
FORD(i,30,1)
{
if( n > ( tmp >> 1 ) )
{
wyn += tmp;
n -= ( tmp >> 1 );
++ile;
}
t... |
f9fac6ff6f03f38ad4f94c6e43700e8bbb334ac1 | fc939cdf171c12ecd3abd73a4e297eacd63f9754 | /CPP/floornmod.cpp | bd9109433847a93832b7e955e0dd85bde3ecee94 | [] | no_license | PrerakMathur20/Codes | 08caa1b51d7359f8e040d639283d4f757c6f10ee | 6cd37d340fc1eb8f3ec87a3ef05153e3db3f3873 | refs/heads/master | 2023-08-04T22:50:45.081682 | 2021-10-03T00:50:18 | 2021-10-03T00:50:18 | 412,939,902 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 341 | cpp | floornmod.cpp | #include <iostream>
using namespace std;
int code(){
int a,b;
cin>>a>>b;
int special=0;
int temp;
if(a < b){
temp = a;
a = b;
b = temp;
}
while(a > b){
if((a/b) == (a % b))
special++;
}
cout<<special<<"\n";
a--;
}
int main() {
int t;
cin>>t;
while(t>0){
code();
t--... |
fbdcde056645bac0d81a781d9472638433039f53 | 96d9e3e8bab6f9c1b7759798f9c50a9a139f8550 | /EJEMPLODT/DiscoSpinning.cpp | d7d4f64633e88caa5db16870c20a6f99eebc3841 | [] | no_license | TheAnderliu/PROYECTO_PROGRA2 | 8c96e82bc48a96b07a7c65f337f6d0d3a00d084c | 7f102c9257d8c59e8caf30cfd94e9e9926fc9ae0 | refs/heads/master | 2020-04-02T04:36:48.055440 | 2018-10-21T15:53:14 | 2018-10-21T15:53:14 | 154,025,032 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,075 | cpp | DiscoSpinning.cpp | #include "stdafx.h"
CDiscoSpinning::CDiscoSpinning() :CDisco()
{
}
CDiscoSpinning::~CDiscoSpinning()
{
}
void CDiscoSpinning::mover(){
if (x + dx + ancho >= 70 || x + dx <= 0 )
{
dx *= -1;
}
else if (y + dy + alto >= 30 || y + dy <= 0)
{
dy *= -1;
}
x += dx;
y += dy;
}
void CDiscoSpinning::... |
1f7a2700812e37e5cc6f340e86cf792f5e7e114d | aba13f939ab3ec14e7a943cdb855394cb4cf0473 | /Project1/ContrastShader.h | acaa047d5019a920b29e879c2c390b7e7cdfc91c | [] | no_license | isaaclopinho/OpenGLopinho | fb10b85b599a44f00f2553b08e31b19f6625020e | ac824bef34b7efc3f2e38c38b46ab1ece10a532a | refs/heads/main | 2022-12-26T22:35:14.688844 | 2020-10-11T04:31:45 | 2020-10-11T04:31:45 | 302,821,419 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 248 | h | ContrastShader.h | #pragma once
#include "ShaderProgram.h"
class ContrastShader : public ShaderProgram
{
public:
GLuint location_offset;
void loadOffset(float v);
void bindAttributes();
void getAllUniformLocations();
ContrastShader();
~ContrastShader();
};
|
3dbd077666b44af439b98bdbb65eddb966dc0664 | b6d48bdd2e600888cdfd502585b4b70074f677fb | /mainwindow.h | 753af832ee79f7beb2f1115b794555ecbf415748 | [
"MIT"
] | permissive | cycoe/Ah-Counter | ac268b5c0f3bdee0b0b4d8a47e705589a5ad4444 | 4b92707aa061a7d9956db800ffe0165d5b34048d | refs/heads/master | 2022-11-19T07:39:29.321126 | 2020-07-20T06:41:52 | 2020-07-20T06:41:52 | 280,302,657 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,172 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QComboBox>
#include <QList>
#include <QHBoxLayout>
#include "recorder.h"
#include "nameeditor.h"
#include "countbox.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT... |
ca00f87fc057c21a7f54b87c1011fbad2d0a56bf | fcd9089eadd7a592f3d982eee0677bcbd4f13e7f | /SP2/SP2/SP2/a.cpp | 48ad0a2acbe6f183d084027e159fbd8b9bc33721 | [] | no_license | KHTseng/CS6301-Implementation-of-advanced-data-structure-and-algorithms | b7e9b06e7d5487106fd4cc94d6fa733759ace573 | abad4994b63eeb240e1f1b4bdea333ada6fa603c | refs/heads/master | 2021-01-10T16:41:09.872637 | 2016-03-24T02:37:14 | 2016-03-24T02:37:14 | 54,608,556 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,919 | cpp | a.cpp | //
// a.cpp
// SP2
//
// Created by TsengKai Han on 1/30/16.
// Copyright © 2016 TsengKai Han. All rights reserved.
//
#include <stdio.h>
#include <list>
#include "graph.cpp"
#include <stack>
using namespace std;
list<Vertex> toplogicalOrder1(Graph g){
list<Vertex> ans;
vector<int> numComeing(g.numNodes+1... |
09f725aa182b08ce0c74c5e45de30015ba525973 | ee8d49632b7b50c146207f953484b658d938b528 | /compilador/main.cpp | 68321a7a55344e2d758d3390dfffdd94adfe68b6 | [] | no_license | DiegoMora2112/Compilador | 9396bb61f0d84bae4ad84869b8ac422aac8664d7 | ef1aba8157630557a1cd130618b3761e39b0ef5a | refs/heads/master | 2020-03-21T06:30:43.811950 | 2018-06-22T23:47:15 | 2018-06-22T23:47:15 | 138,225,160 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 760 | cpp | main.cpp | #include "compilador.h"
string fuente, resto;
vector <string> lineas, reservadas,operadores,ids,numeros;
int linesN, nReservadas, found;
bool flt = false;
int main(int argc, char** argv) {
//*****Proceso de scaning******
compilador* c1 = new compilador();
c1->setCompilador(c1);
cout<<"*********"<<endl;
... |
4aa9ed9549bb5b8879e3ba985ae95b408aac43cb | d9034235f0ab71688a1795f98d8cc0c798ef62a2 | /180968_main2.cpp | 0f94aa55d45eead2bb4461fe35ec3a33e5d3fcc9 | [] | no_license | OOP2019lab/lab12-180968EhteshamArif | b23f09f3477871fc23220c02715dd40f5ca88f9a | fd5d14464d4cd434268b1997f1a74a21942f01ab | refs/heads/master | 2020-05-16T02:19:37.497988 | 2019-04-22T05:24:20 | 2019-04-22T05:24:20 | 182,627,615 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435 | cpp | 180968_main2.cpp | /*#pragma once
#include"circle.h"
#include"rectangle.h"
#include"shape.h"
#include"triangle.h"
#include<iostream>
using namespace std;
int sumArea(shape &a,shape &b)
{
int sum=a.area()+b.area();
return sum;
}
void main()
{
triangle t1(1.0,9.0, "Red");
circle c1(2, "Blue");
rectangle r1(6,2, "Orange");... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.