blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81df5afc19aa421c43eab261456ded7f24eae0bc | f511554b0e1d08d4bf4f4837a9c464fc8dafee3f | /Graphs/connected_components.cpp | 5399832011760ce85e7cb26d208c34582e3593b2 | [] | no_license | Subrat2196/Placement_CB | f0770415ddebc1a27474e3a6e9753c9662651154 | 04923eb5c9f114d920906f30b34125b7b65f7e5d | refs/heads/master | 2023-06-17T13:27:03.843544 | 2021-07-04T12:48:28 | 2021-07-04T12:48:28 | 369,576,385 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,170 | cpp | connected_components.cpp | #include <iostream>
#include <queue>
#include <map>
#include <list>
using namespace std;
template<typename T>
class Graph
{
map <T,list<T>> mp;
public:
void add_edge(int x,int y)
{
mp[x].push_back(y);
mp[y].push_back(x);
}
void dfs_helper(T src,map<T,bool> &visited)
{
cout<<src<<" ";
visited[src]=tru... |
fb437c8fb1faad9db5dcec0380983bc7d70f0114 | b5eb58d11c138fe273b171a02abd42bd7d469692 | /Codeforces/Contest/1401-Codeforces Round 665 Div2/B.cpp | 34cc2fa09277ac021d2fdb395c4ba6b34ed906f2 | [] | no_license | anand2000a/Coding-Contests | da2cd80d5a2a78d5a6c8e85038a4f748336aa795 | 6feedec3204c1b5a147fdf4f9876757851e4e7e4 | refs/heads/main | 2023-03-16T14:45:18.156358 | 2021-03-09T08:04:17 | 2021-03-09T08:04:17 | 320,330,364 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 798 | cpp | B.cpp | class Solution
{
public:
int minOperations(vector<int> &nums)
{
int ans = 0;
while (1)
{
int count = 0;
int i;
for (i = 0; i < n; i++)
{
if (nums[i] & 1)
break;
else if (nums[i] == 0)
... |
ae1e08a24bd8b6092e90adc2e295785c0ddae441 | 519f49c2335ff2c40704a60f10531a2e02292654 | /testapp/mbedtls/HttpManager/HttpClient/HTTPCookieJar.cpp | ce86308c8c8a9196135eb13c62f4efd879913205 | [] | no_license | Aurora360x/mbedTLS | 6caa22fc203006fdf99516cf5c228831110126a9 | 182630018110a1fe103226da42a447d1f2c61049 | refs/heads/master | 2020-04-18T05:20:53.485004 | 2019-01-24T00:36:58 | 2019-01-24T00:36:58 | 167,275,761 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,389 | cpp | HTTPCookieJar.cpp | #pragma once
#include "stdafx.h"
#include "HTTPTypes.h"
#include "HTTPCookieJar.h"
#define MAX_LINELENGTH 5000
#define MAX_NAME 4096
#define MAX_NAME_TXT "4095"
//void* operator new(std::size_t n)
//{
// printf("[allocating %d bytes\n", n );
// return malloc(n);
//}
std::shared_ptr<HTTPCookieJar> HTTPCookieJar::... |
33c67b936eae2205131e6656613a27deca9fa5c2 | 01ce660565340912fde677aa8539b0f2947a7094 | /src/pgen/cool1d.cpp | db40a609af1fc17c836191a86a71f82dcd4e199c | [
"BSD-3-Clause"
] | permissive | ionizationcalc/athena-public-version | 672711605b5f45a03ff97acc8001b4d4546428e4 | cecf2487423b7ba33feaeb89c512a1395c6d4e35 | refs/heads/master | 2021-07-23T10:41:52.594699 | 2020-04-27T19:35:21 | 2020-04-27T19:35:21 | 154,673,436 | 0 | 0 | null | 2018-10-25T13:11:52 | 2018-10-25T13:11:52 | null | UTF-8 | C++ | false | false | 13,148 | cpp | cool1d.cpp | //==============================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code
// contributors.
// Licensed under the 3-clause BSD License, see LICENSE file for details
//====================================... |
7ec9977720a9f3267f28d510d1011640b36a16d8 | 020a975e5ec3185622e14a28f2669f5f26cc9073 | /LiveCam/fx/FxBigBoyHair3d_2.h | 0435c20dc2214590f28ca9ae169e5571e3354d54 | [] | no_license | clinton-burt/ar-face-tracking-app | ffdc67dfd4bc5554add9884d23e66b9126980fe6 | aafe97aee3b6e6e0b0efd8c9a433ee153a809541 | refs/heads/master | 2020-05-18T20:05:10.755801 | 2019-05-02T23:29:48 | 2019-05-02T23:29:48 | 184,620,795 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 143 | h | FxBigBoyHair3d_2.h | #pragma once
#include <fx\Fx3dModelAncestor.h>
class FxBigBoyHair3d_2 : public FxCore
{
public:
FxBigBoyHair3d_2();
~FxBigBoyHair3d_2();
}; |
933ded1fb9d9044fb9eb5555193eee8d0033deb3 | 466157d33545800506da9c7f63503a301c5f46f6 | /week 3/tolower.cpp | 1aae225c9603cec0dee1204d0bd50cd06eb5db47 | [] | no_license | stereshkin/coursera-white_belt | 6e69be7e690302bcefe43a0b6075fc9bce26668d | db4f93ce23542d32036ca198d351e9901a8c90b8 | refs/heads/main | 2023-01-18T23:05:30.417736 | 2020-11-17T16:25:34 | 2020-11-17T16:25:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 720 | cpp | tolower.cpp | #include <iostream>
#include <vector>
#include <cmath>
#include <locale>
#include <algorithm>
using namespace std;
bool comp(int i , int j)
{
return (abs(i) < abs(j));
}
int main() {
int n;
cin >> n;
vector<string> lines(n);
for (auto& line : lines)
{
cin >> line;
}
sort(beg... |
8d499a2a7d9701bf4d22dbaec13ece236571a1bd | 0440fcb4ff56e43c4faf855e441e70a99a30186a | /busmaster/Sources/Replay/ReplayManager.h | d83036bc2d214dc501c2c0d7a89fa506017a0ff2 | [] | no_license | MarcSerraLear/UDS_Busmaster | 0383d1d1349dc3d0e29762c1457821807f530b5d | 9f624aa11ebc4041d6048088ac02960f38a80293 | refs/heads/master | 2020-05-17T12:35:02.189914 | 2014-04-14T13:44:27 | 2014-04-14T13:44:27 | 12,892,058 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,970 | h | ReplayManager.h | /*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will... |
624068679b19f6160e40a56365dbd5b57e6ef2d3 | 176aa5ca234bcaf97d46f306141400e509ae6d21 | /maze_mvvm/utility/common/player.cpp | 8abe4b0aeb211b21dab0e806a0d92bae44430abf | [] | no_license | Qt-MVC-MVVM/Underground | ddc99e347854f2b85a2d0aa370a378b27fe46ceb | e05c69aa0890cebd54b0b19257d0a5d2b411c21a | refs/heads/master | 2020-09-08T22:16:27.902579 | 2019-09-07T04:30:10 | 2019-09-07T04:30:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 854 | cpp | player.cpp | #include "player.h"
player::player():x(0),y(0),direction(3),size(PLAYER_SIZE),step(PLAYER_SIZE/4){}
player::player(double _x, double _y):x(_x),y(_y),direction(3),size(PLAYER_SIZE),step(PLAYER_SIZE/4){}
player::~player(){}
void player::set_x(double _x){x=_x;}
void player::set_y(double _y){y=_y;}
//QColor player::get_col... |
c09150855bc3464ef09e567ae4f61ea589981a63 | 49c753396896f1dac752b72f4adade4cdaf18df5 | /include/besthea/general_spacetime_cluster.h | 7ed411c63a11c06312fe34d8425ac05ba92fd38d | [
"BSD-3-Clause"
] | permissive | lacrymose/besthea | c30d56a8f163563adf0992513e6b0a32d8f0236f | 2fe03a91366bc4d89e9fedbe6176ac523202722d | refs/heads/master | 2023-06-06T14:53:00.952058 | 2021-07-01T06:30:23 | 2021-07-01T06:30:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 39,831 | h | general_spacetime_cluster.h | /*
Copyright (c) 2020, VSB - Technical University of Ostrava and Graz University of
Technology
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 copyr... |
c3823794238ad0714465c8f6b9e7823a398c3f7f | 0101c4a5bcca3e621849759cf17631d9cc48763f | /matriz_q5.cpp | 78d6a1ccc5bdb9718acd815c93d95e8113577f39 | [
"MIT"
] | permissive | alimadeoliveiranatalia/Linguagem-C | 5009a1dc8b6d87410accf097d1dc558b656655d1 | dfc5587f5479892bf3c586051bc1fbbe3f49e304 | refs/heads/master | 2022-11-05T01:46:25.057481 | 2020-06-23T13:36:10 | 2020-06-23T13:36:10 | 274,303,376 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 441 | cpp | matriz_q5.cpp | /*Ler uma matriz 4x5 de inteiros, calcular e imprimir a soma de todos os seus elementos.*/
#include<stdio.h>
#include<locale.h>
main(){
setlocale(LC_ALL,"");
int a[4][5],i,j,valor,soma=0;
printf("Informe valores para a matriz A:");
for (i=0;i<4;i++){
for (j=0;j<5;j++){
scanf("%d",&a[i][j]);
}
}
for (i=0;i<... |
71cf9b061dee600177308f280a322524cbbace34 | 5458bcfe20bb814ba3663394d19e675a1ebdfa3f | /Mail-Client/Base64.cpp | b62c3f758ab632089f1c221c73460c8ee00c0edf | [] | no_license | krzz2q/Mail-Client | d8f0aaccbc13be3a33ce28fc05c54a368f3aa263 | 0d8bcb98ee4aaa743401e876d761b4cc76983e8f | refs/heads/main | 2023-05-03T22:52:33.194139 | 2021-05-19T10:42:46 | 2021-05-19T10:42:46 | 363,340,961 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,202 | cpp | Base64.cpp | // Base64.cpp: 实现CBase64类.
//
#include "pch.h"
#include "Base64.h"
// 静态成员初始化,7-bit 字母表.
CString CBase64::m_sBase64Alphabet =
_T("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
//---------------------------------------------------------------------------
CBase64::CBase64()
{
}
//--... |
686c09b821d04dcfc13339c7a0805b2e5089b10e | 2d468433f1ecd2f0650bef8a5ee3b16460692097 | /src/lib/optimizer/strategy/between_composition_rule.cpp | 6e3e350a368cb74d0309b4bc4192b3f09106a896 | [
"MIT"
] | permissive | hyrise-mp/hyrise | 6819d45fa68f167a9d32c3351e83b1dc33ee9537 | cefb5fb70dfc0a6e43f35d7dd098d7ac703d4602 | refs/heads/master | 2020-05-26T22:18:15.914031 | 2019-06-04T12:10:34 | 2019-06-04T12:10:34 | 188,396,488 | 2 | 0 | MIT | 2019-06-04T12:10:36 | 2019-05-24T09:46:14 | C++ | UTF-8 | C++ | false | false | 17,979 | cpp | between_composition_rule.cpp | #include "between_composition_rule.hpp"
#include <algorithm>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include "constant_mappings.hpp"
#include "expression/expression_utils.hpp"
#include "logical_query_plan/abstract_lqp_node.hpp"
#include "logical_query_plan/lqp_utils.hpp"
#include "l... |
1b7db19701a8a15b21001d41a7d4af8394ab4167 | 6dea2ee7e6eacebd3b86de321f64b6068869fac6 | /Fundamentos Programacion/Tema 2/ejercicio7.cc | 46825be8898bdb6f745ec46773161af7a283b1bf | [] | no_license | JuanFra1990/Practicas-GIINF | a486e919fc4beef1ccc24ca1f72527f197030a47 | 3b851ccf8491958911ce9f01cc487f8df1f19de3 | refs/heads/master | 2021-01-17T00:45:05.573825 | 2016-07-03T07:17:33 | 2016-07-03T07:17:33 | 62,484,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 792 | cc | ejercicio7.cc |
#include <iostream>
using namespace std;
int main () {
float num1, num2,num3,num4;
cout << "Introduce cuatro numeros, separados por espacios" << endl;
cin >> num1 >> num2 >> num3 >> num4;
if (num1>num2 && num1>num3 && num1>num4)
cout << "El numero mayor es " << num1 << endl;
else
if (num2>n... |
61ecc8285a2a1167f93bdfcd477e4a11070d11bb | 6ec15065fa1d57de0c8b683b049ed41bfe83132c | /알고리즘 공부/85번/085-진법변환-김태욱.cpp | 0fe6f7708aa9f3213792db89d00c0486866cc33d | [] | no_license | TaeUkKim-ZZ/Study-For-Algorithm | 3383aeeafd4c15230c53724fab928ca435693b5a | 7107ea6a376a4981d54c13d27ade756b0caa43de | refs/heads/master | 2021-06-28T17:50:23.708313 | 2017-09-17T08:13:52 | 2017-09-17T08:13:52 | 103,813,333 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 371 | cpp | 085-진법변환-김태욱.cpp | #include<stdio.h>
FILE *in=fopen("input.txt","r");
FILE *out=fopen("output.txt","w");
int jinsu, number;
void convert(int jin,int n)
{
char na;
if(n==0) return;
na=n%jin;
convert(jin, n/jin);
if(na<10) fprintf(out,"%d", na);
else if(na>=10) fprintf(out,"%c", na+55);
}
int main(void)
{
fscanf(in,"%d %d", &jins... |
4f4b1c9d7fb383c25ab656428893161dfb4e9462 | bb90d8d55ba052392d267d479c698279df37b36e | /src/CINI.h | 8442015f14519d4a2d6dda783f0f3bb2687d432e | [] | no_license | titan/concentrator | 0d9274b01b9caae082388150b29aba0cc5361de6 | 688e2bee7c2748921858edac9fa243e9ab92de70 | refs/heads/master | 2020-04-14T11:00:04.113303 | 2013-10-14T02:58:10 | 2013-10-14T02:58:10 | 40,824,315 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,244 | h | CINI.h | /*
==============================================================================================================================================================
www.sourceforge.net/projects/sinip
Copyright Stephane Baudoux (www.stephane-baudoux.com)
This file is part of CINI.
CINI is free software: you can redistri... |
9fd5f5a2bbea99ce434229cc321f2dfe00bc71b6 | 59418b5794f251391650d8593704190606fa2b41 | /plugin_api/qsf/qsf/video/VideoBuffer-inl.h | e03c51afc03c8833c0475988322d563473178b84 | [] | no_license | JeveruBerry/emergency5_sdk | 8e5726f28123962541f7e9e4d70b2d8d5cc76cff | e5b23d905c356aab6f8b26432c72d18e5838ccf6 | refs/heads/master | 2023-08-25T12:25:19.117165 | 2018-12-18T16:55:16 | 2018-12-18T17:09:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,773 | h | VideoBuffer-inl.h | // Copyright (C) 2012-2018 Promotion Software GmbH
//[-------------------------------------------------------]
//[ Namespace ]
//[-------------------------------------------------------]
namespace qsf
{
//[-------------------------------------------------------]
//[ Pub... |
3957d0046087a69db124137dd4330b111b2ad899 | 9f3290918fa3b8d845d3607680e06c1a86957c47 | /src/main/options/OptionHandler.cpp | 3e2186b0bd3011d37b8dc082449c927c0f1892ad | [] | no_license | Nodmgatall/Uni_HH_Projekt2016_Particle_Simulation | 0cb21f9bbd063cb8f9943a3d98c944b6a9fef6b0 | efd8694b38d9b9c4b178bc00c4791ea92a71b420 | refs/heads/master | 2021-05-16T08:26:20.041720 | 2017-03-03T17:24:40 | 2017-03-03T17:24:40 | 72,119,846 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 37,753 | cpp | OptionHandler.cpp | /*
* OptionHandler.cpp
*
* Created on: Feb 10, 2017
* Author: Oliver Heidmann <oliverheidmann@hotmail.de>
* Author: Benjamin Warnke <4bwarnke@informatik.uni-hamburg.de>
*/
#include "OptionHandler.hpp"
int OptionHandler::indexInArray (std::vector<const char*> elements, char* element) {
unsigned int ... |
07d84870831a65489535c7cd10a2e1486af7ed20 | 74833dfffad6fd1a0734df3aa0043f6e4e251ade | /papers/mechatronik_studienarbeit/Source/cebit_gui/Serial.cpp | 5d93870355d429619b57ebe9d508a9a43512ec3e | [] | no_license | BackupTheBerlios/laeufer | f91909a470b4b066fb568ab0dce525b4d620c021 | c73c6c0a61615c273514c21d8d3cd46194d51e24 | refs/heads/master | 2020-04-06T03:39:40.681051 | 2003-01-29T18:04:31 | 2003-01-29T18:04:31 | 40,051,600 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,485 | cpp | Serial.cpp | #include "Serial.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
Serial::Serial( const string& deviceName, const speed_t speed ){
this->deviceName = deviceName;
this->baudrate=speed;
}
Serial::~Serial(){
close(fd);
}
void Serial::setBa... |
460928351c0a76bf9013bd1eb7e5aba51e3122b2 | 0532e6996508a5da50194ef0abf6637576238d62 | /HCPC2019/G.cpp | f8a5c31c437a3e6a4dce09de44cc0764586d2e81 | [] | no_license | FYLSunghwan/PS_Practice | 72ca2a22a86d55bef276a6c66cc498d7d49ec664 | 082c63cd5db20a6c2e5a1bcb8d02d2461d115231 | refs/heads/master | 2021-07-23T06:42:23.292683 | 2020-05-30T11:26:21 | 2020-05-30T11:26:21 | 173,923,646 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 822 | cpp | G.cpp | #include <deque>
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
n *= 2;
int sw = 0;
deque<int> up, down;
for(int i=1;i<=n;i++)
{
switch(sw)
{
case 0:
up.push_front(i);
break;
case 1:
... |
b7975a98fff4e2528db73b51902699e3c2160f5e | a6bfdf4d2dd1ea4ae285215c651c2b64479b6b6a | /include/boost/simd/function/restricted.hpp | 0973911de45d72331889255cdf38e20b797780e2 | [
"BSL-1.0"
] | permissive | jeffamstutz/boost.simd | fb62210c30680c3cb2ffcc8ed80f8a0050f675fd | 8afe9673c2a806976a77bc8bbca4cb1116a710cb | refs/heads/develop | 2021-01-13T04:06:02.762442 | 2017-01-05T02:56:52 | 2017-01-06T16:11:47 | 77,879,665 | 6 | 1 | null | 2017-01-03T03:08:57 | 2017-01-03T03:08:57 | null | UTF-8 | C++ | false | false | 1,630 | hpp | restricted.hpp | //==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//===========================... |
447f8ad1928fcf4517e1acd3a79e108d99302bbe | d8b4d13efd1f3476db49e2038fade472975b0b3f | /include/util.h | b04b235e9f3868a5e0ecd230b24f81b4096b6746 | [
"BSD-3-Clause"
] | permissive | gulico/MySSG | 9b1b82380f7c065156daa352658f646e203558fd | 7936b3b24b82311b214af22aa8cdb74170d8cfb2 | refs/heads/master | 2021-06-30T03:19:32.194918 | 2021-03-01T06:00:13 | 2021-03-01T06:00:13 | 214,152,849 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | h | util.h | #ifndef EFANNA2E_UTIL_H
#define EFANNA2E_UTIL_H
#include <random>
namespace efanna2e {
void GenRandom(std::mt19937& rng, unsigned* addr, unsigned size, unsigned N);
float* load_data(char* filename, unsigned& num, unsigned& dim);
float* data_align(float* data_ori, unsigned point_num, unsigned& dim);
} // namespac... |
7fcda68c1d901a5837a9dd0fa5e9b49119d91f62 | 8483830175b98ba2915d7bf90bed728bb6a4ed75 | /Examples/include/asposecpplib/security/cryptography/rng_crypto_service_provider.h | 5861a2d1135854f80f9c5651d1b1413d7cf7208d | [
"MIT"
] | permissive | kashifiqb/Aspose.PDF-for-C | 83393e3173e2d74540f7ec7904eb91fb23b13550 | 13d49bba591c5704685820185741e64a462a5bdc | refs/heads/master | 2020-08-08T11:15:23.173738 | 2019-10-09T04:41:03 | 2019-10-09T04:41:03 | 213,819,800 | 0 | 0 | MIT | 2019-10-09T04:20:06 | 2019-10-09T04:20:06 | null | UTF-8 | C++ | false | false | 1,711 | h | rng_crypto_service_provider.h | /// @file security/cryptography/rng_crypto_service_provider.h
#ifndef _security_cryptography_rng_crypto_service_provider_h_
#define _security_cryptography_rng_crypto_service_provider_h_
#include <security/cryptography/random_number_generator.h>
#include <memory>
#ifdef ASPOSECPP_SHARED_EXPORTS
#include <botan_1_11_34... |
f4c7b72b4592796692888c8603a181b086ea46d4 | ccb17afd04243d10436c71de6e97ed4c77988703 | /Client/client.hpp | f95bdac6df8993869e06f863058aafa7a74a5d29 | [] | no_license | crscillitoe/Messenger | aeab27f3df742ce9d814148ae1e024b7951433e6 | 4a014058918c3a36b6b5d1007c10b0875995ce23 | refs/heads/master | 2021-01-10T22:30:48.712193 | 2017-04-24T18:27:12 | 2017-04-24T18:27:12 | 69,705,366 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,072 | hpp | client.hpp | #ifndef CLIENT
#define CLIENT
//Includes
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <pthread.h>
#include <arpa/inet.h>
#inc... |
784a6b7ac7f93800ac5a3a10697469121fc8622e | 4e005efb83e70a5def0b7b5f101df68ed7c8e6d2 | /0_DataStructure&Algorithm/QuickSort/KunthQuickSort.cpp | 1fdb1986f48f7281935f4852a06882b66fcccc90 | [] | no_license | CYP0630/Study_Note | c73a123eab53d3d31d4a8b4256cc4dc812ccf750 | 513b43f15e9d7d40f72f226d014a01c07ce56b09 | refs/heads/master | 2021-08-04T18:38:51.133946 | 2021-07-31T03:39:39 | 2021-07-31T03:39:39 | 213,740,950 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,198 | cpp | KunthQuickSort.cpp | //CPE593, Assignment 3b, Optional
//
// Author: Yupeng Cao
// ID: 10454637
//https://github.com/CYP0630/Study_Note/tree/master/CPE593_DataStructure_Algorithm/QuickSort
//******************************************************
// Write a golden mean search to find the best k value
// for your \Knuth-optimized partia... |
5615ec3247f3043c1543a02fcbc5aba8eccefefd | cbae1c6cc49485decf4692befa0cc2d1f94fcb5a | /DuckHunt/score.h | 7e19a753a80cef54433a4cfae754b0496a789e28 | [] | no_license | macairececile/Projets_DUT | 4142ea9bb4cd1046dfb7d29878a0c15d04743423 | dc672389fb9dd611dd3bbc3868a892a316da62a8 | refs/heads/master | 2022-12-08T20:59:28.537254 | 2020-09-09T12:35:32 | 2020-09-09T12:35:32 | 294,094,150 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,624 | h | score.h | #ifndef SCORE_H
#define SCORE_H
#include <iostream>
#include <cstdlib>
#include <string>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <sstream>
#include <fstream>
#include "duck.h"
#include <SDL/SDL_ttf.h>
using namespace std;
struct LittleDuck
{
int x;
int y;
int h;
int w;
SDL_Rect li... |
e0e77dca14d5ecc527514b971ac13a0f674288e6 | fe911a3efea8558ae122b570c2a8c2a5c3c48da6 | /Trees/Tree.h | c79d47c77b2ccf4ad74ba4fa4df1b6bc50bd3d25 | [] | no_license | Ariello05/Algorithms | 9bfdee3ae1a8734fe60f882905354c9e9146511d | 8c504b8be9ac47f0142784dba7c2404143b8936a | refs/heads/master | 2021-07-20T09:04:11.120943 | 2020-06-07T15:29:56 | 2020-06-07T15:29:56 | 176,267,157 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,445 | h | Tree.h | #pragma once
#include <string>
#include <fstream>
#include <istream>
#include <iostream>
using std::cout;
using std::endl;
using std::cerr;
template <typename T>
class Tree {
public:
virtual void insert(T) {
insertCount++;
size++;
if (max_size < size) {
max_size = size;
}
}
virtual void remove(T) {
de... |
56f37ad45d855302281cefbca6c8c3dc38bb18da | 8a6b76e46a95c126ee6bb8c1fbc0ac3f2abec5b4 | /leetcode/C++/MergeSortedArray.cpp | c5cd4542199451295a409fa8489f96284f9f2885 | [] | no_license | jawiezhu/Exercise | 6555165805c22f2c7c55708d8e90f4115a9e1ff0 | 5bb80934755fa2f2b42de4f32515a7e96f8abe8a | refs/heads/master | 2021-01-22T08:48:21.671429 | 2018-01-14T08:28:02 | 2018-01-14T08:28:02 | 26,935,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,487 | cpp | MergeSortedArray.cpp | // Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
// Note:
// You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold additional elements from nums2.
// The number of elements initialized in nums1 and nums2 are m and n respectively.
cl... |
c628b58138865660524bbd174e0de53bba662516 | 91950638a5c1fda7b4462fe6205ecd9e246f59ed | /src/lfit_levmarq.cc | 3f10b3bd73134a7813182d1b6214ad0ec816d59e | [] | no_license | wildjames/lfit | 0749b5727e04ccfbf3d965660b9827418debab96 | c52e3c1b1371967cb5c6324aaef487d8d14b6077 | refs/heads/master | 2020-04-07T20:55:48.769126 | 2016-03-22T09:46:19 | 2016-03-22T09:46:19 | 158,708,175 | 1 | 0 | null | 2018-11-22T14:05:52 | 2018-11-22T14:05:52 | null | UTF-8 | C++ | false | false | 7,536 | cc | lfit_levmarq.cc |
#include "trm/subs.h"
#include "trm/array1d.h"
#include "trm/array2d.h"
#include "lfit.h"
#include <cfloat>
#include <climits>
#include <ctime>
#include <iostream>
#include <fstream>
void LFunc::force_recalc(){
wdCalc=true;
donorCalc=true;
discCalc=true;
bsCalc=true;
}
void LFunc::check_recalc(){
wdCalc=f... |
bc1336f513c265291c00cfa45ad1d9580648f499 | 99466d9132f7cf3ee53f54f1c3fe5a2848f1942e | /091.cpp | 2d94c52fe7a6c01675287d2a4dac849b396c95c5 | [] | no_license | Hyukli/leetcode | e71604126712ad801dd27c387099999085f055d3 | 3444f0a92ee4edc7607ee8afab760c756a89df7f | refs/heads/master | 2021-06-05T14:14:58.792020 | 2020-03-31T13:40:58 | 2020-03-31T13:40:58 | 93,115,710 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 869 | cpp | 091.cpp | #include<iostream>
#include<vector>
using namespace std;
class Solution {
public:
int numDecodings(string s) {
int n=s.size();
vector<int> v(n+1,0);
if(s[0]=='0') return 0;
else v[0]=v[1]=1;
for(int i=1;i<s.size();i++)
{
if(judge(s[i])) v[i+1]+=v[i];
... |
545100a55db5b3703c45fb4a5027b397ebf0100a | 2a5ae61c7f3f2dfd241f2a8e2b6354fa880beace | /src/variables.h | 115a3caace5f7868d13996a5e82517b587f8db3a | [
"MIT"
] | permissive | stijnherfst/BrickMap | bc90e776c20574be220bbb8b0a488e4cdc9f53c9 | 8327a9d3899cc17d22ca25f1dad108952b2f486d | refs/heads/master | 2022-05-29T10:45:41.133524 | 2022-04-12T09:48:16 | 2022-04-12T09:48:16 | 222,433,660 | 49 | 8 | MIT | 2022-04-12T09:48:16 | 2019-11-18T11:30:59 | C++ | UTF-8 | C++ | false | false | 2,070 | h | variables.h | #pragma once
constexpr static float pi = 3.1415926535897932f;
constexpr static float inv_pi = 1.0f / pi;
constexpr static unsigned window_width = 1920;
constexpr static unsigned window_height = 1080;
constexpr static unsigned render_width = 1920;
constexpr static unsigned render_height = 1080;
// Most other variabl... |
80a16874819c7b5167e2d235817af44fc0a759d2 | 3d5a8610d37aac3ccc2d3644b47007202f554d8d | /service/src/gen-cpp/hive_service_types.h | 930b0ec15ae5befd3d45642987e7498345e6dd45 | [] | no_license | sdecoder/TDW-QueryEngine | 8dd7824c6290e75c652f60734109e6d649405f3f | 4ccca8f6e36ffdc482072f711b0e57f69f8fd256 | refs/heads/master | 2021-01-10T04:55:05.969138 | 2015-12-18T00:06:37 | 2015-12-18T00:06:37 | 48,184,342 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,940 | h | hive_service_types.h | /**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
#ifndef hive_service_TYPES_H
#define hive_service_TYPES_H
#include <Thrift.h>
#include <protocol/TProtocol.h>
#include <transport/TTransport.h>
#include "fb303_types.h"
#include "hive_metastore_types.h"
namespa... |
eefe3fcfe59fab46384c128657c8ccb2721b4d87 | d76f76aa9da92b7796fc80672553b2338893655f | /gc/include/omtalk/MemoryManager.h | e6ddc8da31a41aad26207eade4599150d8b51ed7 | [] | no_license | devin122/omtalk | e88e0e8258434044c718df4beee44e9921da3c50 | e61c3d7596ccc3a7581ca935b428e63562fa8ec6 | refs/heads/master | 2022-12-18T19:01:01.273315 | 2020-07-30T03:18:47 | 2020-07-30T03:18:47 | 283,790,562 | 0 | 0 | null | 2020-07-30T13:59:48 | 2020-07-30T13:59:47 | null | UTF-8 | C++ | false | false | 4,769 | h | MemoryManager.h | #ifndef OMTALK_MEMORYMANAGER_H
#define OMTALK_MEMORYMANAGER_H
#include <cassert>
#include <cstdint>
#include <memory>
#include <omtalk/Heap.h>
#include <omtalk/Ref.h>
#include <omtalk/Util/IntrusiveList.h>
#include <omtalk/WorkStack.h>
#include <sys/mman.h>
#include <vector>
#include <omtalk/Scheme.h>
namespace omta... |
a699ea33ee1c1a3158935de57bb013eb185f7213 | e58f08707250bc71d54f99d8ddc4d7efc48f4280 | /iHashBase.h | 40b7b30ce80d0be15fbaffc3e8e189d091005929 | [] | no_license | AlcuardXVIIII/iAlgorithm | 7f72d978325cf69433ad86ad54818eeeb7bcd53e | 736dd42bc93236e14dc74935280d4a4172a5267a | refs/heads/master | 2021-01-21T06:39:35.278134 | 2017-05-02T09:26:30 | 2017-05-02T09:26:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 347 | h | iHashBase.h | #pragma once
#include <windows.h>
class _declspec(dllexport) CHashBase
{
public:
CHashBase(VOID);
virtual ~CHashBase(VOID);
public:
virtual inline ULONG HashDigestSize(VOID) = 0;
public:
virtual BOOL InitHash(BYTE* pBaseData = NULL) = 0;
virtual BOOL CalcHash(BYTE* pBufferIn, int ulBufferInSize,... |
24574a02a6759f7a8f960b5d89a3d460d372de1d | 5ccd8df031ccdfba33a4b7bea28317ec9e279d80 | /cpp_data_structures/asn2/Potion.cpp | be572dc5c296a5374594a7c52198ac42e4548cc2 | [] | no_license | nhan-tran/school-cpp | 5c1492a2d3ed5173cb2f64fb78dc347dd65f57c7 | d6e4b2025c6850fea9903af11df02933e9286a80 | refs/heads/master | 2016-09-02T05:09:18.687239 | 2013-10-07T06:26:14 | 2013-10-07T06:26:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 962 | cpp | Potion.cpp | /*
Implementation file for Potion.h
Author: Nhan Tran
Date: 2/8/12
*/
#include "Potion.h"
#include <iostream>
#include <iomanip>
using namespace std;
/***************************
private:
PotionTYpe type;
****************************/
Potion::Potion(): type(UNKNOWN)
{
}
Potion::Potion(PotionType type): type(UNKN... |
cd191e9ea20462262456eff5a02c4d28913d4a91 | 16781c50bd44208ab54e6cf55afa0b634b1765d9 | /OPS_IDatabase.cpp | c0950160ee66d45abe49bfa74033e645d716425b | [] | no_license | xuzhixi/ops | bca7954a39e661393c7cf82727986f0b154b5fce | ad0cda8993d7496678ceb2f7a3167367d65031ae | refs/heads/master | 2016-09-06T01:38:55.235144 | 2012-11-08T03:21:34 | 2012-11-08T03:21:34 | 6,123,854 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 895 | cpp | OPS_IDatabase.cpp | //===============================================
/**
* @file OPS_IDatabase.cpp
*
* @author XuZhiXi
* Email 932834199@qq.com or 932834199@163.com
*
* Create datetime: 2012-10-17 08:18:47
* Last modified: 2012-10-23 19:19:49
*
* Description:
*/
//================================================
#... |
4ed229afa9135fcb251f9851c8358c0d665a7ad2 | 0120cf5f93d75471e8cb7ddbc0c40153735b38c6 | /file.h | e1798ca05dac1522c4c31726a95c97dfff6c64f6 | [] | no_license | MuQingWen/Dictionary | 54923624e4d53c4f2ef4cfefc48f4dc9b4bced9f | b994d0695d8f326d130c7b7a8ee50fcd8f60fa1f | refs/heads/master | 2023-02-07T04:03:40.656219 | 2020-12-20T12:17:09 | 2020-12-20T12:17:09 | 322,317,495 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 736 | h | file.h | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include "HashMap.h"
#include <fstream>
#include <string>
#include <string.h>
using namespace std;
class File
{
public:
int File_Read()
{
string str;
string en, ch;
char word[100];
char* cache[100];
ifstream file("dictionary.txt");
if (file.is_open())
... |
cbf79a6c9e461d3511a2efceaf16e93812a8df75 | e8282e3ae8aafa07b7f7261c639f206c4e97e0fc | /03 - Online Judges/cses/playlist.cpp | 0f7b830639748bbf6256bd79bbfa525a0b98034b | [] | no_license | irfansofyana/cp-codes | 7cad844da49b901ccf678b75c31ed41e2fa9d645 | 9fa723129088f0e4832ecb7e012fe586b6d59e41 | refs/heads/master | 2023-04-04T00:48:36.334817 | 2021-04-12T03:07:06 | 2021-04-12T03:07:06 | 218,084,148 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 622 | cpp | playlist.cpp | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 200000;
int n, arr[MAXN+2];
map<int,int> frek;
int ans;
int main(){
cin >> n;
for (int i = 0; i < n; ++i){
cin >> arr[i];
}
int i = 0, j = 0;
while (j < n){
++frek[arr[j]];
if (frek[arr[j]] >= ... |
47fcc889db70963883e6296a4e9b86b4c33e034a | e0db66aafd751545639eac76c930fd37075f2db9 | /main.cpp | cc4eb0ee8a160ec8123cbbc8f84a4f8a4c32923b | [] | no_license | malhadbah/p03-CompositeBitmap | 06195448459f4478045d90b78c8ede5989757eeb | b37a7513c602721ce667e5c5b6979441d8ee22c4 | refs/heads/master | 2021-08-10T22:03:27.476637 | 2017-11-13T01:01:59 | 2017-11-13T01:01:59 | 109,656,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,864 | cpp | main.cpp | #include<iostream>
#include<vector>
#include<string>
#include"bitmap.h"
using namespace std;
//function prototypes
void inputMax(int& max);
//call by reference to get the max user input
void getFirstFile(Bitmap& image);
//call by reference to get the user image file
void addPixels(vector <vector <Pixel> >& bmp, vector... |
c40d7469ebed0ce3a837467f6e0b47e46fa8b037 | 65aaba4d24cfbddb05acc0b0ad814632e3b52837 | /src/osrm.net/libosrm/osrm-deps/boost/include/boost-1_62/boost/detail/winapi/GetProcessTimes.hpp | d58e5febace4460676035b3706704a2c77822c87 | [
"MIT"
] | permissive | tstaa/osrmnet | 3599eb01383ee99dc6207ad39eda13a245e7764f | 891e66e0d91e76ee571f69ef52536c1153f91b10 | refs/heads/master | 2021-01-21T07:03:22.508378 | 2017-02-26T04:59:50 | 2017-02-26T04:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128 | hpp | GetProcessTimes.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:9d753559305a657e37727c29e6e30c0ad0bc246a82718cb3eb21ca4eed8d5337
size 819
|
bf91dbc4fb7f8f12b943d1edbeb32d754cd9a31e | b0d3354dc8dda2bfb9886594de5dabd6d3459889 | /compra/ui_proveedores.cpp | 4c39b130876e9b51bcf7c234284aba709eefa295 | [] | no_license | rodety/Jireh | 94ba6439c673b93976e6adf128cf3bfa78dd9853 | f53afab4cfe207c710a0251fec5c7ef063d76361 | refs/heads/master | 2020-12-11T22:46:22.145146 | 2016-07-13T19:40:24 | 2016-07-13T19:40:24 | 26,620,736 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,229 | cpp | ui_proveedores.cpp | #include "ui_proveedores.h"
#include "ui_ui_proveedores.h"
#include "ui_datos_proveedor.h"
#include "proveedor.h"
ui_proveedores::ui_proveedores(QWidget *parent) :
QWidget(parent),
ui(new Ui::ui_proveedores)
{
ui->setupUi(this);
update_list_proveedores();
}
ui_proveedores::~ui_proveedores()... |
77ebeaf54fc829549a1783c3974e7b9022d7c7eb | c7b7d48d903105d6134e58edbb746958c48313f7 | /Classes/Killer.h | 5c559af784c0af1fdc7a6e01a7d32e3e68a798e6 | [
"MIT"
] | permissive | wudyijava/RaidenFree | c52dec32b832b75bc935121f244d7165a9bef456 | 8425b9954213016f9647f546f41e3421f6e55ea3 | refs/heads/master | 2021-01-22T07:03:15.583648 | 2017-02-13T08:12:16 | 2017-02-13T08:12:16 | 81,799,448 | 2 | 2 | null | null | null | null | WINDOWS-1256 | C++ | false | false | 481 | h | Killer.h | #pragma once
#include "cocos2d.h"
#include "Aircraft.h"
USING_NS_CC;
//***********************************************************//
//
// ³¬¼¶±طة±
//
//***********************************************************//
class SuperKiller : public Aircraft
{
public:
static SuperKiller* create(Node* pParent, const TAirc... |
5c1e2dd541e17a28d50bddb05e4a02086dac6e34 | cfd797dda90d76a0d622f23ac7e21507020652d7 | /ABC161/ABC161_D.cpp | de2d521476e926236057e82b037a7c8c8c071ef4 | [] | no_license | taku-sea/atcoder_solutions | 9249a4837d4732935c1ad2cd0a75f8f9e644d50c | fc8c3b7dce7f70c7c71011a0f6b9b47989032816 | refs/heads/master | 2022-12-20T08:12:06.577372 | 2020-10-07T03:19:38 | 2020-10-07T03:19:38 | 263,926,441 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,846 | cpp | ABC161_D.cpp | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 1e16;
const ll mod = 1000000007;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
template<class T> inline bool chmax(T& a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template<class T> inline bool chmin(T& a, T... |
27ca2228b77787a4a6718d2884ef13950528065b | 788792872188e5c085a24af5862f7b5f45606840 | /syncclient.cpp | 8c1120a1ead2c90b47dd8a73f93572dc808374e0 | [
"Zlib"
] | permissive | seece/DemoRocker | 5c219b53e6864904e1e0482f470f3bf4a8c709af | 1096406ee9ca9dcc425dab813bcb4e52b7294016 | refs/heads/master | 2020-08-01T02:45:19.688653 | 2016-11-13T12:15:19 | 2016-11-13T12:15:19 | 73,585,337 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,702 | cpp | syncclient.cpp | #include "syncclient.h"
//#include "syncdocument.h"
static inline int socket_poll(SOCKET socket)
{
struct timeval to = { 0, 0 };
fd_set fds;
FD_ZERO(&fds);
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4127)
#endif
FD_SET(socket, &fds);
#ifdef _MSC_VER
#pragma warning(pop)
#endif
return select... |
20df15c0f7d67de8c8fe6eca58f13daa6fd84eb1 | f51afa31ca98d149439773651fb679583d61cb41 | /source/Render.cpp | 28102dfa4d9345dbaaf17bc5b7bc876f78651bca | [] | no_license | davll/ICG_SSAO | b73e5dbeb2e6d2dce36c57ee39d255d70005b7a8 | 8de718f43ceb66fe6ff0b7748aae1da7bb618a3c | refs/heads/master | 2021-01-01T18:06:53.235360 | 2011-04-15T18:08:23 | 2011-04-15T18:08:23 | 1,620,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,967 | cpp | Render.cpp | #include "Render.h"
Render::Render(){
mFramebuffers = 0;
mModel = 0;
mFSQuad = 0;
if(!GLEW_VERSION_2_0){
puts("OpenGL 2.0 Required");
abort();
}
if(!GLEW_ARB_framebuffer_object){
if(GLEW_EXT_framebuffer_object){
glFramebufferTexture2D = glFramebufferTexture2DEXT;
glBindFramebuffe... |
d7492fd4ed3d0231bce28dc6dd6b4071b873ef51 | efa458412aa27e4f7c37eb4ad24bc04376f5e3e9 | /Lib/Ziran/Physics/PlasticityApplier.cpp | 884d59d0049bfebfcc426757616ee1fe84ebfaa7 | [
"MIT"
] | permissive | Remotion/HOT | 27e28f020bc6977f562e714ad6e469e143bd6f23 | d8d57be410ed343c3fb37af6020cf5e14a0d1bec | refs/heads/master | 2022-04-25T06:39:06.228059 | 2020-04-25T19:24:21 | 2020-04-25T19:24:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,078 | cpp | PlasticityApplier.cpp | #include "PlasticityApplier.h"
namespace ZIRAN {
template <class T>
SnowPlasticity<T>::SnowPlasticity(T psi_in, T theta_c_in, T theta_s_in, T min_Jp_in, T max_Jp_in)
: Jp(1)
, psi(psi_in)
, theta_c(theta_c_in)
, theta_s(theta_s_in)
, min_Jp(min_Jp_in)
, max_Jp(max_Jp_in)
{
}
template <class T... |
905ab94691b37bf249b82f15ea1300675d31566d | c8f4e69781f3abdc7b63fb4a515f4f5e762874bc | /build-prueba-Desktop_Qt_5_5_1_GCC_32bit-Debug/ui_editor.h | f0be17daf8a45813ec52e2444190843e8eb956d4 | [] | no_license | astridlisarm/Proyecto-Pr3 | 2d2b7c6967c96c49f19c9743c61b21c9c48719f9 | 650bfb9401ff7859a29d0dda7f723b116d6f1039 | refs/heads/master | 2020-07-27T07:31:35.561910 | 2016-11-11T02:34:08 | 2016-11-11T02:34:08 | 73,436,402 | 1 | 0 | null | 2016-11-11T02:34:08 | 2016-11-11T01:46:31 | null | UTF-8 | C++ | false | false | 6,292 | h | ui_editor.h | /********************************************************************************
** Form generated from reading UI file 'editor.ui'
**
** Created by: Qt User Interface Compiler version 5.5.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************... |
40ec020d5844879c103195bd8dbdc7cdf09e5535 | 33eaed593369e57e65ac232053ea40e015123287 | /N5.cpp | 9990f2498c17bfc2894dc112d7acdb6f3e24624d | [] | no_license | ArtemBol/Pract2 | 8fd498c945f1a4183f633a734929b7891f11ae24 | e298866b23a3a41829336950c5ab3092e6d91c77 | refs/heads/master | 2020-06-06T00:39:23.779483 | 2019-06-18T18:08:36 | 2019-06-18T18:08:36 | 192,589,880 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,961 | cpp | N5.cpp | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
struct Card
{
int nominal;
int mast;
Card(){};
Card(int a, int b): nominal(a), mast(b){};
friend ostream& operator<<(ostream& outputStream, Card c)
{
return outputStream << to_string(c.nominal) +... |
9c9b70e0b979966ea07b92c71dc95a2c5ec8cf2d | d788101aa7f2eb8bd5418040c5550ff07c05c953 | /Lab 6(Mid Sem Logics)/Q2.cpp | 5f4fc53d330a65a4a03854c52941ede595459a77 | [] | no_license | akshundb/DAA | 62759fd138bb61300a0b0e02b59d8430f6d6ecfc | 0d4eaa59f7113fba63be3e835721cfaade0d1121 | refs/heads/master | 2022-04-15T05:54:36.516359 | 2020-04-05T09:49:53 | 2020-04-05T09:49:53 | 245,811,267 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,794 | cpp | Q2.cpp | #include <bits/stdc++.h> //n+logn-2 logic
using namespace std;
struct Node
{
int num;
Node *left;
Node *right;
};
void findSecondMin(int arr[], int n);
void traverseHeight(Node *root, int arr[], int &res);
int main()
{
int a[1000]; int n; int min1; int min2;
printf("En... |
8defc6bf0fdd2dec7f7428470636052bb3792aae | 64f685ba30dcaeeb636012b32a86ce2bcf04a288 | /tests/test_path.cpp | b128c0f48f723f54a5390f866db8291c5e50fb2f | [
"BSD-3-Clause"
] | permissive | cybercomsweden/batch-replace | a88b496e1de7d79a2a314686496b15430d5ad404 | 0b440eb71f0e68cc212e7550f272349ffb9bd571 | refs/heads/master | 2021-01-23T19:59:26.112586 | 2017-09-13T14:52:51 | 2017-09-13T14:52:51 | 102,841,342 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 967 | cpp | test_path.cpp | #include <doctest.h>
#include <string>
#include <vector>
#include "path.h"
TEST_CASE("Test has_extension") {
CHECK(Path::has_extension("foo.bar", ".bar"));
CHECK(!Path::has_extension("foo.txt", ".bar"));
CHECK(Path::has_extension("foo", ""));
}
TEST_CASE("Test has_valid_extension") {
std::vector<std::string> ext... |
13a89df66d39c1f112632f5a021354cbf8b388c0 | 96028a1e932f8cae761fd9d427e58460ec39f2f2 | /example/main.cpp | 573202abc50701f050ddc5470d5c6eb59c094d41 | [
"BSL-1.0"
] | permissive | pqrs-org/cpp-osx-input_source_selector | 897d189073da141a89b1b79caad65ca37dcf9f62 | eeeb66abd5a0e214339f36c0a52018511ceb6163 | refs/heads/main | 2023-08-01T00:31:53.813799 | 2023-07-17T02:26:58 | 2023-07-17T02:26:58 | 164,377,055 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,158 | cpp | main.cpp | #include <csignal>
#include <iostream>
#include <pqrs/osx/input_source_selector.hpp>
namespace {
auto global_wait = pqrs::make_thread_wait();
}
int main(void) {
std::signal(SIGINT, [](int) {
global_wait->notify();
});
auto time_source = std::make_shared<pqrs::dispatcher::hardware_time_source>();
auto dis... |
22b5d9a162e40ae7eb38b3c11dee07fd9e041c97 | 6d2a4ae4ec14ff7377dbede60ac1de7bf6f778e1 | /LAB TASK 4/LABTASK4-1+2.cpp | ce522386dc40b32ebae404f5b3629f4a2633e8bf | [] | no_license | Kabbo45/CSE-232-LAB-TASKS | f7c20e367c0b5ac743ec047cf53db971a8f17e39 | e1b5ba8de0bc889e97905292d0f1fc7f42f52490 | refs/heads/main | 2023-03-27T02:56:37.658193 | 2021-03-13T16:10:29 | 2021-03-13T16:10:29 | 332,821,845 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,378 | cpp | LABTASK4-1+2.cpp | #include<iostream>
using namespace std;
int selection(int a[], int n, int i)
{
int j, min, temp;
for(i = 0; i < n - 1; i++)
{
min = i;
for(j = i+1; j < n; j++)
{
if(a[min] > a[j])
min = j;
}
temp = a[i];
a[i] = a[min];
... |
d29bf25a31f9b8c95d0c3451f2d969a11aeaaa16 | 07dd1cdbea764770323541f1cbc3dc78f66e448a | /Tutorial Arduino/sonar_sensor_test/sonar_sensor_test.ino | cdee6cfb7f5a24e73ef5b8863c4475be815c6a93 | [] | no_license | syahmi001/Crowd-control-evacuation-robot | 69d9db814ed88ac206fe1e2a281d96f35df4bb08 | bdf273cd643cfdf13eecaaf213630575d45cbda2 | refs/heads/master | 2021-07-07T07:07:03.036323 | 2020-09-10T04:28:24 | 2020-09-10T04:28:24 | 186,143,578 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,325 | ino | sonar_sensor_test.ino | /*
* Ultrasonic Sensor HC-SR04 and Arduino Tutorial
*
* by Dejan Nedelkovski,
* www.HowToMechatronics.com
*
*/
/*// defines pins numbers
const int trigPin = 6;
const int echoPin = 5;
// defines variables
long duration;
int distance;
void setup() {
pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output
pinMode(ec... |
6700c588dee36d2490deab8b3956c70d7866499e | 5e0f387f3b11a3b3c07e7e34a62588e06268a938 | /cg2019FillPoly/cg2019WJYFillPoly.h | 9614cb8bbf9f0a4fe619245ea72a1a607cf0f080 | [] | no_license | lyz0351233/CG | d2934299c58a1a85ce6b04955fc514da52df3a1c | 48d44336e44062ad49a4acffc98da733563eafff | refs/heads/master | 2023-05-27T05:20:55.089534 | 2021-06-04T02:41:01 | 2021-06-04T02:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 620 | h | cg2019WJYFillPoly.h |
// cg2019WJYFillPoly.h: cg2019WJYFillPoly 应用程序的主头文件
//
#pragma once
#ifndef __AFXWIN_H__
#error "在包含此文件之前包含 'pch.h' 以生成 PCH"
#endif
#include "resource.h" // 主符号
// Ccg2019WJYFillPolyApp:
// 有关此类的实现,请参阅 cg2019WJYFillPoly.cpp
//
class Ccg2019WJYFillPolyApp : public CWinApp
{
public:
Ccg2... |
66bcd97ff53b585d009f18260b2d5047028932ad | fa0974887c441d37f85601465ddab5ce701de879 | /Linked_List/Inserting_deleting_Nth_pos.cpp | 347422e92ed260095e8af96ebfdb7fedf967b4ae | [] | no_license | vatsalarya/DataStructures_Cpp | 2c2f5ac63f16fb0c6646f35a27e59ef8e1dd827f | b7091f9438954762ff0bd29535b1893d2e9e2901 | refs/heads/master | 2022-04-19T16:38:46.276319 | 2020-04-16T13:23:15 | 2020-04-16T13:23:15 | 255,927,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 960 | cpp | Inserting_deleting_Nth_pos.cpp | #include<iostream>
using namespace std;
struct Node{
int data;
Node *next;
};
Node *head=nullptr;
void Insert(int data,int n=1){
Node *temp = new Node();
temp->data=data;
if(n==1){
temp->next = head;
head=temp;
return;
}
Node *temp1=head;
for(int i=0; i<n-2; i++)... |
bbf404d6f2ee6c4bc987673fc264dbbe358839b1 | 6aa768ad5342f23cf5cf770914f0c9830d124613 | /chapt6/header/d_7symbol.h | 304949a869a4fbfe1b52eb19c108a4dfa4569c82 | [] | no_license | jacktianmo/dataframe | aca80db849ade6f0c869bec7ba02874e52311184 | 7f4d65c34b5cd3e302c828e24735e15d837b979f | refs/heads/master | 2021-01-16T20:55:34.582460 | 2014-11-10T03:06:03 | 2014-11-10T03:06:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,741 | h | d_7symbol.h | /*
* d_7symbol.h
*
* Created on: 2014年11月9日
* Author: young
*/
#ifndef D_7SYMBOL_H_
#define D_7SYMBOL_H_
#include<ctype.h> //
using namespace std;
class expressionSymbol{
public:
expressionSymbol();
expressionSymbol(char ch);
//对运算数初始化
friend bool operator >=(const expressionSymbol& left,const expr... |
270b5d1bfc7d18caa1570ba34f339543990f965f | 84d3c58fb8345c43562afdf9c7271eb09b207513 | /codeforces/34-Div2-B.cpp | 2c676e3e34ef27841a455d84e0d4290d1aa3c78b | [] | no_license | PieroVioleta/CompetitiveProgramming | fede69368322b8fc8746366e1f83bdf3c28dcad6 | 86c6330cf971ac923b5562e5745cef35ebe6980a | refs/heads/master | 2020-04-15T13:53:10.294611 | 2019-05-23T20:29:33 | 2019-05-23T20:29:33 | 164,734,997 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | cpp | 34-Div2-B.cpp | //Sale
#include<bits/stdc++.h>
using namespace std;
int sum(int i, vector <int> arr){
int sum = 0;
for(int j = 0; j<=i; j++) sum += arr[j];
return sum;
}
int main(){
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
int n, m;
cin >> n >> m;
vector<int> prices;
... |
ac585d49a24058f698b4b8e84dfb07cf34488e5a | 5259ea368b5b2af19ca3ca19b07ee904a38b2f02 | /src/ReBar.cpp | 216798b278b9a7e596a094c15ccabedf5e69dc70 | [
"MIT"
] | permissive | Michael-prog/ToolBarControls | d44882ce216251cd87ccce1ec3692b1935522c90 | 409625a0e8541d7cea7a108951699970953af757 | refs/heads/master | 2022-01-08T08:13:15.832085 | 2019-04-28T16:00:32 | 2019-04-28T16:00:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 189,250 | cpp | ReBar.cpp | // ReBar.cpp: Superclasses ReBarWindow32.
#include "stdafx.h"
#include "ReBar.h"
#include "ClassFactory.h"
#pragma comment(lib, "comctl32.lib")
// initialize complex constants
FONTDESC ReBar::Properties::FontProperty::defaultFont = {
sizeof(FONTDESC),
OLESTR("MS Sans Serif"),
120000,
FW_NORMAL,
... |
20101e91eeea11ab3db5d105467a31c2aab56e77 | 72ed6514c0f222cd44e3382b14f4748f68e67f13 | /conncount.cpp | 0f4e3a6c9c1aac4ab7f4bcc43ed6a81c5e3f5694 | [] | no_license | narongsakjob/adt-project | 2ce383378a27c49b52ddbba483bd7d0edacc2404 | 6ad5ca29e1043408e737ba1d6d9acbfcff06e04d | refs/heads/master | 2020-12-02T23:56:56.979582 | 2017-07-01T13:11:05 | 2017-07-01T13:11:05 | 95,964,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,365 | cpp | conncount.cpp | #include <iostream>
#include <vector>
#include <list>
using namespace std;
#define MAX_N 100001
int n,m;
vector<int> adj[MAX_N];
int deg[MAX_N];
int levels[MAX_N];
void read_input()
{
cin >> n >> m;
for(int i=1; i<=n; i++) {
deg[i] = 0;
}
for(int i=1; i<=m; i++) {
int u,v;
ci... |
1af20da7bf16f500f7b9f8b71fa4566119fb44e7 | 420f8d94499bc1d0ff463f55688e282fadd4c3fd | /Desktop/Git Projects/Books/502-Assignment4/library.cpp | 5ae02f80b31da793f800b485f80fce434fca5b04 | [] | no_license | popandpeek/LibraryProj | ac86bcbce30419ee4597b36727aff062d1cacc73 | 223e0e3155d901976b9708bf863cf38fe870dc5a | refs/heads/master | 2020-04-01T12:11:10.023931 | 2018-10-16T16:28:25 | 2018-10-16T16:28:25 | 153,195,354 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,565 | cpp | library.cpp | /******************************************************************************
* Ben Pittman
* CS 502A Winter 2017
* HW 4
* library.cpp
* An ADT that holds catalogs of LibItems and a database of patrons.
*******************************************************************************/
#include "library.h"
#include "li... |
63a9be063af4b6864e37f8c6af4c069c311432a6 | da1500e0d3040497614d5327d2461a22e934b4d8 | /third_party/skia/samplecode/SampleBitmapRect.cpp | 1f757f5b6fc02a98673296e1cba9ea212e65e97a | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"Apache-2.0",
"MIT"
] | permissive | youtube/cobalt | 34085fc93972ebe05b988b15410e99845efd1968 | acefdaaadd3ef46f10f63d1acae2259e4024d383 | refs/heads/main | 2023-09-01T13:09:47.225174 | 2023-09-01T08:54:54 | 2023-09-01T08:54:54 | 50,049,789 | 169 | 80 | BSD-3-Clause | 2023-09-14T21:50:50 | 2016-01-20T18:11:34 | null | UTF-8 | C++ | false | false | 5,256 | cpp | SampleBitmapRect.cpp | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColorFilter.h"
#include "include/core/SkColorPriv.h"
#include "include/core/SkFo... |
66d741ce66ac6aa8e82700183680003ca38881e6 | 7d0be48c377429d297c8743be155f8eec408100a | /1062.cpp | b518b5d9e49a0e59e6e311bc0c3575a865b69673 | [] | no_license | MatheusBlanco/EDA | 94b0520fd0297d572bf8d181dce3a4912dfe79e5 | 5970f1c28be41cf3dc6e2448ff3fe6635dbaf0eb | refs/heads/master | 2020-04-17T22:07:28.497334 | 2019-02-05T23:19:30 | 2019-02-05T23:19:30 | 166,981,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,492 | cpp | 1062.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
int n;
int first = 0;
while(cin >> n, n){
while(1){
bool acabou = false;
stack<int> est_a;
for(int i = n; i > 0; --i){
est_a.push(i);
}
stack<int> estacao;
... |
50ad8500c3ff52a9a5e10eca48a2bd75bc7081de | 0afe8eb26fa1d2912e5b6917f1aab3ffe2e3464a | /TeamSels.hpp | 9553ae996fdd8b976ea0b50a6a560d1483df1c95 | [
"MIT"
] | permissive | chrisoldwood/FCManager | 82691c3c3b5abc0ed7ccdcdbbf036cefae58857b | f26aad68e572d21d3cb27d1fc285143b6c3ee848 | refs/heads/master | 2021-01-10T13:43:30.928830 | 2020-02-12T00:42:00 | 2020-02-12T00:42:00 | 52,308,523 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,469 | hpp | TeamSels.hpp | /******************************************************************************
** (C) Chris Oldwood
**
** MODULE: TEAMSELS.HPP
** COMPONENT: The Application.
** DESCRIPTION: The CTeamSels class declaration.
**
*******************************************************************************
*/
// Check for previous in... |
a7e875064417357a39e7bac14cf10939640a68b0 | a5b729de0e89513446dd0aae17751ab3b959467f | /Gray/src/Gray/Mesh/MeshData.cpp | 405c7f552ca70ea7f45b71f541df9ffbadbedc03 | [] | no_license | Rahulbiju315-yb/Gray | d1a026064433d3e8ee59287520d3cc604ee6464c | f55b20514108887a888dc934ef526a93eee99292 | refs/heads/master | 2023-04-18T10:30:05.717117 | 2021-05-07T09:36:59 | 2021-05-07T09:36:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,138 | cpp | MeshData.cpp | #include "grpch.h"
#include "MeshData.h"
#include "glm/glm.hpp"
namespace Gray
{
MeshData GetPlaneMeshData(int width, int height, float delta)
{
MeshData mesh;
int numVertices = width * height;
mesh.vertices.reserve(numVertices);
for (int i = 0; i < height; i++)
{
for (int j = 0; j < width; j++)
{
... |
21fc76652998987d19e7a4ff445a41da477420b1 | 50d109fa360ca5b4ddef6ad2d8d894a4551ffd9e | /player.hxx | 87e6f4d0c1bcec2a994ba74956681f83f6608316 | [] | no_license | AmineGherib/60-371-Genetic-Algorithm-for-Iterated-Prisoner-s-Dilemma | 30ea47da7d5a5c3385714e231547fb4362f6a6b0 | 813110fea9f48130a8b8cf03cb7032fd73792192 | refs/heads/master | 2021-01-23T00:15:01.614861 | 2017-03-21T19:56:25 | 2017-03-21T19:56:25 | 85,708,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,020 | hxx | player.hxx | #ifndef _PLAYER_
#define _PLAYER_
#include <bitset>
#include <iostream>
#include <algorithm>
static constexpr size_t combation_pairs(size_t n) { return n * (n-1) / 2; }
using Statistics = std::array<double, 6>;
struct Player
{
enum Decision { Cooperate=0, Defect=1 };
struct PastGenes
{
PastGene... |
f14ffbda1552d298acbefd3a33d0efdb8530ce92 | 39c39bc896c611c440be6c4073947acd12b1672a | /DepositMachine_SR - NONBLOCK/page_login.h | c3801fa19df8245373d6be8412e1d15928ff9667 | [] | no_license | tjdgk312/innoDm | 0c4949c10dd87e0418e6c50be5b24625680daf62 | 121b14c77de4c6ae76130ecd2f89f10c3ed28512 | refs/heads/master | 2020-03-30T18:23:09.508021 | 2019-02-11T03:11:00 | 2019-02-11T03:11:00 | 151,497,610 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 697 | h | page_login.h | #ifndef PAGE_LOGIN_H
#define PAGE_LOGIN_H
#include <QWidget>
namespace Ui {
class page_login;
}
class page_login : public QWidget
{
Q_OBJECT
public:
explicit page_login(QWidget *parent = 0);
~page_login();
void loginPage_init();
int assignInfo; // 이전 검색 및 인증 정보를 저장하여 뒤로가기 시 사용하기위함
void l... |
9cb0a5e6e9399f178ef4db79a19f7dd234ac0a28 | 22694cfdec9fa8efc64b8f5e86b906d76e8b89fe | /lib/hw_impl/pirimpl.cpp | 3431ab65c8056875e2a0fc3bf752a67bcbd5580e | [] | no_license | mattiamari/unibo-smartradar | db10bb7eb00a5dc7e41a827911296360a98c65b9 | 122897a188230eabf85d5acbe719c30ae9191652 | refs/heads/master | 2020-09-12T17:13:27.719641 | 2019-11-27T17:53:55 | 2019-11-27T17:53:55 | 222,490,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 170 | cpp | pirimpl.cpp | #include "pirimpl.h"
using namespace smartradar;
void PirImpl::onDetect() {
for(unsigned int i = 0; i < handlersCount; i++){
handlers[i]->handle();
}
}
|
9ff8564792910637a42d42937ee12ef8339770d1 | 888c6e53e6470bc418ea567b21c93000f5ee0ea9 | /Validate_Binary_Search_Tree/main.cc | dd954e74fae90c540bd696abeca950422b597aae | [] | no_license | goshan/leetcode | 7ebbf63a53cd8f491d3f37548bd213944cdec959 | 11f947b7509c82db3f30c509e5366953432f2abd | refs/heads/master | 2021-01-24T06:13:45.467249 | 2017-12-07T10:17:07 | 2017-12-07T10:17:07 | 9,021,584 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 896 | cc | main.cc | #include <iostream>
using namespace std;
// Definition for binary tree
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
bool order_detect(TreeNode *root, TreeNode *&prev){
if (root == NULL)
{
/* code */
return true;
}
if (!order_detect(... |
a81c43100457076e347d285920cbbd60befea56d | ddad65a3df1b04c58e438683259a5391aea172ff | /TareaLabo5/ejercicio3.cpp | 93ef3d2830c9460347543463f4b30531d31aa86b | [] | no_license | Alejandra-437/LabosFunda | 988149f878297f9135a3a3caf4a9158499313a1f | 689e9f857a6ad4d2bc16cfd6ce42acae616faab1 | refs/heads/master | 2021-05-17T05:10:01.302045 | 2020-07-12T22:44:30 | 2020-07-12T22:44:30 | 250,641,145 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 574 | cpp | ejercicio3.cpp | #include <iostream>
#include <cstdbool>
using namespace std;
bool funcion(int bisiesto){
if(bisiesto % 4 != 0 || (bisiesto %100 == 0 && 400 != 0)){
return false;
} else{
return true;
}
}
int main(){
int bisiesto=0;
bool retorno=0;
cout<<"Introduzca un año para ver si es bis... |
6aca41bb85f0ed5e147f8aadca904df51e708ac2 | 7067fef998a194e5f0997a1def3b7326947c0b54 | /Common/CMUtilsHostName.cp | 5cf1cf7ce9a6bff91443ecf8c3481bc6cd8ca54c | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | quicksilver/OnMyCommand-qsplugin | 3c8a0017603e809c11a50c2c4c3c5cea0d368bd7 | 14bd6c31c1210013db2c73fee249bdbf9b08a7ea | refs/heads/main | 2022-06-02T09:53:48.389877 | 2011-07-26T09:40:46 | 2011-07-26T09:40:46 | 1,885,847 | 1 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 894 | cp | CMUtilsHostName.cp | //**************************************************************************************
// Filename: CMUtilsHostName.cp
// Part of Contextual Menu Workshop by Abracode Inc.
// http://free.abracode.com/cmworkshop/
//
// Copyright © 2002-2003 Abracode, Inc. All rights reserved.
//
// Description: static utilities... |
b044750bacd6375b8e5a776fb2ab21962b2bcc70 | 9b047d1c1de6caa1ff803c35d01cc6f4fef71b4c | /src/sst/elements/firefly/nicShmemStream.cc | 8ba0bc25e8092182e925485433f77bf42471368f | [] | no_license | umd-memsys/sst-elements | 89cea1692ee1e41a29f6aee41fe3f5b549fe3acc | db5baf94b8aad323fc421256fc66373ba14bfc7f | refs/heads/master | 2021-06-24T01:38:41.920702 | 2017-08-06T14:04:16 | 2017-08-06T14:04:16 | 55,321,124 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,213 | cc | nicShmemStream.cc | // Copyright 2009-2017 Sandia Corporation. Under the terms
// of Contract DE-NA0003525 with Sandia Corporation, the U.S.
// Government retains certain rights in this software.
//
// Copyright (c) 2009-2017, Sandia Corporation
// All rights reserved.
//
// Portions are copyright of other developers:
// See the file CONT... |
c6f0dffd6b5445b1adf32e8036f9708d6178e11f | d6582135cbe7dc7837460e54094e21d70b5ac91b | /VARUN AND SACHIN.cpp | 3d81012e03ab64596d6612f79959efef48b678c2 | [] | no_license | hst005/CODZEN-EXAMPLES | abc438ff3f539e7dcdc0ca031b40c0d7bbb2f6ee | 0b890b79b5b516c7c4ed337903802a379eabc778 | refs/heads/master | 2020-06-30T10:02:54.602401 | 2019-08-06T07:38:33 | 2019-08-06T07:38:33 | 200,796,966 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,938 | cpp | VARUN AND SACHIN.cpp | #include <iostream>
using namespace std;
class Triplet{
public:
long long int gcd;
long long int x;
long long int y;
};
Triplet gcdExtendedEuclid(long long int a,long long int b){
//Base Case
if(b==0){
Triplet myAns;
m... |
2747033f6fb1fcd376b5869a050e437c314894ff | 4040d743d3cc4af68773b659947a92a5acbb07de | /LIB/basis/src/sys/sstr/defaults.cpp | 837944ae04c78030ea0f8142edcdf6f88835a3f1 | [] | no_license | msxxxp/main | 67072e745a550b6bc58c2b3cb9f3d6d55a6bdf3a | 904da0db6239b4d1baf7644037bf1326592e64c1 | refs/heads/master | 2020-12-24T19:18:02.182013 | 2014-12-02T17:15:07 | 2014-12-02T17:15:07 | 30,285,895 | 1 | 0 | null | 2015-02-04T06:55:42 | 2015-02-04T06:55:41 | null | UTF-8 | C++ | false | false | 277 | cpp | defaults.cpp | #include <basis/sys/cstr.hpp>
#include <basis/sys/sstr.hpp>
#include <basis/simstd/string>
namespace sstr {
astring get_trim_default_achars()
{
return astring(" \t\r\n");
}
ustring get_trim_default_uchars()
{
return ustring(L" \t\r\n");
}
}
|
ebded0c574dc9817315cf408f4072f5b72c93663 | 81409142eb929541875ff524e1a8fd4a6ee23f5b | /SystemPath.cpp | 58074846612599d683efe8879d4365cd98844c72 | [] | no_license | HodongMan/server-prac | c5fd040e1dbff46972e6aa46dc03cd343c250ca0 | 59bff534721d4d51b8f6b77eac9b3e62b95ccfb8 | refs/heads/master | 2020-04-29T01:27:41.781941 | 2019-09-02T16:02:46 | 2019-09-02T16:02:46 | 175,730,906 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,527 | cpp | SystemPath.cpp | #include "pch.h"
#include "SystemPath.h"
#include "File.h"
#include <shlobj.h>
#define APPNAMESIZE 128
static char _appName[APPNAMESIZE] = { 0 };
static char _documentsPathName[APPNAMESIZE] = { 0 };
static bool getFolderPath( std::string& basePath, const char* pathToAppend, int folderFlag ) noexcept
{
TCHAR szPath[... |
8fdf8cccfa972f40935b391f973d5d2996f37faa | 8655c2facec60d669f02da8bbcbbd16b797f771e | /ОП/Part_second/LR11/LR11/main.cpp | aaaa532310daf7039319c31a507c367f21656ec1 | [] | no_license | ViacheslavPokusaev/C-Tutorial | 7602c3be3a8aba9e911ea654d4d4186c66495c82 | 5cd5732b2c77cd9d683d8b9fdd219e801bc142d9 | refs/heads/master | 2022-09-20T18:05:35.325467 | 2020-06-04T11:29:06 | 2020-06-04T11:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,539 | cpp | main.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <math.h>
struct list {
int field;
struct list* next;
struct list* prev;
};
struct list* init(int a) {
struct list* lst;
lst = (struct list*)malloc(sizeof(struct list));
lst->field = a;
lst->next = NULL;
lst->p... |
e0bc1b08f10f9ae8c29deeb84b03c43a6c8d812e | 3a2af230da7d699df36e06ac2358f1f240d47880 | /Scripts/82.cpp | e1c80728bfcdedb931dc24dae1efd46dc1c5956b | [
"MIT"
] | permissive | zzz0906/LeetCode | 96e6baca4355cf842826d650e111a65b4f8d93b8 | 6c2ad7ecb91343033362bcb9e6e90766918bef5e | refs/heads/master | 2023-06-23T11:18:21.610633 | 2023-06-23T00:22:52 | 2023-06-23T00:22:52 | 93,714,713 | 22 | 0 | null | 2021-08-17T14:17:30 | 2017-06-08T06:26:02 | C++ | UTF-8 | C++ | false | false | 2,063 | cpp | 82.cpp | struct ListNode {
int val;
ListNode *next;
ListNode() : val(0), next(nullptr) {}
ListNode(int x) : val(x), next(nullptr) {}
ListNode(int x, ListNode *next) : val(x), next(next) {}
};
class Solution {
public:
ListNode* deleteDuplicates(ListNode* head) {
int last;
i... |
0abccd62e573c5f49754a4f37aee85e6ac66181c | 5705f15f94110b6caa80a21c7578cd3ee79bc252 | /codcad/grafos/costa.cpp | 76eff2a22dc150976c0b6f6b0406b04c940e31ff | [] | no_license | Ladgelson/codes | 0c57f484764c7a425e1d6ec67a12f3e50ff5dd06 | b48942ac92e5b3fda80a40261ad859719bc5fe6e | refs/heads/master | 2020-04-21T15:30:15.770275 | 2019-12-12T13:41:14 | 2019-12-12T13:41:14 | 169,671,348 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,351 | cpp | costa.cpp | #include <bits/stdc++.h>
#define MAXN 1100
#define f first
#define s second
#define pb push_back
#define lsb(x) ((x) & (-x))
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
int n,m,cont(0);
char grafo[MAXN][MAXN];
int seen[MAXN][MAXN];
int vizinho[MAXN][MAXN];
int di[] = {1,-1,0,0,-1,1,-1,1};
in... |
0727c86f2d71de313c35fabd7882e5382739ed2a | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/squid/gumtree/squid_new_log_670.cpp | 829a1228a98a2416a806d548d07cf331f01328bd | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26 | cpp | squid_new_log_670.cpp | memStore->getStats(stats); |
2879c5f354e3c45fed1533ed29f72f1aac536520 | 2681232843a3705900dbd15d404a956c8b44c2a6 | /lib/driverinterface/api/DataPacket.h | 799b1e130093c1835302bf0888cc5f08edc2066c | [
"MIT"
] | permissive | GnssTao/novatel_edie | 587be956856c0001d65228330fe26c73d4fa1a62 | c6d5fabb1fd3d7e90d7d85d92ff32174f0600183 | refs/heads/main | 2023-04-27T03:39:34.828074 | 2021-05-04T15:42:38 | 2021-05-04T15:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,464 | h | DataPacket.h | /////////////////////////////////////////////////////////////////////////////
//
// COPYRIGHT NovAtel Inc, 2018 all rights reserved.
//
// No part of this software may be reproduced or modified in any
// form or by any means - electronic, mechanical, photocopying,
// recording, or otherwise - without the prior ... |
a1bb35325759c1287a5ed1a1e78e3bde25d40515 | e2950433484e55ae76cbc03c946aba6886eaf4d6 | /test/Declsrc.cxx | 741f7db1c22bd7e648a876b1b29c52d5e46564f8 | [
"Apache-2.0"
] | permissive | eruffaldi/cmm | 29a7a17c3ab7cab5dd1225ab97e0af010c94234f | ba2942a89231d85141b8d226331e0940492ec661 | refs/heads/master | 2021-01-10T11:50:15.862897 | 2016-01-11T18:33:59 | 2016-01-11T18:33:59 | 49,097,212 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 478 | cxx | Declsrc.cxx | // Test source file for declarations
int glo;
int a[11], hello, *pippo;
float ww;
int * p;
int v(int hello, char pippo);
int q(int j)
{
char c;
// ww = a['a'] + (2+3); // OK
glo = j;
// ww = 2.5 + ww; // OK
// p = &glo; // OK
// return v(100, 'a');
// return 10+j, (j >> 1)*2;
// c = j ... |
ea857fd86770568f1d0153f80bfbb8466b781ef1 | e6062564a0f0b2bca8d2aca24dc9d5c9071adcac | /Recursion/josephus-problem.cpp | 6a9cb281a043e32c048379fb5794723b38a34796 | [] | no_license | iShubhamRana/DSA-Prep | 22e29b85a8ee7dc278c0d89c62dcb33f29b99699 | 611d1a3fb824cce2fab051194bd5f7d0eee83f05 | refs/heads/main | 2023-06-25T06:59:45.599109 | 2021-07-27T18:30:18 | 2021-07-27T18:30:18 | 418,046,414 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 464 | cpp | josephus-problem.cpp | class Solution
{
int findPos(vector<int> &p, int index, int k)
{
if (p.size() == 1)
return p[0];
int to_delete = (index + k) % p.size();
p.erase(p.begin() + to_delete);
return findPos(p, to_delete, k);
}
public:
int safePos(int n, int k)
{
// init... |
8a94c0c5785897c7daa31554e07e2c297365c2de | 8eff4ee2f013f70a1109ff2f1ea59b355e4a2e52 | /BinaryTreeZigzagLevelOrderTraversal.h | ea086d8149a9a3d502c0b4e0fa496c2dd0e0e007 | [] | no_license | zcfelix/LeetCode | d14716c917a5764c618cfeeb00c355ca58782323 | 4b65ee8f79498b2d86a59195ae387db87f005b0c | refs/heads/master | 2020-06-04T00:15:16.112226 | 2015-08-20T12:49:01 | 2015-08-20T12:49:01 | 38,593,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,489 | h | BinaryTreeZigzagLevelOrderTraversal.h | /*
Author: Felix Zhou, zcfelix.zhou@gmail.com
Date: Jul 14th, 2015
Problem: Binary Tree Zigzag Level Order Traversal
Difficulty: Medium
Source: https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/
Notes:
Given a binary tree, return the zigzag level order traversal of its nodes... |
394f3d800a2846974e8e8c5cdc3677329f3a7d0b | 0d59e198c4a914dc873c8c088edb0cfb4c6b6497 | /src/tool/hpcrun/unwind/generic-libunwind/libunw-unwind.c | f0f90e7fbd289a0b4c0a3841d978d5bab59de52e | [
"BSD-3-Clause"
] | permissive | dejangrubisic/hpctoolkit | 31e59810002c1f4a3a3191f0ebe626424822033b | b684cd867d6fda8f8868df2070be467452e65e36 | refs/heads/master | 2022-05-27T09:59:13.519139 | 2022-03-11T22:22:12 | 2022-03-11T22:22:12 | 243,671,777 | 0 | 1 | null | 2020-02-28T03:39:38 | 2020-02-28T03:39:38 | null | UTF-8 | C++ | false | false | 6,331 | c | libunw-unwind.c | // -*-Mode: C++;-*- // technically C99
// * BeginRiceCopyright *****************************************************
//
// $HeadURL$
// $Id$
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research an... |
32ea419b234020d5dc8e2d61262e1ee4eac38c58 | 2c5eb0019b2404f22a63f34ef9bcdd273bfd2fbf | /OOP-CS304/Lab/010.Lab 10/005.task_5.cpp | 9a2fb3a8195bb9911a851516553c7e30d2630d75 | [] | no_license | IIvexII/CS | 558054fd6b80b516bdc6c02d24a64c00cd7dc178 | a6a03dacd4450828d5a87a2f52e940e0a0b14441 | refs/heads/main | 2023-06-30T06:03:56.411018 | 2021-08-04T13:56:36 | 2021-08-04T13:56:36 | 319,822,884 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,004 | cpp | 005.task_5.cpp | /*
Q2). Write a program that declares two classes. The parent class is called Simple that has two
data members num1 and num2 to store two numbers. It also has four member functions.
• The add() function adds two numbers and displays the result.
• The sub() function subtracts two numbers and displays the result.
• The m... |
764047afd962d83615b0c3750006439006634b3c | d3fbf4759ce8e684feaab914e9666a7627bbc41c | /All Algo Codes using C++(FCFS , RoundRobin , SJF , SRTN)/Round Robin.cpp | 06ef37e81c0923489e14eaea7a08bbcc7055456b | [] | no_license | fesabelilla/Operating-System-Lab | 9611c9923e3668b6f7a227c63fa9d75eb53cff60 | ac63f9b1c4a4027397901576711d69a4f4af35c4 | refs/heads/master | 2020-06-21T11:17:04.509806 | 2019-10-05T03:46:39 | 2019-10-05T03:46:39 | 197,433,616 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,630 | cpp | Round Robin.cpp | #include<bits/stdc++.h>
using namespace std;
void findWaitingTime(int n,int q,int bt[],int tat[],int wt[])
{
int t = 0 ;
int rem[n+1];
for(int i = 0 ; i<n ; i++)
{
rem[i] = bt[i];
}
while(1)
{
bool done = true;
for(int i = 0 ; i<n ;i++){
if(rem[i]>0){
... |
4879ec096f7dd27ccce7296606f91b7e2a1aff3b | 3d3506ab0842a5216627312e78132a7377b85191 | /src/MansionEscape/View/InventoryState.cpp | e33bd836cb07047367e1c0c0384793188de25a15 | [] | no_license | FelixKirmse/MansionEscape | 16e6e79a4d04f0bf11329e92c36a4df92c4b5e07 | d0ef46e56143bc3e05934913c7b53a3002a08ccb | refs/heads/master | 2020-03-21T10:36:47.645088 | 2012-11-23T11:22:01 | 2012-11-23T11:22:01 | 138,461,283 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,986 | cpp | InventoryState.cpp | #include "View/InventoryState.h"
#include "View/TUI.h"
#include <sstream>
#include "Model/Item.h"
#include "View/SelectActionState.h"
namespace MansionEscape
{
#include "Include/InventoryStateConstants.inc"
InventoryState::InventoryState()
: _inventory(), _page(1), _commentString(0)
{
}
InventoryState& InventorySt... |
edbf27b02718cb8d2616b8a3dc9d1d44c474b832 | 28520e2125b1931da371970f27e7c234b4994eb9 | /test/src/integration_tests/cases/pvm2sdp.test.cxx | 3994b46dba12bc43d2864ea9527dfb403b8099aa | [
"MIT"
] | permissive | davidsd/sdpb | b38629008c42e00d0e0b3b7cda33dcb77bcdfa8d | 9f194cd10917a90ef3644cbc3bfcebc9b2b1867e | refs/heads/master | 2023-08-22T13:15:19.618056 | 2023-08-17T02:48:26 | 2023-08-17T02:48:26 | 30,393,310 | 53 | 43 | MIT | 2023-09-06T14:44:08 | 2015-02-06T03:32:28 | C++ | UTF-8 | C++ | false | false | 2,134 | cxx | pvm2sdp.test.cxx | #include "integration_tests/common.hxx"
#include <boost/filesystem.hpp>
TEST_CASE("pvm2sdp")
{
INFO("Simple pvm2sdp tests for a one-dimensional problem, same as in "
"TEST_CASE(sdpb)");
auto data_dir = Test_Config::test_data_dir / "pvm2sdp";
int num_procs = 2;
auto input = (data_dir / "file_list.nsv")... |
4bf59e3e71dc05e31915336f52c2e32bccaa1d8f | 5a441da48c3084cbd87809db78c0e7a3f081d457 | /countSort.cpp | a1023eb3bcb0ec1d87fe89d6ba050dd29b92d0b5 | [] | no_license | erikagonzalezs/dynamic-sort | 630d8d8632f2688a544c286269ddee3714bf4232 | 7f7a1c976bd48ee9573130c6ac1ed22cdcd6ef82 | refs/heads/main | 2023-03-13T10:08:50.674166 | 2021-03-02T21:28:20 | 2021-03-02T21:28:20 | 343,917,052 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,067 | cpp | countSort.cpp | #include <stdio.h>
#include <iostream>
#include <vector>
#include <chrono>
#include <thread>
#include <time.h>
void countSort(std::vector<int> &valores, int tam);
int main()
{
int n;
std::vector<int> valores;
srand(time(NULL));
for(int i = 0; i < 10000; i++) {
valores.push_back(rand() % 20000);
}
countSor... |
16286ebb51789412883fe730a62b95536784ba67 | b3d68b4811e2439031de231d25d01026a24a8706 | /catkin_ws/devel/include/openhand_node/ReadTemperatureResponse.h | 0e25c9f8c88d1ae19559567c638854b78886b655 | [] | no_license | HectorACastillo/Continuum | 61509532b9c861927dd0785b0a3c464385bc0854 | 4cb054ed0fe35e63528e6c2e9804cdb12ef7c346 | refs/heads/main | 2023-04-26T20:51:11.795864 | 2021-05-18T01:23:07 | 2021-05-18T01:23:07 | 363,528,303 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,418 | h | ReadTemperatureResponse.h | // Generated by gencpp from file openhand_node/ReadTemperatureResponse.msg
// DO NOT EDIT!
#ifndef OPENHAND_NODE_MESSAGE_READTEMPERATURERESPONSE_H
#define OPENHAND_NODE_MESSAGE_READTEMPERATURERESPONSE_H
#include <string>
#include <vector>
#include <map>
#include <ros/types.h>
#include <ros/serialization.h>
#includ... |
1a0c413b9b9ab85651df2668488a277f8222bbd7 | 48532034bc26775520e60ad3489df537f96ad8ea | /8-18/Neighbor Friend.cpp | 55918d1c584455fff58142ac3acc7fe3647967a7 | [] | no_license | OUC-MYM/Summer-training | aeffac0cbf86ab433bcf2d7cc2f3798b2d1bb783 | 5ec46b5879a1acbd9b20e616c90f586a6c234695 | refs/heads/master | 2021-01-20T06:55:19.685395 | 2015-08-22T15:54:25 | 2015-08-22T15:54:25 | 39,383,049 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 804 | cpp | Neighbor Friend.cpp | #include <iostream>
#include <cstring>
#include <cstdio>
using namespace std;
int N,M;
bool map[210][210];
bool link[210][210];
int main()
{
while(cin >> N >> M)
{
memset(map,0,sizeof(map));
memset(link,0,sizeof(link));
while(M--)
{
int a,b;
cin >> a >>... |
657eb60e6f58221a7cf181ac2605719f8d358232 | fa6fd2398ee9cd30a4527b222caeeb4498f7bb2f | /Dynamic Programming/minimizing_coins.cpp | e660956202a45f524c22499f1ad7612d18177423 | [] | no_license | Adarsh008/cses_problemset_solutions | 65916c536c23dd5ac9a4ebbc71267cf8dd5bb3a1 | 15a189684d872b8c930054581b6038dd45b3914d | refs/heads/master | 2023-01-22T00:16:24.359472 | 2020-12-06T13:07:58 | 2020-12-06T13:07:58 | 295,152,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 579 | cpp | minimizing_coins.cpp | #include<bits/stdc++.h>
#include<algorithm>
using namespace std;
int main(void){
int n,x;
cin>>n>>x;
vector<int>coins(n);
for (int i = 0; i < n; i++)
{
cin>>coins[i];
}
vector<int> min_coin(x+1,1e9);
min_coin[0] = 0;
for(int i = 1; i<=x; i++) // for min_coins[] array
{
... |
f4bd9d821d37a62176277e90f158989a9682b601 | e6ac81f44a911ee540f14adf8d238f0d5efb84b1 | /TLX/problems/Ngoding Seru Desember 2015/TOKI_Idol.cpp | e04b66337b9aed457a2a5070a4e116cef1060c8b | [] | no_license | abdulrcs/CP | 8003cc498866b3d3d09993b02cdb943fb94c5412 | eb303d86b376d9c07a4c54a1ab253e582d3f25d7 | refs/heads/master | 2023-06-26T12:24:29.377301 | 2021-07-25T02:14:41 | 2021-07-25T02:14:41 | 290,487,242 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 197 | cpp | TOKI_Idol.cpp | #include <iostream>
using namespace std;
int main()
{
int x,y,z;
cin >> x >> y >> z;
if(x+y+z >= 200 && x >= 50 && y >= 50 && z >= 50)
puts("Lolos");
else
puts("Tidak Lolos");
} |
28049b9447f4cc5d81cde31d8ac8aa1c9a090bf4 | 8f02478629882b33f62a43755b89e46bc8372875 | /codeforces/597B.cpp | 0af965aa467b005b7510e7f540684e678163264a | [] | no_license | sgtrouge/ACMalgo | 78fc0ebaa2c92b56671d6f4c0aec009db2b54dea | 131ff2a3734c002b5abe1932cfbbf8c8f1301db7 | refs/heads/master | 2021-01-10T22:23:38.951478 | 2016-01-12T21:56:57 | 2016-01-12T21:56:57 | 25,562,559 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 439 | cpp | 597B.cpp | #include <iostream>
#include <algorithm>
#include <set>
using namespace std;
int main() {
int n;
int res = 0;
set<pair<int, int>> pairset;
pairset.clear();
cin >> n;
for (int i = 0; i < n; i++) {
int a,b;
cin >> a >> b;
pairset.insert(make_pair(b,a));
}
int minend = 0;
for (auto it = pairset.begin(); it ... |
1a9ab8ce873429dd1db173dbeb4ebbd932901f4e | b3d49f610f0ce88bda70cd82db289e15f04bffe1 | /agent/src/Desktop/rfb_win32/Win32Util.h | 42982a3dc97653d4d155df3f8915a95c6e1db8c9 | [] | no_license | bellmit/jigsaw-cms | 1c394dbe31eb79de5e27e7c023a15088b124d8f0 | e303222d4558432dea4c64e8be5be24a769c6958 | refs/heads/master | 2022-01-20T06:00:47.745942 | 2017-10-12T15:53:05 | 2017-10-12T15:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,981 | h | Win32Util.h | /* Copyright (C) 2002-2004 RealVNC Ltd. All Rights Reserved.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* ... |
0e8e855d96dbd0c0686af2452676bf95a44de8b1 | dc7c38f1f91ab45c3047caf66c736454c429bc61 | /Lib/Target/Satisfy.cpp | 33804c3f464c847cfbd665574d9dbe62bdf5d465 | [
"MIT"
] | permissive | RcCreeperTech/V3DLib | 83d76e2b252c3cc5143df4ea43aaf9c72642ad85 | 38eb8d55b8276de5cf703d8e13fb9b5f220c49f0 | refs/heads/main | 2023-07-17T18:21:20.855603 | 2021-08-21T05:02:22 | 2021-08-21T05:02:22 | 398,517,570 | 1 | 0 | NOASSERTION | 2021-08-21T09:28:05 | 2021-08-21T09:28:05 | null | UTF-8 | C++ | false | false | 5,557 | cpp | Satisfy.cpp | #include "Satisfy.h"
#include <assert.h>
#include <stdio.h>
#include "Support/Platform.h"
#include "Liveness/Liveness.h"
#include "Target/instr/Mnemonics.h"
#include "Liveness/UseDef.h"
namespace V3DLib {
namespace {
bool hasRegFileConflict(Instr const &instr) {
if (instr.tag == ALU && instr.ALU.srcA.is_reg() && in... |
aec6d347bd763e3bc4b81e1d6bb294c84c074b2d | 71846897aa9841c6d7d266e873fcd5d795534c14 | /strings/main.cpp | ec365f011c3ad4d0e70803fc6c7016ddc7f28ad6 | [] | no_license | dayarthvader/random_cpp_things | aef1a0afe71d6a3535aa783d4e371a631d7b2d90 | 2db4da4811a4103ff9688fc01c56d9ed082f347b | refs/heads/master | 2022-08-11T16:07:46.429533 | 2022-07-26T19:16:23 | 2022-07-26T19:16:23 | 233,158,796 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,524 | cpp | main.cpp | // Dayarthvader 2022
#include <iostream>
#include <utility>
#include <cstring>
#include "strings.h"
int main() {
// contstructor demonstration
random_cpp_things::MyString default_constructed;
random_cpp_things::MyString parameterised_constructed("Param constructed string");
random_cpp_things::MyString copy_co... |
277a98fd0c0bc55b20a804315425833524338a47 | 43c05bb8199e1c796dc2b4904e87365311b3aea0 | /.cpp/train/eight_queen.cpp | f9387738733a26b75f4ebd96266b9d8d08741cea | [] | no_license | hlw8895/vs_code_hbc | bea595290082009b0aacc767ed98bbcaa2eff46c | 8dbd8b3187aef20dff0772619ec3c898d58fa65a | refs/heads/master | 2022-11-27T15:58:18.279692 | 2020-08-04T13:34:17 | 2020-08-04T13:34:17 | 282,675,038 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 268 | cpp | eight_queen.cpp | #include<iostream>
using namespace std;
static constexpr int queen = 8;
int map[queen][queen];
bool check (int row,int col)
{
for (int i = 0; i < 8;i++)
{
if(map[i][col])
{
return false;
}
}
for()
}
int main ()
{
}
|
640f0ca490496d39168f169a3f42df4a98776061 | a77f90326990f727e8a55c864337036ca15cf24f | /vector2D.h | c21c38ce80d593d075c73c604b5d8d06c1ee2942 | [] | no_license | bvillasen/billar | 766abb21b011f3f76e8055136c3f72cbda5a99c8 | ed969605cb811442c85be2b55f27d790e67faa98 | refs/heads/master | 2021-01-15T12:19:07.218227 | 2014-05-19T05:14:43 | 2014-05-19T05:14:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,025 | h | vector2D.h | #include <iostream>
#include <math.h>
using namespace std;
class Vector2D{
public:
cudaP x;
cudaP y;
// Constructor
__host__ __device__ Vector2D( cudaP x0=0.f, cudaP y0=0.f ) : x(x0), y(y0) {}
// Destructor
// __host__ __device__ ~Vector2D(){ delete[] &x; delete[] &y; }
__host__ __device__ cudaP n... |
648f8a4da5174f617365643edec9e3ff539fbdea | c9cf0586ace11aa32fa67606d237a130a06364ee | /circular-cylinder-10-1/OldData/16.485/p | 11db97567199141e0fb9dc1d5650326a05c9e784 | [] | no_license | jezvonek/CFD-Final-Project | c74cfa21f22545c27d97d85cf30eb6dc8c824dc1 | 7c9a7fb032d74f20888effa0a0b75b212bf899f4 | refs/heads/master | 2022-07-05T14:43:52.967657 | 2020-05-14T03:40:56 | 2020-05-14T03:40:56 | 262,370,756 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 26,129 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6.0
\\/ M anipulation |
\*-----... | |
906cc11352f47b50e69a02f044152a50d5d547ba | 49f15e237696d1c166c727fad9c8923d33497494 | /cp-3/data structure /with built library/1d array/11496-musicalLoop.cpp | 60432ec49121ec420665e2a0b6c09c63355577eb | [] | no_license | gauravkr123/Codes | 280284a3c7cdab2454a8da267c0622b40707e32b | c0295cfbad7794a25c1d4cf85ef8d4d13da8f2c6 | refs/heads/master | 2020-03-22T17:29:24.819064 | 2017-12-14T17:59:33 | 2017-12-14T17:59:33 | 140,398,111 | 2 | 0 | null | 2018-07-10T08:01:38 | 2018-07-10T08:01:38 | null | UTF-8 | C++ | false | false | 513 | cpp | 11496-musicalLoop.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
//ios_base::sync_with_stdio(false);
//cin.tie(NULL);
int n;
while(scanf("%d",&n),n)
{
int counter=0;
int a[n+1];
for(int i=0;i<n;i++)
{
cin>>a[i];
}
a[n]=a[0];
//a[n+1]=a[2];... |
f91ba250c04094cb597483bc7b481db11b904d6e | ab3f6639aba74021b48019a674cb7dc8da21e115 | /EFI/CLOVER/kexts/10.13/VoodooElan.kext/ELANTouchpadDriver.cpp | 12cf36cdf32412007f4aa8fdb3dae162f67e3b4f | [] | no_license | Fisummer/gl62m_nv | 840c0e6454f6a65434c4fa5a379243c8f428921c | b42ca28ed7897a4486d1529c0b1d2f2a9dfedb24 | refs/heads/master | 2023-07-07T12:02:35.202170 | 2021-08-11T04:47:02 | 2021-08-11T04:47:02 | 394,860,318 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,137 | cpp | ELANTouchpadDriver.cpp | // SPDX-License-Identifier: GPL-2.0-only
/*
* ELANTouchpadDriver.cpp
* Elan I2C/SMBus Touchpad driver port for macOS X
*
* Copyright (c) 2019 Leonard Kleinhans <leo-labs>
*
* Based on linux driver:
********************************************************************************
*
* Elan I2C/SMBus Touchpad driv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.