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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8a3904353c3ce17be9c3fbbdc057e8b25ffb57a5 | 7cf592f14b32c9c549b6e73e992be9f154450dc3 | /FutuOpenDClient/QuoteHandler.cpp | e13a3ef1b8cb7e44cc4a2ac69e6c5a36b998da94 | [] | no_license | tonylibing/C-For-FutuOpenD | c6067477a253743ebf13ce08f1cc6e49989c6d11 | 5df2fbdba530eb6dc29c4e1ae76773acdd3097dc | refs/heads/master | 2023-03-15T12:24:11.008889 | 2018-08-02T08:31:56 | 2018-08-02T08:31:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,962 | cpp | QuoteHandler.cpp | #include "QuoteHandler.h"
#include <iostream>
#include <vector>
#include "google/protobuf/message.h"
#include "NetCenter.h"
#include "pb/InitConnect.pb.h"
#include "pb/Qot_Common.pb.h"
#include "pb/Qot_Sub.pb.h"
#include "pb/Qot_RegQotPush.pb.h"
#include "pb/Qot_UpdateTicker.pb.h"
#include "pb/GetGlobalState.pb.h"
#in... |
5c7e48df23168248a121262d3bc3e291b07cd100 | 640e0a3b6f14acf262d9a2fa91efab88cd396536 | /ZBarCodeReader/xmlsurfaceparser.h | e19a148af8a371dfb6c172714cd3a3c43bc921d2 | [] | no_license | UAV-Concordia/Report-Builder | 4130488c5ea5a58ffe267ae53db1ae0b4c06aa46 | 5267a33bde51d7501bb667ea822a68e768afe144 | refs/heads/master | 2020-05-18T02:42:01.699487 | 2015-05-01T22:42:16 | 2015-05-01T22:42:16 | 32,762,344 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 935 | h | xmlsurfaceparser.h | #ifndef XMLSURFACEPARSER_H
#define XMLSURFACEPARSER_H
#include <vector>
#include <string>
#include <iostream>
#include "tinyxml/tinyxml2.h"
using namespace std;
using namespace tinyxml2;
class XMLSurfaceParser
{
public:
XMLSurfaceParser();
~XMLSurfaceParser();
void readFile();
void setFilePath(str... |
1362585b8b789c42956c206db526f3e9e7064d6a | 7eea3822a8af5a07d0299bc372e50a714b86f648 | /ConsoleApplication1/Specialization1.cpp | 5cc6918330a8c176c69116694f5d3b147d72867a | [] | no_license | songminkyu/CPP_TEST_UNTIL_17 | c6eade1d64e83d0b246554abce71d3a9bd3ea415 | 4c95c072512b289373d27bb2d5aff5c0f60042b5 | refs/heads/master | 2022-12-09T23:33:38.635871 | 2020-09-03T17:30:56 | 2020-09-03T17:30:56 | 291,965,429 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 356 | cpp | Specialization1.cpp | #include "stdafx.h"
#include <iostream>
namespace NS {
inline namespace detail {
template <typename T>
void test();
}
template<>
void test<int>() {
std::cout << "test<int>" << std::endl;
}
template<>
void test<double>() {
std::cout << "test<double>" << std::endl;
}
}
int main()
{
using namespace N... |
d9cc33ebfd7e684fbeed7ea73f5100fe9e3aefbc | a4dc28805210a7aa505e32f0288a9d4abb37677c | /DaleJr/VarFun.cpp | 8c2f34991d4e44ab5a23bb9c0245b366a974715a | [] | no_license | hunterxtang/CodeLand | b79ea43458af2e4581c8957ec98a37dec7089fa4 | 810c588316b50bbc8adc469e1ba59bce2afa718d | refs/heads/master | 2020-04-14T09:02:07.466777 | 2019-05-11T18:08:31 | 2019-05-11T18:08:31 | 163,750,253 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 171 | cpp | VarFun.cpp | #include <iostream>
using namespace::std;
int main()
{
int number = 22;
if(number % 2 == 1)
cout<< "Odd" <<endl;
else {
cout<< "Even" <<endl;
}
return(0);
}
|
545da113d2a34af44d0b3ba10b2f6622d8e4dd7f | 62d74675721d939baae340864c0e79d3037df189 | /predict the output all/predict the output on static/8.cpp | 9ddfbaa4ecca25904eb1b4dcce5db7d13cb1e75a | [] | no_license | shubhamkanade/cpp-program | c5fe1c85d2adac7c67ebd934c34e9b69509466d4 | 0cf279bd9cd473541a8a72bfee1f4b948d7fdaba | refs/heads/master | 2021-07-12T08:49:14.479420 | 2021-07-06T03:24:06 | 2021-07-06T03:24:06 | 172,293,386 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 200 | cpp | 8.cpp | #include<iostream>
using namespace std;
class Demo
{
public:
int i;
static int k;
Demo()
{
i=10;
}
};
int Demo::k=20;
int main()
{
Demo dobj;
cout<<dobj.k<<Demo::k<<endl;
return 0;
}
|
18d43bdff2cccb037f3443ffe2bba18f0aff2212 | 5795150f1d7fd799a94245b28e852ff472fcd4db | /cubegui-4.4-TP3/src/GUI-qt/plugins/Barplot/BarplotArea.h | df0a12fc6a1672c8f9e230b92cec7518950332f3 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | simbadSid/julich_testAssignment_cubePlugin | 59a5d328b8dedc2d6f2c2aa59246df5b93c43d29 | 0b126b80295ade4f4f22f7c55c67efe8e5386ff2 | refs/heads/master | 2020-06-21T14:37:36.769644 | 2016-12-08T19:11:02 | 2016-12-08T19:11:02 | 74,790,070 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,301 | h | BarplotArea.h | /****************************************************************************
** CUBE http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 1998-2016 **
** Fors... |
c5ff83673613df46e0f1c80ca5579f2b03d9346e | 52346de88a47f70ed63335b21ff12748bbbb5cba | /modules/perception/camera/lib/obstacle/tracker/common/similar.cc | e7f00fb91a917f82b4020cf481c27e933a77ce01 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | lgsvl/apollo-5.0 | 064537e31c5d229c0712bfcd4109af71dbf1d09d | 105f7fd19220dc4c04be1e075b1a5d932eaa2f3f | refs/heads/simulator | 2022-03-08T09:18:02.378176 | 2021-10-01T22:07:57 | 2021-10-01T22:07:57 | 203,249,539 | 86 | 115 | Apache-2.0 | 2022-02-11T02:55:46 | 2019-08-19T21:00:15 | C++ | UTF-8 | C++ | false | false | 1,828 | cc | similar.cc | /******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*... |
574ba198838e1e7df62b46012ea8abe977f7b5fe | 4a8f191e0613b25eb97d930eaff3b8fa8918060b | /WindowRenderer.cpp | c9d0bff4208e21ae288863fac10da9d93661094c | [
"MIT"
] | permissive | hberker/sdl-platformer | cbb33176daf7de293bfa75798d5129bf3ae2235e | 9629aebcb80dfd0eeecf808ff1ee83312690bb11 | refs/heads/master | 2023-02-19T17:00:45.074695 | 2021-01-13T13:38:39 | 2021-01-13T13:38:39 | 260,585,123 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,343 | cpp | WindowRenderer.cpp | #ifndef WINDOW_RENDERER_CPP
#define WINDOW_RENDERER_CPP
#include "include/WindowRenderer.hpp"
#include "include/Tile.hpp"
#include "include/utility.hpp"
#include "include/Player.hpp"
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <iostream>
WindowRenderer::WindowRenderer(const char window_name[], int w... |
c7900a3fa212ecc684135b9651df100a87c86673 | 3d1e23090d20db288b4c99e774c50e933ed9db8a | /GeoWars/Player.cpp | 7690e87855bcffd6cf5da3fd6c06dde32fbcb072 | [] | no_license | RianC4rl0s/PlaTank_tp3_jogos | 08c73928b036ea4f63be2e0f78e616b5a1a893bd | a71a79e1fab66a730d341f0492fdc862822e3fd4 | refs/heads/main | 2023-09-05T11:05:49.112153 | 2021-11-23T18:56:21 | 2021-11-23T18:56:21 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 7,928 | cpp | Player.cpp | /**********************************************************************************
// Player (Código Fonte)
//
// Criação: 10 Out 2012
// Atualização: 01 Nov 2021
// Compilador: Visual C++ 2019
//
// Descrição: Define a classe jogador
//
*************************************************************************... |
7b207db654fab47e93751a1154537e06f5f57990 | 2259f74a232e176ac54ae21b52396c6e76f70b89 | /Code/1_InputHandler/Src/main.cpp | 275af9fc8d6627e07e47c3d9ab795372d0a1bf3f | [] | no_license | SubspaceBob/bootcamp_project | 0db4d191b801b53248dfe71234547e1ff0d7ca81 | f906a3ea51112241299a5261140cb90157ebc9cf | refs/heads/main | 2023-01-20T22:03:08.377988 | 2020-11-27T07:16:32 | 2020-11-27T07:16:32 | 308,638,661 | 0 | 0 | null | 2020-11-26T15:06:09 | 2020-10-30T13:28:36 | C++ | UTF-8 | C++ | false | false | 241 | cpp | main.cpp | #include "input_handler.h"
int main() {
int cycleTime = 100; // Rough Can cycletime in ms const_
InputHandler inpHandl;
bool stop = false;
while (!stop)
{
stop = inpHandl.run(cycleTime);
}
return 0;
}
|
c12fa42362c4fc499773b206cec2b3aa738df300 | 8bb3d5309fc86eee5e379f50d505f63700689ab6 | /LineSensor/lineSensor.ino | e32ef0125ffb0d11e967ad571c26fe8f15928688 | [] | no_license | MrLegge/RoboCup | f569ecd9b905dde4cbcba6ccbd2025e9f2a22c8f | c1cffd9d6b238329828ca81aa3ff62fe0ba93a1d | refs/heads/master | 2023-08-17T16:19:21.817439 | 2023-08-06T01:59:02 | 2023-08-06T01:59:02 | 97,781,780 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 450 | ino | lineSensor.ino | /*
LineSensor.ino - Demonstration of how to use the LineSensor
Author: Phil Legge 12/11/18
email: phil.legge@det.nsw.edu.au
*/
#include "LineSensor.h"
LineSensor *mySensor;
void setup() {
mySensor = new LineSensor();
//mySensor = new LineSensor(2);
}
void loop() {
if(mySensor->onLine()){
delay(1... |
d501389cb5c9db3c754ab237c9a6c8d788cf1d30 | bc138e771c1aca344c5a1fd44b127ddf29365049 | /CF_EDU_94_A.cpp | e2ac4bd75feabd25708bbeafa0c5ab9da81763f6 | [] | no_license | ShubhankarKate/CodingStuff | ef65ef4df290658dfe526c4659356fc6dbbc0cc8 | e014dcf1578a225f9e64e66ccd0ae37290800f1f | refs/heads/main | 2023-01-25T03:42:15.311537 | 2020-11-27T17:53:27 | 2020-11-27T17:53:27 | 316,515,873 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | cpp | CF_EDU_94_A.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int t,n,k;
string s,f;
cin>>t;
while(t--)
{
f="";
cin>>n;
cin>>s;
for(int i=0;i<n;i++)
{
f = f +... |
c6b9373a5826c7965c00b5be817bd66da4b8ff9f | 73e9022abe8c2690cefb2bf89a28437f970554ef | /uri/Cpp/1014.cpp | 596c9fd7ff59f632589e6ba9e373b45a274aa902 | [] | no_license | ajunior/cp | d1e9e392e8c439fbf7acbd0f61fe09c090524d70 | 4e0ddbe66c48241c656f4d09c9ddcd39ae25db52 | refs/heads/master | 2023-09-05T02:59:16.675143 | 2023-08-23T21:03:23 | 2023-08-23T21:03:23 | 47,352,135 | 1 | 7 | null | 2018-04-07T02:58:04 | 2015-12-03T18:36:13 | C++ | UTF-8 | C++ | false | false | 260 | cpp | 1014.cpp | #include <iostream>
#include <iomanip>
using namespace std;
int main() {
int distancia;
double gasolina;
cin >> distancia >> gasolina;
cout << setprecision(3) << fixed;
cout << distancia/gasolina << " km/l\n";
return EXIT_SUCCESS;
} |
1d2860c65310e65d5dc29e0626d305507f2de517 | 7dfbb3fde81fe6afbb60eff188f40e5915eed05f | /09/Sequential Containers/Sequential Containers/EX9.45.cpp | c4359c48a97a489f00f71247e7705ef59fb63b17 | [] | no_license | godNights/My-C-Plus-Plus-Primer | 60b10f80de66cedc579e8caf5efb90252df77333 | 61402f4824d8006819ce43dabe7dbe971e280418 | refs/heads/master | 2020-06-23T13:40:22.919862 | 2017-02-12T08:50:40 | 2017-02-12T08:50:40 | 74,646,903 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 472 | cpp | EX9.45.cpp | #include <string>
#include <iostream>
using std::string;
using std::endl;
using std::cout;
using std::cin;
string newName(const string &s, const string &prefix, const string &suffix)
{
string s1 = s;
s1.insert(s1.begin(), prefix.cbegin(), prefix.cend());
s1.append(suffix);
return s1;
}
int main()
{
string s, pr... |
bb40d33dbed1bad85f1856075f1b6d34c15f3a3d | f81749de4aad3955433ef183dba9813cd54af57f | /instance/problem/continuous/expensive/CEC2015/F6_shifted_rotated_happy_cat.cpp | 85901a234ff082ce0eb2028b73116d8add83fee6 | [] | no_license | Strawberry9583/OFEC_Alpha | bc27208143647e91f5acd7cfc86b666c8a59aac4 | f251f02d8d63544f49d832efa8acb06da5cd028a | refs/heads/master | 2021-08-22T11:00:32.068132 | 2017-11-28T02:04:36 | 2017-11-28T02:04:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 940 | cpp | F6_shifted_rotated_happy_cat.cpp | #include "F6_shifted_rotated_happy_cat.h"
namespace OFEC {
namespace CEC2015 {
F6_shifted_rotated_happy_cat::F6_shifted_rotated_happy_cat(param_map &v) :problem((v[param_proName]), (v[param_numDim]), 1), \
happy_cat((v[param_proName]), (v[param_numDim]), 1) {
initialize();
}
F6_shifted_rotated_happy_cat:... |
303b7ef8a3b5f974f3b958cc7b81aa9bb886cd40 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /scrape/data/Organized/Rokham/Rokham_TLE.cpp | e66854951ce562e98b69ca569cdc16c770fa1901 | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 639 | cpp | Rokham_TLE.cpp | #include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
long long n, k;
size_t m;
cin >> n >> m >> k;
vector<long long> a(m);
for (size_t i = 0; i < m; ++i) {
cin >> a[m - i - 1];
}
int curr = 0, answer = 0, c... |
0f529fdb9ca14cec376c9477b649002a2244bf76 | 40b115714899193e2a3eeb15c030402181880192 | /engine/animator.hh | 59ed98ab05f440c4005e37bea595e587b01c2c0b | [] | no_license | inducer/wam | ec937b2b66edb09271f2197609549e574f2c68f1 | 03bd98e8ae000e7cc3fde8e3bff2878ed0c30802 | refs/heads/master | 2023-01-02T03:42:13.877423 | 2008-02-10T08:52:04 | 2008-02-10T08:52:04 | 305,217,156 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,500 | hh | animator.hh | // ----------------------------------------------------------------------------
// Description : WAM animation script language
// ----------------------------------------------------------------------------
// Remarks : none.
//
// ------------------------------------------------------------------------... |
94a7fcabd769c81821571058155bba1455015bb1 | 48fc75e852aef847bbde3a674a60a2ec362f0cb3 | /hwutil.cpp | d3182105dd74a396c4a0a8a49b06a7ad52b05641 | [] | no_license | mreiferson/hajiworld | 24b31f57185e9ef5bd0bef83c924645b0df281ca | 52f208638c90414fcd9eef8b28e9874cebbd6e4e | refs/heads/master | 2020-05-31T09:05:41.236875 | 2011-11-29T02:16:33 | 2011-11-29T02:16:33 | 2,862,096 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,169 | cpp | hwutil.cpp | /*
* Haji World (C) Perplexed Productions
*
* Module (hwutil.cpp): Utility functions
*
*/
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "hwutil.h"
FILE *g_fError = NULL; // general error file
DWORD g_StartClockCount = 0; // used for timi... |
e06b8a12d04c82df94253c35eb7289698b08446d | fb6454b02f402be7b3cf28d50906f283a14e07cc | /猪国杀(by zycany).cpp | 15d79c50c6588584e3ce65d5e2cbaa4084cda9ce | [] | no_license | Wandering-Trader/Killing-of-the-Pig-Kingdom | 86aa322800b7867c3dbe14ba6e7d75a9bb85a80f | c99dc9f8820db549326bb50613e2e20eddbe2572 | refs/heads/master | 2022-12-19T23:31:17.394032 | 2020-10-18T14:11:48 | 2020-10-18T14:11:48 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,559 | cpp | 猪国杀(by zycany).cpp | /*
P2482 猪国杀
基本思路:
模拟
字符串处理
为了节省时间,采用双向环形链表(手写)
此代码由zycany共同完成
*/
#include <bits/stdc++.h>
using namespace std;
#define N 15
#define M 2005
#define END 30 //链表尾部
string str;
struct Player
{
string cards;//卡牌
int ch;//对外身份(0未知1忠2反)
string id;//实际身份
bool lfz;//是否是类反猪
int next;
int pre;//前... |
adb2db253314bd7124ba3fadb4f5bc9ec3fdb5d5 | 75d2330d43c186f08bef17b4274e97b5401cce61 | /USACO/Section2.1/USACO2.1-4.cpp | 98aae7c684c5f9a4eef007525f73b52faada9c85 | [] | no_license | AD1024/Algo-Practice | 709d89d0c301d0f798cab316a9fdb436ad9de642 | 6d0efa62859aea9798fc78c5c78b8394ac480972 | refs/heads/master | 2021-01-12T06:36:18.289920 | 2018-04-23T01:02:46 | 2018-04-23T01:02:46 | 77,384,339 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,257 | cpp | USACO2.1-4.cpp | /*
ID: ccodera1
LANG: C++
TASK: holstein
*/
#include <iostream>
#include <cstdio>
#include <cstring>
#include <vector>
using namespace std;
bool vis[1000];
int val[20][1010];
int need[50];
int V;int G;
bool ans[50];
int o[50];
int oidx = 0x3f3f3f3f;
inline bool ok(int a[]){
for(int i=1;i<=V;++i){
if(a[i]<need... |
5c9e110798a4a624e5ae7f6adc833ab4ffa1b57f | 0a3e9320b58a032dfbf856b8cdfaad14095948d3 | /AVSCommon/SDKInterfaces/include/AVSCommon/SDKInterfaces/Bluetooth/Services/A2DPSinkInterface.h | b2f600e4a3f6e2e4494ba4f12726a53cacbbf166 | [
"LicenseRef-scancode-pml-2020",
"Apache-2.0"
] | permissive | anki/avs-device-sdk | 1a98f51729bbe2d6b835cba0e74587b0f5eaea38 | 8f358d9843f13814a56514f74b8fe16ca618c288 | refs/heads/master | 2020-03-31T19:09:13.404702 | 2019-03-06T22:14:38 | 2019-03-06T22:14:38 | 152,486,975 | 5 | 16 | Apache-2.0 | 2019-03-06T22:14:39 | 2018-10-10T20:39:56 | C++ | UTF-8 | C++ | false | false | 1,630 | h | A2DPSinkInterface.h | /*
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "licen... |
fc98e43feeb06fd0aa9d3d65b5bd7c93b58090fa | 13aa2a4294236437048ac26c13c5529bc4f903f7 | /src/math/circle/circle.cpp | 7eea77cd3fb065f02f8c3524b86bd2452ce826b5 | [] | no_license | captainwong/Snippet | adba1e0477a83233b529f961b590baba92988d7c | d62b878376a85007ed9a5f7b7af0bc9c67dc7deb | refs/heads/master | 2023-01-24T05:59:08.573699 | 2023-01-22T08:46:54 | 2023-01-22T08:46:54 | 59,401,303 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 583 | cpp | circle.cpp | #include <stdio.h>
#include <math.h>
int main()
{
// 半径
const int R = 1;
// 三角形个数
int n = 6;
// 三角形边长
int a = R;
// 三角形高 = 1 - (a/2)^2
long double h = sqrt(1 - pow(a / 2.0, 2));
// 三角形面积
long double s = a * h / 2.0;
// 圆(所有三角形)的面积 因为 S = pi * r^2, r=1, 所以 S = pi
long double pi = 6 * s;
printf("n=... |
3db5513de1015ccb48dce529e5dab7a62f1e21dd | 4c74cc61158a9f8b4918b8bf12ac3e04b24855ad | /Sources/Internal/Render/RenderPass/RenderPass.cpp | 1fbacd8cf5928e96f5a75bfd3585a9104fcc9f9f | [
"MIT"
] | permissive | blizmax/KiotoEngine | ba3b64f39acda97ab7eac8b24883752ebcdc9a4b | 44f94d471db4fa4c05e0a9c2fe6ba60b144fd3f3 | refs/heads/master | 2023-02-24T05:19:17.879030 | 2020-11-24T01:04:00 | 2020-11-24T01:04:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 708 | cpp | RenderPass.cpp | #include "stdafx.h"
#include "Render/RenderPass/RenderPass.h"
#include "Render/Renderer.h"
namespace Kioto::Renderer
{
RenderPass::RenderPass(const RenderPass& other)
: m_scissor(other.m_scissor)
, m_viewport(other.m_viewport)
, m_clearColor(other.m_clearColor)
, m_clearDepth(other.m_clearDepth)
... |
82e83b845083a0fbd41fd93fa480a4d043609eab | f67008366d94d288854f7ef985f05fdc8e42c520 | /Graphs/Properties.cc | 35078b0e3c016a68c2f359664044a36b93166ced | [
"MIT"
] | permissive | TrevorShelton/cplot | 6273c78a6cb888ed832cc93610b474ea78fda357 | 8bf40e94519cc4fd69b2e0677d3a3dcf8695245a | refs/heads/master | 2022-11-06T12:29:19.509338 | 2020-06-25T16:00:14 | 2020-06-25T16:00:14 | 274,957,449 | 0 | 0 | MIT | 2020-06-25T16:00:15 | 2020-06-25T15:55:44 | null | UTF-8 | C++ | false | false | 3,964 | cc | Properties.cc | #include "Properties.h"
#include "../Engine/Namespace/Namespace.h"
#include <stdio.h>
#include <cstdarg>
void PropertyList::print_properties() const
{
if (props.empty()) const_cast<PropertyList*>(this)->init_properties();
std::vector<const std::string *> N, D;
std::vector<std::string> V;
int l1 = 0, l2 = 0, l;
fo... |
d64dc963e9f5f8daa510dc7a7a9ac23ce03f2767 | c390029f06362338f4ea5acdbf8ffb5ad1d53cda | /messi.cpp | afac0ffc734c06577f84ef291ec4a230115ca0f8 | [] | no_license | kernelboy34/progrmasenc | 0f79895584fdc332624303702a2dd445d6b6fbd1 | e39db0df072ae5eb6ffeaccc34772ab77e54fc6a | refs/heads/main | 2023-08-01T15:58:38.439367 | 2021-09-20T22:55:36 | 2021-09-20T22:55:36 | 408,623,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 163 | cpp | messi.cpp | #include <iostream>
using namespace std;
int main(){
int i; i=10;
do{
cout<<i<<endl;
i++;
}while(i<=100);
return 0;
system("pause");
}
|
4ad21c3e3af7f4690fb4f9be56d76fe930c77967 | 4970ab3e2a870fdb58900cc4a92ff6382af33305 | /source/STRMV.cpp | 33efd2bbfc300341f149027282b8902544e68d09 | [] | no_license | kunjan-a/blas2 | 537fc2a7838b23864bdb108a4fc5ab887e00165e | b0ada8a690fd2c5f78ae15891eee6264059843f9 | refs/heads/master | 2021-02-25T03:04:48.981675 | 2020-03-06T15:06:03 | 2020-03-06T15:06:03 | 245,446,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,537 | cpp | STRMV.cpp | void STRMV(char UPLO,char TRANS,char DIAG,int N,float*A,int LDA,float* X,int INCX)
{
int KX,KY,IX,IY,JX,JY,i,j;
float TEMP;
/*
* Quick return if possible.
*/
if(N==0) return;
/*
NOUNIT = LSAME(DIAG,'N')
*/
if(INCX<0)
KX = -(1)*(N-1)*INCX;
else if (INCX!=1)
KX = 0;
if(TRANS=='N'... |
36d05e65063fd1636fd367a3884c9383cfdf3dae | 9cdb54adef4cf6c2c002e090805f6fbdb5acd96c | /include/items/inc/Potion.h | 433e966d458c8083355dff2dc8a7f7c917ed69fe | [] | no_license | torstengustafsson/adventuretales | b7d6a1a168eb78bb99f0feaa148635a83a9ab0ca | 7ba5dae45c05e17f0768307af56edbc4669a2ad2 | refs/heads/master | 2022-01-26T07:38:02.840534 | 2022-01-08T15:25:41 | 2022-01-08T15:25:41 | 86,595,251 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 390 | h | Potion.h | #pragma once
#include "Item.h"
class Potion : public Item
{
public:
Potion(Texture* _icon, string _name, string _type, int _power);
string get_type() override;
int get_value() override;
private:
string type;
//power represents the potions potency. A healing potion with power 5 heals 5 hp, an
//intelligenc... |
16aceac71c2e2515c7eb9b179b16cb52a079831e | aabdd7c0ba61c7faea4f99fa2a715e10b878b911 | /frequency_counter/frequency_counter.cpp | 2eeec4efbdcce7772153c4f6f3ed4ddcf2ac03ed | [] | no_license | evgenstf/avito_interview | 559b3c58537b969b575ab4121b241c51401dc4ff | 3119acc38795a204f7b020b6a68b12498e714e2b | refs/heads/main | 2023-05-10T07:53:03.034630 | 2021-06-20T14:16:56 | 2021-06-20T14:17:29 | 378,632,377 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,501 | cpp | frequency_counter.cpp | #include "frequency_counter.h"
#include <algorithm>
#include <cctype>
#include <vector>
using namespace std;
namespace {
vector<string> extract_words(const string& text) {
vector<string> words;
size_t index = 0;
while (index < text.size()) {
string word;
while (index < text.size() && isalpha(text[inde... |
e98bd031e924a19652ec8d8b395d8257b2753830 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /ui/views/test/mock_native_widget.h | fc291e51f6b9568e85830be5f861424dfcf43a49 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 7,808 | h | mock_native_widget.h | //, Copyright 2023 The Chromium Authors
//, Use of this source code is governed by a BSD-style license that can be
//, found in the LICENSE file.
#ifndef UI_VIEWS_TEST_MOCK_NATIVE_WIDGET_H_
#define UI_VIEWS_TEST_MOCK_NATIVE_WIDGET_H_
#include <memory>
#include <string>
#include "base/memory/raw_ptr.h"
#include "base... |
c71928f83ab91a823534f2128fda50c45bc175aa | 7819556f061e0e9417284c2270e3a2564ffea7e6 | /chapter3/ch3solutions/ch3main.cpp | 3656f778567b825143bf02a337cfc7662ed6b7fb | [
"MIT"
] | permissive | liu15388282385/Essential_Cpp_SourceCode_Answer | 7ca0994e635d78dd491817b0b75601284de79d54 | 869118a8d1ac203fc74a968daa9de506c1640cc4 | refs/heads/master | 2023-07-23T20:26:47.600617 | 2021-08-25T06:40:35 | 2021-08-25T06:40:35 | 389,516,610 | 0 | 0 | null | 2021-08-25T06:40:36 | 2021-07-26T05:21:12 | C++ | UTF-8 | C++ | false | false | 8,941 | cpp | ch3main.cpp | /**************************************************
* Essential C++ -- Stanley Lippman
* Addison-Wesley
* ISBN 0-201-48518-4
* homepage: www.objectwrite.com
* email: slippman@objectwrite.com
*************************************************/
#include <set>
#include <string>
#include <iostream>
#inclu... |
ac28d1ac819a2a03debb6c339d1185bb55cd1413 | 503cfe7ec1fdcace780c515effe5591504053730 | /lqiolib/src/dom_document.cpp | f567a480d343bc9a404e0a9f1c9a211c3eef1cc9 | [] | no_license | SadiqNaizam/V5 | 119b19f49b9198aa3a8774d6d89a9f16756e8fd5 | 984abf3332af1f4d040a8a9bc41673098eacd54d | refs/heads/master | 2020-06-14T11:40:39.746818 | 2018-03-07T01:02:20 | 2018-03-07T01:02:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,969 | cpp | dom_document.cpp | /*
* $Id: dom_document.cpp 13204 2018-03-06 22:52:04Z greg $
*
* Created by Martin Mroz on 24/02/09.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include "dom_document.h"
#include <iostream>
#include <cstring>
#include <cstdlib>
#include <cmath>
#... |
95b4691f4f7d6739827cd79db1e2b6cb333eb363 | 5df1a677af9379c9a82f1b29359a65ad8cbc385e | /CodeForces/PastContest/1416/D.cpp | 5c36dac2e1b5ba2525a7f991f6e7d7d090225b09 | [] | no_license | heyshb/Competitive-Programming | 92741a4e7234e1ebce685c1b870f1287bee18f1a | 363ef78d950afb53f0e5f1d2329f27dd7b9a44c2 | refs/heads/master | 2021-12-15T03:12:37.676111 | 2021-12-01T14:32:25 | 2021-12-01T14:32:25 | 122,315,094 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,328 | cpp | D.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef pair<int,int> pii;
int op[1000010][2];
bool del[1000010];
int L[1000010],R[1000010];
vector<int>e[1000010];
int N,M,Q;
int p[1000010];
int fa[1000010];
int treenode[1000010];
int NN;
int ttm[1000010];
const int INF = 1e9;
int find(int x) {
... |
13f72899cb6112516ac5dbbad8dfea9358785cca | 516e1736f6abc70f31761edfb1960c2150c5a6bb | /main_window.cpp | 2d7dce5bfa5f9fd62b7f95cd45eed6fab2993902 | [] | no_license | ruta-04/JADE | 1cb4a595098573654f51d2d588b5403318c94d0c | e1e28e8cb1f948ed8a435f8d461978a9d440a016 | refs/heads/master | 2020-07-24T07:34:25.377904 | 2019-09-11T21:03:58 | 2019-09-11T21:03:58 | 207,848,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 35,815 | cpp | main_window.cpp | #include "main_window.h"
#include "dialogs.h"
#include "store.h"
#include "product.h"
#include <regex>
#include <gtkmm.h>
#include "customer.h"
#include "order.h"
//#include "view.h"
int Main_window::order_counter=0;
Main_window::Main_window() {
// /////////////////
// G U I S E T U P
// //////////////... |
6a2aa5d4838e6a37fd6ec45577b87c10b8a6ff70 | f1aaed1e27416025659317d1f679f7b3b14d654e | /Office/Source/Stock/Suppliers.h | 5002d2633db37558dfdd826182e65fdd65c8c9aa | [] | no_license | radtek/Pos | cee37166f89a7fcac61de9febb3760d12b823ce5 | f117845e83b41d65f18a4635a98659144d66f435 | refs/heads/master | 2020-11-25T19:49:37.755286 | 2016-09-16T14:55:17 | 2016-09-16T14:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,642 | h | Suppliers.h | //---------------------------------------------------------------------------
#ifndef SuppliersH
#define SuppliersH
//---------------------------------------------------------------------------
#include <Buttons.hpp>
#include <Classes.hpp>
#include <ComCtrls.hpp>
#include <Controls.hpp>
#include <DB.hpp>
#include <Dia... |
3d40ef5ef2d3b4d5982552a83575527ee163c37e | b63d9dd98a5a832a9055bb393adcdc30e10d3534 | /read_resistance.cpp | 955f9668eb598a3988bbbd46aa5f9d3312e0cfac | [] | no_license | evanritz/RitzHW9-2 | 0c990376fb88f0c8e1f2735bdf0b34c9a0dc12c6 | 2f7b60d715753474e369cf22bdf250c9031f685b | refs/heads/main | 2023-08-30T00:07:41.796353 | 2021-11-17T03:44:49 | 2021-11-17T03:44:49 | 428,889,376 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 857 | cpp | read_resistance.cpp | // read_resistance.cpp
//
// This program takes no arguments
// This program uses the analogIn class
// This program reads the ADC value on p9.39
// and calculates the resistance on the voltage
// divider circuit
//
// Circuit Resistance: 820 Ohms
//
// Written by Evan
#include <iostream>
#include "analogIn.h"
usi... |
c5a5323f235525f118d1630219fabf82640cf4c4 | 909acdbff029d84fa150207f513597d8c1c555e4 | /dangling.cpp | 2999d2dbfcbdfbc6c41449642876998ce10b1758 | [] | no_license | vijaykumarm108/BasicApplications | 4f562af3ece7f55773a4893a4de7c03f87e258b5 | 76763dc93143abba48d47b701c409f901d1987ca | refs/heads/master | 2020-12-30T11:14:54.473273 | 2015-08-16T18:51:40 | 2015-08-16T18:51:40 | 40,616,687 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 170 | cpp | dangling.cpp | #include<iostream>
using namespace std;
class Class{};
int main(){
Class *object = new Class();
Class *object2 = object;
delete object;
object = nullptr;
return 0;
}
|
acc90d5a43633612267d776c8073bb82dd16bdd0 | d29d5c3b12bc71073c7f70e13b5c6918afdaf03e | /debugsrv/runmodedebug/tsrc/rm_debug/debug_targets/t_rmdebug_security.cpp | 1dd9087b546614dc8977525d20423c97f562d31e | [] | no_license | RomanSaveljev/osrndtools | bdbd82c2a2ebeca76767a2cfc431f479fa047cd0 | 305d28826c7105df01951f1ad1a7b93deb9683f6 | refs/heads/master | 2021-01-17T06:45:40.585045 | 2010-10-26T13:20:32 | 2010-10-26T13:20:32 | 59,350,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,961 | cpp | t_rmdebug_security.cpp | // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/e... |
024db04dc9a6844771444b53eb116b0a183e534c | 32d913aecc4486907040f5388f50c94c3035000d | /Segundo/CYA/p04/fib.h | 53a01423f854e0aa448c465c601980bad991b03f | [] | no_license | MeloGD/ULL | cab50f3f6cf622eb0ce10d92b33204fefbfa4099 | 7b34a7d1a38d7686fbd4052d24b65b7f1406de45 | refs/heads/master | 2023-05-06T15:48:06.048174 | 2021-05-24T17:23:50 | 2021-05-24T17:23:50 | 220,818,639 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 663 | h | fib.h | #include <iostream>
#include <vector>
#include <fstream>
#include <string>
using namespace std;
class Fibonacci {
private:
vector<string> fibonaccisequence_;
vector<string> candidates_;
int size_;
public:
Fibonacci(const int);
~Fibonacci();
// Getters
string get_fibonaccisequence(int);
string get_can... |
a5b9ba061075851fcf894cec3f86765fbd5c2b93 | 4510257e43e97c2fb9fe6fde0615d0dde5af2b2d | /Codeforces/977F.cc | b9b604c6a3f6fbebfdbf69d04140e69c0ec9ab67 | [] | no_license | kumasento/competitive-programming | 4f151727623c0c5c44f2ff1f3b868178eed99962 | 506de14b45cf467ebb8cfbdd2f7db236eb32b668 | refs/heads/main | 2023-05-23T01:18:18.527693 | 2021-06-10T20:24:57 | 2021-06-10T20:24:57 | 31,244,109 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,107 | cc | 977F.cc | /**
* Author: kumasento
* Date: 2021-05-20T09:28:00.000-05:00
*/
#include <bits/stdc++.h>
using namespace std;
/// Types:
using LL = long long;
using PII = pair<int, int>;
using PIL = pair<int, LL>;
using PLI = pair<LL, int>;
using PLL = pair<LL, LL>;
/// Constants:
constexpr int INT_INF = 1000000000;
constexpr... |
29886fa0896cf59da4c79bd74a82a05826c508cb | 24cb74052f95d275dfb8599ea342cadd5e312fa1 | /Advanced DS/Range Query DS/Fenwick Tree or Binary Indexed Tree (BIT)/Problem 1(Range Updates Using Fenwick Tree Used).cpp | a4d7c36098dbc14ab6c1414ac6a50154f1f20b37 | [
"MIT"
] | permissive | Datta2901/Algorithmic-Implementations | 44ccd6b1996fac660ec1c268a5fa44fda59abb0e | 9e1afe97d54d4dc50be9170bc1a155562e0aafa6 | refs/heads/master | 2023-08-31T17:25:52.391313 | 2021-10-15T17:46:56 | 2021-10-15T17:46:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,178 | cpp | Problem 1(Range Updates Using Fenwick Tree Used).cpp | // Problem: C. Little Girl and Maximum Sum
// Contest: Codeforces - Codeforces Round #169 (Div. 2)
// URL: https://codeforces.com/problemset/problem/276/C
// Memory Limit: 256 MB
// Time Limit: 2000 ms
// Parsed on: 16-01-2021 11:46:22 IST (UTC+05:30)
// Author: kapil_choudhary
#include<bits/stdc++.h>
using namespace ... |
f9132f3b0a9f73ac13b7a9e03ec2b2f61b0665db | a833156f6e18bba3440f8d9d8361be5d26f45945 | /highwayhash/highwayhash_target.cc | 74022f64bf640b932b3489907451c46e995a5650 | [
"Apache-2.0"
] | permissive | google/highwayhash | 1b3a665a7a75a7ca7f40c0ca9130068e6c512fc3 | 8aac23b059df6b48ea94db93c6bdbf638e00ddf1 | refs/heads/master | 2023-08-28T10:13:43.145381 | 2023-08-23T08:35:52 | 2023-08-23T08:36:17 | 51,937,191 | 1,476 | 208 | Apache-2.0 | 2023-06-06T12:27:05 | 2016-02-17T16:29:40 | C++ | UTF-8 | C++ | false | false | 3,975 | cc | highwayhash_target.cc | // Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
5f12f76d01f382fa6e85d4c1290a52c09a1a80ce | 5d26dd63026c7db87740a073dbac420e2b3588d4 | /Game Original/stairs.h | 4e89008fcda395e934963cb6ca1054744fd4ac41 | [] | no_license | DhruvaAlam/LegendOfZeldaCommandLineEdition | 8ae3c7730656cca885eddbd1ada0b794a65f9f3b | 56642bc183a5362cff35b3540818013619181f90 | refs/heads/master | 2021-03-19T14:12:17.399847 | 2016-12-03T06:55:16 | 2016-12-03T06:55:16 | 75,457,388 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 165 | h | stairs.h | #ifndef __STAIRS_H__
#define __STAIRS_H__
#include "boardobject.h"
class Tile;
class Stairs: public BoardObject {
public:
Stairs(Tile* t);
~Stairs();
};
#endif
|
76508288452d6a5701844a4890994ba7ecf9dcda | 49b63657f846ae21103518992b7fc79c388dae92 | /물통채우기.cpp | 244ed91731174913b16f24b6bb75a18e2c9398fc | [] | no_license | Longseabear/AlgorithmStudy | 4fc200425e52cff0b626227797e8cc196bd87bb2 | b1bc82b71a00f7388849f02a86c3fc5a134d7024 | refs/heads/master | 2020-03-27T00:23:11.732907 | 2018-08-21T21:02:57 | 2018-08-21T21:02:57 | 145,618,850 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 426 | cpp | 물통채우기.cpp | #include <stdio.h>
#include <queue>
using namespace std;
typedef struct waterState {
int A;
int B;
int step;
waterState(int a, int b, int _step):A(a), B(b), step(_step) {
}
}WaterState;
int main() {
int a, b, resA, resB;
printf("%d", 7 % 8);
exit(1);
scanf("%d %d %d %d", &a, &b, &resA, &resB);
queue<Water... |
6d9d3de6686b3cc905c36c1eb5002233d5c20a42 | ad74f7a42e8dec14ec7576252fcbc3fc46679f27 | /BTSeedInflator/BTIpList.h | 48c43b810403a197c63ec1876968571c67ff9034 | [] | no_license | radtek/TrapperKeeper | 56fed7afa259aee20d6d81e71e19786f2f0d9418 | 63f87606ae02e7c29608fedfdf8b7e65339b8e9a | refs/heads/master | 2020-05-29T16:49:29.708375 | 2013-05-15T08:33:23 | 2013-05-15T08:33:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 593 | h | BTIpList.h | #pragma once
#include "ProjectDataStructure.h"
#include "BTIP.h"
class BTIPList : public ProjectDataStructure
{
public:
BTIPList(void);
BTIPList(int id);
~BTIPList(void);
/*
int GetID();
void SetID(int id);
*/
vector<BTIP> GetIps();
void AddIpList(vector<BTIP> ips);
void AddIp(BTIP ip);
void CalculateNumIP... |
ce463e5d066b1dfc2fecc398a044768448b03ffe | 2d42a50f7f3b4a864ee19a42ea88a79be4320069 | /source/system/logger/default_logger.cpp | e700530b6bff31869a865685f6b5f93cc5f0302b | [] | no_license | Mikalai/punk_project_a | 8a4f55e49e2ad478fdeefa68293012af4b64f5d4 | 8829eb077f84d4fd7b476fd951c93377a3073e48 | refs/heads/master | 2016-09-06T05:58:53.039941 | 2015-01-24T11:56:49 | 2015-01-24T11:56:49 | 14,536,431 | 1 | 0 | null | 2014-06-26T06:40:50 | 2013-11-19T20:03:46 | C | UTF-8 | C++ | false | false | 4,994 | cpp | default_logger.cpp | #include <string/module.h>
#include <system/time/module.h>
#include <set>
#include <system/concurrency/thread_mutex.h>
#include "log_consumer.h"
#include "console_consumer.h"
#include "file_consumer.h"
#include "logger_interface.h"
PUNK_ENGINE_BEGIN
namespace System {
class ConsoleConsumer;
class IClock;
class... |
fa39578fef1f42255c817f6349ce2940c43846a4 | df18750f32b0fd91b12a7ab343f4cc3c24693fa7 | /src/main.cpp | ba0950810fb060c702e8dbc00b8cd4844c4916df | [
"MIT"
] | permissive | airen3339/CppTexturePacker | 2109543dc48f394f756cff106764abc0030b5f75 | 1ec06e5a89131aac46a548a8c1d781472b96ed00 | refs/heads/master | 2023-09-01T02:06:01.436785 | 2020-06-09T11:20:56 | 2020-06-09T11:20:56 | 364,803,251 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,379 | cpp | main.cpp |
#include <string>
#include "cmdline.h"
#include "cpp_texture_packer.h"
int main(int argc, char *argv[])
{
cmdline::parser parser;
parser.add<std::string>("input_dir", 'i', "input dir", true, "");
parser.add<std::string>("ouput_name", 'n', "output atlas name", false, "out");
parser.add<std::string>("o... |
038e37d41ed77227a4df8256ba68153f466fb187 | cb8d1be6b6b1cbb4a1169223504e93061ed11c43 | /File/FileLog.hpp | 74f4acd9a8b5eb1f657acde50486a747ca5335d1 | [] | no_license | RyanBabij/Wildcat | c6ec5fca71968376208995d1cd833c007f44d9d1 | 4c684506996cf52ad752504e9b8a490f6cd571d0 | refs/heads/master | 2023-02-21T05:33:38.284612 | 2023-02-14T23:05:23 | 2023-02-14T23:05:23 | 100,090,636 | 8 | 0 | null | 2020-06-07T03:55:26 | 2017-08-12T05:11:37 | C | UTF-8 | C++ | false | false | 2,660 | hpp | FileLog.hpp | #pragma once
#ifndef FILE_FILELOG_HPP
#define FILE_FILELOG_HPP
/* File/FileLog.hpp Created <0221743513. Updated 0221743513.
I made this so that I can write data to a text file without needing to fuck around with the file manager.
The rules of logging:
* If there is an error, abort silently.
* If a non-existent... |
8cae9a9ede98f6d4cd070800bed744364e4ff7d1 | 0364bdde2c7386f38dc84e6791697c9413f51443 | /Test/Characters/IntelligentMonsterTest.cpp | 45ac39e7e649bf18569c3a9249e08e8f074459ef | [
"MIT"
] | permissive | DrStrangelove42/DreamOfaRidiculousMan | 0cd088375851bc68b1f1b958a69ddcee3b3ec23c | a19af08c0a044ed4a30194ffdfac912475618b14 | refs/heads/main | 2023-06-17T19:21:53.341035 | 2021-07-14T09:39:05 | 2021-07-14T09:39:05 | 304,332,780 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 775 | cpp | IntelligentMonsterTest.cpp | #include "IntelligentMonsterTest.h"
CPPUNIT_TEST_SUITE_REGISTRATION(IntelligentMonsterTest);
void IntelligentMonsterTest::movementTest()
{
Player p(*r1, "", 0, 15, 10, 40);
Room room1(5, 5, 0, 0, p, *r1);
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 5; j++)
{
Block* b = new FloorBlock(i,... |
16e9ae762b5ffe38312524d22062ba03584db418 | 16f50a812eca90748e87bfe471e0c05f178337fd | /2do_Semestre/POO/TareaHerencia/empleados.cpp | db1a53f38c99c01061098a9d44dcfa0082a4770e | [] | no_license | SeaWar741/ITC | 65f73365762366f56cfbd6d0bc788cd384672d12 | 5f75716be58ca6e00bcd8dae7546fd19fe37657f | refs/heads/master | 2023-02-05T23:25:13.972031 | 2022-09-29T10:38:32 | 2022-09-29T10:38:32 | 205,020,772 | 4 | 2 | null | 2023-01-19T15:28:45 | 2019-08-28T20:48:35 | Jupyter Notebook | UTF-8 | C++ | false | false | 885 | cpp | empleados.cpp | //
// main.cpp
// empleadosVendedores
//
// Created by Yolanda Martinez on 09/05/20.
// Copyright © 2020 com.itesm. All rights reserved.
//
#include <iostream>
using namespace std;
#include "Vendedor.h"
int main() {
Empleado emp1(129, 12000);
Empleado emp2(231, 13500);
Vendedor vend1(146, 8500, 0... |
c4ecf2c853d77d54e95f8ba46bcb25a9587a084f | 697ece97d86013137f38b6049a6755a7fec6e693 | /code/toolkit/distributedtools/shareddirfilesystem.cc | ef1eac3b1228f2818b54ea5d89fe9019d8f00732 | [] | no_license | Chinamming/nebuladevice3 | 6ace3c9fd97632ed43743e8eb7fce151f976a906 | 1180cec07aff77da1e9f97cedbcfbf5b56c3630d | refs/heads/master | 2021-01-10T18:17:09.958301 | 2012-11-23T19:55:13 | 2012-11-23T19:55:13 | 47,537,441 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 10,162 | cc | shareddirfilesystem.cc | //------------------------------------------------------------------------------
// shareddirfilesystem.cc
// (C) 2009 RadonLabs GmbH
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "shareddirfilesystem.h"
#include "io/ioserver.h"
#include "io/stream... |
285f6aff06de7840f1178723871e4946c5b7a4b8 | e64fd469a824b799237b5a90499b06cb9f32e335 | /intel/ShallowWater/common/Flux/CFlux2DGrid.cpp | e03de04800ceb79e9d4711ce9839c8062bac6092 | [] | no_license | les-sosna/OpenCL-playgorund | c208e058de55710dc4ba1cc0b226e50bc64a7352 | b8ba6131090a003df7e8be7f9331fb2640ba69a7 | refs/heads/master | 2021-01-18T00:36:51.491987 | 2014-06-09T13:06:06 | 2014-06-09T13:06:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,747 | cpp | CFlux2DGrid.cpp | /* ************************************************************************* *\
INTEL CORPORATION PROPRIETARY INFORMATION
This software is supplied under the terms of a license agreement or
nondisclosure agreement with Intel Corporation and may not be copied
or disclosed except in accor... |
8581efc912bea9aafa270f11df1b5a00714edc47 | cd6fea57bfec0648f7f500c29c99070e127f83ac | /src/engine/engine.hh | c202ab350aac8c7da64a4d89c207de9954e1e506 | [] | no_license | manuel-huez/rush-game | 2a3242f288468e51f86033f32f08b688facff63c | c43e83b5f1a209389e73af0e2e9bd3e721c022bf | refs/heads/master | 2021-03-16T07:43:07.980473 | 2018-04-03T11:50:25 | 2018-04-03T11:50:25 | 47,423,232 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 629 | hh | engine.hh | #pragma once
#include "scene.hh"
#include <string>
#include <memory>
#include <SFML/Graphics.hpp>
namespace E
{
class Scene;
class Engine
{
public:
Engine(const unsigned width, const unsigned height,
sf::RenderWindow& window);
sf::RenderWindow& window_get() const;
... |
ca9399a098866cc17fb0d6635a1455f40e337e32 | 57e7c092fe6b3a6f2616c4ce38d4624b4930f431 | /FSMAutomata/CompiledDFA.cpp | dd154aaf6d59456e748964126521f722c48664d0 | [] | no_license | shawnq8861/Algorithms-FSM-Automata | b6782e27e2175502fcd980613bbfcc4088182206 | b6e250914b3cea4ac9ff68c2d6dad131b70d3d5f | refs/heads/master | 2021-01-20T17:58:21.315712 | 2016-06-07T17:31:39 | 2016-06-07T17:31:39 | 60,553,410 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,920 | cpp | CompiledDFA.cpp | /*****************************************************************************
*
* file CompiledDFA.cpp
* the implementation file for the CompiledDFA class
*
* Shawn Quinn
* quinnms1
* 02/21/2015
*
****************************************************************************/
#include <iostream>
#include <sstr... |
83a991258e849091581c5e98e760e032defd0a57 | 6feb05a21208f0fca0a3a7b57ebc771fb931e6a4 | /GameSDL/include/MenuButton.h | 78be1e4a44fe0d47083d1a4f8d8e4c8df680ce90 | [] | no_license | viniciusPintoF/negocios | 556b078b244dfaf4f222ca3d7ae86e9550a6feff | b5fd1a935cc9e5d09f3d78d15a5bfeee421e0c13 | refs/heads/master | 2020-03-16T03:17:15.360507 | 2018-05-08T15:20:37 | 2018-05-08T15:20:37 | 132,484,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 558 | h | MenuButton.h | #pragma once
#include "SDLGameObject.h"
class MenuButton : public SDLGameObject
{
public:
MenuButton();
~MenuButton();
virtual void load(const LoaderParams *parameters);
virtual void update();
virtual void clean();
void setCallback(void(*callback)());
int callbackID();
private:
enum MB_ButtonState
{
MO... |
c77f91354d440eff01bdc2e03dbae73a37390485 | 0e64d27787f4135a3e7c0da4b8da503fa5bb8cce | /Source/Pineapple/Engine/Sound/Effect.h | c28a065a7a867646a8df12aba4641995d1892306 | [
"Zlib"
] | permissive | adamyaxley/Pineapple | c09665e7bc4e6a25da9d5948d87edad786182b80 | 467d64312151a0336bdf60606bf6fd30c330fa20 | refs/heads/master | 2021-08-28T15:43:52.993799 | 2021-08-21T02:54:25 | 2021-08-21T02:54:25 | 87,867,072 | 14 | 1 | NOASSERTION | 2023-08-30T08:49:52 | 2017-04-10T23:32:14 | C++ | UTF-8 | C++ | false | false | 620 | h | Effect.h | /*------------------------------------------------------------------------------
Pineapple Game Engine - Copyright (c) 2011-2017 Adam Yaxley
This software is licensed under the Zlib license (see license.txt for details)
------------------------------------------------------------------------------*/
#pragma once
... |
d3f32c3aaff4ea3bbb03261cd862c8331cf2fe25 | ca7e94eb918c080fe256f0120613f1251709229f | /HK3/OOP/project/test/bgi/saveload.cpp | f989ae53d34d56dd6a8a4a9b87d111cb577d9548 | [] | no_license | minhduc2803/School | 8965d49a0994cf1cf4a44d7268a513a92fceeb62 | e636cdc9869312472b2ad508d0abc9f4c12892c4 | refs/heads/master | 2022-12-26T04:41:28.511045 | 2021-01-23T05:36:11 | 2021-01-23T05:36:11 | 245,672,910 | 0 | 0 | null | 2022-12-11T20:53:27 | 2020-03-07T17:07:39 | C++ | UTF-8 | C++ | false | false | 1,349 | cpp | saveload.cpp | #include "saveload.h"
void SaveAndLoad::check(int x, int y, int val)
{
a[x][y] = val;
}
int SaveAndLoad::value(int x, int y)
{
return a[x][y];
}
bool SaveAndLoad::load(int n, bool type)
{
string file;
file = (type) ? "1p.save" : "2p.save";
ifstream ifs(file);
if (!ifs) return 0;
string line;
while (n > 0 &... |
345d7b0092c26c59d2d1f25cb4d5ef64d44e8f93 | 788c9758f5e20eeec2c6b835f6171ab876cc821b | /NightObejctDetected_center/DetectedPano.h | 5b534c5b9e5de0c780a8ee8e5a48a849d1325bf9 | [] | no_license | hongyiliang105598014/NightVehicleDetection | 55aaa67d0eb71c0c2871bb04ce11c40fed27a509 | e3929ed7fb4a82375723aedb934208007c11c478 | refs/heads/master | 2021-09-10T05:27:50.053218 | 2018-03-21T01:56:42 | 2018-03-21T01:56:42 | 91,091,415 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 823 | h | DetectedPano.h | #pragma once
#include "DetectedPosition.h"
class DetectedPano : public DetectedPosition
{
public:
DetectedPano(string path);
~DetectedPano();
void SetImageProcessor(ImageProcessor *imageProcessor);
void checkOverlappingRegion(Mat right, Mat back, Mat left);
void run();
static bool sortByRightPosition(const Object... |
26878323806e8be4175e27c4972724af0c897064 | 8ce65ac9d22c8a873f980e7907487cf6250211a2 | /server/src/User/User.hpp | c75f923427fb2edd80dc4368077858f131b5922d | [] | no_license | arzeo68/Babel-cpp | 9e57c747a94c123237dae2f2509ccd902542dcd2 | 2a6b5e2a6b743cb17a708fe92c4a238c3328803f | refs/heads/master | 2023-02-15T05:35:36.421447 | 2020-11-09T14:31:27 | 2020-11-09T14:31:27 | 328,818,774 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,376 | hpp | User.hpp | /*
** EPITECH PROJECT, 2020
** babel
** File description:
** TODO: CHANGE DESCRIPTION.
*/
#ifndef BABEL_USER_HPP
#define BABEL_USER_HPP
#include <mutex>
#include <string>
#include "common/CallStatus.hpp"
namespace Server::User {
/**
* User stock different data for the user
*/
class User {
p... |
993823980e6b47f816fff4ef0c83053c95120502 | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /tci/src/v20190318/model/TextItem.cpp | 81af9e38a61be46d8857480cf95c051b3f23fe74 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 7,797 | cpp | TextItem.cpp | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
38090a9bd133f1929917759b483008562f5feb9c | 4264c00dc32c548c7735f8e27871b4d52478a8ae | /Roboscrub_ws/src/navigator/src/test_path_node.cpp | 657f638686a48399d1ca3942b7a471f0288d2b1b | [] | no_license | Jeremy8080/Roboscrub | 58820c96a8cb1db7ba1f1945d7dd7e5a7df03fed | c3163da721024b69f340e37d86e6f4fc10eddda2 | refs/heads/master | 2022-02-20T12:15:49.142373 | 2019-10-08T09:19:25 | 2019-10-08T09:19:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,261 | cpp | test_path_node.cpp | #include "ros/ros.h"
#include <actionlib/client/simple_action_client.h>
#include <move_base_msgs/MoveBaseAction.h>
#include <mbf_msgs/ExePathAction.h>
#include <mbf_msgs/GetPathAction.h>
#include <mbf_msgs/MoveBaseAction.h>
#include <nav_msgs/Path.h>
#include <vector>
#include <geometry_msgs/PoseStamped.h>
#include <ge... |
2457cde68ba4cb5f3286a43288e2a2074d19e95b | 0053a32c65c4c2aea932e65b8fe4877cf56de245 | /320/A [Magic Numbers].cpp | df3d7d29125ebfc29fbcc113e0c8b617dcbc10c1 | [] | no_license | Omar-Khaled2198/Codeforces_Solutions | 0ef097371a09b0805c913f67e94f5c02a0dfbf46 | 1bd8ba8c3da22ea6b0e462477273b85bac48a1e7 | refs/heads/master | 2020-04-04T05:22:01.475435 | 2018-11-01T16:24:42 | 2018-11-01T16:24:42 | 155,743,270 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | cpp | A [Magic Numbers].cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include <stdio.h>
#include <string>
using namespace std;
int main()
{
string s;int o=0,f=0,h=0;
cin>>s;
for(int i=0;i<s.size();i++)if(s[i]=='1')o++;
if(s.size()>1){
for(int i=0;i<s.size()-1;i++)if(s[i]=='1'&&s[i+1]=='4')f++;
for(int i=0;i<s.... |
305392d9eb95ecd848d19fccee16f4368c7c890e | b72eeb4ece026e3f46e8bae69a6eda8c9eb100b4 | /UVa-Online-Judge/10131 - Is Bigger Smarter?.cpp | ad78e8f3fa1563c7b0807ba7547dc2b3567baff4 | [] | no_license | shahed-shd/Online-Judge-Solutions | 712fadd108e026647adec09e576b3f364c1d54bd | ad10d61097d780aa8465c6836dc9f899a23239bc | refs/heads/master | 2023-08-31T06:37:19.801355 | 2023-08-27T09:53:53 | 2023-08-27T09:53:53 | 37,283,322 | 34 | 27 | null | null | null | null | UTF-8 | C++ | false | false | 937 | cpp | 10131 - Is Bigger Smarter?.cpp | #include <cstdio>
#include <algorithm>
#include <tuple>
#include <vector>
using namespace std;
typedef tuple<int,int,int> iii;
const int MAXN = 1000+1;
vector<iii> V;
int n, dp[MAXN], nxt[MAXN];
int LIS(int u)
{
if(dp[u] != -1) return dp[u];
int mx = 0, tmp = get<1>(V[u]);
for(int v = u+1; v < n... |
017c5106e10fee36226e7167345ec5eae718d66c | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch.test-test-test/eulerVortex.cyclic.twitch.moving/4.44/U | 2616bd984c7f3d0271e97edb80d62f424fd2d466 | [] | 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 | 216,532 | U | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
a861455b6d1736a73f157342a5d3d881decfcf2e | e7682d26db65c23111c871a58c0a2fbba8f4e40d | /drv32/irq.cpp | fc723ad7e5a61b91037cb672cf0feb72a3cca96f | [] | no_license | OS2World/DRV-UNIAUD | 42de2d1d9dd26f5337ec12d4fed56fa23075f329 | 9a759917d5f6a1aa9119d097975e2b84484792a7 | refs/heads/master | 2021-01-02T09:01:47.200875 | 2014-11-07T02:42:17 | 2014-11-07T02:42:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,793 | cpp | irq.cpp | /* $Id: irq.cpp,v 1.5 2002/04/17 11:13:41 sandervl Exp $ */
/*
* IRQ handler functions
*
* (C) 2000-2002 InnoTek Systemberatung GmbH
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; eith... |
8c8a7d3c9f5f9b9aa3408e3bf89e48a8ad216f3e | 0c80aec0be5a600426006096a5c510c90b3ca949 | /Spoj/RGB1/Сүү холих.cpp | 2d6add2cf096901edd0daed3128e7727ca86a4c8 | [] | no_license | skywithlight/Algorithms | 7b8fd78874afffc8ae7c2775b53d2402cc165e65 | 06a13fbb73ea1404a7d0eaab56765ec2423f9e07 | refs/heads/master | 2020-03-23T21:20:04.814645 | 2018-10-16T03:59:42 | 2018-10-16T03:59:42 | 142,098,756 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 813 | cpp | Сүү холих.cpp | #include <iostream>
#include <vector>
using namespace std;
int main(){
unsigned long long n, m, ans = 0;
cin >> n >> m;
vector< pair <long long, long long> > a(m);
for (int i = 0; i < m; i++){
cin >> a[i].first >> a[i].second;
}
// sort (a.begin(), a.end());
bool swapped;
unsigned long long len;... |
30e45f7cae13fe683c625ffa0f78d5dbae416fb8 | 35f97b6050845d78bba2fe3446637566cdec0aed | /sc/src/Preamble.cpp | 6715c6aa2eaba59371dd22a073b9a76d6b90d267 | [
"MIT"
] | permissive | msnh2012/GL_ogl_to_vlk | eb5932ef25c7d08278c1ab933a4f304bed9ba7cf | 9b8863fc175b76ec565f034b25dcbbbdbb8a8ff6 | refs/heads/master | 2023-03-15T23:47:45.409201 | 2020-10-04T15:09:13 | 2020-10-04T15:09:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,634 | cpp | Preamble.cpp | //
// This file is part of the "sc" project
// See "LICENSE" for license information.
//
#include <fmt/format.h>
#include "std_lib.h"
#include "Preamble.h"
using namespace std;
using namespace fmt;
namespace {
//--------------------------------------------------------------------------------------------------------... |
5a849b1cb66ea969a14680b80a4dd1dbdb5db551 | 2be8edebdf05500dcb7108261e331dc66d651ac7 | /cpp/td2/dico.cc | 72773bfdfcf401bdca99eb83613645088fd29b19 | [] | no_license | wissou92/Langage_av | fb362d30aa24707225deda664d7ba4293b2da709 | 05f3b32fd5137b4b800870eab03e454ad0291aa6 | refs/heads/master | 2020-08-02T06:46:21.161607 | 2019-12-20T10:21:14 | 2019-12-20T10:21:14 | 211,267,399 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,267 | cc | dico.cc | #include "dico.h"
// DEFINITION
Definition::Definition(char *m, char *def)
{
clef = CString(m);
def = CString(def);
}
CString Definition::GetClef() const
{
return clef;
}
CString Definition::GetDef() const
{
cout <
}
// NODE
Node::Node(Definition *d)
{
def=d;
nextNode=NULL;
}
Node::~Node()
{
cout<<"destN... |
1e022259b9ec73ef052cf8fd94b04c28efc61e45 | 346ec890ff38822fef5f122188a52990a8a12710 | /include/creature.h | f9de16f025a6eef13e7615a331165af0cd280962 | [] | no_license | tupers/rune | 9d9ff05ab881c94258ef26b7a64b25b4a8f1111e | bd27c64f9c636757b23fc7edc7f0a44fe904f024 | refs/heads/master | 2020-03-27T20:55:30.571064 | 2018-09-11T05:57:54 | 2018-09-11T05:57:54 | 147,102,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,114 | h | creature.h | #ifndef CREATURE_H
#define CREATURE_H
#include <string>
#include <map>
#include <vector>
#include "type.h"
#include "randomCore.h"
using namespace std;
class Creature
{
public:
typedef struct
{
float value;
}propertyUnit;
typedef struct
{
string id;
}componentUnit;
typedef struct
{
float value;
//... |
cbe04181804d13c4ad32445f5c1b7d90e9fd035a | 7e385bf9e0740d12e691e2e1004ed4ad64bfcddb | /1249.cpp | d75b3ce78e65dc3c6b8d13000b1808186ce44467 | [] | no_license | 504281906/ACM | c23def3e50cbcbc020641d1df7021f6a75acd039 | 481d7d4d16f1cb421500aff3b747ccefe0f3d369 | refs/heads/master | 2021-01-23T04:13:40.729427 | 2017-04-18T02:07:34 | 2017-04-18T02:07:34 | 32,318,925 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 207 | cpp | 1249.cpp | #include <stdio.h>
int main()
{
int i,t,n;
long f[10001];
scanf("%d",&t);
f[1]=2;
for (i=2;i<=10001;i++)
f[i]=f[i-1]+6*(i-1);
while (t--)
{
scanf("%d",&n);
printf("%ld\n",f[n]);
}
return 0;
}
|
41c4df54b26c20c3bd3a94ff9fbd900f5d63ac70 | a3d0f92c3fd95c9d0d844405ac80a246ceb86c03 | /src/database/coregl/SoXipDepthTest.cpp | 1a8378cb1a017ef8ee5d3522ee745d2138e2157b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | JoonVan/xip-libraries | 79cc97e84ea45e30e0dc61fd8a98503a36fe9194 | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | refs/heads/master | 2020-12-20T18:49:48.942407 | 2013-06-25T20:57:19 | 2013-06-25T20:57:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,780 | cpp | SoXipDepthTest.cpp | /*
Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.... |
8d9ff2fadcf119ed76d16d228d5ee43ebfb8d2e8 | 09ff2fc33ef919a2019a47de47457e355de70924 | /include/libmath/exp.hpp | ebbf16ab3d01766239363c2628d2ee7c092a36fd | [] | no_license | LudoBike/Math-library | f50cf1beb541b1b101fe1115daeb5edf1bcd4874 | aa683f716ba5c07c9a50c282617c6a19d2b9412b | refs/heads/master | 2021-01-10T16:56:39.400349 | 2016-04-11T10:17:29 | 2016-04-11T10:17:29 | 51,687,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 515 | hpp | exp.hpp | /*
Math library
Exponential function implementation
*/
#ifndef __EXP_HPP__
#define __EXP_HPP__
#include <type_traits>
namespace math
{
template<typename T>
std::enable_if_t<std::is_floating_point<T>{}, T>
exp(T const x)
{
T k;
T x_pow_k = 1, fact_k = 1;
T to_... |
d303f34b1efbe2f55a78440d049ed2551a9d2a38 | df9efcfbde3b1a2877945456b8a5078d627e6928 | /TIMEDSORTS/MergeSortImp.cpp | b58cc010ad5930b336fa431d4a22be0fa5a7e965 | [] | no_license | SogangSW/TIMEDSORTS | a4eabbd03bb6b5981d7d20ea3b742f8a9226a354 | c9b27a06e3a7d8c779ab2c5c26ee71e5f219e265 | refs/heads/master | 2021-05-31T01:09:21.907792 | 2016-03-28T14:58:36 | 2016-03-28T14:58:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,243 | cpp | MergeSortImp.cpp | #include "MergeSortdef.h"
int MergeSort::min(int x, int y)
{
return (x < y) ? x : y;
}
void MergeSort::merge(int arr[], int a, int b)
{
int mid = floor((a + b) / 2);
int i1 = 0;
int i2 = a;
int i3 = mid + 1;
int *temp = NULL;
temp = new int[b - a + 1];
while (i2 <= mid && i3 <= b)
{
if... |
cd12c7d71eaccfb6ba3e48c1e42b77613ff11e37 | c53d25b27b443ad7a2d367d91321d041ba1095b6 | /POJ/1276_Cash Machine/1276.cc | 0927d8665b24771b7c5061f7f40973717a9e5bdd | [
"MIT"
] | permissive | hangim/ACM | 52323c5e890549e91b17e94ca5f69125e7dc6faf | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | refs/heads/master | 2021-01-19T13:52:22.072249 | 2015-09-28T12:31:11 | 2015-09-28T12:31:11 | 19,826,325 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 991 | cc | 1276.cc | #include <iostream>
#include <cstring>
using namespace std;
const int INF = 1 << 29;
int main() {
int cash, n, w[10], c[10];
int dp[100001];
while (cin >> cash >> n) {
for (int i = 0; i < n; i++)
cin >> c[i] >> w[i];
for (int i = 0; i <= cash; i++)
dp[i] =... |
305b278518f2911989a7cd9d2caa2ddbc61a4232 | 44161564df358d4b106f24bd8992e4621b8808ee | /ServerSocket.h | c03ec0866de8fe9b96cac7b918e129b82a743683 | [] | no_license | SelmerZhang/ChatRoomServer | 017eb4e2f6e8ebd3d75e265c4b8f952ae3dd53d1 | 890b30c1971ed82c4ae53b7dbe729ca7a5537e81 | refs/heads/master | 2020-03-18T23:45:34.448397 | 2018-05-30T10:15:52 | 2018-05-30T10:15:52 | 135,425,875 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,041 | h | ServerSocket.h | #pragma once
#include "stdafx.h"
#include "Message.h"
/*
服务器端的socket,用于监听连接和接收、发送消息
*/
class ServerSocket : public CSocket
{
public:
ServerSocket();
virtual ~ServerSocket();
public:
CPtrList m_pList;//保存服务器上所有socket的链表,表头为监听socket
CPtrList *m_ptoList;
CString m_UserName; //连接的客户端的用户名
public:
virtual void OnCl... |
5f6158f7a07260b74167139d7ff0c7e4053e9ef4 | bcfbb6a1f010956b7b5e5414f8652e94aa8c5634 | /BOJ/cpp/1202 보석 도둑/1202.cpp | d73de06bf273870e454f0c7d3d8a13e56eab25a4 | [] | no_license | YoungWoo93/BOJ | 367e0231868ed61753cfb62edc6d2d5c153bf2fd | 99bf0f79a0ee9780f794bd124558d104cae08836 | refs/heads/master | 2023-07-23T16:00:00.234777 | 2023-07-12T01:59:02 | 2023-07-12T01:59:02 | 306,249,576 | 1 | 0 | null | 2020-10-28T14:36:42 | 2020-10-22T06:57:12 | C++ | UTF-8 | C++ | false | false | 1,501 | cpp | 1202.cpp | #include <problem.h>
#ifdef _1202_
///
/// problem
/// https://www.acmicpc.net/problem/1202
///
/// solution
/// https://dev-game-standalone.tistory.com/entry/BOJ-1202%EB%B2%88-%EB%B3%B4%EC%84%9D-%EB%8F%84%EB%91%91
///
#include <iostream>
#include <vector>
#include <queue>
#include <set>
#include <algorithm>
#in... |
8e994f7f13fbd4f47e83856af5d7cd47e6c81df7 | 11cf0ec1299b719e1e956a46767673b40bfb1901 | /Code/source/shell.cpp | 0aa6171486ebd9632080cf0eed0aa7a337b9ab8e | [] | no_license | martinerb/RFduino | 21048e55be76d8de2f2b8450285838e37b2bbe55 | 78e8d51df6be48ad625ce5df4acc3278f8db101a | refs/heads/master | 2016-09-05T17:38:48.275907 | 2015-03-24T10:28:45 | 2015-03-24T10:28:45 | 27,217,847 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,727 | cpp | shell.cpp | // Copyright (c) 2014 Martin Erb
//
// 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, publish, d... |
b26cae6b71994dc53823b489576b9ac963db5d90 | 748e950db2ab4511a0f32957e653fc0e025d6c20 | /Day2/RPNCalculator/src/MathFactory.cpp | 01257194427491762f6a942875f23c60f9287ac9 | [] | no_license | tektutor/tdd-c--july2018 | f4b9e133f94916ab6bbd30441858ffb97bf9472f | 7057d7358e95733d277097801db8c09467e24fd6 | refs/heads/master | 2020-03-22T17:44:58.900540 | 2018-07-10T11:36:54 | 2018-07-10T11:36:54 | 140,413,298 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | cpp | MathFactory.cpp | #include "MathFactory.h"
map<string,MathOperation*> MathFactory::mathOperatorMap;
MathOperation* MathFactory::getMathObject ( string mathOperator ) {
mathOperatorMap["+"] = new Addition();
mathOperatorMap["-"] = new Subtraction();
mathOperatorMap["*"] = new Multiplication();
mathOperatorMap["/"] = new Division(... |
e7f9a57280ad616aa2f91b34903afc8a6c84121c | 1479561071f34bc92cba23cb9d99efdcf71f05cd | /test/test_cancel.cpp | e9baffb16be78c07902e0faaba1283dc9dbff550 | [
"MIT"
] | permissive | bloomen/transwarp | 9c9203b8f5f655cd6d875149024612d4ff2c8e39 | 4c7b2e492b6c389f76d3e4001aeecf4ff516b22c | refs/heads/master | 2023-06-01T01:17:52.491657 | 2023-05-18T09:33:10 | 2023-05-18T09:33:10 | 79,993,446 | 633 | 58 | MIT | 2022-06-24T10:53:16 | 2017-01-25T07:43:33 | C++ | UTF-8 | C++ | false | false | 2,693 | cpp | test_cancel.cpp | #include "test.h"
template<typename Functor, typename TaskType>
void cancel_with_schedule_all(int expected, Functor functor, TaskType task_type) {
std::atomic_bool cont(false);
auto f0 = [&cont] {
while (!cont);
return 42;
};
auto task1 = tw::make_task(tw::root, f0);
auto task2 = tw::... |
8e1efc6b4937d5b79d82977d1aa52d77cb2bcea6 | a669f5bc2527de0175d808ec5466cbf884453493 | /zerork/src/zerork/perf_net.h | 8d693b5a52fa6b4d7a0b86137994ad8be8e0ccfa | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ZmengXu/zero-rk | 032c425862ba6a0500a7ce615c519cf570bdcb7c | 9341e4f5b96371861e4ba0706c00fac9093d4fd0 | refs/heads/master | 2020-07-31T00:56:35.648254 | 2019-07-01T22:17:32 | 2019-07-01T22:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,482 | h | perf_net.h | #ifndef ZERORK_PERF_NET_H
#define ZERORK_PERF_NET_H
#include "info_net.h"
#include "rate_const.h"
#include "external_funcs.h"
namespace zerork {
typedef struct
{
int reactantIdx;
int stepIdx;
int specIdx;
} multSort;
int compare_multSort(const void *x, const void *y);
int compareSpecStep_multSort(const void *... |
ecb6447b48b70daa3d2112947ecf4d5dbc341e4f | 22cfc0e071e6f38a568f72df1e6fa328ce96df70 | /bin/Inc/WinAPI/WinINetI.inc | 429ecafbd98c6d84129045022838f8ed21d08873 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | CN-xLeaves/LzRPA | e0ffa58b449f78ceade57a8000e019e340149110 | eb40d5bc2c09e4aaba86276cf1a0331b3acd002e | refs/heads/master | 2020-07-01T23:00:30.849126 | 2020-01-25T20:34:14 | 2020-01-25T20:34:14 | 201,329,440 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 42 | inc | WinINetI.inc | #INCLUDE THIS ONCE
#INCLUDE "WinINet.inc"
|
7a4b2fa47bbb4f23ff470929f618e9417dfd53f9 | f7c30f1c5c622c40496170a193693260c5633296 | /zip/ZipFile.h | 5a6ba94ff890b5782f14c740d2e56dafa1c25f75 | [] | no_license | noodle1983/UnityAndroidIl2cppPatchDemo-libboostrap | 84596b45d961edcbfcb26e4ed2a47370fa1e6af1 | 7594c4d715a655460ec4801c1e7ef175f6139616 | refs/heads/master | 2022-05-11T21:50:55.586689 | 2022-03-07T14:27:45 | 2022-03-07T14:27:45 | 167,650,240 | 114 | 59 | null | 2022-03-07T14:27:47 | 2019-01-26T04:38:23 | C++ | UTF-8 | C++ | false | false | 2,057 | h | ZipFile.h | /*
* Copyright (C) 2006 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
69642991fee9a4f09b626e40c5434470455b3bb8 | 90993e6b40799a7011dfea6b962caba704ecd4cc | /graphicsclass.h | 1d62f49a884d58585ea3b970f616d93f2e742fab | [] | no_license | SilverXenolupus/DMArcadeInterface | 454e797b91503b3445d84a5efcfa3d10ae58cd75 | 435b07ed227002beaeb4591a9ee5ea031ac06c5e | refs/heads/master | 2021-01-16T21:23:21.299231 | 2015-06-30T18:23:44 | 2015-06-30T18:28:07 | 38,325,026 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,388 | h | graphicsclass.h | #ifndef _GRAPHICSCLASS_H_
#define _GRAPHICSCLASS_H_
#define _CRT_SECURE_NO_WARNINGS
#include <math.h>
#include "d3dclass.h"
#include "debugoutput.h"
#include "cameraclass.h"
#include "modelclass.h"
#include "lightshaderclass.h"
#include "lightclass.h"
#include "textureshaderclass.h"
#include "bitmapclass.h"
#include ... |
5b19ebcefeca85c94f22aa8a87bc66a8f15362e0 | 8564add3f8918a437269bb3e9c9efeff19852741 | /TomaszRoczniak2DEngine/src/Application.cpp | 363a5c3cd12a1e25b3ce52a0d0df6ff0b7301b03 | [] | no_license | tomaszr123/2DEngine | e6f43e1eae6d50bea04e6b9b7ce789949315bafd | 3145fdee6b89e8ee3afa5bebb7b14eccac15b30c | refs/heads/master | 2021-01-18T15:18:56.728784 | 2015-01-29T11:05:12 | 2015-01-29T11:05:12 | 26,112,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,612 | cpp | Application.cpp |
#include <stdio.h>
#include <stdlib.h>
#include "Application.h"
#include <assert.h>
#include "CTexture.h"
#include "CSpritebatch.h"
void APIENTRY glErrorCallback(GLenum source,
GLenum type, GLuint id, GLenum severity,
GLsizei length, const GLchar* message,
GLvoid* userParam)
{
(void)source;
(void)type;
(void)id... |
76175b7d786e4f70b034d1c8d51f57971a8fd4f7 | b4221d69ee615a6f49d9d8f3720403beab077b95 | /PersonnelReport.cpp | bc19febe9b05feef1c3d76173890d3dca2da2376 | [] | no_license | 01134iexist/CplusplusChapter14Numdays-Timeoff-andPersonnelReport | 32e67864c597362005cca18254857be38413bbca | 221839f5c18784280a13f5d01d71ffcf19d42ff5 | refs/heads/master | 2020-03-14T17:57:20.974876 | 2018-05-01T15:53:14 | 2018-05-01T15:53:14 | 131,732,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 610 | cpp | PersonnelReport.cpp | #include "TimeOff.h"
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
int main() {
//gathering user input
cout << "Enter amount of time worked (in months) : " << endl;
int months;
cin >> months;
//creating time off object
TimeOff testing;
testing.setMaxVacation(months);
cout << "Va... |
f9d5be106ea343e2320bef102f312ea0ee96fb26 | 2c8c79094ef43b61cb0045c9d381b21c5e7ad8eb | /labs/lab08_google_tests/date.h | 1df3021877f50955653eb9bccad2f4af599725c2 | [
"MIT"
] | permissive | jonathanzhang98/campus-bus-simulation-system | 952ba11640b99b5e5d0505e73aef63a4db31c6ec | 0a773cdc2fe6252fe2ab6976e242e31800c55d37 | refs/heads/master | 2022-11-05T02:10:00.581445 | 2020-06-24T07:01:15 | 2020-06-24T07:01:15 | 272,104,174 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,383 | h | date.h | /**
* @file date.h
*
* @copyright 208 3081 Staff, All rights reserved.
*/
#ifndef SRC_DATE_H_
#define SRC_DATE_H_
/*******************************************************************************
* Class Definitions
******************************************************************************/
/**
* @brief A ... |
ed104019409c6684831afaf9dd3a6968967004c3 | f9823b937b589e07af236bdd111dcd95458d348f | /IdasDream/OrthoArcballCamera.cpp | 483c73019843581c53a90398e53561a7e2f05c5d | [] | no_license | jercypackson/ezg18-IdasDream | ff083bccf76e65be47d8eae253258dd28638b65f | c72f088f41cf2ad10597c90caea715b9c8b73a92 | refs/heads/master | 2022-03-29T05:08:03.997264 | 2019-01-18T19:45:25 | 2019-01-18T19:45:25 | 148,811,915 | 0 | 0 | null | 2020-01-18T09:42:40 | 2018-09-14T16:00:49 | C++ | UTF-8 | C++ | false | false | 3,519 | cpp | OrthoArcballCamera.cpp | #include "pch.h"
#include "OrthoArcballCamera.h"
OrthoArcballCamera::OrthoArcballCamera(OrthographicProjection op)
: Camera(ProjectionMode(op.left, op.right, op.bottom, op.top, op.near, op.far)), _keyspeed(0.1f), _mouseX(0), _mouseY(0), _yaw(0.0f), _pitch(0.0f), _strafe(glm::vec3(0))
{
}
OrthoArcballCamera::~Ortho... |
5d2a5a38ef29abae5b3e965f116f95b75a03adfc | d060557e4b81040e8c922860dbd4601cf3de6ec0 | /src/deps/drawlines.cpp | d1a7959e205d5327b501a22f073e85993818feaa | [] | no_license | juvenigi/alma | 681b0dd3f8144d443f0cae1ee3b82caf74c50968 | 1a595bf06bf7f20c084e17873f4b1fed7b98cb22 | refs/heads/master | 2020-08-15T11:54:53.919663 | 2020-01-23T11:45:38 | 2020-01-23T11:45:38 | 215,337,344 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 668 | cpp | drawlines.cpp | #include <iostream>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
void setPixel(int x, int y, unsigned int image[][1001]){ // due to overflow
// int cx = abs((int) corr_w * x);
// int cy = abs((int) corr_h * y);
image[x][y] = 0;
}
void line(int x0, int y0, in... |
0e5e7ccb64c558590a0080518a84f0c24d0b51cd | 42f7511ef0f4b7fb34b076e6f09571b63d2c4ce0 | /nasa-final/nasa-lights/nasa-lights.ino | b1316e586d970f1fb972d884012def31e835cf71 | [] | no_license | CassidyJensen/InteractiveSound | b1e7b754624c83e0659b25b17290b7f9dfc9f011 | 1d5412784377b9107da9a6260b4af92f32538fbf | refs/heads/master | 2023-01-20T16:18:27.370626 | 2020-12-03T23:59:37 | 2020-12-03T23:59:37 | 290,927,449 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,201 | ino | nasa-lights.ino | // Arduino Serial Tester
// rld, cycling'74, 3.2008
#include "FastLED.h"
#define DATA_PIN 6
#define LED_TYPE WS2812B
#define COLOR_ORDER GRB
#define NUM_LEDS 20
#define BRIGHTNESS 50
CRGB leds[NUM_LEDS];
long randomvalue = 0; // random value
long countervalue = 0; // counter value
int started = 0; // flag fo... |
41544349a7f5fad1421a371696a82849e067b945 | 80bfecff7fd6db96372456e2f619ebaf4350a6f1 | /ensemble.h | 9e644f9991e1f2b7ac1c42b0155f21af54b3feef | [] | no_license | smalov/decision_trees | 9be265e39a122873873eb488a89bd172ba2bb6bf | 36e867eff64f8ce685f8535ba9f089d0d997540e | refs/heads/master | 2021-01-22T05:24:31.387409 | 2015-08-25T04:14:50 | 2015-08-25T04:14:50 | 38,952,502 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,257 | h | ensemble.h | #pragma once
#include <vector>
#include "training_set.h"
#include "math.h"
// namespace decision_tree_learning_framework {
template <typename Tree, typename Boosting>
class ensemble {
public:
typedef Tree tree_type;
typedef std::shared_ptr<tree_type> tree_ptr;
typedef Boosting boosting_type;
// iteration ... |
1222d4df54855ddedf5a5db2f0d98b01786fdbde | 48298469e7d828ab1aa54a419701c23afeeadce1 | /Common/Packets/CGCharIdle.cpp | aee8ef63e859f6ca5b9ea6e8f0ee3e85a98ea98b | [] | no_license | brock7/TianLong | c39fccb3fd2aa0ad42c9c4183d67a843ab2ce9c2 | 8142f9ccb118e76a5cd0a8b168bcf25e58e0be8b | refs/heads/master | 2021-01-10T14:19:19.850859 | 2016-02-20T13:58:55 | 2016-02-20T13:58:55 | 52,155,393 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 762 | cpp | CGCharIdle.cpp | #include "stdafx.h"
// CGCharIdle.cpp
//
/////////////////////////////////////////////////////
#include "CGCharIdle.h"
BOOL CGCharIdle::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_ObjID), sizeof(ObjID_t));
iStream.Read( (CHAR*)(&m_posCurrent), sizeof(WORLD_POS));
return TRUE ... |
abdbc9151607dfda762f0c0aafab757df73a74c3 | eadefaad20fdaaf418fee03ccf241968e7c0b828 | /lightcone/threads.h | 9cdac9d718c15de2287fd1eeacafa30ecebd5785 | [
"MIT"
] | permissive | shadow-paw/lightcone | 0801d064d49e3ca3f4ada32ec334bf738c2b54dc | b93117fcbd852909171b59f09e7a2e7c3f48a1db | refs/heads/master | 2022-05-25T00:07:07.038180 | 2022-05-08T04:04:56 | 2022-05-08T04:07:17 | 138,475,813 | 3 | 1 | MIT | 2019-04-21T05:46:58 | 2018-06-24T11:20:37 | C++ | UTF-8 | C++ | false | false | 2,025 | h | threads.h | #ifndef LIGHTCONE_THREADS_H__
#define LIGHTCONE_THREADS_H__
#include <thread>
#include "copyable.h"
namespace lightcone {
// -----------------------------------------------------------
//! Thread Pool
class Threads : private NonCopyable<Threads> {
public:
Threads();
virtual ~Threads();
//! Get number of... |
16a45d870f298bb792b8b91d7fbe95f143ff0562 | c89bbbf91d09899202c6a430b88a80c47171b504 | /Msg42.cpp | 8359f1ac2528020f80627acdd67d29e576ee8b44 | [
"GPL-2.0-or-later",
"Apache-2.0"
] | permissive | diffbot/open-source-search-engine | 7a7a410885059da09d79a8cb9a642c62c4798222 | deb5c5b1327303e87c3b182d5396caaeb87191ad | refs/heads/master | 2020-12-25T17:44:38.936899 | 2018-06-14T16:17:32 | 2018-06-14T16:17:32 | 12,497,126 | 25 | 11 | Apache-2.0 | 2018-06-14T16:17:33 | 2013-08-30T22:59:19 | C++ | UTF-8 | C++ | false | false | 4,604 | cpp | Msg42.cpp | #include "gb-include.h"
#include "Msg42.h"
static void gotReplyWrapper42 ( void *state , void *state2 ) ;
static void handleRequest42 ( UdpSlot *slot , int32_t netnice ) ;
bool Msg42::registerHandler ( ) {
// . register ourselves with the udp server
// . it calls our callback when it receives a msg o... |
f029bff7dc586be7f4dc939bfb56323358aa8e51 | ac227cc22d5f5364e5d029a2cef83816a6954590 | /applications/physbam/physbam-lib/Public_Library/PhysBAM_Rendering/PhysBAM_OpenGL/OpenGL/OPENGL_IMPLICIT_SURFACE.h | e8329a2081bd2e0bd588093bb2f53517e4524a10 | [
"BSD-3-Clause"
] | permissive | schinmayee/nimbus | 597185bc8bac91a2480466cebc8b337f5d96bd2e | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | refs/heads/master | 2020-03-11T11:42:39.262834 | 2018-04-18T01:28:23 | 2018-04-18T01:28:23 | 129,976,755 | 0 | 0 | BSD-3-Clause | 2018-04-17T23:33:23 | 2018-04-17T23:33:23 | null | UTF-8 | C++ | false | false | 3,627 | h | OPENGL_IMPLICIT_SURFACE.h | //#####################################################################
// Copyright 2002, Robert Bridson, Eilene Hao, Geoffrey Irving, Neil Molino.
// This file is part of PhysBAM whose distribution is governed by the license
// contained in the accompanying file PHYSBAM_COPYRIGHT.txt.
//#############################... |
34c016ae6dda66666a6b7fedc572ccaaa559c595 | bf9fe5d49f5eadb5438788993718332d620052c0 | /Classes/HelloWorldScene.h | 8640757e39ad3254d8575afa368704cb82e59b79 | [
"MIT"
] | permissive | noprops/SpriteTest | 3a3b9dc15e7740f95d18a7311bb672aee1b6c7b1 | 090b76ed37310f452b8ac87a896d3a4ed8c99573 | refs/heads/master | 2021-01-01T05:46:01.982152 | 2016-05-20T06:18:42 | 2016-05-20T06:18:42 | 59,269,529 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,188 | h | HelloWorldScene.h | #ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__
#include "cocos2d.h"
#define North cocos2d::Vec2(0,1)
#define NorthEast cocos2d::Vec2(1,1)
#define East cocos2d::Vec2(1,0)
#define SouthEast cocos2d::Vec2(1,-1)
#define South cocos2d::Vec2(0,-1)
#define SouthWest cocos2d::Vec2(-1,-1)
#define West cocos2d::... |
a09112856dc5149becb6eb456b47fb7116b78a67 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/angle/src/libANGLE/renderer/gl/wgl/WindowSurfaceWGL.cpp | 9c856a16ca69b0bb1133d9a73a61f98b24c9d441 | [
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 5,116 | cpp | WindowSurfaceWGL.cpp | //
// Copyright 2015 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// WindowSurfaceWGL.cpp: WGL implementation of egl::Surface for windows
#include "libANGLE/renderer/gl/wgl/WindowSurfaceWGL.h"
#include "comm... |
3b93f1fc1d1fbb7869096d103bf0fbdfab198664 | 0460c2da88903203448225d2a6d08d0a1a648521 | /CRMui/examples/AllMethods/AllMethods.ino | 9ae2a1bf5156c431c514f3a46688d7ac27f9a887 | [
"MIT"
] | permissive | ilyukevich/CRMui | 8c4adf6a1c089e97383034a762df0ec7b6a052b6 | 0f608decbc7bd076e212dcb4299f07694d754fab | refs/heads/master | 2023-05-31T13:55:03.700438 | 2021-07-07T06:41:11 | 2021-07-07T06:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,038 | ino | AllMethods.ino | #include "CRMui.h"
#define LED 2 //Светодиод на плате, муляж устройства.
CRMui crm;
long cnt; //тестовая переменная
bool checkbox_1;
void setup() {
Serial.begin(115200);
crm.led_conf(LED, LOW, true); //LED индикация (Порт, Начальное значение, Инверсия значения)
//СИСТ... |
294867e473e678f9467e67a6299feb7a3b9015f5 | b6ae8feca67392d8d350a84c9c0b88ea8e21c031 | /src/cpp/lib/Profiler.cpp | bca7e20357bda0b4b3d6573ad22612e51fc06164 | [] | no_license | gradido/gradido_login_server | 3192135cc563b068ebc9b9eb4ac416c1dae29f88 | ca71af1817a801db9a108c205bc298250d498c4b | refs/heads/master | 2023-03-23T15:38:55.649220 | 2021-03-14T09:21:18 | 2021-03-14T09:21:18 | 335,353,004 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,654 | cpp | Profiler.cpp | #include "Profiler.h"
#include <sstream>
Profiler::Profiler()
{
reset();
}
Profiler::Profiler(const Profiler& copy)
{
mStartTick = copy.mStartTick;
}
Profiler::~Profiler()
{
}
double Profiler::millis() const
{
auto current = std::chrono::high_resolution_clock::now();
std::chrono::duration<double, std::milli> ... |
c79b0b41f27169d32091316aa2c6214cdadf2288 | 4756d850723f624613b5c79f0385987e6b3c03db | /atb70d.cpp | d170f24635d04febd950152fb5dba2180473c76e | [] | no_license | helycopter/learning | 7012d76f62f1dfa5770974c43fa1a5dda753471c | 302c46b370608bb3ad5f952181c2084f4d91b98f | refs/heads/master | 2021-07-11T19:31:24.956760 | 2017-10-08T11:04:57 | 2017-10-08T11:04:57 | 106,122,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 860 | cpp | atb70d.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define sc(x) scanf("%lld",&x)
#define pr(x) printf("%lld\n",x)
#define clr(x) memset(x, 0, sizeof(x))
#define all(x) x.begin(), x.end()
typedef pair<ll, ll> pii;
typedef vecto... |
a243174f32100266eb2ec05246688c31245d1a0f | 4b0c1bbed45c0299d3b5e2b3198baf3056eef485 | /cone.h | 77263afa2be797c5d7096ea7ae6f7301d15f2360 | [] | no_license | EgorBloke/Cone | 3b3b87c6d60530271915136ed795d28cf475b2f3 | ab389e4ba95adbde34da83b24eb894387aa8e696 | refs/heads/main | 2023-07-15T17:44:02.402999 | 2021-08-25T08:03:08 | 2021-08-25T08:03:08 | 399,738,378 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 4,365 | h | cone.h | #ifndef CONE_H
#define CONE_H
#include<iostream>
#include<vector>
#include<cmath>
//class Point;
//class Triangle;
class Point { //класс для хранения координат точки
public:
Point(double x = 0., double y = 0., double z = 0.) : x(x), y(y), z(z) {}
void setValues(double x, double y, double z)
... |
94cca017d2d32d850fc33d5460645854b6086ba4 | 74bfbe4e43762bf8d13832b22e0c777421084099 | /Classes/KeyboardControl.h | 769baeab2924f094073a535c74734a04b1f12fa0 | [] | no_license | Brusi/Ledge | 3205b9f4c70fe54800febc7be27c6cbace0bf51d | bf7571cf3e787541ab1cf72d52cb14d1c827d5df | refs/heads/master | 2016-09-05T11:01:31.909903 | 2014-09-25T19:00:20 | 2014-09-25T19:00:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 459 | h | KeyboardControl.h | #ifndef _KEYBOARD_CONTROL_H_
#define _KEYBOARD_CONTROL_H_
#include "Control.h"
#include "cocos2d.h"
#include <set>
/*
* Keyboard Control
*/
class KeyboardControl : public Control {
public:
// Constructor. Gets the node to listen to.
KeyboardControl::KeyboardControl(cocos2d::Node* node);
virtual bool isKe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.