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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
52620e98159c90ff11cd1c3d56c9626bb62d504e | 17e77e661335e91326d72e53bfa068bd5fb79b1a | /PropRoom3D/Team/ArtDirector/Film/Tile.cpp | 7106b7df6638c45d865cee8f68de604ec6c0f528 | [] | no_license | wibus/ExperimentalTheatre | cfd92546aed84138d21ad9845bf4518c828badf8 | 46c0e83d2319c5731fc7a7dbad6b0efee95d289c | refs/heads/master | 2020-04-04T07:41:51.935537 | 2019-03-19T08:03:57 | 2019-03-19T08:03:57 | 7,976,973 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,817 | cpp | Tile.cpp | #include "Tile.h"
#include "Film.h"
namespace prop3
{
const glm::ivec2 Tile::END_PIXEL = glm::ivec2(-1,-1);
TileIterator::TileIterator(
Tile& tile,
const glm::ivec2& startPos) :
_tile(tile),
_position(startPos)
{
}
double TileIterator::sampleWeight() con... |
8ff61c26bec8b6a8e1e2873ef3ac543ede548cd5 | 15f0514701a78e12750f68ba09d68095172493ee | /C++/859.cpp | ced13f5505fa76a87bec348abfbcdc8e483c9d96 | [
"MIT"
] | permissive | strengthen/LeetCode | 5e38c8c9d3e8f27109b9124ae17ef8a4139a1518 | 3ffa6dcbeb787a6128641402081a4ff70093bb61 | refs/heads/master | 2022-12-04T21:35:17.872212 | 2022-11-30T06:23:24 | 2022-11-30T06:23:24 | 155,958,163 | 936 | 365 | MIT | 2021-11-15T04:02:45 | 2018-11-03T06:47:38 | null | UTF-8 | C++ | false | false | 1,601 | cpp | 859.cpp | __________________________________________________________________________________________________
sample 4 ms submission
auto speedup =[]() {
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
return nullptr;
}();
class Solution {
public:
bool buddyStrings(const string& A, cons... |
f785fc1b902c6765cff3bfcadf5efd0c8f812a8b | f6602796607fdbe2286dad795090aad7e4e89312 | /dragonpoop_alpha/dragonpoop/gfx/dpbitmap/dpbitmap_bitmap_loader.cpp | 43368decef8bae04e5bc7a1478a8f0255b76ca27 | [] | no_license | rvaughn4/dragonpoop_alpha | a38ffde088a35d7c43a0e96480fd99ac2e2794a9 | 5a516c21749a63c951cb19c75f6325b9af484d4e | refs/heads/master | 2020-04-05T22:51:38.273761 | 2016-01-20T09:54:11 | 2016-01-20T09:54:11 | 39,721,963 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,442 | cpp | dpbitmap_bitmap_loader.cpp |
#include "dpbitmap_bitmap_loader.h"
#include <fstream>
#include <string.h>
namespace dragonpoop
{
//ctor
dpbitmap_bitmap_loader::dpbitmap_bitmap_loader( dpbitmap *img )
{
this->img = img;
}
//dtor
dpbitmap_bitmap_loader::~dpbitmap_bitmap_loader( void )
{
}
//open file
... |
38f7b346453c463e3c6304691d5805f25f44adef | 9e4cb0c415adfaee2d4ac2866f9992aeae84200b | /C++ Object Videos/1-Class and Constructors/2-Member Functions/MemberFunction.cpp | 3da5567727fd2f2975c96e8d30ea02226d2a449f | [] | no_license | CyberChimeraUSA/Cpp-Tutorials | 1648e8efe8fdeb0ec7f6957f0a0cb71cbcac36e5 | 04245959be4e684b9faa81b0303fbb4754b748a8 | refs/heads/master | 2021-05-04T14:53:42.498165 | 2019-08-18T21:48:50 | 2019-08-18T21:48:50 | 120,214,317 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 995 | cpp | MemberFunction.cpp | //============================================================================
// Name : SimpleClassC++.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#in... |
56ec9f70575ffa0376116a943800a0e8685118a0 | 2ec7d1fd4b1343aaf5d92308a53e8590aa8236ef | /follow_traj_skcontrol/src/follow_traj_skcontroller.cpp | 369b2c8cf209776933230bd864e21982db500d84 | [] | no_license | JIeHaocn/Autodriving_Controller | 39cb75f05089327451ef1f403ecd16cfb0f1b8ef | 8e009996becba4f8e41be1d8e9b331eec0cd3fa5 | refs/heads/master | 2023-01-08T00:24:22.552454 | 2020-11-10T09:31:19 | 2020-11-10T09:31:19 | 289,200,848 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,271 | cpp | follow_traj_skcontroller.cpp | #include "follow_traj_skcontrol/follow_traj_skcontroller.h"
const bool DEBUG=true;
namespace DecisionSK{
SKControl::SKControl(ros::NodeHandle nh, const std::vector<double> &traj_points)
{
trajectory_points = traj_points;
control_signal_pub = nh.advertise<ackermann_msgs::AckermannDriveStamped... |
0ad2c17486209000cb94cfd875cdb2a46775592d | 101aa26f440ad6c9a754dda448e2a1064978775d | /Dictionary.h | 3a666b6b64e5cd6fddc96073f934a74b42515b40 | [] | no_license | MilkaValkanova/Data-structures-FMI-course--homework-3 | bcdf0a1a0a4056acebd82c643f54150e4bcf7b74 | 830a3bc46036c709cddef234dd79e2fe6291ab18 | refs/heads/master | 2021-01-25T07:50:17.437048 | 2017-06-07T20:24:53 | 2017-06-07T20:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 473 | h | Dictionary.h | /**
*
* Solution to homework task
* Data Structures Course
* Faculty of Mathematics and Informatics of Sofia University
* Winter semester 2016/2017
*
* @author Milka Valkanova
* @idnumber 45155
* @task 1
* @compiler VC
*
*/
#pragma once
#include "RadixTree.h"
#include <fstream>
class Dictionary
{
pr... |
3b73f121db0b7d9949708be490b349e3968bb2d2 | 7bd42a9171a339c3c352450b22d96b64e7a6a34d | /PathTracing_V2/Object_PT.h | 41b2b387f46558161de1796b59e4472cd209c2b7 | [] | no_license | SpectreSpect/PathTracing_V2 | 5f015d2921d033a29b1c63822c0cc12030b9c826 | abbe91fd48df98dac01af8899ae8034020dec833 | refs/heads/master | 2023-09-01T12:50:17.028173 | 2021-10-12T09:21:19 | 2021-10-12T09:21:19 | 277,036,919 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 210 | h | Object_PT.h | #pragma once
#include <vector>
#include "float3.h"
class Object_PT
{
public:
enum class ObjectType_PT
{
Model = 0,
Sphere = 1,
Camera = 2
};
ObjectType_PT type;
float4 albedo;
float4 emission;
};
|
6e4d4c9c12d43efb02a8773946217cd1f336ed0b | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_6377668744314880_1/C++/TimeString/+SUBMIT2.cpp | 4e04c22ea6f9b560bcd6ed538238d2617df4dde1 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,100 | cpp | +SUBMIT2.cpp | #include <stdio.h>
#include <algorithm>
using namespace std;
struct A {
long long x, y;
int dir;
A(long long _x = 0, long long _y = 0) : x(_x), y(_y) {
if (x > 0 && y == 0)
dir = 1;
else if (x > 0 && y > 0)
dir = 2;
else if (x == 0 && y > 0)
dir = 3;
else if (x < 0 && y > 0)
dir = 4;
els... |
674a39537e542287533ad9eb3cd811064ed4eb12 | 0eaf7140ca4ba760d81deb6a6ac81819beb89107 | /Weekly_197/1_Number_of_Good_Pairs.cpp | 1bfa3decac384e8b2a360de9404a535c44cf38e8 | [] | no_license | AshwinkumarPillai/LEETCODE_CHALLENGES | c1283509f6ea71f9c22cea595964f00370573a85 | a0971171aa8b3b372e42ca1c42e6cdd0ac35c149 | refs/heads/master | 2023-04-27T16:43:05.757152 | 2021-05-15T16:11:28 | 2021-05-15T16:11:28 | 268,556,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 344 | cpp | 1_Number_of_Good_Pairs.cpp | class Solution
{
public:
int numIdenticalPairs(vector<int> &nums)
{
long long ans = 0;
unordered_map<int, int> m;
for (int x : nums)
m[x]++;
for (auto p : m)
{
if (p.second > 1)
ans += (p.second * (p.second - 1)) / 2;
}
... |
cf7eb4325bc04c64b020fa6a2a567b55dd174e91 | 2d1f82fe5c4818ef1da82d911d0ed81a0b41ec85 | /UVaOJ/UVa11125.cpp | c65ebcd66fe30f8b73a7029515cff1b006b5f849 | [] | no_license | OrigenesZhang/-1s | d12bad12dee37d4bb168647d7b888e2e198e8e56 | 08a88e4bb84b67a44eead1b034a42f5338aad592 | refs/heads/master | 2020-12-31T00:43:17.972520 | 2020-12-23T14:56:38 | 2020-12-23T14:56:38 | 80,637,191 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,357 | cpp | UVa11125.cpp | #include <iostream>
#include <cstring>
using namespace std;
int dp[1<<12][4][4][4][4], t, n, idle, tot, table[5], S, C;
int dfs(int colour, int sz, int len){
if(!len) return (colour!=C)&&(sz!=S);
int state=0;
for(int i=0; i<4; i++)
state=(state<<3)+table[i];
if(dp[state][S][C][sz][colour]!=-1) r... |
1044468474496085ee1426c213dc23a4e1b4711d | 9d74b8a8d42a217669e27534132787b522829e03 | /sdk/YyShiKejiVideoServer/YyShiKejiVideoServer.h | 2ad760d1569b415a5cd39e4b306a67fc0090f8ae | [] | no_license | TommyZhang936/TChallaOld | c8450880135d1ff2392236e288c515ccb799216e | 6d980b31f40fc7e6b789b862e2e7f408296dadfc | refs/heads/master | 2020-07-01T08:15:02.259552 | 2016-11-10T01:32:59 | 2016-11-10T01:32:59 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 3,036 | h | YyShiKejiVideoServer.h | #ifndef HIKAN_VIDEOSERVER_H
#define HIKAN_VIDEOSERVER_H
#include "../../VideoServer/IVideoServer.h"
#include "NetDEVSDK.h"
#include <memory>
#include <mutex>
#include <string>
// #define LNM_TEST
class CFactory : public IVideoServerFactory
{
public:
CFactory();
~CFactory();
bool init();
void clean();... |
90f81df1c2cdaae231ffa8f0f67e6a63e5cbe1f0 | 0e93d7418c6ae4528a0d3d353080683ba7a3bd0a | /exceptions/include/exception.h | d1e86eaabb2880bec62909effecd4a25716d7a4a | [] | no_license | boa85/socks5_proxy | 3e3cfeeb536a52cfe59dc79736037ce0d1de6c4b | 996e5dc22d79cf31a5aa6f6dc7ed8c38dea3dd9d | refs/heads/master | 2021-01-23T01:12:14.028614 | 2017-09-05T08:15:35 | 2017-09-05T08:15:35 | 102,431,563 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,516 | h | exception.h | //
// Created by boa on 05.09.17.
//
#ifndef S5P_EXCEPTION_HPP
#define S5P_EXCEPTION_HPP
#include <boost/system/system_error.hpp>
#include <exception>
#include "../../service/include/service.h"
namespace socks5_proxy {
namespace exceptions {
using namespace service;
class BasicError : public st... |
aa293353c47365294eeb6d797a43181dfaccadc1 | 352f43aab0521dcdb4897298961daed575d457f6 | /BOCA/BE/src/generator.cpp | 2f0502ec100bca249f446f1d7eb6e283d7d5c688 | [
"MIT"
] | permissive | danielsaad/PC1-IFB-CC | 012947dff72b55a1acb83fd1453102ff55dd2247 | 36b55e95373a5f022651545248d8cb66bac1cd3f | refs/heads/master | 2022-02-21T22:23:59.122236 | 2019-10-18T14:06:08 | 2019-10-18T14:06:08 | 100,300,073 | 1 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,561 | cpp | generator.cpp | #include "testlib.h"
#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
const int MIN_N = 1;
const int MAX_N = 1000;
const int MIN_K = 0;
const int MAX_K = 95;
const int MIN_L = 1;
const int MAX_L = 80;
const int rnd_test_n = 100;
const int extreme_test_n = 100;
string generate_line(int n){
... |
0c4ec965d410c092c92317976fe5b04f09711259 | 928198c9e8696396f1447c7ec2a8e20e6efacec9 | /1238B.cpp | 859d81b142944d9030c8b8d9749c1b0ffaa6b8b1 | [] | no_license | Jeeukrishnan/codeforces_solution | 98f691b22f99bcc963a3fe99421ab923f8abab19 | f6755510ca737e8d2a0763933ed9fe5119027f6d | refs/heads/master | 2020-08-18T23:15:58.302842 | 2019-12-27T16:51:20 | 2019-12-27T16:51:20 | 215,846,534 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 878 | cpp | 1238B.cpp | /*#include<bits/stdc++.h>
using namespace std;
void jeeu()
{
int n,k;
cin>>n>>k;
vector<int>a(n);
for(int i=0;i<n;i++)
{cin>>a[i];}
sort(a.begin(), a.end());
//a.erase(unique(ar.begin(),ar.end()),ar.end());
a.erase( unique( a.begin(), a.end() ), a.end() );
int count=0;
for(int i=n-1;i>=0;i--)
{
/... |
3af6f34f461735123d9510410bc03ee5a7e3bcd5 | f2c845dd4096f909eea40418194c6eb5596dd584 | /RiestraRenderEngine/ModelCreator.cpp | 8de41ada393d2a5023d52747ac4eeeb1b0c06ba0 | [] | no_license | christianrxd/RiestraRenderEngine | d2a92fb9f5bf7d03994294da240def030bd3622f | f08e01122200e736f81ee500ac06ca0e784bf823 | refs/heads/master | 2020-08-05T16:38:27.424041 | 2019-10-03T17:17:25 | 2019-10-03T17:17:25 | 212,617,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,436 | cpp | ModelCreator.cpp |
#include <vector>
#include <string>
#include "ModelCreator.h"
#include "Vertex.h"
#include "Plane.h"
#include "Model.h"
using namespace std;
ModelCreator::ModelCreator()
{
}
Model ModelCreator::CreateCube(double size)
{
Vertex A = Vertex(-size, -size, -size);
Vertex B = Vertex(-size, -size, size);
Vertex C = Ve... |
31ef34d859d6ba323999cb42ae88e6a920384d6e | 9970998bdcd1a0552a95a932e9a594c421a77125 | /98/main.cc | f6411df0a695883f9ffc48e3bd76cdaca3d2c8d9 | [] | no_license | steliospaps/stelios-paps-project-euler | 277957c659e924fd661877e9611e855ddb91652c | fad8a210cdb91a93100f1348f2109ec397bc577d | refs/heads/master | 2016-09-02T02:01:59.744407 | 2015-10-24T21:46:45 | 2015-10-24T21:46:45 | 4,705,411 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,888 | cc | main.cc | #include <iostream>
#include <fstream>
#include <map>
#include <set>
#include <algorithm>
#include <vector>
using namespace std;
typedef map<string,set<string> > map_t;
bool is_square(const int num){
int max=num;
int min=1;
while(true){
int mid = min + (max-min)/2;
int mid2=mid*mid;
if(min>max){
... |
a56178540326ca2f14ec0282c0dac7998e3e4622 | 5724c6c5cbece818d7ad776d1e1c59181e404f6f | /d01/ex09/main.cpp | 0c2600fc86263caf135f611da4a0fddfad4345ca | [] | no_license | etugoluk/CPP_pool | 17d40b77a117f983ca37f831550f87a39c153fca | 863a2f2e1d85aece6373f88e56609a5b133a3916 | refs/heads/master | 2020-03-29T20:37:52.472717 | 2018-10-14T17:26:36 | 2018-10-14T17:26:36 | 150,322,213 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,048 | cpp | main.cpp | // ************************************************************************** //
// //
// ::: :::::::: //
// main.cpp :+: :+: :+: ... |
2001aac8eb6bfb0bd30558cd7c707033560de1ae | 26f8306fc51a45f75bc42b6d33b9aba3ad2598e3 | /CS211/prog5/proj5Main.cpp | 4ac50a5539aa5fae166ee0b5fd647b708031bc88 | [] | no_license | LachezarLyubenov/Completed-Projects | 51359d14e711dc1dd5f4688566ae2a30475fc3dd | 4308513863e7e0786517d2db94898352718a40fa | refs/heads/master | 2020-03-19T08:42:20.426856 | 2018-06-05T20:42:20 | 2018-06-05T20:42:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,740 | cpp | proj5Main.cpp | <<<<<<< HEAD
/* This file contains the user interface code for the Infix Evaluation Project
* Project 5 for CS 211 for Fall 2017
*
* Date: 03/19/2018
*
* Author: Lachezar Lyubenov
*
*/
#include "proj5Tokens.h"
#include "myStack.h"
bool debugMode = false;
void printCommands();
void processExpression (Token i... |
9c6a7697b2c3b0f1466972c1b3d2ec17b483e192 | 3d28c9c97f8a4ee9b8e7a5f30acc9cd574de7c02 | /paper_1_question_1.cpp | a681c169abfb07b13530717c1ba5872f2bfd169e | [] | no_license | disha03/C-Solution | 4cd6987bb4587c24ec46df2bce846a8a1e27e869 | 1aef042af3167c1916e6f36873193f39c5461570 | refs/heads/main | 2023-02-20T02:41:09.590136 | 2021-01-18T11:35:37 | 2021-01-18T11:35:37 | 330,646,436 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | cpp | paper_1_question_1.cpp | #include <bits/stdc++.h>
using namespace std;
priority_queue<int>maxi;
priority_queue<int,vector<int>,greater<int> >mini;
vector<double>Median(vector<int> a) {
vector<double>result;
for(int i=0;i<a.size();i++){
int num=a[i];
if(maxi.empty() || num < maxi.top())
maxi.push(num... |
16207004a777e4f8ea6fca59220b5e77d7f57754 | 6497be8e118c9a5cd6376392dd2fce45429f8d1f | /Graphs/graph.cpp | 6aeb5d6cb8790c4ac229e4e54d6fec60bd46fc42 | [] | no_license | g33kyaditya/DS-A | 6632d805bef2ef892f4ca9ff4c9c7ed07deeb5f7 | 11335ede96efd7fe0f2cb995bd7139388ece298e | refs/heads/master | 2020-04-06T06:55:09.295016 | 2016-08-29T18:24:50 | 2016-08-29T18:24:50 | 65,494,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,229 | cpp | graph.cpp | #include "graph.h"
#include <queue>
Graph::Graph(int total) {
V = total;
adj = new list<int>[V+1];
}
void Graph::addEdge(int vert1, int vert2) {
adj[vert1].push_back(vert2);
adj[vert2].push_back(vert1);
}
void Graph::BFS(int start) {
bool *visited = new bool[V+1];
for (int i = 0; i <= V; i++)... |
96e73616f7031ce348744d573ef91bed838431fe | e1e23e6eb20425c43e0ba869b6e47917bc811593 | /model_wrappers/cpp/ClipperRPC.cpp | 7b44d0c155b07c248c8086dee67aae7a71da02b6 | [] | no_license | HuaizhengZhang/clipper-v0 | cf5705e2aac2b57e35450b569971f85a9cdd00f6 | cb7913d3fb040a066adbc7ec95beb14a49ab54eb | refs/heads/master | 2020-08-08T02:25:34.523877 | 2016-10-14T23:51:00 | 2016-10-14T23:51:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,309 | cpp | ClipperRPC.cpp | #include <arpa/inet.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include <vector>
#include "ClipperRPC.h"
#include "Model.h"
#define SHUTDOWN_CODE 0
#define FIXEDINT_CODE 1
#define FIXEDFLOAT_CODE 2
#define FIXEDBYTE_CODE 3
#defi... |
2ccfbefe5d426d4c9b7930b6ef2a09fcc8e48152 | bde250a5bd97435abf0ffa505ba3da1f129720d8 | /security/gina/gpext/appmgmt/common/dbg.hxx | 64142a89d3dee0e27d880047f6de52d4df37fac8 | [] | no_license | KernelPanic-OpenSource/Win2K3_NT_ds | f45afd1a1243e42a8ccb489048f4a73946dad99f | 0d97393773ee5ecdc29aae15023492e383f7ee7f | refs/heads/master | 2023-04-04T00:34:51.876505 | 2021-04-14T04:49:28 | 2021-04-14T04:49:28 | 357,774,650 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,230 | hxx | dbg.hxx | //*************************************************************
//
// Copyright (c) Microsoft Corporation 1998
// All rights reserved
//
// dbg.hxx
//
//*************************************************************
#ifndef __COMMON_DBG_HXX__
#define __COMMON_DBG_HXX__
extern HINSTANCE ghDllInstance;
extern DWORD g... |
87b574d388dea26d3a908dccd419c85ac11704ba | accd6e4daa3fc1103c86d245c784182e31681ea4 | /HappyHunter/Core/d3dutils.cpp | ad85766ebcabda02eb2003a89633d22a1ddf6ca4 | [] | no_license | linfuqing/zero3d | d87ad6cf97069aea7861332a9ab8fc02b016d286 | cebb12c37fe0c9047fb5b8fd3c50157638764c24 | refs/heads/master | 2016-09-05T19:37:56.213992 | 2011-08-04T01:37:36 | 2011-08-04T01:37:36 | 34,048,942 | 0 | 1 | null | null | null | null | ISO-8859-7 | C++ | false | false | 16,837 | cpp | d3dutils.cpp | #include "StdAfx.h"
#include "d3dutils.h"
using namespace zerO;
void zerO::UpdateSkinnedMesh(
const D3DXMATRIX *pBoneTransforms,
zerO::UINT uNumBones,
const void* pVerticesSrc,
void* pVerticesDst,
zerO::UINT uNumTotalVertices,
... |
7493ec2d0f5432f1e1383b6b86191b735ad54da4 | 4d4c880d587af089410aae114c93acaf4ff34ae2 | /src/interface/TWAnySigner.cpp | 2aab0fd9df06dcf32c440b0160cb215491cbb9a3 | [
"MIT"
] | permissive | kudryavchik/wallet-core | a2bc6d33235f858223dc632ea8712433b634337e | cfbde7b4497e1f2e24c2360295c5052ddc5862c2 | refs/heads/master | 2020-09-29T06:45:47.625228 | 2019-12-08T22:22:54 | 2019-12-08T22:22:54 | 226,979,149 | 2 | 0 | MIT | 2019-12-09T22:21:15 | 2019-12-09T22:21:14 | null | UTF-8 | C++ | false | false | 1,523 | cpp | TWAnySigner.cpp | // Copyright © 2017-2019 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include <TrustWalletCore/TWAnySigner.h>
#include "Any/Sig... |
ae0d42e01479b3b79cfdc924801ed35c6a14f73a | 2ef0b8d082d16426edd4bb03204a805dfc52e626 | /mt-kahypar/datastructures/array.h | aedecd65c20c56afeaa58ae08e972474c40e51f4 | [
"MIT"
] | permissive | kahypar/mt-kahypar | 1a0e0980cd60d6951c5562fcbfaab70d622cf1da | 858c9f0e1123d75c47de142edd49f4662be1d8d1 | refs/heads/master | 2023-09-03T21:31:24.741019 | 2023-08-23T08:51:04 | 2023-08-23T08:51:04 | 205,879,380 | 76 | 18 | MIT | 2023-09-13T13:12:28 | 2019-09-02T14:54:18 | C++ | UTF-8 | C++ | false | false | 13,405 | h | array.h | /*******************************************************************************
* MIT License
*
* This file is part of Mt-KaHyPar.
*
* Copyright (C) 2019 Lars Gottesbüren <lars.gottesbueren@kit.edu>
* Copyright (C) 2019 Tobias Heuer <tobias.heuer@kit.edu>
*
* Permission is hereby granted, free of charge, to an... |
d7a694473893243eee9b8dd1cd95f5f93e29d849 | 0af6a4592d013e4b563e25a58f62f4cf77a74a2c | /adrenosdk-linux/Development/Samples/Framework/Model/FrmVertexBuffer.cpp | 9f6c306046a49ee670499de1d435018317a7e498 | [] | no_license | sunzhiyuan/opencl | b03f8deb4034f254245d6d40b6cd06acbb89d1bd | 9e0e9a46b4ec1e336eecd4f4d167f69e04b26dbc | refs/heads/master | 2016-09-10T02:08:07.636786 | 2014-12-12T05:12:39 | 2014-12-12T10:41:43 | 27,906,253 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,135 | cpp | FrmVertexBuffer.cpp | //-----------------------------------------------------------------------------
//
// VertexBuffer
//
// Copyright (c) 2011 QUALCOMM Incorporated.
// All Rights Reserved. QUALCOMM Proprietary/GTDR
//
//-----------------------------------------------------------------------------
#include "FrmVertexBuffer.h"
//-... |
2ee479b558e7c3cf4bc4a5916a5e1bf69b8584e7 | 624a105dbe52630ac0cb123e69c0ace95fe9d34b | /1st semester/hw07/02/main.cpp | 207a3894d157acc0a1d6add24eee9c8e51cd774b | [] | no_license | Axroy/SPbSU_study | f6769618d5ca4279a1a8a6cf1c90f0153461e948 | 6bd43d1b3e4105f898d1960f823b44595be020f9 | refs/heads/master | 2020-12-25T17:03:59.820392 | 2016-06-01T14:33:10 | 2016-06-01T14:33:10 | 30,873,932 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 995 | cpp | main.cpp | #include <stdio.h>
#include "line.h"
int main()
{
//char array[3] = {'a', 'b', 'c'};
char array2[5] = {'e', 'd', 'c', 'b', 'a'};
Line *test = createLine();
Line *test2 = createLine(50);
Line *test4 = createLine(3, "abc");
Line *test5 = createLine(5, array2);
printLine(test4);
printL... |
60043fbc34c08dd0df74578c809f020fbf672b5c | 469100067213102f9942bc375ffb74c098cc0337 | /hdu/5349/main.cpp | bee3061cef09e69be73809a9f4430258343f7279 | [] | no_license | xuziye0327/acm | 52c2dc245ad8bf5a684da677a0ebe57e0b4f8a59 | e0737fdbbebc698e2f36e3136c8939729cad50b9 | refs/heads/master | 2021-04-22T12:59:31.525803 | 2016-11-13T08:44:23 | 2016-11-13T08:44:23 | 41,278,480 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | cpp | main.cpp | #include <cstdio>
#include <set>
using namespace std;
int main() {
multiset<int> m;
int n;
scanf("%d", &n);
while(n--) {
int x, cmd;
scanf("%d", &cmd);
if(cmd == 1) {
scanf("%d", &x);
m.insert(x);
} else if(cmd == 2) {
if(!m.empty())
... |
6166e8b1cf7f78bec41066e8f15b499307d605a9 | db92214392a7f20a8a7c9713cd9e8ba4b2d94c7a | /algorithm/isMatch.cpp | ac803134b3895107059e6c1b89d1e4b282de74d9 | [] | no_license | SoftwareKiller/ubuntu | fd2af7be1738bdbdccd38a58c7f17b340f618363 | 6bf390fc8d8c3efc17a7db3331d5f5405abd05bf | refs/heads/master | 2022-01-29T23:26:56.528101 | 2022-01-11T08:38:03 | 2022-01-11T08:38:03 | 137,650,835 | 1 | 0 | null | 2020-12-16T15:21:42 | 2018-06-17T11:42:35 | C++ | UTF-8 | C++ | false | false | 4,761 | cpp | isMatch.cpp | #include <cstring>
#include <iostream>
#include <string>
#include <vector>
/*
* 正则表达式匹配.*两个符号
* */
using namespace std;
/*
* 用状态机太复杂,解题失败,还是得动态规划
* */
bool isMatch_(string s, string p)
{
int m = s.length();
int n = p.length();
int i = 0, j = 0;
char star = '*', point = '.';
enum STATUS{
... |
af53d6a1c317e87cdb1a5824d2850ec1202a76ce | 43083741d5eb9bc75e5bcafe5696bbfc0d79ef92 | /A/colorful_stones.cpp | 4b52425159005f75f1d580a2aff1a20f1c73b487 | [] | no_license | shubhamamsa/Code-Forces | bf6bdb57ef801bfe48aa218e60dd2beaa0997aa7 | e45dbf4c70ae10abfd6960cffccd2d4242b695ac | refs/heads/master | 2021-12-23T22:25:07.588221 | 2021-09-28T14:14:44 | 2021-09-28T14:14:44 | 187,487,958 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 255 | cpp | colorful_stones.cpp | #include<iostream>
using namespace std;
int main() {
string s, t;
getline(cin, s);
getline(cin, t);
int k=0;
for(int i=0;i<t.size();i++) {
if(t[i] == s[k])
k++;
}
cout << k+1 << endl;
return 0;
} |
96f143ca2049da9598fd94d4f05e85d75ae9de7e | 508efd553572f28ebeb93bac77d913b514094256 | /codeforces/222A.cpp | 73f33ac62012a7f2f7c54aed2db8c05befc8112c | [] | no_license | pimukthee/competitive-prog | 4eaa917c27ddd02c8e4ff56502fa53eb7f884011 | 0a40e9fe8b229ce3534ad6e6e316e0b94c028847 | refs/heads/master | 2021-05-23T05:59:02.243040 | 2018-06-08T08:54:03 | 2018-06-08T08:54:03 | 94,750,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 318 | cpp | 222A.cpp | #include <bits/stdc++.h>
using namespace std;
int a[100005];
int main() {
int n, k;
scanf("%d %d", &n, &k);
for(int i = 1; i <= n; i++) scanf("%d", &a[i]);
int i = k;
while(a[i] == a[k]) i++;
while(k >= 1 && a[k] == a[i - 1]) k--;
printf("%d", (i == n + 1) ? k : -1);
return 0;
}
|
6184ed8be1c1e4f5e08ba6126bbc18b16937e7c1 | b0049e549a2437cbd76acab350a7e7eb18a9b10e | /mincost_maxflow_dijkstra.cpp | facd2d0c59d28fc2fea1c6443f3b00bdf2439f2f | [] | no_license | Forestryks/algo | 1b8341329b02d76c00da443230accf0a94d40813 | 13730391d13f94238fd86f2038f47eee8b4d71b7 | refs/heads/master | 2020-05-04T23:52:53.526824 | 2020-01-16T13:00:11 | 2020-01-16T13:00:11 | 179,558,183 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,351 | cpp | mincost_maxflow_dijkstra.cpp | ///////////////////////////////////////////////////////////////////////////////////////////////
#include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
#define FAST_IO ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#define FILE_IO(x) freopen((string(x) + ".in").c_str(), "r", ... |
b6d7724f2e18f22add84cc95fc91fff0b6e31c5b | f57610ce330076f2ba95041bbf5f295a9ef40dfe | /Solution/058-length-of-last-word/length-of-last-word.cpp | 0284d8b97c1a5e28192f1c0b137cff11a21c4761 | [] | no_license | derek-zr/leetcode | 095df86dd00c85b98a3f3ef51e784a65ab75c13d | ec7edcca6a63648d87bed6dd557738b89511368d | refs/heads/master | 2021-01-21T21:07:07.114659 | 2020-11-27T09:29:35 | 2020-11-27T09:29:35 | 92,308,067 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,333 | cpp | length-of-last-word.cpp | // Given a string s consists of some words separated by spaces, return the length of the last word in the string. If the last word does not exist, return 0.
//
// A word is a maximal substring consisting of non-space characters only.
//
//
// Example 1:
// Input: s = "Hello World"
// Output: 5
// Example 2:
// Input:... |
d4d73a10695fcec86c368b1a577e2b41b546d950 | 4ce67fdf156419061474082db726a0113264b3ae | /xkill-renderer/DebugShapeD3D.cpp | a18d326f570146e57a98003d0b312e9610cdb383 | [] | no_license | L0mion/xkill-source | 559d179fa2262a260ddef88bfcf02ad72eea47d7 | 08709ac9cff31b4b1dd05a1aff3884fa4def3a90 | refs/heads/master | 2016-08-02T21:31:58.845252 | 2014-04-02T18:57:10 | 2014-04-02T18:57:10 | 6,520,111 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | cpp | DebugShapeD3D.cpp | #include "VB.h"
#include "IB.h"
#include "DebugShapeD3D.h"
DebugShapeD3D::DebugShapeD3D(VB<VertexPosColor>* vb)
{
vb_ = vb;
}
DebugShapeD3D::~DebugShapeD3D()
{
if(vb_)
delete vb_;
}
VB<VertexPosColor>* DebugShapeD3D::getVB() const
{
return vb_;
} |
471180a7872a53c8f3c10ecec016ab1136412bc6 | 63d7819a32a5dcfb3396e764265601b8844c6f36 | /src/Planner/Conditions/BaseCondition.h | dd083842b7cacc666de29da1a719afc3ee99a22b | [
"MIT"
] | permissive | ddelamare/BotWithAPlan | a360c09b6ee88345105da8e5c927a221fad4bc52 | 534dfd55ea767b7d860da720f7a65a211c2c8ea4 | refs/heads/master | 2021-06-02T23:10:31.673710 | 2020-07-18T03:13:34 | 2020-07-18T03:13:34 | 119,787,556 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,026 | h | BaseCondition.h | #pragma once
#include <vector>
#include <string>
#include <iostream>
#include <stdarg.h>
#include "Common/ResourceState.h"
#include "Common/Resource.h"
using namespace std;
class BaseCondition
{
private:
protected:
string name = "Generic Condition";
bool HasAllResources(ResourceState* state);
ResourceMap requiredRe... |
f06efb268caec86e3eb38803be30c6b148dad2f2 | e2171ad810384af43f7b5a88bfb6bdfd2ee20bea | /Technology-Challenge/【Cookies】人脸识别/TYSMRTE/TYSMExtension/Extension/brfv4/utils/BRFv4PointUtils.hpp | e2d82782e80b39218d6226f5ae4be1a05792a60f | [
"MIT"
] | permissive | AgoraIO-Community/RTE-2021-Innovation-Challenge | 249965c82697d1b248f39fbf2df6a3cbd6de6c78 | 558c96cf0f029fb02188ca83f60920c89afd210f | refs/heads/master | 2022-07-25T12:27:17.937730 | 2022-01-21T12:58:11 | 2022-01-21T12:58:11 | 355,093,340 | 36 | 128 | null | 2021-11-07T17:13:28 | 2021-04-06T07:12:11 | C++ | UTF-8 | C++ | false | false | 2,803 | hpp | BRFv4PointUtils.hpp | #ifndef __brf_BRFv4PointUtils_hpp
#define __brf_BRFv4PointUtils_hpp
namespace brf {
class BRFv4PointUtils {
public: static double PI;
public: static double abs(double a) {
return (a < 0.0) ? -a : a;
}
public: static double max(double a, double b, double c) {
double _max = a;
if(b > _max) _max = b;
if(c... |
deadec356f8e4c01b22dad05dae5c2605a732e03 | ba7d6989b8a7fadfe8a35dfa6cb3f1b5a69821a0 | /C++笔记/第九章/9-8/9-8/9-8.cpp | 4c7c2e6ebce5f96350dadd0dee2c4025be15a8ce | [] | no_license | GJP1106/C-_Study | 4e14116db6a3927d32541609f657ae92cf0b49d2 | 465bcbcef412e9ee85394d0a40b042df38a72ce1 | refs/heads/master | 2020-10-01T06:49:19.092299 | 2020-04-20T23:57:04 | 2020-04-20T23:57:04 | 227,479,151 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,279 | cpp | 9-8.cpp | // 9-8.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include <iostream>
#include <vector>
#include <map>
#include <functional>
#include <algorithm>
using namespace std;
class CT {
public:
void myfuncpt(int x, int y) {
auto mylambad1 = [this] //无论是this,还是& 或者 = 都可以达到访问类成员的目的
{
return m_i; //因为有了this,这个访问合法的,用& ... |
22ca6a9905758c28c55f922c4f394a9a45b18a5c | 37bc7a0855886c005fbdf2e1e0f3f0cda42d7a52 | /Laboratorio/laboratorio.cpp | 6981a9bccfa8d89446286b7bbce08c411df99ff8 | [] | no_license | AugustoNicola/OIA | edfc3eb7426d2e4bd657842adef86fd923401412 | 93d474e8b8eed671dd1d334b00bd48edf5a16b37 | refs/heads/main | 2023-05-09T09:08:59.646383 | 2021-05-22T15:48:33 | 2021-05-22T15:48:33 | 304,144,206 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,586 | cpp | laboratorio.cpp | #include <vector>
#include <string>
#include <iostream>
#include <utility>
#include <queue>
using namespace std;
void BFS(int x, int y);
struct baldosa
{
bool visitado = false;
bool accesible = true;
bool esEntrada = false;
};
pair<int,int> movimientos[4] = {{-1,0}, {0,-1}, {1, 0}, {0,1}};
vector<vector<baldosa>... |
1935c95c1fa7ae891a407c2b46593edf2c574796 | 1949be1776c4124cd19cced3f9130b320628a871 | /source/m.cpp | 23f7caca54b1561f0bc5fd50f1066b8c42edaa86 | [] | no_license | pulsar541/gish2 | 88abb769b893db49f1e40f9977d328decef60191 | d5d39259fafa4b22f9efb3eb236ed9c5c3df8676 | refs/heads/master | 2022-11-20T16:13:01.939015 | 2020-07-20T13:58:51 | 2020-07-20T13:58:51 | 279,861,063 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 59,249 | cpp | m.cpp |
#include "glut.h"
#include <windows.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <time.h>
#include <vector>
//#include<gl/glaux.h>
//#include "tgalib.h"
using namespace std;
float crossX ;
float crossY ;
int curDescI, curDescJ;
#include "mystuctures.h"
#include "constants... |
d2328b45a2235ae55461d826124ebe68c84171c3 | 9a7002b81fc92b5d236b70c9b39d780b3169e56c | /DigitalPotmeterMCP413/DigitalPotmeterMCP413.h | 8ae2952d5a34d70fe2b02a4cffd5e9845559b993 | [] | no_license | jantje/ArduinoLibraries | 83eb674f271715f1eed690a6efdcaed11a6a9c0a | 2948767a3a8c0bd42976e86139b94381f61ff0e6 | refs/heads/master | 2023-08-31T13:03:04.706402 | 2023-08-17T23:30:34 | 2023-08-17T23:30:34 | 6,447,136 | 13 | 15 | null | null | null | null | UTF-8 | C++ | false | false | 712 | h | DigitalPotmeterMCP413.h | /*
* MCP413.h
* This is a library for a digital pot meter MCP413
*
* Created on: Jul 11, 2014
* Author: jan
*/
#ifndef MCP413_H_
#define MCP413_H_
#include "SPI.h"
#include "DigitalPotmeterInterface.h"
#include "SerialDataInterface.h"
class DigitalPotmeterMCP413 :public DigitalPotmeterInterf... |
14c98c60719dfcacb9555e0d82df689e51f6fc37 | 87fc55495c5f2ab5ef969fa53e59a2d14f6a9ec7 | /Labs/Labs/Includes/task_8/task1.cpp | ce4f2b53ef700610b033b9537c584196eec479ae | [] | no_license | PetrashkoEV/Labs | 02809c9f9f5e31f0c8ba2917090ab958828bfcdd | 2cd6b20d5080d304aea5f78c32ff7c72e64a6322 | refs/heads/master | 2021-01-11T12:16:09.539871 | 2016-12-14T21:10:07 | 2016-12-14T21:10:07 | 76,495,021 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 3,720 | cpp | task1.cpp | #include <iostream>
#include <math.h>
using namespace std;
int main ()
{
int n;
double z[50]; // заводим массив
cout << " Введите колличество элементов массива ";
cin >> n;
if (n>50 || n<1)
{
cout << " Количество элементов массива введено не правильно. Количество элементов масива не должно быть БОЛЬ... |
f410324919ab0d6fe63b42c966402bd42fefc9c2 | ff632878f47254912d921839bffde8a51d68043c | /Project/Combat/AttachToParent.cpp | 410a739d812d479cb75dabc641ee44a015b12741 | [] | no_license | UnknownFreak/OneFlower | d1eb55b3c227cdd130c8d3e8f4e256fd86bf624b | 15d8884a97f55049d7af346dab209a37c7ebf46f | refs/heads/master | 2023-08-31T03:32:59.450862 | 2022-05-04T19:23:02 | 2022-05-04T19:23:02 | 154,447,719 | 0 | 0 | null | 2019-06-02T19:08:50 | 2018-10-24T06:06:49 | C++ | UTF-8 | C++ | false | false | 690 | cpp | AttachToParent.cpp | #include "AttachToParent.hpp"
#include <Object/GameObject.hpp>
Enums::ComponentType Component::IBase<Component::AttachToParent>::typeID = Enums::ComponentType::AttachToParent;
Core::String Component::IBase<Component::AttachToParent>::componentName = "AttachToParent";
namespace Component
{
AttachToParent::AttachToP... |
b3fc3ef732b64a9b6bd7e954f6efb0a66ad22bc1 | 2b3f654cb0ab862291055d0969e1f180add3d420 | /LN.hpp | 00cfa733ba3e38d79cb04d240a28a30500fc0bc7 | [] | no_license | MaxFanCheak/BigInteger | 4a780893ea697c1ca79348dcb80b91e7c1210a5f | 923a4a74c2c8c62990f77ee0d063d76d99a09f1c | refs/heads/main | 2023-06-16T23:09:13.403036 | 2021-07-06T13:01:16 | 2021-07-06T13:01:16 | 383,469,926 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,554 | hpp | LN.hpp | #ifndef LN_LN_H
#define LN_LN_H
#include <string_view>
using namespace std;
class LN {
public:
explicit LN(long long number = 0);
LN(LN const ©);
LN(LN &©) noexcept;
explicit LN(bool number);
explicit LN(string_view number);
explicit LN(const char *number);
~LN();
LN &... |
1b90c9823566e5c4d98853b132255f6c8b1fded5 | 49270729758f95b53aea5c810db6f4a3a9ef09dd | /Game.cpp | 719ddc60334e31adefd1fadb63353f1efedfdb77 | [] | no_license | originpulses/Azul | 1c9b2403ad57ec92ecb63270467cac700a7fe011 | 88185d70c461e879bdfda100120188be5bc242dc | refs/heads/master | 2022-09-26T18:37:14.806943 | 2020-06-05T12:29:18 | 2020-06-05T12:29:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 45,117 | cpp | Game.cpp | #include "Game.h"
//Function to display the main menu and take user's input
int mainMenu() {
int choice = 0;
cout << "Menu\n";
cout << "----\n";
cout << "1. New Game\n";
cout << "2. Load Game\n";
cout << "3. Credits\n";
cout << "4. Quit\n\n> ";
string input;
getline(cin, input);
if (std::c... |
2e6ce86d531bd7f73f475c0af27e60e607a2c900 | 9d6b7fd81bcd26d68d855a8ed8e4014e27cda169 | /include/Dxx/VertexBuffer.h | 2e35c7e175ec870e60a9a0cfbe562bd90b759db0 | [] | no_license | jambolo/Dxx | 0e5fee662c0a092d16e3a925bdb19654778d49ef | 01a7dfcf0e7ecdc06193696db7c4b41573a552ae | refs/heads/master | 2021-01-13T15:55:16.319074 | 2019-02-06T07:42:02 | 2019-02-06T07:42:02 | 76,817,875 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 940 | h | VertexBuffer.h | #pragma once
#if !defined(DXX_VERTEXBUFFER_H)
#define DXX_VERTEXBUFFER_H
#include <windows.h>
#include <d3d11.h>
#include <dxgi.h>
namespace Dxx
{
//! @name Vertex Buffer Functions
//! @ingroup D3dx
//@{
//! Creates a static vertex buffer.
HRESULT CreateStaticVertexBuffer(ID3D11Device * pDevice,
... |
0bd1ff1596cef67562d5d0ddb6dc926274159ff2 | fa8d6d7d2c30de360c4f0bbcaa59167fcd582a03 | /TOI/TOI10_crazyadmin.cpp | c2703d117b23195f42abe1ec9b279e21e6dad8ad | [] | no_license | JodsintZ/roadtotoi | 0a699b5cbafa577696d0d20b3f7c977914c6b751 | e336227d34392af379632cb40d449727539976d5 | refs/heads/master | 2023-07-16T12:23:06.194672 | 2021-08-31T11:35:16 | 2021-08-31T11:35:16 | 212,324,761 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 768 | cpp | TOI10_crazyadmin.cpp | #include <bits/stdc++.h>
using namespace std;
int m, o, temp, sum, group, ans, mid, tans;
int a[105];
int main() {
scanf("%d %d", &m, &o);
for(int i = 0; i < o; i++) {
scanf("%d", a + i);
sum += a[i];
}
int l = 0, r = sum;
while(l <= r) {
mid = (l + r) >> 1;
group... |
5868727c3a3c339eb7829458e2025fdf527f77d5 | 0d23a2a3742108c94bdc940b90378aa5b1c90c5c | /stack/LongestValidParenthese32.cpp | 78d971539baccb8ed26142733a8e1f12d68f50fd | [] | no_license | lilelr/LeecodeProblemsSolutionsByC- | 108e7083185d3e41dbedf26a46986bc99928b435 | c17a64768672cf347fd64843317127c1ca56ad55 | refs/heads/master | 2021-01-19T04:50:19.710880 | 2019-06-11T07:13:00 | 2019-06-11T07:13:00 | 54,770,299 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,531 | cpp | LongestValidParenthese32.cpp |
#include <string>
#include <iostream>
#include <vector>
#include <cstdio>
#include <queue>
#include <map>
#include <stack>
#include <algorithm>
using namespace std;
// https://leetcode.com/problems/longest-valid-parentheses/description/
class Solution {
public:
/**
* 最长有效的括号长度
* @param s
* @return
... |
79345a33d0bae4b1a5de9c6f3909799753c11165 | fe22b7a0f9ab10170c513afb062d69cfba128ec2 | /src/tools/cali-query/query_common.h | abb3fd2c6ab2c5b40fd06a1ba45a0ae08b2de134 | [
"BSD-3-Clause"
] | permissive | LLNL/Caliper | ef5e9a6f408610dab404b58d29b53ddff2ce9708 | 764e5b692b2569f3ba4405f8e75126a0c35c3fab | refs/heads/master | 2023-09-04T00:11:12.741726 | 2023-08-30T14:10:20 | 2023-08-30T14:10:20 | 45,953,649 | 283 | 55 | BSD-3-Clause | 2023-09-14T01:34:46 | 2015-11-11T02:02:00 | C++ | UTF-8 | C++ | false | false | 1,781 | h | query_common.h | // Copyright (c) 2015-2022, Lawrence Livermore National Security, LLC.
// See top-level LICENSE file for details.
/// \file query_common.h
/// \brief Common functionality for cali-query and mpi-caliquery
#pragma once
#include "caliper/reader/QuerySpec.h"
#include "caliper/reader/RecordProcessor.h"
namespace util
{
... |
1bc92129fddd3c671ea619e749dbb865ed03f372 | a4d3dba301087a6ac8d72a43e952e21e6906a402 | /Task1/camelCase/ekam.cpp | a17a4d6b0fb74b5fe1ee598169a087e82c3ab15f | [] | no_license | knakul853/winter-resources | 0654b4409eab22a9c664148264497c76497d12d3 | a44494e52d918cb3436d3a1809a7e3cf9d41ecba | refs/heads/master | 2020-03-31T03:37:58.934185 | 2017-12-12T17:00:44 | 2017-12-12T17:00:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | cpp | ekam.cpp | #include<bits/stdc++.h>
typedef long long int lld;
using namespace std;
int main()
{
string s;
cin>>s;
int n = s.length();
string out = "";
for(int i=0; i< n-1 ; i++)
{
if(i == 0)
out += tolower(s[i]);
else if(s[i] == '_' && s[i+1] == '_')
continue;
... |
ade4af31697fbc59e21adf53921d87844d7c96c3 | d7dcf7f65e259b597c46e1614da743ba9dad5d7c | /app/src/main/cpp/Student.h | 9dc2fdbf392ff045b56ac2ca9d2f8641e4e6ba6b | [] | no_license | oliver-austin/QutieTutee | 28b02aa1293eaeea623b04b874897d1f5aa4f0bf | c325a5e134ff430a22ce4b0e7e1f3986aac47d02 | refs/heads/master | 2020-07-10T20:03:15.696394 | 2018-11-26T22:31:48 | 2018-11-26T22:31:48 | 204,357,337 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 190 | h | Student.h | //
// Created by Poe on 10/28/2018.
//
#pragma once
#include "User.h"
#include "Tutor.h"
class Student : public User{
public:
void rateTutor(Tutor tutor, int rating);
private:
};
|
fe4c904c1a29ae1684b11cf849cd0871e5a69fba | d18c4464af78f715ffc5d5addb1e005d018ca68d | /Voj/LsuACM 2018训练赛10——2015 CCPC南阳/H.cpp | b556060b5043e09a78501f9342b278010a8849ac | [] | no_license | xiaoshidefeng/ACM | 508f71ba7da6e603e8c6fbbccfa9d68d497f15a9 | b646ae0a624fc5db2d7ac46b7baef9a2779fef7b | refs/heads/master | 2021-01-19T22:05:47.518409 | 2018-05-14T14:09:51 | 2018-05-14T14:09:51 | 82,564,505 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,318 | cpp | H.cpp | #include<bits/stdc++.h>
using namespace std;
#define MID(x,y) ((x+y)>>1)
#define CLR(arr,val) memset(arr,val,sizeof(arr))
#define FAST_IO ios::sync_with_stdio(false);cin.tie(0);
const double PI = acos(-1.0);
const int INF = 0x3f3f3f3f;
const int N=2e5+7;
int n , counts, now;
char mp[7][7], mpcp[7][7];
bool vis[7][7];
... |
900764681e0bba5a62dc150842a20d53bdecfe4b | 51f2492a5c207e3664de8f6b2d54bb93e313ca63 | /codechef/oct17/chefgp.cc | 59c37c614f7917885ee969e2d79c71e74554394a | [
"WTFPL",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | abeaumont/competitive-programming | 23c5aabd587d7bb15a61efd3428838cb934233dd | a24c9b89941a59d344b51dc1010de66522b1a0dd | refs/heads/master | 2023-09-01T09:50:58.267361 | 2023-07-31T18:00:10 | 2023-07-31T18:00:10 | 117,589,708 | 618 | 262 | WTFPL | 2023-07-12T17:36:20 | 2018-01-15T20:00:56 | C++ | UTF-8 | C++ | false | false | 1,963 | cc | chefgp.cc | // https://www.codechef.com/OCT17/problems/CHEFGP/
#include <iostream>
using namespace std;
void f() {
string s;
int x, y;
cin >> s >> x >> y;
int a = 0;
int b = 0;
for (int j = 0; j < s.size(); j++) {
if (s[j] == 'a') a++;
else b++;
}
int ca = (a + x - 1) / x;
int cb = (b + y - 1) / y;
if (c... |
8c829ed2c381e8c3efba198db72b05ac6122fb6b | 54401a1847774e176acc87b177f39f2e9da38849 | /src/strap/mmkp/algorithm/lmck_base_solution.cpp | 2bfdad1bb1d7bbb1f2909dba9c7c22daf4b0e84b | [
"MIT"
] | permissive | likr/strap | 5c77274ab76ac0aff051af473d1e786b07d2ac5c | 387162116bab2031e8855f8c686560d7e656b417 | refs/heads/master | 2016-09-10T16:25:58.712659 | 2015-05-18T05:12:01 | 2015-05-18T05:12:01 | 35,797,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,281 | cpp | lmck_base_solution.cpp | #include <memory>
#include <strap/common/core/class_indexed_data.hpp>
#include <strap/common/core/index.hpp>
#include <strap/mckp/core/problem.hpp>
#include <strap/mckp/algorithm/lp_relaxation.hpp>
#include <strap/mmkp/core/problem.hpp>
#include <strap/mmkp/algorithm/lmck_base_solution.hpp>
#include <strap/mmkp/algorit... |
6b1e518b6424850eb7622320648088579a91c557 | 14853c830eb736c3f103f252fbfd2b7fab866601 | /Win32Project5/Win32Project5/Source.cpp | 219b6ee9f6f8b9fe2661982507640c0b5b3292a2 | [] | no_license | PoorLissa/DirX9 | d069fec08fac1961898f77f7ef119d0c80345af1 | 89cebb7fdd4093701f428f72621309c3d82dc0a7 | refs/heads/master | 2020-12-24T09:56:14.969243 | 2016-11-09T06:19:45 | 2016-11-09T06:19:45 | 73,256,658 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 4,962 | cpp | Source.cpp | // define the screen resolution
#define SCREEN_WIDTH 1600
#define SCREEN_HEIGHT 900
#define fullScreen
#undef fullScreen
// include the basic windows header file
#include <windows.h>
#include <string>
#include <windowsx.h>
#include "__d3d.h"
// mouse coordinates
int xPos = 0, yPos = 0, xPos0, yPos0,... |
49acc9122b849975df191b0bbb74fb1e78adb52a | 2e96b02aeba1815cfca601f8d3290af11df767b9 | /RegularMachine/Grammar.cpp | 08ad8c2b508d91785de8e29b98ea363a0688ef87 | [] | no_license | Comcx/Siftor | 1cef9fa9d0d6d84d332a5e4c8f7c2d1bc54591d8 | 912cd9b3bfa2307499b8dcaa44b8be0bc0bfd7f7 | refs/heads/master | 2020-04-20T20:03:46.356231 | 2019-05-03T22:04:05 | 2019-05-03T22:04:05 | 169,066,214 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,633 | cpp | Grammar.cpp | #include "Grammar.h"
#include <iostream>
#include <algorithm>
Symbol
symbol(SymbolType t, String v) {
Symbol ans = {t, v};
return ans;
}
Symbol
symbol(String s) {
return seq(s).front();
}
Seq
seq(String raw) {
Seq ans;
Bool literalMode(false);
Bool V_NMode(false);
var it = raw.begin();
String cur... |
539c8af86add67203c6ed8f957a8a1c1bf21ff0f | 9f8a43fa3d1c2b266de1d75b154c3f13470c1661 | /Vector.cpp | 421b62f5d39fc2c5c893101c5649167c1e7f8fa9 | [] | no_license | wonderly321/SIFT_Feature_Extraction | fa63cb59aa6b5e2b249115fa04b06f2a2de8a8d9 | 53a626868330b933835e27cf4e0008f9a41728cf | refs/heads/master | 2020-05-07T01:12:48.347964 | 2019-04-11T08:27:05 | 2019-04-11T08:27:05 | 180,264,110 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,060 | cpp | Vector.cpp | /*----------------------------------
updated by wonderly321 on 4/11/19.
-----------------------------------*/
#include "Vector.h"
int vector_setup(Vector *vector, size_t capacity, size_t element_size)
{
assert(vector != NULL);
vector->size = 0;
vector->capacity = MAX(VECTOR_MINIMUM_CAPACITY, capacity);
vector->el... |
165c5afa6681ff171ff125aa333d9979d821e04c | 9f35c04628527375167b013b12e9e9abbb1f7f5f | /Data Structures & Algorithms/Order Statistics & Sorting/ReadInput.h | bf5c7cf0d11f95a3310aaacd0b5ab6a4effdcfd6 | [] | no_license | codevic/Important_Projects | 8d7d3ae89da697d9b4ca98e05f732b465387ebb1 | d1b7484c4aa5229711984282958e8bb5a3d860e8 | refs/heads/master | 2020-04-18T14:55:06.301650 | 2019-01-25T19:19:22 | 2019-01-25T19:19:22 | 167,600,865 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 465 | h | ReadInput.h | //
// Created by kavya on 5/3/2018.
//
#ifndef MENU_READINPUT_H
#define MENU_READINPUT_H
#include <string>
#include <fstream>
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <iterator>
#include "GenerateInput.h"
using namespace std;
class ReadInput {
public:
static voi... |
6d55c9ebabab8a32cfb98219846e8a62edf406fa | 271a57344dcb49a80feae682ecc1d39f991eec81 | /src/wql/OW_WQLAst.hpp | fa21471563b53519fc8bd5fa67b6d4c3af997563 | [
"BSD-3-Clause"
] | permissive | kkaempf/openwbem | b16f7b8f0db6c1dbe1ee0467f7ab1b543253ea35 | b923c1fffd0e7f5489843c8c3b3850c50880ab9b | refs/heads/main | 2023-03-16T00:41:34.967003 | 2023-02-21T06:59:50 | 2023-02-21T06:59:50 | 5,981,070 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 92,889 | hpp | OW_WQLAst.hpp | /*******************************************************************************
* Copyright (C) 2003-2004 Quest Software, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions... |
1f3c349d87bacc8fe8966589d769f15b5ddd46b5 | 90ea35a0e20c99f80f3826aa247e36f4270eadf8 | /Partition_labels.cpp | b3153ac14157e1853aae409638a577b30baa9021 | [] | no_license | Kiranchawla09/Leet | 154444b2c43214533dd11612a79c177aa5a218ed | 58b319b5e88062f811028c891b56a50367c2a9be | refs/heads/master | 2022-11-28T15:21:19.099087 | 2020-08-09T13:12:54 | 2020-08-09T13:12:54 | 239,078,024 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 588 | cpp | Partition_labels.cpp | class Solution {
public:
vector<int> partitionLabels(string S) {
vector <int> result;
unordered_map<char,int>mp;
for (int i=0;i<S.size();i++)
{
mp[S[i]]=i; //storing the last occurance of each letter
}
int start=0;
int end= 0;
... |
45d9df167080dab6b8da37ae7e5bcf682f1f2c4e | c3a8a8ec04550a14d88e1df1175680ac0817c302 | /src/flame/graphics/WIP/texture.cpp | 4c5e7e42d964fb8b6918c668326eae5a0f249fac | [
"MIT"
] | permissive | coder965/flame | c0c0a27bf6f5b88d2e10a564528dafc4f8c83553 | 8de5beb7d15c400076cdb6fc29387295c0b24f51 | refs/heads/master | 2020-03-19T03:02:27.331192 | 2018-05-31T13:41:01 | 2018-05-31T13:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,181 | cpp | texture.cpp | #include <assert.h>
#include <filesystem>
#include <map>
#include <gli/gli.hpp>
#include <flame/string.h>
#include <flame/filesystem.h>
#include <flame/engine/graphics/buffer.h>
#include <flame/engine/graphics/texture.h>
#include <flame/engine/graphics/command_buffer.h>
#include <flame/engine/ui/ui.h>
namespace flame... |
fe21445df628f89969cb13bd3979b5535f6d1da9 | a4bd55c739a266d48051809405d3cc16bac04195 | /src/signAChart/QwtPlotItemDataModel.h | ae93e5c0c15119e95cdc1635d55b9165a0567352 | [] | no_license | zcatt/sa | 4def001dcfb1dfaf1f0a91f5f6538ac7491e904d | cb2a8c7ec42c38b8890e8eccc2227ebefc21a1e4 | refs/heads/master | 2021-05-05T23:10:00.320318 | 2018-01-03T08:42:52 | 2018-01-03T08:42:52 | 116,634,216 | 1 | 0 | null | 2018-01-08T05:32:59 | 2018-01-08T05:32:57 | null | UTF-8 | C++ | false | false | 1,489 | h | QwtPlotItemDataModel.h | #ifndef QWTPLOTITEMDATAMODEL_H
#define QWTPLOTITEMDATAMODEL_H
#include "SAChartGlobals.h"
#include <QAbstractTableModel>
#include <QList>
#include <algorithm>
#include <vector>
#include <qwt_plot_item.h>
class SA_CHART_EXPORT QwtPlotItemDataModel : public QAbstractTableModel
{
public:
QwtPlotItemDataModel(QObject... |
205012603c92ae8a3cf3114fee115047aaf3481b | 1cd106007557ddc432ed5a05c3609d901434bf76 | /src/NodeCaffe/Layer.cpp | 0ece2c2b9b6f6f4da0d2edb71d8111bf6b0f85d4 | [] | no_license | buddeep/node-caffe | 53b8245232b519d917627013ed9679ab680b9491 | 3cafd4e869fb2a99cc9eaf9752a72340947c4d07 | refs/heads/master | 2020-04-15T01:41:21.554225 | 2015-08-10T04:13:34 | 2015-08-10T04:13:51 | 40,385,837 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 910 | cpp | Layer.cpp | #include "Layer.h"
namespace NodeCaffe {
Nan::Persistent<v8::Function> Layer::constructor;
Layer::Layer() {}
Layer::~Layer() {}
NAN_MODULE_INIT(Layer::Init) {
v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
tpl->SetClassName(Nan::New("Layer").ToLocalChecked());
tpl->InstanceTemplat... |
33753774c88746ddd6d16ee1118bd94dac356596 | 2f10f807d3307b83293a521da600c02623cdda82 | /deps/boost/win/debug/include/boost/thread/thread_functors.hpp | 762fe95bf0752b293952283983886444a5b3e6d3 | [] | no_license | xpierrohk/dpt-rp1-cpp | 2ca4e377628363c3e9d41f88c8cbccc0fc2f1a1e | 643d053983fce3e6b099e2d3c9ab8387d0ea5a75 | refs/heads/master | 2021-05-23T08:19:48.823198 | 2019-07-26T17:35:28 | 2019-07-26T17:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | hpp | thread_functors.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:1a099200915cdaede674d18e9ea21f122a001dd2f1ba2f5d0b755d2591804e44
size 1366
|
0358daf0e9a89e6a349658c14ab4f81e9d63a352 | 52f02f0f6801278b70bfbf1ffd4a2ef570375487 | /src/visual.cpp | 641b00bcd8992b2666971032c5272cc347d051ba | [] | no_license | lukeyes/CCSR | c311b0338078a25265b2a30c3e9a440275a14c16 | 4145ae2240851d38ad47335e74dd57bc32b3287c | refs/heads/master | 2020-12-31T02:01:10.383260 | 2015-02-18T05:39:19 | 2015-02-18T05:39:19 | 28,166,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,567 | cpp | visual.cpp | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include "ccsr.h"
#include "lcdDisp.h"
#include "utils.h"
#include "servoCtrl.h"
#include "visual.h"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
using namespace cv... |
162732bf73e8f1b257db27d76ba94886011dee3e | 30f79d4aa268643e9a49f4d9b7ea5e85d4d792ec | /golang/so/testso/test.cpp | a14e0a7ff1c76b3fd3dba6cf40b68c591ce8a13a | [] | no_license | cheseremtitus24/coovaOpenwrt | b2bcbcdfcffb59226cb1e7af9d418dea99b7d8c6 | f14ea4fad9a0d26dc54446268454277b4d4403da | refs/heads/master | 2023-08-19T11:20:55.379679 | 2021-09-19T06:21:20 | 2021-09-19T06:21:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 203 | cpp | test.cpp | #include "libtestso.h"
#include <iostream>
int main() {
std::cout << "This is a Cpp Application." << std::endl;
GoString name = {"Jack", 4};
SayHello(name);
SayBye();
return 0;
} |
947d2c67a71370b383006205d7eb43aa1c9791c6 | 3d20968b9a5569884521617559811fcd8967064c | /KncWX2Server/GameClient/KRobotPatternManager.cpp | 2289b6fed381c1492706a28f3f0dbab898c13c71 | [
"MIT"
] | permissive | seongwon-kang/Elsword-Source-2014 | b5252a97bdf7887f1079887908670ce8d20001ca | 5b4c1c040314e90ec3e541f2d75bf31b5062da91 | refs/heads/master | 2023-01-19T07:19:21.181215 | 2020-11-10T04:32:58 | 2020-11-10T04:32:58 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 4,397 | cpp | KRobotPatternManager.cpp | #include "KncRobotManager.h"
#include "KRobotPatternManager.h"
#include "../Common/X2Data/XSLMapData.h"
ImplementSingleton( KRobotPatternManager );
KRobotPatternManager::KRobotPatternManager(void)
{
boost::shared_ptr<lua_State> spLua = SiKncRobotManager()->GetLuaState();
lua_tinker::class_add<KRobotPatternManager... |
949daec8f7c72e769ea7def4349bc21a3c46a89d | 39cf008356c868b1163d95aa37eba05b8a2130ae | /basicButton.cpp | b9a4d7900ec595b6b011ad5b6450de57abb06bdf | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | mynameisdesmond/msbOFCore | 12f9550446dc16d000f6920fda546b22ab56c123 | 1e0fb5919c1fdbd7aa99fe7c31f53fe94958270a | refs/heads/master | 2020-04-05T19:03:07.361458 | 2014-04-21T16:29:16 | 2014-04-21T16:29:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,375 | cpp | basicButton.cpp | #include "basicButton.h"
#include "input.h"
BasicButton::BasicButton(){
scale=Vector3f(30.0f,30.0f,30.0f);
name="BasicButton";
textureID="icon_base";
bComputeLight=false;
bOver=false;
bDrawName=false;
bAlwaysUpdate=false;
bPermanent=false;
bScreenOverlay=false;
bMessageWindow=false;
bDrawOrientation=false;
bDragabl... |
dd856e60367c590bbed8b15138cff8857efeaec0 | b1d8e2993720ccef6c172148297231f8953faa33 | /source/string.hpp | 3db3c883c109e922286a954fadf4091d144c64d7 | [] | no_license | cai-pi-rinha/DHBW | 1284da7a24e026a73a5956fec9d20ecfd641f824 | e1b3aedc1fd0ef099b03554cfd4ed09ffccfd0fc | refs/heads/master | 2020-04-21T09:21:21.065395 | 2019-03-20T10:53:23 | 2019-03-20T10:53:23 | 169,445,815 | 0 | 0 | null | 2019-02-14T12:33:06 | 2019-02-06T17:24:46 | C++ | UTF-8 | C++ | false | false | 3,692 | hpp | string.hpp | // Headerfile "string.hpp"
#ifndef STRING_HPP
#define STRING_HPP
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
class String
{
private:
char* m_pszStr;
int m_ilength;
void setLength();
public:
String();
String(char* pcszStr);
String(const char* pcszStr);
String(const String& rccoObj... |
0c7776be73f2f04c8056666b5181b3e25bc6392a | 2b258984f00a8aa8a07a437197538651b369423e | /main.cpp | cdb55828feb3518f324060cff1da609d959dbf81 | [] | no_license | gmorleo/p2pDDSketch | 6a53bd7956d593aef717e6085a881cf7f376a479 | 26e19c220ab582a223c1f93521ff1b0a61994117 | refs/heads/master | 2020-09-04T17:08:32.790855 | 2020-02-01T17:12:11 | 2020-02-01T17:12:11 | 219,826,299 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 35,556 | cpp | main.cpp | /********************************************************************
DDSketch
An algorithm for tracking quantiles in data streams
Charles Masson, Jee E. Rim, and Homin K. Lee. 2019. DDSketch: a fast and fully-mergeable quantile sketch with relative-error guarantees. Proc. VLDB Endow. 12, 12 (August 2019), 2195-22... |
51c3906ee2d10bc101e9da990d9b8be8c8167aba | 9bee44003d0341bf19fb7c3b2b49380fb8761dd0 | /src/main_6_1.cpp | ccd617b9be302197390b43abe56c27ada016cac7 | [] | no_license | JN426206/Projekt-GRK | 3005e7c16775bac037cc0836337cbbf2579ee0ad | 53de138c53851a5c8c5c6842d9fe9ef61331573a | refs/heads/master | 2020-03-21T00:24:39.422522 | 2018-06-19T20:13:20 | 2018-06-19T20:13:20 | 137,891,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,838 | cpp | main_6_1.cpp | #include "glew.h"
#include "freeglut.h"
#include "glm.hpp"
#include "ext.hpp"
#include <iostream>
#include <cmath>
#include "Shader_Loader.h"
#include "Render_Utils.h"
#include "Camera.h"
#include "Texture.h"
GLuint programColor; // Identyfikator shadera uzywanego do rysowania
GLuint programTexture; // Identyfikator ... |
6aacb6b149d4b433b1d50a037ad9aabb851dc921 | f1ee65fbe1ffc43c2aac45e41515f1987eb534a4 | /src/net/third_party/quiche/src/quiche/http2/hpack/decoder/hpack_decoder.h | 9e4b68bc927d7e4a5fd621ff02650656cab5b7a6 | [
"BSD-3-Clause"
] | permissive | klzgrad/naiveproxy | 6e0d206b6f065b9311d1e12b363109f2d35cc058 | 8ef1cecadfd4e2b5d57e7ea2fa42d05717e51c2e | refs/heads/master | 2023-08-20T22:42:12.511091 | 2023-06-04T03:54:34 | 2023-08-16T23:30:19 | 119,178,893 | 5,710 | 976 | BSD-3-Clause | 2023-08-05T10:59:59 | 2018-01-27T16:02:33 | C++ | UTF-8 | C++ | false | false | 5,774 | h | hpack_decoder.h | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef QUICHE_HTTP2_HPACK_DECODER_HPACK_DECODER_H_
#define QUICHE_HTTP2_HPACK_DECODER_HPACK_DECODER_H_
// Decodes HPACK blocks, calls an HpackDecoderLis... |
6ff164eb5133aa7461f35f8f215e3d0ccd7297cb | b776212295f64b4734440acae88b098918ce8a69 | /uva/uva167.cpp | d60fc01881373416d0e909fb558767ba8b1570ce | [] | no_license | tommy5198/acm | 7635147f18e2e1c54fc87813cccd14fddcac5897 | d65cef14286141684013c3425cca7ad3250867de | refs/heads/master | 2016-08-06T00:53:13.140150 | 2015-05-27T10:52:49 | 2015-05-27T10:52:49 | 7,730,894 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 920 | cpp | uva167.cpp | //back tracking
#include<cstdio>
int sum;
int num[8][8];
bool chess[8][8];
void queen(int tsum, int d){
if(d == 8){
sum = sum > tsum ? sum : tsum;
return ;
}
for(int i=0; i<8; i++){
int j, x;
for(j=d-1, x=1; j>=0; j--, x++){
if(chess[j][i])
break... |
ab8ed6b7c761f3cd3e9cd69cf68568a34430f256 | b8c5c4f8ab1d196bc4f2ed17d6a5cbaa4bf77bf4 | /model/internal/UnitImpl.h | 8831e767112391baa45f6160b0e682fcf278786f | [] | no_license | Verdagon/battlefieldrl | e84eb25b3baa02fcf2886e54b217083e0035cfa9 | f0900626084750a5eb7a85e20468036e2239d00b | refs/heads/master | 2020-04-01T21:13:39.067115 | 2014-11-03T02:09:00 | 2014-11-03T02:09:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 457 | h | UnitImpl.h | #pragma once
#include "../Unit.h"
#include "../../utils.h"
class UnitImpl : public virtual Unit {
Coord mLocation;
public:
UnitImpl() :
mLocation(0, 0) {
}
virtual Coord location() const override {
return mLocation;
}
void setLocation(Coord location) {
mLocation = location;
}
};
class ... |
4bec36ab63741b45af0674442ffd7f8c57c06b4b | afaef754bd94eff82824fbf8ede2457fbe027556 | /Reactor/src/tests/TcpClient1_test.cpp | f32941a1d4f9b4ec589b59aae522c2e71240123c | [] | no_license | baiqiubai/baiqiubai | bd88eae3f5f440c2f9eee2824f6d91c8f87380e8 | cc051016b922d37fa9c13d73841ae93a36940e7c | refs/heads/master | 2023-06-19T04:58:49.918292 | 2021-07-17T08:41:05 | 2021-07-17T08:41:05 | 355,005,752 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 803 | cpp | TcpClient1_test.cpp |
#include "CurrentThread.h"
#include "EventLoop.h"
#include "InetAddress.h"
#include "Logger.h"
#include "TcpClient.h"
using namespace net;
using namespace base;
EventLoop *g_loop;
TcpClient *g_client;
void QuitLoop()
{
LOG_INFO << "Quit TcpClient";
g_client->stop();
}
void debug() { Logger::setLogLevel(Logge... |
9cd04a30327c4ae7a619cfbc55de10ba3bc7d699 | 6d523e0652d59347fa9ce7a7ec09b62219bac827 | /15686-치킨 배달.cpp | 5edb12ff57a88bd2aac0593f3e166567440bffec | [] | no_license | rollrolli/2019-1-Algorithm-Study | 7866ac75f0cce6a6e9ed187ec232ddddb5e89245 | 6314c95c88db2ecdeb265f8584a43bb124e5fc34 | refs/heads/master | 2020-05-04T22:34:20.069751 | 2019-05-29T05:06:40 | 2019-05-29T05:06:40 | 179,511,715 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,715 | cpp | 15686-치킨 배달.cpp | #include <iostream>
#include <queue>
#include <algorithm>
#include <string.h>
using namespace std;
int city[51][51];
int visited[51][51] = { 0, }; // 매 서칭마다 초기화 필요
int comb[15] = { 0, };
typedef struct loc {
int r;
int s;
};
loc store[15];
loc house[101];
int store_num = 0; // 치킨집 개수
int house_num = 0; // 가정집... |
e65ba08b418f6f6c49d6fb8ce689e7dc6c5813b8 | b3960efcf7b3d22b1f175e642e0a672166d88eb1 | /Opocio.h | 6cb42b22abf98707140204f155789cec4f22673c | [] | no_license | LucaPizzagalli/chemotaxis-pathfinding | 170c03e67276f4a116310e4c12cedc13c11a8630 | 462bed4192f22eb2f1fe1a4330d7b8aed64f0557 | refs/heads/master | 2020-05-03T04:27:42.872482 | 2019-03-29T16:32:05 | 2019-03-29T16:32:05 | 178,422,128 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,600 | h | Opocio.h | #define attack_opocio -1
#define eat_food 0
#define eat_opocio 1
#define find_cantiere 2
#define find_pietra 3
#define ask_pietra 4
#define ask_cantiere 5
#define N_priority 6
class Opocio : public Oggetto
{
protected:
double dim, speed;
int energia;
int vita;
int carne;
int gravidanza;
float c... |
533aabc655759cb95f5499f1d3c1a836ce2ba74e | 6ecbf084f558b37f0cee51c7226c1e116b5aa7bf | /SIR/.SIR/build_openmp_sse/src/bi/math/constant.hpp | 2a5ee50a9e01d72a400a4ba9c737eafcac221e59 | [] | no_license | reichlab/bayesian_non_parametric | 364b12ad07b09e9a4386572bd47c709ad7629497 | c8d7eb7493addb919b8f7159768dc732ce1a1f35 | refs/heads/master | 2021-01-01T06:43:10.176687 | 2018-03-25T14:33:32 | 2018-03-25T14:33:32 | 97,492,688 | 2 | 0 | null | 2018-01-02T15:23:21 | 2017-07-17T15:38:01 | Python | UTF-8 | C++ | false | false | 1,003 | hpp | constant.hpp | /**
* @file
*
* Common \f$\pi\f$ pre-calculations using big-decimal. We should note that,
* actually, these are no more accurate than using double precision, but they
* do at least ensure decent accuracy before casting to single precision.
*
* @author Lawrence Murray <lawrence.murray@csiro.au>
* $Rev$
* $Date$... |
311af8877185200d278104ff18c3f00c3669fd48 | ce815e4a0fae69b6e20bef664f3380063a9a4286 | /include/nn/gfx/detail/bufferimpl.h | 42ae4b14842a5a0b8584a213d3d41aef3387d709 | [
"MIT"
] | permissive | CrustySean/skyline | a8719c34696b18a0afffdefdcc24f1e592351e74 | 8037c94df70cb59c8e8fb7c5723bfd33bbe6710e | refs/heads/master | 2023-02-06T13:56:59.809694 | 2020-12-03T17:56:47 | 2020-12-03T17:56:47 | 325,289,820 | 1 | 0 | MIT | 2020-12-29T13:09:28 | 2020-12-29T13:09:28 | null | UTF-8 | C++ | false | false | 1,447 | h | bufferimpl.h | /**
* @file bufferimpl.h
* @brief Buffer implementation for GFX.
*/
#pragma once
#include "nn/gfx/api.h"
#include "nn/gfx/buffer.h"
namespace nn {
namespace gfx {
class GpuAddress;
namespace detail {
template <typename T>
class BufferImpl {
public:
BufferImpl();
... |
3cf976d87717827307b94d331515b4596cf5f44c | b50a2a9d9782febeb9a919dccd0edafdfa1f41eb | /berkley.cpp | 3c1f76b3e8101d967e1c2964d2038e9011d80c63 | [] | no_license | suyashtrivedi99/distributed-clock-synchronization-algorithms | 323f6aa851ce0bb90650c226e1417b147a0a1e66 | 3a34df11be97788402c5ab7dff0bb54e1e1c89e3 | refs/heads/main | 2023-08-02T11:11:56.218815 | 2021-10-10T16:34:09 | 2021-10-10T16:34:09 | 415,637,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,707 | cpp | berkley.cpp | #include <bits/stdc++.h>
#include<cstdlib>
#include<ctime>
using namespace std;
pair<int,int> nodes[100];
int store[100];
pair<int,int> generateTime()
{
int hr = rand()%24;
int min = rand()%60;
return make_pair(hr,min);
}
void printTime(pair<int,int> t)
{
if(t.first < 10)cout<<0;
cout<<t.first<<":";
if(t.seco... |
fbec250e0dcf9420fb83f1d8cdad9b7d2517fd58 | e922194607bde0ab22b25a1a42878fea5c614a55 | /test/00/pointer_to_class_members/main.cpp | cc51eb25d578a7e91ae339236e416d88bbe716a8 | [] | no_license | queenieho/Cpp | fd3c309121ba99d977383ef332c47ab94b37299c | e62d2bf7e764f3cb6141c7aecfa8a05f488062f6 | refs/heads/master | 2020-12-02T22:29:03.717437 | 2017-07-05T05:24:06 | 2017-07-05T05:24:06 | 96,139,223 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,521 | cpp | main.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... |
8f93d8ad10a70e96cfa074c73181f89ff5d1980c | 67fe05d738dd029a6777cc98e6b93baa146f5ee8 | /prob89_快速幂模质数.cpp | 887072b377c66515278888dbfcd1cdc06e584635 | [] | no_license | FennelDumplings/acwing | b4d606ee7f71cf2b49fecb25a1401c6c467dd282 | ec7f17416d13a9f5a48d537eb21b787b519c2ed0 | refs/heads/master | 2023-05-11T22:15:24.953071 | 2023-05-06T17:45:35 | 2023-05-06T17:45:35 | 238,383,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 355 | cpp | prob89_快速幂模质数.cpp | #include <iostream>
using namespace std;
using ll = long long;
int quickpower2(int a, int b, int p)
{
int ans = 1;
while(b)
{
if(b & 1) ans = ((ll)ans * a) % p;
a = (ll)a * a % p;
b >>= 1;
}
return ans % p;
}
int main()
{
int a, b, p;
cin >> a >> b >> p;
cout ... |
8812523fd3a03dee4a8ec38ad4519a67203e0b2d | df2b801fbcbfe88e64502c498bc044b437f5a2f7 | /FakeWalk.cpp | 71f49fdb56462adbdb0c20b83be703279860b19f | [] | no_license | vindeckyy/yeti | 08051e43e45e2a3c73b41a91f464d627e84ad3eb | 0acec1e281d7e9b91ebe8f7631b51566a04ec198 | refs/heads/master | 2023-05-14T14:51:18.562360 | 2023-05-08T23:41:37 | 2023-05-08T23:41:37 | 117,345,972 | 15 | 13 | null | 2018-04-10T11:27:16 | 2018-01-13T13:33:01 | C++ | UTF-8 | C++ | false | false | 599 | cpp | FakeWalk.cpp | #include "FakeWalk.h"
FakeWalk fakewalk;
void FakeWalk::run(CUserCmd* m_pcmd, bool& _packet)
{
auto m_local = game::localdata.localplayer();
if (m_local->GetFlags() & FL_ONGROUND) {
if (!(m_local->GetFlags() & (int)FL_INWATER)) {
int movetype = m_local->GetMoveType();
if (!(movetype == 8 || movetype == 9)) ... |
5fa33b1d88447a8c8eef5417934d17118b6bc198 | b530e1cb11ba57ba5ac955f423f451d88d6e16fb | /include/WorldController.hh | 8989a8b8dc8d9f6a4ce208526cf8f9773626679d | [] | no_license | Lunderberg/midgard | ac2efc32c23f7bb61e86f91cc4ab359b9693fd13 | 9cd5504d1d0eeab9ff1c904173cbf018672c702c | refs/heads/master | 2020-12-03T10:44:37.328008 | 2020-02-27T15:39:29 | 2020-02-27T15:39:29 | 231,286,864 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,204 | hh | WorldController.hh | #pragma once
#include <atomic>
#include <condition_variable>
#include <memory>
#include <mutex>
#include <queue>
#include <string>
#include <thread>
#include "nlohmann/json.hpp"
using nlohmann::json;
class WorldSim;
struct ServerResponse {
std::string response;
std::string broadcast;
std::weak_ptr<void> respo... |
9c3ca6d56dc72c93dd6b7c48aa5e2f278f0a9f75 | 84af27f34645237a12faa2e276bacb5a03453c8f | /include/TArrayTable.h | e4ab0c4c7a82d447b0bdfbdf9d7ae1f178797849 | [] | no_license | left841/mp2-lab7-tables | 7363272f9778a24ef97bdf3044e897ed72b8006a | a8e96ccf1683d4df4a778c5bb0873ad7bade0953 | refs/heads/master | 2020-05-05T08:46:12.653067 | 2019-06-01T15:50:19 | 2019-06-01T15:50:19 | 179,877,054 | 0 | 0 | null | 2019-04-06T19:24:58 | 2019-04-06T19:24:57 | null | WINDOWS-1251 | C++ | false | false | 1,872 | h | TArrayTable.h | #ifndef __TARRAY_TABLE_H__
#define __TARRAY_TABLE_H__
#include "TTable.h"
#define TabMaxSize 25
enum TDataPos {FIRST_POS, CURRENT_POS, LAST_POS};
class TArrayTable : public TTable {
protected:
PTTabRecord *pRecs; // память для записей таблицы
int TabSize; // макс. возм.количество записей в таблице
... |
cb4d7a92a9aab0e31bcf6aff8daebf24001e6dbb | 0afb5ac204c59380f3ba3e88ddacea26b7f93d3c | /lab 13/lab 13/driver.cpp | 94b3ab746e9891a4d4129de51db6c1955c1f64af | [] | no_license | jordano1/cs1410 | fba4d2e3f17dfce8f359ea73be2cb8f66825eda2 | eea6d7092b9ca1d1db87796df9f3b5f4299604e0 | refs/heads/master | 2020-03-26T15:15:37.003440 | 2018-08-16T19:33:37 | 2018-08-16T19:33:37 | 145,018,425 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 240 | cpp | driver.cpp | #include "driver.h"
int main()
{
Pair<char> letters('a', 'd');
cout << "\nThe first letter is: " << letters.get_first();
cout << "\nThe second letter is: " << letters.get_second();
cout << endl;
system("Pause");
return 0;
} |
0c5dd46eba21165d5ad82a1340c433dd705e2500 | 63435fba588bc64bf3a16ac2fe6fc9ea740a97aa | /Algoritimos e Programação 1/Exercício 04 - Estrutura For/exercicio01 - for.cpp | b0c0341e42d6a079f78ac1bade187f4a91467c4b | [
"MIT"
] | permissive | Showbiztable/Faculdade_Unisociesc | 889a7264585d2f18051149710b4a7859c81be40e | 02b67cfd3c960e8dfb50ad812bbfd773577dacf7 | refs/heads/master | 2020-08-01T12:19:27.661243 | 2019-12-04T22:13:34 | 2019-12-04T22:13:34 | 210,994,630 | 1 | 1 | MIT | 2019-12-01T23:49:18 | 2019-09-26T03:48:28 | C++ | ISO-8859-1 | C++ | false | false | 790 | cpp | exercicio01 - for.cpp | /*
Lucas Trevizan e Doglas E E Cattoni
1. Faça um programa que receba dois números inteiros e gere os números inteiros que estão no intervalo compreendido por eles.
*/
#include<iostream>
#include<locale.h>
#include<stdio.h>
#include<math.h>
using namespace std;
main()
{
int n1,n2,cont;
setlocale(LC_ALL... |
a9a1ca326a6044a204bad55acc9e59e49a1d8298 | 0290c8cb8b9eff9349dd07644c6d1a1fc4cec142 | /Latest Stable Models/modelling/main.cpp | 5ec08cb4ccada1ad5a8919d7bfe8c2201b6f3fe8 | [] | no_license | ivanliu1989/Helping-Santas-Helpers | c03799023952651be0e950fe77c4a31cd4303215 | 4287946489d2faa7d44297f6169d312b9a548f01 | refs/heads/master | 2021-01-02T09:33:26.783676 | 2015-01-03T23:41:37 | 2015-01-03T23:41:37 | 27,221,218 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,313 | cpp | main.cpp | #include <Rcpp.h>
#include <algorithm> // std::max
using namespace Rcpp;
// [[Rcpp::export]]
int updateNextAvailableMinute(int start_minute, int work_duration){
int next_available_time = 0;
int S = 0;
int U = 0;
int full_days = work_duration / (60*24);
S = full_days * (10*60);
U = full_days * (... |
24ed115db2ed3bc5548ae3c044ab22295f16afec | 056bc9b522a37d9829caa5b4eacd4c19d9fb2ebc | /Win32_OculusRoomTiny.cpp | ef3ea037be822c1e3f9f2241245cd2818542081e | [] | no_license | jredmond/OculusRoom3Space | 3cceb5ef839a7a5b2b0b09ef211656f21eae1bcc | 7c77c6208ec62366132c54419aa8ac19ddba73e2 | refs/heads/master | 2020-05-31T13:26:29.932242 | 2013-06-15T13:56:03 | 2013-06-15T13:56:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,850 | cpp | Win32_OculusRoomTiny.cpp | /************************************************************************************
Filename : Win32_OculusRoomTiny.cpp
Content : First-person view test application for Oculus Rift
Created : October 4, 2012
Authors : Michael Antonov, Andrew Reisse
Copyright : Copyright 2012 Oculus, Inc. A... |
5279677279e02971de813684867ae5c17bf721a8 | cf47614d4c08f3e6e5abe82d041d53b50167cac8 | /CS101_Spring2020-21 /LAB4_L1/categorized/stream/all_passed/9_stream.cpp | af73bf9ffb8d64874b5e263ac79cb17dbbf400bd | [] | no_license | krishna-raj007/BodhiTree-Annotation | 492d782dffe3744740f48c4c7e6bbf2ee2c0febd | 28a6467038bac7710c4b3e3860a369ca0a6e31bf | refs/heads/master | 2023-02-28T18:23:05.880438 | 2021-02-07T17:55:33 | 2021-02-07T17:55:33 | 299,254,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 160 | cpp | 9_stream.cpp | #include<simplecpp>
main_program{
//Write your code here
int n, newn;
cin>>n;
cin>>newn;
while(newn>0){if(newn>n)n=newn;
cin>>newn;}
cout<<n<<endl;
}
|
6bce50ba0f86d35fe6fe032917125dcd609fb1c8 | 54b4dc3039a0cf47f5af64e0787bc3f47d57459a | /BrickEliminationElements.cpp | 17f206cddbd3b107770c027b33ef2f2931f575cf | [] | no_license | MorpheusDong/BrickElimination | 474d1990e0cf6f132dc32ebd3b90a9f157647c58 | 52bf6280558262d0efd00933c098295f5bba6eae | refs/heads/master | 2022-12-07T21:12:26.522522 | 2020-09-02T08:52:01 | 2020-09-02T08:52:01 | 277,071,176 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,583 | cpp | BrickEliminationElements.cpp | /* BrickEliminationElements.cpp */
#include "BrickElimination.h"
#include <graphics.h>
#include <conio.h>
#include "windows.h"
/* class ball realization */
CBall::CBall()
{
}
CBall::~CBall()
{
}
void CBall::ball_init_v()
{
m_ball_x = GRAPH_WIDTH / 2;
m_ball_y = GRAPH_HEIGHT / 2;
m_ba... |
5315705f2d97b891f40367750b4a117a26cdae9d | 7392a8aad0a287f98b17b8d6c567f6668c7a5726 | /src/problems/singleObjective/cec2005Competition/F13ShiftedExpandedGriewankRosenbrock.cpp | ae03be41c6511eb378f0b5f6c45e402791e9bae7 | [] | no_license | sergiosvieira/jMetalCpp | 5e51f3c0a192f22d611b4bddb410f42663ca40f7 | 8a08e080529b68ad1777fb3c9cdfd1c54f918538 | refs/heads/master | 2021-08-28T11:33:35.995740 | 2019-06-13T15:22:08 | 2019-06-13T15:22:08 | 98,532,814 | 3 | 2 | null | 2017-07-27T12:23:53 | 2017-07-27T12:23:53 | null | UTF-8 | C++ | false | false | 2,570 | cpp | F13ShiftedExpandedGriewankRosenbrock.cpp | // F13ShiftedExpandedGriewankRosenbrock.cpp
//
// Authors:
// Esteban López-Camacho <esteban@lcc.uma.es>
// Antonio J. Nebro <antonio@lcc.uma.es>
//
// Copyright (c) 2014 Antonio J. Nebro
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser ... |
2ba0b84127a12d80525f8cc828df4000736934cf | 588947fa105acc354e218bb28884b6ba6765e454 | /hari_sir_problems/Binary search tree/Binary search tree/bst_insert_delete.cpp | 0081e469394211c56fb8c0ef4584c659eb25a874 | [] | no_license | Divya37/my-projects | 79274d1ab8269573f70128f140b88ffefdd13c0f | ee0b51a88f5b65e19e31db6e37ac79eb89c50a6e | refs/heads/master | 2020-05-25T11:32:32.688066 | 2016-07-28T01:07:20 | 2016-07-28T01:07:20 | 64,334,154 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,020 | cpp | bst_insert_delete.cpp | //insertion and deletion in bst, least common ancestor, validate bst
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
struct node{
int data;
struct node *left;
struct node *right;
};
struct node *insert(struct node *head, int data){
if (head == NULL)
{
struct node *temp = (struct node *)malloc(sizeo... |
add733f929c9b2550db303e3f57f57a5abdea215 | dbc0e3582d65bcf9d8fba29d872d6407454f9e28 | /PRACTICE/minimum Deletions to make palindrome.cpp | 5826a46a2b18240f7d44f32b8314b2293e8efe14 | [] | no_license | sirAdarsh/CP-files | 0b7430e2146620535451e0ab8959f70047bd7ea2 | 8d411224293fec547a3caa2708eed351c977ebed | refs/heads/master | 2023-04-05T09:07:21.554361 | 2021-04-08T19:57:33 | 2021-04-08T19:57:33 | 297,582,418 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 686 | cpp | minimum Deletions to make palindrome.cpp | #include<bits/stdc++.h>
#define ll long long
using namespace std;
int minDeletions(string s, int i, int j, unordered_map<string,int> lookup){
string key = to_string(i) + "|" + to_string(j);
if(i>=j){
return 0;
}
if( lookup.find(key) == lookup.end() ){
if( s[i] == s[j] ){
lookup[key] = minDeletions(... |
939d6a9f5c918dfbe6b89b0f8103cd929f18f0a6 | 36574fefeb2d65fec9f8c441b2e9a63b86b186dd | /mycode/DesignPattern/Singleton.cpp | f28d983c896a99cc52b7f5cddce0d9f4b18f4262 | [] | no_license | danny-wang/c-_primer_code | a896bded8b77345d14c67949265a75b2982ea670 | 3777928a4b1cba32e6eea77717925f139e3f1913 | refs/heads/master | 2021-01-13T15:10:35.464675 | 2017-11-19T11:36:06 | 2017-11-19T11:36:06 | 76,237,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 116 | cpp | Singleton.cpp | #include "Singleton.h"
singleton* singleton::p = new singleton();
singleton* singleton::instance()
{
return p;
} |
b70656d3e4540386a47b7fb84dc76f660122fffd | 11ef4bbb8086ba3b9678a2037d0c28baaf8c010e | /Source Code/server/binaries/chromium/gen/chrome/common/media_router/mojo/media_controller.mojom-shared-message-ids.h | dfe4b7daf02360e6b58f7b48cb0d300bc08cf21a | [] | no_license | lineCode/wasmview.github.io | 8f845ec6ba8a1ec85272d734efc80d2416a6e15b | eac4c69ea1cf0e9af9da5a500219236470541f9b | refs/heads/master | 2020-09-22T21:05:53.766548 | 2019-08-24T05:34:04 | 2019-08-24T05:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,573 | h | media_controller.mojom-shared-message-ids.h | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_COMMON_MEDIA_ROUTER_MOJO_MEDIA_CONTROLLER_MOJOM_SHARED_MESSAGE_IDS_H_
#define CHROME_COMMON_MEDIA_ROUTER_MOJO_MEDIA_CONTROLLER_MOJOM_SHARED... |
dc17f1e5ad5ec79252ef98016304cdf19a9ba4ed | 2398c2a717214be48f3d93da89ba11155263757b | /Sem_06/PPO/Lab_02/tests/LoadDataTest.h | 11cc1fd6d0efb9d008ecac2f7d914b8c13c83930 | [] | no_license | lieroz/University | 9af687787e3c468b34e2bfb8ffeadf44f2063bc7 | c7ee70e77e6426045fac6c5b43aab10e1ffdcddb | refs/heads/master | 2020-04-06T19:53:40.479191 | 2019-01-19T09:16:35 | 2019-01-19T09:16:35 | 68,386,115 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 398 | h | LoadDataTest.h | //
// Created by lieroz on 22.05.18.
//
#ifndef LOADDATATEST_H
#define LOADDATATEST_H
#include <QTest>
#include <ui/MainWindow.h>
class LoadDataTest : public QObject
{
Q_OBJECT
public:
explicit LoadDataTest(QObject *parent = nullptr);
private Q_SLOTS:
void testLoadRouteFromGpx();
void testLoadRoute... |
d7730eac5fec920f92a41a449c9a8ecb0ee92305 | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium_org/third_party/libjingle/source/talk/session/media/channelmanager_unittest.cc | d0d380d3eb85da25cd72dde6fac16db381acff00 | [
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"BSL-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | C++ | false | false | 24,309 | cc | channelmanager_unittest.cc | // libjingle
// Copyright 2008 Google Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the follo... |
c3825b92ee351c6ae5ab393a8e549c075fcf8ff1 | 346c17a1b3feba55e3c8a0513ae97a4282399c05 | /CodeGenere/photogram/cEqAppui_Droite_NoDist__PTInc_M2CDRad5.cpp | d6c17a4fe88339bf520cb1bef558b6149f56d5a2 | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | micmacIGN/micmac | af4ab545c3e1d9c04b4c83ac7e926a3ff7707df6 | 6e5721ddc65cb9b480e53b5914e2e2391d5ae722 | refs/heads/master | 2023-09-01T15:06:30.805394 | 2023-07-25T09:18:43 | 2023-08-30T11:35:30 | 74,707,998 | 603 | 156 | NOASSERTION | 2023-06-19T12:53:13 | 2016-11-24T22:09:54 | C++ | UTF-8 | C++ | false | false | 13,649 | cpp | cEqAppui_Droite_NoDist__PTInc_M2CDRad5.cpp | // File Automatically generated by eLiSe
#include "StdAfx.h"
#include "cEqAppui_Droite_NoDist__PTInc_M2CDRad5.h"
cEqAppui_Droite_NoDist__PTInc_M2CDRad5::cEqAppui_Droite_NoDist__PTInc_M2CDRad5():
cElCompiledFonc(1)
{
AddIntRef (cIncIntervale("Intr",0,10));
AddIntRef (cIncIntervale("Orient",10,16));
AddInt... |
36c2020a29fa86ff14ac5878dcb33caf83f75ae3 | a349faea976025191188b2ddcda5bed2fba913af | /Ch12/ex12_1/BinarySearchTree3.cpp | ae2ce8ab7cd9bbd7c4e1a5f8109ca0960d0dbfe2 | [] | no_license | ljw-LAB/Algorithm | 3faa976c6031637ce70d438d46dd0c8fcad8a75d | 14f21e9c740093e8c5eec071f94fced06977fbdd | refs/heads/main | 2023-03-25T11:29:57.063846 | 2021-03-29T15:44:38 | 2021-03-29T15:44:38 | 341,037,134 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,807 | cpp | BinarySearchTree3.cpp | #include <stdio.h>
#include <stdlib.h>
#include "BinaryTree3.h"
#include "BinarySearchTree3.h"
#include "AVLRebalance.h"
void BSTMakeAndInit(BTreeNode ** pRoot)
{
*pRoot = NULL;
}
BSTData BSTGetNodeData(BTreeNode * bst)
{
return GetData(bst);
}
BTreeNode* BSTInsert(BTreeNode ** pRoot, BSTData data)
{
if (*pRoot =... |
cf5cb52d6c453dcb92657a227a67a6e44b698dce | da5f781feaa50941c12e9b8e19dd930d524ddeac | /АМО/lab1.cpp | 244bd52821beed5dc87c53c6a1b659130321d767 | [] | no_license | IvanMerejko/3-semestr | ebb4899784caa62237ae174203ca63972411e07e | 712aada2ddb74d58a5080769f64eb34337d7c8fe | refs/heads/master | 2020-07-22T18:50:17.171472 | 2019-12-17T06:07:02 | 2019-12-17T06:07:02 | 207,294,531 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,094 | cpp | lab1.cpp | #include <iostream>
#include <cmath>
#include <iomanip>
#include <tuple>
#include <thread>
using returnableTuple = std::tuple<double, double, int>;
class Task
{
private:
enum class NumberOfTask
{
First,
Second
};
private:
double m_a;
double m_b;
const double m_PI;
double m_x;
muta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.