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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8f1446358dde20045a308c3b9bfc9594d263f66c | fba68a71f9f7d4a2bf49136cdb315fc8258f65e7 | /kengine/meta/imgui/functions/edit.hpp | 023b3e88c57f39c8f92ed0ea687fbc29eba505ab | [
"MIT"
] | permissive | phisko/kengine | a434e66aaa025b95596a6a72c002aba5ba09d75e | 5a0ad085cdefaffe56e2b049e9772ac7a2d05d15 | refs/heads/main | 2023-08-08T05:49:40.621314 | 2023-03-10T10:26:39 | 2023-03-10T12:07:20 | 89,867,048 | 372 | 22 | MIT | 2023-03-10T12:07:21 | 2017-04-30T17:50:30 | C++ | UTF-8 | C++ | false | false | 266 | hpp | edit.hpp | #pragma once
// kengine
#include "kengine/base_function.hpp"
namespace kengine::meta::imgui {
using edit_signature = bool(entt::handle);
//! putils reflect all
//! parents: [refltype::base]
struct edit : base_function<edit_signature> {};
}
#include "edit.rpp" |
66e6d129d4590c30b10d6aedd9d0bd3c23c6df91 | 9ebcb65c7e81c72c57d952217db8d9e6e8b1f157 | /src/configs.cc | 17207f800105d57e6874f75605a8d2380f8a7e38 | [] | no_license | github188/vidy_old | c9314c8887b1b7c911f0257872024edbb8e5dfd5 | 01c0aa4242299f7f1056edf0aa60b92177dfcfe6 | refs/heads/master | 2020-12-25T20:21:02.521410 | 2015-09-24T00:36:28 | 2015-09-24T00:36:28 | 62,994,484 | 1 | 0 | null | 2016-07-10T10:58:30 | 2016-07-10T10:58:29 | null | UTF-8 | C++ | false | false | 251 | cc | configs.cc | //Copyright(c) 2015 Extreme Vision Ltd. All rights reserved.
//File: configs.cc
//Author: Yun Luo(lauren.luo@extremevision.mo)
#include "configs.h"
char* g_dbaddr="123.59.47.111";
char* g_dbuser="admin";
char* g_dbpswd="admin";
char* g_dbname2="";
|
61f5ce36c2312061af955e72fbcd66a9de8e06d9 | f967386a481df44774dee9477cd671c224f06605 | /1052._Grumpy_Bookstore_Owner/1052._Grumpy_Bookstore_Owner.cpp | 6f14a98f5fe96c9a071f72e99460ad641bc348e8 | [] | no_license | aatalyk/LeetCode | b270a03829a6396f3c99cda6aad405e8803ad896 | 4454a337ec583d8fdd8353ebe818c3a7d3f598a8 | refs/heads/master | 2020-05-30T17:29:00.389524 | 2019-06-08T18:41:30 | 2019-06-08T18:41:30 | 189,875,527 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 737 | cpp | 1052._Grumpy_Bookstore_Owner.cpp | class Solution {
public:
int maxSatisfied(vector<int>& customers, vector<int>& grumpy, int X) {
int add = 0, sub = 0, maxSub = 0;
/*
customers = [1,0,1,2,1,1,7,5]
grumpy = [0,1,0,1,0,1,0,1]
0 1 2 3 4 5 6 7
X = 3
add = 1 + 1 +... |
54314a6c1a5f2d8f39dbb29616fbabbc458becd6 | f648c93459ff88a47a164e98f9a88988e2c07e23 | /Engine/ResourcesManager.cpp | ba64df2d309131835305d8a74be8709de7518918 | [] | no_license | khiemngs/ko2d | 6a679fcdfec2aca2ca97c764bf2c7ada36503607 | a2743c3fe247339e3d2483f289054bb8b9ffbc8b | refs/heads/master | 2020-03-19T07:29:37.072154 | 2012-09-04T04:20:19 | 2012-09-04T04:20:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,487 | cpp | ResourcesManager.cpp | #include "ResourcesManager.h"
#include "FileSystem.h"
#include "Vertex.h"
ResourcesManager::ResourcesManager(void)
{
loadingCount = 0;
loadingTotal = 0;
LOGI("\n[RM] Resource Manager initialized\n");
}
ResourcesManager::~ResourcesManager(void)
{
LOGI("\n[RM] Resource Manager destroyed\n");
delete[] _modelList;... |
5c33d79fb40b7076446ba8e30aea66aa8ad329f8 | 08c02c2b6a9eaf8537fe50ca36ab4f74fd5bcd4d | /TaskEncapsulation/Task 1 - Encapsulation/cpp2c_encapsulation.cpp | 6aa8a1e3b3edf4061f561ebd667e9bc73f1860d2 | [] | no_license | ahmadsb/C-Cpp | 582ee51ccd44a73089a564b685bf590453a3d1bf | a8903b80113566ca7616db255f584a10087631ff | refs/heads/master | 2020-06-17T23:07:10.252948 | 2019-07-09T22:54:30 | 2019-07-09T22:54:30 | 196,093,051 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,656 | cpp | cpp2c_encapsulation.cpp | #include <cstdio>
#include "cpp2c_encapsulation_defs.h"
static Box largeBox(10, 20, 30);
void thisFunc()
{
std::printf("\n--- thisFunc() ---\n\n");
static Box box99(99, 99, 99);
box99 *= 10;
}
void thatFunc()
{
std::printf("\n--- thatFunc() ---\n\n");
static Box box88(88, 88, 88);
box88 *= ... |
a986b27c49a40630f1373993f0750bb7ede630cb | 7c87ef2e59f55b28a9f66b6c875d40fc44029e9b | /src/Game/Model/Item.h | 82f43c8311e1471deab39ab3aa3deaa65a6adceb | [] | no_license | rosdyana/Miner-Speed | ea28873beac6b7d5e56da8b0cd402319702b0972 | 56d7e0843b82e9ee66111ae34097548696c4a03d | refs/heads/master | 2020-03-18T09:51:14.739619 | 2018-05-30T09:00:00 | 2018-05-30T09:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | h | Item.h | #pragma once
namespace MinerSpeed
{
class Item
{
public:
enum State {
STATE_MIN,
STATE_NEUTRAL,
STATE_SELECTED,
STATE_MAX
};
enum Color {
COLOR_MIN,
COLOR_BLUE,
COLOR_GREEN,
COLOR_PURPL... |
65990545d5588542b26c633a361fa6088f0714ed | b11b140ef2fbb3e3e2d0eb53fdbe4c8943ad5ebb | /hdu/3766/3766.cpp | c4eb1422ba0f501c0287cc06915eeac8779afefd | [] | no_license | jer22/OI | ea953208ab43542c51eada3c62ef529a6c14588e | 545c2424f277a6626b0f22fb666edd8c37e7328b | refs/heads/master | 2021-04-18T22:57:05.678732 | 2017-11-02T15:40:34 | 2017-11-02T15:40:34 | 27,431,322 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 828 | cpp | 3766.cpp | #include <cstdio>
#include <cstring>
#include <algorithm>
#include <queue>
#include <iostream>
#include <map>
#include <utility>
using namespace std;
int main() {
freopen("3766.in", "r", stdin);
// freopen("3766.out", "w", stdout);
char str[20];
while (~scanf("%s", str)) {
if (str[0] == 'E') break;
int x = 0,... |
ee955bf812833a4dbaad1e93c231e54152fb0414 | 1afe781fbacdd59bfa3ab4783f64e46220adc078 | /Spark-LSA-LM/lsa_ngram.h | f6aade937cf576a7e3a1a544d438169febfd33e0 | [] | no_license | HaoyuHuang/Spark-LSA-LM | 5c1db438bb3b2d20f2e4e7b8d944acb42cdf12cf | dea97fc05c7df4c7eb689c8b34d8095c8c2643de | refs/heads/master | 2016-09-06T00:03:39.640668 | 2014-04-20T16:48:47 | 2014-04-20T16:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 797 | h | lsa_ngram.h | //
// lsa_ngram.h
// Spark-LSA-LM
//
// Created by Haoyu Huang on 4/18/14.
// Copyright (c) 2014 HaoyuHuang. All rights reserved.
//
#ifndef Spark_LSA_LM_lsa_ngram_h
#define Spark_LSA_LM_lsa_ngram_h
#include "lsa_common.h"
typedef struct lsa_ngram_arpa {
double p;
} ngram_t;
// load arpa file into ngra... |
0858587d1c917bd081890e39fb53e1ad8dc90e9b | 8433144aa08a8bbdf2b39103ee594631297659ce | /src/domain/DomainData.h | d8b326ea9a6740507cc517b3f1d3607c01174b76 | [
"MIT"
] | permissive | FireDynamics/ARTSS | 68f9f07488c90be40a3b4b1a3342069146b785e5 | 63f589669fda249cf7a5cda66ed07d177d231d4b | refs/heads/master | 2023-02-11T08:15:16.983599 | 2022-11-29T16:10:04 | 2022-11-29T16:10:04 | 249,939,552 | 12 | 11 | MIT | 2022-11-30T21:23:12 | 2020-03-25T09:42:48 | C++ | UTF-8 | C++ | false | false | 10,033 | h | DomainData.h | /// \file DomainData.h
/// \brief stores information about the domain
/// \date Jul 16, 2018
/// \author My Linh Wuerzburger
/// \copyright <2015-2020> Forschungszentrum Juelich GmbH. All rights reserved.
#ifndef ARTSS_DOMAIN_DOMAINDATA_H_
#define ARTSS_DOMAIN_DOMAINDATA_H_
#include <cmath>
#ifd... |
17c8ff8070d79fae1c5815c80f6eb0f2c85d05bf | 044c0ecbf4d04551e448411970ca5f462131745a | /guess.cpp | 8064aafb5a0ff5b1322ab6cebcb214341cb44f12 | [] | no_license | Rickybaca/Kattis | 8f52a5b3d47da990c5acf405842ff67c8f95c52e | 4cb34a8735aaed884d52b0acd2e4b5c8ff7abae9 | refs/heads/master | 2020-07-04T08:43:27.239466 | 2019-08-13T21:38:37 | 2019-08-13T21:38:37 | 202,226,649 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 413 | cpp | guess.cpp | #include <iostream>
using namespace std;
int main() {
int guess = 500;
int min = 1;
int max = 1000;
string ans;
cout << guess << endl;
while(cin >> ans){
if(ans == "correct"){
break;
}
if(ans == "lower"){
max = guess - 1;
guess = (min + max)/2;
}
else if(ans == "higher... |
821d56980092c7ef0914e63f4fcb1eb9dec62249 | 1c4238a100827884061dc28747f20d27bbfadfea | /GSOpenGL2019/mathlab.h | d625b99a86f621eca781a793ce2a90c8b1892754 | [] | no_license | EirikJHenriksen/VSIM2019 | 0adcc45ac0be215972f1c17c3977123a17bae5cc | d4edd04fdb47b21c2f1840462ef2f1fabce66969 | refs/heads/master | 2020-08-12T21:07:09.036211 | 2019-11-07T09:03:15 | 2019-11-07T09:03:15 | 214,441,573 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 560 | h | mathlab.h | #ifndef MATHLAB_H
#define MATHLAB_H
#include "vector2d.h"
#include "vector3d.h"
#include "vector4d.h"
#include "matrix4x4.h"
namespace MathLab
{
// CONSTANTS
constexpr double PI = 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550... |
a08f7f311c532cf83c534453501c3044fde0858f | 2ff535673208c99427040ad64a9885b422c75cca | /qkc/arpa_inet.cpp | b6795c613e51a12db4535efa84d13d0347c7d130 | [] | no_license | warrenween/quark | 505bb20f253dc2465a0cbf53ade8dad4a0a22150 | 4f02fdd3cde6a4ab567041c4c87484bc3cc59781 | refs/heads/master | 2020-04-16T22:46:00.865760 | 2018-11-10T05:25:52 | 2018-11-10T05:25:52 | 165,982,787 | 1 | 0 | null | 2019-01-16T05:56:53 | 2019-01-16T05:56:53 | null | UTF-8 | C++ | false | false | 249 | cpp | arpa_inet.cpp |
#include <arpa/inet.h>
#include <winsock2.h>
in_addr_t inet_addr (const char * cp)
{
return _imp_inet_addr(cp) ;
}
char * inet_ntoa (struct in_addr in)
{
IN_ADDR wi ;
wi.s_addr = in.s_addr ;
return _imp_inet_ntoa(wi) ;
}
|
f7fe651a5bc89146b50d4aae15a9fff2d23e9a9e | 189f52bf5454e724d5acc97a2fa000ea54d0e102 | /ras/fluidisedBed/1.83/alpha.air | ce4ca685115e83bb9bbbeaa877cac0a71ff9cd7a | [] | no_license | pyotr777/openfoam_samples | 5399721dd2ef57545ffce68215d09c49ebfe749d | 79c70ac5795decff086dd16637d2d063fde6ed0d | refs/heads/master | 2021-01-12T16:52:18.126648 | 2016-11-05T08:30:29 | 2016-11-05T08:30:29 | 71,456,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 48,291 | air | alpha.air | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1606+ |
... |
485030522b99500ce23109b9342959cd25555495 | 2ca2c76888197194d3116ed9e229e21e8f1f0034 | /LDFToPicture.h | 3c28f82743d94da1f115573613d7c368af917c58 | [] | no_license | Strongc/LDFProcess- | fc34e9bf36e0d90d86b7a91e734d463946749110 | ab7651cf6134b1cbb1411beb2054dc39b7b1d0de | refs/heads/master | 2020-05-29T11:35:09.245501 | 2015-04-11T15:30:09 | 2015-04-11T15:30:09 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,007 | h | LDFToPicture.h | #pragma once
#include "./Lib/LDF.h"
#include "./lib/IProvider.h"
#include "./Lib/Core.h"
using namespace UltraGIS;
class LDFToPicture
{
public:
LDFToPicture();
~LDFToPicture();
int setLDF(LDF& ldf);
int setTIFF(LDF& ldf,float *KValue);
//int setMEAN(LDF& ldf,float *Mean);
int Render(CDC* pDC, CRect rc = CRect(0... |
100985f68a42edb110f7e0b519d5a9723ed00135 | be57cf9d8c4ae12cd7440dfef735541f7303a234 | /src/Texture.h | dd8fccde43c59769eb61a93f0dbb9e9f5cd990b6 | [] | no_license | 7182514362/gobang | 6cb753777fff08ec83b678c581e0cc57782a830b | 74260f37427171ad995de04492407d23d6fce4d1 | refs/heads/main | 2023-04-10T19:54:45.566334 | 2021-04-19T10:07:42 | 2021-04-19T10:07:42 | 359,385,304 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 516 | h | Texture.h | #ifndef TEXTURE_H
#define TEXTURE_H
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
struct Rotation
{
double angle;
SDL_Point center;
};
class Texture
{
public:
SDL_Texture *mTexture;
SDL_Renderer *mRenderer;
int w, h;
unsigned char alpha;
Uint32 colorKey;
SDL_Rect srcRect;
SDL... |
b12d535ffdd3929619fdac291d0ead7edeb3069a | b3a38f3d4913401f0b5ca707d06f6691a0c7c636 | /Classes/Tiled/TiledProjector.h | 7a2a6c54356ba438b1c85fcba7440180b426c134 | [
"MIT"
] | permissive | ilyagolota/chips | c7f906ef47862699c9dbbfe71cf3177ecba27ba3 | e8f567626b26eb10feac61b84a75dbfc682689b1 | refs/heads/master | 2021-04-09T16:19:03.804063 | 2018-02-12T10:14:56 | 2018-02-12T10:14:56 | 59,484,723 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,037 | h | TiledProjector.h | #ifndef _CHIPS_CHALLENGE_TILED_PROJECTOR_H_
#define _CHIPS_CHALLENGE_TILED_PROJECTOR_H_
#include <cocos2d.h>
#include <vector>
#include "Direction.h"
class TiledPhysicsWorld;
class TiledProjector : public cocos2d::Ref
{
private:
static const int UNKNOWN_DEPTH;
cocos2d::Size _tileSize;
cocos2d::Size ... |
87b0f3c2bb82f04bf588d5f0df821b2192338872 | 7a914f1d1e7a4b4d9757145cac8376bf1f7099d4 | /jsk_recognition/jsk_pcl_ros/src/parallel_edge_finder_nodelet.cpp | 9306f15e40150aa2152f31afb40ae3d799b19271 | [
"Apache-2.0"
] | permissive | usdot-fhwa-stol/autoware.ai | eed15471180f92900413b1a20213263b40acdb3f | 35c2be547269f2843de2ad907cec85abcf598577 | refs/heads/carma-develop | 2023-08-14T07:59:11.546253 | 2023-08-01T20:51:01 | 2023-08-01T20:51:01 | 186,024,768 | 2 | 12 | Apache-2.0 | 2023-08-01T20:51:02 | 2019-05-10T17:03:33 | C++ | UTF-8 | C++ | false | false | 8,727 | cpp | parallel_edge_finder_nodelet.cpp | // -*- mode: c++ -*-
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2014, JSK Lab
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... |
7599b6c3ebc2dd87a227b0bad06d75b78ae58da0 | 01bcef56ade123623725ca78d233ac8653a91ece | /game/server/cstrike15/cs_autobuy.cpp | 511ac4e929d4f5ced2f9da9091a421885ce3057b | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SwagSoftware/Kisak-Strike | 1085ba3c6003e622dac5ebc0c9424cb16ef58467 | 4c2fdc31432b4f5b911546c8c0d499a9cff68a85 | refs/heads/master | 2023-09-01T02:06:59.187775 | 2022-09-05T00:51:46 | 2022-09-05T00:51:46 | 266,676,410 | 921 | 123 | null | 2022-10-01T16:26:41 | 2020-05-25T03:41:35 | C++ | WINDOWS-1252 | C++ | false | false | 7,493 | cpp | cs_autobuy.cpp | //========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose: Data for Autobuy and Rebuy
//
//=============================================================================//
#include "cbase.h"
#include "cs_autobuy.h"
// Weapon class information for each weapon including the... |
aef8dc1387404d5bc1795b8e79bc1869d5d5059a | f9e55f7fc2db89721e442856ba115b18d812a9e8 | /src/Scene/Camera/LookCamera.h | aa6b10cf0122443bd68208d791b135f091f3d1f0 | [
"MIT"
] | permissive | Jannled/J3ngine | 09932bea41bd6e3671c0d8bba2580118aff01a86 | b0a0484aa42baedc057082718e54b61b52ea1fb8 | refs/heads/master | 2021-07-14T12:50:04.940535 | 2020-07-12T17:21:38 | 2020-07-12T17:21:38 | 231,934,965 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | h | LookCamera.h | #ifndef LOOK_CAMERA_H
#define LOOK_CAMERA_H
#include "Camera.h"
class LookCamera : public Camera
{
public:
LookCamera(int width, int height);
LookCamera(GLWindow::Point res);
virtual ~LookCamera();
virtual glm::mat4 viewProjection();
virtual glm::mat4 view();
private:
glm::vec3 up;
glm::vec3 fokus... |
598d80b921d536dc5cd1c80154a0fd75401c577a | 9ab1f5250abdcbd74134a11c35c0b14661d74b87 | /11 (Strings and Structures)/Untitled3.cpp | e08175d4cb2775b9d0a6db6eda1a50011125eb24 | [] | no_license | AhsanGhaffar370/C-plu-plus | e407591ae013dcf8186afcd28575c5893b1b64c1 | 73fc77b562664ef58a59e4c2cc08c6ffac40e40e | refs/heads/master | 2022-08-20T18:19:06.046582 | 2019-11-16T12:35:23 | 2019-11-16T12:35:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 364 | cpp | Untitled3.cpp | #include<iostream>
#include<fstream>
#include<string>
using namespace std;
int main()
{
char ch='s';
int a=33;
double d=2.32;
string str1="hello",str2="c++";
ofstream outfile("myfile.txt");
outfile<<ch<<a<<d<<str1<<str2;
ifstream intfile("myfile.txt");
intfile>>ch>>a>>d>>str1>>str2;
cout<<ch<<a<<d<<str1<... |
bbcb610b51b9b6d3d68bdaf2648c5ba058d5d07d | 3df19976f5b2ab687d74e00de2b2c5a7f4bca69d | /nclgl/SceneNode.h | bfd36b446ddf12d1acab2898bfacd44155d2ec64 | [] | no_license | ltarne/NCLGL-Coursework | f9b5196f246c29058959f3626dce8626d7a53c7f | d705f68fbba8ab8af6a3544587a70b2bcf95a750 | refs/heads/master | 2021-11-23T19:13:44.997386 | 2018-02-06T22:26:37 | 2018-02-06T22:26:37 | 110,580,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,882 | h | SceneNode.h | #pragma once
#include "Mesh.h"
#include "CubeMapTexture.h"
class SceneNode
{
public:
SceneNode(Shader* shader = nullptr, Mesh* mesh = nullptr, Vector4 colour = Vector4(1,1,1,1));
virtual ~SceneNode();
inline void SetTransform(const Matrix4 &transform) { this->transform = transform; }
inline const Matrix4& GetT... |
705c46ff121225367569f00e50bff81f9c34a68a | 3b04925b4271fe921020cff037b86e4a5a2ae649 | /windows_embedded_ce_6_r3_170331/WINCE600/PRIVATE/TEST/BASEOS/DRIVERS/PARALLEL/API/PARTEST/parport.h | cd82d436e56ef0345826ae18cb22eaef3914b420 | [] | no_license | fanzcsoft/windows_embedded_ce_6_r3_170331 | e3a4d11bf2356630a937cbc2b7b4e25d2717000e | eccf906d61a36431d3a37fb146a5d04c5f4057a2 | refs/heads/master | 2022-12-27T17:14:39.430205 | 2020-09-28T20:09:22 | 2020-09-28T20:09:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,075 | h | parport.h | //
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft shared
// source or premium shared source license agreement under which you licensed
// this source code. If you did not accept the terms of the license agreement,
// you are... |
8a099a02336ddfcbb943de094e52e76295ed7d3e | 63ef21cdb213235aca1b3f5bc3ac5a1f400baa18 | /10242 - Fourth Point !!.cpp | edb67a8893d03c48ea0e214e7be979b7510ffc49 | [] | no_license | maisamer/problem_solving | 66eedbd107906552a0cf457419cf9d77ccbbc26a | 7c2a642985c677ec4852b5bf110db3a4f94c1776 | refs/heads/master | 2021-09-27T08:19:46.785096 | 2018-08-06T01:03:52 | 2018-08-06T01:03:52 | 113,021,478 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 894 | cpp | 10242 - Fourth Point !!.cpp | //uri : https://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=1183
#include<bits/stdc++.h>
using namespace std;
double x[4],y[4];
int main()
{
set<pair<double,double> >s;
set<pair<double,double> >::iterator it;
while(cin>>x[0]>>y[0]>>x[1]>>y[1]>>x[2]>>y[2]>>x[3]>>y[3]){
... |
e952e52392d3806991f58b0e2f40ad097b564aea | d8dbc1d3168b6c71b860d7fde1584707618dabbf | /src/Observation.cc | e390bd9abdc00d95988966b4afd1caeba42aaf89 | [] | 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 | 750 | cc | Observation.cc |
#include "Observation.hh"
#include "EventObj.hh"
#include "umlrtobjectclass.hh"
#include "umlrtoutsignal.hh"
struct UMLRTCommsPort;
static UMLRTObject_field fields_event[] =
{
{
"data",
&UMLRTType_EventObj,
0,
1,
0
}
};
static UMLRTObject payload_event =
{
sizeo... |
e9fbdac12da68673fb2d0326474707824ff6058f | b9eaf61102c47e5a695f94554f450ca86d85c6af | /OSMonitor/app/src/main/jni/src/core/cpu.cc | 4cc1d81d1870a3f229d9eef9bf23b9bcff4d70ae | [
"Apache-2.0"
] | permissive | johnnatan-messias/OSMonitor | c6004647b93f1cb518cff376e0124074c8790046 | 352dcbd0fcbe5808c4a55714e6f0064fb8b430be | refs/heads/master | 2021-01-11T17:40:27.220803 | 2017-01-23T15:55:05 | 2017-01-23T15:55:05 | 79,819,462 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,837 | cc | cpu.cc | /**
* @file cpu.cc
* @brief CPU Class file
*/
#include "cpu.h"
#include <android/log.h>
namespace com {
namespace eolwral {
namespace osmonitor {
namespace core {
cpu::cpu()
{
// get total CPUs
this->_totalCPUCount = sysconf(_SC_NPROCESSORS_CONF);
// set to zero at beginning
this->_totalCPUU... |
e3325eef59c4b5d06959ab5bfc4812b20fd41e84 | 747e2d79f77c64094de69df9128a4943c170d171 | /Logic/Object/NPCs/Monster/Slime.h | 4909f1595bee70f307c3a8d8b3d4293ee0a76e73 | [
"MIT"
] | permissive | Teles1/LuniaAsio | 8854b6d59e5b2622dec8eb0d74c4e4a6cafc76a1 | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | refs/heads/main | 2023-06-14T00:39:11.740469 | 2021-07-05T23:29:44 | 2021-07-05T23:29:44 | 383,286,395 | 0 | 0 | MIT | 2021-07-05T23:29:45 | 2021-07-05T23:26:46 | C++ | UHC | C++ | false | false | 577 | h | Slime.h | #include "../../NonPlayer.h"
namespace Lunia { namespace XRated { namespace Logic {
class SlimeBoss : public NonPlayer {
protected :
int hitCnt; ///< 필살기시에 힛트수가 일정수가 넘어가면 필살기 실패를 위해서.
bool bSplitted;
public :
SlimeBoss();
virtual ~SlimeBoss() {}
virtual bool DoDamage(Object* who, uint32 creatorActionHas... |
c2f206f421986968828ef84188af8ed41c1bb955 | fdf4347684d8b2751454f7630478ddd2ed5d09d6 | /timus1001.cpp | 1d74ab08285c67716cd376f07c108ae98457d6af | [] | no_license | SajibTalukder2k16/All_Problems_which_i_have_solved | 1e66f85bb3cd664a448e61fe309ec5b4959c79c9 | 9d0c2a34d5f05519b520d47de9ac915a07e64e02 | refs/heads/master | 2020-04-22T13:02:00.232634 | 2020-02-01T10:43:53 | 2020-02-01T10:43:53 | 170,394,511 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 445 | cpp | timus1001.cpp | #include<bits/stdc++.h>
using namespace std;
#define llu unsigned long long int
double root_ara[(256*1024)/(2*8)];
int main()
{
llu a;
double root;
int i=0;
while(scanf("%llu",&a)!=EOF)
{
///cin>>a;
root=(double)sqrt(a*1.0);
root_ara[i++]=root;
///printf("%.4f\n",root... |
6ff443ce837f430a6c55694a3f424f93807ce716 | 1219c3e28a02005e2fbada750720422c3023d2bd | /src/compiler_src.cpp | 71947e893c72cf3d2767a67a94aac687bdf45359 | [] | no_license | Krzysiek-K/k65 | 3d2384fa4dd07d81bd1cbdc100d8ed4e8bb72a4a | 920a4e40e853c4cb563302f3c88d81ba4687c4ed | refs/heads/master | 2022-05-07T10:40:34.423539 | 2022-03-21T11:35:12 | 2022-03-21T11:35:12 | 219,321,467 | 8 | 10 | null | 2022-03-21T12:28:56 | 2019-11-03T15:24:19 | C++ | UTF-8 | C++ | false | false | 31,467 | cpp | compiler_src.cpp |
#include "stdafx.h"
#include "common.h"
Compiler cmp;
//static const char *REGS[] = {
//"$0x0",
//"VSYNC", // $00 0000 00x0 Vertical Sync Set-Clear
//"VBLANK", // $01 xx00 00x0 Vertical Blank Set-Clear
//"WSYNC", // $02 ---- ---- Wait for Horizontal Blank
//"RSYNC", // $03 ---- -... |
caf051fabeaad62084ec3372113adb44eb2450e3 | 6d94e9583069398ac001dd9d6a3f6c73f3fc9573 | /tests/TestJsonDataWriter.cpp | 076c9ee1ab7a45488c8d4d1752c1b11027bde46d | [] | no_license | saifmulla/DataPipeline | 7b8336a5a578c3cacd4dc638d08b0adda1fdc585 | 76b7fafe6604302c820964f0dd4fc9427c66515d | refs/heads/master | 2021-01-22T03:01:18.839592 | 2016-11-16T19:24:30 | 2016-11-16T19:24:30 | 81,091,020 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | cpp | TestJsonDataWriter.cpp | #include "gtest/gtest.h"
#include "datapipeline/JsonDataWriter.H"
#include "datapipeline/CsvDataReader.H"
#include <memory>
using namespace DataPipeline;
TEST(TestJsonDataWriter, construction){
CsvDataReader reader("../data/test_1.csv");
Data data;
reader.read(data);
JsonDataWriter writer;
writer.write(data,"tes... |
50f5a22d9e1f37e475517740a791334ca757ec64 | 749f7043431d7dea381dc4fa85cae9b4c265152e | /main.cpp | 387738872804d9664d26382da2882627e4466ec8 | [] | no_license | isabella-talijancic/Fair-C2-P3-Making-Simple-Decisions | 19f378092ba96a78a48f4e2c946fdb48c829c1ac | 2049bac90276befd6c5d9022ce0ab08ff9add87d | refs/heads/master | 2023-03-18T07:44:02.048771 | 2021-03-09T02:50:00 | 2021-03-09T02:50:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,040 | cpp | main.cpp | // C2 P3 - Making Simple Decisions
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
// Variable Declarations
string name;
int items;
char decision;
string done;
const double PRICEEACH = 3.59;
const double CUT_OFF1 = 12;
const double CUT_OFF2 = 24;
const double DISCOUNT1 = 0.10;
const dou... |
e79d22c51c9db75c5be8a8a3ba616ac569178993 | 0e9d78dfc9fe3f1d6ba2afa5f5d7025e64a24855 | /Project1/Deck.cpp | bb5d08c588cb75b6ceca923932d457210aa6979f | [] | no_license | aya-gv/Blackjack | ea3eb24c6c606d11cd8fe42012707ad88defe814 | bb40122d3d6e2f4ec3e68e877555796b6ca969c3 | refs/heads/master | 2020-04-02T08:04:52.453706 | 2018-10-21T03:18:35 | 2018-10-21T03:18:35 | 154,228,347 | 0 | 0 | null | 2018-10-22T22:57:41 | 2018-10-22T22:57:41 | null | UTF-8 | C++ | false | false | 1,480 | cpp | Deck.cpp | #include "Deck.h"
Deck::Deck()
{
// when a deck is instantiated, all 52 cards also instantiated and their values set
deck = gcnew array<Card^>(52);
deckSize = deck->Length;
// set suits array - 0 = spade, 1 = club, 2 = diamond, 3 = heart
suitsTotal = gcnew array<String^>{"s", "c", "d", "h"};
/*
* Set values of... |
504a57e11cf46c7384de16ad9b06188b8972eb6d | 6ab8bc7c02696b1e386e3be2717d50761cb4390c | /URI/p1155.cpp | f64838626e4ed60b43a6686e1d3f56792bd0fd42 | [] | no_license | shahriercse/Online-Judge-Solutions | 4c71d21cadaf12a04e2021f0168b27fba436e257 | 2b35452116547e1f7769fa3f32ca6cc3a5eb2e75 | refs/heads/master | 2023-08-20T20:47:22.104809 | 2021-10-26T09:39:16 | 2021-10-26T09:39:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 262 | cpp | p1155.cpp | #include<iostream>
#include<iomanip>
using namespace std ;
int main()
{
double sum = 0 ;
for ( int i = 1 ; i <= 100 ; i++ ){
sum += 1/(i*1.0) ;
}
cout << fixed ;
cout << setprecision(2) ;
cout << sum << endl ;
return 0 ;
}
|
fc01ac381d4f90db9f7519e73acacc4827b575d1 | c7246bb4278520805ca19ddde4b05e142610b6ec | /main.cpp | 9fe79730fdd1ebe2b3b5bf6a811ef278b4935a09 | [] | no_license | serjtroshin/rootscpp | 9b50431af537bbf51fd158597f3a3e2379e60c99 | 8cfb08300345e4c0ca3125edbb0e6a0be5c4135d | refs/heads/master | 2020-03-26T18:20:26.405581 | 2018-12-09T14:05:37 | 2018-12-09T14:05:37 | 145,208,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,390 | cpp | main.cpp | #include <iostream>
#include <armadillo>
#include <vector>
#include <assert.h>
#include "linalg.h"
#include <fstream>
#include <set>
#include <string>
#include <deque>
#include <ctime>
#include <string.h>
#define ARMA_USE_HDF5
#define __FILE_KARTAN__ "/Users/istar/ClionProjects/gauss/kartan.txt"
#define __FILE_WEIGHT... |
8190ca4f01a8c2dae034caef8f99da1fb058c8b2 | 56f5b185d8103f3819ae0dd22d2b52e8ca7f74e6 | /LehrMark_CSC_CIS_5_Winter_2018-master/Lab/Lab012518/Home/main.cpp | 636957a9458ce140edea18acbf8d09ebadee50e7 | [] | no_license | bj2594494/JungByeongju_CSC_CIS_17A_Spring_2018 | 8fc2dbf94b817f62c47363a91cd27cd13462fb99 | 2e1025a8a1b7e60626614200b9b9d675cdeff204 | refs/heads/master | 2020-04-10T22:07:21.003164 | 2018-05-15T05:42:57 | 2018-05-15T05:42:57 | 124,298,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,981 | cpp | main.cpp | /*
* File: main.cpp
* Author: Dr. Mark E. Lehr
* Created on July 19, 2016, 9:07 AM
* Purpose: Home Calculator
*/
//System Libraries Here
#include <iostream> //I/O Library
#include <iomanip> //Format Currency
using namespace std;
//User Libraries Here
//Global Constants Only, No Global Variables
//Like PI,... |
54c0a93b6c4e73753f33b1a23b66ef44cced9aa2 | 96d2adca82149fea0d6f2c08139683630b8c6116 | /Client2D/Include/HK/HollowKnight.h | e5dfd2693c2facc81c5c69a2ae30b3c8e786f32f | [] | no_license | kentsang45/Hollow2D | 847c39b7881644f88b3d56e128e872192f0753cc | 18c63318741ae8e3f31a528ac0235ceb1faa0e10 | refs/heads/master | 2022-06-12T16:14:32.862531 | 2020-05-04T16:38:19 | 2020-05-04T16:38:19 | 257,964,090 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 4,681 | h | HollowKnight.h | #pragma once
#include "Object/GameObject.h"
#include "../Client.h"
class HollowKnight : public CGameObject
{
GAMEOBJECT_DEFAULT();
public:
HollowKnight();
~HollowKnight();
void PlaceAt(int stageNumber, bool bStart);
virtual bool Init();
virtual void Begin();
virtual void Update(float fTime);
virtual vo... |
d7c4d0d0ec04186aed2fa14053f3375b7c7532e8 | 574933565e69f1fadd4982aee98bfe48eaa94191 | /C_С++/OOP/labs/prog10/main.cpp | 6148f79219c17dd96ffd6a904268ad34f316d40a | [] | no_license | andryuha24/CourseBachelorKRSU | 96f831666f9ba57a5ae9fd2a74210aea2258c87d | 542b9ddfd9db8dbf039a03390796e61347c74f22 | refs/heads/master | 2021-01-12T13:32:31.424327 | 2018-02-03T17:30:40 | 2018-02-03T17:30:40 | 69,844,356 | 1 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 12,756 | cpp | main.cpp | #include <iostream>
#include "intArray.h"
using namespace std;
//определение специализированного класса
int intArray<double>::count=0;
intArray<double>::intArray()
{
count++;
p=NULL;
n=0;
error=1;
}
intArray<double>::intArray(int n1)
{
count++;
n=n1;
p=new double[n];
if(p==NULL) error... |
35c09f9ab7ae04a50bc3581cac5374a4e219eb0a | 8b70704c3d95378f725c92afbf7fbf7cae19b3ca | /source/SoundFile/MP3/MpegDecoder.cpp | 8955f518c1a41744d02f22499ffaae58c4dba9af | [
"MIT"
] | permissive | xtreme3d/squall | a2b55ed8f481472a85091195c69c5a92e5e4ab1a | 20988426d2dde0a4b7aa6e18578f59c55d3af3a8 | refs/heads/master | 2022-11-23T14:05:15.488910 | 2020-07-19T17:11:38 | 2020-07-19T17:11:38 | 33,071,552 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 77,394 | cpp | MpegDecoder.cpp | //-----------------------------------------------------------------------------
// Декодер Mpeg Layer 1,2,3
// Копонент звукового двигателя Шквал
// команда : AntiTank
// разработчик : Гилязетдинов Марат (Марыч)
//-----------------------------------------------------------------------------
// включения
#include <str... |
fc0bd662d76fd64de590b7ed96973aa2bda1fc5f | 02a8054a8573f79c9e3de876dfe45c158ab77ee3 | /encoderTest/status.h | 0a22066bd16c7e441b08e477e53bda27fe490b8f | [] | no_license | jasonyang-ee/UCSD-Micromouse-2012-Team1 | 944cbd84902e2ff5014c568a963df9c77f7cbe7f | bf627476e387b3036f8c4a3a3e593d93bb7e65e3 | refs/heads/master | 2023-01-29T11:57:26.598858 | 2013-05-12T09:18:45 | 2013-05-12T09:18:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | h | status.h | #ifndef STATUS_H
#define STATUS_H
#include "global.h"
class Status{
public:
//encoder status
volatile int wheelCountLeft; //set by timmer2 ch1
volatile int wheelCountRight; //set by timmer2 ch1
public:
void initialize();
void printAll();
};
#endif
|
c7eb561c9c8ee536113bbd7f4c32b74782d66ade | 901ac5251ab475142725d6dfcb4cf31853541e7e | /C++/judge_copy.cpp | a6c297627d9a3b8e22165f67e20f7ed80d8ab116 | [] | no_license | zhitou25/Based-on-learning | 9b9e99eeb97c83b1605f802de2e2aaec78b7b733 | 4c685046491c66bc47ab49c91365afdd74022c3a | refs/heads/master | 2020-04-07T15:52:47.866599 | 2019-03-06T09:58:45 | 2019-03-06T09:58:45 | 158,505,075 | 7 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,174 | cpp | judge_copy.cpp | #include<iostream>
#include<string>
#pragma warning(disable:4996)
using namespace std;
struct Match {
static bool get()
{
return true;
}
};
struct unMatch {
static bool get()
{
return false;
}
};
template <class T>
struct TypeTraits
{
typedef unMatch type;
};
template<>
struct TypeTraits<int>
{
typede... |
08108d2ff8c7d413c8714fb0a7f640ad6f62581d | 4119b4e3e4e7022646cdd35bce7a168209193ec8 | /MP.betaV1.1/Park.ino | 05560571f63ab589d5f0ea93eb179c36f743200d | [] | no_license | ManojBR105/RFID-Smart-Parking-System | c8aa94814f21fc9cdf31fa7b2094b2a4cc81c549 | f2111606d73f2f98903f1c13826ac99c6bc9f22c | refs/heads/master | 2022-12-16T01:40:15.540884 | 2020-09-20T11:02:55 | 2020-09-20T11:02:55 | 297,055,010 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,646 | ino | Park.ino | void Park()
{
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("PLACE YOUR CARD");
Serial.print("PARK");
digitalWrite(GL, LOW);
int temp[4];
int key;
int pos;
if (slot < 7)// check if any slots are left
{
//read UID
while (! rfid.PICC_IsNewCardPresent())
continue;
while... |
162cb2b2428b6a5c5addbe79a56464aa14da5a92 | 1ce11cca610b95a4421a88cba073175f1b0f8ba2 | /tarea_Empleado_Banco/Tarea2_Banco/Tarea2_fundamentos/main.cpp | cbcc19be3c3b02825f92718d49060324f44e83a5 | [
"Apache-2.0"
] | permissive | bryanjsb/proyectosFundamentosInfoUNA | c8491165d17c51af82920e6be1f7d5c20b8a2d79 | 8b07fc9ae2616858522d44cc5bdb9b6ceb895bd0 | refs/heads/master | 2020-09-27T04:23:43.305664 | 2019-12-07T00:17:10 | 2019-12-07T00:17:10 | 226,428,928 | 0 | 0 | null | null | null | null | IBM852 | C++ | false | false | 1,283 | cpp | main.cpp | #include "claseCuentaCorriente.h"
int main() {
CuentaCorriente cuenta1(1234567,"Bryan",10000);
float x;
int caso;
int y; // numero de cuenta que ingrese cin;
cout << "\t\t\t\tBienvenido a su Banco PYMEX" << endl;
cout << "***|numero de cuenta: " << cuenta1.getNumCuenta() << "|***" << endl;
cout << "... |
6cf54438f59db6b6647224b1b55389977e2a4065 | ee97c35826f3c516210893569a5add67490b8cc8 | /src/utils/bbox_utils.h | e87ae65d209b70d8dc3cabfe23d0c5a4af804469 | [
"Apache-2.0"
] | permissive | Namburger/restor | 162c09ad85a3c10804646723c723db6200114e52 | 3623c4b4abe5b0778d7953c3317fb6237945e67d | refs/heads/master | 2020-11-28T16:37:31.498430 | 2020-08-26T18:57:20 | 2020-08-26T18:57:20 | 229,869,889 | 14 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,691 | h | bbox_utils.h | #ifndef EDGETPU_CPP_BBOX_UTILS_H_
#define EDGETPU_CPP_BBOX_UTILS_H_
#include <vector>
#include "absl/strings/substitute.h"
namespace coral {
// Object Detection model produces axis-aligned boxes in two formats:
// BoxCorner represents the lower left corner (xmin, ymin) and
// the upper right corner (xmax, ymax).
//... |
28fd0386c01f1e2b86f820eb8c1c290c1e27d264 | 6487040572648d6561fedb8c51e2882fb8a7eafe | /src/aaw_ros/include/aaw_weightSensorDataReader.h | 3593848f98e965f650bc4d2ba330d50a5832fad5 | [] | no_license | Frannncis/aaw_ws | dc5c55407db6896fae27c470ad38ddbb37d80d24 | 4124cbb3ebcda89624fd33567bac2443d20b9ca8 | refs/heads/master | 2023-06-05T11:10:21.326649 | 2021-06-21T03:14:33 | 2021-06-21T03:14:33 | 343,355,727 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,021 | h | aaw_weightSensorDataReader.h | #ifndef AAW_WEIGHT_SENSOR_DATA_READER_H_
#define AAW_WEIGHT_SENSOR_DATA_READER_H_
#include <ros/ros.h>
#include <iostream>
#include <cstring>
#include <serial/serial.h>
#include <aaw_ros/WeightSensorData.h>
class AAWWeightSensorReader
{
public:
AAWWeightSensorReader(ros::NodeHandle* nodehandle);
~AAWWeightSen... |
895a2e520f06612a9e4d4344e9824ebcc5051dd4 | cf2e1d02a07b0d84e7ca2e3ca8f0fc670e3020f6 | /BOJ/class3/BOJ_14502.cpp | 4330d700162381490a65d4f5aa14fa33321962ff | [] | no_license | AeonFlor/Algorithm | 89974b067e05ede89b9c74fff96d54a53ee6ae3d | eec453e2a1855020b2c584a2e7877f87f9934b37 | refs/heads/main | 2023-02-22T05:35:06.436044 | 2023-02-17T17:08:53 | 2023-02-17T17:08:53 | 230,030,807 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,526 | cpp | BOJ_14502.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
bool visited[11][11];
int map[11][11];
int dx[4] = {0,1,0,-1};
int dy[4] = {1,0,-1,0};
int N, M, tmp, ans=0;
vector<pair<int, int>> virus, hollow;
void print()
{
cout<<"\n====="<<tmp<<"=====\n";
for(int j=0; j<N+2; ++j)
{
for(int i... |
b97ae8c5baf8fb5c79b9a4c66f44f8f771f3c59a | 2ac80831917fab51f3e12e67429cec83ffaa40f0 | /prog-lab-I/Teste/testeArquivo2.cpp | 73d376f0dc19012a0f339226a9c69e2f38365ce6 | [
"MIT"
] | permissive | hsnavarro/CompIME | bc4e36d20f7263d4a738c7dc778123f416e8e9bc | b4f285826d001b6f818d94636a6294782f1cedf2 | refs/heads/master | 2021-07-18T18:12:49.003700 | 2020-06-06T03:04:51 | 2020-06-06T03:04:51 | 177,843,439 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 199 | cpp | testeArquivo2.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
streambuf *ptr;
ofstream arq("saida.txt");
ptr = arq.rdbuf();
cout.rdbuf(ptr);
cout << "oi" << endl;
cout << "teste" << endl;
}
|
ae7d4052a5028a556beff3721f80826708f0dfcb | 7160197bc1c369dd66c0cbacec8e7a88f0c61705 | /Dynamic_array/solution.cpp | 51f99286867749ffdfe9ec7d755266138b6319f6 | [] | no_license | quantum109678/Coding_practice | f62e60cce59e4eb6529ee46116a2f963b802f899 | a336209794fa5770acf504474f542c17a6212aab | refs/heads/master | 2021-04-09T13:03:38.605974 | 2018-03-18T10:03:37 | 2018-03-18T10:03:37 | 125,500,128 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,040 | cpp | solution.cpp | #include <math.h>
#include <vector>
#include <iostream>
using namespace std;
int main() {
int n,q,last_ans=0;
cin>>n>>q;
int q_arr[q][3];
for(int i=0;i<q;i++){
for(int j=0;j<3;j++){
cin>>q_arr[i][j];
}
}
ve... |
a5b59290a3e688b5e4478073f79bf1f164701c7d | ab37bae12d35fbd59a1240ecd0d51179856f3a94 | /src/wing/naca00XX.h | e765985124ce530ab4fd9da3d93b80dd617a6a9d | [] | no_license | xeno14/UVLM | 443fe75c36ce5a87af6941b91c0e1f48b75a176d | f522f633268813d3496a7d4477bc0fadc5b2eba2 | refs/heads/master | 2021-03-22T03:45:11.175235 | 2016-01-18T15:36:33 | 2016-01-18T15:36:33 | 36,131,012 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 947 | h | naca00XX.h |
/**
* @file naca00XX.h
* @brief Add description here
*/
#pragma once
#include "rect.h"
namespace UVLM {
namespace wing {
/**
* @brief Equation for a symmetrical 4-digit NACA airfoil
* http://en.wikipedia.org/wiki/NACA_airfoil#Equation_for_a_symmetrical_4-digit_NACA_airfoil
* @param c chord length
* @param xx... |
b60dc234e7b915322c6f8f22e453ee9455164af3 | 04934c22a3f80303b6a8e3e5ba90e3486f736c6b | /deigo/serverlogin11_generated.h | b97ecf37b95145c3753aa66d86dfcb6707e371d9 | [
"MIT"
] | permissive | o2ohuaat/deigo | 227028f2c750cae61f46d9bcd51240b8473589e1 | 51adb6d4adb77d8b3f163ea3b3e20b6a5b69fb99 | refs/heads/master | 2021-01-20T20:56:58.235684 | 2016-06-20T07:11:00 | 2016-06-20T07:11:00 | 61,350,014 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,791 | h | serverlogin11_generated.h | // automatically generated by the FlatBuffers compiler, do not modify
#ifndef FLATBUFFERS_GENERATED_SERVERLOGIN11_MQTT_H_
#define FLATBUFFERS_GENERATED_SERVERLOGIN11_MQTT_H_
#include "flatbuffers/flatbuffers.h"
namespace Mqtt {
struct testtable;
struct test2;
struct testtable FLATBUFFERS_FINAL_CLASS : private fla... |
8c967e5a2f4ae88c0556399e4d510e00b4b5931d | dad388179127e7b39cd0b5649efb7ed501308c0b | /src/cpp-ethereum/test/libtesteth/ImportTest.h | fd6597ca8f65f83ac6be8d948802b39454810923 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"GPL-3.0-only",
"LGPL-2.1-or-later",
"GPL-3.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | blockchaingate/fabcoin | bb17639f50d0f1a658abcb8841933a9a24cae51e | 2dcee3566f4902ed081322a5b31cf23d9fa4134d | refs/heads/master | 2022-08-12T13:08:43.778841 | 2022-07-21T19:20:41 | 2022-07-21T19:20:41 | 127,150,382 | 29 | 23 | MIT | 2018-06-19T19:58:09 | 2018-03-28T14:11:37 | C++ | UTF-8 | C++ | false | false | 3,288 | h | ImportTest.h | /*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is distributed in the... |
ce76c3768e9d3b9296dfa740e419c8da23756c86 | 317aa31c2d7fc3d41960b03c42cd588e20f27564 | /baekjoon/1759.cpp | dfb851ea912568b63df2306c17efd7463f14c49d | [] | no_license | junseublim/Algorithm-study | 3dd5cdacf2d43d443caa5093cc26eec10724e775 | d1f0a0449fe300a9b85b7d4d8d177fd44219e63b | refs/heads/master | 2023-05-27T20:21:55.315720 | 2021-06-11T13:23:23 | 2021-06-11T13:23:23 | 328,676,823 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,240 | cpp | 1759.cpp | #include <iostream>
#include <vector>
#include <set>
#include <algorithm>
using namespace std;
vector<int> selected;
vector<char> characters;
set<string> answers;
int L,C;
set<char> vowels = {'a','i','e','o','u'};
void check() {
string s;
int hasVowel = 0;
int hasTwoCons = 0;
for (int i =0; i<selected.... |
ccbe127b1c5b48a08cbc9521b80725cd87d45475 | 74318b77a186fc1b1a0826ce924b37bc216ee5c2 | /NewCocosProject/Classes/FlyText.hpp | 9fec8690c0f801fdd84fabb1d5f3cee3fc0fe428 | [] | no_license | Midnightshao/Cocos2DIMOOC | e875a675e7d9392d4a908531ac15919e1ad302b7 | 1cb23c91c99858c9c1df38a9c80e0a36a1a81891 | refs/heads/master | 2021-01-20T13:03:47.594999 | 2017-05-06T06:49:59 | 2017-05-06T06:49:59 | 90,440,777 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 412 | hpp | FlyText.hpp | //
// FlyText.hpp
// NewCocosProject
//
// Created by 广昊 邵 on 2017/4/30.
//
//
#ifndef FlyText_hpp
#define FlyText_hpp
USING_NS_CC;
#include <iostream>
#include "cocos2d.h"
class FlyText : public Node{
public:
static FlyText * create(const char *str);
bool init(const char *str);
void startAnimation();
... |
d53e9c2170b7da8f15e785deafbd4a0e17a6ddba | 7ed28dffc9e1287cf504fdef5967a85fe9f564e7 | /AtCoder/ABC153/f.cpp | c33a143a559930136f83fdfa68bb54c6a4b2a791 | [
"MIT"
] | permissive | Takumi1122/data-structure-algorithm | 0d9cbb921315c94d559710181cdf8e3a1b8e62e5 | 6b9f26e4dbba981f034518a972ecfc698b86d837 | refs/heads/master | 2021-06-29T20:30:37.464338 | 2021-04-17T02:01:44 | 2021-04-17T02:01:44 | 227,387,243 | 0 | 0 | null | 2020-02-23T12:27:52 | 2019-12-11T14:37:49 | C++ | UTF-8 | C++ | false | false | 848 | cpp | f.cpp | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
/*
参考リンク
ABC 153 F - Silver Fox vs Monster
https://atcoder.jp/contests/abc153/tasks/abc153_f
*/
int main() {
int n;
ll d, a;
cin >> n >> d >> a;
vector<P>... |
196150931f734f7bc76560317caa8edb94733cca | 7ba02eec3decc76f001ae6d2b6d285026d861f0c | /miscellaneous/combinations.cpp | 59b5fa8cec0798c89cc0dc71d0743bf553006d34 | [] | no_license | CubixPro/Transfer | a9cd298774380d3811f570c151e8d4b4b8324824 | 86a971b42c1fe84a9480de65703f27871aec2ce0 | refs/heads/master | 2020-06-23T02:32:17.236328 | 2020-06-07T06:23:28 | 2020-06-07T06:23:28 | 198,478,443 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 659 | cpp | combinations.cpp | #include<bits/stdc++.h>
#include<string.h>
using namespace std;
int comb_length;
int str_length;
fstream f;
void combinations(string str, string comb, int i, int x){
if(i == comb_length){
f << comb << '\n';
return ;
}
else if(x == str_length){
return;
}
... |
6d32be99a268cfc48e1c0a24f53ce15be1530831 | 187b10c2db9a3b8d68178eacf74824ae2ab4896e | /FK2DEngine/source/Button.cpp | 4afde108ca8d0d409d911649e123d7b2b3956d81 | [] | no_license | PubFork/FKEngine | 0eb61c02038bc64e9c157fb8c792e4e29796dc1f | 1c81a2b3be19d818f6f1d950ffcef205349652f4 | refs/heads/master | 2020-04-29T03:04:22.293325 | 2015-11-28T07:53:32 | 2015-11-28T07:53:32 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,158 | cpp | Button.cpp | /********************************************************************
*
* 本文件是FKMMORPG的一部分。本文件版权归属FreeKnightDuzhi(王宏张)所有。
* E-mail: duzhi5368@163.com
* QQ: 281862942
*
* -----------------------------------------------------------------
*
* 文件名: Button
* 作者: FreeKnightDuzhi[ 王宏张 ]
* 文件说明:
*
* 修改人:
* ... |
7600588f1c4cc0b2805c4b49f6e76dbdd8b83408 | 1e6454e56bdb61dcbc7418c038b8ec17b599611a | /core/sql/optimizer/Cost.h | 3fdcb18f4df48569b6803a81c8f97e37dd3facfa | [
"Apache-2.0"
] | permissive | RohitJain13/incubator-trafodion | 0d99f3cec12a1de20f431c70858d98a5b3b17057 | 40c27869d5cfcce4e0ee37f19eaa264cb9d9cbe3 | refs/heads/master | 2021-01-23T20:13:53.491650 | 2015-09-01T16:25:38 | 2015-09-01T16:25:38 | null | 0 | 0 | null | null | null | null | MacCentralEurope | C++ | false | false | 69,983 | h | Cost.h | /**********************************************************************
// @@@ START COPYRIGHT @@@
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. ... |
89c57d85da510df15431a409bfec22f28e0d7547 | 2a8417c1c7e21161f2c072f798631ee9af60a078 | /src/autopas/containers/verletListsCellBased/verletListsCells/traversals/SlicedTraversalVerlet.h | 18587e545fa668f22941814aa588f08cfda329ec | [
"BSD-2-Clause"
] | permissive | ssauermann/AutoPas | a794fa2f5e0c30dfe75d427137328a7837b8c440 | 309f9a43840101933b8d06324ea910c780954f61 | refs/heads/master | 2020-12-18T13:01:57.469369 | 2020-01-17T10:34:43 | 2020-01-17T10:34:43 | 235,392,920 | 0 | 0 | BSD-2-Clause | 2020-01-21T16:51:28 | 2020-01-21T16:51:27 | null | UTF-8 | C++ | false | false | 3,134 | h | SlicedTraversalVerlet.h | /**
* @file SlicedTraversalVerlet.h
*
* @date 09 Jan 2019
* @author seckler
*/
#pragma once
#include <algorithm>
#include "autopas/containers/cellPairTraversals/SlicedBasedTraversal.h"
#include "autopas/containers/verletListsCellBased/verletListsCells/traversals/VerletListsCellsTraversal.h"
#include "autopas/ut... |
ae11e924637b1afa3b5e2ccef63cf05346c2bb70 | 9b1082956b2e60fd2e5b7b6e514d5c504b51bc7c | /Siv3D/Source/Siv3D/Tobii/CTobii_Windows.hpp | 9c7c7212368f7c33d3ba71e5d2f795ea8dd64798 | [
"MIT"
] | permissive | winjii/OpenSiv3D | c46dd17391408dde4b76189def4c9c92405ac4ea | ecd65536a1142a8f04c45c2d6a33fe93c386af78 | refs/heads/master | 2021-05-07T15:27:32.299985 | 2017-12-03T05:38:10 | 2017-12-28T08:23:52 | 110,008,252 | 0 | 0 | null | 2017-11-08T17:30:37 | 2017-11-08T17:30:36 | null | UTF-8 | C++ | false | false | 2,726 | hpp | CTobii_Windows.hpp | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2017 Ryo Suzuki
// Copyright (c) 2016-2017 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <Siv3D/Platform.hpp>
#... |
b50a15b9112d0221a95956255efa8f99280e5f22 | f839644e91620aedbd0b2ea9801bfb657e11f3ea | /Inferences/ExtensionalityResolution.cpp | fc143934a7e36985176bac2fb963692155d36861 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | vprover/vampire | 1c92e01d278a291e4e7785cb3a646dea4b3507af | a488b6e3a46f7b8b6a32ec81068ec6d0f08292f4 | refs/heads/master | 2023-08-09T04:07:06.422386 | 2023-08-03T10:14:52 | 2023-08-03T10:15:14 | 18,067,910 | 247 | 54 | NOASSERTION | 2023-08-29T16:13:13 | 2014-03-24T15:46:00 | C++ | UTF-8 | C++ | false | false | 10,274 | cpp | ExtensionalityResolution.cpp | /*
* This file is part of the source code of the software program
* Vampire. It is protected by applicable
* copyright laws.
*
* This source code is distributed under the licence found here
* https://vprover.github.io/license.html
* and in the source directory
*/
/**
* @file ExtensionalityResolution.cpp
* Imp... |
db78b09b337cd6a29e6358ecb2763072bf5a4cc3 | 64089ee58be0bee590c0e9c02dbb3d4c6ca78ec2 | /src/ecs/entity.h | a060aa47ece207de9dd7d9f7ad7f264f01823b09 | [] | no_license | Niakr1s/ecs | a452547b36ec4566755cfaa24007cf3c6101699d | 720b29ea943b07640041ebda6241ca096c6579fc | refs/heads/master | 2020-12-19T22:49:14.984319 | 2020-01-24T19:00:35 | 2020-01-24T19:00:35 | 235,873,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,014 | h | entity.h | #ifndef ENTITY_H
#define ENTITY_H
#include <algorithm>
#include <set>
#include "component.h"
namespace ecs {
class Entity;
using EntityPtr = std::shared_ptr<Entity>;
using EntityPtrs = std::set<EntityPtr>;
class Entity {
public:
Entity();
virtual ~Entity();
enum class State { ACTIVE, DISABLED, DEAD };
... |
9e02c18ca277e960f1fe46229069567a50bee1f4 | 55c48947cd58be4492122de693118d2ef2fa44b7 | /allocateBooks.cpp | 493b83e2f2528229f80d6ad845cf4d699a1df695 | [] | no_license | akshit-rohra-debug/ProblemSolving-DSA | 3c38a9ec520d7aa458de1946dbf61dfc3a97ecf4 | 88216a1c2ab17c450fdcac85d0009d5d28a47745 | refs/heads/main | 2023-07-17T02:41:41.656003 | 2021-09-02T16:43:02 | 2021-09-02T16:43:02 | 365,571,996 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,339 | cpp | allocateBooks.cpp | /*
* Given an array of integers A of size N and an integer B.
* College library has N books,the ith book has A[i] number of pages.
* You have to allocate books to B number of students so that maximum
* number of pages alloted to a student is minimum.
* A book will be allocated to exactly one student.
* Each student ha... |
e1e9e0bc5bcb156d3cf6aa0238534a5ecf68cbec | 399916c630707c4669f0d74a84458bf81567312b | /Code/3D_Engine/3D_Engine/ConsoleEngine.h | 03a32a1fc78e7319893f4f09eb8333674bdee1f4 | [] | no_license | ShaneBolding/C-Cpp | 58085bd9d5c13c15e401972f5a150b18798d35c3 | 9cd7825da8b562722040ac8ca286998354fe8ffb | refs/heads/master | 2023-06-05T00:23:42.806311 | 2021-06-29T18:35:26 | 2021-06-29T18:35:26 | 260,534,377 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,444 | h | ConsoleEngine.h | #pragma once
#pragma comment(lib, "winmm.lib")
enum COLOR //add color
{
FG_BLACK = 0x0000,
FG_DARK_BLUE = 0x0001,
FG_DARK_GREEN = 0x0002,
FG_DARK_CYAN = 0x0003,
FG_DARK_RED = 0x0004,
FG_DARK_MAGENTA = 0x0005,
FG_DARK_YELLOW = 0x0006,
FG_GREY = 0x0007,
FG_DARK_GREY = 0x0008,
FG_BLUE = 0x0009,
... |
cae54020559e8c020f8f38de91c1ac30a9e55b60 | 0237093adbfa42b60091288088e3e412ddf2df35 | /Views/MainMenuView.h | 20b20ff8e8ebc9d2d11233f9ffd30bc0d0dbaf0b | [] | no_license | sjjh/guidev2 | 2a6ca206a032abe23696cdec4b15c9e89e8b5c15 | 803e4742947d982aad4ceffa4054ec1465cd585e | refs/heads/master | 2021-01-18T09:56:38.749046 | 2013-06-02T20:00:01 | 2013-06-02T20:00:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 469 | h | MainMenuView.h | //
// MainMenuView.h
// guidev2
//
// Created by Jens Meder on 21.05.13.
//
//
#ifndef __guidev2__MainMenuView__
#define __guidev2__MainMenuView__
#include <iostream>
#include <QWidget>
#include <QTabWidget>
class MainMenuView: public QWidget
{
public:
MainMenuView(QWidget* parent = 0);
v... |
b458b30ec1416127fdd64ed0cc44bdbfc71e819f | 144021a0bbb1819061b62eb041dfdba5538e2de4 | /src/ADBSCEditDLL/src/Utils/OLE/OLEDataObject.h | 62bd394133fee94dc0c24ba33e70c7f39e826f42 | [
"MIT"
] | permissive | WilliamQf-AI/ADB-Android-Viewer | e4821ff3af579bf96df978c18d1970d99a114d7b | c619fe626ab390b656893974700a0b6379159c03 | refs/heads/master | 2023-04-03T15:57:34.868437 | 2019-12-15T07:50:14 | 2019-12-15T07:50:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,683 | h | OLEDataObject.h | //
// Origin:
// DATAOBJECT.CPP
// Implementation of the IDataObject COM interface
// By J Brown 2004
// www.catch22.net
//
#pragma once
namespace GameDev
{
class OLEDataObject final : public IDataObject
{
public:
//
// IUnknown members
//
HRESULT _... |
4a7eaa7fd2a197e17e4af3c6fd37937ebfbd9163 | 1d9b5b89e4074405ee4e17b929227ba1f9c9bee3 | /Project 3 (Fantasy Combat Game)/barbarian.cpp | 21e6b0c82e81bd257684c9b51b08e71f7fb653ef | [] | no_license | solorzao/CS162-Introduction-to-Programming-2 | 44ae5d2ed57868eba63bd0b28cee4e31583e5669 | 028e9e3befdf8412a0770b41b58890905cd6c5ac | refs/heads/master | 2021-06-29T16:08:30.012439 | 2021-02-13T23:08:20 | 2021-02-13T23:08:20 | 214,265,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,844 | cpp | barbarian.cpp | /*******************************************************************
* Name: Oliver Solorzano
* Course: CS 162 W 2019
* Assignment: Project 3
* Date: 16 Feb 2019
* Description: This is the implementation file for the barbarian
* class. It defines the functions of the barbarian class.
***************************... |
8c851e1e5d772343ce17f9b6f16836f7f081b365 | bc683439667bf9daa87fe45faf79dd136a0d3247 | /ch0104/ch0104_10.cpp | a6dc6404df3ed219eb9d63cb59d8a9726db57fb5 | [
"MIT"
] | permissive | sun1218/openjudge | d5d0f5284f31f5c4799517fd88a3c1137e50df74 | 07e44235fc6ac68bf8e8125577dcd008b08d59ec | refs/heads/master | 2020-03-31T03:05:33.254992 | 2018-12-31T05:26:50 | 2018-12-31T05:26:50 | 151,852,089 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 250 | cpp | ch0104_10.cpp | #include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
int main(void)
{
int n1,n2;
scanf("%d%d",&n1,&n2);
if (n1<60&&n2<60){
printf("0");
}
else if (n1<60||n2<60){
printf("1");
}
else{
printf("0");
}
return 0;
}
|
dda7bb4121343a2e76d237e25eb3753a15c1fda7 | 983b6e940d0b9e02da13d242dcd9e42339f18776 | /lib/matrix.cpp | 5afadda2e1d9672dad39a90122535ef11ae78d1a | [] | no_license | keshavnandan/OpenGL | 304608ccf5eb79ca78bcace0208e19c2383a259f | 435b22d9aa7d3095cb7d24c8254c9d730da2b279 | refs/heads/master | 2021-01-09T05:23:30.947896 | 2012-04-02T15:49:34 | 2012-04-02T15:49:34 | 3,876,869 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,211 | cpp | matrix.cpp | #include "matrix.h"
Matrix::Matrix(int r,int c)
{
row=r;
column=c;
allocate();
}
void Matrix::allocate()
{
int m=row,n=column;
p=new float*[m];
for(int i=0;i<m;i++)
*(p+i)=new float[n];
for(int k=0;k<m;k++)
for(int j=0;j<n;j++)
put_value(k,j,0.0);
}
float Matrix::get_value... |
096b3c40b7702146951337d14ea86103870e60b4 | 338f309303b588fae8cff809137dff7feaf6ebd2 | /l39/rectangle.cpp | da68f47cab4243cba87aed29d2bd534ef66b5f00 | [] | no_license | yihchun/ece220flip | 8e4f8b018da5fbe63218b5a83453b412caeee64d | 8cf041cbe9ad9af0fc25734413577049d9336c17 | refs/heads/master | 2023-02-25T14:09:08.355699 | 2021-01-27T23:45:07 | 2021-01-27T23:45:07 | 272,836,425 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 383 | cpp | rectangle.cpp | #include <iostream>
using namespace std;
class Rectangle {
int width, height;
public:
Rectangle() { width = height = 0; }
Rectangle(int, int);
int area() const { return width * height; }
};
Rectangle::Rectangle(int w, int h) {
width = w; height = h;
}
int main() {
Rectangle a(3,4);
Rectangle b;
cout ... |
099ce25c61532aad71bed3c966b9275eac725cd4 | f2bfe92bcb233798fc9c49ed22748d8c7571706a | /SkyEngine/old/VertexInputLayout.h | c24a4d11ef40001c81676894ce2b0178014c1260 | [] | no_license | am17/SkyEngine | d5ed9064daa00151a3dec182cd328b2f369555eb | 5882ba9a267fbfb134e1eff44cb026a3ebd30302 | refs/heads/master | 2021-01-23T02:05:44.370183 | 2017-06-19T20:27:47 | 2017-06-19T20:27:47 | 92,908,018 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 488 | h | VertexInputLayout.h | #pragma once
#include <d3d11.h>
namespace sky
{
enum ELEMENT_FORMAT
{
FLOAT2 = 0,
FLOAT3 = 1,
FLOAT4 = 2
};
struct VertexLayoutDesc
{
char* SemanticName;
unsigned int SemanticIndex;
ELEMENT_FORMAT Format;
unsigned int InputSlot;
bool ForInstance;
};
class VertexInputLayout
{
public:
Vertex... |
3c18730e304c8df662715e858a8c25e4cd19bcef | f8a6f36347d36e27cbf8f52f55475ad0e14ad7ae | /NuoVulkan/NuoVulkanShaderLibrary.h | 58aa8b0008ae5db3ca9daeb6520a802382af41de | [] | no_license | middlefeng/NuoVK | b35809d1dd19ec21b8ace4163fc79f9470cc9e78 | 6f596659de57d2efe8c45dbb114db7222a828739 | refs/heads/master | 2020-03-18T07:05:50.227222 | 2018-06-01T15:25:38 | 2018-06-01T15:25:38 | 134,432,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 929 | h | NuoVulkanShaderLibrary.h | //
// NuoVulkanShaderLibrary.hpp
// Cube-iOS
//
// Created by middleware on 5/22/18.
//
#ifndef NuoVulkanShaderLibrary_hpp
#define NuoVulkanShaderLibrary_hpp
#include <memory>
#include <map>
#include <string>
class NuoVulkanDevice;
class NuoVulkanShaderModule;
typedef std::shared_ptr<NuoVulkanDevice> PNuoVulkan... |
043f949735b902ec8d2f73a6fa202dc82a937792 | 1b79fdd2b6183ede4f4ec3c7832867cf3f13a6b9 | /src/tests/BBSTatement_test.h | dbf08813a2fa05f5c50c102f7162a237624f5efb | [] | no_license | TREK-TMS-BB/TMS-BB | f59bb677d8fc46d5c593b2ea427911cb354407e0 | 56d1f9a5972ed4e2aaf8b011a08a2d2538d9b3c2 | refs/heads/master | 2021-01-02T08:38:49.970136 | 2014-01-20T12:57:38 | 2014-01-20T12:57:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,521 | h | BBSTatement_test.h | /*
* BBSTatement_test.h
*
* Created on: 20-jan.-2014
* Author: erkki
*/
#ifndef BBSTATEMENT_TEST_H_
#define BBSTATEMENT_TEST_H_
#include <iostream>
#include "../BareBonesStatement.h"
#include <gtest/gtest.h>
namespace tests {
class BBStatementTest: public testing::Test {
friend class BB::BBclear;
friend c... |
d12ba8c3c0e35ec500c625719ea401967bea01ab | 9f471098f97a7cdb7860c8ee535cf5fd493073f0 | /apps/fastr/AlignedRead.cpp | 83afe384d29e37a8b74db2e333c2dc03659e88b5 | [
"MIT"
] | permissive | BIW77/CTC | aad6f398cbf4807c88380a0c8353816b4ad5fbbd | 299394bb6550b1ded19db3c9a6e2cd9181526cc3 | refs/heads/master | 2021-05-26T20:45:12.731003 | 2012-05-23T19:55:30 | 2012-05-23T19:55:30 | 104,521,949 | 0 | 1 | null | 2017-09-22T21:55:03 | 2017-09-22T21:55:02 | null | UTF-8 | C++ | false | false | 9,541 | cpp | AlignedRead.cpp | /**********************************************************************************
* Copyright (c) 2012 by Virginia Polytechnic Institute and State University.
*
* The local realignment portion of the code is derived from the Indel Realigner
* code of the GATK project, and the I/O of bam files is extended from the
* b... |
9d49a9680cc7b59c38cfb738b2e87caa8d6d786b | d7784cb9ce174ec5091d327b21ebcf4c6c507388 | /yukicoder/21.cpp | 225bef6b6f211ff243505103c46b8fbacbd4a920 | [] | no_license | mmxsrup/procon | 3a349b10c852ad593ecedcdd1c9fdb93cb8d8f3b | af059cc3f6786db71f0077d1ec5d902171b9860a | refs/heads/master | 2021-01-17T15:05:05.580007 | 2017-12-06T07:52:53 | 2017-12-06T07:52:53 | 84,103,106 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 290 | cpp | 21.cpp | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
int main(void){
int n, k; cin >> n >> k;
vector<int> num(n);
rep(i, n) cin >> num[i];
sort(num.begin(), num.end());
cout << num[n - 1] - num[0]<< endl;
return 0;
} |
cfdbbad8b4b1b0af73c41eca442ac64e6bd9ce96 | ec2b868e3b0cc4b5be2ddf6e7f7df65b0f1625ec | /common/singleton.h | 94d650bc87f2a9dbf1af0f30f5ad353cb41411b4 | [] | no_license | Vccccc/cvgame | 9e246fef4cf84cbeea789b68c73246fb6cdb2618 | afaa32cf08e1c255e0e512fc1c6d2e081123e46c | refs/heads/master | 2023-02-07T22:27:17.980510 | 2021-01-03T08:17:36 | 2021-01-03T08:17:36 | 290,807,561 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 549 | h | singleton.h | #pragma once
#include "noncopyable.h"
template<typename T>
class Singleton : public noncopyable
{
public:
static T* Instance()
{
return instance_;
}
T* Instance(T* instance = nullptr)
{
if(instance)
{
if(instance_)
{
delete instance_... |
693ca21c6e6f0602f8cce16763ec23628317f959 | 1c8d1dad58985625b6b212fa81619141f73c870d | /Source/Camera.cpp | dc69c9dbf6c820690ea0bbb0fc146268e25b6147 | [] | no_license | Edaenge/NDYGFX | 6fdbc1ac59c1269189ad6edced6a440f351b9ad7 | 4c35a10ae0b6d60aeff7a15c0c9361522e9c3214 | refs/heads/master | 2021-01-24T05:35:36.358373 | 2013-01-22T17:51:08 | 2013-01-22T17:51:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,444 | cpp | Camera.cpp | #include "Camera.h"
Camera::Camera(HWND g_hWnd, GraphicsEngineParams params)
{
this->forceBoundries = false;
this->g_hWnd = g_hWnd;
this->params = params;
this->pos = D3DXVECTOR3(0, 0, 0);
this->terrain = NULL;
this->followTarget = NULL;
this->moveOnlyInXZ = false;
this->angleX = 0;
this->angleY = 0;
this-... |
d29344d3c254c8039610bdd5b45e396bde2b947e | ab189df4ab3389184422ffdc8193dc6f4477a646 | /taccCore/ADB.cpp | 49074f417bce768bbf6941ab5bdfa1c49e68d131 | [] | no_license | gottafixthat/tacc | cfe10b2db0436afbec528c44cd1b3eeb44117675 | da5bb6393ae02a6b4f99bdb1b05de92b60e722d6 | refs/heads/master | 2021-01-25T04:02:28.248364 | 2015-09-04T22:49:25 | 2015-09-04T22:49:25 | 41,939,578 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,330 | cpp | ADB.cpp | /* Total Accountability Customer Care (TACC)
*
* Written by R. Marc Lewis
* (C)opyright 1997-2009, R. Marc Lewis and Avvatel Corporation
* All Rights Reserved
*
* Unpublished work. No portion of this file may be reproduced in whole
* or in part by any means, electronic or otherwise, without the express
... |
55d1dd8ec0a8dd7e1561fc1667cde53984d1bd33 | ba200ae9f30b89d1e32aee6a6e5ef2c991cee157 | /trunk/GosuImpl/Graphics/Texture.cpp | 6cce16cae948b009b4d27870dca55c2c0fbb9746 | [
"MIT"
] | permissive | clebertavares/gosu | 1d5fd08d22825d18f2840dfe1c53c96f700b665f | e534e0454648a4ef16c7934d3b59b80ac9ec7a44 | refs/heads/master | 2020-04-08T15:36:38.697104 | 2010-02-20T16:57:25 | 2010-02-20T16:57:25 | 537,484 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,018 | cpp | Texture.cpp | #include <Gosu/Graphics.hpp>
#include <GosuImpl/Graphics/Texture.hpp>
#include <GosuImpl/Graphics/TexChunk.hpp>
#include <Gosu/Bitmap.hpp>
#include <Gosu/Platform.hpp>
#include <stdexcept>
#ifndef GL_BGRA
#define GL_BGRA 0x80E1
#endif
// TODO: Not threadsafe.
unsigned Gosu::Texture::maxTextureSize()
{
#if defined(GOS... |
2dad268b0b759d63adf1a7f9135eb5d079c5b98a | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/processor0/2.9/p | bb5fe425c8e82445b691de0b9ce292bbe2bc2650 | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,577 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
bb4005cfacbbaddcf2e0db7824993ba745510758 | a832b2a80f1bf1d7d239bf21035f7612e3ed72d6 | /AhmedNabila-3-score.cpp | b3c137c805253cc5c1778f4b034e7a37e51069fc | [] | no_license | nabila12/CSCI-211-Fall-2017-projects | 1d7a8430215a957a5c3a48cabffd7e114cc6405c | 9492fe688c901ebbad253326c92880bc1153a742 | refs/heads/master | 2021-05-05T02:18:47.227196 | 2018-01-31T17:57:45 | 2018-01-31T17:57:45 | 119,722,997 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,917 | cpp | AhmedNabila-3-score.cpp | #include <iostream>
#include <algorithm>
using namespace std;
int main() {
while (true) {
string outcome;
cout << "Enter the race outcome in uppercase or enter done to quit"<< endl; // If the user entered "done", exit the program.
cin >> outcome;
if (outcome == "done") {
return 0;}
int numTea... |
12aa9707a6796f02413706eae0fa01acff964355 | 3732671813f753fee15c6f57d0bbdbd4990ccb55 | /src/ThreadedQueue.cpp | d872bef1da74461148c2cf2abd10e5cc0b053258 | [] | no_license | unstillable/guide-to-multitasking | a23e874c5d2c6bc9648430913fea560d1a1b814a | fbff352496f84c61ca2f2044f4c953a7760a0d36 | refs/heads/master | 2021-04-15T16:39:53.044355 | 2020-05-12T02:06:12 | 2020-05-12T02:06:12 | 126,389,490 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,677 | cpp | ThreadedQueue.cpp | #include "ThreadedQueue.h"
//template <class T>
//ThreadedQueue<T>::ThreadedQueue(Node<T>* placeholder): ConcurrentQueue<T>(placeholder)
//{
//}
template <class T, class fout>
ThreadedQueue<T, fout>::ThreadedQueue(T placeholder):ConcurrentQueue<T>(placeholder)
{
}
//
////duplicate code is sloppy, bu... |
326fc412a82bb61f682bbb0fc113b74e9f653a28 | 84433a1d2962bcef0cd6877e315f30bd3485bb00 | /xmsgeom/triangulate/TrBreaklineAdder.h | fe25fe0df9e1d8a78c573698271e78c1b33bbd3d | [
"BSD-2-Clause-Views"
] | permissive | Aquaveo/xmsgeom | 8e0b9442cf26793736742e2d580dce6d6e9c6b89 | bcfbc4a2e0538361290eadc40acadaad378f0b82 | refs/heads/master | 2020-03-27T04:28:03.488828 | 2018-10-03T04:50:01 | 2018-10-03T04:50:01 | 145,942,146 | 0 | 0 | NOASSERTION | 2019-06-27T15:31:55 | 2018-08-24T04:25:14 | C++ | UTF-8 | C++ | false | false | 1,547 | h | TrBreaklineAdder.h | #pragma once
//------------------------------------------------------------------------------
/// \file
/// \ingroup triangulate
/// \copyright (C) Copyright Aquaveo 2018. Distributed under the xmsng
/// Software License, Version 1.0. (See accompanying file
/// LICENSE_1_0.txt or copy at http://www.aquaveo.com/xmsng/... |
948abd4a2e6089ec7b20ee5a5bbe8f7c17f74d63 | 77fccb94f37a6256dff79ab4995c9677d9bb5fa4 | /rotation.cpp | 98e9f5b80324183c559046cf634f56ca6d87211e | [] | no_license | dingzhaohan/PythonHW | 53d6998de578c8b2fe4a1f28ee24f769c4e174b9 | 406740a97c56f2db964276ccee9a3a58433a9e66 | refs/heads/master | 2020-04-26T04:47:49.395365 | 2019-05-13T15:58:11 | 2019-05-13T15:58:11 | 173,307,828 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,223 | cpp | rotation.cpp | #include <iostream>
#include <cstring>
#include <string>
using namespace std;
int map[9][9];
int path[100000];
char rotation[8] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'};
void input() {
memset(map, 0, sizeof(map));
memset(path, -1, sizeof(path));
cin >> map[1][3];
if(map[1][3] == 0) return;
cin >... |
86103437cd2c76fa6c3e0aac4a5658da11851124 | b89471f10705a92ee5dce5862f717d1a46fbc887 | /sources/udp_socket.cpp | b2e9d73afd428ab7521ac692157c51463d3865f9 | [] | no_license | s14028/sockets | 3124f1a7776186d6582c70a7f00a885e9183d1d9 | a78a426076306e61cabc4c0c45be4e2c4e95b52f | refs/heads/master | 2021-03-24T12:08:49.054296 | 2018-06-16T21:08:19 | 2018-06-16T21:08:19 | 105,684,779 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,849 | cpp | udp_socket.cpp | #include "udp_socket.h"
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
namespace sck
{
udp_socket::udp_socket()
{
}
void udp_socket::set_socket()
{
socket_int = ::socket(AF_INET, SOCK_DGRAM, 0);
}
bool udp_socket::bind(const std::string IP, const std::uint16_t port)
{
s... |
30278864df9291018e94b47cf54c018d8068343c | 76005c09d8768c2c67e4bfab75ce86860ecb12a7 | /lsass_minidump/lsass_minidump/lsass_minidump.cpp | 76210b987fe91f5bc82da7224fb34f61e7628ab9 | [] | no_license | mtoreihi/security_tools | 7788da4c1b7a4eb01ae70f8685823e63d337b6d9 | 61552ad70b2a76496cb9e08afc85b31d58eaa463 | refs/heads/master | 2023-08-19T10:04:54.048404 | 2023-07-28T18:24:19 | 2023-07-28T18:24:19 | 187,004,776 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,485 | cpp | lsass_minidump.cpp | /** Mehran Toreihi
mtoreihi@gmail.com
1398-02-26
2019-05-16
*/
#include <windows.h>
#include <DbgHelp.h>
#include <iostream>
#include <TlHelp32.h>
#include <strsafe.h>
using namespace std;
bool SetPrivilege(LPCWSTR lpszPrivilege, BOOL bEnablePrivilege) {
TOKEN_PRIVILEGES priv = { 0,0,0,0 };
HANDLE hToken = NULL... |
0460ad34da6546cfdaddbba59b630c0ecfb64cf4 | a602b22acea1c34ae0fcf68a1ffb9e1339852e93 | /src/Math/Constant.cpp | 8a55b4c0fa9cb826fc68e53103a66a9e099627eb | [] | no_license | alexlitty/tree-simulator | 2505878dea8a0cb84b7556285a83c3022c141e6f | ca2f4e7ac65b81bfae59e5abdcf7460555311dd4 | refs/heads/master | 2021-01-19T02:20:53.985363 | 2018-12-24T11:35:38 | 2018-12-24T11:35:38 | 34,832,492 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 559 | cpp | Constant.cpp | #include <cmath>
#include <tree/Math/Constant.hpp>
const float tree::PI = std::acos(-1);
const float tree::QUARTER_PI = tree::PI / 4;
const float tree::THREE_QUARTERS_PI = 3 * tree::QUARTER_PI;
const float tree::FIVE_QUARTERS_PI = 5 * tree::QUARTER_PI;
const float tree::SEVEN_QUARTERS_PI = 7 * tree::QUARTER_PI;
cons... |
7152f624feb4684113a68d1d1e76b69e93cd72cd | 673808e15420513da384b7e4d9536104eb7c7528 | /kattis/armystrengthhard - Army Strength (Hard).cpp | 43ff3bf8270fdeb4adf707212ae25a0137cc14c2 | [] | no_license | manshantsingh/street-coding | 8657a4c081b09a19c3e2eb21b67fc70f892dad54 | 7c28343150a6a775682aa80735c1f1197c6eea54 | refs/heads/master | 2021-08-23T06:49:46.137744 | 2017-12-04T00:42:31 | 2017-12-04T00:42:31 | 111,234,907 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 712 | cpp | armystrengthhard - Army Strength (Hard).cpp | #include <iostream>
#include <algorithm>
using namespace std;
int main(){
int t;cin>>t;
while(t--){
int lg, lb;cin>>lg>>lb;
int bg=0,tg=0,bb=0,tb=0;
for(int i=0;i<lg;i++){
int x;cin>>x;
if(x>bg){
bg=x;
tg=1;
}
... |
2889efefa77b656ec88648a216125f41d10abf50 | bab0315583f277da15109bdb335760224c521aa1 | /이전 디렉토리별 정리/Extra problems/11399번(ATM).cpp | 06b7d769ba04c75012a06c75aef771e2b375fa11 | [] | no_license | juyoungIt/PS | 13cc3870fcd88f2fea51200c037cb8d63c0b396a | 0666a7a90642e3768e3ab9819b64197a9aec857b | refs/heads/master | 2022-07-05T04:27:45.593694 | 2020-05-17T13:52:21 | 2020-05-17T13:52:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 337 | cpp | 11399번(ATM).cpp | #include <cstdio>
#include <algorithm>
using namespace std;
int main(void)
{
int n; scanf("%d", &n);
int *a = new int[n];
for (int i = 0; i < n; i++) scanf("%d", &a[i]);
sort(a, a + n);
for (int i = 1; i < n; i++) a[i] += a[i - 1];
int sum = 0;
for (int i = 0; i < n; i++) sum += a[i];
printf("%d", sum);
delet... |
73e609e68986ab2ba5285b086ec321dc602e9dcb | d07bc5b22efebbc0914253433292e9897e3d0ab7 | /structures/heap.hpp | 4b57a75d2053c8ac5ad74b34293fd4c705040881 | [
"MIT"
] | permissive | Instand/Algorithms | fcca879ddff437547738e0d9af51669728df710f | 079ac867932e65e0936eab08b3176dc2d68bf684 | refs/heads/master | 2020-07-05T06:49:22.810710 | 2020-03-31T13:36:29 | 2020-03-31T13:36:29 | 202,559,766 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,048 | hpp | heap.hpp | #ifndef HEAP_HPP
#define HEAP_HPP
#include <vector>
#include <utility>
#include <utils.hpp>
namespace cs {
namespace helper {
template<typename Iter>
constexpr Iter left(Iter begin, typename std::iterator_traits<Iter>::difference_type index) {
auto i = (index * 2) + 1;
ret... |
9a1bdcd24ae01031152f283127db0b99362cdf18 | f8b1dfccaef5a8f75567b527fc7c2f0a34e3877b | /codeforce/c559/pb.cpp | ba406e020d8a7cb7a6fdb9c6392e78080d0b96a4 | [] | no_license | bamboohiko/problemSolve | e7e2a2c6e46a4d10ccfa54cffff3c9895b3ddb1b | cd3e9e5986325f5def4efe01975a950f6eaa6015 | refs/heads/master | 2021-01-17T06:39:42.502176 | 2017-09-13T14:30:08 | 2017-09-13T14:30:08 | 47,928,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 783 | cpp | pb.cpp | #include<iostream>
#include<cstdio>
#include<map>
#include<set>
#include<vector>
#include<stack>
#include<queue>
#include<string>
#include<cstring>
#include<sstream>
#include<algorithm>
#include<cmath>
using namespace std;
const int maxn = 2e5 + 100;
char a[maxn],b[maxn];
bool dfs(int l1,int l2,int len) ... |
9484d0af3a5be51a35690430f21767909922db68 | a2b28ba3349304ccb01b10edd9378a446d13abe6 | /AIEditor/treeitem.cpp | 370ba71e84c65561af2f47d5a18012c2d4c6e8ed | [] | no_license | TheAnswer/Tools | 9bec3570be8023c262eb7b6b4271bccad2008c48 | 880a68f618290445dd770e1b52176083244768f3 | refs/heads/master | 2023-08-17T07:44:54.870503 | 2020-05-10T20:32:32 | 2020-05-23T17:55:51 | 9,735,112 | 5 | 18 | null | null | null | null | UTF-8 | C++ | false | false | 447 | cpp | treeitem.cpp | #include "treeitem.h"
#include "composite.h"
TreeItem::TreeItem(Node *parent) : parent(parent)
{
data["Name"] = "none";
data["iName"] = "";
data["fName"] = "";
data["ID"] = "none";
data["parentID"] = "";
}
TreeItem::TreeItem(const QMap<QString, QVariant> &data, Node *parent)
: data(data), parent(parent... |
1c491beae0c56784280e0d3ff2b5ad2286b4b715 | 2a3870d98c9fca4e9eb405da976cc58b97da766c | /Earth's Domain/src/EarthDomainButtonEventHandler.h | 694cd8356fa7834beeef6a7cedc80de2562e02b9 | [] | no_license | jessicamofv/EarthsDomain | cf1a2929ae087754396861c3830c983a2963f835 | 383481dc88058dce3930b170e0c9376e3529dc96 | refs/heads/master | 2021-01-10T19:20:27.577499 | 2015-03-27T00:45:47 | 2015-03-27T00:45:47 | 32,895,134 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 842 | h | EarthDomainButtonEventHandler.h | /*
*****Earth Domain Game*****
Author: Laugh Out Loud
Jeffrey Lin
Jessica Mortellaro
Jia Hao Wang
CSE 380
EarthDomainButtonEventHandler.h
This is a custom button event handler. Each game can choose
to use different buttons and respond differently to when
buttons are pressed. This class will handle bu... |
4b0ef19eeee6b260ae9bd3dcc13c10410f813a22 | ac087020d9725e366785c3513d156a7050dcb65f | /src/Player.cpp | 04f21d8b4274b5b38dce4ba93d357fa6856dfcb8 | [] | no_license | systemtwo/cellphoneescape-v2 | 9620ad40fd3300c0012133c85f445e237f4543aa | aac6d1df48d3ffccaa3bac2dca407cd19967a25f | refs/heads/master | 2021-01-25T09:59:14.556951 | 2013-06-18T05:08:09 | 2013-06-18T05:08:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,893 | cpp | Player.cpp | #include "Player.h"
bool Player::texLoaded = false;
sf::Texture Player::tex;
Player::Player(int _x, int _y) {
x = _x;
y = _y;
yspeed = 0;
xspeed = 100;
gravity = 500;
name = "Player";
//sprite.setSize(sf::Vector2f(w, h));
collDown = 0;
if (!texLoaded) {
tex.loadFromFile("images/player.png");
texLoaded =... |
39551dec8e9fb91ddc0c9572109e867cf72c4ccc | e58feb6fdf20aa22834da3a757e23228b67ad695 | /kakao3.cpp | ac24cb95df9cb501fea029b90c180fe3545d44c5 | [] | no_license | NAMYUNWOO/ProblemSolving | 72e0ea65d5f4ba7a453a648b22968031543cd3a5 | 443133b7c8a2f2ac5b61fa87d2d0530df1cf87d6 | refs/heads/master | 2020-03-27T08:15:39.307194 | 2019-07-06T15:10:52 | 2019-07-06T15:10:52 | 146,237,526 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,118 | cpp | kakao3.cpp | #include <vector>
using namespace std;
int MOD = 20170805;
vector<vector<int> >a;
vector<vector<int> >DP;
int getAns(int i,int j){
if (i == 0 && j == 0){
return 1;
}
if (i<0 || j< 0){
return 0;
}
if(DP[i][j] != -1){
return DP[i][j];
}
if (a[i][j] == 1){
DP[... |
5bd77e4338590229268df74642a8a7b6fcec1baf | 6c30e91a718d66e117f6ffb7e349aad5f4ca3027 | /sofonline/R3BSofSciVsPspxOnlineSpectra.h | 0d9ce29988d0d547f54bd6bf8e520edb4e6240fb | [] | no_license | R3BRootGroup/sofia | d98d980c95b16303af5e56090917ce7f2015d63a | 1b5569ce39f1f1c0bd092d68200a6b84e4b0d239 | refs/heads/dev | 2023-06-24T01:38:43.959994 | 2023-06-07T22:58:25 | 2023-06-20T19:37:55 | 87,048,785 | 7 | 21 | null | 2023-06-08T13:56:07 | 2017-04-03T07:29:37 | C++ | UTF-8 | C++ | false | false | 3,506 | h | R3BSofSciVsPspxOnlineSpectra.h | // ------------------------------------------------------------
// ----- R3BSofSciVsPspxOnlineSpectra -----
// ----- Fill SOFIA online histograms -----
// ------------------------------------------------------------
#ifndef R3BSofSciVsPspxOnlineSpectra_H
#define R3BSofSciVsPspxO... |
de217f9788f155505419430f43b97e4151f9cb31 | 0426458cc0938715b0b7569a69cb8ed9c62a442b | /LuaNWNFunctions.cpp | b64555f4df9bda1b93e3afd1db6d409bcf508da2 | [] | no_license | TerrahKitsune/xp_lua | 49dd2615b9743f1c48147b0babe99ccf3984f305 | c1c4601151a22b59da92f3df09af5de3206da079 | refs/heads/master | 2022-07-21T01:19:23.329970 | 2022-07-13T21:20:04 | 2022-07-13T21:20:04 | 74,283,100 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,380 | cpp | LuaNWNFunctions.cpp | #include "LuaNWNFunctions.h"
#include "NwnLuaHooks.h"
#include "lua_helper.h"
nwn_objid_t GetObjID(lua_State*L, int idx) {
int type = lua_type(L, idx);
if (type == LUA_TNUMBER) {
return (nwn_objid_t)lua_tointeger(L, idx);
}
else if (type == LUA_TSTRING) {
const char * hex = lua_tostring(L, idx);
if (hex =... |
82a263635a1d66a1d62e97dfd9a2d0e024fa4185 | f43678a9f611fc7ddbe9be53d0915f4586c944c6 | /Code/Normal_test/TX/TX.ino | 08c3a7de8615ffb3f75aa348594532de36d6c34b | [] | no_license | matvidal/RFM22B_GPS | 3c1c1787e93b5bd1f0f965c88b38f8e5d633cf2f | e705cb7d446c358bdd7e4f6580f140cd5cf538c9 | refs/heads/master | 2020-04-06T07:02:36.802987 | 2016-08-18T14:39:15 | 2016-08-18T14:39:15 | 58,554,237 | 1 | 0 | null | 2016-06-06T21:51:29 | 2016-05-11T14:54:18 | C++ | UTF-8 | C++ | false | false | 1,762 | ino | TX.ino | #include <RHReliableDatagram.h>
#include <SPI.h>
#include <RH_RF22.h>
#define CLIENT_ADDRESS 1
#define SERVER_ADDRESS 2
static const int SDN = 10;
uint8_t data[RH_RF22_MAX_MESSAGE_LEN];
// Singleton instance of the radio driver.
RH_RF22 driver(4,2);
// Class to manage message delivery and receipt, using the driver ... |
4d11cdb78aba80e36d4927614aa81f8ba41a43dc | 28d81783becae2bf13f7e380f078ca45cb19eb0c | /LibEngineTest/Classes/test/ApplicationTest/ApplicationTest.h | 9a712269d87d205f44aa0bc8ac9a24fcbc7c8ce3 | [] | no_license | yesunsong/XMEngine | 1eb63605d818ef859d0a7d72a0d3008ff5349ffb | a38fa5f50b8c0b8d56ca84a0c9ff937e73bc7b69 | refs/heads/master | 2020-12-24T07:54:49.027780 | 2017-01-29T02:58:38 | 2017-01-29T02:58:38 | 73,356,387 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 456 | h | ApplicationTest.h | #ifndef _APPLICATION_TEST_H_
#define _APPLICATION_TEST_H_
#include "framework\BaseTest.h"
DEFINE_TEST_SUITE(ApplicationTests);
class BaseApplicationTest : public TestCase {
public:
BaseApplicationTest();
~BaseApplicationTest();
CREATE_FUNC(BaseApplicationTest);
public:
virtual void onEnter() overrid... |
39ea3cc7a6eccf6569d679974c57f97a4c74dcfe | 61ddfce8dfa1c512b5e2747b2b6390f20ee20294 | /src/qimguruploader/qimgurreply.cpp | 1cadcb499c86b5a98d1adf410362938726453def | [
"MIT"
] | permissive | R-Rudolph/QImgurUploader | 6cd2019cad599fc8e0b51525ddb251ef9f09b0b2 | d23221caf8a8105f955aa87fa531e19037867229 | refs/heads/master | 2021-08-24T01:54:27.722439 | 2017-12-07T14:49:42 | 2017-12-07T14:49:42 | 113,455,548 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,964 | cpp | qimgurreply.cpp | // License: MIT License
// Author: Robert Rudolph
#include "qimgurreply.h"
#include<QNetworkReply>
#include <QJsonDocument>
#include <QJsonValue>
#include <QJsonObject>
#include <QJsonArray>
QImgurReply::QImgurReply(QNetworkReply *reply, QObject *parent) : QObject(parent)
{
m_reply = reply;
m_finished = false;
... |
deeb3ec37d9164369d597aa6e1287fad8130e7cb | af723c6696d22895cd49163851b479e1106d2ae5 | /examples/zmq_shell/src/include/redis_locking.h | 1929b602b13bc73b644247ea293d886dee7c15db | [
"MIT"
] | permissive | AO-StreetArt/AOSharedServiceLibrary | e776adff5d2005b33ea7c156865bfedb57e7d327 | 3631d7dd604c467845d9cddca063b7bc0ce10918 | refs/heads/master | 2020-04-12T06:29:29.486559 | 2018-04-15T03:32:51 | 2018-04-15T03:32:51 | 62,973,758 | 4 | 0 | MIT | 2018-04-14T04:00:58 | 2016-07-09T23:50:00 | C++ | UTF-8 | C++ | false | false | 3,278 | h | redis_locking.h | /*
MIT License Block
Copyright (c) 2016 Alex Barry
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, merge, publis... |
7a8afa7e5a6cb51aed94bb4bb21c15ab6e0b32a4 | adfad21b33ae60b7e587740a20fbf3e30a787d86 | /algorithm/contest/Longest Palindromic Substring.cpp | 1406bf04525c386645a2ac78b7c6a69d79909a37 | [] | no_license | herokingsley/LeetCodePractice | 29a967053654bb5fb8c11df37a7593119dcdca7a | 1a773b3ce4a45dcd1c1e5a06260e44b9499a45e1 | refs/heads/master | 2020-06-26T11:55:05.441098 | 2019-01-15T16:31:58 | 2019-01-15T16:31:58 | 97,018,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,292 | cpp | Longest Palindromic Substring.cpp | #include<iostream>
#include<string>
using namespace std;
string longestPalindrome(string s) {
int l = s.length();
if(l == 0){
return "";
}
int maxl = 1;
int st = 0;
for(int i = 0 ; i < l; ++i){
for(int j=0; j < 2;++j){
... |
9e802a405d98637db87b4d32388471046c01c828 | cefbd8878a51cc523039363d9dfb8b52b4cc31ba | /RegFile.cpp | dd423f7920a99a1b69c3979176435a5f09da058d | [] | no_license | bahermursi/SimulateIT | fc6201b61bb8dde5429ead841b17fe3250ad9b45 | 1af1541ec7a6aebd1b466ef65c64cecaa5bbc65a | refs/heads/master | 2021-06-08T23:20:01.372305 | 2016-11-27T22:38:10 | 2016-11-27T22:38:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 534 | cpp | RegFile.cpp | #include "RegFile.h"
#include "Buffer2.h"
void RegFile::setSA(int a) {
sA = a;
}
void RegFile::setTA(int a) {
tA = a;
}
void RegFile::read() {
if (sA >= 0 && sA < 32) {
buffer2->setSD(regs[sA]);
jump->setSD(regs[sA]);
}
if (tA >= 0 && tA < 32)
buffer2->setTD(regs[tA]);
}
void RegFile::write() {
if (addr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.