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 |
|---|---|---|---|---|---|---|---|---|
3546e456113b44f0e7a925fd13f019d164753adb | a692e9a77ab3afd4141b06f3b492e9be241298c6 | FrankieV/OOP | /Esercitazione del 03-Marzo/Sudoku.cpp | C++ | cpp | 2,387 | no_license | #include <iostream>
using namespace std;
void RiempiGriglia(int **, int);
void PrintGriglia(int **, int);
int Celle_Da_Riempire(int ** ,int N);
bool Verifica_Inserimento(int ** ,int, int,int,int);
int main()
{
int N;
cin >> N;
int **Griglia = new int *[N];
for(int i = 0; i < N; i++)
{
Griglia[i... |
3f1c12e05ae151b5794d0c4754ec183421ba3984 | b36af6428ed646b306e309388a376552be673c9d | cinecert/asdcplib | /src/h__Writer.cpp | C++ | cpp | 18,158 | permissive | /*
Copyright (c) 2004-2021, John Hurst
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the followi... |
fb7e6ef1e436fb843d7c6ac1294fac970eea2e39 | 69488c2717a50125bb4be2e375c2b042f8ae7c94 | Jiang-Fuyou/OpenMPSimpleTutorials | /SimpleTest05/simple_test_05cpp.cpp | C++ | cpp | 1,979 | no_license | #include "omp.h"
#include <stdio.h>
#include <time.h>
int counter = 0;
#pragma omp threadprivate(counter)
int increment_counter()
{
counter++;
return counter;
}
int increment_counter2()
{
static int counter = 0;
#pragma omp threadprivate(counter)
counter++;
return counter;
}
int main()
{
printf("sizeof int... |
315e28d8c5d0e4b3cbaabfe3d77e7dbfab453078 | 3009c4509a1e72aefa89d8209d14a6953fcb2e26 | calee0219/Course | /OOP/Quiz2/p2.hpp | C++ | hpp | 229 | permissive | //#ifndef _oop_linking list_H
//#define _oop_linking list_H
struct Node
{
int num;
Node *next;
};
namespace oop
{
Node* push(Node *top,int n);
Node* pop(Node *top);
void print(Node *top );
};
//#endif
|
c8d35f304bf0219d452f742fee0c31c06ba4b8e3 | 7fa7b4f745b8d4a8f839633da350f481f5ef441c | yamamushi/Moneychanger | /src/core/handlers/focuser.cpp | C++ | cpp | 228 | no_license | #include "focuser.h"
Focuser::Focuser(QWidget *w) {
this->widget = w;
}
void Focuser::show() {
this->widget->show();
this->focus();
}
void Focuser::focus() {
this->widget->activateWindow();
this->widget->raise();
}
|
779d32cb9ed6f533a534bda1ebb3f0096ca29eb2 | 5213d695d933a5f549818be08cd0c9e3cd2a1e06 | cpkt9762/PPLAY_SDK | /SDK/PUBG_BP_Sky_Sphere_Desert_02_functions.cpp | C++ | cpp | 1,370 | no_license | // PlayerUnknown's Battlegrounds (2.6.23) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace Classes
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function ... |
d97be3e8ac356403de327afc3d501f8a1b15c40e | b8e481f22bf2b831f629482107953246dc1ebe00 | MuhammadKhalid0/Battle-Game | /Battle.cpp | C++ | cpp | 17,845 | no_license | #include "Battle.h"
#include <time.h>
#include <fstream>
#include <sstream>
#include "Enemies\Fighter.h"
#include "Enemies\Freezer.h"
#include "Enemies/Healer.h"
#include <string>
#include <stdlib.h>
#include <ctime>
#include <chrono>
#include <thread>
using namespace std;
int Battle::CurrentTimeStep = 0... |
d4f73d55b43bc65e35f57a57c210df7b900adf34 | cda742b16083353d8db1344f6365b823c9f143f1 | TheusRibeiro/Algoritimos | /1035 URI.cpp | C++ | cpp | 308 | no_license | #include <stdio.h>
int main(void)
{
int A = 0, B = 0, C = 0, D = 0;
scanf("%d%d%d%d", &A, &B, &C, &D);
if((B>C) && (D>A) && ( (C+D)>(A+B) ) && (C>0) && (D>0) && ( (A%2)==0) ){
printf("Valores aceitos\n");
}else{
printf("Valores nao aceitos\n");
}
return 0;
}
|
e334de11d0a8a0154bf87d2ddc781da019feffab | 3628cef25fd58ae990718cabce7d5d2fa67831ad | yashar-sb-sb/my-codeforces-submissions | /500-599/578/(31874229)[OK]C[ b'Weakness and Poorness' ].cpp | C++ | cpp | 856 | no_license | #include<bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef unsigned long long uLL;
typedef long double ldb;
typedef pair<int,int> pii;
int n;
int A[int(2e5)];
ldb f(ldb x)
{
ldb mi = 0, ma = 0, cur = 0, ans = 0;
for(int i = 0; i < n; ++i)
{
cur += A[i] -x;
mi = min(mi, cu... |
ad4846944a5da4da4db9bfcd9107a58622fd99c3 | d040b8e259e2c07fe36fa8f4c965926b6f5abea9 | aomiit/RTTB | /testing/examples/RTDVHTest.cpp | C++ | cpp | 3,538 | permissive | // -----------------------------------------------------------------------
// RTToolbox - DKFZ radiotherapy quantitative evaluation library
//
// Copyright (c) German Cancer Research Center (DKFZ),
// Software development for Integrated Diagnostics and Therapy (SIDT).
// ALL RIGHTS RESERVED.
// See rttbCopyright.... |
eae31df4b898b53f57e8c22c43544e0dca30439a | 68e03e3265b55183ba8a44484682184f4c26c134 | Sean3Don/soccervision | /src/Vision.cpp | C++ | cpp | 53,309 | no_license | #include "Vision.h"
#include "Config.h"
#include "Util.h"
#include <iostream>
#include <algorithm>
Vision::Vision(Blobber* blobber, CameraTranslator* cameraTranslator, Dir dir, int width, int height) : blobber(blobber), cameraTranslator(cameraTranslator), dir(dir), width(width), height(height), obstructionSide(Obstru... |
75893f4563638b76e8ba422650068af232f48828 | e98c0cecfbe8c29142ce42f2a3e57be5906d1c1a | 8Dion8/my-stupid-little-programs | /my stupid little programs/other_ai.cpp | C++ | cpp | 3,321 | no_license | #include <iostream>
#include <string>
using namespace std;
void print_grid(string grid) {
cout << grid[0] << "|" << grid[1] << "|" << grid[2] << "|" << grid[3] << "|" << grid[4];
cout << "------------------";
cout << grid[5] << "|" << grid[6] << "|" << grid[7] << "|" << grid[8] << "|" << grid[9];
cout ... |
961895ccc453d9da710d5bea960331577691cdcd | c1f9db98070ca0a50675b2700c92b4963212aafe | WKD622/algo-data-structures-programs | /Struktury danych/Grafy ważone/Najkrótsza ścieżka od A do B/Algorytm Dijkstry/Dijkstra_na_tablicy.cpp | C++ | cpp | 2,773 | no_license | #include <iostream>
#include <conio.h>
#define n 3
using namespace std;
//STRUKTURY
struct vertex{
int x;
int y;
};
//FUNKCJE
void print(int D[n][n]){
for (int i=0; i<n; i++){
for (int j=0; j<n; j++){
cout.width(4);
cout << D[i][j];
}
cout << endl;
}
}
... |
1072dfce2482d7494fbb7175c7ad0a4ee1385efc | 05a6c785779757972ebe13f2a37ab8c2f0a86aae | JinYoung-Shin/Algorithm-Challenge-2017 | /hg/codeforce/helvetic-coding-test-2018/C1.Encryption/src/main.cpp | C++ | cpp | 519 | no_license | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int sz = 1e5+5;
int arr[sz];
ll accu[sz];
inline ll range(int s, int d) {
return accu[d] - accu[s-1];
}
int main() {
int n, p;
ll S = 0;
cin >> n >> p;
for (int i=1; i <= n; i++) {
cin >> arr[i];
accu[i] = acc... |
fb657053687544b2c24726fe037337c9954a1659 | f365a19301db689021e9558ee47a5269834aab24 | jxm2012/3310_project | /role.cpp | C++ | cpp | 730 | no_license | //role.cpp
//role class
//role tide
#include <iostream>
#include <string>
#include "role.h"
//using namespace std;
role::role (std::string role_title, std::string role_description) //deleted role_ID: string. not necessary since classification of users is covered by role_title
{
}
std::string assign_role (std::stri... |
80ad0f63e482001a5f76f168eba7a5e8cbb9cc0a | ffbe9e45dc494957f69787bf27a9941004322ecf | MykytaOpanyuk/All_programs_studying | /All_programs_studying/OOP_2_year_2_sem/ex_11_sem_2/UnitTest1/unittest1.cpp | C++ | cpp | 540 | no_license | #include "stdafx.h"
#include "CppUnitTest.h"
#include "..\ex_11_sem_2\calculator.h"
#include "..\ex_11_sem_2\calculator.cpp"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UnitTest1
{
TEST_CLASS(UnitTest1)
{
public:
TEST_METHOD(TestMethod1)
{
calculator new_calculator_1("2+2-1... |
57226eb088c0bf6bc3ec38504c0edd66f4b2759a | 9f56b7a194a82d6ca6934c372276e6747af568c9 | Alerione/WNW | /CastleBuilding.cpp | C++ | cpp | 3,376 | no_license | #include "CastleBuilding.h"
CastleBuilding::CastleBuilding()
: Building()
{
}
CastleBuilding::CastleBuilding(const CastleBuilding & input)
{
TileBase = input.TileBase;
Type = input.Type;
DrawData = input.DrawData;
GameData = input.GameData;
Map = input.Map;
}
CastleBuilding:... |
07793bd884eeb7be22999df589765a2a1a42946e | c05071883ef831c4aaea03f68ad68d44fbf0d602 | Samsung/Castanets | /chrome/browser/sync/test/integration/single_client_search_engines_sync_test.cc | C++ | cc | 1,165 | permissive | // Copyright (c) 2012 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 "base/macros.h"
#include "chrome/browser/sync/test/integration/search_engines_helper.h"
#include "chrome/browser/sync/test/integration/sync_t... |
577ac032b24fd078472615206d8c462ee8fadda6 | 6ecc98bf72cd5588e748dca469c3b85cfcbce68a | wtmitchell/challenge_problems | /test/number/Root.cpp | C++ | cpp | 2,904 | permissive | //===-- test/util/Root.cpp --------------------------------------*- C++ -*-===//
//
// Challenge Problem solutions by Will Mitchell
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
#include <gtest/gtest.h>
... |
d0183c4bfc8953c83370740c946ef9e6804e5826 | 32718e262e28fb15ae5c4b2abadf8bca3390dfbe | zww0815/TinyUI | /DXApp/RTMPClient.cpp | C++ | cpp | 7,800 | no_license | #include "stdafx.h"
#include "RTMPClient.h"
#include "x264Encode.h"
#define RTMP_HEAD_SIZE (sizeof(RTMPPacket)+RTMP_MAX_HEADER_SIZE)
#define SAVC(x) static const AVal av_##x = AVC(#x)
static const AVal av_setDataFrame = AVC("@setDataFrame");
SAVC(onMetaData);
SAVC(duration);
SAVC(width);
SAVC(height);
... |
69f34de02d3b049c0cdebcb294062b56a9e8d090 | 495b9119a1bcf907b593abff131a34d5b74032d3 | Adan222/sokoban | /src/Game.hpp | C++ | hpp | 1,265 | no_license | #pragma once
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Window/Window.hpp>
#include <cstddef>
#include <vector>
#include <memory>
#include <iostream>
#include <SFML/Graphics.hpp>
#include <SFML/System/Vector2.hpp>
#include "imgui.h"
#include "imgui-SFML.h"
#include "imgui_stdlib.h"
#include "gui/FpsCou... |
a8964e2a9b38efd27c902bfded3f140adf40ff98 | 175b8c96886b90fb1f0a1350511ed1fcef5ca87d | evgenycherkasov/TechProg | /ProcedureProg/ProcedureProg.cpp | C++ | cpp | 787 | no_license | #include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include "Controller.h"
using namespace std;
int main( int argc, char* argv[] )
{
string inputPath = "input.txt";
string outputPath = "output.txt";
if ( argc != 3 )
{
cout << "Type files" << endl;
return 1;
}
inputPath = argv[1];
... |
e88e4744e7ee94147c782ade877a6746fff8867c | ded51a837143f47f14eef79125f6cd399ba5ff9f | david2du/david_training | /gao/2021/day8/contest/platform.cpp | C++ | cpp | 1,233 | no_license | #include <iostream>
#include <algorithm>
using namespace std;
struct Board
{
long long h;
long long x1;
long long x2;
bool operator<(const Board &A) const
{
if (A.h != h)
{
return h < A.h;
}
if (x1 != A.x1)
{
return x1 < A.x1;
... |
2417b17dc3dc9eedce43ef39a8e6c92e25b622c7 | 71e91e639d6eb8b08ace1b617efd335cdac41bc2 | ponram/BruceEckel | /EckelCpp-master/Volume1/11. References&Copy/ex21.cpp | C++ | cpp | 573 | no_license | /**
Create a simple class without a copy-constructor, and a simple function
that takes an object of that class by value. Now change your class by
adding a private declaration (only) for the copy-constructor. Explain
what happens when your function is compiled.
**/
#include <iostream>
using namespace std;
class Simpl... |
e5cb5ecc3a6c07a9bd6dd24c1540d64c41fe3041 | 930cdea7fb4ff0e8d5d7fd1e5942b1fbfc477525 | radtek/Pos | /MenuMate/MenuMate/Source/Analysis/Misc/ReportFinancialCalculations.cpp | C++ | cpp | 46,581 | no_license | //---------------------------------------------------------------------------
#pragma hdrstop
#include "ReportFinancialCalculations.h"
#include "DeviceRealTerminal.h"
#include "MMLogging.h"
#include "ManagerReports.h"
//---------------------------------------------------------------------------
#pragma package(smart_in... |
acdcd96f899684da239c47a4c9f2f74088b86ced | b8d4c6000342a82ea01e0e2165f461b63ffd2d82 | otcshare/chromium-src | /ash/assistant/ui/main_stage/assistant_ui_element_view.cc | C++ | cc | 2,620 | permissive | // Copyright 2018 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 "ash/assistant/ui/main_stage/assistant_ui_element_view.h"
#include "ash/assistant/ui/main_stage/element_animator.h"
#include "ash/assistant/util... |
aa871b8292a3d1f1380726b604cfeb7c8b165580 | f1eabfd4af341fc17a23c705d41bbdd90996ae07 | multifacet/ASAP | /src/arch/power/kernel_stats.hh | C++ | hh | 1,948 | permissive | /*
* Copyright (c) 2004-2005 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* not... |
5570043e30bedbc1f87ae7dcba7d5e3c0efe6328 | 0975d8a72b0dc85867267fc4797d67d9a8b6d831 | liangzai951/hzcla | /1.C语言/3.程序流程控制方法/5.for.cpp | C++ | cpp | 436 | no_license | /*************************************************************************
> File Name: 8.for.cpp
> Author: Double
> Mail: doubleliu3@gmail.com
> Created Time: Sat 17 Oct 2020 04:54:39 PM CST
************************************************************************/
#include<stdio.h>
int main() {
//for(;;); /... |
ec620dcbfae8b2a60e8b643ba031c6fbb30bae05 | dafb71fbc97eda1d5bfcfb7631591b57ebfa76bf | OpenRTM/choreonoid-openrtm | /src/OpenRTMPlugin/BodyIoRTCItem.cpp | C++ | cpp | 6,079 | no_license | /**
@author Shin'ichiro Nakaoka
*/
#include "BodyIoRTCItem.h"
#include <cnoid/BodyIoRTC>
#include <cnoid/BodyItem>
#include <cnoid/ItemManager>
#include <cnoid/MessageView>
#include <fmt/format.h>
#include "gettext.h"
#include "LoggerUtil.h"
using namespace std;
using namespace cnoid;
using fmt::format;
namespac... |
fcd275d7348964d8e611196660c0725b12d795d2 | 1c29acd50be46dcc14fd19bc1d56961d4ad72584 | tinoadams/mqtt-ir-transceiver | /src/main.cpp | C++ | cpp | 11,776 | no_license | /*
* IRremoteESP8266: IRServer - MQTT IR transceiver
* used library:
* https://github.com/markszabo/IRremoteESP8266
* based on:
* https://github.com/z3t0/Arduino-IRremote/
* Version 0.2 May, 2016
*/
/*
* broker -> module:
* "_mqtt_prefix_/sender/storeRaw/_store_id_" msg: "\d+(,\d+)*"
* ... |
d316511197a5640b3bf952432ebc59f20c95d07d | 634966fe2f9f7033ffb6e59af7af7b5826a129f5 | chosh95/STUDY | /BaekJoon/2020/서강그라운드 (14938번).cpp | C++ | cpp | 1,351 | no_license | #include <iostream>
#include <vector>
#include <cstring>
#include <algorithm>
#include <queue>
using namespace std;
int N, M, R, res;
int t[110];
vector<pair<int,int>> v[110]; // v[a] = (c,b) : a에서 b까지 c의 거리로 이동 가능
int dist[110];
void dijk(int start) {
priority_queue<pair<int, int>, vector<pair<int, int>>, greater<p... |
96584c7a9979786af7780ade2e2081af3ce76c6d | c3e8900b959ed5831ece718744121d495bf05406 | euxuoh/leetcode | /cpp/11-container-with-most-water.cpp | C++ | cpp | 500 | no_license | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int maxArea(vector<int>& height) {
int left = 0, right = height.size() - 1;
int res = 0;
for (int h : height) {
int s = (right - left) * min(height[left], height[right]);
res = max(... |
936070614a17186537fc4d4d0f086f3a2abac688 | a80dcac63c51a8239faf4b9c26ff4cc25b6ab53d | geunwoobaek/Problem_solving | /.vscode/implementation/study/week7/16434.cpp | C++ | cpp | 1,550 | no_license | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define F(i, s, e) for (int i = s; i <= e; i++)
#define Max_ 90000000000000000 //max값
int arr[123456][3]; //mon_atk,mon_hp,potion;
struct Soldier
{
ll MaxHp, CurHp, ATK;
} soldier;
int N, init_atk; //방의갯수
int main()
{
ios_base::sync_wi... |
bb526c2497bb8807e65e8bfb07ed2315b3f0ccee | a25a774580934eeda2df9c5be83c134559e872dc | iCell/wallet-core | /src/Ontology/Ont.cpp | C++ | cpp | 1,806 | permissive | // Copyright © 2017-2023 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "Ont.h"
#include "Data.h"
#include "ParamsBuilder.... |
298c1aa4a569ec7d2b4d87a1a5d9565e777192f0 | b92afe23470ddaa9ef109b516534d1b3db381166 | Anish-Saxena/aqua_rowhammer_mitigation | /gem5/src/arch/sparc/insts/integer.cc | C++ | cc | 4,000 | permissive | /*
* Copyright (c) 2006-2007 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* not... |
e445e9ede28c1758016d62a81abb51f6de92a2da | 92b7350af1c1a84bff431b9683dab14850f49716 | tushar-dadlani/tiscamera | /tools/firmware-update/33u/Archive.cpp | C++ | cpp | 4,841 | permissive | /*
* Copyright 2017 The Imaging Source Europe GmbH
*
* 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 la... |
da6bb5dec0bb2a3f20958b9c645e0053e7d77287 | 6dd1d25b7a839348a046413ca0fb3d9fde47be2c | BackupTheBerlios/qedo-svn | /branches/tri_ext_copis/CompilationChain/CCDBackEnd_start/ClientValuetypes.cpp | C++ | cpp | 6,045 | no_license |
static char rcsid[] = "$Id: ClientValuetypes.cpp,v 1.1 2004/03/05 13:21:25 jre Exp $";
#include "ClientValuetypes.h"
CORBA::LongLong Cookie_impl::cookie_key_ = 0;
//
// Cookie
//
Cookie_impl::Cookie_impl()
{
CORBA::OctetSeq_var octet_key = new CORBA::OctetSeq();
octet_key->length (8);
for (unsigned int i = 0... |
176938fde38ecee906bea50b24fa81ae244b0f9d | 36bf1952ab8cb120c7d757b7225ed5ed4977630e | ShujianDou/CppTicTacToe | /lua/lcode.cpp | C++ | cpp | 21,519 | permissive | /*
** $Id: lcode.c,v 2.25.1.5 2011/01/31 14:53:16 roberto Exp $
** Code generator for Lua
** See Copyright Notice in lua.h
*/
#include <stdlib.h>
#define lcode_c
#define LUA_CORE
#include "lua.h"
#include "lcode.h"
#include "ldebug.h"
#include "ldo.h"
#include "lgc.h"
#include "llex.h"
#include "lmem.h"
#include "... |
7cbb65dce8821cf3a4b1c77ca2c2fb4b0bfeb6a3 | 7d75027538b95689152f4ff5eea3d39b48160760 | jbyoum/PCMSSDsim | /main.cpp | C++ | cpp | 16,881 | no_license | #include <inttypes.h>
#include <malloc.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <time.h>
#include "common.h"
#include "HIL.h"
#include "dram.h"
using namespace std;
uint64_t CYCLE_VAL = 0;
bool is_req_comp = false;
#define MAX_NUM_CHANNEL 2
#d... |
3097fe371cb5d2f09e4c685e0f88dc64053b36f4 | 76f71fb2643a5726ceb7d95ab43425fd5f05ce78 | W-MTZing/chromium | /chrome/browser/sync/test/integration/single_client_bookmarks_sync_test.cc | C++ | cc | 66,396 | permissive | // Copyright (c) 2012 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 <utility>
#include "base/guid.h"
#include "base/macros.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversion... |
864ac74d87bec5b2d245e32c5f98b80df069d68e | 4d9eba2bf2173095f63f5907f84936f1225adbc3 | ashishhmittal/Data-Structures | /Exp13.cpp | C++ | cpp | 1,530 | no_license | #include<iostream>
#define n1 100
using namespace std;
void create(int n,int a[][n1])
{
cout<<"Enter graph value:\n";
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
if(i==j)
a[i][j]=0;
else
cin>>a[i][j];
}
}
}
void insertedge(int n,int a[][n1])
{
int b,c;
cout<<"Enter the 2 nodes:\n";
cin>>b>>... |
6bd18e79e033f961e2108336850543f1e2f76e65 | f0ec41db6fe7e185de44fc6b2c1269e166035683 | pmiddend/fcppt | /libs/core/include/fcppt/record/detail/get_either.hpp | C++ | hpp | 1,974 | permissive | // Copyright Carl Philipp Reh 2009 - 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_RECORD_DETAIL_GET_EITHER_HPP_INCLUDED
#define FCPPT_RECORD_DETAIL_GET_EITHER_HPP_INC... |
6a448006c4200862bf48f0bf30f8955adf4f4f77 | 348d49314aa676d70726069e2842cdddaaced01f | LanceBowley/MandelbulbRender | /Animations/Filters/Filter1f.cpp | C++ | cpp | 3,012 | no_license | //
// Created by lance on 5/1/17.
//
#include "Filter1f.h"
Filter1f::Filter1f()
{
parserInitialized = false;
setExpression(1);
setTruncation(-INFINITY, INFINITY);
isMirrored = false;
mirroredPosition = 0.5f;
}
Filter1f::Filter1f(float val)
{
parserInitialized = false;
setExpression(val);
... |
74b44179d5a72b413c20ee47ea5b919e7e594e0e | 2638fda56a707aa569bf5eb47411aa1342cc89ab | fancyGenTatsu/HOMEWORK | /今天星期几.cpp | C++ | cpp | 1,026 | no_license | #include <stdio.h>
int main()
{
int year,month,day;
int tempmonth,yearday;
int week,weekday;
int sum=0;
int tag=0;
scanf("%d-%d-%d",&year,&month,&day);
tag =( year - 1900 )/4;
sum=(year-1900)*365 + tag;
tempmonth = month - 1;
yearday = 0;
switch(tempmonth)
{
case 12:yearday+=... |
f5f108d66ff7c876174985b34251acdf3663b035 | 728804e853e9191cfac7818d73e5fbe2440b592c | m2-farzan/openpiv-c--qt | /lib/src/image_loader.cpp | C++ | cpp | 1,489 | no_license |
#include "loaders/image_loader.h"
// std
#include <algorithm>
#include <memory>
#include <vector>
// local
#include "core/util.h"
namespace openpiv::core {
using image_loader_container = std::vector< std::shared_ptr< image_loader > >;
static image_loader_container& loaders()
{
static image_lo... |
ab19fced4dc52045592bd764d1b714ba8c5f3a44 | 352281826d78e1d5adfb7cadfc63c1cf400538e0 | ai0376/owt-server | /source/agent/webrtc/rtcFrame/AudioFramePacketizerWrapper.cc | C++ | cc | 4,340 | permissive | // Copyright (C) <2019> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
#ifndef BUILDING_NODE_EXTENSION
#define BUILDING_NODE_EXTENSION
#endif
#include "AudioFramePacketizerWrapper.h"
#include "MediaWrapper.h"
using namespace v8;
Persistent<Function> AudioFramePacketizer::constructor;
AudioFramePacketiz... |
f5bebde389c05c40f0f5cc4a9471a4919380aa55 | 41c4a512308f2ca7624b9fc5b1cf4f0033525f16 | Sixshaman/LightsOut | /LightsOut/LightsOut/Graphics/LOTextures.cpp | C++ | cpp | 4,669 | no_license | #include "LOTextures.hpp"
#include "..\Util.hpp"
#include <vector>
LOTextures::LOTextures(ID3D11Device* device)
{
uint32_t maxBoardSize = MAXIMUM_FIELD_SIZE * MAXIMUM_FIELD_SIZE; //Even the board of maximum size can fit here
std::vector<uint32_t> boardVec(maxBoardSize, 0); //Compressed or uncompressed board
D3D11... |
cb6fd67cb5aa8e8dc80a555bf45970b349077646 | 39cec3604cbde3edebc0cacdfddfb427cb307163 | MelvinG24/dust3d | /src/simpleshaderwidget.cpp | C++ | cpp | 7,382 | permissive | // This file follow the Stackoverflow content license: CC BY-SA 4.0,
// since it's based on Prashanth N Udupa's work: https://stackoverflow.com/questions/35134270/how-to-use-qopenglframebufferobject-for-shadow-mapping
#include <QOpenGLTexture>
#include <QOpenGLFramebufferObject>
#include <QGuiApplication>
#include "sim... |
54107af54ac187f1d8166a46f0e4f66621802ed2 | bb75447319f7870df48aef7ffc6c4c3d89ab4501 | tanishq1g/cp_codes | /old_codes/max_heeap.cpp | C++ | cpp | 1,417 | permissive | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <cstring>
#include <algorithm>
#include <ctime>
#include <string>
#include <cstdlib>
using namespace std;
void mbottom_up_heapify(int *a,int in){
int p=(in-1)/2;
while(in>0){
if(a[p]<a[in]){
int t=a[p];
a[p]=a[in];
a[in]=t;
... |
804cff14a1b8c02ea68c587006b1968d56a88651 | f75c051880274fb1f0c84c559789ca0eaf435149 | herrkong/ace | /3rd/ACE_wrappers/examples/Service_Configurator/IPC-tests/client/remote_dgram_client_test.cpp | C++ | cpp | 2,223 | no_license | // $Id: remote_dgram_client_test.cpp 91670 2010-09-08 18:02:26Z johnnyw $
// Tests out the Internet domain IPC-SAP dgram abstraction.
#include "ace/OS_main.h"
#include "ace/OS_NS_stdlib.h"
#include "ace/Mem_Map.h"
#include "ace/SOCK_Dgram.h"
#include "ace/INET_Addr.h"
#include "ace/Get_Opt.h"
#include "ace/Log_Msg.h"... |
2958fbb19700c7ef00e03e55c5c8cc2c1de9a81a | a7a002d965abccfa96f2190086c37358feee1b3a | MattisFaucheux/NIX-Engine | /vendor/libMaths/source/Test.cpp | C++ | cpp | 211 | no_license | #include "Test.h"
#include <iostream>
namespace LibMath
{
void Test::HelloWorld(std::string indentation)
{
std::cout << indentation << "LibMath say : [Hello] to [World] !" << std::endl;
}
} |
29067d3947c244fcd5d58be5df0c9db26a9a7379 | 0378647494a6f98b0a07459d4d6858f685c19024 | EricPolman/Zelda-ish | /Code/World.cpp | C++ | cpp | 20,712 | no_license | #include "World.h"
#include "TileManager.h"
#include "Enemy.h"
#include "TextureManager.h"
#include "TriggerManager.h"
#include "Boomerang.h"
#include "EnemyGoriya.h"
#include "TriggerHomeCave.h"
#include "TriggerHomeCaveExit.h"
#include "TriggerMoneyCave.h"
#include "TriggerMoneyCaveExit.h"
#include "TriggerMoneyCaveT... |
1dc1be3899be8661b20ffe925aa1af8787534c45 | 2c03cbdbd066f3a8456be50d98eddd6359f4fedb | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | /third_party/libjingle/source/talk/base/ipaddress_unittest.cc | C++ | cc | 34,741 | permissive | /*
* libjingle
* Copyright 2004--2011, Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and... |
3cab73dd39b74b2e2b3b49f0f56ce2d0796f661f | 6cff5dc271d795d802474f17ea6ab572805afdfe | paldier/eMule | /FileInfoDialog.cpp | C++ | cpp | 80,581 | no_license | //this file is part of eMule
//Copyright (C)2002-2008 Merkur ( strEmail.Format("%s@%s", "devteam", "emule-project.net") / http://www.emule-project.net )
//
//This program is free software; you can redistribute it and/or
//modify it under the terms of the GNU General Public License
//as published by the Free Software Fo... |
ade6388278c8e3389d21a0a21748cf9a4ca9022d | ef296c6707b1aba255667bd8ecd7ed7a5c7a9836 | netconstructor/pgadmin3 | /pgadmin/dlg/dlgIndexConstraint.cpp | C++ | cpp | 18,572 | permissive | //////////////////////////////////////////////////////////////////////////
//
// pgAdmin III - PostgreSQL Tools
//
// Copyright (C) 2002 - 2011, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// dlgIndexConstraint.cpp - PostgreSQL IndexConstraint Property
//
//////////////////... |
0fd89b63a5b2cd9575de0e62e81618f3217421e7 | 8000e1b3a6e429f39f66a55f3035cfc7b95bc2cf | ericbrandwein/competencias | /Codeforces/1238/d.cpp | C++ | cpp | 1,363 | no_license | //#pragma GCC optimize("Ofast")
//#pragma GCC optimize("unroll-loops,no-stack-protector")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
#define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)
#define endl '\n'
#define elif else if
#define ll long long i... |
308263e5b201fd54b49fdd8ca3b07bfec4dbe7a8 | 24e6cb9b46e57246fa12ba660e64ea22aa9c52a6 | Fen99/plane_render | /libsrc/common/src/logger.cpp | C++ | cpp | 399 | no_license | #include "logger.hpp"
//========================================================================
INITIALIZE_EASYLOGGINGPP
//========================================================================
namespace plane_render {
void ConfigureLogger(const std::string& config_file)
{
el::Configurations conf(config_fil... |
9f81d3157bc4555a081f5f16da8564968d506c9d | a526cec0e176e9eb9cbe17b95e22d20099f5d8ce | uabti/coolfluid3 | /plugins/Physics/Scalar/LinearAdvSys2D.hpp | C++ | hpp | 4,264 | no_license | // Copyright (C) 2010-2011 von Karman Institute for Fluid Dynamics, Belgium
//
// This software is distributed under the terms of the
// GNU Lesser General Public License version 3 (LGPLv3).
// See doc/lgpl.txt and doc/gpl.txt for the license text.
#ifndef cf3_physics_Scalar_LinearAdvSys2D_hpp
#define cf3_physics_Scal... |
007d6a37896ed0eebc1a905b3c8d25c4ba934431 | 14f46ca3f17222a016d3b995407616dbb0d8bb50 | edlai/libhv | /http/server/HttpHandler.cpp | C++ | cpp | 3,846 | permissive | #include "HttpHandler.h"
#include "hbase.h"
#include "http_page.h"
int HttpHandler::HandleRequest() {
// preprocessor -> api -> web -> postprocessor
// preprocessor
req.ParseUrl();
req.client_addr.ip = ip;
req.client_addr.port = port;
if (service->preprocessor) {
if (service->preproces... |
95164b2a015e42259e2cefd8b7c404c3303f5b6d | 23ccf0f7d4010fb45a0837d9409e2c95958ab72d | orange2002/GrowthofFreshman | /DailyWork/range10num.cpp | C++ | cpp | 1,348 | no_license | // range10num.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include <iostream>
using namespace std;
const int allNum = 10;
int tempArray[allNum + 1];
int main()
{
int i, j;
for (i = 1; i <= allNum; i++)cin >> tempArray[i];
for (i = 1; i <= allNum; i++)
{
for (j = i; j >= 1; j--)
{
... |
1afaf3cc4439c1601f1893e19fcae4f315d0fcf3 | 75fb8156135231b61015f588df7e2aa82337c17f | metashell/headers | /headers/boost/1.31.0/boost/variant/detail/config.hpp | C++ | hpp | 1,807 | no_license | //-----------------------------------------------------------------------------
// boost variant/detail/config.hpp header file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright (c) 2003
// Eric Fr... |
33d7972bd0f0c1d762491136d176dcd678c5d7cb | f2925ca3dd4a1fa63111f30827cd7765d4fe6315 | KWLuna/NYP_SP3 | /Client1_SP3/DM2210_Framework_1/Base/Source/main.cpp | C++ | cpp | 233 | no_license | #define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#include "Application.h"
int main( void )
{
{
Application &app = Application::GetInstance();
app.Init();
app.Run();
app.Exit();
}
_CrtDumpMemoryLeaks();
} |
5d609169a835b57ad1a6ecc8f13548c5f82d38e6 | 26540bc855c43171d7c49f398926abb9a47bd739 | casey/fuchsia | /src/devices/thermal/drivers/aml-thermal-s905d2g/aml-thermal.cc | C++ | cc | 12,747 | permissive | // Copyright 2018 The Fuchsia 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 "aml-thermal.h"
#include <lib/device-protocol/pdev.h>
#include <string.h>
#include <threads.h>
#include <zircon/errors.h>
#include <zircon/syscal... |
d49d0523f785b0acc8c9f997c9d085a0245d5afe | 32ea255bba91cccf964092c57c56f3cf6ca44f80 | GZOSP/bionic | /libc/bionic/fork.cpp | C++ | cpp | 2,106 | permissive | /*
* Copyright (C) 2008 The Android Open Source Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, t... |
92557fe5490bc13b27520010385e3566f74c1a1c | b5652870c4fdbb1b90db4acdaa04495c320f3c20 | nqtwilford/Misc | /CppShortCode/Cpp11/constructor_delegation/main.cpp | C++ | cpp | 601 | no_license | #include <string>
#include <iostream>
using namespace std;
class SomeType {
int number;
string name;
SomeType( int i, const string& s ) : number(i), name(s){}
public:
SomeType( ) : SomeType( 0, "invalid" ){ Show(); }
SomeType( int i ) : SomeType( i, "guest" ){ Show(); }
SomeType(... |
ae85c8ef187ce74c900f4fce25a4e69e45655fca | 45d18505d5bd5535d7ffd733ff55e6ac68af4a8a | urasantonio/AliPhysics | /PWGPP/VZERO/AliAnaVZEROPbPb.cxx | C++ | cxx | 19,255 | permissive | #include "TChain.h"
#include "TTree.h"
#include "TH1F.h"
#include "TH2F.h"
#include "AliAnalysisTask.h"
#include "AliAnalysisManager.h"
#include "AliESDEvent.h"
#include "AliESDInputHandler.h"
#include "AliAnaVZEROPbPb.h"
#include "AliMultiplicity.h"
#include "AliESDUtils.h"
#include "AliCentrality.h"
// VZERO inclu... |
1d723f072016341599dc6e5354c2f252a28fb096 | 66c7b2b87455919eed1f24a95d7c64aa58e27d03 | gabrieldrn/RavenProject | /Sources/goals/GetWeaponGoal_Evaluator.cpp | C++ | cpp | 2,037 | no_license | #include "GetWeaponGoal_Evaluator.h"
#include "../Raven_ObjectEnumerations.h"
#include "misc/Stream_Utility_Functions.h"
#include "../Raven_Game.h"
#include "../Raven_Map.h"
#include "Goal_Think.h"
#include "Raven_Goal_Types.h"
#include "Raven_Feature.h"
#include <string>
//------------------- CalculateDesirability -... |
5a4bc4c18f9ccd167d0e79ed9d6ddf9c0dd9c787 | f19a8ae2b0db9f0937eec6c4a8a02f7571bdaef7 | Pentagon03/competitive-programming | /codeforces/Codeforces Beta Round #1/A.cc | C++ | cc | 219 | no_license | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main()
{
int n, m, a;
scanf("%d%d%d", &n, &m, &a);
n=(n%a)?(n/a+1):(n/a);
m=(m%a)?(m/a+1):(m/a);
cout << (long long)n*m << endl;
}
|
c1d79ecc81241a64443c06306628c81ea8fee615 | 4e661a792f98c722a048812bed244ff4148f10d2 | MedicaicloudLink/Rosetta | /main/source/src/protocols/loops/LoopsFileLoader.fwd.hh | C++ | hh | 1,119 | 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... |
be30f62a273f59068a42dd7e304b90582c91bd9e | d743e4af2cc29105e757c121b3c823dd6a27b057 | NamrathaV99/CN | /LeakyBucket.cpp | C++ | cpp | 619 | no_license | #include<iostream>
#include<unistd.h>
#include<stdlib.h>
#define bucketSize 512
using namespace std;
void bktInput(int a,int b);
int main()
{
int op,pktSize;
cout<<"Enter output rate : ";
cin>>op;
for(int i=1;i<=5;i++)
{
usleep(rand()%1000);
pktSize=rand()%1000;
cout<<"\nPacket no. "<<i <<"\tPacket size ="<<pktSize;... |
cea3cfe62514a8f2dfddfe981ef1991720874c9a | 6964fb97d953d148849afd8ee3d90e2c5d7a4e55 | judajake/kwiver | /sprokit/processes/core/video_input_process.cxx | C++ | cxx | 9,070 | permissive | /*ckwg +29
* Copyright 2016-2017 by Kitware, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this li... |
d40a1a6cff8dda974033b0c80eea02194e2bfc5c | 631238a09f7e06fd74764c86e7952e8b91d809f5 | TencentCloud/tencentcloud-sdk-cpp | /yunjing/src/v20180228/model/RegionInfo.cpp | C++ | cpp | 4,949 | permissive | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
88a30d0223b9d0265e4343b126a4bd44b6a977d1 | aea3792173fa0ecf310128cdd1454db3a6516b18 | flyingsnow31/CSP | /Practice/30_最少钱币数.cpp | C++ | cpp | 402 | no_license | #include<bits/stdc++.h>
using namespace std;
int qb(int a[],int n,int i,int mb)
{
if(i>n||mb<0)
return 2001;
if(mb==0)return 0;
return min(1+qb(a,n,i,mb-a[i]),qb(a,n,i+1,mb));
}
int main()
{
int mb,n,a[10],i,ans;
while(1)
{
cin>>mb;
if(mb==0)
return 0;
cin>>n;
for(i=0;i<n;i++)
cin>>a[i];
ans=qb(a,... |
84988af582f60515b5ecfb5c2955cc1e575613db | 730ed7bcf07b383795eaaa74dd4c46005f66b158 | ikkz/cildhdi | /Matrix/Matrix_unittest.cpp | C++ | cpp | 33,037 | permissive | #include "Matrix.h"
#include <iostream>
#include <string>
#include <gtest/gtest.h>
#ifdef MSVC
#pragma comment(lib,"gtestd.lib")
#endif
//for IntelliSence
#define Matrix Matrix
#define MTEST_BEGIN()\
try\
{
#define MTEST_END()\
}\
catch (...)\
{\
ADD_FAILURE();\
}
using namespace cildhdi;
TEST(Matrix, Cons... |
df33351275785607b903ff0c1f5c8fbf1293a96b | 3b9a18971af8b85e69d9b041ea8537563e767ba8 | maklakovsergey/nonogram | /src/nonogrammodel.cpp | C++ | cpp | 12,003 | permissive | #include "nonogrammodel.h"
#include <QBrush>
#include <QDebug>
enum class CellType {
Empty,
Add,
Info,
Data
};
const int CellTypeRole=Qt::UserRole+1;
NonogramModel::NonogramModel(QObject *parent) : QStandardItemModel(parent)
{
_nonogram=nullptr;
_nonogramSolver=nullptr;
_editing=true;
... |
49d6018df47a5f04a9cc842848c38bb52d8da280 | 318234448dc9a010413c39a8d7371f439d118fdd | OldArchive/Shard | /src/main.cpp | C++ | cpp | 116,132 | permissive | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/algorithm/string/replace.hpp>
#include <boost/filesystem.hpp>
#inc... |
e888e1590de8a12a093f144d09d2325a22475b6b | 7ee9107443fd72b5d0f81bf0d39b8fd300172cbd | gharghabi/HandWaveDetection_HumanoidRobot | /Skeleton/backup/pi_trackerData_akharincode_15_5.cpp | C++ | cpp | 17,879 | no_license | #include "ros/ros.h"
#include <tf/tf.h>
#include <tf/transform_listener.h>
#include <stdio.h>
#include <stdlib.h>
#include "std_msgs/Int32.h"
#include "std_msgs/String.h"
#include <math.h>
#include <sstream>
#include <boost/thread.hpp>
#include <string>
#include <pcl/common/time.h>
#include <unistd.h>
#include <fstream... |
c863eb5d9860f875ec0d6b936cb1e1b4214636fd | dcd61191cf4f53079250d68240810f0ea8033222 | PixelExperience-Devices/device_xiaomi_jasmine_sprout | /qcom-caf/gps/android/2.1/location_api/GnssAPIClient.cpp | C++ | cpp | 36,108 | permissive | /* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this ... |
baad03448ecd8b887945ce7e3b4db45eb51d056a | 0fe905060ef5945d604c92522c4fde0ec0db0f90 | RcppCore/RcppNT2 | /inst/include/nt2/trigonometric/constants/pio2_1t.hpp | C++ | hpp | 1,728 | no_license | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
24735f9a47b11b6e30b31316abb4c67142f838ff | d001a53884caad17f7a223c77b394c5d46f0eebe | STEllAR-GROUP/phylanx | /src/plugins/statistics/all_operation.cpp | C++ | cpp | 1,765 | permissive | // Copyright (c) 2018 Shahrzad Shirzad
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <phylanx/config.hpp>
#include <phylanx/plugins/statistics/all_operation.hpp>
#include <phylanx/plugins/statistic... |
dad366ac187c3a9ea7639ff709a97851af95f97b | 3b3887eb39a94c3c741c91ea1dec342731b8fb66 | neviim/SCUM_SDK | /SDK/SCUM_Bulletproof_Vest_05_classes.hpp | C++ | hpp | 647 | no_license | #pragma once
// SCUM (Dumped by Hinnie) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass Bulletproof_Ves... |
62e852c14bc5e6c2989f6c2f7e1b793dd9202565 | 3061c0bc4ac77c058c9380255be32c6fc4f39e59 | drjod/ogs | /ProcessLib/HydroMechanics/HydroMechanicsProcess.cpp | C++ | cpp | 539 | permissive | /**
* \copyright
* Copyright (c) 2012-2016, 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 "HydroMechanicsProcess-fwd.h"
#include "H... |
55a6a4d267e4bed851ee526af54b6b8f650a3f2a | 742f352621ce8a513355961bf19afabacc748810 | charlieo1500376/RhysmE-master | /Rhysme/checker.cpp | C++ | cpp | 808 | no_license | #include "checker.h"
std::map < std::string, Image* > loaded_image;
Image* Checker_LoadImage(std::string image_source) {
if (loaded_image[image_source] != NULL) {
//std::cout << "skipped load image\n";
return loaded_image[image_source];
}
else {
loaded_image[image_source] = IMG_Load(image_source.c_str());
... |
cb09b42383fc5c3207fc197668757992c91bfc1c | cedaa3e29e0efc22cfcc3ab02939b4ef8e6f25ca | mafvidal/UdriveTPTaller2 | /servidor/bibliotecas/rocksdb/db/version_set.cc | C++ | cc | 120,080 | permissive | // Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// Copyright (c) 2011 The... |
de99f1e4384ef96d721110e20175e26c7db391a0 | d36c54962a8d1f87310a61c99e7fa8ae892f52bd | qianxj/XExplorer | /XFrame/src/IXNode.cpp | C++ | cpp | 7,185 | permissive | #include "StdAfx.h"
#include "xfAreaObject.hpp"
#include "..\include\IXNode.hpp"
#include "xfNode.hpp"
#include "xfXPage.hpp"
#include "xfNodeControl.hpp"
#include "xfControl.hpp"
#include "xfwin.hpp"
#include "xfNodeLayers.hpp"
#include "IXPage.hpp"
namespace Hxsoft{ namespace XFrame
{
IXNode::IXNode(void):m_pNode(N... |
e672baafec713c33dafd1aaf6636c916ed17aac4 | 1dcdf817a2671e0e0b551c5483655554e1159ef3 | cqtangsong/chromium | /ash/display/display_change_dialog.cc | C++ | cc | 3,868 | permissive | // Copyright 2019 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 "ash/display/display_change_dialog.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/session/session_controller_impl.h"
#include "as... |
004299f2b600d13e4a851f28dd41593101de7ad6 | 8a01f4565ab549dbf0013770f1384fd36377140a | hdgbdn/LearnEffectCpp | /02_Constructors_Destructors_and_Assignment_Operators/09_Virtual_function_construction_destruction.cpp | C++ | cpp | 2,125 | no_license | #include <iostream>
#include <string>
using namespace std;
class Transaction
{
public:
Transaction();
virtual void logTransaction() const { cout << "log Transaction" << endl; };
void init() { logTransaction(); }
};
Transaction::Transaction()
{
// directly use pure virtual function, compiler will find error:
// ... |
c3f292d88a73ef6e95ee5d51456d354680858b7c | 378dde6c939077601c44133ef6be638b35d75c95 | 5l1v3r1/CompactHashRemap | /Unstruct_remap/unstructured_read.cc | C++ | cc | 16,953 | permissive | /* Copyright 2015-19. Triad National Security, LLC. This material was produced
* under U.S. Government contract 89233218CNA000001 for Los Alamos National
* Laboratory (LANL), which is operated by Triad National Security, LLC
* for the U.S. Department of Energy. The U.S. Government has rights to use,
* reproduce, ... |
66dc58a2dbc8add7ea493b2502318e201f44dced | cd22a8b618b587b0f124a47a2d9edbde7b7b297b | lancevance1/codeforce_prac | /CF734-D2-A.cpp | C++ | cpp | 699 | no_license | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ar array
//https://codeforces.com/contest/734/problem/A
// count the number of 'A' and 'D' by using string[i] to access the char of string,
//then compare them
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
// solution com... |
9b755f5d15f8a3f97ba3cae371336947b64c2d82 | fca568d4425573e12f7645cf8ffb3ea3d5be5a97 | tokitsu-kaze/ACM-Solved-Problems | /Codeforces/Codeforces Round 601/1255B - Fridge Lockers.cpp | C++ | cpp | 4,625 | no_license | #include <bits/stdc++.h>
using namespace std;
namespace fastIO{
#define BUF_SIZE 100000
#define OUT_SIZE 100000
//fread->read
bool IOerror=0;
//inline char nc(){char ch=getchar();if(ch==-1)IOerror=1;return ch;}
inline char nc(){
static char buf[BUF_SIZE],*p1=buf+BUF_SIZE,*pend=buf+BUF_SIZE;
if(p1==pend){
... |
a4307f4d039d3b536e083b8f27ea1373947a9850 | 95158b32dffe5a5cac6fd581c6bac50fccbbbe59 | Jiazhiy/android | /linux/platform/s5p4418/Solution/BlackBoxWindows/src/NXBlackboxPlayer/ExplorerMap.cpp | C++ | cpp | 701 | no_license | // 컴퓨터에서 Microsoft Visual C++를 사용하여 생성한 IDispatch 래퍼 클래스입니다.
// 참고: 이 파일의 내용을 수정하지 마십시오. Microsoft Visual C++에서
// 이 클래스를 다시 생성할 때 수정한 내용을 덮어씁니다.
#include "stdafx.h"
#include "ExplorerMap.h"
/////////////////////////////////////////////////////////////////////////////
// CExplorer_map
IMPLEMENT_DYNCRE... |
60b1865c059a82512b8f6400ed8225c6191d198a | 3a25e9430f66da3763cd444e0c24f6e7d456657c | kevinlee584/UVA | /uva 109 Conver Hull O(MN).cpp | C++ | cpp | 2,082 | no_license | #include <iostream>
#include <math.h>
#include <algorithm>
#include <cstring>
#include <iomanip>
#define Vector Point
using namespace std;
struct Point{
double x, y;
Point ():x(0), y(0){}
Point (double a, double b):x(a), y(b){}
bool operator <(const Point &b)const{
return (x==b.x&&y<b.y)||x<... |
48539d68d06665c89d755a2fb3b27a64c158506e | ca86ce7f1753e77f2a2dc5a04d039efd29a3326f | detrojones/rowhammerjs | /native/double_sided_rowhammer_haswell.cc | C++ | cc | 14,622 | permissive | // Copyright 2015, Daniel Gruss, Clémentine Maurice
//
// 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 applicabl... |
cb8f59b47c49ba533d6989c387379f6b35080dac | 2a1ae2a28825d6ddb0b655933eb28b0afb669a42 | Marharyta-Tkachenko/4.5 | /Lab4.5/lab4_5.cpp | C++ | cpp | 2,413 | no_license | #include "Complex.h"
#include "FuzzyNumber.h"
#include "Pair.h"
ostream& operator << (ostream& out, const Pair& r)
{
return r.Print(out);
}
istream& operator >> (istream& in, Pair& r)
{
return r.Insert(in);
}
int main()
{
Pair* A1 = new Complex(4, 5);
Pair* B1 = new Complex();
Pair* C1 = new Complex();
Pair* D... |
f700780df82051858ed56a8859ec143a4314e4c7 | 8233f500fa83f118182b6a622f7ae8aacbc0bf06 | Rudreshwar-S/POJ | /2418.cpp | C++ | cpp | 690 | no_license | #include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<map>
#include<cstdio>
using namespace std;
typedef long long ll;
int main()
{
string tree;
float i=0;
map<string,float> treeOfMap;
map<string,float>::iterator itr;
while(getline(cin,tree))
{
i++;
it... |
71e8d57854c7f05fdf4dea11d0889c7a9cb99c15 | c5e43616f957695aa598b9f383135bf603eb42b4 | ysh329/Paddle-Lite-1 | /lite/kernels/opencl/elementwise_mul_image_compute.cc | C++ | cc | 8,245 | permissive | // Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
6d419e52553cda01650d4df22b1e0c85f1f4b96d | 6429f4ba5261b4d7784dc569e9d27c8e21b19d5f | ShazwanX9/sorting-algorithm | /sorting-algorithm/HeapSort.cc | C++ | cc | 1,030 | no_license | #include "HeapSort.hh"
#include "Ultility.hh"
HeapSort::HeapSort(int arr[], int size) {
HeapSorting(arr, size);
}
void HeapSort::shiftDown(int arr[], int start, int end) {
int root = start;
while (2 * root + 1 <= end) {
int child = 2 * root + 1;
int swap = root;
if ... |
13ac2c5dca6374f70d9b6746d45dbc001219c1b0 | e87afc7dbcef996be19e30d38a2fc130170eb3ec | irods/irods_netcdf | /api/src/rsNcGetVarsByType.cpp | C++ | cpp | 14,130 | no_license | /*** 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 ncGetVarsByType.h for a description of this API call.*/
#include "netcdf_port.hpp"
#include "... |
4120dd2e0874c755ef2857de307b08839874f228 | 10388a2aa05008eb927ae61052d97be70c7b5005 | MichaelMiao/chromium | /components/arc/arc_service_manager.cc | C++ | cc | 2,699 | permissive | // Copyright 2015 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 "components/arc/arc_service_manager.h"
#include "base/sequenced_task_runner.h"
#include "base/thread_task_runner_handle.h"
#include "components/... |
dcffb16d2e500c2f226081a517e9015c45e3fbb2 | 1f4ae506aef2645a1d77e8944e43329f69e944c6 | MR782/ShadeLeaves | /結合ファイル/結合ファイル/製作/Game/Game/TitleScene.cpp | C++ | cpp | 1,498 | no_license | #include "TitleScene.h"
#include"ScreenSystem.h"
#include"Necessary.h"
#include"ScreenFunction.h"
#include"KeyBoard.h"
#include"SceneManager.h"
#include"Audio.h"
#include"MemoryFunc.h"
#include"./dxlib/DxLib.h"
Title::Title()
{
this->title_ui = nullptr;
this->back_graph_handle = 0;
}
void Title::initialize()
{
//メ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.