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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6235367d48e5414b9b90a3fe22501d6384991166 | 2e262663a3c974653ed5f5ca9753edb9ac4f44cd | /vector_test.cpp | e2e1e07473748b0c9356da99da078decddc0d211 | [] | no_license | yuzhidi/CppStudy | 759f782cff831c811737c4eb9d37689572b86daf | ab0db9cb7f1cac6dd08426bd83a329d761f08c8a | refs/heads/master | 2021-09-10T04:47:08.193569 | 2018-03-21T02:52:13 | 2018-03-21T02:52:13 | 126,112,703 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 700 | cpp | vector_test.cpp | #include <iostream>
#include <vector>
struct LeoStruct {
int i;
std::string s;
LeoStruct(int i, std::string s):i(i),s(s){}
};
int main()
{
// 创建含有整数的 vector
std::vector<int> v = {7, 5, 16, 8};
LeoStruct ls0 = LeoStruct(1, "one");
std::vector<LeoStruct*> lv;
lv.push_back(&ls0);
// ... |
993af0620c2b88e82da4264c2ba5a691ccd14eba | cd99ca9461435d1417cb146d966e54272fbcc7ad | /3rd party/maxsdk/samples/render/RapidRTRenderer/Translators/BaseTranslator_AMG_to_RTIShader.h | 22e8f29417779aeeff89538e6fe0069bb18806fd | [] | no_license | mortany/xray15 | eacce7965e785dd71d1877eae25c1f9eff680eec | 72a13fb24e9b388850bc769427c231da8f599228 | refs/heads/master | 2020-08-02T20:45:23.493981 | 2019-10-14T18:48:48 | 2019-10-14T18:48:48 | 211,499,718 | 0 | 0 | null | 2019-09-28T12:50:47 | 2019-09-28T12:50:46 | null | UTF-8 | C++ | false | false | 1,352 | h | BaseTranslator_AMG_to_RTIShader.h | //////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk license
// agreement provided at the time of installation or download, or which
// otherwise accompanies... |
a05096c0dfb33722b99dea30027c1d54b1099f3a | eb5cc826628b9601542337883dd4f645a32a1535 | /Training Qt/reseau.cpp | 1cbd097dbaa670a58a6b318ce95911be82a14971 | [] | no_license | TenKaiMass/Projet-reseau-de-neurones | 904bd3fab0e65dd597da5ab49d1238a754752fa5 | 6461e2827a4fa819d755ca90b963098567413bc3 | refs/heads/master | 2023-05-15T08:09:26.011404 | 2021-06-25T13:47:44 | 2021-06-25T13:47:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,594 | cpp | reseau.cpp | #include <eigen3/Eigen/Dense>
#include "reseau.hpp"
#include "couche.hpp"
#include "gestionnaireMemoire.hpp"
#include "MainWindow.hpp"
#include <iostream>
#include <map>
#include <vector>
#include <cmath>
using namespace Eigen;
using namespace std;
Reseau::Reseau(Parametres p)
{
typeSim = p.typeSim;
nbCouches = p... |
f31a6b77f2968065c9423f873acedd26a241f768 | 4c52be4df12bd8beb241fd9823cdd69d7fb3a70c | /QUEIS.cpp | 08f774cffd468cb745324758955d2fdb3e8d378d | [] | no_license | superfanc/cppstack | 1355ed9cc6ab11b5ff378b2e73f20e0bb259240f | 084ea049c31cce781d9842e3b637a20a6d5fa0b6 | refs/heads/master | 2021-01-12T17:27:06.496922 | 2016-10-21T14:40:03 | 2016-10-21T14:40:03 | 71,567,070 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 912 | cpp | QUEIS.cpp | //
// QUEIS.cpp
// Stack
//
// Created by fanaticheng on 2016/10/21.
// Copyright © 2016年 fanaticheng. All rights reserved.
//
#include "QUEIS.hpp"
QUEIS::QUEIS(int m):STACK(m),s(m){ }
QUEIS::QUEIS(const QUEIS &q):STACK(q),s(q.s){ }
QUEIS::operator int() const{
return STACK::operator int();
}
QUEIS& QUEIS::ope... |
834f41e9b2f72ff1858215a26c44984c731932a5 | dac5254630fefae851da7c843dcab7f6a6af9703 | /MacOS/Sources/Plugins/General/CPluginRegisterDialog.cp | dcc6c0b1088381ebf23a73a0bf582666d311cc2c | [
"Apache-2.0"
] | permissive | gpreviato/Mulberry-Mail | dd4e3618468fff36361bd2aeb0a725593faa0f8d | ce5c56ca7044e5ea290af8d3d2124c1d06f36f3a | refs/heads/master | 2021-01-20T03:31:39.515653 | 2017-09-21T13:09:55 | 2017-09-21T13:09:55 | 18,178,314 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,963 | cp | CPluginRegisterDialog.cp | /*
Copyright (c) 2007 Cyrus Daboo. 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 re... |
a19d9dee53f0b6ff7b7b2d375f8e2df65796294f | 3efc50ba20499cc9948473ee9ed2ccfce257d79a | /data/code-jam/files/635101_Frank_563117_1_extracted_A.cpp | 9fc210fe80b42bc116f7b9bceb69d0489bd41f8e | [] | no_license | arthurherbout/crypto_code_detection | 7e10ed03238278690d2d9acaa90fab73e52bab86 | 3c9ff8a4b2e4d341a069956a6259bf9f731adfc0 | refs/heads/master | 2020-07-29T15:34:31.380731 | 2019-12-20T13:52:39 | 2019-12-20T13:52:39 | 209,857,592 | 9 | 4 | null | 2019-12-20T13:52:42 | 2019-09-20T18:35:35 | C | UTF-8 | C++ | false | false | 1,348 | cpp | 635101_Frank_563117_1_extracted_A.cpp | #include<stdio.h>
#include<vector>
#include<string.h>
#include<string>
#include<iostream>
using namespace std;
#define MAX 110
vector<string> root[10000];
int n, m;
void readin()
{
char in[MAX], *p;
root[0].clear();
scanf("%d %d\n", &n, &m);
for(int i = 1; i <= n+m; i++)
{
root[i].clear();
... |
301ce606950fe468faa63b5f35b0b6effad0dbb9 | e8bdcb97aab89e1bf86c4a318d59fe0de1136f27 | /llama/include/llama/loaders/ll_load_utils.h | 2efd5b638df817173358d14bde6e3de7051f4468 | [
"BSD-3-Clause"
] | permissive | biqar/llama-fork | 97e071d8e8d94cdf1a20ae8fe494787dd4e64e02 | 039c31291496dff0a9a79391ce6eb9cdfaf4d306 | refs/heads/master | 2023-07-07T04:05:50.204444 | 2020-10-19T04:35:02 | 2020-10-19T04:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 37,432 | h | ll_load_utils.h | /*
* ll_load_utils.h
* LLAMA Graph Analytics
*
* Copyright 2014
* The President and Fellows of Harvard College.
*
* Copyright 2014
* Oracle Labs.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
... |
b53415bfb16422a4fdd1c3a270d783d0467cdb11 | 796f8851d2509455dc2f89592a51bcd8d022948d | /20190119-3주차-3일차/전현승/B.cpp | 60235329b5a39a17b8823cc6b04296d09268428f | [] | no_license | rhythm-union/2019-algorithm-study | ade8c4adedea0acf54f1183a1e6a3c8eaed814f0 | 92e6ad25b0cf9614f5f7da734a547d12302c0491 | refs/heads/master | 2020-04-14T02:24:44.056689 | 2019-02-15T17:56:45 | 2019-02-15T17:56:45 | 163,582,114 | 9 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 667 | cpp | B.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
#ifdef DEBUG
freopen("in.txt", "r", stdin);
#endif
int w[3404], d[3404], dp[2][12882] = {0, };
int n, m; cin >> n >> m;
for (int i = 1; i <= n; i++) {
cin >> w[i]... |
da0aa4418ec810c29cba79156378245cfe3188d1 | 81ff4f4476fb8ad5b9df7a584bf21bfc38a5750a | /Arduino/tresLedSend/tresLedSend.ino | 11c441cf18928bde4e9596c7ca78f5883f82ea32 | [] | no_license | numantino/cursosUdemy | 59e1906ab9f915279819984685e1fcc10618abd9 | 7d8d218820002c1e5601554a4720cdf9125b331e | refs/heads/main | 2023-08-27T08:07:31.467961 | 2021-10-28T17:06:31 | 2021-10-28T17:06:31 | 314,204,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,369 | ino | tresLedSend.ino | #include <EEPROM.h>
#define LED_PIN_R 12
#define LED_PIN_A 11
#define LED_PIN_V 10
#define LED_PIN_B 9
#define MAX_ARRAY 4
#define VAL_LED_INICIAL 0
int arrayLed[MAX_ARRAY] = {LED_PIN_R,LED_PIN_A,LED_PIN_V,LED_PIN_B};
void apagarTodosLed(){
//Apagamos todos los leds
for (int i=0;i<MAX_ARRAY;i++) digitalWrite(ar... |
cd1e8fad65d76cdd0357488820b2203d5f355380 | a1684f4bde0322f2acab6c33ce137fbf9585faf6 | /Src/ShadowFX/CSHFXResourceMgr.cpp | 105eedf52b0d4959408f79750b45336b3179d895 | [] | no_license | benyeoh/arf | 339fd592c0fb000ad8827f8aa1b1fa4c612d9d87 | 42514908f5478c476bb00802035fa2a3253811f5 | refs/heads/master | 2021-12-31T10:36:27.501754 | 2021-12-19T15:13:56 | 2021-12-19T15:13:56 | 181,698,538 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,109 | cpp | CSHFXResourceMgr.cpp | //==============================================================================
//
// CSHFXResourceMgr.cpp
//
// A description here
//
// Author: Ben Yeoh
// Date: 8/15/2008
//
//==============================================================================
#include "ShadowFXFramework.h"
_NAMESPA... |
a5c10b36754f1b25375e3af7c1f5d78c2b43288a | d0e4275244e0eba2b0c1fc2c518e04f0212e3bac | /uva/triangle.cpp | ece33a011a63e16560ae22465e208b3fc6ebc40f | [] | no_license | IamYourAlpha/CONTEST-CODES | 0b34ba29ef7cfa725539c069bc8a1e3ba5b8e54f | e8b12e08af53fcff4bdc08cc7a42eecd5598a83d | refs/heads/master | 2021-06-08T13:00:35.511893 | 2021-02-26T07:44:45 | 2021-02-26T07:44:45 | 97,600,150 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 569 | cpp | triangle.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
inline ll gcd(ll a,ll b) {
ll t;
while(b) {
a=a%b;
t=a;
a=b;
b=t;
}
return a;
}
int bamboo[100];
int main(){
//freopen("input.txt","r",stdin);
int tc;
cin >> tc;
int n;
while(tc--){
... |
d5143e4dbefb6f16c37b985008c9e839216b8f5d | a21d7710b1d193ae7ee12205c2af2c47db09905e | /LeetCode/Problems/Algorithms/#782_TransformToChessboard_sol4_greedy_and_bit_manipulation_O(N^2)_time_O(1)_extra_space_8ms_10.3MB.cpp | e11c69691ae766bd19e97476ffad88d84181c316 | [
"MIT"
] | permissive | Tudor67/Competitive-Programming | 0db89e0f8376cac7c058185b84fdf11dcb99dae8 | 827cabc45951ac33f63d1d6e69e57897207ea666 | refs/heads/master | 2023-08-19T05:22:10.451067 | 2023-08-14T21:21:51 | 2023-08-14T21:21:51 | 243,604,510 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,736 | cpp | #782_TransformToChessboard_sol4_greedy_and_bit_manipulation_O(N^2)_time_O(1)_extra_space_8ms_10.3MB.cpp | class Solution {
private:
const int INF = 1e9;
bool isChessBoard(const vector<vector<int>>& BOARD){
const int N = BOARD.size();
for(int row = 0; row < N; ++row){
for(int col = 0; col < N; ++col){
if(row >= 1 && BOARD[row - 1][col] == BOARD[row][col]){
... |
9b185c38388883be82d4ff79b866aaf03c78a0ed | 72c0fb28326ee8c4a453d22b607febfaa579dd78 | /ClsMonitor/Process/KillProcessScheduler.cpp | 1f0debc79bd66ea9b4180bb73a3638a20b454b3f | [
"MIT"
] | permissive | inker610566/ClsMonitor | cf53242bd0f577db6967c3498149a20ab0286d53 | 185dd3ac4bdde0e8dcaa1dfeacf263d136fe0cdd | refs/heads/master | 2020-07-09T21:53:06.957846 | 2016-12-05T19:20:41 | 2016-12-05T19:20:41 | 74,028,408 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,394 | cpp | KillProcessScheduler.cpp | #include "KillProcessScheduler.h"
#include "../Utils/ConsoleLogger.h"
namespace Process
{
const wchar_t *ScreenLockerPath = L"C:\\Program Files (x86)\\ClsMonitor\\ScreenLocker.exe";
Process::KillProcessScheduler::KillProcessScheduler(Blacklist *init_list, WMIServiceProxy * service)
:list(init_list), service(servic... |
80e93f65bbc4b636631c74776ebfed733aebd987 | 8a0e9e926f488873d8e1ee98f2eb90649c234a8b | /include/cavi/core.h | ab241c044a9a61e2857744c60deaf888efb92ac0 | [
"BSL-1.0"
] | permissive | bnbajwa/cavi | 667b99b034686912c9c8437a63575630e4c8d04f | 2963230ebce3500993644bd3186035c45d51af88 | refs/heads/main | 2023-07-15T19:48:40.438410 | 2021-08-26T12:03:00 | 2021-08-26T12:03:00 | 400,142,673 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28,880 | h | core.h | // Copyright Baber Nawaz 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
#ifndef CAVI_HEADER_CAVI_H
#define CAVI_HEADER_CAVI_H
#include "lib.h"
#include "mp.h"
namespace cavi {
temp... |
9ecb896c1082df0cb0361eb78b20eb12c7bdfde6 | e0904d35f0b89fed8ebdeb6e08864c0208006954 | /ProcessLib/Output/SecondaryVariable.cpp | b19e9370943c5083ac50fb7424b58e29a029b531 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ufz/ogs | e3f7b203ac960eeed81c3ad20e743b2ee2f4753e | 073d0b9820efa5149578259c0137999a511cfb4f | refs/heads/master | 2023-08-31T07:09:48.929090 | 2023-08-30T09:24:09 | 2023-08-30T09:24:09 | 1,701,384 | 125 | 259 | BSD-3-Clause | 2021-04-22T03:28:27 | 2011-05-04T14:09:57 | C++ | UTF-8 | C++ | false | false | 2,306 | cpp | SecondaryVariable.cpp | /**
* \file
* \copyright
* Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "SecondaryVariable.h"
namespace... |
784b1aaa62fef462b5a75fbd019a88e81ae76c87 | 29af718d33105bceddd488326e53dab24e1014ef | /TestSystem/messages/TestLevel.hpp | d116b6e5af66f5424d217b9a7d33d5501c72a691 | [] | no_license | OKullmann/oklibrary | d0f422847f134705c0cd1eebf295434fe5ffe7ed | c578d0460c507f23b97329549a874aa0c0b0541b | refs/heads/master | 2023-09-04T02:38:14.642785 | 2023-09-01T11:38:31 | 2023-09-01T11:38:31 | 38,629 | 21 | 64 | null | 2020-10-30T17:13:04 | 2008-07-30T18:20:06 | C++ | UTF-8 | C++ | false | false | 3,140 | hpp | TestLevel.hpp | // Oliver Kullmann, 15.2.2006 (Swansea)
/* Copyright 2006 - 2007 Oliver Kullmann
This file is part of the OKlibrary. OKlibrary 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 and included in this library; either ve... |
b00857519f39081d7a938ecff545d2eb954c4ed4 | 49ed10fa6bf2b585daf6ac66dc5da0042ac3d130 | /main.cpp | bd04cadf036128cf60a5661b041feeb68353e3b2 | [] | no_license | eprana/Zipix | 6b0925d3a59d15b38d68067b6209e221d9765943 | c0a0e52ef495709d6074ab0daae02d65a64def29 | refs/heads/master | 2020-05-18T18:56:29.856635 | 2014-01-28T07:29:07 | 2014-01-28T07:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,349 | cpp | main.cpp | #include <iostream>
#include <cstdlib>
#include <ctime>
#include <glm/glm.hpp>
#include <glm/gtc/random.hpp>
#include "Game.hpp"
#include "renderer/WindowManager.hpp"
#include "ConstantForce.hpp"
#include "PolygonForce.hpp"
#include "HookForce.hpp"
#include "BrakeForce.hpp"
#include "GraphBrakeForce.hpp"
#include "G... |
bb3bffc18f08975d66ab3b99f14b2d3592ddf7d2 | 75f26c2678a8c16899ae58a07879a7e3c6d2d36a | /Kernel/tRareSaveStack.h | 5bb7e3ca2b82de5b4626333cbba42871651af088 | [] | no_license | tweag/factplusplus | ce94e4c87e52e9f1353e34043319592bed2d7bb9 | d7f377351d82ea5243262538e43ddc4f0312ecdf | refs/heads/master | 2021-05-01T04:20:52.485504 | 2016-09-16T07:06:52 | 2016-09-16T07:06:52 | 75,384,013 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,417 | h | tRareSaveStack.h | /* This file is part of the FaCT++ DL reasoner
Copyright (C) 2003-2015 Dmitry Tsarkov and The University of Manchester
Copyright (C) 2015-2016 Dmitry Tsarkov
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Softwar... |
e2ed3ddb589e59ca80215b1d56485b361d14076b | 883a4d2e9e3216e314cbcac4809b193cd8302eac | /RTOS/process_b.h | 6377e072af8f71054d5c8e70af860aec46986b8f | [] | no_license | ycechung/uni_code | 1a6da58f93b0a22fc797f3b1ea9f4c052725488e | 70b5a6a3e86116d5d7af5f71c33a58c1640e143f | refs/heads/master | 2020-06-29T23:21:40.073931 | 2012-03-10T02:43:21 | 2012-03-10T02:43:21 | 3,676,563 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 194 | h | process_b.h | /**
Header file for process b.
**/
#ifndef PROCESS_B_H
#define PROCESS_B_H
#ifdef _WIN32
#pragma once
#endif
#include "rtx.h"
class ProcessB : private Process
{
PROCESS_DECLARE()
};
#endif
|
9ba99eec301aac8b30b767b89e6fdc97025db349 | e94409baa6864db04a7785fbd7346c9e95dc85d5 | /sources/sim/fsim/E14Fsim/src/E14FsimBHPVModule.cc | 9e072acfe2240daa0e9581d80098f1b61c3bda6a | [] | no_license | laerad84/e14 | 3d9be7b6712df3534dcba2132a6f9e3ed8b517fc | 89875a124b1d7bb960b5919e75747c90bf72996d | refs/heads/master | 2016-09-16T00:46:33.493744 | 2012-06-18T06:46:57 | 2012-06-18T06:46:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,743 | cc | E14FsimBHPVModule.cc | #include "E14Fsim/E14FsimBHPVModule.h"
#include "E14Fsim/E14FsimPersistencyManager.h"
#include "E14Fsim/E14FsimVeto.h"
#include "GsimData/GsimGenParticleData.h"
#include "GsimData/GsimDetectorEventData.h"
#include "TMath.h"
#include <cmath>
E14FsimBHPVModule::E14FsimBHPVModule()
: E14FsimAnalysisModule()
{
m_de... |
40d2dbd29f49c04dbb4bb03cf2bb0029dd641ff6 | b7ee9ac14d6981e18fa1b19214366878a4884a42 | /Projects/Skylicht/Engine/Source/Tween/CTweenVector2df.h | da5a91092eab6bc897db41b49cc150dfa5a41baa | [
"MIT"
] | permissive | skylicht-lab/skylicht-engine | 89d51b4240ca6ed5a7f15b413df5711288580e9e | ff0e875581840efd15503cdfa49f112b6adade98 | refs/heads/master | 2023-09-01T02:23:45.865965 | 2023-08-29T08:21:41 | 2023-08-29T08:21:41 | 220,988,542 | 492 | 46 | MIT | 2023-06-05T10:18:45 | 2019-11-11T13:34:56 | C++ | UTF-8 | C++ | false | false | 464 | h | CTweenVector2df.h | #pragma once
#include "CTween.h"
namespace Skylicht
{
class CTweenVector2df : public CTween
{
protected:
core::vector2df m_value;
public:
CTweenVector2df(const core::vector2df& begin, const core::vector2df& end, float duration);
virtual ~CTweenVector2df();
virtual void updateValue();
void setBegin(... |
561dd7ff87e2c676624de6905a6d2746878e1edb | b8c6b9a4b3a5f7fc317e3aa8d68d18e47182e2e1 | /DataStructureAndAlgorithmTest/002 - HamiltonianCycle.cpp | bfe1fd72c7bd529e986e4f5554703f806a31f247 | [] | no_license | ajinidev/MyLearning | 30a7f20a57351ababaa9c0cc24dbbefd63c9d687 | f17532915d4d7cdc2da5f175b6d18393c39c46bf | refs/heads/master | 2023-07-04T01:47:05.093061 | 2021-08-16T17:05:41 | 2021-08-16T17:05:41 | 361,156,321 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,653 | cpp | 002 - HamiltonianCycle.cpp | #include "pch.h"
#include <string>
#include <vector>
using namespace std;
class HamiltonianCycle {
int numVertex;
int* path;
vector<vector<int>> matrix;
HamiltonianCycle(vector<vector<int>> matrix) : matrix(matrix) {
numVertex = matrix.size();
path = new int[numVertex];
}
vect... |
cb7a1a80dbc53e82a66c2da8c81514e115e21379 | 9364532f28b197228b6e0188d863aca0222d6795 | /src/cpp/H8R.cpp | 1fb0e4ed420d67d546abb111804e8b082430a269 | [] | no_license | haoxiangmiao/finite_elements_assignment | c1782b91ab1949bbb71eeb1d1c90b0109eaa2748 | 07d18600fa572ca209948d7b607994217336028a | refs/heads/master | 2021-05-17T18:22:45.126574 | 2019-06-19T11:02:49 | 2019-06-19T11:02:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 49,752 | cpp | H8R.cpp | /*****************************************************************************/
/* STAP++ : A C++ FEM code sharing the same input data file with STAP90 */
/* Computational Dynamics Laboratory */
/* School of Aerospace Engineering, Tsinghua University ... |
7bc510dca352b590ee79120941d39089d3ca7520 | 64cbc0ae0e7fe75820ffb2d775db2e31578ff9a5 | /NetworkIPCServer/server-socket-fork.cpp | 3cfe99bc8e4f34ef39a66e5afa5042cf52e8e841 | [] | no_license | lilelr/accumulation-unix-programming | 12349c847737c31b61d02b91458f0d44855c42cf | 3a83a4e49cf3eb270a10a260f712c70e71eccae7 | refs/heads/master | 2021-01-24T03:49:04.985179 | 2018-06-07T09:45:56 | 2018-06-07T09:45:56 | 122,907,206 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,240 | cpp | server-socket-fork.cpp | #include "../NetworkIPCSockets/apue.h"
#include <netdb.h>
#include <errno.h>
#include <syslog.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/wait.h>
#define QLEN 10
#ifndef HOST_NAME_MAX
#define HOST_NAME_MAX 256
#endif
int
initserver(int type, const struct sockaddr *addr, socklen_t alen,
in... |
6793af54d173355827c6b32c8151ff68d4705d96 | 992955baa81b9f4083b0bd494eb6a1b01a155fd1 | /Networking Project/Networking Project/ServerConenction.cpp | f97f3a1084ec5ef792a16c63fdc1131c324be921 | [] | no_license | MichaelBridgette/Networking-SDL | 2133b89421d437cb814ca509182548bd904c598f | 881c5a035b6a745c731745d864d4bc5c2b67131e | refs/heads/master | 2020-04-10T23:44:59.937033 | 2018-12-13T12:56:43 | 2018-12-13T12:56:43 | 161,363,563 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,804 | cpp | ServerConenction.cpp | #include "ServerConnection.h"
ServerConnection::ServerConnection()
{
}
ServerConnection::~ServerConnection()
{
}
bool ServerConnection::initialise()
{
std::string serverIp = "149.153.106.151";
int serverPort = 54000;
WSAData data;
WORD ver = MAKEWORD(2, 2);
int wsResult = WSAStartup(ver, &data);
if (wsResul... |
3355abd65e1b6b8f04c976ab901548d67edfe7c6 | f9c231a866ef7138c033f301becbf24c8bdca633 | /Test5/tongSoBeHonN.cpp | 895903e2bf9926383fecf853b7c636b8d37796d2 | [] | no_license | cuongnh28/DSAFall2019 | 3eef8f5e0e1cbe008bd304c847dd9abaa4ad144f | 2729d834b3c4a3560bf63aa6d1dcfc7457385246 | refs/heads/main | 2023-02-02T14:41:39.353309 | 2020-12-23T16:20:02 | 2020-12-23T16:20:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 322 | cpp | tongSoBeHonN.cpp | #include<iostream>
using namespace std;
int main(){
int n,F[100][100];
cin>>n;
for(int i=1;i<=n;i++) F[0][i]=0;
F[0][0]=1;
for(int m=1;m<=n;m++){
for(int v=0;v<=n;v++){
if(m>v) F[m][v]=F[m-1][v];
else F[m][v]=F[m-1][v]+F[m][v-m];
}
}
cout<<F[n][n];
... |
75f0c0d9516d4adb657e11c483c3572eaa34fce2 | 0579f0569b7c29f0bac7118b32b7c36c1c3db606 | /src/myimagelabel.cpp | b364463ce449fb260c9299d25938339d2529febc | [
"MIT"
] | permissive | tobiasberling/ImageDiff | 21564a6f5beacc0f36d221348ec2dc7cb3ff7e2a | d3827e8f4d88aab214b32ec93bc09dae62eb9554 | refs/heads/master | 2016-09-02T00:16:45.505165 | 2015-06-03T17:44:55 | 2015-06-03T17:44:55 | 36,819,662 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,376 | cpp | myimagelabel.cpp | #include "myimagelabel.h"
#include <QDragEnterEvent>
#include <QMimeData>
#include <QImageReader>
#include <QPixmap>
#include <QPainter>
#include <QFileDialog>
void MyImageLabel::updateLabelProperties()
{
setAcceptDrops(type == MyImageLabelType::Input);
}
MyImageLabel::MyImageLabel(QWidget *parent):
QLabel(pa... |
5cc67d3480196e0e7a7e49d456c81656d5f25cb6 | 1a0bb8dc80f1283f552baf436d9a8e722c22a8f1 | /proj/fpga/ultra96/camera/Vitis-AI/Vitis-AI-Library/xnnpp/include/vitis/ai/nnpp/facequality5pt.hpp | 3aaa0ae50ca34549cb31fc0760e6aef8f3c474c2 | [
"Apache-2.0",
"MIT"
] | permissive | embedded-bitai/Mercenary | d457dcc2ace4dd4fe4a82489ecd28c61e3b4fe7a | 7762bad28e4f49b2ad84fb8abbd8056bd01f61d4 | refs/heads/master | 2023-01-09T09:24:52.331403 | 2020-11-16T09:22:39 | 2020-11-16T09:22:39 | 297,019,610 | 4 | 9 | MIT | 2020-11-16T09:22:40 | 2020-09-20T06:53:53 | C++ | UTF-8 | C++ | false | false | 3,440 | hpp | facequality5pt.hpp | /*
* Copyright 2019 Xilinx Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
cad54973e83ea2244aa1db14303f379e38d7b8cb | e5c51ddf7540455aadffe3270a75f5c45419e704 | /nfaUsingStack.cpp | cd5066f9f4f6f61d89a08801ad103c5fc0a93712 | [] | no_license | sweety-parmar/compilers | 467f205d2875d69805403ed9af3c6d98c8aae9c5 | 968ab769271661189c11e88a3270ed1303796396 | refs/heads/master | 2021-04-28T08:18:42.969192 | 2018-05-03T11:24:14 | 2018-05-03T11:24:14 | 122,245,653 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,673 | cpp | nfaUsingStack.cpp | #include<iostream>
#include<string>
#include<stack>
#include<vector>
using namespace std;
string new_reg_exp;
string reg_exp;
int i=0;
int priority(char ch)
{
switch(ch){
case '*': return 3;
case '.': return 2;
case '+': return 1;
default: return 0;
}
}
string conve... |
3918f893596301ad541f67c246a2de146d13490f | 23760592f24ce639429ccb7354ba37a905adf20b | /src/llapdispatcher/IController.h | 8fa6d93c115a4fec9f55353ab03ae188bb510e66 | [] | no_license | per1234/Arduino_Lib_LLAPDispatcher | 08ed24b3ccdf6fe9e4695a52f70018c364aa9a9c | 5336335bdee9f17207fa666544f40d7b305642d1 | refs/heads/master | 2020-03-23T08:00:02.950149 | 2016-03-03T14:02:49 | 2016-03-03T14:02:49 | 141,302,594 | 0 | 0 | null | 2018-07-17T14:38:42 | 2018-07-17T14:38:41 | null | UTF-8 | C++ | false | false | 1,374 | h | IController.h | /* IController interface
* Paul Wightmore 2015
*/
#ifndef _LLAPDISPATCHER_ICONTROLLER_h
#define _LLAPDISPATCHER_ICONTROLLER_h
namespace LLAPDispatcher {
class IEndpoint;
class IController
{
public:
//! Dispatch an incoming message from LLAP
/**
* \return true if the message was successfully dispatched and ... |
8d828c9032b53d6d104e2ba65799f1c785b8db48 | efd7adff589e37ca98d2e3eb245aaeb23f64496e | /src/plugins/coreplugin/versiondialog.cpp | 9ece9693f33c9d44881ebc1be45dd30a674c40ac | [] | no_license | Andersbakken/CPlusPlus | 3cf03c28968243587fa1d4661e7e5a388e62eb43 | 400f0b8f19de1c3fc9b794228c7aeec2259fce81 | refs/heads/master | 2021-01-10T20:24:54.067140 | 2013-05-28T03:46:50 | 2013-05-28T03:46:50 | 9,491,173 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,387 | cpp | versiondialog.cpp | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this f... |
70891e6faee93fdcc38668cc20ad7201eb7b373d | c41076f8084b8ea0de62d426d06a23cb11960c2f | /Source/Rendering/vaCanvasImpl.h | 5ab77cffdc274203c9d413a055d5e76daf901f9f | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | xiaojun1604/XeGTAO | 5850c22fae91bb4d1abf1d4b6b0b25e65c8821c8 | e7698f874e90f2516fca26c696ec3cd2c70e505a | refs/heads/master | 2023-09-03T11:48:06.506886 | 2021-11-09T13:18:27 | 2021-11-09T13:18:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 939 | h | vaCanvasImpl.h | ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2016-2021, Intel Corporation
//
// SPDX-License-Identifier: MIT
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////... |
43685e3c8a22c41f4bfc41cd19823dcef3076a49 | 8cb90d5b749022640608859dc3555f0879bae664 | /12-b.cpp | 46ccd3e3ba0fb04896b44372ea4e90a37bf0e727 | [] | no_license | cynic64/aoc2020 | 79978be43377081a256b8d7d397d1a9bb989f5f7 | b8f498687bb9627d95c598e2bbf17406f5bce11c | refs/heads/main | 2023-02-08T03:39:13.156163 | 2020-12-23T07:16:32 | 2020-12-23T07:16:32 | 317,446,129 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,356 | cpp | 12-b.cpp | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <stdexcept>
#include <regex>
#include <unordered_map>
#include <cassert>
#include <cmath>
using namespace std;
int main() {
vector<pair<char, int>> lines;
for (string line; getline(cin, line);) {
auto dir = line[0];
auto n = s... |
a7a67ead173e8a87725503599270bbaa0d5f31d3 | a565e2f5034bc660b2e90d8613ffb4d3787cc854 | /tools/src/run_retrieval_experiments_with_descriptors.cpp | cbf877771dbdff1c2f65b754f4b9e240bb694c80 | [] | no_license | CamilaAlvarez/descriptor-manager | 15fd094198a4ce5019445f69c0ead32695413c87 | ed044650d04b10286ddc6b52460be480816773e1 | refs/heads/master | 2020-05-24T23:08:40.421114 | 2017-10-20T16:00:51 | 2017-10-20T16:00:51 | 84,889,048 | 0 | 0 | null | 2017-03-22T19:03:32 | 2017-03-14T00:50:51 | C++ | UTF-8 | C++ | false | false | 6,151 | cpp | run_retrieval_experiments_with_descriptors.cpp | //
// Created by calvarez on 22-03-17.
//
#include <queue>
#include <iostream>
#include <fstream>
#define STRIP_FLAG_HELP 1
#include "gflags/gflags.h"
#include "glog/logging.h"
#include "boost/filesystem.hpp"
#include "descriptor_manager/network_manager.h"
#ifdef _OPENMP
#include <omp.h>
#endif
DEFINE_string(desc... |
758162549fee3f713f0b368ba072f3d8542678b3 | d9e96244515264268d6078650fa707f34d94ee7a | /Utility/TimeUtils.h | e04d236f57211b7b136eb2c3e46e25b09310f0b9 | [
"MIT"
] | permissive | xlgames-inc/XLE | 45c89537c10561e216367a2e3bcd7d1c92b1b039 | 69cc4f2aa4faf12ed15bb4291c6992c83597899c | refs/heads/master | 2022-06-29T17:16:11.491925 | 2022-05-04T00:29:28 | 2022-05-04T00:29:28 | 29,281,799 | 396 | 102 | null | 2016-01-04T13:35:59 | 2015-01-15T05:07:55 | C++ | UTF-8 | C++ | false | false | 567 | h | TimeUtils.h | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#pragma once
#include "../Core/Types.h"
namespace Utility
{
typedef uint32 Millisecond; // 1/1000 of a second
typedef uint64 Mic... |
b376bcaa9f98967e0617f0b59ac8372fc07f98d2 | 5e788cfb678f4afc7c7bbe5761f104172d05869f | /EnStarMecro/EnStarMecro/MainScene.h | feebf670cf7e5768f0c63d6e5136bf82f9879a28 | [] | no_license | ounols/Macro-Stars | 360d99edc19a552cccedca444705fbb5e40af202 | ff689a410cd1d1e9b85798d58b778a8679d79c00 | refs/heads/master | 2023-05-31T09:09:01.782042 | 2018-03-26T16:53:21 | 2018-03-26T16:53:21 | 383,201,232 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 686 | h | MainScene.h | #pragma once
#include "Scene.h"
#include <string>
#include <opencv2/core/cuda.inl.hpp>
class MainScene : public Scene {
public:
MainScene();
~MainScene();
bool CheckFirst() override;
bool CheckScene() override;
bool ReadData() override;
void ActionDecision() override;
private:
void ReadPopUp();
void Actio... |
de6eb8bfc427e87054d3dae0a04f548783de1328 | b1bca8a2901f0ae030325c11a891e94e51b76dcb | /FootSoldier.hpp | b80f94508516ae436de96622ccba6dd0961e5432 | [] | no_license | Ronmor/WarGame | ad6c17b8a95c59722efa5635e38e8069baec7bd3 | 5d6b3a6f3c77f07d23f016d5011d3158b8ecbe67 | refs/heads/master | 2022-09-24T21:16:10.762392 | 2020-06-04T10:29:42 | 2020-06-04T10:29:42 | 266,485,121 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 557 | hpp | FootSoldier.hpp | #pragma once
#include "Soldier.hpp"
#include <cmath>
namespace WarGame{
class FootSoldier : public WarGame::Soldier
{
protected:
//closest enemy
public:
FootSoldier(uint team_num);
FootSoldier(int life_points,int play_points,uint player_number);
~FootSoldier();
void makeMove2(std::pair<int, int>... |
50df3b68ba0a77300cc1df478d70ab795205b0c4 | c0f0941e3d6f62dbe6932da3d428ae2afed53b43 | /offline/packages/trackbase/RawHitSetv1.h | 091ad88a4fde2ae209a408388a7bc1ce272b7b07 | [] | no_license | sPHENIX-Collaboration/coresoftware | ffbb1bd5c107f45c1b3574996aba6693169281ea | 19748d09d1997dfc21522e8e3816246691f46512 | refs/heads/master | 2023-08-03T15:55:20.018519 | 2023-08-01T23:33:03 | 2023-08-01T23:33:03 | 34,742,432 | 39 | 208 | null | 2023-09-14T20:25:46 | 2015-04-28T16:29:55 | C++ | UTF-8 | C++ | false | false | 1,543 | h | RawHitSetv1.h | #ifndef TRACKBASE_RAWHITSETV1_H
#define TRACKBASE_RAWHITSETV1_H
/**
* @file trackbase/RawHitSetv1.h
* @author D. McGlinchey, H. PEREIRA DA COSTA
* @date 4 June 2018
* @brief Container for storing RawHit's
*/
#include "TrkrDefs.h"
#include "RawHitSet.h"
#include <iostream>
#include <map>
#include <utility> // fo... |
ef12d154ecc4b3ad907ffd5d596b435f6b8dac8d | 300d1ab33d98f74fc2269d07f3753d54790c6755 | /Examples/GridTools/slice_func.cpp | a7451d93578ef47c7c1b93e01ce5b1404c9a13ab | [
"BSD-3-Clause"
] | permissive | phymucs/INMOST | 6c7ec645b6402ec5e5777ff20eaa0769ff17153e | c0c6ae1595a86dd0ad69dc2aa262170b605a9b98 | refs/heads/master | 2022-04-10T00:18:16.149689 | 2020-03-11T07:10:15 | 2020-03-11T07:10:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41,357 | cpp | slice_func.cpp | #include "inmost.h"
#include "slice_func.h"
using namespace INMOST;
double Slice::Search(double r0, double r1, double c0[3], double c1[3], double p[3], bool binary) const
{
double rp = 1.0e20, rp_min = 1.0e20, p_min[3];
int iters = 0;
do
{
double m1 = r0/(r0-r1), m0;
if( m1 < 0.0 || m1 > 1.0 || binary ) m1 =... |
c8c9ff5c20351790eab2a1e90ffa8b8c0a8b50e4 | ffdc77394c5b5532b243cf3c33bd584cbdc65cb7 | /mindspore/core/ops/lars_v2_update.cc | e7fc21b9615e7317a8d450fa4a166498b028804c | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"MPL-1.0",
"OpenSSL",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause-Open-MPI",
"MIT",
"MPL-2.0-no-copyleft-exception",
"NTP",
"BSD-3-Clause",
"GPL-1.0-or-later",
"0BSD",
"MPL-2.0",
"LicenseRef-scancode-f... | permissive | mindspore-ai/mindspore | ca7d5bb51a3451c2705ff2e583a740589d80393b | 54acb15d435533c815ee1bd9f6dc0b56b4d4cf83 | refs/heads/master | 2023-07-29T09:17:11.051569 | 2023-07-17T13:14:15 | 2023-07-17T13:14:15 | 239,714,835 | 4,178 | 768 | Apache-2.0 | 2023-07-26T22:31:11 | 2020-02-11T08:43:48 | C++ | UTF-8 | C++ | false | false | 7,118 | cc | lars_v2_update.cc | /**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
277a0c0c6af019279f828e45d27acc81946b56df | 009a122deb030cafcfde4ff16428ef67ee206cfb | /main.cpp | 83525be382e7d127e119678f84c1286691ea8632 | [] | no_license | gerbauz/OwnWindowsProcessExplorer | 7ae44cd232b2b145537b88907793bc0a81cc3921 | 5cdad721f309ff740f3129bc83527cfe924b9bd5 | refs/heads/master | 2020-04-27T14:35:25.137462 | 2019-04-14T14:46:23 | 2019-04-14T14:46:23 | 174,415,100 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 475 | cpp | main.cpp | #include "MainWindow.h"
#include "SecurityDialog.h"
//#include "processlistmodel.h"
#include <QApplication>
//#include <QTreeView>
#include <QTextCodec>
#include "ProcessInfoItem.h"
int main(int argc, char *argv[])
{
int id = qRegisterMetaType<std::shared_ptr<ProcessInfoItem>>();
QTextCodec* codec = QTextCodec... |
d20ce983a38a3983541ffd894d2d463520361b95 | 8239562e9d1620ae942db148f7a5775874fa1b55 | /2136.cpp | 0fa6fad904366d712017a4174641307193750d97 | [] | no_license | Higumabear/POJ | 1510d3dde88c3595d869cbd88fb12e138411c0c2 | e5d0823f00e5e1a0cc16b8652abb37ea823cb23a | refs/heads/master | 2020-04-01T19:25:04.098270 | 2017-11-22T02:18:56 | 2017-11-22T02:18:56 | 16,761,319 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 970 | cpp | 2136.cpp | #include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
#include <map>
using namespace std;
int out[26];
int num[26];
int main(int argc, char **argv){
string input;
int maxmag = 0;
fill(num, num + 26, 0);
fill(out, out + 26, 0);
for(int i = 0; i < 4; i++){
getline(cin, input);
fo... |
c92846df1bf272ac5c326cdf29bf3723665da837 | 70c0dffc9c5c366a8b2535980b35c167d33069fb | /Include/Vulkan/RenderControl/Pipelines/VKCompositionPipeline.h | 0fd3097caf2be930ecbcddb1405a641894a9d669 | [
"MIT"
] | permissive | StavrosBizelis/NetworkDistributedDeferredShading | 11f59ee394bf842bdba2656142bf0d3404e7337a | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | refs/heads/master | 2020-03-19T05:23:00.507948 | 2018-09-20T22:29:35 | 2018-09-20T22:29:35 | 135,925,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 863 | h | VKCompositionPipeline.h | #pragma once
#include "Vulkan/RenderControl/Pipelines/VKPipeline.h"
class VKCompositionPipeline : public VKPipeline
{
unsigned int m_inSamplersCount;
public :
VKCompositionPipeline(const std::shared_ptr<VulkanLogicalDeviceManager>& a_logicalDevice, VkRenderPass a_renderPass,
const std:... |
40f1338c865499865b3e133582c00ad256fe3ccd | e1e43f3e90aa96d758be7b7a8356413a61a2716f | /datacommsserver/esockserver/inc/es_enum_internal.h | 1e73ec5c27b4dc7dbaf00c63e019089b9cc86408 | [] | no_license | SymbianSource/oss.FCL.sf.os.commsfw | 76b450b5f52119f6bf23ae8a5974c9a09018fdfa | bc8ac1a6d5273cbfa7852bbb8ce27d6ddc076984 | refs/heads/master | 2021-01-18T23:55:06.285537 | 2010-10-03T23:21:43 | 2010-10-03T23:21:43 | 72,773,202 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,849 | h | es_enum_internal.h | // Copyright (c) 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/epl-v1... |
63a54d764a130c9d28c74a8d14f9c04da322cbcb | 39315f77d9b7672ae9d558e7ae36425525741817 | /jam/syntax_highlight.cpp | 651f0f38482f13e54737edcd9aaee1e57d8610d8 | [
"MIT"
] | permissive | janm31415/jam | 9ee23f60d42dd129d7b57ec40aad43e4026c6ab8 | 4ce9c106a3248f0dbce94ad05cbaa0c38b92ca70 | refs/heads/master | 2021-07-20T16:14:21.823028 | 2021-06-19T09:25:08 | 2021-06-19T09:25:08 | 253,088,704 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,907 | cpp | syntax_highlight.cpp | #include "syntax_highlight.h"
#include "utils.h"
#include <cassert>
#include <fstream>
#include <json.hpp>
namespace
{
comment_data make_comment_data_for_cpp()
{
comment_data cd;
cd.multiline_begin = "/*";
cd.multiline_end = "*/";
cd.single_line = "//";
return cd;
}
comment_data ma... |
98f1506a065c5343a3ce4d10a672943dd728f61f | 1c1669e11d3fd70265bf4e509dbc6e5cfa0308c1 | /src/linux/sockets/SocketFactory.cpp | 4fe773dd43e12a327df5887b4094dd61ee152c9a | [] | no_license | grey-panther/simple-chat | 2572b23540e076154584d79f46294d3cf08f1b61 | 7b8e3228facc3580d75b97bdca77e01baf24be6d | refs/heads/master | 2021-09-09T04:29:17.833183 | 2018-03-13T21:02:54 | 2018-03-13T21:02:54 | 103,137,524 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 597 | cpp | SocketFactory.cpp | #include "sockets/SocketFactory.hpp"
#include "sockets/ServerSocketTCP.hpp"
#include "sockets/ClientSocketTCP.hpp"
namespace sockets
{
namespace factory
{
template<>
IServerSocketTCP* make<IServerSocketTCP>(const ISocketAddress& address)
{
IServerSocketTCP* socket = new ServerSocketTCP;
socket->set_addr... |
0153988400200aeca24d4eeb3df2cef716a6002b | cb726a324db9a1269c5671ccdbc188d3920547a3 | /src/Message_connecttable.h | d0def86fd7ccd566889bf6bcf58cbbf9fbcd813e | [] | no_license | Eddie41/simple-gateway | 8a61363ae60854ad6fb23384b5ae15bfcdc87f48 | 20a4b54e044ae22d6d7a11a11551279dba187429 | refs/heads/master | 2020-04-23T06:53:10.500068 | 2019-02-25T08:53:53 | 2019-02-25T08:53:53 | 170,989,137 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 574 | h | Message_connecttable.h | #ifndef __MESSAGE_CONNECTTABLE_H_20160506__
#define __MESSAGE_CONNECTTABLE_H_20160506__
#include <iostream>
#include <string>
#include <errno.h>
#include "common.h"
#include "Message.h"
#include "HttpClient.h"
using namespace std;
/*
* 处理10003号报文以及对应的20003号报文
* 建立连接
*/
class MsgConnectTable:public Message
{
pu... |
2081f921abbf9953de587d2e74e14a07d2cb7cd2 | 37e49d9859efeafdef56d9d07f9b8d7c2df062e1 | /ATmega644_Cpp/DevBoard/01_Demo/i2c.h | 0abe14d59acb5525b6e1fbc505cc34ac0e732b20 | [] | no_license | Beszti85/AVR_8BIT | e1a6a4883f25c9f3e13f434c1d16cb8dcfde1dc7 | fba082ffbe15ab241313cd0ec99aff752fb2e05f | refs/heads/master | 2021-12-25T21:37:23.001278 | 2021-11-07T05:34:36 | 2021-11-07T05:34:36 | 189,660,808 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,240 | h | i2c.h | /*
* i2c.h
*
* Created: 2019.08.24. 14:41:10
* Author: Besztercei
*/
#ifndef I2C_H_
#define I2C_H_
#include "my_typedef.h"
#define TW_STATUS (TWSR & 0xF8)
class I2CMaster
{
protected:
public:
I2CMaster(uint16_t speed);
uint8_t Start (void);
void Stop(void);
uint8_t Write(uint8_t data);
... |
a50d9e2187c716c6d6bb2da3e8dad28986a24e6e | 7d6c7718cdd99644ce2ff2746e18afbc3f35de7b | /TLC5941/tlcrgb.cpp | c8cebf7a3ec18d6cf7534db6385e4c9465971769 | [] | no_license | miguelangelo78/STM32F4xx-TLC5941 | c192f624a75e8bb3d53030c0bc087c443b858072 | e60a7c0046b5e9d4a9c78eced172c36849e95fcb | refs/heads/master | 2021-01-10T06:31:11.461950 | 2015-11-24T01:18:19 | 2015-11-24T01:18:19 | 46,372,203 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,961 | cpp | tlcrgb.cpp | /*
* tlcrgb.c
*
* Created on: Nov 18, 2015
* Author: Miguel
*/
#include "tlcrgb.h"
TLC5941 TLCRGB::tlc;
void TLCRGB::init(int rgb_index) {
index = rgb_index;
rgb_off = index * 3;
tlc.init();
}
TLCRGB::TLCRGB(int rgb_index) { init(rgb_index); }
TLCRGB::TLCRGB() {}
void TLCRGB::updateColor() {
tlc.set... |
cab2d7998bd559f30bd509e0c29e00939a7c31d8 | 11a246743073e9d2cb550f9144f59b95afebf195 | /kattis/stretchingstreamers.cpp | b49e2e8761068126db7150bd9c0a293cecc9705a | [] | no_license | ankitpriyarup/online-judge | b5b779c26439369cedc05c045af5511cbc3c980f | 8a00ec141142c129bfa13a68dbf704091eae9588 | refs/heads/master | 2020-09-05T02:46:56.377213 | 2019-10-27T20:12:25 | 2019-10-27T20:12:25 | 219,959,932 | 0 | 1 | null | 2019-11-06T09:30:58 | 2019-11-06T09:30:57 | null | UTF-8 | C++ | false | false | 2,473 | cpp | stretchingstreamers.cpp | #include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
#include <fstream>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <numeric>
#include <utility>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include ... |
8b3967810b41fded36edea58049d46576e88c92b | a55e19c18e2c8f192972bd65f1f78d833e848ae9 | /scara.h | 905d80ea8df7793f73bd1366ef1e5ac1eba921ff | [
"MIT"
] | permissive | nephen/scarysim | 39f74ab779b9269e87d072d86e268027cd0f89dd | 1e3b714937244a84e006913ce0ced854610e6a82 | refs/heads/master | 2020-03-16T15:17:32.433368 | 2018-05-11T06:12:45 | 2018-05-11T06:12:45 | 132,736,835 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,110 | h | scara.h | #ifndef SCARA_H
#define SCARA_H
#include <QObject>
#include <cmath>
#include <vector>
#include "model.h"
enum SteeringMode { SIMPLE, TARGET };
class Scara : public QObject
{
Q_OBJECT
public:
explicit Scara(QObject *parent = 0);
signals:
public slots:
void go(double dt);
void d... |
aac5e9b795f93781cc05e4ceda855daeaf29ffdb | 2347e342d32b7ad50a27c91d43630cc928234363 | /core/platform.h | 7773ac8f45fb1149cf65b9111d89bd7ab318beb7 | [
"MIT"
] | permissive | humkyung/app.framework | 112ea8269971b990ec0c5a26fca1d14525635d6f | 6a709c0ccc6a78e66ad8638b2db9d560da5ee77a | refs/heads/master | 2021-01-20T18:33:23.668384 | 2017-04-04T20:23:57 | 2017-04-04T20:23:57 | 63,311,572 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,916 | h | platform.h | /* include/geos/platform.h. Generated from platform.h.in by configure. */
#pragma once
#include <assert.h>
/* Set to 1 if you have `int64_t' type */
/* #undef HAVE_INT64_T_64 */
/* Set to 1 if `long int' is 64 bits */
#define HAVE_LONG_INT_64 1
/* Set to 1 if `long long int' is 64 bits */
/* #undef HA... |
ed7146de9ec86c6015dbd32dfe970628d43d6ff9 | bac5375ce53392ca698ada1010466d1a63ca831d | /src/KeyView/MsgRecord.h | b4846e9572cb8d6f482a9eed2fb2891f47ae55cf | [
"Apache-2.0"
] | permissive | shuhari/WinTools | 99bd00454f9f28e070c8bb975df297a1c88fe0fb | bb814eca1330c0f510644c71e6c92c17f231f798 | refs/heads/master | 2020-12-02T01:01:08.362694 | 2019-09-27T11:37:10 | 2019-09-27T11:37:10 | 143,998,880 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 865 | h | MsgRecord.h | #pragma once
#include <vector>
struct MsgRecord {
public:
enum MsgType {
MsgKeyboard = 1,
MsgMouse = 2,
};
enum {
ColumnCount = 80,
RowCount = 20,
OffsetMsg = 0,
OffsetFlags = 20,
OffsetCh = 35,
OffsetCoord = 55,
OffsetScan = 70,
};
MsgType type;
CString name;
CString flags;
CString c... |
ff5315d18b6867f376f875ebad9bdc0c323a79de | bad5993049b554c68cd0be4ce7f5c87576d006e1 | /Greg/7-a/7.cpp | b6936af2f34de43e28afa5de4e61c06650a032d7 | [] | no_license | artjomjuferov/university | d14fce9f717d6368d1c2a8700a77cb19ababfafc | 7d872af128f820097de4d8b8f98ef4c4ba4c1c08 | refs/heads/master | 2020-12-11T05:38:09.014013 | 2015-05-12T09:24:24 | 2015-05-12T09:24:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,659 | cpp | 7.cpp | #include <stdio.h>
#include <string>
#include <stdlib.h>
#include <math.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <fstream>
using namespace std;
#define sizeAlph 50
#define sizeN 10000000
void sort(string& x, int count[], int s[])
{
for (int i = 0; i < sizeAlph; i++)
count[i] = 0;
f... |
65e932f512ed06b8e100156062e4434c38cc6d8a | 07f7ef15bd43cd3e991b2cdcb1df919b0bcfaeba | /Classes/TagGameScene.cpp | 0e818b742f4c3f03dc3900902b91fdf69b439b90 | [] | no_license | srfernandez/tfg | a39b7ecddde9a59c6de2d0b1b7b2bb56ac8dac6d | e3ad37b86f8e84e00ca8278563629e0e2e8750fe | refs/heads/master | 2021-06-27T22:11:40.757622 | 2017-03-09T12:41:48 | 2017-03-09T12:41:48 | 57,595,410 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,356 | cpp | TagGameScene.cpp | #include "TagGameScene.h"
#include "MainMenuScene.h"
#include "GameMenu.h"
#include "EndGame.h"
#include "Definitions.h"
#include "json/document.h"
#include "json/filestream.h"
#include "json/stringbuffer.h"
#include "json/prettywriter.h"
USING_NS_CC;
using namespace rapidjson;
Scene* TagGame::createScene()
{
//... |
0eb9f39c40840fc8738466a20476acea4ec6d0df | 267b5ebec0558dc9677404a27c4b7c88fe000a0e | /mas programas C/fact.cpp | a1e9b09f83476291981dfea8b9034239e58b8724 | [] | no_license | pixelead0/abandonware_programas_c | 64e3ecb8bbeef8db2ce0cef28de616bb618e31f1 | 8f7e99dbad8de9cb3802bed1e11c7284b97eeb4a | refs/heads/master | 2022-06-21T04:25:36.447932 | 2020-05-14T05:13:54 | 2020-05-14T05:13:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 758 | cpp | fact.cpp | #include<stdio.h>
#include<conio.h>
#include<dos.h>
void main()
{
long int fact,x,i;
textbackground(BLUE);
textcolor(WHITE);
clrscr();
otro:
gotoxy(15,2);
printf("Programa que calcula el factorial de un numero N");
gotoxy(25,12);
cprintf("El numero debe estar entre 1 y 16");
gotoxy(15,10);
p... |
b1ec2a3ba3f62600890c9471d7d4022b5273c480 | 03eb878a99f8f21c72447795297267baed4e0b14 | /MyIPMsg/app.cpp | 4e025c6212e4b326b2660693fb4f340307cc2c23 | [] | no_license | nswdbbnswda/MyIPMsg | bb72b5385ab14c47777f4b324b8f861184393da5 | e49b34289e9ac2f76f26043ebc0f29cde81d1de4 | refs/heads/master | 2021-05-10T12:41:04.111126 | 2018-01-31T04:06:08 | 2018-01-31T04:06:08 | 118,448,397 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 3,250 | cpp | app.cpp | #include"app.h"
#include<debugapi.h>
#include"tapi32u8.h"
#include"TMainWin.h"
TApp* TApp::tapp = NULL;
TApp::TApp(HINSTANCE _hI, LPSTR _cmdLine, int _nCmdShow)
{
hI = _hI;
cmdLine = _cmdLine;
nCmdShow = _nCmdShow;
mainWnd = NULL;
preWnd = NULL;
defaultClass = "tapp";
defaultClassW = L"tapp";//宽字符版本
tapp = th... |
fe8e2028d6a40aaa6a0b3960da256c75d73eb9d4 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-application-autoscaling/include/aws/application-autoscaling/model/SuspendedState.h | 6651f1db5a8f164e15701c371aae495116501d00 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 6,357 | h | SuspendedState.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // n... |
91633f5800d4eaa3dcda72f3ba3a5512da46ae42 | 6f460a74aec561106fe1e31d24501b8713686239 | /problems/2968.cpp | c82ed4cb1e0db76f0ef6d5e92299c908cd81cc13 | [] | no_license | JVelezMed/caribbean-online-judge-solutions | 0d7a4423e5c340944aedca8134f3d9732fb71980 | 43929a7c90f26f0a1e254797dc1ed8f1f728417c | refs/heads/master | 2020-06-14T20:14:57.216235 | 2019-07-03T19:36:22 | 2019-07-03T19:36:22 | 195,113,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,180 | cpp | 2968.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <math.h>
using namespace std;
bool isSubsetSum(int n, int sum);
int dogs[6];
int main(){
int cases;
scanf("%d", &cases);
while(cases--) {
int accum = 0;
for (int i = 0; i < 6; ++i) {
scanf("%d", &dogs[i]);... |
0acd0367b0f4f2c237406816e186aefcd74f5963 | e4460cc5b7b3a6c97ead573d6b17191d12174032 | /Assignment4/src/Goal.h | c12771d76616768e8ec912b0d6de560c3bee0d14 | [] | no_license | leongyh/CS184 | b91c7173a746199bed7d595255664eb0be2c266b | 5d14f7fa05f851b779b40f5caa39725b064d76ee | refs/heads/master | 2021-01-23T03:27:11.909380 | 2014-12-20T04:38:06 | 2014-12-20T04:38:06 | 25,003,484 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 594 | h | Goal.h | #ifndef GOAL_H_
#define GOAL_H_
#include <glm/glm.hpp>
#ifdef _WIN32
#include <windows.h>
#else
#include <sys/time.h>
#endif
#ifdef OSX
#include <GLUT/glut.h>
#include <OpenGL/glu.h>
#else
#include <GL/glut.h>
#include <GL/glu.h>
#endif
class Goal{
protected:
glm::vec3 position;
glm::vec3 displacement;
publ... |
e19f60790e87e7ee18ccf9f9b174c14062e32b67 | d202b198e7735ed652cd4841ad3754fe05fc1333 | /Online_Judge/UVA_Solutions/865 - Substitution Cypher.cpp | 363770acf45f264d642a3c384246991f1ef95055 | [] | no_license | TanzimRusho/OLD-MATERIALS | 11ea03752919d15abf0e98e9057f1dd936e7e8d5 | 3a97cb2f9a8002b0e62ecea9a6ba903489c2ae4c | refs/heads/master | 2023-06-01T11:47:30.659574 | 2021-06-15T22:19:28 | 2021-06-15T22:19:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 954 | cpp | 865 - Substitution Cypher.cpp | /*
* Author: Quickgrid ( Asif Ahmed )
* Site: https://quickgrid.wordpress.com
*/
#include<stdio.h>
#include<string.h>
#define N 256
static char text[N];
static char plaintext[N];
static char substitution[N];
static char newLayout[N];
static char output[N];
int main(){
int n;
scanf("%d", &n);
ge... |
9830c33b2af22c2ef91ab069704ca22f2e48f894 | daa138f0b80188f77519fe01b5921e5d88072678 | /node/node.h | 014549da04669cba254543a8883da31272bc34e4 | [] | no_license | mc-cat-tty/DoorbellCamDaemon | e3459bee6256be44e3c82d7f15ce91592ec5a92b | 8c59d20748eed22b33a65646267c2ff289e11594 | refs/heads/main | 2023-08-06T08:54:24.291615 | 2022-07-27T10:58:07 | 2022-07-27T10:58:07 | 491,296,136 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,548 | h | node.h | #pragma once
#include <string>
#include <set>
#include <time.h>
#include <opencv2/opencv.hpp>
#include "../object_detection/object_detection.h"
#include "../fsm_manager/fsm_manager.h"
class Node {
private:
/**
* @brief Private constructor of Node object
*
*/
Node() {}... |
07d45e34de1c4c67fb7ced9a0f9464c2d9c7d3ef | 3d31c8b6a4fe8c08a2369ceec3e22c9e18a006da | /copycontest/copycontest.ino | 1b511f1460ac365f5eae30cb029d043d3f3762f4 | [
"MIT"
] | permissive | Feriixu/RubberToDigi | 0da13c0d8b1b6cea51e87d45ba40abc5a31aed56 | 4570c4f1d3902ceb928e67d85bb9ce45bcacecc4 | refs/heads/master | 2020-05-02T20:44:56.632471 | 2019-04-28T17:34:50 | 2019-04-28T17:34:50 | 153,131,327 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,049 | ino | copycontest.ino | #include <DigiKeyboardDe.h>
#include <avr/pgmspace.h>
const char line1[] PROGMEM = "cmd";
const char line4[] PROGMEM = "del copycontest.txt";
const char line6[] PROGMEM = "copy con copycontest.txt";
const char line8[] PROGMEM = "1";
const char line10[] PROGMEM = "2";
const char line12[] PROGMEM = "3";
char buffer[25]... |
04469ad06cb87e5cb75f3cad3a22743be8acb657 | 6e55fefa388c92b9fbebf7b28886503d30a92b92 | /Rect.cpp | 4f1d66bff475caef4e130a42e114d67bac0ea9a0 | [] | no_license | RJHelms84/House-Robot-3D | e5bb8cd06349603a3af2d7e363f28f96256b8a62 | bf203519659f7836085b9d82643548df7d37ea80 | refs/heads/master | 2020-06-10T21:10:34.130273 | 2016-12-07T20:26:53 | 2016-12-07T20:26:53 | 75,872,830 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,247 | cpp | Rect.cpp | #include "Engine.h"
using namespace std;
namespace Batman {
//default contructor; all vals 0
Rect::Rect() {
left = top = right = bottom = 0;
}
//copy constructor
Rect::Rect(const Rect& R) {
Set(R);
}
//copy constructor
//windows RECT
Rect::Rect(const RECT& R) {
Set(R);
}
//con... |
e8e62540b439c44b224ec49b22a05715ffc68726 | 4460f143753202f3468586f83c71258aee8678d0 | /class.cpp | 48263a40aba5e13c3646e47f0253c76814fafb00 | [] | no_license | tomzooi/readreq | 12730180bfcbd448e329181fef70c9e2a1785327 | 5ab8bf81973b0c5f63673e01dff032894b2e1f0d | refs/heads/master | 2016-09-05T14:55:30.240766 | 2015-03-26T06:35:10 | 2015-03-26T06:35:10 | 32,782,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,731 | cpp | class.cpp | #include <string>
#include <list>
#include "class.h"
#include <iostream>
#include <fstream>
Requirement::Requirement(Requirement * p)
: empty(false), parent(p)
{
}
Requirement::Requirement(std::string l, std::string d, std::string la,Requirement * p) // unused
: empty(false),
level(std::move(l)), des... |
3178e329a95ea43a9afeda7f65d8e3d34cd11ab8 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/oldd/box/7.4e-05/k | 31e93ebbd3b52d60b5e5e4433664ccc85eb7afd4 | [] | 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 | 26,107 | k | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
ddcef4b8d76231817a1c477290e1ecd866110f7e | 555d6c97cf2f4e1e73e1323ba9fe842a886207a8 | /CSES/1069.cpp | 3793c568f2709aadbf7da5a4da214b6cb5cb174d | [] | no_license | onecode369/CompetitiveProgramming | 07e18811fdb607968e85fa08ceea5c59d989914a | 3d7f1f92734652a9a01ad2dd85a56a99788e1784 | refs/heads/master | 2023-05-11T22:09:24.929181 | 2021-06-04T14:21:41 | 2021-06-04T14:21:41 | 340,228,727 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 512 | cpp | 1069.cpp | #include <bits/stdc++.h>
#define DEBUG(x) cerr << #x << " = " << x << endl
#define MOD 1e9+7
#define INF INT_MAX
#define reset(arr,n,i) fill(arr, arr+n, i)
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
string s;
cin >> s;
int cnt = 1,ans = 0;
for(int i=1;i<... |
e84ab5077f1ada647ee5018b27bf34d291c41129 | 383e7d7f7ef658896a76d89fa3a3d5fb215a0140 | /core/vil/vil_blocked_image_facade.h | 582188ea94c45b4dac5f3f74999b946115edc788 | [] | no_license | aliosmanulusoy/Probabilistic-Volumetric-3D-Reconstruction | f9abd69f278a85c0133c3474eaee1c59e2d4f3e2 | cdb08ed893f88c245bd3c9cff1081182a4eaced9 | refs/heads/master | 2021-06-01T23:21:59.861182 | 2016-05-31T09:38:48 | 2016-05-31T09:38:48 | 58,373,814 | 60 | 26 | null | null | null | null | UTF-8 | C++ | false | false | 2,676 | h | vil_blocked_image_facade.h | // This is core/vil/vil_blocked_image_facade.h
#ifndef vil_blocked_image_facade_h_
#define vil_blocked_image_facade_h_
#ifdef VCL_NEEDS_PRAGMA_INTERFACE
#pragma interface
#endif
//:
// \file
// \brief A blocked image facade for any image resource
// \author J. L. Mundy
//
// this class "wraps" any image resource and pr... |
cdb6bff46638fafe262dfa5e8b021f88131a97fb | 4c2e6bf2486dac754f543b736f5167043682c96b | /ProjectDivaCommand/LyricViewer.cpp | 46213b66f72f13d2a6add7ff6475be7871d4a0af | [
"Apache-2.0"
] | permissive | LinZong/ProjectDivaCommand | 43616b262f838abd8d9cac5c8c6079e57acae103 | ad4eeb07eca1b117d7b222e68cc8f3dd343be956 | refs/heads/master | 2020-03-17T02:37:17.740339 | 2018-06-05T15:22:42 | 2018-06-05T15:22:42 | 133,197,753 | 3 | 1 | null | null | null | null | GB18030 | C++ | false | false | 3,799 | cpp | LyricViewer.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
#include <Windows.h>
#include "LyricViewer.h"
#include "ProjectDivaException.h"
using namespace std;
double TotalTime, PastTime;
const int MAX_LYRIC_REPEAT_NUM = 100;
int TotalLine = 0, HeaderLength;
//可能要自己定义一个LyricTime类方便搞
v... |
6140cf1a345f3101f601d180fc6a3b48d14c713a | 0a228e2b32d1525fd9faa124bac20b73f3b04866 | /twoNumberSum2.cpp | 04d595974ebcd12f04538c8b5ff0a5fe53d6b90d | [] | no_license | iangagn/interview_questions_cpp | 31b5eb6599c2a010784ff4e3fad6350f1c157872 | 5da97ef4e666ab255e8cac484a4a00552de38856 | refs/heads/main | 2023-06-10T19:51:38.999357 | 2021-07-07T18:33:51 | 2021-07-07T18:33:51 | 382,937,217 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 687 | cpp | twoNumberSum2.cpp | #include <vector>
#include <unordered_set>
using namespace std;
/*
This approach based on a hash table ameliorates time complexity from O(n^2)
to O(n), but space complexity goes from O(1) to O(n) since the
unordered set grow on every iteration.
Time complexity : O(n)
Space complexity : O(n)
*/
v... |
4cdd8636b981e1a6840a70d41958c07428fcfe63 | eb70adcfcc30ac8301341ccf72ec146de41a1665 | /src/xmlsettingsdialog/radiogroup.h | dfa113ad4e47e82adae6e2673fea26ee6c475a91 | [] | no_license | Beliaf/leechcraft | ff2166070913f2d7ee480f40542ccdf148e49cad | 0823a7d8f85d11bed0b81e61ddb3bf329f9d5d39 | refs/heads/master | 2021-01-18T11:00:38.531356 | 2009-06-14T22:44:13 | 2009-06-14T22:44:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,055 | h | radiogroup.h | /*
Copyright (c) 2008 by Rudoy Georg <0xd34df00d@gmail.com>
***************************************************************************
* *
* 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 *
* ... |
3ef4090cee2222130c3306ddee1b22ac12b393b4 | 7c7b1050f662ee8e014d39d2633b80eb97d171ba | /Sensor.cpp | a2e991daa096efe8fc362b58f9d074bbf3d194c9 | [] | no_license | trotterkt/RiceAlgorithm | be618382ee0492033b9b8fb487a3e089677a9cbc | 00479f69f012715d8531445eff86f16b1ed1dccb | refs/heads/master | 2021-01-17T10:09:29.971678 | 2016-05-13T08:54:19 | 2016-05-13T08:54:19 | 41,396,214 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,577 | cpp | Sensor.cpp | /*
* Sensor.cpp
*
* Created by: Keir Trotter
* California State University, Fullerton
* MSE, CPSC 597, Graduate Project
*
* Copyright 2016 Keir Trotter
*/
#include <Sensor.h>
#include <iostream>
#include <bitset>
#include <vector>
#include <math.h>
#include <limits.h>
#include <Timing.h>
#include <Endian.h... |
9b00ae0768cb11decc4d6fadb05548f9dcf08aab | e89379a62a334b8d23bfdd2beea0d197824778fe | /PriorityQueue/queue.cpp | 8760e937c62e277a11a709c8105ed64a26e8cda0 | [] | no_license | rogersBen/DataStructures | ee9fd4b20a9a8ba1fcf8a699676f92d0bad7ca3a | c93d425d3e7cbd901b04d1057a0902ebbc8c6486 | refs/heads/master | 2021-07-19T21:38:17.898097 | 2017-10-29T08:05:43 | 2017-10-29T08:05:43 | 100,327,710 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,114 | cpp | queue.cpp | using namespace std;
#include <iostream>
#include <fstream>
struct event //server
{
float event_time,event_duration;
int event_type;
};
struct request //customer
{
float arrival_time,service_time;
request*next;
};
int n_serv;
int n_heap;
int n_idle;
event**events;
float now,then;
int arrivals;
request**hea... |
fca262e9b2b433f7f62cccf506815f6d235a6b37 | 38e587a6b575c329531de8c9391d845867fdbc94 | /267-Palindrome.Permutation.II.cpp | 69a695a0d12c40319ac7b232f7658dbec2d40f20 | [] | no_license | suyinlong/leetcode | 8844c082aa51cded04057ddbf8ac5d0cbaed719f | 9c5d451014ae23cbb5ea335a6ff50684e4b1fb97 | refs/heads/master | 2021-01-11T17:43:31.922089 | 2017-03-11T15:42:36 | 2017-03-11T15:42:36 | 79,825,384 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,436 | cpp | 267-Palindrome.Permutation.II.cpp | class Solution {
private:
void backtrack(string &p, string ¤t, vector<bool> &used, vector<string> &ans, char oddChar) {
if (current.size() == p.size()) {
ans.push_back(current);
if (oddChar >= 0) ans.back() += oddChar;
string rp(current);
reverse(rp.begi... |
5dfae26d4c81589c6c40de29c246ca1cd624504a | 6eeecfef040f3256da4ff21cb88210e66f6793df | /socketcan_elmo_ws/src/cob_canopen_motor/common/include/cob_canopen_motor/SDOSegmented.h | 669ddc10ed085746062bebc291666b9f882bdb3a | [] | no_license | rakeshallampally/elmo | 3d0a92f837f312f5a4390b43f2b4d9effe4b760c | 3b3336919c41dcca61ff97cd9e4fc74dd7c69bd9 | refs/heads/master | 2020-06-30T12:11:59.042122 | 2019-11-21T04:42:40 | 2019-11-21T04:42:40 | 200,821,373 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,621 | h | SDOSegmented.h | /****************************************************************
*
* Copyright (c) 2010
*
* Fraunhofer Institute for Manufacturing Engineering
* and Automation (IPA)
*
* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
* Project name: care-o-bot
* ROS stack name: cob_driver
* ROS package n... |
3d46025d7f89bd697e74954ab3c6cb431890e328 | cc70452a91a515e4561202cfa32c57197dc0a574 | /motion8.cpp | 2476dd7d413a1088d9f59b23157716ecb6d423be | [] | no_license | skyfall85/1D_profile | 6193a791c3207afcce9474208db3b46eef154738 | 05399bd30958236ad5807cb66f1e1c85888d9dae | refs/heads/master | 2020-06-03T14:00:31.613645 | 2015-03-12T14:45:52 | 2015-03-12T14:45:52 | 32,082,362 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,197 | cpp | motion8.cpp | /*
Ez a kod az egy komponensu rendszer leirasara lett atalakitva:
kikerul belole az f_s(c,T), illetve csak egy komponensnek lesz benne a latens hoje
2015.02.12. Csütörtök
- most kezdek el ujra ezzel a koddal foglalkozni
- meg kell erteni, hogy pontosan mi mit is csiinal, es ahol lehet, ott egyszerusiteni kellene
... |
3db1cc051b67c00e8609308efd55171978590c42 | 4f267de5c3abde3eaf3a7b89d71cd10d3abad87c | /ThirdParty/ShapeOp/ShapeOp_Types.h | 5221b1e4dac2ab8ebd3e30b2b0ebce8e07805f6a | [
"MIT"
] | permissive | MeshGeometry/IogramSource | 5f627ca3102e85cd4f16801f5ee67557605eb506 | a82302ccf96177dde3358456c6dc8e597c30509c | refs/heads/master | 2022-02-10T19:19:18.984763 | 2018-01-31T20:09:08 | 2018-01-31T20:09:08 | 83,458,576 | 29 | 17 | MIT | 2022-02-01T13:45:33 | 2017-02-28T17:07:02 | C++ | UTF-8 | C++ | false | false | 3,189 | h | ShapeOp_Types.h | ///////////////////////////////////////////////////////////////////////////////
// This file is part of ShapeOp, a lightweight C++ library
// for static and dynamic geometry processing.
//
// Copyright (C) 2014 Sofien Bouaziz <sofien.bouaziz@gmail.com>
// Copyright (C) 2014 LGG EPFL
//
// This Source Code Form is subje... |
d1716077ec0d1579211baa8973d6dfdff14c1d04 | 405fba797f6d33b76f8ce41dbed28817d81b36b7 | /source/tekwar/src/common.cpp | e476831869b8afeae1f2b81b88b1f04ac04b13b0 | [] | no_license | coelckers/NBlood | bed0ed5576906b49fd7da6f8f72622d820f7aa4d | cc8d57ee5d6ac8a3c3f400501df25892cb9db6b1 | refs/heads/master | 2022-01-21T02:31:42.578207 | 2021-12-05T02:10:52 | 2021-12-05T02:10:52 | 240,122,629 | 5 | 0 | null | 2020-02-12T21:50:29 | 2020-02-12T21:50:28 | null | UTF-8 | C++ | false | false | 16,417 | cpp | common.cpp | //
// Common non-engine code/data for EDuke32 and Mapster32
//
#include "compat.h"
#include "build.h"
#include "baselayer.h"
#include "palette.h"
#include "grpscan.h"
#include "vfs.h"
#include "texcache.h"
#ifdef _WIN32
# include "windows_inc.h"
# include "winbits.h"
#elif defined __APPLE__
# include "osxbits.h"
#end... |
380ca9356d950b98de00841e6cc520513f548bf0 | aaa403c4b4b0a65eeada6d420a17a7cb3a5a1573 | /challenges/amt/amt/exception.h | 5145c4185332f3990f5c52f5f3b6a6828478be84 | [] | no_license | huyuji/garden | afd557757feb49e1a7ed270364480a843f45ffce | 04b8cbfa48c349624d71b6f6c57d71bdab1046b3 | refs/heads/master | 2023-03-20T00:07:25.706631 | 2022-12-21T02:58:17 | 2022-12-21T02:58:17 | 33,455,465 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | h | exception.h | #pragma once
#ifndef id1A6C7CB0_32BD_4ACE_BDAD4FDD1B0FA29D
#define id1A6C7CB0_32BD_4ACE_BDAD4FDD1B0FA29D
#include <exception>
namespace AMT
{
class AMTException : public std::exception
{
public:
explicit AMTException(const std::string& what) : what_(what)
{
};
const char* what() const { return what_... |
125c5aa2b87d088a5f818b7c2b52190bba027849 | 178e83cc613c9fc527e7352417cd0c1baaf7bd7c | /beginner_contest/127d.cpp | 8eed4d1aab00c5ae3f3ddc717d6afedd57c79588 | [] | no_license | shohirose/atcoder | 658d32e5c79e198cbba3e5afa34a49c5504a9878 | 6ebf9cd39fe6c247fe27b9cf4c09f5020cc67bce | refs/heads/master | 2021-06-08T13:40:19.932763 | 2021-05-13T06:33:56 | 2021-05-13T06:33:56 | 165,779,995 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 755 | cpp | 127d.cpp | #include <algorithm>
#include <iostream>
#include <numeric>
#include <vector>
struct Pair {
std::size_t b;
std::size_t c;
};
int main() {
std::size_t n, m;
std::cin >> n >> m;
std::vector<std::size_t> a(n);
for (auto&& ai : a) std::cin >> ai;
std::sort(a.begin(), a.end());
std::vector<Pair> pairs(m)... |
bbc65bba5404d2a968a4818a037e37b39305ebe9 | 27a4c694cd8e475ca00747483151927a4e244e96 | /chapter_6/6.47.cpp | c5f050e60ff3950f5dd7c6dba9364ad7fc3a3929 | [] | no_license | Sinopse/Cpp_primer | cd6f09ae577f06a5b1c4fbf1ccb38610b0dcffe8 | 60aaba7815441f3e03d691a5d2c19547f07636ad | refs/heads/master | 2023-03-11T19:07:50.114417 | 2021-03-02T14:18:40 | 2021-03-02T14:18:40 | 313,850,171 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | cpp | 6.47.cpp | #include <iostream>
#include <vector>
// write a recursive function to print out contensts of a vector
int print_vec(std::vector<int> veci, size_t idx) {
#ifndef NDEBUG
std::cerr << __func__ << ": current index is " << idx << std::endl;
#endif
auto end = veci.end();
int elem = veci[idx];
if (elem != *end) ... |
117eaa5adb031dfa5d2a9f30fb52e0333397fff0 | b429696fa4f09804bb59efe5b28d55c4b7bc6d9f | /mainwindow.cpp | a86b20bbe150eb0b64b0039483bbfa40f1c6ce60 | [] | no_license | kinshuk-kotecha/Omni_Wheelbase_Emulator | f0e488aa05223560654e996d03a6c0721d598699 | dfa5517337ed5a24db45ecba6dab5972893b5b4a | refs/heads/master | 2022-12-23T11:48:09.213456 | 2020-09-22T17:38:16 | 2020-09-22T17:38:16 | 287,564,955 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,759 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QTimer>
#include <QFile>
#include <QDebug>
#include "EmulatorView.h"
#include <QThread>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
QGraphicsScene *scene = new QGraphicsScene(this... |
767c303f66efaa7b04e18479a87e3d9a8de9b83d | c09d4ca5004a4909d991a53df30739c2d3e3fb66 | /src/gui/tool/ModifyTool.hpp | 1a4958fd34b7f1166e7288b40c4cb6a91c6c2d8f | [] | no_license | TricksterGuy/Morphan | 8dbaa1831ad41374a6119052f89a0a5f6443f4e0 | 1ae5b554e76589895f6d6f680474d016ff1a803c | refs/heads/master | 2020-05-05T03:15:48.474089 | 2018-10-28T20:34:10 | 2018-10-28T20:34:10 | 17,351,373 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,368 | hpp | ModifyTool.hpp | /******************************************************************************************************
* Morphan
* Copyright (C) 2014 Brandon Whitehead (tricksterguy87[AT]gmail[DOT]com)
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable fo... |
16e3342f372e5f4492f10b98d1add8a11b08fedd | 34e36b5bdf7b12341b0f337ed011edb9019d0633 | /18-exceptions/main.cpp | 1a2b755940bf97df84336586f436ce01b5da1e91 | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | twolfson/learn-cpp-playground | 37ec96285928bc74b38a3c9cb438f6c90d047bf0 | 5338a20f90741be4defbbddbdd975a2ecad185df | refs/heads/master | 2022-12-18T07:30:47.276368 | 2020-09-25T07:12:49 | 2020-09-25T07:12:49 | 283,129,463 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 144 | cpp | main.cpp | // Load in our dependencies
#include <exception>
#include <iostream>
using namespace std;
int main (){
throw runtime_error {"Test error"};
}
|
1a5e59cc10bd3a277f07c75e9e6479a3dd8428fe | 81ebdbbb2d2c7481376167cf698cb40052f7b845 | /lab/lab-3/main.cpp | fe5f483129eb4f46c57191c38fa043558a76bbd0 | [] | no_license | austinmajor/algorithms-and-data-structures-cpp | 40a3a050969da90240822ffd9040f72535bb3cbb | a530812a120937baa7ce4294b86437d5e946e705 | refs/heads/master | 2022-03-29T00:43:52.935688 | 2019-12-11T02:36:23 | 2019-12-11T02:36:23 | 203,716,959 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,304 | cpp | main.cpp | #include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include "Car.h"
// Forward function declarations, for specific function comments see their
// implementations after main.
std::string menu();
int main()
{
std::string dataFile;
std::vector<car::Model> cars;
std::cout << "Enter the name o... |
6c9885c9529601ff53e6bbf2f21bea3856c89de3 | fcd145b1a12edea260d482583f88311e18b05030 | /Codeforces/264/c.cpp | 10824fdee9d9db7748956363d6805fa43f6f0c83 | [] | no_license | triplemzim/competitive_programming | f7e7cf098b19c3abbf2b3ff6bb6e237122deaaf0 | 3da9560d021b743dd55f5165c0c0bb7e9adbf828 | refs/heads/master | 2021-01-22T23:21:29.082154 | 2017-03-20T22:23:11 | 2017-03-20T22:23:11 | 85,630,988 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,241 | cpp | c.cpp | #include<bits/stdc++.h>
using namespace std;
#define ms(x,val) memset(x,val,sizeof(x))
#define scan(x) scanf("%d",&x)
#define print(x) printf("debug= %d\n",x)
#define ull unsigned long long
#define iii long long
#define pi acos(-1)
#define pb push_back
#define PII pair<int,int>
#define vi vector<int>
#define MAPL ma... |
9fd4e528a8a8bea8b2b9cf9a95586918d2e77b0e | 1fc61423f744ddd9d01dac00fd4155c5f8154c86 | /WorldTiles.h | 2db032ebed94ee3ef76bffba0a6ca2e938ab38e0 | [] | no_license | Almahmudrony/ArgoVox | a40e119d0007f67f2aea3afa012c11d3c967b859 | b8c32f0c04c7ce8455b510eb33565acf723deb9f | refs/heads/master | 2021-01-22T03:44:01.373145 | 2013-04-10T02:54:00 | 2013-04-10T02:54:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 771 | h | WorldTiles.h | #ifndef WORLDTILES_H
#define WORLDTILES_H
#include <vector>
#include "Tile.h"
#include "TileManager.h"
#include "WorldChunks.h"
#include "Frustum.h"
using namespace std;
enum TileMode
{
GREEN,
RED,
YELLOW
};
class WorldTiles
{
private:
struct TileData
{
TileMode tileMode;
vector<Tile *> *tiles;
};
int m... |
fc217abc46ce9d08f1072d6e7907f98f9f4d594a | 163d370755cdbd0675d2a95fb0c4d374cddaddbd | /road.cpp | dbff3c4e42957d10231e3cc89aa9afd85d0a4e47 | [] | no_license | AlexeyKulbitsky/Constructor | 730bf96616cb788435e5c456db1ffb7db53928e4 | 8e3518e5a60cacbcbcc0e9b5996c07132ed989a4 | refs/heads/master | 2021-01-13T00:49:31.235913 | 2016-03-14T08:36:52 | 2016-03-14T08:36:52 | 36,598,299 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,957 | cpp | road.cpp | #include "road.h"
#include <math.h>
#include <QtGui>
Road::Road()
{
setVertexArray(0.0, 0.0, 1.0);
setColorArray(0.5f, 0.5f, 0.5f, 1.0f);
setIndexArray();
// Рaмка для выбора фигуры
setIndexArrayForSelectionFrame();
setColorArrayForSelectionFrame(0.0f, 0.0f, 0.0f);
selected = false;
g... |
5e1317b48b34618f49024e3579aa09c4b340fb81 | 927c92708e1967b8ed079fee75dacc6954c30804 | /Vec3/Vec3 exercice/Class.h | 9658a1815e1b4999e269ea447e7c2df45d63bb94 | [] | no_license | Sersius/Development | f704712c9f48c5faa390bbf05674ca85db4a739a | 4a94b16841dc659d2471b91207a61a65487290c4 | refs/heads/master | 2020-03-28T19:24:56.452857 | 2018-10-04T20:38:38 | 2018-10-04T20:38:38 | 148,974,132 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,592 | h | Class.h | #ifndef _VEC3_
#define _VEC3_
#include <math.h>
template <class TYPE>
//class string
//string a;
//string b("Hello!");
//string c(b);
//a = "bye";
class Vec3
{
public:
Vec3();
Vec3(TYPE x, TYPE y, TYPE z);
Vec3(TYPE a);
~Vec3();
Vec3 operator+ (const Vec3 &vec)const;
Vec3 operator- (const Vec3 &vec)const;
Vec3... |
003704c429eb52e6747856d9b8391641a4ccdf99 | be3c5f574c1d09c3a68d3d93f37e5a6d0acee075 | /jungol/128/JOL128_반복제어문.cpp | 488303c1bd8af8f4839f0fc1573327f25e187a31 | [] | no_license | azvfsxcd/Algo | fc15af7c4cdfd9e40e39acff9938400f20e770bc | e2cad9c32a723e0d2b3c7457e663bde50acc436b | refs/heads/master | 2023-08-19T08:02:10.122601 | 2021-10-10T12:48:12 | 2021-10-10T12:48:12 | 388,037,652 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 294 | cpp | JOL128_반복제어문.cpp | #include <iostream>
using namespace std;
int main()
{
int a = 1;
int cnt = 0;
while (a != 0)
{
cin >> a;
if (a == 0)
{
break;
}
if (a % 3 != 0 && a % 5 != 0)
{
cnt += 1;
}
}
cout << cnt;
} |
0c6bab7b16412ee9dcffa4e9cfca6521f931da20 | ad9aa7698a91baae91f54e3b837d205b90312037 | /HashTable.cpp | 28314365d67588bb4b52a0960165297744089f54 | [] | no_license | shagal239/HashTable | 5cc29af63365a4bc0a2a1610560622f821565238 | b0246d63b1c9c8812da2109b82d554df6a8ecf57 | refs/heads/master | 2021-01-22T15:23:28.818429 | 2015-06-08T09:51:23 | 2015-06-08T09:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,944 | cpp | HashTable.cpp | //
// HashTable.cpp
// test
//
// Created by Guest User on 25/05/15.
// Copyright (c) 2015 Guest User. All rights reserved.
//
#include "HashTable.h"
unsigned long HashTable::HashFunction(const string &str)
{
//Rs
static const unsigned long b = 378551;
unsigned long a = 63689;
unsigned long hash = 0;
for (... |
3eb12cffacf7abd5aa8463fe0370ba11a6300108 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2751486_0/C++/Opportunit/1.cpp | ca10b98fae370d711ebf7fc7b5fc9d316d226f79 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 607 | cpp | 1.cpp | #include <fstream>
#include <iostream>
#include <string>
using namespace std;
ifstream fi("1.in");
ofstream fo("1.out");
int nr,rs,tt,t,n,i,j,k,a[1000],ok;
string s;
int main(){
fi >> t;
for (tt=1; tt<=t; tt++){
fi >> s >> n;
rs=0;
for (i=n; i<=(int)s.size(); i++){
for (j=0; j<=(int)s.si... |
1f0dc387a04258d92aea47721702b40c7c841337 | 5e3e237a56527656dc6ea2b1e8e0a52b559a604d | /Pangolin-master/include/pangolin/image/image.h | 630f2e4d2644c181720f1a3debfb0fdaa38de5fa | [
"MIT"
] | permissive | hyperci-support/hpslam_SDK | 8085725d64093d3a088d4c2e43b8c81a64e9283d | 8d66b94949508245503e2905200db2722e6e58e0 | refs/heads/master | 2021-01-22T03:33:29.801890 | 2017-06-16T07:01:35 | 2017-06-16T07:01:35 | 92,387,647 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,402 | h | image.h | /* This file is part of the Pangolin Project.
* http://github.com/stevenlovegrove/Pangolin
*
* Copyright (c) 2011 Steven Lovegrove
*
* 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 wit... |
60d4d68fc5a7081a8406d348f6cdc40faa40f650 | c8d8d5335803d36549cafd55bb7c691e0bcf51fb | /2do-cuatrimestre/ejercicios/listas/ej2/ej2/main.cpp | 0c917d4a0662f2514f8d58e326548390605aac84 | [] | no_license | NicoAcosta/utn-ayed | fb7b7f9a065b37b40fac543f3cc2d09ac9362917 | d38dc7e64e4e8aed837dfdd4e191f950b8b4c925 | refs/heads/main | 2023-02-19T01:03:01.808002 | 2021-01-19T22:24:08 | 2021-01-19T22:24:08 | 306,265,257 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,639 | cpp | main.cpp | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
struct Nodo {
int info;
Nodo *sgte;
};
Nodo *aux;
void crearyLLenarLista(Nodo *lista, int n) {
aux = lista;
aux->info = (2 * n) - 7;
aux->sgte = NULL;
aux->sgte = new Nodo();
aux = aux->sgte;
aux->i... |
f33a692eb1d1937c71a175ed7d968817dd0458f8 | 19999e0f98e2077e8207e54350fb701a5a04c22e | /Stats/StatsTest2.cxx | aff0a231a0f0b66deb1cc59e3f331512b5804b23 | [
"MIT"
] | permissive | wangjiaqingll/UMICH-Physical-Design-Tools | e9e26977554e585e181be6394f6b2428ac9105d1 | fa0d990fc9def762e3a2843707a7d8a4784d2f8b | refs/heads/master | 2022-11-13T11:05:36.106620 | 2020-07-13T06:35:26 | 2020-07-13T06:35:26 | 277,409,848 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,566 | cxx | StatsTest2.cxx | /**************************************************************************
***
*** Copyright (c) 1995-2000 Regents of the University of California,
*** Andrew E. Caldwell, Andrew B. Kahng and Igor L. Markov
*** Copyright (c) 2000-2002 Regents of the University of Michigan,
*** Saurabh N... |
e6aeb93394f6f3cdc8419cd19aa4ae01980186bf | b130597521e538d2dbf6d591e5e9343c1af97c2c | /VernamCipher.h | f7e8f9373a4c1c31443f131d78655473761d9e52 | [] | no_license | momikenSneg/Vernam-cipher | f537fbfec9fdb8ff80ba1fa6a652a2bec424f220 | 30a1333bc699164a451c1e044f1e0ea80a84fd0c | refs/heads/master | 2020-09-30T02:57:34.409779 | 2019-12-10T18:11:46 | 2019-12-10T18:11:46 | 227,185,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | h | VernamCipher.h | //
// Created by momik on 27.11.2019.
//
#ifndef VERNAMCIPHER_VERNAMCIPHER_H
#define VERNAMCIPHER_VERNAMCIPHER_H
#include <string>
#include <fstream>
#include <time.h>
class VernamCipher{
private:
static const int BUF_SIZE = 100;
static char *vernamCipher(const char* key, const char *buffer, int length);
... |
58d9961f4e10f58a961f5bc794ff70a4cd25d901 | 3f46d6c42fef7177b80d4b89d4d185a1d9abc204 | /Audio Programming Coursework/IXACore.hpp | 4143d708a29b8fefe888d0bcc90339c5fa5ef02e | [] | no_license | maverickkenmore/Code-Examples-Snippets | ea460c5cdd6700dcdd5b76c4629d3cd11bbf725e | a84556bf8c4bc403a39d3bdd3176800a8b967a1d | refs/heads/master | 2021-08-30T16:00:18.761657 | 2017-12-18T14:48:58 | 2017-12-18T14:48:58 | 114,650,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,559 | hpp | IXACore.hpp | /*
file: IXACore.hpp
Version: 2.2
Date: June 2013; April 2013; September 2012.
Authors: Stuart and Allan Milne.
Namespace: AllanMilne::Audio
Exposes: IXACore.
Description:
this is a design for the XACore class that will encapsulate core XAudio2 functionality
related to the XAudio2 processing engine, masteri... |
ff19c2f402d9879f38e7ad63946d8c144db91a99 | 9c2b414958938df18b258dbec6c8baef5d5af23a | /common/macros.h | 433fc792ca3635e133d12d7d71cd9272346acec5 | [] | no_license | briancbecker/eyeslam | 30df8b707897b60b30480db09a5a158916e5263a | 98f6d2e8527b6356e9cf5ffbd03b64d911c7e040 | refs/heads/master | 2021-01-22T02:17:44.297665 | 2017-05-25T02:37:04 | 2017-05-25T02:37:04 | 92,350,213 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,712 | h | macros.h | /*==================================================================================
Filename: macros.h
Copyright 2007 Brian C. Becker
Robotics Laboratory
University of Central Florida
http://robotics.ucf.edu
Program Contents:
----------------... |
858bbb52f05d086387e545bce1c920bf55702cec | c8a15a337e1519335532488653a93a08c0302b30 | /include/proxc/process.hpp | 70f081e7ade41d45f525d926f88c18847e2875bf | [
"BSL-1.0"
] | permissive | edvardsp/libproxcplusplus | 3433efb0a5c1ec8e5b02917823a19e856055656a | aea543d7de50a26fb424485a9eed458004f57510 | refs/heads/master | 2020-03-27T07:53:36.484187 | 2018-08-26T17:58:31 | 2018-08-26T17:58:31 | 146,202,037 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,951 | hpp | process.hpp | // Copyright Oliver Kowalke 2009.
// Copyright Edvard Severin Pettersen 2017.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <iterator>
#include <tuple>
#include ... |
6192de963b11ee3dfbfd098bfa29f5963f736f2d | 737cc20f83064009c0406675d1d4ee9b2092a80b | /SampleFramework/renderer/src/gles2/GLES2RendererMaterial.h | ce68882e5c92e488ac1e0a20c1261aa0fb3f0a16 | [
"MIT"
] | permissive | jjuiddong/KarlSims | 7e32e077da376deb1c0f270eb7855d84bfa6f7f1 | e05108eb7d2e68bfe0a90a7550eba727424081b6 | refs/heads/master | 2020-04-29T03:49:14.572321 | 2016-10-13T03:30:46 | 2016-10-13T03:30:46 | 14,440,791 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,624 | h | GLES2RendererMaterial.h | // This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.