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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f5892b29fb38d78444a0d3e9c11f2471073d1c3e | 7d71fa3604d4b0538f19ed284bc5c7d8b52515d2 | /Clients/AG/Shared/Extensions.h | 12e2cfa737f6c566f29aafa78acb6f64ece821ac | [] | no_license | lineCode/ArchiveGit | 18e5ddca06330018e4be8ab28c252af3220efdad | f9cf965cb7946faa91b64e95fbcf8ad47f438e8b | refs/heads/master | 2020-12-02T09:59:37.220257 | 2016-01-20T23:55:26 | 2016-01-20T23:55:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | h | Extensions.h | #pragma once
class CExtensions
{
public:
CExtensions();
~CExtensions();
void Load(LPCSTR pMessageTitle = NULL);
void Unload();
void Reload();
bool IsLoaded();
CString GetDllLocation();
bool GetString(LPCTSTR strName, LPCTSTR strResourceType, CString& strResource);
private:
HGLOBAL GetData(LPCTSTR strName, L... |
62238b3398e7836c65586204cf38209b1a38af86 | ab2d436b8f7521c1b77b27aff757cf5d95820ef4 | /Lab/Game2/game.cpp | 722c5d29ef83ec1c53c158ce9ae9291f96976d01 | [] | no_license | Naateri/Networks | 64d5fc49f5278a64485eeb7e0bfc17a9a0cdba84 | 3fefdcd48f9506134db63359677fd2972c7a0ee1 | refs/heads/master | 2022-03-12T06:14:35.930420 | 2019-12-10T19:18:11 | 2019-12-10T19:18:11 | 205,906,150 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 13,809 | cpp | game.cpp | /* Server code in C++ */
/*
Server code programmed by:
-Jazmine Alexandra Alfaro Llerena
-Renato Luis Postigo Avalos
*/
//g++ game.cpp -o server -std=c++11 -lpthread
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <strin... |
148bac653ff50f56ca714059f5fe90e50500306d | cbbca5fba9870b62c2546642c6bf38d02a19b374 | /Headers/SnakeGame/SnakeAction.h | 2f78f3394824e83721434bac6ed3214011fe4d2c | [] | no_license | jul1278/SimpleComponents | 4383f35d6e7399a22ce540e57870dfb97150d59c | 6e98c96092bb44a83b14435fc9f32a5b1c074c8a | refs/heads/ComponentCollections | 2020-12-11T04:13:28.425645 | 2016-12-13T00:12:12 | 2016-12-13T00:12:12 | 46,651,081 | 0 | 1 | null | 2016-05-08T15:45:26 | 2015-11-22T07:38:29 | C++ | UTF-8 | C++ | false | false | 1,031 | h | SnakeAction.h | #ifndef SNAKE_ACTION_H
#define SNAKE_ACTION_H
#include "Actions/IAction.h"
#include "Events/SDLEventCollector.h"
class QuitApplicationEventArgs;
class IntersectionEventArgs;
class ComponentCollectionRepository;
class IGameApp;
class ButtonEventArgs;
class TextGraphicsResource;
enum SnakeDirection
{
SNAKE_UP, SNAK... |
43a3b59eda7caea5aa518a54ffb4ced8a588680b | 0014444a690e680e5074eb70bccbabfb9ec9dc45 | /BVH.cpp | 41486b783e7d40fa3bcaadb5c67de2be24508006 | [] | no_license | Mikasa-None/RayTracerLearning | eb1c93a58a849cb123fee649d607f76f38d34028 | 919cdf72c9416340517b7a54b46eac133e88bbd5 | refs/heads/main | 2023-06-27T18:43:02.939026 | 2021-07-29T10:41:15 | 2021-07-29T10:41:15 | 385,928,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,002 | cpp | BVH.cpp | #include "BVH.h"
std::shared_ptr<bvhNode> BVH::BVHbuild(std::vector<std::shared_ptr<Object>> objects)
{
std::shared_ptr<bvhNode> node = std::make_unique<bvhNode>();
if (objects.size() == 1)
{
node->left = nullptr;
node->right = nullptr;
node->obj = objects[0];
node->bbox = objects[0]->Bounding... |
9522a539ecaada217287c876de3f77a90265e45d | 88d24e3ee2919041a84c80039e6f3eacaf0e3344 | /wsockshost/wsotpp.cpp | a146ece9dcab527fa97c2f0870ca2b74b2368d39 | [] | no_license | redi-rudrar/dev-Life-Cycle | 1593efdbed478a6b0c01967287b4e79f3cb404dd | 635d17bba37479450ea9d3f88ac40762db31bc70 | refs/heads/master | 2020-06-26T23:18:22.197660 | 2019-08-08T05:33:38 | 2019-08-08T05:33:38 | 199,784,970 | 1 | 0 | null | 2020-06-15T07:34:31 | 2019-07-31T05:25:53 | C++ | UTF-8 | C++ | false | false | 34,874 | cpp | wsotpp.cpp |
#include "stdafx.h"
#include "wsocksapi.h"
#include "wsockshost.h"
#include "wsocksimpl.h"
#include "wsockshostimpl.h"
#ifdef WS_OTPP
// Only one app thread will be in WSHSyncLoop at any one time
int WsocksHostImpl::WSHSyncLoop(WsocksApp *pmod)
{
int Status,i,StillActive;
//LastTickDiv=dwTime-LastTi... |
d8ca471800d2573cd77a71eab6f9027f55433760 | 49d910b5ab5532cdd1b952522ab04b1f9b7bc564 | /Bank/Bank/Client.h | 30f6c471734fceeed4b4f72583ab8aa80360960b | [] | no_license | CZOndrej/Bank | a32eec4414fe58bd347d1db0f29a38620ed3ba2e | a91d6710744ac6cbc6c480c194d364cb401d40b8 | refs/heads/master | 2023-04-06T13:00:27.052529 | 2021-03-14T10:50:03 | 2021-03-14T10:50:03 | 347,450,878 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 198 | h | Client.h | #pragma once
#include <string>
#include <iostream>
using namespace std;
class Client
{
private:
int code;
string name;
public:
Client(int c, string n);
int GetCode();
string GetName();
};
|
f9ddda438d495ebe22390f988dbe67b76625da81 | 36c08867c0737442154d341f3eba545342f57efd | /Solutions/HDU/3579.cpp | 1d2f2248238eb3615ec545b830aeb095e65c6a5c | [] | no_license | xgsteins/ACM | e9d8d694ea70efe0e8e4953b75e9324faa97b306 | 96f9e5351b2c31a5a89b1d6c9bb46b4bc60d1309 | refs/heads/master | 2020-03-25T08:14:50.394467 | 2019-08-21T04:00:49 | 2019-08-21T04:00:49 | 143,604,012 | 2 | 0 | null | 2019-03-04T16:26:59 | 2018-08-05T10:39:07 | C++ | UTF-8 | C++ | false | false | 1,150 | cpp | 3579.cpp | // 中国剩余定理
#include <iostream>
#include <algorithm>
#include <cstdio>
using namespace std;
const int maxn = 10;
int m[maxn], r[maxn];
typedef long long ll;
ll exgcd(ll a, ll b, ll&x, ll &y)
{
if(a == 0 && b == 0) return -1;
if(b == 0)
{
x = 1;
y = 0;
return a;
}
ll d = exgcd(... |
d2e295ade1bbd84a1c30ec40648f70d8bb5673bf | 27baaefeb5eab68c454061c23e2bf441841d7bd6 | /cafufa.c | 0510627c88a010a1fe71a0296be68cfa1310f4f7 | [] | no_license | railson150/Desafios | a403d6a4e9bae0bf4e85c06d29eb6b89cf9a5516 | b118a36c88c4bb70f081dd7c3bfbe9d35d9711f2 | refs/heads/master | 2020-04-09T09:25:40.949900 | 2018-12-11T02:13:38 | 2018-12-11T02:13:38 | 160,232,914 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 578 | c | cafufa.c | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main (){
int n,p,d,e;
char c,h[4];
c=',';
fgets(h,4,stdin);
n=atoi(h);
scanf("%d",&p);
scanf("%d",&d);
if (d != 0 and p!=0 and d<10 and p<10){
for (e=1;e<=n;++e)
{
itoa(e,h,10);
if (e==n)
c='.';
if (e % p == 0 or ... |
c4788e2696eee573366f72e575ac1c1b6ac14717 | 27e767f407fc69aa2e0fdb852bc6dbd988c26624 | /Sem 1 - C/PRO14.CPP | 38807629a8a1f29fe6fd1ce9e4f4dd43555cd385 | [] | no_license | Vaijyant/B.Tech.-Dehradun-Institue-of-Technology | cb36203499f4770f4e43ea4b46d5232bb2d2cbae | b2ec851f8455c6d2818102ea98cd7c9bddc14da7 | refs/heads/master | 2020-03-23T15:15:03.864200 | 2018-07-20T19:09:55 | 2018-07-20T19:09:55 | 141,733,230 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 796 | cpp | PRO14.CPP | //Program 14 : multiplication of two 2x2 matrices
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a[2][2], b[2][2], ans[2][2];
int i, j, k;
printf("Enter elements for 1st matrix:\n");
for (i=0; i<=1; i++)
{
for (j=0; j<=1; j++)
{
printf("Enter %d,%d element\n", (i+1), (j+1));
scanf("%d",... |
68b00885503e5304d5f000076f06cebb442737a8 | c17d1117f0ca8aa6b8cbf1b813c34da0732c32df | /_archive/_00_src/smaragd/tpf.h | 6443c5480a551f8f8aa886712d2b1b43662300db | [] | no_license | mouchtaris/fictional_disco | ee71a8c43eab829677d3dc8fc3f69b023440e483 | b267ababfbe28a1874eb45dd021e5fac66f21bd3 | refs/heads/master | 2020-04-04T19:18:10.174872 | 2018-12-30T14:54:03 | 2018-12-30T14:56:00 | 156,200,643 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 278 | h | tpf.h | #pragma once
#include "tpf/bind.h"
namespace smaragd::tpf
{
void _u__compiled();
template <
typename... Result
>
struct apply
{
template <
template <typename...> typename K
>
using type = K<Result...>;
};
}
|
507f57200680e2cdc716be406128417e4edd3fd3 | b0eacb1339ed04bf5bac6a27c9e95d890c4aea2b | /Osteotomia_Code/library/base/include/charsetConversion.h | 7c464159c8231a591e461566eb27207736ce27f4 | [] | no_license | david-branco/osteotomy | e1ed5b45dfd5edc5350ee5bd2ad60dae213cf7a6 | 7ff851cd43e4d69f3249bf3c9dfa0dd253e574d6 | refs/heads/master | 2020-04-09T05:31:57.366761 | 2018-12-02T16:55:30 | 2018-12-02T16:55:30 | 160,068,228 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,077 | h | charsetConversion.h | /*
Imebra community build 20151130-002
Imebra: a C++ Dicom library
Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
by Paolo Brandoli/Binarno s.p.
All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Gener... |
d289d5789976386f43a16deb4d6cef345ca34385 | c9bffc568a9f7204e14ee115027d6380b7680656 | /025_SmartPointers/main.cpp | 30b1ba247275a927df3278795ea6062f444f3733 | [] | no_license | SharanJaiswal/cpp | 088227de311366ea9b167d7bfa5a2081f4c609ef | 127392a3ff780077057c065fb6ede71e02aba034 | refs/heads/master | 2023-07-03T19:57:58.124934 | 2021-08-12T16:23:58 | 2021-08-12T16:23:58 | 378,701,956 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,029 | cpp | main.cpp | // https://en.cppreference.com/w/cpp/memory/shared_ptr
// Smart pointers help to save a step of calling delete function for freeing the dynamiclly allocated memory. It automates that part.
// Smart pointers are kind of wrapper around real raw pointers. They are of many types
#include <iostream>
#include <string>
#inclu... |
eaf8dd872330c9f319751196d97da40da4dc7222 | 253341ab01efe11bf937705c143ab75db74d386d | /lib/include/Logger.hpp | 27f03345a52d3673570f85fcc229c84f3233507e | [] | no_license | rwlodarz/mgr | 924a13d8512f095fbde78bcd3aad2dfb38765af3 | 5ddf793d2f59fbe4c2ee628462a1bd0abac9c5ef | refs/heads/master | 2016-09-05T14:41:33.132611 | 2015-09-22T14:13:56 | 2015-09-22T14:13:56 | 32,670,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | hpp | Logger.hpp | #ifndef _LOGGER_H_
#define _LOGGER_H_
#define LOGGING_SIZE 1024*1024
#define _ERROR (1 << 0)
#define _WARN (_ERROR | (1 << 1))
#define _INFO (_WARN | (1 << 2))
#define _DEBUG (1 << 3)
#define _NODEBUG 0
#... |
3b2a371b0125c915d44b09bfbf6e890de5a014e7 | 5f88482a7af818b08e8b2103271833edeeaeb7bf | /14_2_OpenMV_BOE_BOT_Car/main.cpp | ba91ee112d974f86a26135c1f99b5b920a838f4e | [] | no_license | GakuSenDeSu/mbed14 | 000c1c70b635f4606bada3470e858d92643f9031 | 51e301b45e994091d41f0462457299162534d1da | refs/heads/master | 2022-10-28T12:33:45.151704 | 2020-06-17T09:51:11 | 2020-06-17T09:51:11 | 272,723,744 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 345 | cpp | main.cpp | #include"mbed.h"
Serial pc(USBTX,USBRX); //tx,rx
Serial uart(D12,D11); //tx,rx
int main(){
uart.baud(9600);
char buf[1000]={0};
while(uart.readable()){
for (int i=0; ; i++) {
char recv = uart.getc();
if (recv == '\r') {
break;}
buf[i] = pc.putc(recv);
}
... |
96cedd8ced9821b526b095f40611aa9f09ad47b9 | a3b39d20c35918f366626b26cf612ea777768f88 | /vn2.3.cpp | ae8be19fa1f00a6a52556e5f56a7278d07422471 | [
"MIT"
] | permissive | quangvm2k3/codeC | eba8bc77d83b535ba8fc8ef8d44cd59263fa1018 | c7791dfda21f3cc8950faedc41852a2115b38f5d | refs/heads/master | 2020-04-05T15:03:51.433073 | 2018-11-10T05:42:04 | 2018-11-10T05:42:04 | 156,950,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 494 | cpp | vn2.3.cpp | #include<stdio.h>
int main()
{
float a,b,c;
printf("nhap so thu nhat :");
scanf("%f", &a);
printf("nhap so thu hai :");
scanf("%f", &b);
printf("nhap so thu ba :");
scanf("%f", &c);
if(a==b==c)
{
printf("max = %.1f" , a);
}
if (a >= b)
{
if(a >= c)
{
printf("max = %.1f" , a);
}
if(a < c... |
72624eb5927e165cf4a7272bf816a02f4f425c15 | 33f46425a10ab6f2f20ad5e9b983488cfcecf1a0 | /CommandLineProjects/ASCIIroguelike/RLikeGame/RLikeGame/Player.h | 03dcfdd81eb1917708d4fbfd7a47c7abec1b1f91 | [] | no_license | SerialDev/cppLearnMiniProjects | a80405daf0b0a1262863456866d71e96c0545b19 | 17f5ca197de6ba3fae2895fc365e882e4fee6bd3 | refs/heads/master | 2021-01-18T06:09:12.491142 | 2015-11-01T00:21:19 | 2015-11-01T00:21:19 | 29,964,618 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | h | Player.h | #pragma once
class Player
{
public:
Player();
void init(int level, int health, int attack, int defense, int experience);
int attack();
int takeDamage(int attack);
// Setters
void setPosition(int x, int y);
void addExperience(int experience);
// Getters
void getPosition(int &x, int &y);
private:
// Pro... |
4b372a7e6a06eb4924513115dc8842aa45352bec | 71f2bde94df4aa9d5fc8f56309c6088e379de99a | /build_source/fixheader.c | 46e7c1f0cd02317b95a981eea796582c165017d2 | [] | no_license | heyjoeway/s2disasm | 8d8d8025a0fa1d2cd54d288f4ee15dfc0934be8d | 51060181a17f24ae616fd7db7e3f80161339ddc1 | refs/heads/s2cx | 2021-07-20T09:43:15.825868 | 2021-01-13T05:12:48 | 2021-01-13T05:12:48 | 249,922,542 | 17 | 5 | null | 2021-03-21T21:34:11 | 2020-03-25T08:17:06 | Assembly | UTF-8 | C++ | false | false | 1,212 | c | fixheader.c | #include <stdio.h>
#include <stdlib.h>
void printUsage(void)
{
printf("usage: fixheader.exe romname.bin\n");
}
int main(int argc, char *argv[])
{
if(argc < 2)
{
printUsage();
return 0;
}
argc--, argv++;
char* romfilename = argv[0];
FILE* romfile = fopen(romfilename,"rb+");
if(!romfile)
{
printf("error... |
36d11b78c7f435d4491c4cdd8f9ffe45bae2b21c | 06e8a3523e289a0753779263735d454d30447471 | /src/parser.hpp | 0900595c4b0915629d2e40c5898f151321e4328b | [] | no_license | CaddyDz/ml | 43acab504a43d14ead1324ecd97ee8a53a3fa13e | 495ac1398136ed1665979f721876fed196388234 | refs/heads/master | 2023-01-14T09:13:00.960709 | 2020-11-19T12:54:44 | 2020-11-19T12:54:44 | 288,233,846 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 794 | hpp | parser.hpp | #ifndef PARSER_HPP
#define PARSER_HPP
#define VERBOSE 0
#include <string>
#include <vector>
#include <stack>
#include <regex>
#include <list>
#include <iomanip>
#include <iostream>
#include <strstream>
#include <map>
#include "tree.hpp"
class CParser
{
private:
std::map<std::string, std::string> m_list_expr;
std::... |
dded2edb68d4afd4cdeebc30945e1aa8db46103f | d762258781cad37c5fa864e619926dbb39e22234 | /Classes/EnemyPlane.h | 808beaf4144ff1f5548f05be0efdddcdc12f3770 | [] | no_license | onlycxue/PlaneFight | 9a22130cba96b62ae6167b27f3a853bac1960d56 | 68025fb26ba38b90a65809aa273308d59925b328 | refs/heads/master | 2020-05-21T11:40:05.128516 | 2014-03-13T05:21:54 | 2014-03-13T05:21:54 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,176 | h | EnemyPlane.h | #pragma once
#include "cocos2d.h"
#include "Plane.h"
#include "Bullet.h"
class EnemyPlane : public Plane
{
public:
//通过帧缓冲加载精灵图片
virtual bool initWithFile(const char *frameName, int hp, int minMoveDuration, int maxMoveDuration);
virtual Bullet* createBullet();
//定时添加子弹
void addBullet(float dt);
//... |
8649c54f97426b2457193faacf64d9f58b0d6c68 | 057b630916623a49947721f5e492514d1719b759 | /268.缺失数字.cpp | 8c77ca1d31d497b92f8d8702fcf23cbea0de04c9 | [] | no_license | CharlesFeng207/leetcode | 60a6ec77aa0be89b3f854e6f32c51485c9c89371 | 27454df39711a0d425beda2d89bef08f2d0ef5d8 | refs/heads/master | 2020-12-29T06:42:37.636529 | 2020-02-14T15:08:04 | 2020-02-14T15:08:04 | 238,497,118 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 344 | cpp | 268.缺失数字.cpp | /*
* @lc app=leetcode.cn id=268 lang=cpp
*
* [268] 缺失数字
*/
// @lc code=start
class Solution
{
public:
int missingNumber(vector<int> &nums)
{
int sum = accumulate(nums.begin(), nums.end(), 0);
int n = nums.size();
// 高斯求和公式
return n * (1 + n) / 2 - sum;
}
};
// @lc code=... |
8c3be1baa5e019f628c303c03ab35fd63f6a06fe | c040d031b41dde6f7f16e9412c6dc98703a8c106 | /Day2.cpp | dee6e399c28743e648182cec02a31fa30dd4b586 | [] | no_license | KshittizChaudhary950/Learning-C-plus-programming- | 6b71cd068343328158258741a628aa7a4fc4ee6f | 0282338c31836bc830ba46f20de93a16eea9cf23 | refs/heads/master | 2023-08-13T15:02:03.973653 | 2021-10-08T08:07:50 | 2021-10-08T08:07:50 | 409,928,586 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,615 | cpp | Day2.cpp | #include<iostream>// cout,cin, puts and null
#include<stdlib.h> //(srand, rand)
#include <time.h>
using namespace std;
int main()
{
// program to find size of different datatypes
//----------------------------------------------------------//
/*
cout<<"The size of int is:"<<sizeof(int)<<"bytes"<<endl;
cout... |
8f580f19daad82bbd2ea0d30d00348dbf8cf3feb | 6c6a4b97a5e5f8472150d7bfab5d62fe89f9da0a | /LabUnitTest/RWM_1718_P2_B/RWM_1718_P2_B/Contact.cpp | 8156f401f77fd93e1d907e20862a404c5cf366d9 | [] | no_license | JohnMcGrath/GamesEngeneering | e5937a505aeaec38f1c095697f7f0fb00740e472 | 9350699c89e9147e430faa11fa1b3caeb2db79ee | refs/heads/master | 2021-09-11T20:39:13.223805 | 2018-04-12T00:55:28 | 2018-04-12T00:55:28 | 104,320,979 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,246 | cpp | Contact.cpp | #pragma once
#include "Contact.h"
#include <iostream>
Contact::Contact()
{
m_numContacts = 0;
}
Contact::~Contact()
{
}
bool Contact::Play()
{
return 0;
}
void Contact::Init()
{
m_numContacts = 0;
}
void Contact::BeginContact(b2Contact* contact)
{
m_numContacts++;
std::cout << "contact" << std::endl;
std::c... |
ac42c9f897d1f85da865068da60f65332534e7bb | 1e721a44ed81abe6b2a983e49b1d69126866e78d | /Olympiad/JOI/2015/Qualification/silkroad.cpp | 9814cb4d639e2ffb87f2013f45a67f7fa4353ccd | [] | no_license | jjwdi0/Code | eb19ad171f7223dbf0712e611c9fc179defd947b | cf8bf0859e086366b768f48bc7e16167185b153f | refs/heads/master | 2020-12-24T07:55:14.846130 | 2017-04-24T07:46:41 | 2017-04-24T07:46:41 | 73,354,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 614 | cpp | silkroad.cpp | #include <stdio.h>
#define INF 987654321
int N, M, A[1003], B[1003], D[1003][1003];
int min(int X, int Y){ return X > Y ? Y : X; }
int main() {
scanf("%d %d", &N, &M);
for(int i=1; i<=N; i++) scanf("%d", A+i);
for(int i=1; i<=M; i++) scanf("%d", B+i);
for(int i=0; i<=M; i++) for(int j=0; j<=N; j++) D[i][j] = INF;... |
6d240b181747b86a8cdcc9627a75251c0a67903a | 00942b3152b7d9f23031f1d19599b3ee12d6014b | /MinHeap/main.cpp | a8b945c2775155ae83ae7bce619c56fa8d8cc938 | [] | no_license | AryamannNingombam/DSTP | 8ab36905657457054bb8645ecc445270810e2c30 | f379337478ace3fc2da5c986bca31703b152938b | refs/heads/master | 2023-07-11T03:26:37.506645 | 2021-08-06T06:01:20 | 2021-08-06T06:01:20 | 383,202,614 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,227 | cpp | main.cpp | #include <iostream>
#include <vector>
#include "MinHeap.h"
using namespace std;
template <typename T>
ostream &operator<<(ostream &os, const MinHeap<T> &t)
{
vector<T> nodes = t.getNodes();
for (int i = 1; i < t.size() + 1; i++)
{
os << nodes[i] << ' ';
}
return os;
}
int main()
{
in... |
3b0121d6248797962eb8c76aaa3813c9692bfcd8 | 2f93f60e8fb6964ed4c3c5cf65ae7f9b52c3b72b | /LOWERCASE.cpp | a315f6c5e28700e4be7dcb717077fe90faaba43b | [] | no_license | jingcmu/codeeval | 90cfaf22a2134b667250986b2772afc0fd33bfe8 | 04813e56f0f446119da18aa9e8b087ab92320efb | refs/heads/master | 2016-09-05T17:37:28.626823 | 2014-01-19T07:09:02 | 2014-01-19T07:09:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | cpp | LOWERCASE.cpp | #include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main (int argc, char* argv[])
{
ifstream file;
string lineBuffer;
file.open(argv[1]);
while (!file.eof()) {
getline(file, lineBuffer);
if (lineBuffer.length() == 0)
continue; //ignore all empty lines
else {
for(int i... |
b5d2414fe4f967ba9a56413d8c54a8da8161b35a | 5d774394ee218bdda3d581307fc4e771d7a2fff9 | /two_majong/twomajongGameLogic.cpp | d436fef21f85d3c354070f993d7c94af8855c6ae | [] | no_license | 3zheng/chaos | 26c96c16152c2430ca4740479dff471c867e496d | 111fa8218644c4a0545a5ee115e1190ecd647e72 | refs/heads/master | 2021-07-26T14:54:22.904978 | 2017-11-07T07:48:57 | 2017-11-07T07:48:57 | 56,032,135 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 24,675 | cpp | twomajongGameLogic.cpp |
#include "interface/base/itf_base.h"
#include "twomajongGameLogic.h"
#include "public/common/singleton.h"
#include "../ddz_share/getstringit.h"
#include "public/common/aw_convert.h"
#include <io.h>
#include <unordered_map>
#include "../ddz_share/CardsToCal.h"
#include "MjChewPongKongHuTingHelper.h"
#include <algor... |
23d8311e7bb0bc2d9efa3d96b03d537bb9f11675 | ec4142cb7feb4ab521a0bdff8067c3375fc00b93 | /013-Polymorphism/Vehicles.cpp | e89b28f385d95a703737d060f3f3c6f56d2ff9a3 | [] | no_license | raphpion/LearningCpp | ad283dbeb66747d8e59dac1add0fab8aa1546797 | bb0d1c7a6ca594e422e5138bc273cc4f43baecba | refs/heads/master | 2020-12-31T08:22:18.599311 | 2020-02-07T14:52:58 | 2020-02-07T14:52:58 | 238,949,997 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 820 | cpp | Vehicles.cpp | #include <iostream>
#include "Vehicles.h"
using namespace std;
Vehicle::Vehicle() : m_price(0){}
Vehicle::Vehicle(int price = 0) : m_price(price) {}
void Vehicle::show() const
{
cout << "A vehicle costing $" << m_price << "." << endl;
}
Vehicle::~Vehicle(){}
Car::Car():Vehicle(m_price), m_doors(4){}
Car::Car(int ... |
218baa8e24cda54a6335b35c98122fc941d8a292 | 28ae1453e6fbb1bd41a0d866eecbe11b4daf1e0f | /src/Others/acyclic_visitor/base_element.cpp | cf68a8cd50bb1b97fb8f8625d163077a3ef80c26 | [
"MIT"
] | permissive | haomiao/DesignPattern | f4a874e273feb6bf8245d6cbd0bc81735ee732d2 | 3841fca5e8f08348e60af42566e57951d7d1c4dd | refs/heads/master | 2021-04-15T12:49:02.635962 | 2019-10-19T04:14:54 | 2019-10-19T04:14:54 | 63,339,913 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 119 | cpp | base_element.cpp | #include "stdafx.h"
#include "base_element.h"
CBaseElement::CBaseElement()
{
}
CBaseElement::~CBaseElement()
{
}
|
51ce60e622f75a00980be1b6f0b8ee1b4be5d0b7 | 69bb6c6945680394ca7200fe25490817bb382faa | /800.2/wine.hpp | 9b9d8d81b57a45bd972bade8f6b239943c4917ab | [] | no_license | Bossones/StPrataPLC | 22d6068e7e0d2ce03570f90400daa80264be2ef4 | 9fa1c6f39d08cdd3d1149936f8c4d23c415eeb23 | refs/heads/master | 2020-06-24T07:50:17.735918 | 2019-11-10T18:39:10 | 2019-11-10T18:39:10 | 198,902,358 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 516 | hpp | wine.hpp | #ifndef WINE_HPP__
#define WINE_HPP__
#include <iostream>
#include <string>
#include <valarray>
#include "pair.hpp"
class Wine : private Pair<std::valarray<int>, std::valarray<int>>, private std::string {
private:
typedef std::valarray<int> ArrayInt;
int years;
public:
Wine(const char * lab, const int & y... |
7ac003e5d43ce9154909a79dec01a48826a3545f | bc412e1392bb3b2426a674fe1683355fe164a703 | /MultiHack/Radar.cpp | 4876bdeda1c21c9fbcf82a18ac24f45caf41aad6 | [] | no_license | zer0chill/MultiHack | 3064e4bfa2d2a81eb39a9d0f42ad3c12fee591c1 | b64ef4c4da6ecea1912c360feb06347911e21c62 | refs/heads/master | 2021-01-10T01:46:18.946571 | 2015-10-28T14:38:22 | 2015-10-28T14:38:22 | 45,080,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 245 | cpp | Radar.cpp | #include "Radar.h"
Radar::Radar()
{
}
Radar::~Radar()
{
}
void Radar::DoShit()
{
for (int i = 0; i < 32; i++)
{
DWORD ep = ClientDLL + entityBase + ((i - 1) * 0x10);
int ep2 = mem.Read<int>(ep);
mem.Write<int>(ep2 + spotted, 1);
}
} |
36441d8b0c8c90fb032648904ac6743c8742c129 | 8cf4c38075e2edbb0ba807f1940a57c61fe784ef | /reversiboard.cpp | 661acf1b2d7fbcdb709e0e41fcf728d357554080 | [] | no_license | tinaxd/MyReversi | 7bb59b9bf9fe9e1ae67e22f24e7c17a71226f4c9 | 0a633333d260f09e31604d36d59aa6dc1ade9c35 | refs/heads/master | 2022-12-03T07:41:31.375677 | 2020-08-26T05:34:22 | 2020-08-26T05:34:22 | 290,404,870 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,880 | cpp | reversiboard.cpp | #include "reversiboard.h"
ReversiBoard::ReversiBoard(QObject *parent)
: QObject(parent)
{
for (size_t i=0; i<64; i++) {
m_cells.at(i) = DISK_NONE;
}
m_cells.at(27) = DISK_WHITE;
m_cells.at(36) = DISK_WHITE;
m_cells.at(28) = DISK_BLACK;
m_cells.at(35) = DISK_BLACK;
emit changed(... |
90146f7d86ae91f0e92a532d4e8f92bcad4ecda6 | b8daf682147088cb1de5fbc8936f20abd3e05637 | /Tema3/ED21/source.cpp | a9ca172bf6b56a56cec780d10a46dd6f37e90e66 | [
"MIT"
] | permissive | Yule1223/Data-Structure | 95ddebc46e94472b49a8cc0a0eaf11c90d4292d7 | 90197a9f9d19332f3d2e240185bba6540eaa754d | refs/heads/main | 2023-03-02T07:41:44.586971 | 2021-02-05T21:44:07 | 2021-02-05T21:44:07 | 320,394,812 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,053 | cpp | source.cpp |
// Yule Zhang
// Comentario general sobre la solución,
// explicando cómo se resuelve el problema
#include <iostream>
#include <fstream>
#include <string>
#include "bintree_eda.h" // propios o los de las estructuras de datos de clase
using namespace std;
// resuelve un caso de prueba, leyendo de la entrada la
// c... |
d0931e6b5994d7aa49a27f2518aef15f6053cd6c | 930c9ac166fcc59019b7572583e0a1dbf0a026c3 | /1249/B1/main.cpp | 5096b27e2837d2bae8d92957834ad39c2c74fa6b | [
"MIT"
] | permissive | maksimkulis/codeforces_tasks | eb255f8cdfbe69d38a5ff93f1ac4a8e8456e4171 | d6d6dbea6a34e2f3e68ade838b29620c3aa5d80e | refs/heads/master | 2021-02-07T00:47:36.133395 | 2020-02-29T12:22:50 | 2020-02-29T12:22:50 | 243,963,457 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | cpp | main.cpp | #include <bits/stdc++.h>
std::vector<int> vec(int(2e5) + 100);
std::unordered_set<int> set;
std::vector<int> res(int(2e5) + 100);
int main()
{
int q, n;
std::cin >> q;
while (q--) {
std::cin >> n;
for (int i = 0; i < n; ++i) {
std::cin >> vec[i];
vec[i] -= 1;
... |
c280f7cc2989c43895cf51593f03aacc490766dd | 2e05f61d452c05ac5dfbedd6c0cfc23eb0474934 | /software/arduino/bloc_commande/bluetooth.h | 830c626c36fba85d06c729a5c861f1e6da1b3f37 | [] | no_license | LouisMalbranque/Table-Rotative | c0985de8d96cb7edf043e2014a9029bd76034fbf | 7e69e6480e91942ccc83e4e84a35e1a556aa13c9 | refs/heads/master | 2020-04-29T22:56:56.006859 | 2019-05-13T14:52:45 | 2019-05-13T14:52:45 | 176,463,250 | 2 | 4 | null | 2019-05-14T23:41:31 | 2019-03-19T08:32:05 | Java | UTF-8 | C++ | false | false | 1,089 | h | bluetooth.h | #include "arduino.h"
#include "constantes.h"
#include "BluetoothSerial.h"
/*
#define ACCELERATION 0
#define SPEED 1
#define FRAME 2
#define STEP 3
#define DEGRES 4
#define PAUSE 5
*/
/*
classe de gestion de la communication bluetooth avec le téléphone
*/
class Bluetooth
{
private:
... |
76cb7cad0bdea714fc3f73c60f68d09540af776a | 3505220b09cd6df65fbf608be1a853742e029b48 | /DistributedTrees/Features.h | dbfb51b1bb7c06a7debb12f55c8661714f93e6d7 | [] | no_license | gjsanchez26/proyectoDiseno18 | 846a494e5d1aaf950e6d1a05122bc8047463b47a | df5462a352ab7690df96a5b80b8997a8bf880e26 | refs/heads/master | 2018-10-01T07:57:12.853937 | 2018-06-17T17:15:22 | 2018-06-17T17:15:22 | 120,678,726 | 0 | 0 | null | 2018-04-23T20:47:07 | 2018-02-07T22:17:05 | C++ | UTF-8 | C++ | false | false | 2,111 | h | Features.h | /*
* Copyright (C) 2018 Sygram
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed... |
b2bde82939af3265f0df2929af97fc588aa55030 | 2e54b886390d261e8b02f047c6cd64c477bd9841 | /IdeaFuse2014-Final/UkuranKejauhan.cpp | 5f61ecf73bd5916adcba9890a3aabba5942b48dc | [] | no_license | agungdwiprasetyo/Competitive-Programming | 67a90cca6b0f5bbc67f0f2bf2a62c478ac474a88 | 3b0366d530034b1ccc7789f40108fa057761e08b | refs/heads/master | 2021-01-12T02:29:55.845208 | 2020-02-13T07:37:45 | 2020-02-13T07:37:45 | 78,040,096 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,361 | cpp | UkuranKejauhan.cpp | /*
Problem:
Deskripsi
Pada suatu lomba, para peserta diminta untuk melempar batu sejauh-jauhnya. Nilai diperoleh dari bilangan kuadrat terdekat yang tidak lebih dari posisi batu itu mendarat. Sebagai contoh jika batu itu dilempar dan mendarat pada posisi 90, maka nilai yang diperoleh adalah 81. Dan jika batu peserta ... |
7826b20aea74a3fed90e60e480b3ef4162d4218b | 81ef3e309bff62edee4f0fbbe59767c0404b8ea2 | /Codebase/Projects/TerrainGenerator/src/DiamondSquare.cpp | 02964c567588425dd345af6d0da349d8410ed0ac | [] | no_license | dralois/Nova-Engine | 6195304ef547c823a355147d55e69831931c083f | f6892b9bb0fdb5bef787d9c1b04f41ca0feb1b45 | refs/heads/master | 2023-01-07T19:01:39.925677 | 2020-11-12T16:36:27 | 2020-11-12T16:36:27 | 140,173,761 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,097 | cpp | DiamondSquare.cpp | #include "DiamondSquare.h"
using namespace std;
#pragma region Properties
float *&DiamondSquare::GetHeightField()
{
return m_dHeightField;
}
#pragma endregion
#pragma region Procedures
#pragma region Public
// Copy one array into another
void CopyArray(const float * pi_dSrc, float * pi_dDest, const int pi_iWidt... |
022b0a9aef701f00a23c3c61854cb44bd4aae594 | 3473ffd1759615e64093a6ed7b0d01c1b880fe3c | /Sources/SetRegisters/mainwindow.h | d1cd8f3407aedc0eed080ec41b1a343a3294d63c | [] | no_license | Nikitavoz/FTMcontrolSoftware | cfef27818f82d8af6b5aec181d86c6782515c1e0 | be6daf8a719336468f6d48b58c5e3f9c6fde8b84 | refs/heads/master | 2020-06-24T03:50:45.456278 | 2019-11-06T14:16:40 | 2019-11-06T14:16:40 | 198,840,142 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,279 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QtWidgets>
#include "ipbusinterface.h"
#include "ui_mainwindow.h"
namespace Ui {
class MainWindow;
}
const quint8 maxNumberOfRegisters = 24;
const quint32 defaultBaseAddress = 0x00001000;
class MainWindow : public QMainWin... |
9f990e29f5a5def9c13916b09835623da18c22df | a3e775d96bd2c86f2af592a97af9aa21a5d7f132 | /Converters/XML/TerrainLayerInfoConvert.h | 8284b618843b720088893e35086a242df0c7cdbd | [
"MIT"
] | permissive | prophetl33t/CryLevelConvert | 11a7c69c501ca82f601736748148d18e35d43eba | d8df3bfa8860732a2044e1bd7877cc5b4b1a3622 | refs/heads/master | 2022-10-26T04:16:34.632031 | 2022-10-19T13:01:31 | 2022-10-19T13:01:31 | 240,019,552 | 13 | 5 | null | 2020-02-15T10:42:22 | 2020-02-12T13:27:55 | C++ | UTF-8 | C++ | false | false | 615 | h | TerrainLayerInfoConvert.h | #pragma once
#include "Converter.h"
#include <regex>
/// <summary>
/// <para> XML data converter class</para> <para>Input : levelinfo.xml from level</para> <para>Output : .lay file containing data about terrain layers. REFACTOR IN FUTURE!</para>
/// </summary>
class TerrainLayerInfoConvert : public XMLConverter
{
priva... |
2d16a834796115c9d12c0b7c154e3e7910b368eb | b400a4d9e52655d894d104c1e4cd3be361579ced | /digimatic-c++/day03/main.cpp | ff72e3d890ff39c5498e615b3e4a94f552021099 | [
"Apache-2.0"
] | permissive | digimatic/advent_of_code_2019 | c5b80496f851f06a298f7686781502d87b1d8fc4 | 9ddc94a80d26e5c35a8085012de35e1679f0bf27 | refs/heads/master | 2021-07-14T17:29:29.675115 | 2020-11-23T17:46:10 | 2020-11-23T17:46:10 | 224,442,863 | 0 | 0 | Apache-2.0 | 2020-11-24T21:39:05 | 2019-11-27T13:57:39 | C++ | UTF-8 | C++ | false | false | 2,803 | cpp | main.cpp | // Advent of Code 2019
// Peter Westerström (digimatic)
#include "config.h"
#include <common/common.h>
#include <algorithm>
#include <cassert>
#include <deque>
#include <functional>
#include <iostream>
#include <limits>
#include <map>
#include <regex>
#include <stdexcept>
#include <string>
#include <tuple>
#include ... |
46e655bb714f0a31152d1473696200cc2b5d1834 | c620f20298314e9047b7d9f369d5a60358fadda3 | /src/modelesswindow.h | 62693654e839509c98944c16e4e539005181c1c0 | [
"MIT"
] | permissive | CsatiZoltan/TestBench-Qt | 6418be3846eaaa2a49dd9dd024de09204fbff6c0 | f0e71c33e1a8440842b2227d0328ea0f7dbae639 | refs/heads/master | 2021-01-02T09:21:53.315044 | 2017-08-10T12:26:31 | 2017-08-10T12:26:31 | 99,195,844 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | h | modelesswindow.h | #ifndef MODELESSWINDOW_H
#define MODELESSWINDOW_H
#include <QDialog>
namespace Ui {
class ModelessWindow;
}
class ModelessWindow : public QDialog
{
Q_OBJECT
public:
explicit ModelessWindow(QWidget *parent = 0);
~ModelessWindow();
private:
Ui::ModelessWindow *ui;
};
#endif // MODELESSWINDOW_H
|
83ed9bc70eb773ce9d14221e10613abd76532b37 | 2af15d28492c10be1cc2e27c6ac3bcfd5ea3b525 | /opm/autodiff/multiPhaseUpwind.hpp | 8f52824bdf91ec4a4bdac3cefe96206e0eef7695 | [] | no_license | OPM/opm-simulators-legacy | 62e22354a4ea276acc40a1638317f41f84a46c6d | b027361cc3c5b09d15288cfbbbbaf8e4bb8336e5 | refs/heads/master | 2020-04-06T23:17:46.852136 | 2019-03-13T10:06:59 | 2019-03-13T10:06:59 | 157,864,384 | 1 | 3 | null | 2019-03-13T10:07:01 | 2018-11-16T12:25:53 | C++ | UTF-8 | C++ | false | false | 1,988 | hpp | multiPhaseUpwind.hpp | /*
Copyright 2015, 2016 SINTEF ICT, Applied Mathematics.
Copyright 2016 Statoil AS.
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, eithe... |
f2d6c76b21e0835fae40f57ef4ffec89107dfa1a | c8b6fcdad9d9a43c8dd5c9b6d0b3a58bec63e2c8 | /src/memory.cpp | 891aab27b508cb97aadaa396f067b0fef5364267 | [
"MIT"
] | permissive | DoubleJump/waggle | 22a4f8e3077a4c21cf22f5e41000516e7ce4f3da | 06a2fb07d7e3678f990396d1469cf4f85e3863a1 | refs/heads/master | 2021-01-24T06:47:13.604413 | 2017-06-04T14:50:06 | 2017-06-04T14:50:06 | 93,319,653 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,092 | cpp | memory.cpp | enum struct Allocator_Type
{
HEAP = 0,
BUMP = 1,
};
/*
struct Heap_Tag
{
b32 in_use;
memsize size;
};
*/
struct Allocator
{
Allocator_Type type;
memsize size;
memsize used;
u8 alignment;
void* base;
u8* current;
};
global_var Allocator* _allocator_ctx = NULL;
#define copy_array(src, ... |
fbb2eab73c2ed946ebea6a14e889d63d5b5710ad | 45288aa56edd247941d6fc118db45217a1aae1c9 | /4__struct_in_c++___.cpp | 77a86c04354c7ad71944a8fe365ee28c815641c3 | [] | no_license | abhisekmane98/Code11 | 084a8b70f0a7b4117eff2260a2c14cdc28495efe | ac0e0ec7da2d68edcf30134b2d1f239c03946c7f | refs/heads/main | 2023-08-23T11:09:51.866792 | 2021-10-02T18:37:19 | 2021-10-02T18:37:19 | 412,881,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 429 | cpp | 4__struct_in_c++___.cpp | #include<iostream>
struct emp
{
private:
int id;
char name[40],ch;
float sal;
public:
void input()
{
std::cout<<"Enter id ";
std::cin>>id;
std::cout<<"Enter name ";
std::cin.get(name,40);
std::cout<<"Enter sal ";
std::cin>>sal;
}
void display()
{
std:... |
1dcebdf277dbcf09f4ae45af3c4ea2a47296c993 | c8451d13253dc3215c093c2ada62320ee5a0bdaf | /DataFuncPrototypeCompiler.cpp | de38e9eb5a802be302fb480828da772bc0e333d5 | [] | no_license | libo3019/DataFuncPrototypeCompiler | 5f3d72441e2766f26c62b7d502745d1ced59df2d | 25b3ada364e3c2e5136018dbe4984e67660ef84e | refs/heads/master | 2020-08-27T23:22:46.937219 | 2019-10-25T11:26:10 | 2019-10-25T11:26:10 | 217,518,541 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,273 | cpp | DataFuncPrototypeCompiler.cpp | #include <cctype>
#include <fstream>
#include <iostream>
#include "datafuncprototype.grammar.hh"
#include "DataFuncPrototypeCompiler.h"
#include <gc.h>
using token = MC::DataFuncPrototypeParser::token;
MC::DataFuncPrototypeCompiler::Builder::Builder() {
in = &std::cin;
out = &std::cout;
deb = nullptr;
}
MC::DataFu... |
13fb14ec4ecf71cf10ff0c6943295c10546cdd4e | 7de775f67c84b66a32e29237f608f9f17caf0adb | /src/math.matrix.ibds/Quaternion.cpp | 772239e861f96f4f3b7917421810e3d86bcfe4b7 | [
"MIT"
] | permissive | toeb/sine | d616f21b9a4ff18d8b1b1d5e9e5a21a8ee7aec04 | 96bcde571218f89a2b0b3cc51c19ad2b7be89c13 | refs/heads/master | 2016-09-05T19:17:07.891203 | 2015-03-20T07:13:45 | 2015-03-20T07:13:45 | 32,568,082 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 8,353 | cpp | Quaternion.cpp | /*
* IBDS - Impulse-Based Dynamic Simulation Library
* Copyright (c) 2003-2008 Jan Bender http://www.impulse-based.de
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permiss... |
7474e6646c3e3abac1449e15576e86cd25b1e444 | 9eb2dbff4241a1b7e8dab82090fc3f2dfcb6a70f | /src/RenderTargets.h | 488b517675f98c2e14a012702df86f993e248f6b | [] | no_license | donatoNigro/OpenGL-Project | 26b7d776b5a41b775f050d48920302d071b95456 | 0af2a08783c7b80bb6409151b899f7cd25b6947e | refs/heads/master | 2020-12-24T17:55:05.725649 | 2015-04-23T06:00:13 | 2015-04-23T06:00:13 | 30,327,183 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | h | RenderTargets.h | #ifndef _RENDER_H_
#define _RENDER_H_
#include "Application.h"
#include "gl_core_4_4.h"
#include "GLFW/glfw3.h"
#include "Gizmos.h"
#define GLM_SWIZZLE
#include "glm/glm.hpp"
#include "glm/ext.hpp"
#include "FlyCamera.h"
#include "Utility.h"
#include "Vertex.h"
class RenderTargets : public Application
{
public:
v... |
200c9cf711860589fc67b5cfbf70dec23fc32788 | b41dddb6722fffce17f09537797a2cd37a97c8ec | /CodeForces/1267B-Balls_of_Buma.cxx | 8f60b39f137852dedd5b5c059624c83e32ab613f | [] | no_license | zinsmatt/Programming | 29a6141eba8d9f341edcad2f4c41b255d290b06a | 96978c6496d90431e75467026b59cd769c9eb493 | refs/heads/master | 2023-07-06T11:18:08.597210 | 2023-06-25T10:40:18 | 2023-06-25T10:40:18 | 188,894,324 | 0 | 0 | null | 2021-03-06T22:53:57 | 2019-05-27T18:51:32 | C++ | UTF-8 | C++ | false | false | 1,160 | cxx | 1267B-Balls_of_Buma.cxx | #include <iostream>
#include <bits/stdc++.h>
#define F(i, n) for (int i = 0; i < n; ++i)
using ll = long long;
using ull = unsigned long long;
using namespace std;
int main()
{
string s;
cin >> s;
int l = 0, r = s.size() - 1;
int total = 0;
bool ok = true;
while (l < r)
{
c... |
c366c6604d071b9ed3d5d77aa026dd08d61350e5 | f2c0259c672277d6f17a715e10f5e5ecdd00d605 | /smtk/extension/qt/qtReferenceItemEditor.h | ef5a4f76e7aeeb4c4f495e27bed378b010f5b0f4 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Kitware/SMTK | 83ff15620f801f12488ad238a4cf36f2998cfd14 | a16cf5393f91d97dca2db0c2bd46d21864152c66 | refs/heads/master | 2023-08-31T18:54:44.534709 | 2023-08-28T14:35:32 | 2023-08-28T14:35:50 | 28,104,084 | 50 | 30 | NOASSERTION | 2023-07-20T11:08:10 | 2014-12-16T20:02:07 | C++ | UTF-8 | C++ | false | false | 4,660 | h | qtReferenceItemEditor.h | //=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... |
e470e5e9a7cac10bcadfffa4b4691994873afbee | 4a8b38d44063d64ecf193752a610b6805a39e3a0 | /oving13/astar.hpp | 7ceb55ee3ede57ab0e3634d720cda0487f8b62e9 | [
"MIT"
] | permissive | odderikf/algdat | eb643e4d07f5db775b282a7284807f18d58ecf26 | 9b5e5ea42ca0fefda3c1e9be5cff0be4797a8aae | refs/heads/master | 2020-03-30T20:36:00.177029 | 2018-12-12T21:53:28 | 2018-12-12T21:53:28 | 151,594,902 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | hpp | astar.hpp | #ifndef ASTAR_H_ODDERIKF
#define ASTAR_H_ODDERIKF
#include <functional>
#include "graph.hpp"
void astar(const Graph &vertices, const unsigned long &start, const unsigned long &goal,
const std::function<double(const Edge &)> &distance_function,
const std::function<double(const unsigned long &, co... |
0a45c3fdeca07053a709c442deb3b3e1a5afe034 | 6de52babda9913bed515f2f9301890da9b8d4677 | /Monk and Binary Array.cpp | 5a9fc216a85d2f574162a4c3d3f762d34478a0bb | [] | no_license | brguru90/pgm-examples | d0d034689a9731c33d892512519d8e0fb2278118 | 10c6da6a6b0752f7b99d22ff6844ff56dfdb22fd | refs/heads/master | 2020-03-26T11:47:31.598461 | 2018-08-15T13:58:15 | 2018-08-15T13:58:15 | 144,820,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 400 | cpp | Monk and Binary Array.cpp | #include<iostream>
#include<math.h>
using namespace std;
int main()
{
int n;
long c=0;
cin>>n;
int a[n];
bool b=true;
for(int i=0;i<n;i++)
cin>>a[i];
for(int i=0;i<n;i++)
{
if(a[i]==0 && a[i+1]==1 && i+1<n && b)
{
a[i]=1;
a[i+1]=0;
b=false;
cout<<"Flip"<<endl;
}
if(a[i]==1)
c+=pow(2,... |
5d412db3cdc84e6af1c6000112a68552a8955971 | 2826cfbd18677766cffc4cd40ed8af5350594c2d | /src/lib/Support/error.cpp | 7765c52ce5a5bdc94fe9faa17b189e3d19e016c3 | [] | no_license | movie-travel-code/moses | ba739b0348425af7a4ea84599756bc2af44945e2 | b0b336c7e1aa93be013e2f834b6d912bf7456c2c | refs/heads/master | 2022-01-18T23:04:17.251970 | 2022-01-03T13:09:19 | 2022-01-03T13:09:19 | 53,630,620 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 707 | cpp | error.cpp | //===---------------------------------------error.cpp-----------------------------------===//
//
// This file impletments error mechanism.
//
//===-----------------------------------------------------------------------------------===//
#include "Support/error.h"
#include <iostream>
void errorOption(const std::... |
1ded39dfcc837b2fe1867aea28ea064092a86f05 | 449c65b0ce1fd59d275d2d06ea67965b4ac1a84e | /src/remote.cpp | 4984c308f730e57080d7d69d6b44afbbd31c0c75 | [] | no_license | jhurobotics/Trinity | cf9068cf666093cf3fd41f105a076442ca4e2cd0 | 07f08c7544d3a66447ed465d75519ae6fbec7ddc | refs/heads/master | 2021-01-25T07:19:14.602118 | 2011-04-23T00:33:45 | 2011-04-23T00:33:45 | 1,076,130 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,071 | cpp | remote.cpp | #include <iostream>
#include "arduino.h"
//#include "maestro.h"
using namespace robot;
int main(){
/*
Maestro *mae = new Maestro();
mae->setup("/dev/ttyUSB0");
*/
Arduino *ard = new Arduino();
ard->setup("/dev/ttyACM0");
int sensorId = 0;
int encoderVal;
float sonarVal;
for(;;){
std... |
d0f4071853b73a1d37e6d431e735713689f7bb18 | 2fac67f8d9a53484bc2f1f1e4810bb01fc529361 | /另类加法.cpp | a7eaa495b180f5b11a0b1df97cd5da64050ce6ed | [] | no_license | Zruzhuo/C_Practice | 19610e01ae09b4d4bf4c56142056be6d0285edaf | edd0e482066ae1ac04466fbea19ababf3e4da063 | refs/heads/master | 2021-07-05T08:29:39.838647 | 2020-09-22T14:28:23 | 2020-09-22T14:28:23 | 185,733,298 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 246 | cpp | 另类加法.cpp | #include<iostream>
using namespace std;
int addAB(int A, int B) {
int ret = 0;
while (A != 0)
{
ret++;
A--;
}
while (B != 0)
{
ret++;
B--;
}
return ret;
}
int main()
{
cout << addAB(4, 5) << endl;
system("pause");
return 0;
} |
76b57f9014ddbfb5c69f2d06fd0800f57861c4e2 | bb3f3db08c8c137294a2aed064fdf9a3bb6d712f | /ExamenFinal/corregido/humanos.h | b5769cc7a6ce7d98f8395537712bff1491414117 | [] | no_license | alejandratub/ProgramacionOrientadaObjetos | 6f502e309f2d2ad6bd73fff99e65bc38ded369b5 | 7a3d6671156ff5c2d3e78724909809127953a0ac | refs/heads/master | 2020-07-17T19:11:19.945467 | 2019-09-03T13:08:24 | 2019-09-03T13:08:24 | 206,079,835 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | h | humanos.h | #ifndef Humano_H
#define Humano_H
#include <iostream>
#include <string>
#include "jugador.h"
using namespace std;
class Humano: public Jugador
{
public:
Humano();
Humano(float, float, float, float);
~Humano();
float ataque();
void esquivarAtaque(float);
... |
bce4ba06ee6129be505cb4b7b3f48ee9c7327c2e | 22ba97d792e6e16892d8043a2593188563688ba9 | /transfer.cpp | 1190eb56cf37810b38f8b1c474d0c0a76121690d | [] | no_license | pierce1987/pcim-dev | 5677c597328b40d5c1c4430b78473158414975b2 | 2dad3e6c9883881cddfc4467ca3877a0269c206e | refs/heads/master | 2020-06-01T18:59:28.976271 | 2014-03-16T19:33:18 | 2014-03-16T19:33:18 | 16,212,628 | 0 | 0 | null | 2014-03-16T19:33:19 | 2014-01-24T18:15:26 | C | UTF-8 | C++ | false | false | 2,481 | cpp | transfer.cpp | #include "transfer.h"
using namespace std;
pcim* rwogenerator(istream& is, int var, int state, int ds){
double rate;
is>>rate;
if(state == ds-2){
double last;
is>>last;
pcim *temp = new pcim(new eventtest(var, state), new pcim(rate<0? 0:rate), new pcim(last<0? 0: last));
return temp;
}
else{
pcim *temp... |
a1a3805d3ff3cdc80844e5ec0f5c5a920f5e34d0 | f613e59183fa2db3700413685cc24ad6d106e829 | /ParkCustomerCenter/qimagelabel.h | c8d56e4042d558b57d4c6319e28ef23840ef12cb | [] | no_license | isliulin/ParkSolution | d7e667ccebf7bd0758040952a1140c281bbd6154 | 7f99f57fa6832023b6e10a122dd9efbaf780c40b | refs/heads/master | 2021-05-28T01:50:41.292181 | 2014-08-13T09:14:04 | 2014-08-13T09:14:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 683 | h | qimagelabel.h | #ifndef QIMAGELABEL_H
#define QIMAGELABEL_H
#include <QLabel>
#include <QResizeEvent>
class QImageLabel : public QLabel
{
Q_OBJECT
public:
explicit QImageLabel(int nIndex, QWidget *parent = 0);
void LoadImage( QString& strFile );
void LoadImage( QByteArray& byImage );
QSize sizeHint( ) const;
p... |
6874d0b70d6540e961b82740ebc2de88c8ff0f4e | c3ac4fea1cae46e0b24337be7cf7a4f92f7e0a1e | /include/qt5/QmfClient/5.0.0/QmfClient/private/mailkeyimpl_p.h | d7126acbd46f9739e03d6f6098bb7480cd3782c4 | [
"MIT"
] | permissive | croc-code/aurora-rust-gui | 26ed9bf47894cb19de0827eb829e443d44ce9c9d | 67736d7c662f30519ba3157873cdd89aa87db91b | refs/heads/master | 2023-03-09T21:27:31.475242 | 2021-02-15T08:46:09 | 2021-02-15T08:46:09 | 337,438,797 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,987 | h | mailkeyimpl_p.h | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Messaging Framework.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercial Qt l... |
208950641bdf25aa3a2c8d5d9381a205735c4200 | 4110496fb8b6cf7fbdabf9682f07255b6dab53f3 | /String/2452. Words Within Two Edits of Dictionary.cpp | 73db6de475e95fd92468062cc3f744d4b6a93d27 | [] | no_license | louisfghbvc/Leetcode | 4cbfd0c8ad5513f60242759d04a067f198351805 | 1772036510638ae85b2d5a1a9e0a8c25725f03bd | refs/heads/master | 2023-08-22T19:20:30.466651 | 2023-08-13T14:34:58 | 2023-08-13T14:34:58 | 227,853,839 | 4 | 0 | null | 2020-11-20T14:02:18 | 2019-12-13T14:09:25 | C++ | UTF-8 | C++ | false | false | 828 | cpp | 2452. Words Within Two Edits of Dictionary.cpp | class Solution {
public:
vector<string> twoEditWords(vector<string>& queries, vector<string>& dictionary) {
// goal: find the queries, such that each word should be in dictionary
// idea: modified dictionary
// a word, change to '*'
// and two edit, change to '*', '*'
... |
b873a456e9f90e1b62895c93975be70be65670d1 | ec48e11593717df874746092ca2a127b6de2f49f | /src/eti/xetra/packets/xetraNewsBroadcastPacket.h | 25e8effec418b252f39766e5e3e0c30ddc17ae13 | [] | no_license | blu-corner/codec | 44842673e63dbc9e50077f805de405b121225ca4 | a7582a9384e26452e45c2c36952cb7424a52a6ca | refs/heads/master | 2022-07-25T04:24:39.555286 | 2022-06-06T10:15:12 | 2022-06-06T10:15:12 | 152,606,392 | 9 | 13 | null | 2022-10-18T16:00:33 | 2018-10-11T14:36:13 | C++ | UTF-8 | C++ | false | false | 11,280 | h | xetraNewsBroadcastPacket.h | /*
* Copyright 2014-2018 Neueda Ltd.
*
* Generated 08/03/2020
*/
#ifndef XETRA_NEWSBROADCAST_PACKET_H
#define XETRA_NEWSBROADCAST_PACKET_H
#include <string>
#include <vector>
#include <sstream>
#include <cstddef>
#include <stdint.h>
#include "xetraPackets.h"
#include "EtiPacketUtils.h"
namespace neueda
{
using ... |
c6ff5ec7a9477af6b268440eb7c0295b7ec36460 | 4db188ea31dea3c3710ab9c3c6466a0235f811f8 | /client_main.cpp | 5f296065b9db67ba4a495f4b8d61a8990d686f47 | [] | no_license | sonic4002/TCPClient | 2d3be27006a32c5819995f30c20aa420e8544e94 | a1a419646edb5aa9cb28918402a67d7880f869cd | refs/heads/master | 2021-01-01T20:32:10.315609 | 2017-09-05T19:49:56 | 2017-09-05T19:49:56 | 98,881,724 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,805 | cpp | client_main.cpp | //
// Created by omrih on 21-Jun-17.
//
#include "Client/TCPMessengerClient.h"
#include "utils/TCPMessengerProtocol.h"
#include<iostream>
#include<string.h>
#include <thread>
using namespace std;
using namespace npl;
void printInstructions() {
cout << "c <ip> - connect" << endl;
cout << "o <ip>:<port> - open... |
f8728b4b27ac4c608959a1c372176716197451a8 | 913a2afce0fe97bd62687d0cbe320f97ad42e571 | /ZeeDExamples/ZeeDExamples/ZeeDEffExampleHistManager.h | af98f5e3f9765abc8762839d39a2c6736d91f20a | [] | no_license | kgasniko/ZeeD2p76 | 028f5d4be09f0928c71c4972a877ef90be6af80a | 0bafb5767078bce5bfca31409d77d5491012417a | refs/heads/master | 2020-04-06T03:31:55.595961 | 2017-11-22T10:16:35 | 2017-11-22T10:16:35 | 61,799,124 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 760 | h | ZeeDEffExampleHistManager.h | #ifndef __ZEEDEFFEXAMPLEHISTMANAGER_H
#define __ZEEDEFFEXAMPLEHISTMANAGER_H
////////////////////////////////////////////////////////
// Name : ZeeDEffExampleHistManager.h
////////////////////////////////////////////////////////
// Analysis includes
#include "ZeeDHist/ZeeDEffHistManager.h"
#include "TString.h"
/**... |
1ab85ab01b7315789a99aa7741164f4b7b1daa86 | 979ab5da8c52d120095caf86f308d6a14ba2b432 | /sc_tool/lib/sc_tool/cthread/ScThreadBuilder.h | 8e9577fd7a594a71e59a47bbe1e632912d7da06d | [
"LLVM-exception",
"Apache-2.0"
] | permissive | goodsemong/systemc-compiler | 26784e691c596ff66379ed691385bbbfac85daaf | ef59ab45b90485ce38084e084834d5fd205934f6 | refs/heads/main | 2023-04-04T19:06:37.390175 | 2021-04-08T18:31:44 | 2021-04-08T18:31:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,812 | h | ScThreadBuilder.h | /******************************************************************************
* Copyright (c) 2020, Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception.
*
*****************************************************************************/
/**
* Author: Roman Popov
... |
81b0bc78464c89c6b431513f4b272f87a7bcec1b | 43260ae9ca878721e72b37ad21349cd9d7553c8d | /spoj.com/AGGRCOW - Aggressive cows.cpp | eae3fdfc880e3164eb0eae8ee23d4071700c7821 | [] | no_license | PawelMasluch/Programming-tasks-and-my-solutons | 55e9d72917499c30e596d3e64639048edbf22e01 | 6177e0908bca61141b1851b73dc0d0c950d6229f | refs/heads/main | 2023-08-24T07:10:55.111954 | 2021-10-17T10:01:48 | 2021-10-17T10:01:48 | 372,923,592 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 873 | cpp | AGGRCOW - Aggressive cows.cpp | #include<cstdio> // AC
#include<algorithm>
using namespace std;
#define REP(i,n) for(int i=0; i<n; ++i)
const int MAX_N = 1e5, MAX_WYN = 1e9;
int q, n, x[MAX_N], c;
bool czy(int d)
{
int ile = 1, i1 = 0, i2 = 1;
while( i2 <= n - 1 )
{
if( x[ i2 ] - x[ i1 ] < d )
{
++i2;
}
else
{
... |
cf9340bc37c7bfa592d2ef35f1f149fab074f44c | cd7a1a5ef443b6b0480bba15c6c5e49f943713ad | /chap4/chap4-1.5.cpp | 6e58081022c274fa67e32e5ecdf62f7eef4e3d3c | [
"Apache-2.0"
] | permissive | liangzai90/Liang_Amazing-Algorithm-With-C | bc4ecc3ef4985fcada5ebd5954bf178ad65ec0e3 | d1e992517eafd9197075d85591ed5270d945b5e3 | refs/heads/master | 2020-08-27T02:31:59.090515 | 2019-11-01T12:00:04 | 2019-11-01T12:00:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 678 | cpp | chap4-1.5.cpp | /*
输入一个年份,判断该年是否是闰年
所谓闰年,是要符合下面两个条件之一:
1.该年份能被4整除,但不能被100整除
2.该年份能被4整除,有能被400整除
*/
#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
int main()
{
int year;
printf("Please input a yera:\r\n");
scanf("%d", &year);
//判断是否是闰年
if ((year % 4 == 0 && year % 100 != 0... |
34e164387b8cc3ccab0f6fc396519eb49694c0b4 | c2493ae95c68644ffca48ebc624d70af67bcedd2 | /Cpp/DataStructures/Linked List/reversell.cpp | 7d3a37fe57bba642618fc4a9b5289d9bbd9c71b8 | [] | no_license | Deepan20/Interview-prep | ceb82c61cf724947191b01bb6313bd5e7b4a9c2a | e1cb8372594102b8407d47029e5d74e38c519ba2 | refs/heads/main | 2023-07-07T18:29:43.331846 | 2021-08-19T16:08:30 | 2021-08-19T16:08:30 | 397,652,401 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,213 | cpp | reversell.cpp | #include<iostream>
using namespace std;
class Node{
public:
int data;
Node *next;
};
//creating the new Node
Node *newNode(int ele){
Node *nn=new Node();
nn->data=ele;
nn->next=NULL;
return nn;
}
//insert a node at the end of the linked list
Node *insert(Node **root,int ele){
... |
0e28ccbdd94585322bbe3310ee1e7ce43d16bc8f | 771fc415b752721b89d418a510eb3e6a447a075c | /coordination/fixed_wing_formation_control/src/pack_fw_states/fixed_wing_sub_pub.hpp | 160a068169a25861a3555cf1fab9c397f3bd9683 | [
"MIT"
] | permissive | robin-shaun/XTDrone | ebf8948ed44bf8fc796263a18aef8a985ac00e12 | 6ee0a3033b5eed8fcfddc9b3bfee7a4fb26c79db | refs/heads/master | 2023-09-02T10:49:03.888060 | 2023-07-16T13:02:07 | 2023-07-16T13:02:07 | 248,799,809 | 815 | 182 | null | 2020-09-17T12:50:46 | 2020-03-20T16:16:52 | Python | UTF-8 | C++ | false | false | 6,553 | hpp | fixed_wing_sub_pub.hpp | /*
* @------------------------------------------1: 1------------------------------------------@
* @修改自 lee-shun Email: 2015097272@qq.com
*/
//***话题的设置有冗余,可根据自身需要选择
#ifndef _FIXED_WING_SUB_PUB_HPP_
#define _FIXED_WING_SUB_PUB_HPP_
// ros程序必备头文件
#include <ros/ros.h>
//mavros相关头文件
#include <mavros_msgs/State.h>
#in... |
a086668c517480e968453279512bf5fbbaed5ea9 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /device/usb/webusb_descriptors_unittest.cc | 8350a6d107df9ef80cb8b4a4309c7dd62ecb405a | [
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | C++ | false | false | 19,691 | cc | webusb_descriptors_unittest.cc | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "device/usb/webusb_descriptors.h"
#include <stdint.h>
#include <algorithm>
#include <memory>
#include "base/bind.h"
#include "base/stl_util.h"... |
18422da21fe3da8d874442b27ae0642fb6708e98 | df4f28628430bceb6565e0f2e34ee4fdb6cd8cf3 | /Matrices clase 2.cpp | 0362ebde174e5a135873706d7ef8394c285dcce0 | [] | no_license | sebastiansoria/Fundamentos | d264cf4dd81d25baf6e1d8516c8059fc0237ade7 | 5020421f011e2f5e3fd5ae240dfc1eab3d7cd82c | refs/heads/master | 2023-01-19T22:04:18.355363 | 2020-11-30T22:22:41 | 2020-11-30T22:22:41 | 285,834,837 | 0 | 0 | null | null | null | null | ISO-8859-10 | C++ | false | false | 1,221 | cpp | Matrices clase 2.cpp | // ejemplomatriz.cpp : Defines the entry point for the console application.
//
#include <iostream>
#include "conio.h"
#define MAX 10
using namespace std;
void cargar(int MATRIZ[MAX][MAX], int n, int m);
//void mostrar(int MATRIZ[MAX][MAX], int n, int m);
void diagonal(int MATRIZ[MAX][MAX], int n);
in... |
3a0cabd40c49d1bce7e829554bf5bfbb4087e88a | 6871d108893ef18e84e4347c308e86fae9a76818 | /A1Pack Base/A1Pack_Base/ProcessingPE.cpp | 00da1f17fe53d56f844b1b9edd19fdda541dd54f | [] | no_license | havocykp/Project-Development | ea7cb5834df73267c9a2dd50f1fe2b9c18a2320a | 48e4523946bd680584b747b9c3967a5794a79863 | refs/heads/master | 2020-03-28T12:42:38.835648 | 2019-01-05T00:28:05 | 2019-01-05T00:28:05 | 148,326,609 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 8,713 | cpp | ProcessingPE.cpp | #include "stdafx.h"
#include "ProcessingPE.h"
CProcessingPE::CProcessingPE(void)
{
ZeroMemory(&m_stcPeInfo, sizeof(PE_INFO));
}
CProcessingPE::~CProcessingPE(void)
{
}
// 相对虚拟地址(RVA)转文件偏移(Offset)
DWORD CProcessingPE::RVAToOffset(ULONG uRvaAddr)
{
OutputDebugString(L"RVAToOffset Function Entry!");
PIMAGE_SECTION... |
efa47db0367e02c9b38d0eee0abdbe2bd919cbd1 | acda7cb83ceabb0e3d7dc8344a5623bc20806b68 | /src/Sound.h | 1eaf566872d79c632bdb0e4b896924d81b4a2ba2 | [] | no_license | rhythmus-emulator/rhythmus | 486527f55b9c4372f05de2643935f71086de6c6e | c41b9774a2134a38c7d719d7f5c29ec87004b7ad | refs/heads/master | 2021-12-08T02:11:53.911450 | 2021-08-19T08:16:32 | 2021-08-19T08:16:32 | 196,008,333 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,576 | h | Sound.h | #pragma once
#include "ResourceManager.h"
#include <memory>
#include <string>
#include <stdint.h>
#include <vector>
#include "rmixer.h"
namespace rhythmus
{
class Task;
/* @brief Play sound from Mixer. */
class SoundDriver
{
public:
SoundDriver();
~SoundDriver();
void Initialize();
void Destroy();
void G... |
70dc1ffd09f2293c4180296a35f90e6c4ea2a590 | 7ca3509707c33ae953438b7b919a11a6ba9a91d2 | /lib/getDolar/getDolar.cpp | cb15936d388669af4091c2e4acf6f30819c8b9f0 | [] | no_license | tdominguez33/G.U.I.D.O | a5994dfc7b68189419fcd73a141a716d3ea6f3f0 | 27122ebd1944dc9df9b67796c6683b7d799e9df9 | refs/heads/main | 2023-03-17T01:32:51.054874 | 2021-03-10T17:41:58 | 2021-03-10T17:41:58 | 346,440,182 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,250 | cpp | getDolar.cpp | #include <Arduino.h>
#include <ArduinoJson.h>
#include <httpGETRequest.h>
//Precio de los diferentes dolares (Gracias Alber por todos los dolares diferentes)
const char* precioDolarOficial_Compra;
const char* precioDolarOficial_Venta;
const char* precioDolarBlue_Compra;
const char* precioDolarBlue_Venta;
const char* p... |
6a1bd2043e58ca8387c18c54f99565e9c3ce2604 | d2249116413e870d8bf6cd133ae135bc52021208 | /MFC CodeGuru/doc_view/autopan_demo/mfxWhlPan.h | dd51a1db6a9e19a2ab1cb09f6cf49e267d68aa26 | [] | no_license | Unknow-man/mfc-4 | ecbdd79cc1836767ab4b4ca72734bc4fe9f5a0b5 | b58abf9eb4c6d90ef01b9f1203b174471293dfba | refs/heads/master | 2023-02-17T18:22:09.276673 | 2021-01-20T07:46:14 | 2021-01-20T07:46:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,019 | h | mfxWhlPan.h | #if !defined(AFX_MFXWHLPAN_H__4E9C2711_CFCD_11D1_87BA_400011900025__INCLUDED_)
#define AFX_MFXWHLPAN_H__4E9C2711_CFCD_11D1_87BA_400011900025__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// mfxWhlPan.h : header file
//
//Enumerations for intellimouse support.
enum MfxDirectionType ... |
398e19c86480dbc2aa8f98a5bebeb720a87b3fac | 257f7a191dbe1644a7df9d2c5260f48df195b0ca | /v8isolate.cc | 41fff9cc18b8d09a21ce53dba435e07f5bfd832b | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | fluxio/go-v8 | b0c4b16540f131f51ca5da69296b1cf6ca68d899 | f24ba374a6aa966f40520621627cc96a5ddcab21 | refs/heads/master | 2021-01-18T21:32:11.442238 | 2017-06-06T23:44:11 | 2017-06-06T23:44:11 | 15,093,905 | 13 | 3 | null | 2017-06-06T23:44:11 | 2013-12-11T00:33:04 | Go | UTF-8 | C++ | false | false | 1,070 | cc | v8isolate.cc | #include "v8isolate.h"
#include <cstdlib>
#include <cstring>
void* ArrayBufferAllocator::Allocate(size_t length) {
void* data = AllocateUninitialized(length);
return data == nullptr ? data : memset(data, 0, length);
}
void* ArrayBufferAllocator::AllocateUninitialized(size_t length) {
return malloc(length);
}
... |
f40fafcd8250a3a93cc83ecb10d12e17bf8ce3ea | d4afd133120b03de01871180b28801aa11109f5a | /src/parallel_mpi.cxx | 877549e4ad57c3601384b479fdaba1619648550c | [] | no_license | linas-p/biser_par | 8c76b1918c6df75d8825f5db75a078a32d914b39 | 8c77f07af1f632a137a2899b39b3d6ff18ca3dad | refs/heads/master | 2021-06-28T04:37:42.288711 | 2017-09-17T20:39:07 | 2017-09-17T20:39:07 | 103,856,753 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,387 | cxx | parallel_mpi.cxx | #include <mpi.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <unistd.h>
int fake_time = 30000; // like 3 sec
#include <BiserLikeModel/biosensor_information.h>
#include <BiserLikeModel/explicit_calculator.h>
using namespace BiserLikeModel;
void callback_crunched(void *ptr, i... |
fb51b400ddc30ca1ba01a2a699bcf1c1d5c8fe22 | 97aef3ce4b8e7bd56a07fdcce82e1896273f0576 | /src/syntree.cpp | 5d2478eb186bcd434902f48e608af0b151456928 | [] | no_license | stygeo/smpl | a6d32c7dde5cf255991d4333a1bef9de2ca504d5 | 2b4daf23bbab6c0749ba98fe3ba327a3e6198d06 | refs/heads/master | 2021-01-13T01:13:12.148038 | 2012-07-10T08:03:12 | 2012-07-10T08:03:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,729 | cpp | syntree.cpp | #include <stdio.h>
#include "syntree.h"
#include "symtab.h"
void error(char *format, ...);
// Node names
char *name[] = {
"statement list",
"empty statement",
"expression statement",
"print statement",
"input statement",
"if..then statement",
"if..then..else statement",
"error statemen... |
f2ee714e8979036a11896f8f89755c02cceb1e44 | 893348809b9c1296f3ca3e534dd43730d7d8d2f0 | /Extra Exercises/12.h | f3982105743b14b8fbdbb2b90c7fd816a08ac21a | [] | no_license | TanyaZheleva/Introduction-to-Programming | 23e612d1a4cc949248679a83f8632945f9af9556 | 7d3199d18e83fadec7f12652ac984369f04de06b | refs/heads/master | 2022-02-24T12:29:24.877790 | 2019-09-03T11:12:05 | 2019-09-03T11:12:05 | 196,955,230 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 666 | h | 12.h | #pragma once
#include <iostream>
int distinct(int* arr, int size)
{
int count = 1;
int* lengths = new int[size-1];
int p = 0;
for (int i = 0; i < size-1; i++)
{
for (int j = i+1; j < size; j++)
{
if (arr[i] > arr[j])
{
count++;
}
if (arr[i] <= arr[j]||j==size-1)
{
lengths[p] = count;
... |
daa015ff446bc266fdc1686cbe32012aa023080d | 7d26ad26784aee8e4196b8c2256367ce99b16464 | /app/music.hpp | c40ae1e863aa93bd70af49b3a173bc3be98ea8b1 | [] | no_license | maciej-nowak/SP-Morse-Code | 95744561e4f74142dab59db12c70a5772d138dd5 | 464ffd8018a9a4ca9563b4380eeb1e38fbb895e8 | refs/heads/master | 2021-05-09T09:00:03.393045 | 2018-02-14T22:20:13 | 2018-02-14T22:20:13 | 119,416,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | hpp | music.hpp | #ifndef MUSIC_HPP
#define MUSIC_HPP
#include<iostream>
#include<windows.h>
void listen(std::string data);
#endif
|
81ef49a1f4d400c9b96b50c38f1b88b179d40fef | c591b56220405b715c1aaa08692023fca61f22d4 | /Urvashi/milestone-32(Graphs)/11_Problems/Leetcode/10_Satisfiability_of_Equality_Equations.cpp | 11db130f199182cb64d0c3872d5e11a7550719e8 | [] | no_license | Girl-Code-It/Beginner-CPP-Submissions | ea99a2bcf8377beecba811d813dafc2593ea0ad9 | f6c80a2e08e2fe46b2af1164189272019759935b | refs/heads/master | 2022-07-24T22:37:18.878256 | 2021-11-16T04:43:08 | 2021-11-16T04:43:08 | 263,825,293 | 37 | 105 | null | 2023-06-05T09:16:10 | 2020-05-14T05:39:40 | C++ | UTF-8 | C++ | false | false | 1,214 | cpp | 10_Satisfiability_of_Equality_Equations.cpp | /*()
Intuition:
We have 26 nodes in the graph.
All "==" equations actually represent the connection in the graph.
The connected nodes should be in the same color/union/set.
Then we check all inequations.
Two inequal nodes should be in the different color/union/set.
Explanation
We can solve this problem by DFS or Uni... |
3ef9532c2fe54654277e84875fd2abb55dcdd98b | fd911fe124408f4f6e300b084b6f1d30f5da30ba | /libs/graphslam/include/mrpt/graphslam/types.h | b5ea43d7892bc86318ede2e46d412409e35417ea | [
"BSD-3-Clause"
] | permissive | tg1716/SLAM | 5710024e34f83687c6524cfb947479951d67941e | b8583fb98a4241d87ae08ac78b0420c154f5e1a5 | refs/heads/master | 2021-01-02T09:11:41.110755 | 2017-07-30T16:04:31 | 2017-07-30T16:04:31 | 99,160,224 | 5 | 2 | null | 2017-08-02T21:13:21 | 2017-08-02T20:57:07 | null | UTF-8 | C++ | false | false | 2,905 | h | types.h | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... |
436c3b4497277766f04cb3940592e519d35e31a7 | aeb097554aa25b4ef6ae4542499063c405d82e69 | /QDrink/data.cpp | d9e82e7a9d38fa3aad036a9b2b01d0288efc0385 | [] | no_license | Alberto1598/Programmazione-ad-oggetti-A.A-2018-2019 | a83081962bbb6164c47cb5fca837f82dfb95c4b9 | 7327268aa3f550078fa1cb611e25d8ee0243b7cd | refs/heads/master | 2020-12-22T23:29:31.395699 | 2020-01-29T11:10:55 | 2020-01-29T11:10:55 | 236,963,213 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 857 | cpp | data.cpp | #include "data.h"
date::date(unsigned int g, unsigned int m, unsigned int a): giorno(g), mese(m), anno(a){}
unsigned int date::getGiorno() const
{
return giorno;
}
unsigned int date::getMese() const
{
return mese;
}
unsigned int date::getAnno() const
{
return anno;
}
void date::setGiorno(const unsigned... |
5772770ab0f3b77c4c2ca528f6f7149f625fa3cb | 4c6a7fc57e5321f725f0b944812a7cca8de3a7ab | /liste.cpp | 1b6b734f662cfcdb1f74c832d922be39c07e1e7c | [
"MIT"
] | permissive | benaisc/Picross | 6fa1c62bc528b1aa72be25dcc38e386169fbf69e | 60ce0394e6286cd4125a7375aaecf932de0da1f0 | refs/heads/master | 2021-05-29T08:23:44.879467 | 2015-05-20T20:03:18 | 2015-05-20T20:03:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,082 | cpp | liste.cpp | #include "liste.h"
Liste::Liste():tete(NULL), longueur(0), fini(false){}
Liste::~Liste()
{
Cell* ptr=tete;
while(!isnull(tete))
{
ptr=ptr->getSuiv();
delete tete;
tete=ptr;
}
longueur=0;
fini=false;
}
bool Liste::isnull(Cell* p) const
{
return !p;
}
Cell* Liste::getPremier() const
{
retu... |
ee815f13b6a192acab5195b451603a819007af66 | a8bfdb70b38d4d14422a6397cc898a70306372af | /arduino/OpenROV/CameraMount.h | ff971c26f12225f5b803595393f2b3774a1c931f | [
"MIT"
] | permissive | scubasonar/openrov-software | 16e0d97a5dbd7eda5588f04f3bca5815a68f7de5 | fb1fa06b979857bebe68a0a3a5e1430aca4581a6 | refs/heads/master | 2021-01-22T17:22:31.807434 | 2014-01-11T23:45:13 | 2014-01-11T23:45:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 279 | h | CameraMount.h |
#ifndef __CAMERAMOUNT_H_
#define __CAMERAMOUNT_H_
#include <Arduino.h>
#include "Device.h"
#include "Pin.h"
#define MIDPOINT 1500
class CameraMount : public Device {
public:
CameraMount():Device(){};
void device_setup();
void device_loop(Command cmd);
};
#endif
|
1cc69019cff30f7d04fee05c03abf0af7aafb02e | 0f1ef68568b34db26efaca1aca27650c47477d88 | /Little Jhool and psychic powers.cpp | 9ddeffbe01e172eee1f63f794dbd2b8d02f947f6 | [] | no_license | tusharpahuja/hackerearth | dc118b306156cd21ac4a9a84abe3b7d15a2058b6 | 8676577a00958e99cdf13afe4a25b013cbfac96a | refs/heads/master | 2021-01-12T01:02:20.892829 | 2017-09-19T07:04:26 | 2017-09-19T07:04:26 | 78,333,322 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 654 | cpp | Little Jhool and psychic powers.cpp | #include<iostream>
#include<stdlib.h>
#include<math.h>
#include<string.h>
using namespace std;
int main(){
string a,b;
long long l,i,s=0;
cin>>a;
l = strlen(a.c_str());
while(s<l){
if(a[s]=='0'){
b = a.substr(s,6).c_str();
if(strcmp(b.c_str(),"000000")==0){
cout<<"Sorry, sorry!";
... |
0c27f92b8317ea6a4094c6317a4e5696bf7270bc | b434c19ed6dbef723e0854c67e2b73338f7cc2c0 | /misc/EmbeddedSys/slave.cpp | 64b8628b25cb64d70d2e7898d2eecdc337d62e08 | [] | no_license | LordRoost/EmbeddedSystems | 9bf457a8b187a898750582a0971bb5fb0b826fc4 | feb6abd181318ded00d7d0a4216c7f38925fd416 | refs/heads/master | 2020-06-20T11:49:09.942153 | 2018-07-12T15:04:18 | 2018-07-12T15:04:18 | 80,866,078 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,511 | cpp | slave.cpp | #ifndef F_CPU
#define F_CPU 1000000UL
#define BAUDRATE 4800
#endif
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#define ACK 0x7E
void spi_init_slave (void)
{
DDRB=(1<< PB4); //MISO as OUTPUT
SPCR=(1<<SPE); //Enable S... |
f540919d33ef1b9767ffb3dd60c277403a8e7367 | f5aa1e3646285227c2206fadfce5b1a177ec9185 | /SysProg_2017-master/Automat/src/Token.cpp | 239e60c7748abd973ee5e6efd3d151d18799dcb8 | [] | no_license | YamaRaja15/SysProg_SS_2017 | 013fd6afc45f9e03f003188c149a725089f9be55 | 28eaa77ab5a232b9096e057ac6abdfc4d2496fef | refs/heads/master | 2021-01-21T09:59:23.758651 | 2017-02-27T23:06:46 | 2017-02-27T23:06:46 | 83,365,942 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 752 | cpp | Token.cpp | /*
* Token.cpp
*
* Created on: 08.11.2016
* Author: johanna
*/
#include <stdlib.h>
#include <errno.h>
#include "../includes/Token.h"
Token::Token(Token::Type type, int column, int line, Information* information,
long int value) {
this->type = type;
this->column = column;
this->line = line;
this->info... |
6afc61555923b5889336d4e0fa98d53a91d5e3fc | b1ab74416daed8d9f558ef74c701e8a937ec7817 | /poj/POJ3032.cpp | 17c9b2e3e1cd1fb931e6785d39f0db458e207dfc | [] | no_license | SadSock/acm-template | 61685abf3680108ef208dfd2049be737ef15dcaf | 8965e142ef3b2820d23b041dbb1f57fa751078af | refs/heads/master | 2021-09-04T03:43:39.573965 | 2018-01-15T12:25:32 | 2018-01-15T12:25:32 | 57,435,154 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 748 | cpp | POJ3032.cpp | #include <stdio.h>
#define LEN 20
int queue[LEN],head,rear;
int rect[LEN][LEN];
int n,card;
int main()
{
int i,j,k,l;
for(i = 13 ; i >= 1 ; i--)
{
head = rear = LEN-1;
for(j = i ; j >= 1 ; j--)
{
queue[head=(head+LEN-1)%LEN] = j;
for(l ... |
2ecfeb6947f26e120f660567e2ea9360617d154a | 6da62dacf463fde32b9bf85d87dc82fb1b87d876 | /Nasledqvane_Dostavka_na_Pica/Client.hpp | 5347dc8aeab25dfc69c343d8aacaba0ff183aa41 | [] | no_license | PetyrEftimov/GitHubPetyrEftimov | df90acfc4d398489643d5c1d517beab167a088d1 | a77b5d2c352c5c5c9e4251294bcf9933798d1eec | refs/heads/master | 2021-01-20T13:56:50.077544 | 2017-06-24T11:29:10 | 2017-06-24T11:29:10 | 90,543,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 849 | hpp | Client.hpp | //
// Client.hpp
// Nasledqvane_Dostavka_na_Pica
//
// Created by Pepi on 4/20/17.
// Copyright © 2017 Pepi. All rights reserved.
//
#ifndef Client_hpp
#define Client_hpp
#include <vector>
#include "Adress.hpp"
#include <string>
#include <stdio.h>
using namespace std;
class Client{
public:
Client... |
918b508430d0d2dcef6352f34a6958cf7550294a | aa235e81cd145d8d4323546fa24fe61ead817538 | /source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.h | 9fd102606681a2d4cd0afc67c19ac5fe797f1fac | [
"NCSA"
] | permissive | DougGregor/swift-lldb | 31c377bf0d2f4525c2ee421ff3a6dc682d41f573 | cdd2ffb53f8befb79f0919d6f62ef2882b9816d3 | refs/heads/master | 2021-01-12T09:10:13.735197 | 2016-12-16T09:31:38 | 2016-12-16T09:31:38 | 76,764,297 | 4 | 0 | null | 2016-12-18T05:20:28 | 2016-12-18T05:20:28 | null | UTF-8 | C++ | false | false | 607 | h | RenderScriptx86ABIFixups.h | //===-- x86ABIFixups.h ------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
93e4cc0ba76e2ca153c1d7910ec7388311a78c35 | 2cec7cd5678d6c54345b9302a090ce082730e660 | /intervalos/src/main.cpp | 93a00319b9c496b41a26b3231d8352a1cbbff235 | [] | no_license | JulioMelo-Classes/lista-1-pablodamascenoo | f142abd3c243b80d8b8349a7cdd0f93dfbd49bb3 | e527d1d6c9011a2f2383eca643fa23db4a088f15 | refs/heads/master | 2023-06-15T13:19:37.533596 | 2021-06-30T17:28:00 | 2021-06-30T17:28:00 | 375,102,572 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 975 | cpp | main.cpp | /*!
* @brief This code implements the Intervalos programming problem
* @author selan
* @data June, 6th 2021
*/
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
#include <iomanip>
using std::setprecision;
using namespace std;
// Se desejar, crie funções aqui, antes do main().
/*
blz
*/
int ma... |
71079890642a7ba42abdcad73a23bfdede10a460 | 3ad985b16910bab038a57291782d16f290e4a004 | /Week_06/leetcode/115.distinct-subsequences.cc | ea838640e468b7d12ad2d7447dd9a91b4cb2defa | [] | no_license | osvimer/AlgorithmCHUNZHAO | 754c23855dd03c6d2ea260b55eed27c9b2fba1b6 | 650b3a833df99d400a59d55a33174e9639d5d16c | refs/heads/main | 2023-03-29T17:03:21.362666 | 2021-03-21T15:22:46 | 2021-03-21T15:22:46 | 330,702,738 | 0 | 0 | null | 2021-01-18T15:07:24 | 2021-01-18T15:07:23 | null | UTF-8 | C++ | false | false | 2,688 | cc | 115.distinct-subsequences.cc | // 给定一个字符串 s 和一个字符串 t ,计算在 s 的子序列中 t 出现的个数。
// 字符串的一个 子序列 是指,通过删除一些(也可以不删除)字符且不干扰剩余字符
// 相对位置所组成的新字符串。(例如,"ACE" 是 "ABCDE" 的一个子序列,而 "AEC" 不是)
// 题目数据保证答案符合 32 位带符号整数范围。
// 示例 1:
// 输入:s = "rabbbit", t = "rabbit"
// 输出:3
// 解释:如下图所示, 有 3 种可以从 s 中得到 "rabbit" 的方案。
// (上箭头符号 ^ 表示选取的字母)
// rabbbit
// ... |
8b8240f398989e55d6fef034660f574c0a006843 | 83274c8948236d9cbe28a4f270bd5a92a3a4a0f3 | /ccf_transaction_processor/transaction_processor/pdo_tp.cpp | 0c686e660c368b7b1393a8c4573985cef9630cea | [
"CC-BY-4.0",
"Zlib",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive",
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | g2flyer/private-data-objects | 2ae3df73b151d5fe039cfa308d6f5c90e5e5b54b | 765d0a573a961bef6f3e1a34644e1bc921544623 | refs/heads/master | 2021-06-08T10:42:48.114419 | 2021-03-10T19:29:01 | 2021-03-10T21:50:00 | 132,040,143 | 0 | 0 | Apache-2.0 | 2018-05-21T21:10:12 | 2018-05-03T19:23:43 | Python | UTF-8 | C++ | false | false | 31,470 | cpp | pdo_tp.cpp | /* Copyright 2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
5476f6ba599effeee4303d2f1895f28f803eaf57 | 2cb6f1ab83c7ac77f20f5fde950d31d55fffa67b | /src/modules/camera/camera_scene.cpp | 819c4a857a5c9f07add6d9d89454968abaca326c | [] | no_license | takiyu/resp-robot | a4d025ce01909f017f8b1e2e156155a8c0888a58 | 6c20f812732709de17d0d79613d59473f3e64876 | refs/heads/master | 2021-05-07T01:17:18.521596 | 2017-11-10T10:29:32 | 2017-11-10T10:29:32 | 110,234,897 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,449 | cpp | camera_scene.cpp | #include "camera_scene.h"
#include <cmath>
#include <glm/gtc/constants.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include "imgui/imgui.h"
#include "../../viewer/render/gl_utils.h"
namespace {
inline glm::vec3 CastVec(const cv::Point3f& src) {
re... |
643f67787de674213c06ed6d050d6d0219b9df7c | 63e690e784aab87672dc80f9166f3fabca952063 | /Desert.cpp | 6f1cf8adf60d8049d69af01d9cc0a78101331086 | [] | no_license | JohnYoon13/textAdventureGame | a95ee16ec781b19ce7162093b73857caffa32f86 | b376aee9223ab36b7d70635c0b4c0e1befd980af | refs/heads/master | 2021-05-12T15:40:45.090323 | 2018-01-10T17:48:48 | 2018-01-10T17:48:48 | 116,990,424 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,868 | cpp | Desert.cpp | /************************************************************************
** Author: John Yoon
** Description: Desert [Implement] - The space where you save Jack-Jack
from Syndrome.
************************************************************************/
#include "Desert.hpp"
#include <iostream>
using std::cout;
us... |
d827753ccc92d7b19f79efdc5e5b5788ac10603b | 812e8493ed6dc45b2ad6c9740e76f96beecaeae0 | /empty.cpp | 131d2f60aef19ea6d8973026d635846335e77521 | [] | no_license | kesar/empty | c9236e1e77190bcdee6053dbc58cb05f0530b6c1 | bb1d0f41ecc49cb3e8b814e6c1aee8a4d3b28867 | refs/heads/master | 2020-03-28T06:51:45.133777 | 2018-09-07T19:21:00 | 2018-09-07T19:21:00 | 147,865,077 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 97 | cpp | empty.cpp | extern "C" {
void apply(unsigned long long r, unsigned long long c, unsigned long long a){}
} |
5994e42848659cd0d5de421e61b222881ef7852d | 3b7017f77ddceffc397e15b881a9de5730a0c5ad | /Courses/1. Pemrograman Dasar/13. Rekursi Lanjut/C. Permutasi Zig-Zag/main.cpp | 2a4add09e6e2a02d7628918c390b8e6f2eec7165 | [
"MIT"
] | permissive | jrtcman1id/tlx.toki.id | 1d249ed98f224491ddbbe158f5ecc691d75f3cf8 | e2bd2ca4aec4581efc4124b0a21837bc9a3e3668 | refs/heads/master | 2022-12-16T05:12:47.219728 | 2020-09-12T13:42:16 | 2020-09-12T13:42:16 | 268,079,737 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 895 | cpp | main.cpp | #include <iostream>
void tulis(int kedalaman, int N, int catat[], bool pernah[]){
if(kedalaman >= N){
//cek zigzazg
bool isZigZag = true;
for(int i = 1; i < N - 1; i++){
bool condition1 = catat[i] > catat[i - 1] && catat[i] > catat[i + 1];
bool condition2 = catat[i] < catat[i - 1] && catat[i] < catat[i +... |
474452ae90ddcea744c037754ae4fbe5f98831fe | aec41e793d61159771ec01295a511eb5d021f458 | /leetcode/1438-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit--sliding-win.cpp | 22ae3c5f96440d9d5da85c40909c8f6ff6bc8440 | [] | no_license | FootprintGL/algo | ef043d89549685d72400275f7f4ce769028c48c8 | 1109c20921a6c573212ac9170c2aafeb5ca1da0f | refs/heads/master | 2023-04-09T02:59:00.510380 | 2021-04-16T12:59:03 | 2021-04-16T12:59:03 | 272,113,789 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 945 | cpp | 1438-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit--sliding-win.cpp |
class Solution {
public:
int longestSubarray(vector<int>& nums, int limit) {
/*
* 滑动窗口
* 需要知道窗口内的最大值和最小值,使用map自带的排序功能
* 如果窗口内最大绝对差大于limit,缩小窗口,否则扩大窗口
*/
map<int, int> tbl;
int n = nums.size();
int left = 0, right = 0;
int res = 0;
... |
bf891ede1eac7b44bb986b741a7e3fb7efb7dc44 | 511a5bd63062e9ceda5ae79d190b05b55b7867a0 | /dqc/model/thirdparty/src/rtt_monitor.cc | 0e9ab0313dcf9897e597b9ba7c607f7ab91dd7d6 | [
"BSD-3-Clause"
] | permissive | SoonyangZhang/DrainQueueCongestion | 375a50f7146813fe24ea8b5885905882b9264716 | 98c2668dc1fd5e150d22c1337430610bc8b18eba | refs/heads/master | 2022-07-15T06:13:55.967832 | 2022-06-19T08:29:51 | 2022-06-19T08:29:51 | 185,159,868 | 73 | 25 | null | 2022-06-19T08:29:51 | 2019-05-06T08:54:52 | C++ | UTF-8 | C++ | false | false | 494 | cc | rtt_monitor.cc | #include "rtt_monitor.h"
namespace dqc{
TimeDelta RttMonitor::Average() const{
TimeDelta average=TimeDelta::Zero();
int num=Size();
if(num>0){
double all=sum_rtt_;
int64_t div=all/num;
average=TimeDelta::FromMilliseconds(div);
}
return average;
}
void RttMonitor::... |
9f30dfd7428c52653586d8526dfa5d36bfae2c56 | 92d62101aef85fb4f89cf793f0c0479efbe8aa53 | /Classes/SelectSkillLayer.cpp | f6fe4d43badda93cf35dce64b8b758aa4db9591e | [] | no_license | anzhongliu/NeoScavenge | 3d4e477fc2756d6be890d6efd05ace5838adeab0 | 5426a18cd5abebc7fc7723df7d84ae0e5b8303c8 | refs/heads/master | 2020-05-01T17:25:56.227218 | 2015-10-29T10:39:34 | 2015-10-29T10:39:34 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,190 | cpp | SelectSkillLayer.cpp | #include "SelectSkillLayer.h"
#include "Bag.h"
#include "tinyxml2/tinyxml2.h"
#include "Skill.h"
#include "GameManager.h"
SelectSkillLayer::SelectSkillLayer()
:m_skillPanel(NULL)
, m_usedSkillPoint(0)
, m_leftSkillPoint(15)
, m_usedSkillPointText(NULL)
, m_leftSkillPointText(NULL)
, m_confirmButton(NULL)
, m_randomBut... |
e129de0b0ec58acdd5416b55e28c37b9e201ad1b | 2045ab194dccdf69ca312589cf968278248e9a27 | /ts-messages/messages/ReplyRXAttenTest.h | 5b11624e76eae5f5e29bb2462f683af494bf0db9 | [] | no_license | manish-drake/ts-wrap | 427d1e7cf2e1cfa3d63b4bde576eead9a06d0c04 | c165024102985aea9942f6ca2f217acdaf737ce5 | refs/heads/master | 2020-08-28T04:10:03.493253 | 2020-01-29T15:48:04 | 2020-01-29T15:48:04 | 217,583,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,648 | h | ReplyRXAttenTest.h | #ifndef __ReplyRXAttenTest_h
#define __ReplyRXAttenTest_h
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include "TServerMessage.h"
class CReplyRXAttenTest:public TServerMessage
{
const int mFormatVersion = 2;
char* json_string;
public:
static const unsigned int mCmdID=0x100f;
CReplyRXA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.