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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a0cdce3d798894adf81881125fcef92751a90a46 | b46f65355d9a79e8d7ea7bd473a7d559ee601a1b | /src/curses/menu_horizontal.hpp | 670196d4dfc07278f2015d2eb0044ee3678fab41 | [] | no_license | ekuiter/bsdl | 8c50eba05f43a789fc58c2e92aa3cd0a6d62d52b | 1f9d9cf5f1f55dab3480023456e244001a6a9eae | refs/heads/master | 2020-04-05T15:16:29.337225 | 2018-10-16T19:40:46 | 2018-10-16T19:40:46 | 68,543,822 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,966 | hpp | menu_horizontal.hpp | #pragma once
#include "menu_base.hpp"
#include "window_plain.hpp"
#include "window_sub.hpp"
#include "platform.hpp"
#include <vector>
#include <unordered_map>
#include <memory>
using namespace std;
namespace curses {
namespace menu {
template <typename T>
class horizontal : public base<T> {
... |
68af46fe1af2e74dda91f8ef22d480cded54abe4 | b81f164d4038e610abfd60a3bd660d5c2ad7dda1 | /PerfectJazz/services/sound_Queue.h | 3adc5e7f30017df21e57449fc6328843b299d862 | [] | no_license | MorbidCuriosity84/PerfectJazz | 141a99c14d42d17972d67b5caf68433f6bd1b0b6 | 1145e43cc3354a72ba2fb7d4282aa243ecc8c079 | refs/heads/main | 2023-04-12T05:33:03.121711 | 2021-05-05T13:03:30 | 2021-05-05T13:03:30 | 353,403,708 | 1 | 0 | null | 2021-05-05T15:52:25 | 2021-03-31T15:28:15 | C++ | UTF-8 | C++ | false | false | 479 | h | sound_Queue.h | #pragma once
#include <queue>
#include <SFML/Audio.hpp>
#include "../game.h"
using namespace std;
using namespace sf;
//Holds a static array of ints that represents the current buffer being used
class SoundQueue
{
protected:
static int counts[32]; //keeps a pointer to the next available sound
public:
//Default con... |
4bd7f6e18563ed5a26b374679fce7b369da5c278 | 768371d8c4db95ad629da1bf2023b89f05f53953 | /applayerprotocols/httpexamples/nwsswsptrhnd/CNwssWspTransportHandler.cpp | 509926302da70331da16e3a152e066225c69a372 | [] | no_license | SymbianSource/oss.FCL.sf.mw.netprotocols | 5eae982437f5b25dcf3d7a21aae917f5c7c0a5bd | cc43765893d358f20903b5635a2a125134a2ede8 | refs/heads/master | 2021-01-13T08:23:16.214294 | 2010-10-03T21:53:08 | 2010-10-03T21:53:08 | 71,899,655 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,157 | cpp | CNwssWspTransportHandler.cpp | // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/e... |
8d5497f529cb75f98d6feab658804821d9534910 | cc75ad98e33a2722a022067dab29a0a9696effcf | /Classes/Networking/Command.h | 791fda14919298866fa94dc88aeb197fcc1402c4 | [] | no_license | smj10j/LightSwarm | 70056a6631d806d5023a420a522608abba9fe9d8 | a40f990d92199528ea19798c201920dff9c654d3 | refs/heads/master | 2016-09-05T11:25:38.128554 | 2014-01-19T16:34:36 | 2014-01-19T16:34:36 | 6,862,613 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | h | Command.h | //
// Command.h
// LightSwarm
//
// Created by Stephen Johnson on 12/6/12.
//
//
#ifndef __LightSwarm__Command__
#define __LightSwarm__Command__
#include "Common.h"
#include "Spark.h"
#include "Orb.h"
#include "GameScene.h"
#include <set>
#include <list>
USING_NS_CC;
using namespace std;
enum COMMAND_TYPE {
MOV... |
1e37ba6f90ad10c98f7a8f38664b8a29083eec58 | b34cd2fb7a9e361fe1deb0170e3df323ec33259f | /Nexus/Source/DefinitionsTests/RegionTester.cpp | 578e53ee97ed514a48febada7e77aa522b8e256e | [] | no_license | lineCode/nexus | c4479879dba1fbd11573c129f15b7b3c2156463e | aea7e2cbcf96a113f58eed947138b76e09b8fccb | refs/heads/master | 2022-04-19T01:10:22.139995 | 2020-04-16T23:07:23 | 2020-04-16T23:07:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,370 | cpp | RegionTester.cpp | #include "Nexus/DefinitionsTests/RegionTester.hpp"
#include "Nexus/Definitions/DefaultCountryDatabase.hpp"
#include "Nexus/Definitions/DefaultMarketDatabase.hpp"
#include "Nexus/Definitions/Region.hpp"
using namespace Nexus;
using namespace Nexus::Tests;
using namespace std;
namespace {
void TestProperSubset(const ... |
4a20305f7f42eb96c5b1730df920edecd649ca00 | 63413883346217e542efd49c411dee9ff7fd32a0 | /Farthest Nodes in a Tree.cpp | cd238c48610941aa773cb1fbe38f197a02646eae | [] | no_license | ssangskriti/Random | 0592a7f3c56cda84d4a86ea2b48a12e6db6186bf | 47e0448ebe5385b076164a61323229135b90c8a1 | refs/heads/master | 2021-06-27T23:17:21.454898 | 2020-11-16T17:15:43 | 2020-11-16T17:15:43 | 188,286,093 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,637 | cpp | Farthest Nodes in a Tree.cpp | #include<bits/stdc++.h>
using namespace std;
vector<pair<long long int,long long int>>v[30000];
long long int visited[30000],weight[30000];
void bfs(long long int node)
{
queue<long long int> q;
q.push(node);
long long int i,fro;
memset(visited,0,sizeof(visited));
visited[node] = 1;
while(... |
925f845843dba04c93e8c8aa7e670057ebed4f86 | 4bf7d1afba08d81993060103a510b2e4a350a9ed | /Acid/src/Utilities/XmlReader.cpp | 6f433fd428d091f5e91554732ac22a22c9a04413 | [] | no_license | ChrisToumanian/Acid-Engine | 7b27d9d5b66c640db19343701843293f4ca1eab5 | 350548a02c2e58d9921070648be1e191cc5f11ee | refs/heads/master | 2021-05-05T09:42:01.513051 | 2018-01-17T22:21:16 | 2018-01-17T22:21:16 | 114,245,811 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 843 | cpp | XmlReader.cpp | #include "XmlReader.h"
XmlReader::XmlReader(string _filename)
{
filename = _filename;
stream.open(filename);
if (!stream.is_open())
{
readable = false;
}
else
{
readable = true;
}
}
string XmlReader::GetXML()
{
string xml = "";
if (readable)
{
string word;
stream >> word;
... |
9826c27d3cffe36c30fa87cf43ffcd07e7382582 | a31be33001e81982c5a5c7ba5c53489e3d77015b | /CPP/Datashit/09-10-2017_12-09-39/C__SamyeProstyeProgrammy/pr8.cpp | ceafeb8e1a8452b54f3e87b2cdf65e8826a1259f | [] | no_license | uvlad7/1_course | b713933c52f042a23cb9edf31f667a4de038a162 | ff81d57cbae7c195f4512f1fee7edf21c5bfa858 | refs/heads/master | 2023-05-13T11:50:31.479184 | 2021-05-30T18:43:36 | 2021-05-30T18:43:36 | 372,290,084 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 648 | cpp | pr8.cpp | //поиск простых чисел по уже найденым (по массиву простых чисел)
#include <iostream>
#include <math.h>
#include <conio.h>
using namespace std;
int main()
{
int n,i=0,k=3,temp=1;
int *a;
bool c=0;
cout<<"input maximum = ";
cin>>n;
a=new int [n];
a[0]=2;
while(k<=n)
{
while(i<temp&&a[i]<int(s... |
b9a8da344ec048fe187ac9189f9f36033f478f72 | 9aaef904b70f8f8e04a87cbd9f0eedf806632755 | /Week1/hw1.cpp | 278ffe62b32a430e395276d109531d52a4983082 | [] | no_license | dsansyzbayev/Algo-DataStr | b1b7ac54d276ba69338a40ea9b99a4617fee8f76 | bac173bb745767363fdd4781234614f609f3f745 | refs/heads/master | 2020-09-10T23:44:04.615995 | 2019-11-15T07:31:39 | 2019-11-15T07:31:39 | 221,868,854 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,178 | cpp | hw1.cpp | #include <iostream>
#include <queue>
using namespace std;
template<typename T>
class Node{
public:
T data;
Node *next;
Node *prev;
Node(int data){
this ->data = data;
next = NULL;
prev = NULL;
}
};
template<typename T>
class Queue{
public:
Node<T> *head, *tail;
int sz;
Qu... |
d4ff559c1db413920e1689abe1b0e04cc6622515 | cd790fb7e8ef78b1989531f5864f67649dcb1557 | /uva10474(WhereistheMarble).cpp | d8fea65a5131a8ca576ac1be7ec6c91460b78243 | [] | no_license | FatimaTasnim/uva-solution | 59387c26816c271b17e9604255934b7c8c7faf11 | c7d75f0a5384229b243504dfbef4686052b9dea8 | refs/heads/master | 2020-03-27T22:23:18.611201 | 2018-10-23T05:53:46 | 2018-10-23T05:53:46 | 147,226,519 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,233 | cpp | uva10474(WhereistheMarble).cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int n,m,q,raju,num,i,j,f,l,mid,ans,c=1,flag;
vector<int>meena;
freopen("test.txt","r",stdin);
freopen("test1.txt","w",stdout);
while(1){
//ans=-1;
scanf("%d%d",&n,&q);
if(n==q && q==0)break;
printf("CASE# %d:\n",c++);
for(j=0;j<n;j++){
... |
b85ccf0febef17786089b5876bbd086ce200c4a3 | d184b9046d8a6816c6d2f23ce1bb730d9f1daa8b | /cpp_11_examples/ranged_based_for_loop.h | d8fc968ca1f325532d00afeeca1db7da8a926cc3 | [] | no_license | pabitrapadhy/cpp_11_examples | 0fbbed11f23bf3e72eee136548674a3ba877c4cf | 824966eff3b957b0ab4222103d942dec7b678bfe | refs/heads/master | 2020-03-20T15:14:29.670901 | 2018-08-05T16:13:15 | 2018-08-05T16:13:15 | 137,507,784 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,031 | h | ranged_based_for_loop.h | //
// ranged_based_for_loop.h
// cpp_11_examples
//
// Created by Padhy, Pabitra on 17/06/18.
// Copyright © 2018 Padhy, Pabitra. All rights reserved.
//
// https://www.geeksforgeeks.org/range-based-loop-c/
#ifndef ranged_based_for_loop_h
#define ranged_based_for_loop_h
#include <iostream>
#include <vector>
#inc... |
e2b5f28b505caa52714f50956468defa06174f03 | 7fbdba315508dd46e99cb2f0438df7eb91cc7846 | /lowercase/Source.cpp | b86b88a6c096c2bfcc1c5a8efdd6659ecf75935f | [] | no_license | jayrosen-design/Lowercase | ac219f58a64d117441186885eb5154804fdf2ce7 | e4314ba841098010ab60b7a2ef648f51cdee36e2 | refs/heads/master | 2018-01-09T18:54:05.479927 | 2015-12-16T20:10:56 | 2015-12-16T20:10:56 | 48,132,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,498 | cpp | Source.cpp | //Jay Rosen
//This program opens, reads, and writes to a file the lowercase string of original contents
#include <iostream>
#include <fstream>
#include <string>
#include <cctype>
using namespace std;
// Grammar class declaration
class Grammar
{
private:
static const int SIZE = 500;
char fileName1[SIZ... |
25f3183fe00ee3137aa4d733345cd0c9894b3277 | 04afcedce033eb35c2bbccf72fbf382fba348f43 | /CECS 275_ Lab 6/CECS 275 Lab 6/main.cpp | d348e897058f9ee0f915f695008223cdbbc78223 | [] | no_license | trevor1232/Data-Structures | a53c8c46dd57d57554e630e2a69fb0bab10a7567 | 409454cefdb037a551a43c15d881cf4daee5d3f5 | refs/heads/master | 2022-11-30T21:51:25.205098 | 2020-08-05T03:06:07 | 2020-08-05T03:06:07 | 285,160,132 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,091 | cpp | main.cpp | /*
Name: Trevor Scott
Date: 03/19/2020
Program: Project1: Yaht-Z Game
Description: This game was made by using classes, functions, and an array of dice. This game's purpose was to find the following:
matching dies, a series of dies, and three of a kind dice. I separated the respected classes into .h he... |
22893e42cf971eed6f4a0a42db438c319ef151bf | 45b13ef1f5d2c9047af75d75f93c11479a7e63c5 | /json.cpp | c00e8f919266aa006d2383e5c3eedf390ec6b881 | [] | no_license | Irbis691/Labs | 2e8ab012c08d4ce31daa5477f73f60ea8d4ba134 | 4280e8b06ef142cdcd8d9fe9d950e67ee7b53790 | refs/heads/master | 2022-12-21T15:06:34.153531 | 2020-09-17T14:34:35 | 2020-09-17T14:34:35 | 295,177,696 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,808 | cpp | json.cpp | #include <iostream>
#include "json.h"
using namespace std;
namespace Json {
Document::Document(Node root) : root(move(root)) {
}
const Node& Document::GetRoot() const {
return root;
}
Node LoadNode(istream& input);
Node LoadArray(istream& input) {
vector<Node> result;
for(char c; input >> c && c != '... |
befc2f01fca42816f64022cb7f3a933ecd2320eb | 64491dfc2e3a06a6d58086f75e5afee23f3d3e3b | /qml/test/Controller_c.cpp | eb0c14c3d1fb9fd483759e8ce6d9a8ed9e51d5f1 | [] | no_license | gasche/lablqt | 9f59e01ee1a0c6cacc31fb06e0dd58e24aab0337 | 0f2c8f8f5c1cdc96d4d7a199ada1adf1592188b6 | refs/heads/master | 2021-01-22T17:15:02.404661 | 2013-12-13T15:06:39 | 2013-12-13T15:06:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,521 | cpp | Controller_c.cpp | #include "Controller_c.h"
Controller::Controller() : _camlobjHolder(0) {
}
//onItemSelected: int->int->unit
void Controller::onItemSelected(int x0,int x1) {
CAMLparam0();
CAMLlocal3(_ans,_meth,_x0);
CAMLlocalN(_args,3);
CAMLlocal2(_cca0,_cca1);
value _camlobj = this->_camlobjHolder;
Q_ASSERT(Is_block(_caml... |
629528ea6da0407af9287224f39c2acaab0d7e2b | bbb0236a4102004e05cd672be131b1bed3f9843f | /XPropertiesWnd/XPropertiesWndPpg.h | dcababe6dd43f057aaa0a944544a326f189b5a58 | [] | no_license | ExaLake/way-back | c52ea7fba0687ad42f1acf3f59405a68cfe0427b | af5aa9e016fadcdb96fe2dc9a2c1a18927b89a2d | refs/heads/master | 2020-12-03T22:17:39.193401 | 2020-01-03T03:18:51 | 2020-01-03T03:18:51 | 231,503,200 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,302 | h | XPropertiesWndPpg.h | /************************************
REVISION LOG ENTRY
Revision By: Mihai Filimon
Revised on 10/13/98 2:28:22 PM
Comments: XPropertiesWndPpg.h : Declaration of the CXPropertiesWndPropPage property page class.
************************************/
//{{AFX_INCLUDES()
#include "XFloorPropertiesWndDesig... |
7ab1c51d006b4faed5272109cf56647622357967 | c8fa202c120e1e4ab9740d4b9355d646c8b32144 | /RaptorStackedVertDrawable.cpp | de83fe3730f00527598dd9c2c5e56b73b67d9bed | [] | no_license | Roman-Port/EagleSDR | 2ebe31a1c0f2ae654e0ada375a7bf2bfc0e0c6bb | 8568272b3686b2b6013226dc7e1867a6df1ec0e6 | refs/heads/master | 2023-07-10T14:50:24.621738 | 2021-08-08T22:06:17 | 2021-08-08T22:06:17 | 394,103,551 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 940 | cpp | RaptorStackedVertDrawable.cpp | #include "RaptorStackedVertDrawable.h"
#include <algorithm>
int RaptorStackedVertDrawable::get_requested_height()
{
return RAPTOR_SCREEN_HEIGHT;
}
int RaptorStackedVertDrawable::get_requested_width()
{
int size = 0;
RaptorDrawable* cursor = 0;
while (enumerate_children(&cursor)) {
size = std::max(size, cursor->... |
91d756d907d67bff358444527b2c19e0b0f88d9f | 32cf32acfae2392a48e5db6c8b6726e51e501559 | /src/setup_test.cpp | 9a4f2747b8e008e49434b6364bcb94da7c7a8c07 | [] | no_license | ToraNova/xsedar | 6e5e00a2eff35005ce98514004219da861b24fe4 | 3b2b712cc6398e5c0acff110fa80114436d885e5 | refs/heads/master | 2020-05-07T14:29:25.949597 | 2019-04-16T06:59:37 | 2019-04-16T06:59:37 | 180,596,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,733 | cpp | setup_test.cpp | /*
SETUP TEST - test functionality
Toranova 2019
*/
#include "xsedar.h"
#include <cstdlib>
#include <iostream>
//pivotal
#include "justGarble.h"
#define circuit_filename "justine_aes.gc"
using namespace std;
int main(int argc, char *argv[]){
cout << "Setup Test...\n" ;
if(argc<2){
cout << "Please ... |
64b708c13cd30338bbfbe2956c7f6f4cca6aae47 | f4cbb24f2971d65ce3a820773007acfce58082d9 | /Lab1/StartScene.h | cb537c152fd2121188b1bf0f080e15beb8a41dfd | [] | no_license | FotisSpinos/Games-Programming-2---Fotios-Spinos-Final | 86a2f3e459a17e61a0271e215555aeee4b88e337 | c8075d20338cfb49cfc5b2da96f8baa159134ab8 | refs/heads/master | 2021-10-09T04:21:49.636303 | 2018-12-21T01:30:35 | 2018-12-21T01:30:35 | 162,508,816 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 193 | h | StartScene.h | #pragma once
#include "Scene.h"
class StartScene : public Scene
{
public:
StartScene(); //Constructor
~StartScene(); //Destructor
// Overites the parent method editor
void editor();
};
|
06f1eb80f914340295527e4f8fcec1b59750dcea | 603347abb45530f937403d14a4800216c94ac547 | /Source Files/Spaceship.cpp | 040f9586627955ce8a95a1f26f706a9ef9245dbd | [] | no_license | Rafels/Space-Invaders-Game | d25baf4a59a98463e70690d104687485ff7871c9 | 6fd1bd02872765d4c831eb0895760c9169061c65 | refs/heads/master | 2021-01-20T12:28:09.321398 | 2017-05-05T11:20:19 | 2017-05-05T11:20:19 | 90,366,834 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 845 | cpp | Spaceship.cpp | #include "Asteroid.h"
#include "Bullet.h"
#include "Spaceship.h"
#include "Aliens.h"
Spaceship::Spaceship(sf::Vector2f pos, sf::Vector2f spd, std::string path):
Entity(pos,spd,path)
{
getSprite().setScale(0.075, 0.075);
}
void Spaceship::setLives(int liv)
{
lives = liv;
}
int Spaceship::getLives()
{... |
7dd32ccbd03c3bb960ad2c474152ab0831d5c58c | 510acf5ff609781ae8f18366a0263f291247a305 | /1385B_restore_the_permutation_by_merger.cpp | 756307be2a5b50a798b6d807d0c9c28efb03a2e9 | [] | no_license | damianomiotek/Codeforces | 0d4f39c582fde0b850a21e326bb6885e26dfdcc5 | 655bd295733c1941f46c46e5dd1a8691cef0a0aa | refs/heads/master | 2023-02-01T04:17:32.884211 | 2020-12-17T20:48:17 | 2020-12-17T20:48:17 | 309,803,042 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 620 | cpp | 1385B_restore_the_permutation_by_merger.cpp | #include <iostream>
#include <vector>
#include <set>
using namespace std;
int main()
{
int t, n, number;
set<int> numbers;
vector<int> output;
cin >> t;
for(int i = 0; i < t; i++)
{
cin >> n;
for(int j = 0; j < n * 2; j++)
{
cin >> number;
if(nu... |
c7611427d920d87897ec49819250ac80ea779166 | 959503e864228a10f6fe180d21339abba5e50bad | /main.cpp | f6d7dd2950051f75e3a88448a0d366409151101d | [] | no_license | wiekonek/dns-spoofer | bb32b99001d42bcb9f5b3644d590233417725f2b | 4d2c9c84a62f71bfdb87a796170b23281784fee6 | refs/heads/master | 2021-07-09T13:22:02.477877 | 2017-10-06T13:27:39 | 2017-10-06T13:27:39 | 103,516,006 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,624 | cpp | main.cpp | #include <iostream>
#include <algorithm>
#include "ArpSpoofer.h"
#include "DnsSpoofer.h"
#include "GatewayInfo.h"
using std::for_each;
using std::string;
//char const *interface = "wlo1";
char const *interface = "wlan0";
uint8_t *getIpFromString(char *string);
vector<string> get_domain_name(char *query_payload);
i... |
7a840be3e419e4dafb8e01e66dcdd7f867c0586f | d4c720f93631097ee048940d669e0859e85eabcf | /ash/style/color_palette_controller.cc | 52fa7c39da7c227ab986ff284381a16c99eadcdb | [
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 3b920d87437d9293f654de1f22d3ea341e7a8b55 | refs/heads/webnn | 2023-03-21T03:20:15.377034 | 2023-01-25T21:19:44 | 2023-01-25T21:19:44 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | C++ | false | false | 3,529 | cc | color_palette_controller.cc | // Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/style/color_palette_controller.h"
#include <memory>
#include "base/logging.h"
#include "base/observer_list.h"
#include "base/task/sequenced_task_runner.h"
#incl... |
3ce5ff1989b98d1fe9f5f1fc24891e3f19d2c86a | 63247e1e7c5800ef36207c505f0b8cb7a8615061 | /include/myLib.hpp | 49b8a9069e7508585d3c73c66b3d56927734f0b9 | [] | no_license | metroff/VU_BC_Hash | c27fb82a1f3c310d9f74039e6f370cd262479685 | bb6e14f48392ccdaac814c87ae81030f8b6a05a9 | refs/heads/main | 2023-08-12T23:21:38.802321 | 2021-10-07T17:14:04 | 2021-10-07T17:14:04 | 411,592,481 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 109 | hpp | myLib.hpp | #pragma once
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <sstream> |
fcc85acc1bcb24bfc320e22b856354ce5e8645fa | 097fa369095ab2b98aedf49ca2e54f1cd45db7ae | /Group Work/DataConverter.h | b4d5cd1c775c5ca43a9c1c76152b6bca846f3930 | [] | no_license | SubinChitrakar/BudgetManagement | 6ad6317312e67b9f5acb646cef7636d163792ed2 | c92d673bee5d4ad0e48dcb4e8834fdee2be068f7 | refs/heads/master | 2020-08-31T03:49:39.173455 | 2019-11-18T09:40:43 | 2019-11-18T09:40:43 | 214,163,247 | 0 | 0 | null | 2019-10-30T15:58:23 | 2019-10-10T11:19:58 | C++ | UTF-8 | C++ | false | false | 994 | h | DataConverter.h | #pragma once
#include <string>
#include <iostream>
#include "json.hpp"
#include "EncryptDecrypt.h"
#include "Category.h"
#include "User.h"
#include "Category.h"
#include "NormalTransaction.h"
#include "RecurringTransaction.h"
using nlohmann::json;
using namespace std;
class DataConverter
{
private:
json& j;
Encry... |
cb4c10a91793972f780aeee97b0d18707d75121b | 4b719e84f26dcd3fb47da5d811c758dd3eb68a52 | /part2/transpose.cpp | 80b2eba62d2f2ff6f935b6f1ddda51473474215f | [] | no_license | Prianick/cppStudy | 679f41a31905179d6d488f09d63f85f01383556c | 066c27d63dc3ed9d3df6b9eaf6aeeae440b6fecc | refs/heads/master | 2021-01-26T00:49:02.703116 | 2020-07-12T09:00:22 | 2020-07-12T09:00:22 | 243,247,437 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,378 | cpp | transpose.cpp | #include <iostream>
/*
Конспект.
- m[i] <=> *(m + i) - т.е. мы берем указатель m, прибавляем к нему целое число i, далее * разименовывание т.е. берем значение.
- В многомерном массиве есть массив с указателями на строки. То есть есть указатель на указатель строки int **
- * - это оператор разименования ссылки и п... |
e89317fed04acaacfef63463e010399aba8c5109 | ee507b3010c903ec716315f7df2ba4ef5ae5921a | /util/AI_PathFind.h | 1f3d922bc6bca978ec8846e9122696cee13441bc | [] | no_license | sopyer/Shadowgrounds | ac6b281cd95d762096dfc04ddae70d3f3e63be05 | 691cb389c7d8121eda85ea73409bbbb74bfdb103 | refs/heads/master | 2020-03-29T18:25:48.103837 | 2017-06-24T17:08:50 | 2017-06-24T17:08:50 | 9,700,603 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,270 | h | AI_PathFind.h | #ifndef INCLUDED_AI_PATHFIND_H
#define INCLUDED_AI_PATHFIND_H
#ifdef _MSC_VER
#pragma warning(disable: 4786) // Debug info truncate
#pragma warning(disable: 4514) // Unreferenced inline function
#endif
#ifndef INCLUDED_VECTOR
#define INCLUDED_VECTOR
#include <vector>
#endif
#include <DatatypeDef.h>
class IStorm3D_M... |
d267c22c0a43c1b73f5de1d67ddd0705470d1e82 | 88e352a391faa3474cf9066c2e2b6185b47fe19e | /SkyBox.cpp | 343ebd421b80670430c25c1d23a7cb4118abf22b | [] | no_license | ChitoseRuri/Deja_vu | 95422dcf85b8a6e17ce34785e93c217a9d903dd7 | bcc3ed8258122b82bb3c19c75ad01fc9077c22dc | refs/heads/master | 2020-12-14T22:17:45.368779 | 2020-02-21T14:34:54 | 2020-02-21T14:34:54 | 234,888,765 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,872 | cpp | SkyBox.cpp | #include "SkyBox.h"
SkyBox::SkyBox()
{
}
SkyBox::~SkyBox()
{
}
void SkyBox::init(ID3D11Device* pDevice, std::wstring fileName)
{
if (fileName.substr(fileName.size() - 3) == L"DDS")
{
assert(true);
}
else
{
loadImageTexture(pDevice, std::move(fileName));
}
}
void SkyBox::draw(ID3D11DeviceContext* pContext,... |
34835ba917c45aeb7a6d43b3298029b4f74e288e | 6c8dafe293c24ec79f2f1b2bcf8eb52015bdb36f | /src/game_state.hpp | b2cf8ff9d4f352e3eda339a1a11284db76563142 | [] | no_license | aalin/game2004 | a483aefe33e3ce327b1c3d55a070cb09e92c00e9 | de5e2da8ef1e5446e73672aa2b1a2fca9671b92b | refs/heads/master | 2022-07-13T16:48:24.218786 | 2020-05-17T12:02:25 | 2020-05-17T12:02:25 | 263,699,489 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 422 | hpp | game_state.hpp | #ifndef GAME_STATE_HPP
#define GAME_STATE_HPP
#include "engine.hpp"
#include "keyboard.hpp"
class GameState {
public:
GameState(Engine &game) : _game(game) { }
virtual ~GameState() { }
virtual void setup() = 0;
virtual void pause() = 0;
virtual void update(double s, const Keyboard &) = 0;
virtual void d... |
01add35009bb7a3e020b388ef19fe0446afff315 | 5b244e82d9a1c585905db8e8f25cc44bd0ebac8a | /algorithms/sorting/insertionsort/insertsort.cpp | 9520f1560d2a4f5e4a5a853e1db599f076474972 | [] | no_license | thinkphp/computer-science-in-c | fe58f92ffacbe1de9523c1bfa21473f70fe99362 | 685107b9671c0cc519dc35f46f3a182dbdac572c | refs/heads/master | 2023-08-31T01:36:51.368399 | 2023-08-30T06:08:07 | 2023-08-30T06:08:07 | 23,139,753 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,118 | cpp | insertsort.cpp | #include <iostream>
#include <fstream>
#define FIN "algsort.in"
#define FOUT "algsort.out"
#define MAXN 500005
using namespace std;
//prototypes
void read();
void display();
void insertion();
void write();
//input
ifstream fin(FIN);
//output
ofstream fout(FOUT);
//declare an array of integers
//global vector
int v... |
574649fdd9e130e5ff9150832cad61ccbde13016 | df1937f102d84bd7c9a761f2b68d34e8222c6592 | /Scanner.h | ed7a6726b136d96f8906d996e80950ea06d61c47 | [] | no_license | Ardivaba/OpenMemes | 33e78722adc3ea69b991580b190a9ece78427dbb | 0ab720dd0643e48fc735f3ecce431815c344bac1 | refs/heads/master | 2021-01-12T03:13:21.109261 | 2017-01-06T06:25:18 | 2017-01-06T06:25:18 | 78,180,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | h | Scanner.h | #pragma once
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <vector>
#include <list>
#include <Windows.h>
using namespace cv;
class Scanner
{
public:
static Mat currentFrame;
static std::list<Point>... |
de517f24c7bd61bf276b214b03532ba0009a8010 | e15f1ed0b421726b4c19f6cc933ecca6225caf3f | /src/dataio.h | 736e3bd9a323fef3f829c1f3a5d621503faed67c | [
"BSD-3-Clause"
] | permissive | glaivesoft/biomedicaldataio | 52782b88aae46354060c5dace12470ec90b296a7 | 73e5fd6379e45ac06efdab7728edba645852d8ff | refs/heads/master | 2021-01-13T04:05:08.776190 | 2017-11-09T23:24:38 | 2017-11-09T23:24:38 | 77,942,404 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,681 | h | dataio.h | // dataio.h
// read/write .tif, .nii, .raw, ...
// developed by Yang Yu (gnayuy@gmail.com)
#ifndef __DATAIO_H__
#define __DATAIO_H__
#include "biomedicaldataio.h"
//
extern "C" {
#include "tiff.h"
#include "tiffio.h"
#include "nifti1_io.h"
#include "znzlib.h"
};
#include "klb_imageIO.h"
//
template <class Tdata, ... |
046527a75ef001c99059dc01ea32321c719804db | 7b4739c25e9d0f4f14f534e93e51124edcdf5737 | /MsgManager.cpp | fe147cea1fc6f587ac32e1b4efbc27d16d58810c | [] | no_license | 1024210879/TimeRoulette | 3eaf4981002b2d913ca529fd9fe02ba08dc90d52 | 1f773e9d3ce099a7471b7d67f3728f396f27e7bd | refs/heads/main | 2023-05-22T07:20:15.644997 | 2021-06-07T12:22:21 | 2021-06-07T12:30:38 | 374,073,336 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,707 | cpp | MsgManager.cpp | #include "MsgManager.h"
MsgManager* MsgManager::msgManager = NULL;
MsgManager::MsgManager(QObject *parent) :
QObject(parent)
{
}
MsgManager *MsgManager::instance()
{
if ( msgManager == NULL)
{
QMutex mt;
mt.lock();
if ( msgManager == NULL )
{
msgManager = new M... |
eb7972e2000533a638ee8d0bc169e1ed65fe09ae | dc80d726a341d93f2f08d703a259637e8652f7a7 | /Minimal/Node.h | 8cd2b2b8d34d279caba606a4de0a8ad1b9bf46a6 | [] | no_license | tommyang/CSE190Proj1VR | 5ae11bc6fdec40d666ea66c0c7a103fa368aa3d4 | cb9a1fb1ce0fc2c5cdec1934f5a70e04d48a0713 | refs/heads/master | 2021-03-16T05:36:52.468482 | 2017-04-21T12:08:12 | 2017-04-21T12:08:12 | 88,941,321 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 668 | h | Node.h | //
// Node.h
// CSE167Proj3
//
// Created by Tommy Yang on 11/2/16.
// Copyright © 2016 tOMG. All rights reserved.
//
#ifndef Node_h
#define Node_h
#define GLFW_INCLUDE_GLEXT
#ifdef __APPLE__
#define GLFW_INCLUDE_GLCOREARB
#else
#include <GL/glew.h>
#endif
#include <GLFW/glfw3.h>
// Use of degrees is deprecated. ... |
2129edb5814edd5c4c5f18e2afb5882be4a177c1 | a8bc4bdef4ebc4ebfc2ae7267486e88bb3f457ab | /GBuffer.cpp | b5870620ce6c12be8459499a504dafde5366985b | [] | no_license | KennySq/Narco | 4bd41662c94f3dd39111d01462c1be0bc34c188e | ee455207c6295cc26a468a7fdb72c50fad7b62d0 | refs/heads/master | 2023-08-14T10:57:18.755015 | 2021-09-25T05:12:54 | 2021-09-25T05:12:54 | 407,928,569 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 786 | cpp | GBuffer.cpp | #include"inc/GBuffer.h"
namespace NARCO
{
GBuffer::GBuffer(ID3D11Device* device, unsigned int width, unsigned int height)
: mBufferCount(ARRAYSIZE(GBufferFormats)), mDevice(device), mWidth(width), mHeight(height),
mRenderTargets(8), mShaderResources(128)
{
for (unsigned int i = 0; i < mBufferCount; i++)
... |
942a38b1926c7aade81bb3bdc1e9ed733699128a | 5e4000688f3c3910e99124a08f974ef4dce31829 | /Sail/src/Sail/graphics/shader/Shader.h | 25973da30c2607de0cdd464f56ee7062cfe657de | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Skratzy/Sail | e82f6f2c192e4071034b0b9b8ae7b5210c256919 | 750665557de0547fcbc83b99b3094190c09147bb | refs/heads/master | 2020-06-04T23:46:15.261874 | 2019-09-11T08:07:51 | 2019-09-11T08:07:51 | 192,237,848 | 0 | 0 | MIT | 2019-08-28T09:33:49 | 2019-06-16T21:19:02 | C++ | UTF-8 | C++ | false | false | 505 | h | Shader.h | #pragma once
#include "Sail/api/shader/ShaderPipeline.h"
#include <memory>
#include <string>
class Shader {
public:
Shader(const std::string& filename);
virtual ~Shader();
ShaderPipeline* getPipeline();
virtual void bind();
virtual void setClippingPlane(const glm::vec4& clippingPlane) {};
protected:
void f... |
a7421536e0ee863a89b799a2ccd19d948473162d | b1e9874c9665ba3ab271dde111e4a8b2591537eb | /src/smldata.ddl.cpp | 9632781cb744857190ddbd5fd53ef2901c2eeabb | [] | no_license | lcls-psana/psddl_pds2psana | 528640e07b8004e0fbce89a101da48f5c25389d8 | 314c012c6115da22dd7be54662d2a0db5576c7cb | refs/heads/master | 2021-12-13T18:09:51.277458 | 2021-12-07T10:31:10 | 2021-12-07T10:31:10 | 82,350,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,764 | cpp | smldata.ddl.cpp |
// *** Do not edit this file, it is auto-generated ***
#include "psddl_pds2psana/smldata.ddl.h"
#include <cstddef>
#include <stdexcept>
namespace psddl_pds2psana {
namespace SmlData {
ConfigV1::ConfigV1(const boost::shared_ptr<const XtcType>& xtcPtr)
: Psana::SmlData::ConfigV1()
, m_xtcObj(xtcPtr)
{
}
ConfigV1... |
f733fedece9c803e60641fb1f9de948ff63309ff | eb35b7d701ab61a394986c84ae12a5092ff34557 | /include/AVL.hpp | ebc6f0ed57ed93e388467c76a3c43eee28074e81 | [] | no_license | yigittin/Datastructers-Project | bd59ea57aee0c355037c65f133a1d172617cdd25 | 5eaf12b9c97d7af6fac5b1496ec66ec0379f80c4 | refs/heads/master | 2023-07-16T09:33:40.675524 | 2021-08-30T21:15:16 | 2021-08-30T21:15:16 | 401,487,869 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,901 | hpp | AVL.hpp | /**
* @file AVL.hpp
* @description AVL Ağacının header dosyası
* @course 1. A GRUBU
* @assignment 2. ÖDEV
* @date 22.08.2021
* @author İbrahim Yiğit Tın ibrahim.tin@ogr.sakarya.edu.tr
*/
#ifndef AVL_HPP
#define AVL_HPP
#include <iostream>
#include <cmath>
#include "Stack.hpp"
#include "StackString.hpp"
... |
262cb485ccf028a3108db02f764cb4b25f4a5137 | a475e2bbf2615f657fbce21d1c74170d35621f49 | /system_Programming_myshell/system_Programming_myshell/소스.cpp | e71637361abf915d8793f0d8261eda4c54216683 | [] | no_license | leedaegun/school_Project | 559a843ba337d9d41e88c26fee9b400cd23b6bae | 7d0c70a9ec5a9a725ef3b4f6db2cfa3dea00c8c5 | refs/heads/master | 2020-03-24T13:20:39.393785 | 2018-07-29T08:12:06 | 2018-07-29T08:12:06 | 142,742,040 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,338 | cpp | 소스.cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/wait.h>
#define MAX_LINE_LENGTH 1000
#define INPUT_REDIRECTION ">"
#define INPUT_REDIRECTION2 "2>"
#define OUTPUT_REDIRECTION "<"
#define PIPE "|"
#define... |
747fd1fb5306aca07e8bd6dc0d7999b190045451 | e4fa11cc5f6b76517e17acc6277d150ed89b8815 | /CommonClass/CodeMsg.cpp | 74e54eb2ac85c76d989d13abffcf4ee5c4125a67 | [] | no_license | yeadong/Fighting | 37512f9c0d407f8ac2599d6b876a45fe5a0225a2 | 1dde011d0e202db24b97b551ff11ba4a6212564d | refs/heads/master | 2021-04-27T19:16:19.767540 | 2016-03-03T04:01:59 | 2016-03-03T04:01:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,515 | cpp | CodeMsg.cpp | #include "CodeMsg.h"
CodeMsg G_CodeMsgMap[] =
{
DEFINE_PACK_CODE(code_unknown,"unknown"),
DEFINE_PACK_CODE(code_login,"login"),
DEFINE_PACK_CODE(code_login_ret_ok,"login ok"),
DEFINE_PACK_CODE(code_login_ret_failed,"login failed"),
DEFINE_PACK_CODE(code_leave,"leave"),
DEFINE_PACK_CODE(code_leave_ret,"leave retu... |
682bef0e7133eed6b9c9ddf03943da9a875ff8eb | 8469434575ef9752c6c82ced7b1f193ac1afa0d7 | /pit/mappings/.svn/text-base/DropParticles.h.svn-base | 77689a8319eb7b32c8a49b49fad3d45e479b909d | [] | no_license | POWER-Morzh/particles | d37c6f0fb27d1d1b7f624dad77c676a9888d9373 | 3de5e1967e39a3bac3e8e567d417335cbab0db2e | refs/heads/master | 2020-12-24T17:54:18.452415 | 2014-10-05T17:21:40 | 2014-10-05T17:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,690 | DropParticles.h.svn-base | // This file is part of the Peano project. For conditions of distribution and
// use, please see the copyright notice at www.peano-framework.org
#ifndef PARTICLES_PIT_MAPPINGS_DropParticles_H_
#define PARTICLES_PIT_MAPPINGS_DropParticles_H_
#include "tarch/logging/Log.h"
#include "tarch/la/Vector.h"
#include "peano... | |
73406f38860922b52910617e44e122ba277985d6 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/inetcore/winhttp/tools/spork/src/spobj/debugpage.cxx | e26d98e5b5fb9f83da4975f44694c7a5c81b19f1 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 5,842 | cxx | debugpage.cxx | /*++=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Copyright (c) 2001 Microsoft Corporation
Module Name:
debugpage.cxx
Abstract:
Implements the debug options property page.
Author:
Paul M Midgen (pmidge) 22-February-2001
Revision History:
22... |
262f84b7f9341e4ce85afd60538e7209fb191025 | 2320227045665d275bd43fbb7127066a90e39598 | /Source/PluginEditor.h | 03469a19c6fd242efcca2eb824a3e8a03b72cfe2 | [] | no_license | maxgraf96/DAFX_Assignment_2 | d40abd514b27c05a9566d76086ce521f21d5d0be | 5f18e75ace47c62b55d3a8cc7bc40a0943bcc7ef | refs/heads/master | 2023-05-28T08:50:26.810696 | 2021-06-17T14:36:29 | 2021-06-17T14:36:29 | 247,538,806 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,111 | h | PluginEditor.h | /*
==============================================================================
This file was auto-generated!
It contains the basic framework code for a JUCE plugin editor.
==============================================================================
*/
#pragma once
#include "PluginProcessor.h"
#inc... |
98d0dcab4cd537601946f74e8473e8e2afc015ef | be3989c18030bb6d6fd51c20419d68d04358d5be | /ControlFlowVisualization/src/items/VControlFlowMethodSwitch.cpp | 289941f8147a984a9917551c7b3340b74f3d7ae2 | [
"BSD-3-Clause"
] | permissive | Andresbu/Envision | e6226ab826a15827ad7187823625646e3f1c5c12 | 864396334ed521c2ff6dee8a24f624b2c70e2a86 | refs/heads/master | 2021-01-18T08:43:15.416892 | 2012-03-29T15:36:27 | 2012-03-29T15:36:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,270 | cpp | VControlFlowMethodSwitch.cpp | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2012 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... |
dbd27b8ebdff08e7f054c20842ec0084f66a0320 | e8cb8cc6ee0a5c790eb0948cbf1801c9527ce108 | /GameEngineArchitecture/include/Collision.h | f573f66124e8de460d140a6dc8a513a709f960ed | [
"MIT"
] | permissive | Cubes58/Team_NoName_GameEngine | 84c2042d873d25b72828248633fb4bd40b154755 | 5b1f75a61c43a1e1649b5a34a799aab65af70afd | refs/heads/master | 2020-04-22T16:48:01.531092 | 2019-05-03T12:36:34 | 2019-05-03T12:36:34 | 170,520,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,881 | h | Collision.h | /**
@file Collision.h
@brief A class that handles collisions.
*/
#pragma once
#include <cmath>
#include <glm/glm.hpp>
/*! \class Collision
\brief A class that handles collisions.
*/
class Collision {
public:
Collision() = default; //!< Default constructor.
~Collision() = default; //!< Default destructor.
/*!
... |
ef6be5db0aeaf100479ca0d1c2830c20690f5951 | e8a3c0b3722cacdb99e15693bff0a4333b7ccf16 | /Code forces/Divide by Zero 2018 and Codeforces Round #474 (Div. 1 + Div. 2, combined)/aaa.cpp | 62689b6650774a31dfd77f4d49df306a9a23a611 | [] | no_license | piyush1146115/Competitive-Programming | 690f57acd374892791b16a08e14a686a225f73fa | 66c975e0433f30539d826a4c2aa92970570b87bf | refs/heads/master | 2023-08-18T03:04:24.680817 | 2023-08-12T19:15:51 | 2023-08-12T19:15:51 | 211,923,913 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 872 | cpp | aaa.cpp | #include<bits/stdc++.h>
using namespace std;
int ar[20000];
int br[20000];
int k1,k2,n;
struct st{int dif,ind; };
vector<st>v;
bool cmp(st aa,st bb)
{
if(aa.dif==bb.dif)
return aa.ind<bb.ind;
return aa.dif<bb.dif;
}
int main(){
cin>>n;
cin>>k1>>k2;
for(int i=0;i<n;i++)
ci... |
c37a5202e6e82f4d597f67fb5f10b46490e63861 | c3192020e560076ef8af3dce5355f7ab0ff685be | /legged_control/legged_controllers/src/utility_control.cpp | 99cd42dc1493bc000b398c1021aad6c350914287 | [
"BSD-3-Clause"
] | permissive | CiaranZ/CIaran | 604c93b1126643fcf6fd6f34e5b420b7a4c41ab4 | 185624ce371482820eba3d59fd0122e9d332bfde | refs/heads/master | 2023-06-11T11:21:30.667753 | 2023-05-30T10:27:39 | 2023-05-30T10:27:39 | 123,782,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,388 | cpp | utility_control.cpp | #include <pinocchio/fwd.hpp> // forward declarations must be included first.
#include <pinocchio/algorithm/jacobian.hpp>
#include <pinocchio/algorithm/frames.hpp>
#include <pinocchio/algorithm/kinematics.hpp>
#include "legged_controllers/utility_control.h"
#include <algorithm>
using Eigen::MatrixXd;
using Eigen::Vecto... |
41bcc0a145443033e7f25983f1b260a6f4a374de | decbc163a046664db70b1dbea8919d123df496df | /STL/STL_generic_function.cpp | 9a173ae580cb8bddad832af1134f92eb80779bca | [] | no_license | divyansh199/STL | b3fcd31ca782736ad3a9acda4f90fc7c8c540a36 | 1d717f965f5039f3334f8183302aba3353b33f37 | refs/heads/master | 2022-12-05T08:47:41.948297 | 2020-08-18T14:59:39 | 2020-08-18T14:59:39 | 288,218,339 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 925 | cpp | STL_generic_function.cpp | //generic means fuction work with diff data type//
//algo as generic//
#include<bits/stdc++.h>
using namespace std;
template<typename t>
int search(t arr[],int n,t key)
{
for(int p=0;p<n;p++)
{
if(arr[p]==key)
return p;
}
return n;
}
template<class ForwardIterator,class T>
F... |
8106a2fa8001e72f904d44041a452d968ba3d7f5 | 0fa8a85b9a83cf0eb6ab9173f2cdfa7d26741a26 | /Sources/Overload/OvUI/include/OvUI/Widgets/Selection/ComboBox.h | bbd1edb999c352d5c2b394d6cf90d28eb1a30be8 | [
"MIT"
] | permissive | adriengivry/Overload | 79221401de4cc5864bfdb97289249f23fa2d299b | 151972a6d299cb08d2824af398c12abe4ea3f2e7 | refs/heads/develop | 2023-07-20T12:09:25.481109 | 2023-06-27T13:49:50 | 2023-06-27T13:49:50 | 191,771,083 | 1,465 | 207 | MIT | 2023-07-06T19:30:12 | 2019-06-13T13:45:15 | C++ | UTF-8 | C++ | false | false | 613 | h | ComboBox.h | /**
* @project: Overload
* @author: Overload Tech.
* @licence: MIT
*/
#pragma once
#include <map>
#include <OvTools/Eventing/Event.h>
#include "OvUI/Widgets/DataWidget.h"
namespace OvUI::Widgets::Selection
{
/**
* Widget that can display a list of values that the user can select
*/
class ComboBox : public Data... |
f8a523960c0f187e21a9e7d71b5036ee5a3e6227 | 3b86e73a2f3213a2265373935a6641c5052b7c20 | /dialog.h | 818aec8c03115fe730618451443929885d6cb01b | [] | no_license | 381706-1KolesovaChristina/vkr_imit_sto | 90c6b9261d36ae2565e2a6c42186c7768b86091b | cff640173584369e569a6a9097cd241475c8fc71 | refs/heads/main | 2023-06-22T14:10:22.635521 | 2021-07-23T12:02:41 | 2021-07-23T12:02:41 | 388,780,597 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 429 | h | dialog.h | #ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
#include <vector>
namespace Ui {
class Dialog;
}
class Dialog : public QDialog
{
Q_OBJECT
public:
explicit Dialog(QWidget *parent = nullptr);
~Dialog();
signals:
void sendData (std::vector<int> vecT, std::vector<int> vecC);
... |
7e9aaab845d2fd77276a797d8fb0acd2c0744b43 | a6f13eae9385ff1c1c84a2c310d3d3e12d096bb2 | /Sources/BaseMuteAction.cpp | 423ea872c6e4a6511ff46f46bcd804bbb9119225 | [
"CC0-1.0",
"MIT"
] | permissive | stream-notes/StreamDeck-AudioMute | ec5830005c7a8e4f7d10671eacc1fc0a0a85bb6b | ca6f0b98cf46e848ad4facfecf8c23667fb6a428 | refs/heads/master | 2023-03-05T08:49:48.441080 | 2021-02-20T19:22:15 | 2021-02-20T19:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,856 | cpp | BaseMuteAction.cpp | /* Copyright (c) 2019-present, Fred Emmott
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file.
*/
#include "BaseMuteAction.h"
#include <StreamDeckSDK/EPLJSONUtils.h>
#include <StreamDeckSDK/ESDLogger.h>
#include <AudioDevices/AudioDevices.h>
#include "DefaultAudioDevices.h"
... |
3949a6075e1a89a56e01d1181a360c0b3574e90d | 8c9715e1f55f132015c168c15be1d8dbb28a5192 | /ProjectRvR/Scene.cpp | 5f61e3909453b8245a116416155d01993dac564b | [
"MIT"
] | permissive | yippee-ki-yay/ProjectRvR | f8eeb55d76b466fb272a4bc3cbec344b0a3625af | 9b3f26f8fe8fa6227bfbfe4d4d72b0e0d9fb4ef1 | refs/heads/master | 2021-01-20T11:47:50.693600 | 2015-02-19T09:04:00 | 2015-02-19T09:04:00 | 30,359,600 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,736 | cpp | Scene.cpp | #include "Scene.h"
#include "Rocket.h"
#include <iostream>
#include "util.h"
Scene::Scene(int width, int height, std::string title)
{
window = new sf::RenderWindow(sf::VideoMode(width, height), title);
event = new sf::Event;
window->setFramerateLimit(30); //uvek da je 30fps moze da se promeni kasnije
window->set... |
de3d307a6f16e05d6f180b02f073ad3f04cbf814 | 68409a9b920f7c5924bf6ed1974b0c20d80f279f | /Game.h | bca835015f1490ae78a3558a6f110206743bdcd1 | [] | no_license | love-ziji/Sokoban | ec5440b3baadbcf6e94ff22853bd3aede655ad40 | e3c8d9dd1329ca8d0cdac2fb2fe34021a266a468 | refs/heads/master | 2022-12-21T20:07:10.920703 | 2020-09-23T01:31:32 | 2020-09-23T01:31:32 | 297,818,369 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 363 | h | Game.h | #define _GAEM_H__
#ifdef _GAEM_H__
#include <iostream>
using namespace std;
#include <conio.h>
#define M 10
#define N 11
class Game
{
public:
int Move(int map[M][N], int ch);
void Draw(int map[M][N], int c);
int Judge(int map[M][N]);
private:
int Push(int map[M][N], int offsetX, int offsetY);
void Postion(int m... |
ef6a9bd86a2bbcde7b5f49123933f5d5a81686cd | 7d64e03e403eca85248677d8dc72751c93940e48 | /src/engine/leveldb/MojDbLevelTxnIterator.cpp | 142421f557563d34a3e3fec49f2a39f792a68875 | [
"Apache-2.0"
] | permissive | webosce/db8 | a6f6ec64d3cb8653dc522ee7a3e8fad78fcc0203 | 994da8732319c6cafc59778eec5f82186f73b6ab | refs/heads/webosce | 2023-05-13T15:18:39.562208 | 2018-08-23T08:51:14 | 2018-09-14T13:30:43 | 145,513,369 | 0 | 1 | Apache-2.0 | 2023-04-26T02:43:57 | 2018-08-21T05:52:45 | C++ | UTF-8 | C++ | false | false | 9,619 | cpp | MojDbLevelTxnIterator.cpp | // Copyright (c) 2013-2018 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
c9f3c87c915666343f75efdf784bebc3d351ac76 | 71a89138623598a878ffb0e8d4d12e778cd7969f | /src/TCCalibCBTimeWalk.cxx | 8aefc6d2c82545b8187d6f0aa26ad703d58ada57 | [] | no_license | werthm/CaLib | e72c5af06d7dc36379fe83ca06e5a0dc463fc945 | 78822c30f021ded75dd59114ff3ccd577cd20f5f | refs/heads/master | 2021-01-17T10:09:08.642995 | 2019-11-27T16:38:40 | 2019-11-27T16:38:40 | 15,238,984 | 0 | 2 | null | 2014-12-20T12:05:27 | 2013-12-16T22:28:15 | C++ | UTF-8 | C++ | false | false | 14,540 | cxx | TCCalibCBTimeWalk.cxx | /*************************************************************************
* Author: Irakli Keshelashvili, Dominik Werthmueller, Thomas Strub
*************************************************************************/
//////////////////////////////////////////////////////////////////////////
// ... |
316421af20964abe12e5fbf5cd868964f5f43df4 | c0ee175d7b02707a39a1a6895207749ee0e98694 | /canvas.cpp | a74422f7ff91563689337306e4b8bfcc9eaaa009 | [] | no_license | dwipasawitra/simple-tetris | 48ed4347cdf6148985f67a08f9078f6432df6907 | 00d48f7f4da300454c971a4c52fc9c98f10070e0 | refs/heads/master | 2020-12-24T13:35:40.085643 | 2013-01-16T19:42:25 | 2013-01-16T19:42:25 | 7,287,724 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,890 | cpp | canvas.cpp | #include "canvas.h"
canvas::canvas(game *gameParent)
{
this->gameParent = gameParent;
this->gameBorder = load_bitmap("border.bmp", NULL);
// Initialize gameCanvasDraw
for(int i = 0; i < GAME_MAX_X; i++)
{
for(int j = 0; j < GAME_MAX_Y; j++)
{
this->gameCanvasDraw[i]... |
5af991144ea4f5dff00fea530e3cc5b83f1a57f5 | a4af8baee721e7c3610688a6e68586d839095c70 | /cpp_cookbook/ch_8/8_12.h | 0853e510f90f924f1f452529d808890ede4e187f | [] | no_license | timothyshull/cpp_scratchpad_old | 0b086916a6b93189d842f89806428976925ecc2b | f670085fa92b8cf4b911a522f88d75d7cc6a759b | refs/heads/master | 2021-01-22T20:34:31.008988 | 2017-03-17T15:52:41 | 2017-03-17T15:52:41 | 85,329,261 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 330 | h | 8_12.h | //
// Created by Timothy Shull on 12/25/15.
//
#ifndef CPP_COOKBOOK_8_12_H
#define CPP_COOKBOOK_8_12_H
class ObjectManager {
public:
template<typename T>
T* gimmeAnObject();
template<typename T>
void gimmeAnObject(T*& p);
};
class X {
};
class Y {
};
void testMemberTemplate();
#endif //CPP_COOKBO... |
bdf2b10aa507c58b6839e2864a07ea0e980df832 | ece914fa59ce3be64b4b01a123b588776635633e | /6/src/myproject/Polynomial.h | 62c33183407b8ae3972fbf2ea6eba78c327a7029 | [] | no_license | HronoSF/SP_2019 | 073902d15d68b75e946e16197f534b0e89fe0620 | d3af94ad23914eafdf07d4f6ad2e1a119908633c | refs/heads/master | 2020-08-08T03:53:15.684349 | 2020-01-21T17:26:28 | 2020-01-21T17:26:28 | 213,702,730 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,021 | h | Polynomial.h | #include <complex>
#include <memory>
template<class T>
class Polynomial {
private:
std::unique_ptr<T[]> array; // array[0] = a(n), array[size-1] = a(0)
int size;
template<class Arg>
void setArgs(int place, Arg head) {
array[place] = head;
}
template<class Arg>
void setArgs(int pla... |
1e9fbee4ea9d2034ce2d367b240972adffe8d482 | e8be5e13152f1ccfece36ba47569614a87842d96 | /GameSanGuo/GameSanGuo/Classes/game/main/first/Lottery9View/SGLandingReward.h | 255bfdc1f7d19f2530fc1fbdea44a7742da84501 | [] | no_license | Crasader/warCraft | 571ed9a3181b0eb52940cdd2965b7445c004d58f | b9cf69828c61bdf55b2af3b587f3be06de93768c | refs/heads/master | 2020-12-13T18:05:17.592831 | 2016-01-19T13:42:19 | 2016-01-19T13:42:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,418 | h | SGLandingReward.h | //
// SGLandingReward.h
// GameSanGuo
//
// Created by 陈雪龙 on 13-4-8.
//
//
#ifndef __GameSanGuo__SGLandingReward__
#define __GameSanGuo__SGLandingReward__
#include "SGBaseLayer.h"
#include "SGBoxDelegate.h"
class SGLandingReward : public SGBaseLayer
{
private:
int state;
SGButton *uncard;
SGButton *e... |
1c1af7b0343c109a98778e27e2a47dc4595bf775 | f75348d6c688d97a597b8460224ba8c693357ff0 | /win32/ATL7/ImageMagickObject/ImageMagickObject.cpp | d40fe262ca2b1af5544fe28b3f22e6dc51d60eed | [] | no_license | ImageMagick/contrib | 5c5a5b8a87e3dd2c1cb41c4aee58b20cb73ef998 | 2b0f77d1c4b0cba537dd4662025abdad5857c9e4 | refs/heads/main | 2023-08-11T04:30:35.457144 | 2018-04-04T00:15:38 | 2018-04-04T00:15:38 | 36,986,741 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 46,224 | cpp | ImageMagickObject.cpp | /*
ImageMagickObject.cpp
*/
#include "ImageMagickObject_.h"
static const DWORD dwErrorBase = 5000;
static const int nDefaultArgumentSize = 128;
static const LCID lcidDefault = 0;
static const int DEF_DEBUG_MODE = _CRTDBG_MODE_DEBUG;
// for logging
static const char objName[] = "ImageMagickObject";
static const ch... |
f17e274faf2a9a99b307e01f6b07c3ed191a5897 | 34844cc98087574ee7aee8c22d725486d099bcfd | /SensorGridPM/SensorGridPM.ino | 6e095722409636268c46e7c2ce4497373cfb1756 | [] | no_license | NUKnightLab/SensorGrid | 5b943607671238768c264e6691ef5053fcaf77fe | 33ce8d1358c6cdaa241d6065f5a627406d6265fe | refs/heads/master | 2021-10-22T16:40:12.955350 | 2019-09-11T21:07:15 | 2019-09-11T21:07:15 | 81,235,519 | 12 | 2 | null | 2021-03-19T23:13:11 | 2017-02-07T17:35:59 | C++ | UTF-8 | C++ | false | false | 4,722 | ino | SensorGridPM.ino | /**
* Knight Lab SensorGrid
*
* Wireless air pollution (Particulate Matter PM2.5 & PM10) monitoring over LoRa radio
*
* Copyright 2018 Northwestern University
*/
//#include <KnightLab_GPS.h>
#include "config.h"
#include "runtime.h"
#include <LoRa.h>
#include <LoRaHarvest.h>
#define SET_CLOCK false
#define SERIA... |
91c1f59a2668d7f4cd4ed69c7e7feeb30d3019d7 | 278e3b84e4e97524928c5d27099e64fa744d67ff | /GLES3Renderer/GLES3Renderer/GfxUniformZBuffer.cpp | 240f390bca60ee40f4e1e7014032004f69e2c47e | [
"Apache-2.0"
] | permissive | LiangYue1981816/CrossEngine-GLES3Renderer | 8f4d47a8c247c4e78d4d34d9887bcd6bee5f2113 | 8d092307c22164895c4f92395ef291c87f2811e6 | refs/heads/master | 2020-03-18T01:44:22.512483 | 2018-08-02T03:04:08 | 2018-08-02T03:04:08 | 134,157,249 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,030 | cpp | GfxUniformZBuffer.cpp | #include "stdio.h"
#include "stdlib.h"
#include "GfxUniformBuffer.h"
#include "GfxUniformZBuffer.h"
CGfxUniformZBuffer::CGfxUniformZBuffer(void)
: m_bDirty(false)
, m_pUniformBuffer(NULL)
{
m_pUniformBuffer = new CGfxUniformBuffer;
m_pUniformBuffer->Create(NULL, sizeof(m_params), true);
}
CGfxUniformZBuffer::~CG... |
83000299ac8f6e0a6dfec97552561d6a3c906a3e | 5c44f478f470f2e081210c8cc180a342405f33c8 | /Day 7/Three Sum Closest.cpp | 5df1a628ea2e082588287900a0c948d5d93cdd80 | [] | no_license | Debashish-hub/100-Days-Of-Coding | 33e0e280122af5496ed6fc788e89885977477ed6 | 263f33a0247e0b0001a85a42543b4596ee03adc9 | refs/heads/main | 2023-06-08T08:09:59.740053 | 2021-06-28T15:57:31 | 2021-06-28T15:57:31 | 346,478,715 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,940 | cpp | Three Sum Closest.cpp | //Three Sum Closest
//Easy Accuracy: 28.11% Submissions: 7140 Points: 2
//Given an array Arr of N numbers and another number target, find three integers
//in the array such that the sum is closest to target. Return the sum of the three integers.
// { Driver Code Starts
//Initial function template for C++
#include<b... |
af1e9fe1d28842d924b400578abb4cedf97daac5 | cfa27073eadacfb581a0ce09d391272e2d764fc3 | /src/archon/image/computed_image.hpp | 4e9a9ef525a3a0e02ac1e5689f88069ed998382d | [] | no_license | kspangsege/archon | e1b5cd2413cef95782ee8c8185be0086289fa318 | d8c323efd2d7914cc96d832a070f31168c4b847b | refs/heads/master | 2023-09-01T02:58:03.071535 | 2023-08-31T18:15:41 | 2023-08-31T19:50:37 | 15,814,007 | 2 | 0 | null | 2023-09-13T10:16:58 | 2014-01-11T00:41:43 | C++ | UTF-8 | C++ | false | false | 4,737 | hpp | computed_image.hpp | // This file is part of the Archon project, a suite of C++ libraries.
//
// Copyright (C) 2022 Kristian Spangsege <kristian.spangsege@gmail.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Soft... |
e635b0fd784142a1e361a4987ba53a7bc916f83e | 9a149637db59ccd94dfe2bb1139d007708b067fe | /Dynamic Programming/printCodesIterative.cpp | 449741f156638fb2423d608c451b304f7d1d1751 | [] | no_license | Nishant-Pall/C-practice | 280da609cfc53f32e83e9cf0b221843e03343773 | 2502cb7d04ea611a7847720262eee3ad93186db2 | refs/heads/master | 2021-08-15T21:57:15.511091 | 2020-09-05T16:37:48 | 2020-09-05T16:37:48 | 225,806,107 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 645 | cpp | printCodesIterative.cpp | #include <iostream>
#include <string>
using namespace std;
int getCodesIterative(int* input, int size, int*arr) {
int *output = new int[size+1];
output[0] = 1;
output[1] = 1;
for(int i=2; i<size; i++){
output[i] = output[i-1];
if(input[i-2]*10+input[i-1] <= 26){
output[i] += output[i-2];
}... |
dfa572d77dc73f8b3e6e4800939631c02529955b | 776a3a17511602988bfe718c220e9b212dc07439 | /ZOJ/4021/15843235_AC_110ms_1164kB.cpp | 5eeeedfc85e342183a383c0d428ae13e403b2888 | [] | no_license | DcmTruman/my_acm_training | bc1675d1de0c689bde9f62d8e15b3d885ca6b984 | c54643ca395ad4be3dc4b640504a0fdc62f70b1c | refs/heads/master | 2020-05-16T06:19:17.356731 | 2019-04-22T18:01:46 | 2019-04-22T18:01:46 | 182,840,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,616 | cpp | 15843235_AC_110ms_1164kB.cpp | #include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
char ss[500020];
char stack[500020];
int num;
char ops(char x){
return x=='T'? 'F':'T';
}
char calc(char x,char t,char y){
if(t=='&'){
if(x=='T'&&y=='T') return 'T';
if(x=='X'||y=='X') return 'X';
if(x=='T'||y=='T') return 'F';
retu... |
3dfb257aed2bdbf050fc64f2929892c4c3526253 | 6958f617af0c5a76304ceb1006c77bc70ca0e195 | /tests/cpp/transforms/inlining_test.cpp | 6740a17ac7e5e2ee1cc4748f07c7059870db05df | [
"Apache-2.0"
] | permissive | taichi-dev/taichi | 3fae315a494f1c97392d5b931c939abbbfba1bdc | b30b511f55e3d0ebff765ee048d0aaa4ba9e7667 | refs/heads/master | 2023-09-02T13:28:18.208792 | 2023-08-23T23:22:43 | 2023-08-23T23:22:43 | 74,660,642 | 17,231 | 1,841 | Apache-2.0 | 2023-09-14T11:29:32 | 2016-11-24T10:00:05 | C++ | UTF-8 | C++ | false | false | 2,077 | cpp | inlining_test.cpp | #include "gtest/gtest.h"
#include "taichi/ir/analysis.h"
#include "taichi/ir/ir_builder.h"
#include "taichi/ir/statements.h"
#include "taichi/ir/transforms.h"
#include "taichi/program/program.h"
namespace taichi::lang {
class InliningTest : public ::testing::Test {
protected:
void SetUp() override {
prog_ = s... |
0ad60ef04d4d78235d8c2c8d52c919486d4f898c | 048fddf3e02996a50163d014987d2a1e0f852b05 | /20200425/p.cpp | 5dd9528ab3b675a9f2e41f2cc96a713ab5690d11 | [] | no_license | muhammadali493/Competitive-coding | 2a226d4214ea2a9c39dcd078d449d8791d80a033 | 0a6bb332fb2d05a4e647360a4c933e912107e581 | refs/heads/master | 2023-07-17T08:40:06.201930 | 2020-06-07T07:41:39 | 2020-06-07T07:41:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 828 | cpp | p.cpp | #include <iostream>
using namespace std;
const int N = 100000 + 100;
int open[N][5];
int dp[N][5];
int n;
int main() {
ios::sync_with_stdio(false);
cin >> n;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= 4; j++) {
cin >> open[i][j];
}
}
dp[0][0] = 0;
for (int i... |
9458d39332ce39838d97a0de6d7c88a791680532 | 66c9d369172413174e8e21ed4049fc7a4fcbcba3 | /矩阵乘法求斐波那契.cpp | b26d05909d78460b502c0732e7ba82aeed3dd2ef | [] | no_license | Xrvitd/C_code | f145d629a0e3fc36eef4721f649ccaa2c0567f5d | caf03c0ccb2413ff4b768f1e7bddc882de3bb825 | refs/heads/master | 2020-03-10T04:56:45.196112 | 2018-04-12T07:02:54 | 2018-04-12T07:02:54 | 129,205,311 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 860 | cpp | 矩阵乘法求斐波那契.cpp | #include<iostream>
using namespace std;
long long n,m,f;
struct zqm
{
int a[3][3];
}q[10001],p;
zqm c(zqm x,zqm y)
{
zqm s;
s.a[1][1]=x.a[1][1]*y.a[1][1]+x.a[1][2]*y.a[2][1];
s.a[1][2]=x.a[1][1]*y.a[1][2]+x.a[1][2]*y.a[2][2];
s.a[2][1]=x.a[2][1]*y.a[1][1]+x.a[2][2]*y.a[2][1];
s.a[2][2]=x.a[2][1]*y.a[... |
89ba1c0e5e3723025c08802700c5c361a44168c2 | 91c38d6739ef7eb47455396371cb75f0a668c9ff | /test/CompilationTests/LambdaTests/Catcher/LValue.cpp | 760bd014e35e2f71eb12eb7a1b5b698d80588ca7 | [
"MIT"
] | permissive | rocky01/promise | 8256ab0d2e599f690f31e6b035e1ae67293e60a1 | 638415a117207a4cae9181e04114e1d7575a9689 | refs/heads/master | 2020-04-01T09:14:14.878034 | 2018-10-15T07:31:16 | 2018-10-15T07:31:16 | 153,066,476 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 965 | cpp | LValue.cpp | #include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "Promise.hpp"
using namespace prm;
struct Bools
{
bool first;
bool second;
};
class CatcherLambdaResolveRejectLValue: public ::testing::TestWithParam<Bools>
{ };
INSTANTIATE_TEST_CASE_P(
TestWithParameters, CatcherLambdaResolveRejectLValue, testi... |
e6ce5287406229557b1f973e4edc7075bc3d0315 | a65e50b0df7b0bec719bc8d6e2206ce11046cc72 | /osf-to-esf/dbsk2d/algo/dbsk2d_ishock_transform_sptr.h | 4660a8bf09a368cd25d0fe464d7a10431815e98a | [
"MIT"
] | permissive | wenhanshi/lemsvxl-shock-computation | fe91c7ca73f9260533fe9393ccef60ac5ef45077 | 1208e5f6a0c9fddbdffcc20f2c1d914e07015b45 | refs/heads/master | 2021-05-07T08:24:21.197895 | 2017-11-15T13:37:59 | 2017-11-15T13:37:59 | 109,273,353 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 262 | h | dbsk2d_ishock_transform_sptr.h | #ifndef dbsk2d_ishock_transform_sptr_h
#define dbsk2d_ishock_transform_sptr_h
class dbsk2d_ishock_transform;
#include <vbl/vbl_smart_ptr.h>
typedef vbl_smart_ptr<dbsk2d_ishock_transform> dbsk2d_ishock_transform_sptr;
#endif // dbsk2d_ishock_transform_sptr_h
|
0e646d38c3d98a961064b69e1e67e2525442823f | a1a3d5ed46ca8e72a34eefcc993ff350279e5968 | /EC_8Queens.cpp | 8dfa57d5f52179fc45357b63d820ce39a509adbb | [] | no_license | jasoncs1997/8-queens-problem- | 2f4424846416310b6d938530df79f37ccf681a78 | 6754dfa2f75b5951aed631098c7e9b323ecb5533 | refs/heads/master | 2020-03-29T18:17:49.308982 | 2018-09-25T03:42:37 | 2018-09-25T03:42:37 | 150,203,888 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,619 | cpp | EC_8Queens.cpp | /**~*~*
8 Queens Problem
Extra Credit: This program prints one solution to the 8 Queens Puzzle.
Change it to display and count all solutions.
Run the program and save the output as a comment at the end of the source file
NAME:HUY DUC DAO 22C
*~**/
#include <iostream>
#include <iomanip>
#include <string... |
52be40f0c3866b20a3335b0d596bf808a8c79cb4 | 0b88599a7bf318d06117f6c29c653a978b3f07a6 | /libdialogutil/dialogbase.h | 2e18be94d1e60aa196ac29a16c7f0b832cc695a3 | [] | no_license | KDE/kooka | 21571d9066e253532dfade2d76a73cc7505f598b | a03ddf8091cbebedd9ef5479431c474642ca81b5 | refs/heads/master | 2023-08-30T17:35:23.977260 | 2023-08-29T01:35:32 | 2023-08-29T01:35:32 | 42,732,867 | 6 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 6,721 | h | dialogbase.h | /************************************************************************
* *
* This file is part of Kooka, a scanning/OCR application using *
* Qt <http://www.qt.io> and KDE Frameworks <http://www.kde.org>. *
* *
* Copyright (C) 2016 Jonathan Marten <jjm@keelhaul.me.uk> *
* *
* Kook... |
c6df17e9778996f9f049aed59df0c8bc7beb1d58 | 1e66d7d55cae697268616d9c3bb5722eff540d69 | /proyecto/cpersona.h | 5071ac03cc79225f280550bd1663bddd2b8e8bd4 | [] | no_license | ChristianSnchz/QT | 14a97f38d7d46aa0f13105a0042c996c0cdbd96d | 071830a2e4c409f90c442c1edff0f0289538fca2 | refs/heads/master | 2021-01-17T17:52:57.142534 | 2016-10-12T04:07:27 | 2016-10-12T04:07:27 | 70,661,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 759 | h | cpersona.h | /**
@file cpersona.h
@brief Declaracion de la clase cPersona
Contiene los atributos y metodos de la clase
@Author Caceres, Jesus. Sanchez, Christian
@date 07/2015
*/
#ifndef CPERSONA_H
#define CPERSONA_H
#include <string>
class cPersona
{
private:
std::string nombre;
std::str... |
c942ba2f7dd22379cbcc772b638025b965850c86 | c51febc209233a9160f41913d895415704d2391f | /library/ATF/_OBJECT_TYPE_LIST.hpp | fca7e11ccd22ca126b186c5ce4054e62bb73c6a4 | [
"MIT"
] | permissive | roussukke/Yorozuya | 81f81e5e759ecae02c793e65d6c3acc504091bc3 | d9a44592b0714da1aebf492b64fdcb3fa072afe5 | refs/heads/master | 2023-07-08T03:23:00.584855 | 2023-06-29T08:20:25 | 2023-06-29T08:20:25 | 463,330,454 | 0 | 0 | MIT | 2022-02-24T23:15:01 | 2022-02-24T23:15:00 | null | UTF-8 | C++ | false | false | 342 | hpp | _OBJECT_TYPE_LIST.hpp | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_GUID.hpp>
START_ATF_NAMESPACE
struct _OBJECT_TYPE_LIST
{
unsigned __int16 Level;
unsigned __int16 Sbz;
_GUID *ObjectType;
... |
4e23a2bef0a15b7ef6009b780ce9ddcc5e174393 | 46c5bab97ed043c5cc60c82884c1afa3d9a6689e | /src/SuccessState.hpp | de672c2723322cdf50b12f66518c69059b4c1714 | [] | no_license | Lucy-CH/cpp_CW4 | 424b3c6ea2fd02a2c3c0c248359492df9ab4d6a0 | 4700b2bd7fc7158be84f2e161e0fd8ee07034262 | refs/heads/master | 2022-07-17T08:28:49.127533 | 2020-05-19T09:53:31 | 2020-05-19T09:53:31 | 255,769,751 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 600 | hpp | SuccessState.hpp | //
// SuccessState.hpp
// SDL2_App
//
// Created by Le Cheng on 19/05/2020.
//
#pragma once
#include "State.hpp"
#include "Psylc7Engine.hpp"
#ifndef DeathState_hpp
#define DeathState_hpp
#include <stdio.h>
#endif /* DeathState_hpp */
class SuccessState
: public State
{
public:
SuccessState(Psylc7Engine* pEng... |
4a6f835cebc4693ba34827ac8e3c491e5adc6349 | ece1237e78a64ffab0f52c5f8c12ed1d2a1cef07 | /28_数组中出现次数超过一半的数字/solution.cc | 3a82f34c22ad5fab331fdbb78a26bad1dd1a1a33 | [] | no_license | zbqxyz/jianzhi_offer | 4b88ec5f6e88628542b54f9c34c5d1558a6354eb | 182e96d94d9d318899de58fede510f4afae68223 | refs/heads/master | 2020-04-22T09:31:39.114390 | 2018-08-21T15:10:42 | 2018-08-21T15:10:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 662 | cc | solution.cc | #include <bits/stdc++.h>
using namespace std;
class Solution {
public:
int MoreThanHalfNum_Solution(vector<int> numbers) {
int res = numbers[0];
int balance = 1;
for (int i = 0; i < numbers.size(); i++) {
if (balance == 0) {
res = numbers[i];
balance = 1;
} else if (numbers[i]... |
d5d0d711b6c27b08fb760cf27d8bb22a319a1078 | ef23ae86df646cd3192b62066ec8abbdb6a26426 | /dev/g++/projects/embedded/demos/tcp_echo/src/tcp_echo.cc | 12f783a631deff00b84748707272586f43e60c2c | [
"MIT"
] | permissive | YannGarcia/repo | 9e3c43248814a9084a5ab9480c352a8f17e9076b | 0f3de24c71d942c752ada03c10861e83853fdf71 | refs/heads/master | 2021-06-15T22:25:21.873408 | 2021-05-06T06:22:14 | 2021-05-06T06:22:14 | 74,947,093 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,694 | cc | tcp_echo.cc | /*!
* \file tcp_echo.cpp
* \brief tcp_echo class implementation file
* \author garciay.yann@gmail.com
* \copyright Copyright (c) 2017 ygarcia. All rights reserved
* \license This project is released under the MIT License
* \version 0.1
*/
#include "tcp_echo.hh"
tcp_echo::tcp_echo(const std::stri... |
7544ee82d1740c0ff7fed927cf600289a7b137ed | f83ef53177180ebfeb5a3e230aa29794f52ce1fc | /ACE/ACE_wrappers/TAO/examples/AMH/Sink_Server/MT_AMH_Server.cpp | 33e6ccb54ab4a66ff3c82c72f245f473ca5e93b6 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-sun-iiop",
"Apache-2.0"
] | permissive | msrLi/portingSources | fe7528b3fd08eed4a1b41383c88ee5c09c2294ef | 57d561730ab27804a3172b33807f2bffbc9e52ae | refs/heads/master | 2021-07-08T01:22:29.604203 | 2019-07-10T13:07:06 | 2019-07-10T13:07:06 | 196,183,165 | 2 | 1 | Apache-2.0 | 2020-10-13T14:30:53 | 2019-07-10T10:16:46 | null | UTF-8 | C++ | false | false | 1,967 | cpp | MT_AMH_Server.cpp |
#include "MT_AMH_Server.h"
#include "tao/Strategies/advanced_resource.h"
#include "ace/Task.h"
#include "ace/Get_Opt.h"
MT_AMH_Server::MT_AMH_Server (int &argc, ACE_TCHAR **argv)
: Base_Server (argc, argv)
{
}
MT_AMH_Server::~MT_AMH_Server (void)
{
}
void
MT_AMH_Server::usage (const char *message)
{
static con... |
74b0a4a0a5879621de29c0cb1aa2882abf80082e | 6502a0aab23adfdf482bfeb02f6bf85e113add37 | /TetrisApp/TetrisApp/CBlockT.h | 9ab8cf60890f3452b308a35f66fa1fc72d143196 | [] | no_license | netddigi/TetrisGame | 15b4cf10b3d9dd79d9a1285b1cba6ee8b85848e9 | 47062f48ca4644f96a889785b62a26e21ffa711e | refs/heads/master | 2021-01-19T15:16:14.169680 | 2017-08-21T14:44:06 | 2017-08-21T14:44:06 | 100,954,867 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 166 | h | CBlockT.h | #pragma once
#include "CBlock.h"
class CBlockT : CBlock
{
public:
CBlockT();
void ChangeDirection() override;
void ChangePosition() override;
public:
private:
}; |
d32176a12432f0d920bd1aaa663e8c3de3f85a23 | 9c21a1f7caf0b889201414e5a97c5e2a3147d0cc | /Dogodo/Dogodo/ContentProvider.cpp | 70a44a7e70b981af43b6807bf8343fe4880fa8f3 | [] | no_license | dlCdS/Dev | f95a2e41b71de2ea562c268e713e3879ac74e3b4 | 304ee4cbef803f98d1017927fddb3b036ffcf165 | refs/heads/master | 2022-01-13T00:33:19.449933 | 2021-10-25T14:40:08 | 2021-10-25T14:40:08 | 220,112,062 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,232 | cpp | ContentProvider.cpp | #include "ContentProvider.h"
ContentProvider ContentProvider::_sing = ContentProvider();
ContentProvider::ContentProvider() : Widgetable("Content_Provider", true)
{
}
std::string ContentProvider::XMLName() const
{
return "ContentProvider";
}
void ContentProvider::associate()
{
WAssociateWidget("Left", new Conta... |
0f1944aba26d358a2372bfa723f6446aa833442d | d7b528318a4e1b0892fd68e47c4584ec733d3dcc | /Hacker-Rank/c++/structs.cpp | 264d4e370731edfbd6533506c1810b468064258c | [] | no_license | mehrankamal/vigilant-coder | 7a30b5b12258322734433466fb068f19ddcc52da | da893adaad71b557842f36e5d76b2a963ef4234b | refs/heads/master | 2020-04-30T03:16:54.157697 | 2019-12-09T20:27:13 | 2019-12-09T20:27:13 | 176,582,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | cpp | structs.cpp | //Problem:
//Link:
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
struct Student
{
int age;
string firstName;
string lastName;
int standard;
};
int main() {
Student st;
cin >> ... |
91f26d706f2fd550edd2f49ed109af917b6e5fbb | 0b6d89f6b34e8f556daa7637b0b017ffef0afe01 | /src/ff_eam.cpp | 3a12f5b8706b2c5de28c69ebf7b04a8f6a72c20b | [] | no_license | jpdu/MAPP | 199dc2a5dbd40b68ec3c2033527a8ea46a96b56a | 43e00f8f9d87c0a2a645f33dcaf62bb7c13fcfa3 | refs/heads/master | 2021-01-15T12:31:57.249273 | 2015-11-24T22:34:09 | 2015-11-24T22:34:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,918 | cpp | ff_eam.cpp | #include <stdlib.h>
#include "neighbor.h"
#include "ff_eam.h"
#include "atom_types.h"
#include "error.h"
#include "memory.h"
using namespace MAPP_NS;
enum{NOT_SET,FUNC_FL,SET_FL,FINNIS_FL};
/*--------------------------------------------
constructor
--------------------------------------------*/
ForceField_eam::
Forc... |
b2b1f5c532a51ebbf0464ee88bb150d50375c829 | 6f616f3f10cfa43707c102ec286fe048dea80fb0 | /test/types/json/json_traits.cpp | a1a028683660b3adf7ee303c47462a4df1b34be2 | [
"MIT"
] | permissive | ExternalRepositories/libfly | 9e9003d5790be5877554e8b8e7a8545de7d03fd2 | 5acfc424a68031c0004b3c1cb5bef9d76dd129fb | refs/heads/main | 2023-06-26T21:58:08.774786 | 2021-06-21T13:47:50 | 2021-06-21T13:47:50 | 377,925,131 | 0 | 0 | MIT | 2021-06-17T18:24:03 | 2021-06-17T18:24:02 | null | UTF-8 | C++ | false | false | 19,632 | cpp | json_traits.cpp | #include "fly/types/json/json_traits.hpp"
#include "catch2/catch_template_test_macros.hpp"
#include "catch2/catch_test_macros.hpp"
#include <array>
#include <deque>
#include <forward_list>
#include <list>
#include <map>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <vector>
CATCH_TEMPLATE... |
140ad0d503dd0f383afb15dd72ce89d4df6179af | 3188d2b4e8e9869c80819e8a3d99ebace8adfd06 | /Practice/LastStoneWeightII.cpp | cb4f7a2e2583ed472eb939fa43de3bcef264b790 | [] | no_license | Divyalok123/LeetCode_Practice | 78ce9ba0deb8719b71111e17ae65422d76d2a306 | 2ac1dd229e7154e5ddddb0c72b9bfbb9c897d825 | refs/heads/master | 2023-06-30T08:55:33.369349 | 2021-08-01T06:17:06 | 2021-08-01T06:17:06 | 256,864,709 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,573 | cpp | LastStoneWeightII.cpp | /*
https://leetcode.com/problems/last-stone-weight-ii/
*/
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
// Solution 2 (DP)
class Solution {
public:
int lastStoneWeightII(vector<int>& stones) {
int n = stones.size();
int sum = 0;
for(int& i: stones) sum += ... |
99ce3ff8bcfb6a5d2b08748eefa1b7ebcccd861a | ece30e7058d8bd42bc13c54560228bd7add50358 | /DataCollector/mozilla/xulrunner-sdk/include/mozilla/dom/CSS.h | adf583d95091588f1b4dd30bd0dcd3d4217cc026 | [
"Apache-2.0"
] | permissive | andrasigneczi/TravelOptimizer | b0fe4d53f6494d40ba4e8b98cc293cb5451542ee | b08805f97f0823fd28975a36db67193386aceb22 | refs/heads/master | 2022-07-22T02:07:32.619451 | 2018-12-03T13:58:21 | 2018-12-03T13:58:21 | 53,926,539 | 1 | 0 | Apache-2.0 | 2022-07-06T20:05:38 | 2016-03-15T08:16:59 | C++ | UTF-8 | C++ | false | false | 1,178 | h | CSS.h | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* DOM object holding utility CSS ... |
25203ac2af0fdadd0f40eb704a6bc381e5ce8e4c | 507f3970637d523d2aa99eb16fff627a628fd8b8 | /ass02/hw02_tree01/VectorBnode.h | e57d1b8327e155926131765457f25d2cb0dcadc8 | [] | no_license | suryak/Advanced-Data-Structures | e6ddec480868c50a45a70234dd5188e0300e3e64 | f5b1cd8e1fbb688b15038738b5151e54719bc039 | refs/heads/master | 2021-01-02T08:56:32.530782 | 2014-03-17T17:42:20 | 2014-03-17T17:42:20 | 17,835,253 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 471 | h | VectorBnode.h | #pragma once
#include "Interfaces02.h"
#include "Bnode.h"
#include<string>
class VectorBnode{
public:
size_t length;
size_t used;
Bnode **items;
int key;
std::string value;
VectorBnode(){
length = 1;
used = 0;
items = new Bnode*[1];
}
~VectorBn... |
8355e07fdbaaffa3b8f2fe55389b6f938b6e9554 | dcc668891c58cd594234d49a209c4a5e788e2341 | /include/lol/def/PatcherP2PStatusUpdate.hpp | 90518ba7816068ae79a3a7153e3a957bd54157a6 | [
"BSD-3-Clause"
] | permissive | Arryboom/LeagueAPI | 56d6832f125d1843d575330ae5b0c8172945cca8 | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | refs/heads/master | 2021-09-28T01:05:12.713109 | 2018-11-13T03:05:31 | 2018-11-13T03:05:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | hpp | PatcherP2PStatusUpdate.hpp | #pragma once
#include "../base_def.hpp"
namespace lol {
struct PatcherP2PStatusUpdate {
bool isAllowedByUser;
};
inline void to_json(json& j, const PatcherP2PStatusUpdate& v) {
j["isAllowedByUser"] = v.isAllowedByUser;
}
inline void from_json(const json& j, PatcherP2PStatusUpdate& v) {
v.isAll... |
86cb113831684b6860ae3bf304f82e42c8a9d219 | 1567a71b4143bcd9090c21927062a6225fab7800 | /foo_output_pipe/ConIo.h | 151792a94eae7c924aeafe7f22f0f53a364e1330 | [] | no_license | saivert/foo_output_pipe | e792ccb859fb26320e95d5bf9cee169676249cff | 35ae3c546d0602863cb565d7c012c795b2683b4a | refs/heads/master | 2020-12-31T04:28:52.655874 | 2018-07-02T07:52:18 | 2018-07-02T07:52:18 | 49,016,653 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,033 | h | ConIo.h | #pragma once
#include <queue>
class CConIo
{
private:
WCHAR cmdline[MAX_PATH];
PROCESS_INFORMATION process_info;
const int samplerate;
const int channels;
void _WriteWavHeader(service_ptr_t<file> file_stream);
typedef struct
{
char RIFF_marker[4];
uint32_t file_size;
char filetype_header[4];
char forma... |
ffb4fb2b83b51b33dd6cf399757b506ec8000c5e | 7268f845ea8cd66d443212d20dc13dcfe840219e | /剑指 Offer 16. 数值的整数次方.cpp | 961eed82c88792992346ae00881ad4a2f24c93d9 | [] | no_license | watermelonyip/leetcode | 5cb02bc7f0531fc31304cab32a66aa2ee8aa7a54 | b7e59bfb76258f76973e3e0d7ed27d5762731c9e | refs/heads/main | 2023-03-22T22:18:19.936557 | 2021-03-17T07:50:54 | 2021-03-17T07:50:54 | 318,970,710 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,484 | cpp | 剑指 Offer 16. 数值的整数次方.cpp | /*
实现函数double Power(double base, int exponent),求base的exponent次方。不得使用库函数,同时不需要考虑大数问题。
-100.0 < x < 100.0
n 是 32 位有符号整数,其数值范围是 [−2^31, 2^31 − 1]
思路:先处理特殊情况,base为0,exponent为0或1。若exponent为负数,需要求绝对值。循环求余的方法,若exponent为偶数,则计算base^exponent = base^(expoent/2) * base^(exponet/2);
若exponent为奇数,则计算base^exponent = base^(expoent/2... |
f84fdbc3bc88ef4e2a0c83673096ce1c1669a173 | 2c01969db3e4de0131618057125aee655cba0cb8 | /quisp/utils/ComponentProvider.h | d5870bb6e475913ac2345ff271febc23abb01c5b | [
"BSD-3-Clause",
"MPL-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | sfc-aqua/quisp | c86ee50e08047c6a5469e01ae8740710e9287636 | eddfe7ee80535a624987941653c59da2ce138929 | refs/heads/master | 2023-08-31T10:23:57.939878 | 2023-08-07T03:00:56 | 2023-08-07T03:00:56 | 246,997,413 | 77 | 36 | BSD-3-Clause | 2023-09-05T10:07:25 | 2020-03-13T05:48:04 | C++ | UTF-8 | C++ | false | false | 2,671 | h | ComponentProvider.h | #pragma once
#include <omnetpp.h>
#include "DefaultComponentProviderStrategy.h"
#include "IComponentProviderStrategy.h"
#include "modules/Logger/LoggerModule.h"
#include "modules/QRSA/QRSA.h"
#include "modules/common_types.h"
#include "utils.h"
namespace quisp::utils {
/**
* \brief ComponentProvider class provides... |
b1bea51ffda0c5fdf587480a340d78f865bd9113 | d31ed4f3bd9a9d24ff388749c056a0ea6255a76c | /src/platform/update_engine/decompressing_file_writer.cc | 96db0100b18dbab125b4cd8a66f8f14ed20e8fa1 | [
"BSD-3-Clause"
] | permissive | Escapist70/chromiumos | c840e15a4320765acba08e13f20ecc9ec9d108ad | 380301ef6831c966b1389bffe0cd51fcccfcd612 | refs/heads/master | 2021-01-18T12:34:27.303926 | 2010-02-26T21:10:11 | 2010-02-26T21:10:11 | 20,645,371 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,983 | cc | decompressing_file_writer.cc | // Copyright (c) 2009 The Chromium OS 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 "update_engine/decompressing_file_writer.h"
namespace chromeos_update_engine {
// typedef struct z_stream_s {
// Bytef *next_in... |
538a6827d1b5b292a0cff05ada941818d31a7689 | 734ad0714537e082832fc8c5c9746edb991a5b14 | /src/ksLabel.h | fc2b16ca0fee69c687f0c474b1367c025d1e5677 | [
"MIT"
] | permissive | ipud2/KingEngine | d672cb9d4425bca0a9196d92e81973cda2312fd3 | 5c7e5ff89bfd7acc1031470660fc89b06d56101b | refs/heads/master | 2020-06-29T13:23:31.332861 | 2016-07-22T03:22:10 | 2016-07-22T03:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,774 | h | ksLabel.h | /********************************************************
* Class: ksLabel
* Author: Beyond Parallel - Jacob Neal
*
* Filename: ksLabel.h
*
* Overview:
* Label class that inherits from the base game
* control.
*
********************************************************/
#ifnde... |
faacde61d7fa7b9126d2328e9f41c6556778a83c | b23e8b8fa4f70d915f0c8d3c6ed57ba2d2ae4ee6 | /sandpit/GridTransformCode/CPlusPlusCode/GDM_Binary.cpp | 43fdf86022d777e971f6128fbdc56a7a261e3a48 | [] | no_license | cwarecsiro/gdmEngine | 99195eefc1369165051ce8985f5954369358664c | 4fd57e609f7411ebb989b0987e6b10d33af63ae4 | refs/heads/master | 2021-07-15T23:33:37.415368 | 2018-11-23T00:06:05 | 2018-11-23T00:06:05 | 137,005,799 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,016 | cpp | GDM_Binary.cpp | //
// GDM_Binary.cpp
//
#include "stdafx.h"
#include "GDM_Binary.h"
#include <iostream>
#include <string>
//
// Calculate a Cyclic Redundancy Check value for the CRC calculation methods
//
unsigned long CRC32Value(int i)
{
unsigned long ulCRC = i;
for (int j=8; j>0; j--)
{
if (ulCRC & 1)
ulCRC = (ulCRC >> 1) ... |
9c34874a75f350924957e95bdf355c53cf08b291 | 11dcefc3768cc67f6563f7e0e4713bae740cad63 | /hyeyoo/3주차_DP_2/암호코드.cpp | e1945f49142ecdbf4852f4774d1a570dff3b7070 | [] | no_license | 42somoim/42somoim1 | dac54edee33aadf1a17f60768446e5faf07ed952 | 039e00085290d048a7345bcec7db797e4c7330d2 | refs/heads/master | 2023-05-06T13:07:01.242428 | 2021-05-28T12:07:45 | 2021-05-28T12:07:45 | 280,406,020 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,481 | cpp | 암호코드.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 암호코드.cpp :+: :+: :+: */
/* ... |
7271966ebb562fc1fb0c972a815a3426c44e4b75 | 15ab7e1c875f803aa0d68385e5af99abe7f84a11 | /view/pageRank.cpp | a2246c4236e144e54ae6b29e9a2369ad0a33e9bc | [] | no_license | lincandong/Basketball_Data_Visualization | 25875b4ee851caa0f16786ca0f0443efdba488fa | 48289a37a1e6633d33e88b79fee9a1507a5c1e40 | refs/heads/master | 2021-07-25T19:30:18.069395 | 2018-11-09T01:49:20 | 2018-11-09T01:49:20 | 140,906,959 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 26,845 | cpp | pageRank.cpp | #include "pageRank.h"
#include "ui_pageRank.h"
#include <iostream>
pageRank::pageRank(QWidget *parent) :
QWidget(parent),
ui(new Ui::pageRank)
{
ui->setupUi(this);
// connections
connect(ui->buttonShoot, &QPushButton::clicked, this, &pageRank::showShoot);
connect(ui->buttonThree, &QPushButton... |
3c1464346e1f684ebb7e0489a16a2cc0d82384d6 | 4d815360a103946d046998458292ac50edd024e9 | /Uno/main.cpp | ec0977e5df5eb7d9ec3ff20d4d7de7a4d4c32fe3 | [] | no_license | KingFroz/CodeSnippets | d535160b54888ad9dbf8b2895aa757100ce6bfbe | 54d1eb2fb502819b6b4e76033be0b46b3c4a49e0 | refs/heads/master | 2021-04-12T07:27:21.408941 | 2018-07-17T15:04:42 | 2018-07-17T15:04:42 | 94,508,851 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,238 | cpp | main.cpp | // main.cpp : Entry point for the project
// This includes all of our standard headers
#include "src\\UnitTest++.h"
#include "src\\TestReporterStdout.h"
#include "stdafx.h"
#include "TestManager.h"
#include "Game.h"
/***********/
/* Globals */
/***********/
/**************/
/* Prototypes */
/**************/
// O... |
55ef41917db6dac8981382fc2770d6511ecbf436 | 6207880e0d033a1fd4427738f315dece3350e94b | /EinsteinPrototype/Scenes/AlertViewScene.h | ebf0a03ee6da9101c4d1c240bec639d14b0ca61c | [] | no_license | Crasader/AlbertEinstein | 1b08854558f3820679181fd9f8cb70e91cb75234 | 6b32c209dbef4d748e7ac5657cf6a389e8c0a560 | refs/heads/master | 2020-12-12T23:39:39.433935 | 2014-05-23T20:58:03 | 2014-05-23T20:58:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,208 | h | AlertViewScene.h | //
// AlertViewScene.h
// EinsteinPrototype
//
// Created by Marco Rossi on 2/14/13.
// Copyright (c) 2013 Farofa Studios. All rights reserved.
//
#ifndef __EinsteinPrototype__AlertViewScene__
#define __EinsteinPrototype__AlertViewScene__
#include <iostream>
#include "Enumerations.h"
/************************... |
e4510595698e67e25d8b7f8d8cacdf8dbd486ce4 | 7707a9fcbde28b547f462b44f10243d85a4d2c01 | /Cpp/Stone/src/stone_ast.h | c4c72b7bd9df533145d61e5aab7f70f98aca29ae | [] | no_license | BruceChen7/ToysCode | 3db20377ff2dd5d5d373527c47cf11e8295bebe2 | 9f1eecf58b2f94ef46a7b7dcd9b18757563cf09f | refs/heads/master | 2022-12-22T07:48:31.405552 | 2019-08-15T03:47:07 | 2019-08-15T03:47:07 | 28,715,550 | 6 | 0 | null | 2022-12-16T01:51:30 | 2015-01-02T14:30:22 | C++ | UTF-8 | C++ | false | false | 2,185 | h | stone_ast.h | #ifndef __STONE_SRC_STONE_AST__
#define __STONE_SRC_STONE_AST__
#include <memory>
#include <vector>
#include "lexical.h"
namespace Stone
{
class AstLeafNode;
class AstNumber;
class AstIdentifier;
class AstString;
class AstOperation;
class IVisitor
{
public:
virtual boo... |
1ae5f0236d701029e1587e03737a19dfe9ca54f6 | 783c9e1061bb55541f873cfcd86d82fc20be2eb2 | /ProcToThreads/main.cpp | 71037a83e07cc2d09e6852e0747d3a6ea454e8ec | [] | no_license | Komdosh/MPI_TESTS | f4cbae2e460c0c6d45b7ab7cc3125f0985b80e0d | d16e8c8c3504355e96a6110c923c9cb6d887b78b | refs/heads/master | 2020-03-30T08:41:55.116055 | 2020-01-19T12:14:39 | 2020-01-19T12:14:39 | 151,032,770 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,075 | cpp | main.cpp | #include <iostream>
#include <x86intrin.h>
#include <mpi.h>
#include <unistd.h>
#include "cpu_helper.cpp"
int ELEMENTS = 50000;
int CORES = 4;
int NUM_OF_THREADS = 3;
int RATE = 10000;
using namespace std;
struct ThreadData_s {
int threadId;
int rank;
int *shared;
double *times;
};
typedef ThreadDat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.