blob_id
stringlengths
40
40
content_id
stringlengths
40
40
repo_name
stringlengths
5
114
path
stringlengths
5
318
language
stringclasses
5 values
extension
stringclasses
12 values
length_bytes
int64
200
200k
license_type
stringclasses
2 values
content
stringlengths
143
200k
7d4fc9d7d05868738e18e3a079299f4a9488ad91
9e41dec2a8fd79611db2028d0a634edfdee00908
sumtreW/v8
/src/codegen/ppc/macro-assembler-ppc.cc
C++
cc
98,595
permissive
// Copyright 2014 the V8 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. #include <assert.h> // For assert #include <limits.h> // For LONG_MIN, LONG_MAX. #if V8_TARGET_ARCH_PPC #include "src/base/bits.h" #include "src/bas...
4c1a953be13b67ce6adca441c5a49b1b39f80be7
ebd07ad9d4947abbe35f1d568b501441bf40c2ff
sailfish009/binding_affinity_calculator
/lib/rosetta/source/src/core/energy_methods/CenPairEnergy.cc
C++
cc
4,693
no_license
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*- // vi: set ts=2 noet: // // (c) Copyright Rosetta Commons Member Institutions. // (c) This file is part of the Rosetta software suite and is made available under license. // (c) The Rosetta software is developed by the co...
2c8fb578c114155a709d52f4497cfe0cdba42362
601efc45d856e00ad6e1e59b9508906974467ae0
CryptoCoinLab/masternode-assistant
/frametitlebar.cpp
C++
cpp
4,320
no_license
#include <QLabel> #include <QPushButton> #include <QHBoxLayout> #include <QEvent> #include <QMouseEvent> #include <QApplication> #include "frametitlebar.h" #ifdef Q_OS_WIN #pragma comment(lib, "user32.lib") #include <qt_windows.h> #endif TitleBar::TitleBar(QWidget *parent) : QWidget(parent) { ...
a140566bf19bc6afd7ce1beed3e1093a2e2dbf7c
88a4ad8515ecd45105bff6b3558f315dec640326
radtek/soccer
/Draw/ImageChOp.cpp
C++
cpp
6,747
permissive
#include "Draw.h" namespace Upp { int Diff(RGBA a, RGBA b) { return max(abs(a.a - b.a), max(abs(a.r - b.r), max(abs(a.b - b.b), abs(a.g - b.g)))); } struct ButtonDecomposer { Image src; Image dst; int aa; int maxdiff; RGBA color; int gdiff; int gcount; void Do() { Size sz = sr...
e64714ad3ec91d45b8593fabe1b383a7a510fd1b
5df907714db187751064c1fc4e6e1a6b198f2b1b
sunwj/inviwo
/src/core/properties/positionproperty.cpp
C++
cpp
3,924
permissive
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2015 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that th...
5d1256392e826edfd3f27f3a88ee02de8a6c06b2
4a0ad4550531af8b03e14a088a0c9ac1b2a95cd7
GenKnight/quickfix-core
/src/test/bench2.cpp
C++
cpp
3,192
no_license
#include <quickfix/fix42/Quote.h> #include <algorithm> #include <map> #include <stdio.h> using namespace std; double getnow() { struct timeval tv; gettimeofday(&tv, NULL); return tv.tv_sec + tv.tv_usec / 1000000.0; } struct display_fix { char operator()(char c) { if (c == '\001') return ';'; ...
455b75e624291d83de3a3aa753cb14ed65354916
8f7a1a252a5b211e235622cf6ac349cd79853f38
jjzhang166/BOSS_ExternalLibs
/geant4/G4Be9GEMChannel.hh
C++
hh
2,714
no_license
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
159d69d311017c05030bf380860fc46439ca6f0c
3491c6294511e7b0975fb265a7319c76d402475c
BackPia/AmongTimer
/AmongTimer.cpp
C++
cpp
1,469
no_license
 // AmongTimer.cpp: 애플리케이션에 대한 클래스 동작을 정의합니다. // #include "pch.h" #include "framework.h" #include "AmongTimer.h" #include "AmongTimerDlg.h" #include "Tools.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CAmongTimerApp BEGIN_MESSAGE_MAP(CAmongTimerApp, CWinApp) ON_COMMAND(ID_HELP, &CWinApp::OnHelp) END_MESSAGE_...
7a085e30ee4d6d900628721b8d7d8385fd02ea42
abde8393ad3beeb484e266d06cabd933d2e45e3e
wlof202/MServer
/engine/src/lua_cpplib/lutil.cpp
C++
cpp
12,321
no_license
#include <lua.hpp> #include <filesystem> // create_directories #include <openssl/buffer.h> #include <openssl/evp.h> #include <openssl/md5.h> #include <openssl/sha.h> #include "lutil.hpp" #include "ltools.hpp" #include "../net/socket.hpp" // get_addr_info #ifdef __windows__ #include <rpc.h> #else #inc...
a27da7e77f313531f90ba3f2952d1219145bb529
9a82380bf9d3c7a616c973eca11005ab8e4320f6
liuguoyou/multimedia_tools
/metricknn/metricknn_cli/src/metricknn/metricknn_cli/search.cpp
C++
cpp
10,117
permissive
/* * Copyright (C) 2014-2015, ORAND S.A. <http://www.orand.cl/> * All rights reserved. * * This file is part of MetricKnn. http://metricknn.org/ * MetricKnn is made available under the terms of the BSD 2-Clause License. */ #include <iostream> #include <fstream> #include <stdexcept> #include "metricknn_cli.hpp" ...
8836a7a8d02aa5e99e0357233c22ac68412a7467
07ec33eb8d0ed3a15f4dc789bdf729477bba2bb6
xiaoqinxing/algorithm_questions
/leetcode/前缀和_1074. 元素和为目标值的子矩阵数量.cpp
C++
cpp
3,290
no_license
/* 1074. 元素和为目标值的子矩阵数量 给出矩阵 matrix 和目标值 target,返回元素总和等于目标值的非空子矩阵的数量。 子矩阵 x1, y1, x2, y2 是满足 x1 <= x <= x2 且 y1 <= y <= y2 的所有单元 matrix[x][y] 的集合。 如果 (x1, y1, x2, y2) 和 (x1', y1', x2', y2') 两个子矩阵中部分坐标不同(如:x1 != x1'),那么这两个子矩阵也不同。 示例 1: 输入:matrix = [[0,1,0],[1,1,1],[0,1,0]], target = 0 输出:4 解释:四个只含 0 的 1x1 子矩阵。 示...
1da2a056ade309fae8304e7657624ae9c5350a1b
60060131ef007e61aab4f735043ded02ae34ac94
sobanskikarol91/Arkanoid_Cpp
/Arkanoid/Przycisk.cpp
C++
cpp
1,885
no_license
#include "Przycisk.h" Przycisk::Przycisk() {}; Przycisk::Przycisk(string nazwa, Vector2f pozycja, bool pokaz) // pokaz - czy przycisk ma byc schowany na poczatku { pokaz_przycisk(pokaz); domyslna_tekstura.loadFromFile("images/" + nazwa + ".png"); sprite.setPosition(pozycja.x, pozycja.y); sprite.setTexture(domysl...
a758b0555056c931554d196017af94428f563990
3edc7da666969961b4d76293180341b5201d590b
JDCRecomendable/online-judge-answers
/solutions/fibo.cpp
C++
cpp
724
permissive
/** * Copyright (c) 2018 Jared Daniel Carbonell Recomendable. */ // #include <bits/stdc++.h> // non-standard, use only when compiling with G++ // <bits/stdc++.h> includes most header files from the C++ standard libraries, // making it suitable for programming contests where speed determines rank, but // not for task...
83466e13568a500d9410883f7f30713aad305806
43cdf54285e092de9d3e08a3e0a22837d10d8222
MarieKMiko/Warrior-Game
/Hulk.cpp
C++
cpp
1,733
no_license
/****************************************** ** Author: Marie Knapp ** Date: December 4th, 2018 ** Description: Hulk is a derived class of Player. Hulk is strong in both upper and lower body. *******************************************/ #include <iostream> #include <string> #include <vector> #include "Player.hpp" #inc...
cb3366e25c360a21b0a96e4456f0c6f5a50ed288
fce4834bf14ff7361b7283bb0e7a4dbd933e987a
CaioL-ops/potential1
/Atividade 12 algoritmo (Lista 04).cpp
C++
cpp
845
permissive
#include<stdio.h> #include<stdlib.h> #include<locale.h> int main(){ setlocale(LC_ALL, "Portuguese"); int votos[TAM_VOTOS] = {0, 0, 0, 0, 0, 0}; char tipo_voto[][14] = {"Candidato1", "Candidato2", "Candidato3", "Candidato4", "Votos nulos", "Votos brancos"}; int i, voto; printf("------------------------...
fb452a21714ca12984b7ba2fe7243814a84911e6
68568cfbcaa4164f290483b1f90c9280def932b1
devikakrishnadas/OJ-problems
/codeforces/PrizesPrizesMorePrizes.cpp
C++
cpp
978
no_license
#include<bits/stdc++.h> #define ll long long #define vi vector<int> #define vc vector<char> #define vll vector<ll> #define pb push_back #define sf scanf #define ff first #define ss second #define pf printf #define mp make_pair #define all(V) V.begin(),V.end() using namespace std; int main() { ios_base::sync_with_std...
a97eb267a3adb1198e9223bcd4684237e88d4259
eb5e4ea7c90615820ee156463d7a0b21a2bad090
aschroe/fractals
/FractalApp.cpp
C++
cpp
2,086
no_license
#include "stdafx.h" FractalApp* FractalApp::instance = nullptr; FractalApp::FractalApp() : window(NULL) {} FractalApp& FractalApp::GetInstance() { return *instance; } void FractalApp::Initialize(HINSTANCE hInstance) { instance = this; // Setup winapi WNDCLASSEX wcex = { sizeof(WNDCLASSEX) }; wcex.style ...
cc176a8d0c597f3b94d9526a8bfe7a3d080d9563
3844c8a4c2bd682b8ef6bb02f5fb688470ffc727
tnsr1/Qt5xHb
/source/QtLocation/QGeoCodingManagerEngineSlots.cpp
C++
cpp
2,726
permissive
/* Qt5xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 5 Copyright (C) 2020 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com> */ /* DO NOT EDIT THIS FILE - the content was created using a source code generator */ #include "QGeoCodingManagerEngineSlots.h" QGeoCodingManager...
30fa847c6673b21f717b5073a423a455573bed93
37073cdd2fa1e795638119312e443af8aeb365bf
Jou-sy/projet_openGL
/projet_openGL/test_20_12/src/CArc.cpp
C++
cpp
547
no_license
/* * CArc.cpp * * Created on: 22 déc. 2009 * Author: girouxi */ #include "/Users/Sylvain/Documents/ENSG/opengl/test_20_12/headers/CArc.h" #include <string> #include <stdio.h> using namespace std; CArc::CArc() { } CArc::CArc(int idarc, int sini, int sfin):id_arc(idarc), id_sommet_ini(sini), id_sommet_fin(sf...
d1573caf4770b085587829ccee36e6a9be325ede
d1857ac47531e18636e810b24b0b6dd7087f267d
Akaito/csaru-core-cpp-test
/src/main.cpp
C++
cpp
746
permissive
#include <cstdio> #include <csaru-core-cpp/csaru-core-cpp.hpp> // unused() #include <csaru-core-cpp/csaru-core-cpp.hpp> // test double-include int main (int argc, char ** argv) { unused(argc); unused(argv); std::size_t tempSt = CSaruCore::GetSystemPageSize(); std::printf("System page size is {" PF_S...
ce7940e6b23f8cd0dd1efd09fc9055a5b272154b
a9eec25a8775cfbc71266537ece3841997af87c9
djw8605/htcondor
/src/condor_ckpt_server/xferstat2.cpp
C++
cpp
27,709
permissive
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
d4c85f5f91d7e5f9aaac228739e9c2b275b8d75d
632429a7559b4178dd9ce269d9f468af0ad9d87f
soft9000/era
/hpp/StatLog.hpp
C++
hpp
428
permissive
#ifndef StatLog_hpp1 #define StatLog_hpp1 #include <iostream> #include <vector> #include "era.hpp" namespace era01 { enum Stat { DEBUG, WARNING, ERROR, INFO }; // Opportunities abound for Stat filtering, Stat counts, (etc.) class StatLog : public EzLog { public: StatLog(const File& file); bool append(Stat st...
39474d9d117440e8f41e29af49c132b3df6b6c85
5d70f38cab17c7873f4fea16c1feb646c5e83361
Abhiicode/Graph-Full-Course
/Graph/13.ArticulationPoint.cpp/Ap.cpp
C++
cpp
1,607
no_license
#include<bits/stdc++.h> using namespace std; void dfs(int node, int parent, vector<int>&vis, vector<int>&low, vector<int>&tin, vector<int>&ap ,vector<int>adj[],int&timer){ vis[node] = 1; low[node] = tin[node] = timer++; int child = 0; for(auto it : adj[node]){ if(it =...
d8ae7a35d8643a8e9c6110876a16f76c5fc7c8c8
92181045ad8695474534cb3c858a107e3ba5b6f9
dring1/COMP2404
/Assignment4/Assignment4_10/Soldier.cpp
C++
cpp
1,589
no_license
#include "Soldier.h" #include "random.h" #include "King.h" #include "Timmy.h" #include "Harold.h" #include "Pirate.h" #include <iostream> using namespace std; Soldier::Soldier():Warrior(100000,3,15)//call base class constructor { } //virtual move void Soldier::move() { //set move accordingly to outline int temp_y...
567d352202b3daca191ce9b6e7ddeec86d035693
f300a7ba07bd2bacd6e0b33aa6fefed70ee06438
codeplaysoftware/parallelts-range-exploration
/range-v3/include/range/v3/algorithm/shuffle.hpp
C++
hpp
2,902
permissive
/// \file // Range v3 library // // Copyright Eric Niebler 2014 // // Use, modification and distribution is subject to the // Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // Project home: https://github.com/ericniebler/range-v...
fd94ef80afad83a47a6dc5aa90fc5be75cf226aa
048943f543be2c533251dc313e3abbb3be20cfb1
noticeable/flashlight
/flashlight/meter/TimeMeter.cpp
C++
cpp
1,188
permissive
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "flashlight/flashlight/meter/TimeMeter.h" namespace fl { TimeMeter::TimeMeter(bool unit /* = false */) : useUnit_(...
054d4e10074052ce7b9aafc417cf6d294b0550d7
65a8cb2d1c58889e9293659975e5067392f45c89
hasansuryaman/tugas_11_cplusplus
/tugas11.cpp
C++
cpp
344
no_license
#include <iostream> using namespace std; int segitiga(int alas, int tinggi){ int hasil; hasil = (alas * tinggi) / 2; return hasil; } int main(){ int a, b; cout <<"Inputkan Alas Segitiga : "; cin >>a; cout <<"Inputkan Tinggi Segitiga : "; cin >>b; cout <<"Luas Segitiga Adalah :" <<...
3cc30edf5d138a94559b9ab44b145d55cfdc7cd1
937ffd27b32a65cf64dba63d3ecc4d28403b32ef
navigator117/gn
/tools/gn/functions.cc
C++
cc
48,314
permissive
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "tools/gn/functions.h" #include <stddef.h> #include <iostream> #include <memory> #include <regex> #include <utility> #include "base/environ...
7d6b5deb7e6ed9758f1bc5f6382500f21e489113
3bb24bc7b7656d7339881bc790fe479a827dafd0
Alan-Baylis/FishEngine
/Engine/Source/Editor/generate/Enum_ModelImporterMaterialSearch.hpp
C++
hpp
1,936
permissive
#pragma once #include <ReflectEnum.hpp> #include <ModelImporter.hpp> namespace FishEngine { /************************************************** * FishEditor::ModelImporterMaterialSearch **************************************************/ // enum count template<> constexpr int EnumCount<FishEditor::ModelImporterMat...
9a5ee5bd981c2ec9870487041649b6f4562d419a
0e94f8281647fac9db625d1d6cda7148722a3bf8
screamatthewind/multicast
/mpegts-languages/mpegts-languages/src/thread.cpp
C++
cpp
13,177
no_license
/* * thread.c: A simple thread base class * * See the main source file 'vdr.c' for copyright information and * how to reach the author. * * $Id: thread.c 2.3 2009/04/13 13:50:39 kls Exp $ */ #include "thread.h" #include <errno.h> #include <linux/unistd.h> #include <malloc.h> #include <stdarg.h> #include <stdlib...
29a32087883886e5e2e27908427a3c78f10b4ae1
007fb9ef9b345f557c4b8334ba5b20733d1058f9
johanfranz/Compiladores
/Fase3/file2.cpp
C++
cpp
375
no_license
#include<stdio.h> #include<ctype.h> #include<string.h> #include<iostream> using namespace std; int contador, z = 0; char prims[10][100]; char next[10][100]; int l = 0; char prod[10][10]; char f[10], prim[10]; int k; char ck; int e; void siguienteprim(char, int, int); void siguiente(char letra); void buscarprim(char, ...
109a1f9e6ea4b6c1923404c81b67e1fb6558ed0f
ebb7b4f058928bf5b895980682d4755b0f78538f
isaigm/leetcode
/reordered-power-of-2/Accepted/3-20-2021, 11_40_17 AM/Solution.cpp
C++
cpp
584
no_license
// https://leetcode.com/problems/reordered-power-of-2 class Solution { public: bool reorderedPowerOf2(int N) { std::set<int> s; for(int i = 0, j; (j = std::pow(2, i)) <= 1000000000; i++) { s.insert(hash(std::to_string(j))); } if(s.find(hash(std::to_string(N))) ==...
e49cab6c312dfc1149a1d4431db2050c9c60ba33
04c1a31aea2515b6664448bc3c3d5bfb83d13324
junxzm1990/ASAN--
/testcases/juliet_test_suite/testcases/CWE122_Heap_Based_Buffer_Overflow/s02/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_wchar_t_cpy_83_goodG2B.cpp
C++
cpp
1,550
no_license
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_wchar_t_cpy_83_goodG2B.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193.label.xml Template File: sources-sink-83_goodG2B.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * Ba...
115ecc531a12aca77a2872d12e1d53417f1a0284
eb18f6558a12d0fc6759856b376ae10d50728194
ZigRazor/neoml
/NeoML/Python/src/PyTransposeLayer.cpp
C++
cpp
3,358
permissive
/* Copyright © 2017-2021 ABBYY Production LLC 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 in ...
22db25354f063142033c7bc7843ce9ae4468dfad
f7e1cb09547c77c77f981c14932e6b1296989a30
sswroom/SClass
/main/Test/Crypto/TestCRC16.cpp
C++
cpp
1,105
no_license
#include "Stdafx.h" #include "Core/Core.h" #include "Data/ByteTool.h" #include "Crypto/Hash/HashCreator.h" Int32 MyMain(NotNullPtr<Core::IProgControl> progCtrl) { UInt8 testBlock[32]; UInt8 hashVal[32]; Crypto::Hash::IHash *hash; hash = Crypto::Hash::HashCreator::CreateHash(Crypto::Hash::HashType::CRC16); UOSIn...
eb64c6039326c7660a6a1dcb90c8ef11f7e5b6eb
7fb7734585833187ef90c537843ee5da11126bc3
KevinVoell/OSKernel
/src/KernelUtil.cpp
C++
cpp
3,886
no_license
#include "KernelUtil.h" #include "GDT/GDT.h" #include "Interrupts/IDT.h" #include "Interrupts/interrupts.h" #include "IO.h" #include "UserInput/Mouse.h" #include "Memory/Heap.h" KernelInfo kernelInfo; IDTR idtr; BasicRenderer r = BasicRenderer(NULL, NULL); void PrepareMemory(BootInfo* bootInfo){ Glob...
c16d013c753b42ba13127f4cb38deb3ee6182434
11b791813370fc75c29b17f546a145cb22d07eab
moderdonia/DSG-2019
/TextGame/World.cpp
C++
cpp
1,836
no_license
#include "stdafx.h" #include "World.h" #include <iostream> #include <stdlib.h> #include <algorithm> #include <chrono> #include <thread> #include <fstream> #include "System.h" #include "stdafx.h" #include <stdio.h> #include <istream> using namespace std; World::World(std::string nameFile) { System::hideCursor(); //...
2784a77ff853683eb613345b2ff2da314005430f
819885809bc7decf641866b25967796e265b3a17
AM7000000/godot
/scene/gui/popup_menu.cpp
C++
cpp
23,922
permissive
/*************************************************************************/ /* popup_menu.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
0f857c3093a44b712c3c7815a2d893771d720cde
a898d00931d4e4bd4fcc6acbe94588224c4b4ab7
bxy09/HAC
/data_prepare/generate_constraints.cpp
C++
cpp
1,566
no_license
#include<iostream> #include<fstream> #include<vector> using namespace std; int main(int argc, char* argv[]) { if(argc != 2){ cout << "usage: arg1 label_marked" << endl; return 1; } int num_level; //the number of level int num_doc; int label_temp; int id; ifstream fp_label_marked(argv[1]); if(fp_label_marked...
f7c5c913f4015a1f5a43387f4410887168c51cf5
71750b6f619e9b41468957499b45af39cac2820d
swf1711410916/chromium
/chrome/browser/ui/webui/signin/profile_picker_handler.cc
C++
cc
10,674
permissive
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/webui/signin/profile_picker_handler.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/rand_util.h" #inc...
1545199739b23cd67bb4197e268ec700d42a4848
f8bc0181c62b3989a81568f0870a065841270918
dkniffin/virtualscape
/HeroscapeEditor/TileGrass24.cpp
C++
cpp
11,331
no_license
// TileGrass24.cpp : implementation file // #include "StdAfx.h" #include "TileGrass24.h" // The constructor // CTileGrass24::CTileGrass24() { m_NbTile = 24; m_Type = TYPE_GRASS*1000+m_NbTile; m_TileColor = RGB(0,160,0); Init(); } // The destructor // CTileGrass24::~CTileGrass24() { } // Get a copy of this til...
7e8d6b153ece00c5b30af866975f226df9ca2494
7c95a8be1b1114a517042942278b300873a2a256
xinerfeixiang/find-the-string
/RotateDemoTest/build-RotateDemoTest-Desktop_Qt_5_9_1_MinGW_32bit-Debug/debug/moc_mytitlebar.cpp
C++
cpp
6,711
no_license
/**************************************************************************** ** Meta object code from reading C++ file 'mytitlebar.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.1) ** ** WARNING! All changes made in this file will be lost! **********************************************************...
f99a7cdf34de9852a65d257284421cae3da2a8e6
249cf669cff05b4a247de58fef32236ddde51a9f
Afra55/VideoImageFilter
/app/src/main/cpp/utils/GGaussFilter.cpp
C++
cpp
3,748
no_license
#include"GGaussFilter.h" #include<cstdlib> #include<cmath> #include<cstring> #include<cstdio> #include <jni.h> #include"../common.h" /************************************************************* *Function: 高斯模版计算 *Params: * r-radius of gauss filter * sigma-sigma of gauss filter * gaussMask-gauss weight ...
af824258586a32b7d0d2dae3bc0215dda995429d
29a77ec586331308c6e27542515d805c439f2586
djordje11/DP-Procedure
/main.cpp
C++
cpp
295
no_license
#include "dp.h" #include <set> #include <map> #include <iostream> #include <algorithm> #include <fstream> int main() { std::string s; std::cin >> s; std::fstream f(s); Cnf formula; DP dp; f >> formula; std::cout << dp.is_satisfiable(formula) << std::endl; }
b613ae7b1713ae71392d610b05b558625f3e3324
0582652bba06aac110fdecf2aff8514165b38310
amychou/cs166-project
/Tango.cpp
C++
cpp
5,559
no_license
#include "Tango.h" #include <iostream> #include <stack> using namespace std; bool Tango::search(size_t key){ return false; } Tango::Node** Tango::cut(Tango::Node* root, size_t depth){ bool to_mark = root->is_root; root->is_root = false; Tango::Node* l = root->max_d > d ? root : nullptr; while (l && l->left...
cb98ad23b68a30dfeb0f8673dd482dce5c35695e
8cab511c97b561cd3515d67c45c26cebc55263d3
jfmherokiller/TheOuterWorldsSdkDump
/Indi/SDK/Indi_DTPrimalBehemPhaseChange_functions.cpp
C++
cpp
359
no_license
// TheOuterWorlds SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "Indi_DTPrimalBehemPhaseChange_parameters.hpp" namespace SDK { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------------------------- } #if...
d15648535afc0051fa3b508304d8ab5cb580cdcf
befebee599b2cae41fc74517c19764e82920298b
Tsaiyen/5-sorting
/資料結構hw1/Lomuto/main.cpp
C++
cpp
1,275
no_license
#include <cstdlib> #include <iostream> #include <math.h> #include <time.h> #include "lomuto.h" #include <fstream> #include <cstring> us...
75b5ed650b5b5ff54bc261bf8a6b6295a50d8752
b13897571dc06b1734d91aa108f8f3d3fc481032
Quanteek/OpenNN-CMake
/tests/cross_entropy_error_test.cpp
C++
cpp
7,357
no_license
/****************************************************************************************************************/ /* */ /* OpenNN: Open Neural Networks Library ...
186dee7b1b9265685d16036e7f871fd750547ae6
ed33adf7604a21a4faa44e859347369c1156e4cf
mooosu/zbroker
/src/request_handler.cc
C++
cc
1,289
no_license
#include "common.h" #include <boost/functional/hash.hpp> #include <google/sparse_hash_map> request_handler::request_handler(zmq::context_t *context ,const char* config_file) { m_config_file = config_file; m_context = context; } void request_handler::run() { init(); m_socket = new zmq::socket_t(*m_...
9a247ed64a7ca6b7c518a7f5193b54dd0c83007e
a0cc8e2cae1aeaa3de0817339fe4e330b99796c8
apache/airavata
/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/thrift/protocol/TJSONProtocol.cpp
C++
cpp
28,511
permissive
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
17e0cd994db5388c64b2a59f67b2f657465b1988
8cd15a05aaa48bc4a0f6ff6b5c85bedaba05c58f
CalebusX/KolyaSapozhnikov
/Лаба 1. Сапожников Николай БПЗ1502.cpp
C++
cpp
3,479
no_license
//Задание 1 #define CRT_SECURE_NO_WARNINGS #include "stdio.h" #include "math.h" void main() { double x = 2, y = 6, f = ((sin(x)+cos(2*y-x))/(cos(x)-sin(2*y-x))); printf("task1\n"); printf("x = %f\n", x); printf("y = %f\nf = %f\n\n", y, f); printf("next\n\n"); printf("x = "); scanf("%lf", &x); p...
cf0ae9d56b40a52737d8cc8cf5c3e5df355419c3
89ed586c99a2dad9dd6bbaa4fe7f1d78098ebac3
sunho/algorithms
/old/codeup/2016.11.05 자리바꿈 소수.cpp
C++
cpp
2,697
no_license
/************************************************************** # 문제 설명 [문제3] 자리바꿈 소수 (20점, 제한시간 1초) 소수(prime number)는 1과 자신을 제외하고는 약수가 없는 수이다. 어떤 수에서 자리수의 위치를 바꾸었을 때 소수의 여부가 달라질 수 있다. 예를 들어, 23은 소수이지만, 십의 자리와 일의 자리의 수를 바꾸어 32가 되면 소수가 아니다.   입력되는 정수의 자리수를 바꾸어서 만들어질 수 있는 소수를 출력하는 프로그램을 작성하시오.   예를 들어, 113의 자리수를 바...
da1e83366857bf72e4dbd0b2feefa31d3c932c81
e79ccf5c8cb0a2068508452b2339d06a598191a0
fanzcsoft/windows_embedded_ce_6_r3_170331
/windows_embedded_ce_6_r3_170331/WINCE600/PRIVATE/DIRECTX/DSHOW/FILTERS/DVR/AUDIOSYNC/audiosync.cpp
C++
cpp
127,782
no_license
// // Copyright (c) Microsoft Corporation. All rights reserved. // // // Use of this source code is subject to the terms of the Microsoft shared // source or premium shared source license agreement under which you licensed // this source code. If you did not accept the terms of the license agreement, // you are...
5ddde0ba02d0c612516d75e6b0dee222f4b7a612
4cb676388b1596a99b5f922396fc6b8ef70b42d5
irods/irods
/server/api/src/rsChkNVPathPerm.cpp
C++
cpp
5,280
permissive
/*** Copyright (c), The Regents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ /* This is script-generated code (for the most part). */ /* See chkNVPathPerm.h for a description of this API call.*/ #include "irods/chkNVPathPerm.h" #include...
92c9e2c61bdf1e81f8fc6396912588583373504f
ccac5f0ad29321f29fa37d67defe64529fcf7b4c
kyx0r/FA_Patcher
/boost_lib/boost/math/special_functions/jacobi_elliptic.hpp
C++
hpp
9,808
permissive
// Copyright John Maddock 2012. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt // or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_MATH_JACOBI_ELLIPTIC_HPP #define BOOST_MATH_JACOBI_ELLIPTIC_HPP #include <boost/m...
15f266f59c42d603479dddea12311cb204415b74
ab62e04446cfab32358f6c37091569f4a96a6254
pablodev97/Engine
/Engine/code/sources/UpdateTask.cpp
C++
cpp
299
no_license
#include "UpdateTask.hpp" namespace Engine { UpdateTask::UpdateTask(Scene* scene, int priority) : Task(priority, scene) { } bool UpdateTask::initialize() { return false; } bool UpdateTask::finalize() { return false; } bool UpdateTask::do_step(float time) { return false; } }
c93b34a4df7c00a82810e5764167ad0bd59e347a
9caf4bdc67270cab49d9e373c87c43d8c773ffec
iuyte/batmobile
/include/okapi/api/filter/velMath.hpp
C++
hpp
2,175
permissive
/** * @author Ryan Benasutti, WPI * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once #include "okapi/api/filter/composableFilter.hpp" #include "oka...
4c261185ae739a14a8bc86ae755fbc9447ba6205
31c7a0077a952d002aaf044f855de7066e1fd46a
saranshbht/bsc-codes
/semester-3/data-structures/stackClassArray.cpp
C++
cpp
1,150
permissive
#include<iostream> using namespace std; template<typename T> class stack{ T *arr; int size; int top; public: stack(int s = 0){ size = s; top = -1; arr = new T[size]; } bool isEmpty(){ return top == -1; } ...
f7c514032e597d71332f0b287737aca7a3400290
1e80877fd99d54d49d9584fd7c01445b53f027cc
reelrbtx/SMACC2
/smacc2_sm_reference_library/sm_multi_stage_1/include/sm_multi_stage_1/states/cmv_cycle_4/sti_cmv_cycle_plateau_4.hpp
C++
hpp
1,995
permissive
// Copyright 2021 RobosoftAI 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...
1cc0e9ef81c8064b41bc4061a5ccda5d001a9dd3
7f324337f626ff45bad4dcdc12eda891292dcb90
PacificHongyang/USACO-training
/usaco第1章/usaco1.5/1.5c++版/sprime.cpp
C++
cpp
855
no_license
/* ID: silentf1 PROG: sprime LANG: C++ */ #include <fstream> #include<cmath> using namespace std; ofstream fout ("sprime.out",ios::out); ifstream fin ("sprime.in",ios::in); int n,sum[9],ju[2][4]={{2,3,5,7},{1,3,7,9}}; bool prime(int a) //素数检查 { for(int i=2;i<=sqrt(a);i++) if (a%i==0) return false; return true; } i...
d5b122c1bc29ccd7f2cda967117d5fb1536a3ec7
d45d0e9d18c4007450bdf2f5a3d91c151c3b1326
stalker5217/algorithm
/SWEXPERTACADEMY/1938.cpp
C++
cpp
211
no_license
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); printf("%d\n", a + b); printf("%d\n", a - b); printf("%d\n", a*b); printf("%d\n", a / b); return 0; }
134b569ae1a491989c3b9ff40c7983fbb133e33a
c7de1026f13e7c3c7efca2b8765f4c4c1bc88511
SzekeresBoroka/dots_and_boxes_minimax
/main.cpp
C++
cpp
2,022
no_license
#include <iostream> #include <cstdio> #include "Game.h" #include "HumanPlayer.h" #include "ComputerPlayer.h" using namespace std; int main(int argc, char *argv[]) { cout << "Dots and Boxes - Minimax Algorithm" << endl << endl; int rows = 0, cols = 0, depth, turnTime; bool inputDepth = false, inputTime = false; fo...
4b07249f49e78654ba5146e12405e53b8e7aa5f3
cf723a2e8c772a58dbf3818e3d160f5c9c786921
lyz05/Sources
/OI/纪中刘远哲/2015/9.19/22.cpp
C++
cpp
1,023
no_license
#include <cstdio> #include <algorithm> #include <cstring> #include <string> using namespace std; typedef long long LL; const int N = 100000+5, mo = 1e4; LL x; int n; int a[N],w[N][27],rank[N]; LL f[N][27],ans; int data(LL &x) { x = (100000005*x + 1532777326) % 998244353; return (int)x/100; } void init() { scanf("...
326c0f8acdccd46ef99a111404392353166d317b
1c5a8ced2efe01b21977821b52f1d5858cfd7cc8
chadaustin/sphere
/glome/common/LogWindow.cpp
C++
cpp
8,251
no_license
#include <string.h> #include "LogWindow.hpp" #define STRING_HEIGHT 16 //////////////////////////////////////////////////////////////////////////////// CLogWindow::CLogWindow(HINSTANCE instance, const char* caption) { // zero out the strings m_TopString = 0; m_NumStrings = 0; memset(m_CurrentS...
2db806b630da751773a41d104c788ea80379a913
a5b02a47c6c8061a691323f0360080ad66d5b84b
MaSteve/UVA-problems
/UVA11463.cpp
C++
cpp
1,380
permissive
#include <iostream> #include <vector> #include <queue> #include <utility> #include <climits> using namespace std; typedef vector<int> vi; typedef pair<int, int> ii; typedef vector<ii> vii; vector<vii> AdjList; void dijkstra(int s, vi & dist) { dist[s] = 0; priority_queue<ii, vector<ii>, greater<ii> > pq; ...
0fbd94fe38f56a07a558b6f09fb3633c7dfe01ac
9f862252676431d48af60d09949a1aeca94dd5fe
nachiketkanore/Codeforces-Solved-Problems
/305_C.cpp
C++
cpp
716
no_license
//Let's start from scratch again #include<bits/stdc++.h> using namespace std; #define int long long int32_t main(){ int n; cin >> n; multiset<int> f; for(int i = 0; i < n; i++){ int vl; cin >> vl; f.insert(vl); } int set_bits = 0; int len = 0; while(!f.empty()){...
53f8396b7c31838db5c063d112fd45a4732e418e
e09f33a691ee2cc2c255332dbef2a481cb700b9c
niuxu18/logTracker-old
/second/download/squid/gumtree/squid_repos_function_6534_last_repos.cpp
C++
cpp
1,562
no_license
void AIODiskFile::write(WriteRequest *request) { int slot; async_queue_entry_t *qe; assert(strategy->aq.aq_state == AQ_STATE_SETUP); /* Find a free slot */ slot = strategy->findSlot(); if (slot < 0) { /* No free slot? Callback error, and return */ fatal("Aiee! out of aiocb slo...
b68a620ed4dfc9424342212295660e711a3436d2
3209b488d7c012ba59b7a5bf743a38a883237bba
qiaolei-qql/root
/redis/redis_client/src/SDDenyCrawlerCache.cpp
C++
cpp
5,232
no_license
#ifndef SD_DENY_CRAWLER_CPP #define SD_DENY_CRAWLER_CPP #include "SDDenyCrawlerCache.h" #include <common/SDUtility.h> #include "SDRedisStringHandler.h" template<typename RedisKey, typename RedisValue> //IMPL_LOGGER(SDDenyCrawlerCache<RedisKey,RedisValue> , logger); log4cplus::Logger SDDenyCrawlerCache<RedisKey,Redi...
6cf1a72782658a89683f99e3361d9d7594b666f5
19e250db605a67e040fcfcfa836e0c1ca6a2ea8e
rutgers-apl/PTRacer
/test_suite/dr_branch_115_Yes.cpp
C++
cpp
13,333
no_license
#include<iostream> #include "t_debug_task.h" #include "tbb/mutex.h" using namespace std; using namespace tbb; #define NUM_TASKS 22 int shd[NUM_TASKS]; int CHECK_AV shd_var = 0; bool c; tbb::mutex x_mutex; tbb::mutex::scoped_lock myLock; class Task1: public t_debug_task { public: task* execute() { __exec_begi...
36eb9ba6fdc3f76f280140d6b8d2f0aa740af58e
1e8a726cffd777d454d4e32184b454b7a623dce2
DairovOlzhas/ADS_assist
/asdf.cpp
C++
cpp
1,027
no_license
#include <bits/stdc++.h> #include <iostream> // #define vi vector <int> #define seti set<int> #define mii map<int,int> #define ull unsigned long long #define fi first #define se second #define pb push_back #define mp make_pair #define MAX 100100 using namespace std; vector<int> g[100100]; bool used[100100]; int cnt; ...
50ad2d0e78b9b4f602de07c597319680644f5db1
d6e238ad3a58baf21cf80045dec1ba8d43750caa
dalefugier/DetectFX
/DetectFXDlg.cpp
C++
cpp
3,634
no_license
#include "stdafx.h" #include "DetectFX.h" #include "DetectFXDlg.h" #include "DetectDotNet.h" #ifdef _DEBUG #define new DEBUG_NEW #endif CDetectFXDlg::CDetectFXDlg(CWnd* pParent) : CDialog(CDetectFXDlg::IDD, pParent) { m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); m_pEditBkBrush = new CBrush(RGB(255, 255, 255)...
f640f7be5420a25c2c4fbc9064068351e34fca45
3af205c2089e25e90d4f4885a92f8fa11376683f
eteran/PcapPlusPlus
/Packet++/src/RawPacket.cpp
C++
cpp
4,302
permissive
#define LOG_MODULE PacketLogModuleRawPacket #include "RawPacket.h" #include <string.h> #include "Logger.h" namespace pcpp { void RawPacket::Init() { m_pRawData = 0; m_RawDataLen = 0; m_DeleteRawDataAtDestructor = true; m_RawPacketSet = false; m_linkLayerType = LINKTYPE_ETHERNET; } RawPacket::...
ef4691ae764fe388e1a1959af1cbe55662755a6c
4bd65984f3b60c8369a4eb0644ef88346bbea397
PedroHRPBS/flight_scenario
/include/WaitForCondition.hpp
C++
hpp
264
no_license
#pragma once #include "FlightElement.hpp" #include "Condition.hpp" class WaitForCondition : public FlightElement{ private: Condition* m_wait_condition; public: void perform(); void receiveMsgData(DataMessage* t_msg); WaitForCondition(Condition*); };
0843e3dd18aafb3c75d1619d14cf38caf4cf9959
47e7ddb8263d5f18da695a004ecfc6bf2fcd60ef
duanhjlt/v8
/src/code-stubs-hydrogen.cc
C++
cc
74,057
permissive
// Copyright 2012 the V8 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. #include "src/v8.h" #include "src/bailout-reason.h" #include "src/code-stubs.h" #include "src/field-index.h" #include "src/hydrogen.h" #include "src/ic...
9f130764d8043543abb842189311a1f207fee32e
fb66fd1358307843b51effede31b2e120963b6e1
Jeffhabs/School
/CS3005Xcode/Ultimate Tic-Tac-Toe/Ultimate Tic-Tac-Toe/Line.cpp
C++
cpp
1,468
no_license
// // Line.cpp // Ultimate Tic-Tac-Toe // // Created by Jeffrey Haberle on 12/9/15. // Copyright © 2015 CS3005. All rights reserved. // #include "Line.hpp" Line::Line(Point p1, Point p2) { mWidth = 5; mVertical = p1.getY() > p2.getY(); setLP1(p1); setLP2(p2); } void Line::draw() { glColor3d(1,...
42aa37b31acf474c873a881e2fecaf1d2d9daeeb
3747a9fd32ba37e02eeef6c108b2cb84a4ecad21
ksmyth/xerces-c
/src/xercesc/internal/SGXMLScanner.cpp
C++
cpp
189,295
permissive
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you...
d3b277794ba63fced979dac01d7edcc766f3e47f
202b3af7bcae4b458a542858000ccd3e5c9a816b
jevarg/bomberman-reworkd
/bomberman/inc/Player.hpp
C++
hpp
630
no_license
#ifndef _PLAYER_HPP_ # define _PLAYER_HPP_ # include "Camera.hpp" # include "ACharacter.hpp" class Player : public ACharacter { public: Player(int x, int y, t_gameinfo *gameInfo, eType type, bool multi = false, bool thread = true); virtual ~Player(); bool checkInput(); bool checkInputSingle(); bool checkI...
260041b9594eb3044a6b148e50d285e074a47d89
a10543144e30a8633ebd40152f2cf9276a7a3ad3
bamx23/diploma
/Diploma/field-print.cpp
C++
cpp
3,664
no_license
// // Copyright (c) 2015 Nikolay Volosatov. All rights reserved. // #include "field.h" #include "algo.h" #include <cmath> #include <sys/types.h> #include <unistd.h> double Field::view(double x1, double x2) { long x1index = floor(x1 / hX) - mySX; long x2index = floor(x2 / hY) - mySY + (topN != NOBODY ? 1 : 0...
f169b509bba42799bad9c9b77296d5e61213fee7
695d9b219e4887bf6f588cd3246634a44eef92e8
Brucethebrat/oop_midterm
/example/example_moving_on_int_blocks.cpp
C++
cpp
14,483
no_license
/* Alphar: 2020.04.19 */ #include <stdio.h> #include <stdlib.h> #include <SDL.h> // Using SDL #include "SDL2_gfxPrimitives.h" // Using SDL2_gfx #include "SDL_image.h" // Using SDL2 image extension library //Screen dimension constants const int WIDTH = 750; const int HEIGHT = 500; const int CH01_FRAME = 16; const in...
df6f6ab5751dd7b43c61ebddd74b5ce62402f228
cb6ec33583273c28549c619c30e052d650b39f1c
martilud/Project-Thesis
/C/src/main.cpp
C++
cpp
4,257
no_license
#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <iostream> #include <math.h> using namespace cv; using namespace std; Mat_<float> div(const Mat &image){ int n = *(image.size + 1); int m = *(image.size + 2); int pdim[3] = {2, n, m}; Mat te...
37658cacf2ba351e09203e3fc0a8fcffb285aa02
12f1e2ae4697b4bcc012daad3c40b122db47800a
Vmp309/LP1
/Roteiro1/Exercicio3.cpp
C++
cpp
1,292
no_license
#include <iostream> #include <stdlib.h> #include <vector> #define totalFaces 6 using namespace std; int main (){ int nVezes = 0; int face1 = 0; int face2 = 0; int face3 = 0; int face4 = 0; int face5 = 0; int face6 = 0; int tentativa; double percentual; while (1){ cin...
6fbe9abb2acd1150d253d4b03cd08a90719d56d2
0a76e55a1877d9d2dc060e10a1616c06f8db3223
nDy/Macros
/Macros/SampleFolder/SecondClass.cpp
C++
cpp
508
no_license
/* * SecondClass.cpp * * Created on: Apr 22, 2017 * Author: ndy */ #include "SecondClass.h" SecondClass::SecondClass() { this->Sample = new SampleClass(); } int SecondClass::RandomMethodThatCallsSampleClass() { bool test = this->Sample->SampleClassParametrizedMethod(5,6); if(test){ return 0; } ret...
80a8005bee2ef4425f1ef743a0b80d0497a2427f
ec76462b163edef47ddaac80d9cb551a50c4ea2a
dariolanza95/AutomaticShading
/Data/PxrWorleyDworking03.cpp
C++
cpp
40,053
no_license
/* # ------------------------------------------------------------------------------ # # Copyright (c) 1986-2019 Pixar. All rights reserved. # # The information in this file (the "Software") is provided for the exclusive # use of the software licensees of Pixar ("Licensees"). Licensees have the # right to incorp...
4a3c23af02e6eb2e69ee4de1f3f13353c7600122
f222abbe9f84181d0ed404c865584d4f2f55b886
jaatadia/awesome-tim
/awesome-tim/awesome-tim/PopBalloonMessage.cpp
C++
cpp
288
no_license
#include "PopBalloonMessage.h" PopBalloonMessage::PopBalloonMessage(void) { this->type = MSG_TYPE_POP_BALLOON; } PopBalloonMessage::PopBalloonMessage(string msg):FigureMessage(msg) { this->type = MSG_TYPE_POP_BALLOON; } PopBalloonMessage::~PopBalloonMessage(void) { }
177059557f62b7c8407837f19083a252e69c40b7
49d43fe462ce4c44d3aa5d7ab07981678d0d7bbb
Carlosuca/Proyectos-de-progra
/numeros_complejos.cpp
C++
cpp
991
no_license
#include<iostream> using namespace std; struct complejo{ int real,imaginaria,resultado; } n1,n2,n3,n4; void pedirDatos(); complejo multi(complejo,complejo,complejo,complejo); void muestra(complejo); int main(){ pedirDatos(); complejo r = multi(n1,n2,n3,n4); muestra(r); return 0; } void pedirDatos(){ ...
b35c2cfccf2b24bdc6069c96f3ad545e2b3f16a0
90188100323909f88ab2333b7b476852080154fb
norbert15174/LaboratoryJPO
/LAB05_4/LAB05_4/LAB05_4.cpp
C++
cpp
753
no_license
// LAB05_4.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> #include <map> using namespace std; #include <string> #include <fstream> struct IPv4 { unsigned char o1; unsigned char o2; unsigned char o3; unsigned char o4; }; int main() { map<string,IPv4...
3bcb431c38e3d71413987cc5f2430043368f09b7
acb5b39480296441b9dfa6d34fccb50b4e1bf8c3
capslock1874/deblur
/getFrames.cpp
C++
cpp
918
no_license
#include "functions.h" #include "errmsg.h" extern long myErrno ; IplImage** getFramesFromVideo(const char* fileName , int& size) { int numFrames = 0 ; IplImage** frames = NULL ; IplImage* tmp = NULL ; CvCapture *capture = cvCaptureFromAVI(fileName) ; size = 0 ; if( !capture ) { myErrno = ERR_OPEN_FILE ; p...
5bacb2fd0e77845be9cdddfc5b379b5bd47f98d8
349dae3de75689e100272177e529877cc8e42e67
blubber/monitor
/teensy/main.cpp
C++
cpp
877
permissive
#include "WProgram.h" #include <stdint.h> #define PIN_DOOR_SENSOR 20 #define PIN_LDR 22 extern "C" int main(void) { uint32_t ldr = 0; int door_status, new_status = 0; elapsedMillis timeElapsedLDR; elapsedMillis timeElapsedDoor; pinMode(PIN_DOOR_SENSOR, INPUT); Serial.begin(9600); door_...
5e7d134d24cb52e03fd4cdccea681c2e8d178b94
87b7e5147c9807728e2693f4d88ea74807c5e04e
lakshaykapoor7198/Interview
/tree_diameter_child_sum.cpp
C++
cpp
2,160
no_license
#include <bits/stdc++.h> using namespace std; struct Node { int data; Node *left; Node *right; }; Node * createNewNode(int data){ Node * node = (Node *) malloc(sizeof(Node)); node->data = data; node->left= NULL; node->right = NULL; return node; } int max(int a,int b){ return (a>b?a:b); } int height(Node *...
d67414955ceb68c93b4166342bea65ae6bd4b232
8e8cc939f29a9509c119938c2f9c9184e1259531
Paralike/Amoba_beadando
/nyomogomb.hpp
C++
hpp
727
no_license
#ifndef NYOMOGOMB_HPP_INCLUDED #define NYOMOGOMB_HPP_INCLUDED #include<string> #include<functional> #include"widget.hpp" #include "tools.hpp" class tools; class nyomogomb : public widget{ protected: std::string felirat; std::function<void()> _functor; public: nyomogomb(int, int, int, int,std::...
ab441332c0b52ae997f67d662bdef540168d8d9d
dcc82040eac1a5b6495acb13bfe780105255116c
Micrified/swu
/mainwindow.cpp
C++
cpp
808
no_license
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QtDebug> MainWindow::MainWindow(UpdateThread &thread, QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow), d_thread(thread) { ui->setupUi(this); // Connect signal/slot connect(&d_thread, &UpdateThread::setUI, this, &Mai...
f4f663ef53eee79c1b1f9e843a1b09c53b04cd44
2293afaa6026bc9ccc090b544222530ad6e20a7b
MingYueRuYa/cprimeprimecode
/win32CoreProgram/src/log4cpp/include/FileAppender.hh
C++
hh
2,782
no_license
/* * FileAppender.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_FILEAPPENDER_HH #define _LOG4CPP_FILEAPPENDER_HH #include <Portabil...
52eb303a404218cb60a7ad5b60a8bafc5fbd3f4e
feabd886dd124f593cb91a95da26ac2d76534b87
niuxu18/logTracker-old
/second/download/CMake/CMake-gumtree/Kitware_CMake_new_hunk_1274.cpp
C++
cpp
486
no_license
return retVal; } int main(int argc, char **argv) { int retVal = 0; curl_global_init(CURL_GLOBAL_DEFAULT); if(argc>1) { retVal += GetWebFiles(argv[1], 0); } else { printf("error: first argument should be a url to download\n"); retVal = 1; } /* Do not check the output of FTP s...
66455bbde804a5a354c875c2fbe2d13345cf4a3d
a600f37647d3ad8db06447f2bdd241bd1ab71dff
tomgasper/holo-winrt
/Common/DeviceResources.cpp
C++
cpp
11,738
no_license
 #include "pch.h" #include "DeviceResources.h" #include "DirectXHelper.h" using namespace D2D1; using namespace Microsoft::WRL; using namespace winrt::Windows::Graphics::DirectX::Direct3D11; using namespace winrt::Windows::Graphics::Display; using namespace winrt::Windows::Graphics::Holographic; // Constructor for D...
b03483971dfb7a85883240f2c3463a919eb4b8fe
c85d674b01292ed3893099fa98f71df282d5e689
asilvaigor/opengl_winter
/tests/bear_filming_companion_test.cpp
C++
cpp
4,143
permissive
// // Created by Aloysio Galvão Lopes on 2020-06-03. // #include <vcl/math/spline/CyclicCardinalSpline.h> #include <src/objects/debug/TrajectoryDrawer.h> #include <src/objects/debug/DebugObject.h> #include <src/objects/forest/Forest.h> #include <src/objects/bear/BearFilmingCompanion.h> #include <src/objects/companion/...
5eb0636cbf32ee03fbd5392470a5ae0c1cb3f1e1
948a920f23875510e231c0a0d3b78f098ce8861e
PythonYXY/Cpp-How-To-Program-9E
/Chapter20/exercises/20.10/ex_2010.cpp
C++
cpp
1,036
no_license
/* * ===================================================================================== * * Filename: ex_2010.cpp * * Description: Exercise 20.10 - Printing a Sentence in Reverse Order With * a Stack * * Version: 1.0 * Created: 13/06/17 13:29:49 * Revision:...
05b84399a80273c4f1301a5746a8477785db9090
2055105c5080c5b9f358822759431746f8fdac84
Ignacio-Mosconi/Ninja-Game
/Game/State.cpp
C++
cpp
253
no_license
#include "State.h" Vector2u State::_screenDimensions = Vector2u(0, 0); Vector2f State::_scaleFactors = Vector2f(0, 0); State::State(RenderWindow& window) { _window = &window; _clock = new Clock(); } State::~State() { delete _clock; }
089c6fe26cd0f0b759b922a5919d09af6b42b687
997da2aab753b8b49306136b531dbbb6e47312d6
konstantinegorov/pal
/src/core/hw/gfxip/gfx6/gfx6DepthStencilState.cpp
C++
cpp
8,467
permissive
/* *********************************************************************************************************************** * * Copyright (c) 2014-2020 Advanced Micro Devices, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associ...
a0c83942a5610c997ff1a696a9728d00bdf87f3a
7f3b56e5e69a05dc6ae0acaef092200c8d608a11
vandermerwewaj/RED4ext.SDK
/include/RED4ext/Scripting/Natives/Generated/game/data/AIDirectorScheduleEntry_Record.hpp
C++
hpp
700
permissive
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/Scripting/Natives/Generated/game/data/TweakDBRecord.hpp> namespace RED4ext { namespace game::data { struct AIDirectorScheduleEntry_Record : game::data::TweakDBRecord { static...
ccc8ca4493e356684211feff46e3dd3fffd7b0bd
63508a404f16bec1a9bdfd474c937ed929ebed7a
HARDY8118/LeetCode-Solutions
/DP/CoinChange.cpp
C++
cpp
558
permissive
class Solution { public: int coinChange(vector<int>& coins, int amount) { int max_size = amount + 1; vector<int> dp(max_size + 1, max_size); dp[0] = 0; int n = coins.size(); for (int n = 1; n <= amount; n++) { for (int i = 0; i < coins.size(); i++) { ...