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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fd032389183dfcd4563720ffb1dcdb3107698e66 | d9413827fee408c6b560255085adb0bb2c68915a | /ImageSettings.cpp | 40d6dfbc2517f89656a707e1fb0a5f5fc1c8d398 | [] | no_license | hogwarts86/first-project | 6290f13e1a4cc61d4f15c84204ecc28422b144d1 | c1c0ab4e59d230d6de77f0073a5874c601320126 | refs/heads/master | 2021-04-03T09:49:06.420182 | 2018-03-09T08:03:06 | 2018-03-09T08:03:06 | 124,504,874 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,185 | cpp | ImageSettings.cpp | // ImageSettings.cpp : implementation file
//
#include "stdafx.h"
#include "ImageSettings.h"
#include "afxdialogex.h"
// ImageSettings dialog
IMPLEMENT_DYNAMIC(ImageSettings, CDialog)
ImageSettings::ImageSettings(CWnd* pParent /*=NULL*/)
: CDialog(ImageSettings::IDD, pParent)
, m_shift(0)
, m_amplification(0)
{... |
1c6adb4f89a06d8b1002ef123ad102db4256689f | aba99f6d936b9dca845e1d0d20d58de3110fcb77 | /samples/tutorials/tutorial-02/src/main.cpp | 373ad26322ed16d59e476cbc4c427c8063a4c393 | [
"MIT"
] | permissive | EssentialGraphics/EGE2D-GUI | 7d4c5af4c61fccf8e651a945e63bd2dac3a52ea8 | 06023d9f2ca56efbf3dc8775005b9edf166abfa1 | refs/heads/master | 2021-08-07T04:44:22.776872 | 2020-04-04T20:03:48 | 2020-04-04T20:03:48 | 137,505,264 | 1 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 4,475 | cpp | main.cpp | /* Tutorial 02 shows how to display a picture(texture) to canvas/window
*
* Textures are handled through an abstract class ege3dTextureAbstract that works as a prototype
* for all kind of textures.
*
* ege3dTextureJpeg is the specialized class that handless Jpeg format.
* Follow the samples to see some uses ca... |
936aa26a9ef5da545f81c0148ce4fd28206f030d | 3b224c4d840bc733bf64894e7d4769fa2ae76016 | /C08_Framework/AppClass.h | c4a96e00518fa375b0262b954873d578a02fe040 | [
"MIT"
] | permissive | labigm/IGME309-2201 | c89b3d77adbed9b413b0bf82719cd30fa46d8832 | 4f76fe565dbf727b2c0e16fbd02c10bcf83ab8ef | refs/heads/master | 2023-01-05T03:41:54.156487 | 2020-09-24T16:08:53 | 2020-09-24T16:08:53 | 288,234,145 | 2 | 29 | MIT | 2020-09-21T17:59:44 | 2020-08-17T16:45:03 | C++ | UTF-8 | C++ | false | false | 3,135 | h | AppClass.h | /*----------------------------------------------
Programmer: Alberto Bobadilla (labigm@gmail.com)
Date: 2017/05
----------------------------------------------*/
#ifndef __APPLICATION_H_
#define __APPLICATION_H_
#include <SFML\Graphics.hpp>
//#include <vld.h>
#include "ImGuiObject.h"
class AppClass : public BasicXAppl... |
a39ae4b1f2aa360fa8df426461c3622b220524ce | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /cvm/src/v20170312/model/InstanceTypeQuotaItem.cpp | e3533bf42cd6b47adbded97f0196c7fed1e2ebfa | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 24,552 | cpp | InstanceTypeQuotaItem.cpp | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
f617b89aa3f2413fae11e50330d4b5b58dc510b3 | ff90c60682e94f8ad05cfbd00e25c000a37dbc57 | /command_broadcaster.cpp | 4ea3b29509a8006f7bfd61bc1131abe13b76a82d | [] | no_license | darkehorselll/Voice-qChat | 64bb431a827bde8e599d63f090244b44d5e2fb81 | cd01386d132e4959878cc3994a6349f5ca6cb2b4 | refs/heads/master | 2018-05-13T04:13:59.463134 | 2013-07-31T12:50:48 | 2013-07-31T12:50:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,723 | cpp | command_broadcaster.cpp | #include "command_broadcaster.hpp"
#include "voice.hpp"
#include <QNetworkInterface>
command_broadcaster::command_broadcaster() {
connect(&my_udp_socket, SIGNAL(readyRead()), this, SLOT(process_pending_datagrams()));
my_ip = local_ip();
}
command_broadcaster::~command_broadcaster() {
my_udp_socket.close()... |
b809d7b94c4785b6e98febd1e5c49441c085e434 | 1e1db85b4bc9cb0baa7004f1c1f42b408ba375f5 | /message_receiver/message_receiver/Logger.h | 1b8707eda48a4659df72f015ddf89c2dbed1e2ce | [] | no_license | drunklurker/SimpleMessenger | 2c1dd8cd8f750846fa2c8a98aa4f9b3fd8e6d1c2 | a0d8120756cf1cb83dc0e4f351ce0ce9c5cbba21 | refs/heads/master | 2021-01-15T13:11:43.057468 | 2015-12-05T07:41:00 | 2015-12-05T07:41:00 | 46,037,850 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 411 | h | Logger.h | #include <windows.h>
namespace logger {
__declspec(dllimport) enum LogLevel { LOGLEVEL_ERROR = 0, LOGLEVEL_SYSTEM, LOGLEVEL_WARNING, LOGLEVEL_INFO, LOGLEVEL_DEBUG };
int level;
std::string filename;
CRITICAL_SECTION logProtection;
__declspec(dllimport) void LogInit(const char* logPath, const char* prefix, int ... |
edb2e18106ec6bb2b2edc2056436975a656ad984 | 5527514488778e2d2289979a6b51b48a17f074aa | /Projects/HongFei/mw/sdl/sdl_videoouter.h | 376f46b773e0d920c35c9048890d99ec29a38ef3 | [] | no_license | xingjun/facetime | 66546db4fec3f20f59eba0d711f0dbc5a496d834 | 46377942016e19834b62117eeafea80053098c46 | refs/heads/master | 2021-01-16T18:40:23.164531 | 2011-06-28T15:24:06 | 2011-06-28T15:24:06 | 40,573,493 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 310 | h | sdl_videoouter.h | #ifndef __SDL_VIDEO_OUTER_H__
#define __SDL_VIDEO_OUTER_H__
#include "sdl_abstract.h"
#include "videoout.h"
class SdlVideoOuter : public VideoOuter {
public:
SdlVideoOuter (SdlAbstract* stub);
~SdlVideoOuter ();
int ShowPicture (AVFrame *pFrame);
private:
SdlAbstract* mpSdlStub;
};
#endif
|
de4d93e706eca64e278c8ee51e45d393da64c422 | 69d8e13e8eeb43b5f701147ea5d8a2ae3b21eebe | /miniProject.cpp | 2cf4b31496c4cded15f19fc654be05f110184648 | [] | no_license | prayas-arora/Programming-Languages-Performance-Comparison-Test | ab6ab23b228d4d395cd621aa73b7666dcc864c2e | 79bb4a6b83416e03de6baab4ae366e4dee0472f1 | refs/heads/master | 2021-06-26T03:15:16.937088 | 2017-09-12T17:12:09 | 2017-09-12T17:12:09 | 103,283,220 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,301 | cpp | miniProject.cpp | #include<iostream>
#include<conio.h>
#include<fstream>
#include <time.h>
using namespace std;
int main ()
{
clock_t begin, end;
double cpu_time_used;
fstream a,b;
begin = clock();
char ch;
a.open("1GB_FILE.txt");
b.open("copy_1GB_FILE.txt");
while (!a.eof())
{
a.get(ch);
b<<ch;
... |
63cbee36b0473f815fe5dee0ce5b1c425eb555b0 | 6b2882a83f63be1ea2d9be5c7d7203f604bf1c3d | /BALL/Source/BALL/Public/InfiniteTerrainGameMode.h | 3f2b08fb7724435a9a78ceb63b5c33c2f5d6809f | [] | no_license | Unreal-Course-Leonsius/Ball_Game | 21043261dffd340202cf48cfd036034b29e5ba91 | 6aefa588f093ef63e12c1be34ba3cb90f0325a36 | refs/heads/master | 2021-06-27T20:58:07.819850 | 2020-09-08T15:37:23 | 2020-09-08T15:37:23 | 123,694,623 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,027 | h | InfiniteTerrainGameMode.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "BALLGameModeBase.h"
#include "InfiniteTerrainGameMode.generated.h"
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FChangeSpeed);
/**
*
*/
UCLASS()
class BALL_API AInfiniteTerrainGameMode : public ABALLGameModeBase
{
GENERA... |
b85f8261a02e1ae665e406a53a1ef7e32db6a63f | 703a7df711c0809893f85fe28a69b7cf1d707148 | /UWP/Il2CppOutputProject/Source/il2cppOutput/Bulk_Generics_68.cpp | e488a62e8b22fc4f0577a8c2f68f2c62843a25c2 | [] | no_license | gunsolex/Vuforiav2 | a982d431da59ad96e6a88e9dd951047756f29b34 | bca16cc3ba71006258cd971dedd67c7fabeb2f57 | refs/heads/master | 2020-04-18T09:09:02.388382 | 2018-12-17T07:43:46 | 2018-12-17T07:43:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,795,122 | cpp | Bulk_Generics_68.cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "object-in... |
4983a1dc5f674ed3cbd625ac44aa023f887d67ee | 05f947e556690ea1997dd503dbb77d338b55232c | /GameEngine/FlyCamera.h | 6b65e19bbb787d8420448135943e881e29f2bd0c | [] | no_license | JamesG151/GameEngine01 | 12c68bcf5e97e0d2679608b8ad68f6d2ac690039 | 875c2909f80921b3173ba0df87ae53eb4609bfa0 | refs/heads/master | 2023-04-13T23:02:17.067442 | 2021-04-28T13:23:50 | 2021-04-28T13:23:50 | 362,478,348 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 676 | h | FlyCamera.h | #pragma once
#include "Camera.h"
//This camera inherits from the baseclass called Camera.
class FlyCamera : public Camera
{
public:
//Camera constructor.
FlyCamera(const glm::vec3 v3Position, const glm::vec3 v3LookAtPoint, const float fAspectRatio = 16.0f / 9.0f, const float fFOVY = 3.14159f * 0.5f, const float f... |
b63e541f02b0d5f19b06c5d33b18625044d222e5 | 4f37a2544e5c665dc5a505f009b62aed78afc455 | /2017/sem1/seminar6/2_templates.cpp | a646c6bbead1abd215e84551a53ee73a53973c67 | [
"MIT"
] | permissive | broniyasinnik/cpp_shad_students | b6ccab3c61943f4167e0621f78fde9b35af39156 | eaff4d24d18afa08ecf8c0c52dfd3acc74e370d0 | refs/heads/master | 2022-10-31T13:49:31.901463 | 2022-10-13T11:08:42 | 2022-10-13T11:08:42 | 250,561,827 | 1 | 0 | MIT | 2020-03-27T14:53:02 | 2020-03-27T14:53:01 | null | UTF-8 | C++ | false | false | 951 | cpp | 2_templates.cpp | #include <iostream>
#include <string>
#include <vector>
template<typename T>
void myswap(T& a, T& b)
{
// T x = "hohoho";
// ...;
T tmp = a;
// a.clear();
a = b;
b = tmp;
}
template<>
void myswap<std::string>(std::string& a, std::string& b)
{
a.swap(b);
}
template<typename T, int n>
class PlainArray
{
public:... |
f846c1f2e6d8cf1967d6529b26c4703110cd7088 | 1be61f7f571d3b299e7120f526919b2f53b25906 | /ocher/ux/fb/BrowseFb.cpp | cf40237529009f4a12d28c6bc2eb02532e6742ae | [] | no_license | ikarus9999/OcherBook | 781e56e89691ff08ecd7fefa0d834dd0e52830e0 | cec17ebc3a2d0b2ad3dde3ebad1b4ae802960647 | refs/heads/master | 2021-01-25T00:28:50.532929 | 2012-08-28T19:07:38 | 2012-08-28T19:07:38 | 4,875,864 | 1 | 0 | null | 2012-08-28T19:07:40 | 2012-07-03T18:35:54 | C++ | UTF-8 | C++ | false | false | 551 | cpp | BrowseFb.cpp | #include <stdio.h>
#include "ocher/device/Filesystem.h"
#include "ocher/ux/Renderer.h"
#include "ocher/ux/fb/BrowseFb.h"
#include "ocher/settings/Options.h"
BrowseFb::BrowseFb()
{
}
bool BrowseFb::init()
{
return true;
}
void BrowseFb::browse()
{
//for (const char *d = fs.ocherLibraries[0]; d; ++d) {
/... |
44e01ca57f0031aebbbbf30e526f9845d36b589d | df1654f9c70184c04206616b446ce3cde9e737a8 | /src/lib/passhash/passhash9/passhash9.h | f06919020a7a01b0ff935164305ce52cb22db567 | [
"BSD-2-Clause"
] | permissive | randombit/botan | cade596b58b74c12fb70a58baf1a40bf2f5b1b85 | 560aec3a8bfa2456cc309bac478aca9ae53f0fff | refs/heads/master | 2023-09-01T07:01:06.013013 | 2023-09-01T03:07:14 | 2023-09-01T03:07:14 | 8,608,254 | 2,362 | 686 | BSD-2-Clause | 2023-09-14T19:18:13 | 2013-03-06T16:51:39 | C++ | UTF-8 | C++ | false | false | 1,481 | h | passhash9.h | /*
* Passhash9 Password Hashing
* (C) 2010 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_PASSHASH9_H_
#define BOTAN_PASSHASH9_H_
#include <botan/types.h>
#include <string>
namespace Botan {
class RandomNumberGenerator;
/**
* Create a password hash using PBKDF2... |
43271dfba7544fe47142e7f179d8030be7c1d80e | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/mutt/gumtree/mutt_repos_function_199.cpp | 86454386c7a9fbc0c1b1a1f1ed526024cdd19f60 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | cpp | mutt_repos_function_199.cpp | int mutt_atol (const char *str, long *dst)
{
long r;
long *res = dst ? dst : &r;
char *e = NULL;
/* no input: 0 */
if (!str || !*str)
{
*res = 0;
return 0;
}
*res = strtol (str, &e, 10);
if ((*res == LONG_MAX && errno == ERANGE) ||
(e && *e != '\0'))
return -1;
return 0;
} |
f643a608f0c0dc8b38735c05c318655d9e9161c2 | 2bc835b044f306fca1affd1c61b8650b06751756 | /outlookexpress/inc/notify.h | 6ccd4e5c15ace0529246264c4ddbe2b1fe2b383c | [] | no_license | KernelPanic-OpenSource/Win2K3_NT_inetcore | bbb2354d95a51a75ce2dfd67b18cfb6b21c94939 | 75f614d008bfce1ea71e4a727205f46b0de8e1c3 | refs/heads/master | 2023-04-04T02:55:25.139618 | 2021-04-14T05:25:01 | 2021-04-14T05:25:01 | 357,780,123 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,600 | h | notify.h | //+-------------------------------------------------------------------------
// Notify.h
//--------------------------------------------------------------------------
#ifndef __NOTIFY_H
#define __NOTIFY_H
#include <msoeapi.h>
//+-------------------------------------------------------------------------
// Consts
//----... |
ac067f0c131d10e2382a891030cc592e1b534279 | b03ea030ca9646087a5a795358cb72ab0758ab5c | /algo.cpp | b67dc549f9cf096e198ef4c356a938b3f249f4f5 | [] | no_license | pletain/algorithm | b070d6c0b98c64c074644fac4780ab897cb73c79 | f89ddfdb7ca93436bb842c3a29b3d7abd626b357 | refs/heads/master | 2023-06-02T15:53:08.135065 | 2021-06-18T10:34:21 | 2021-06-18T10:34:21 | 378,090,646 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 568 | cpp | algo.cpp | #include<iostream>
#include<vector>
using namespace std;
class UnionFind {
private:
vector<int> p;
vector<int> rank;
public:
UnionFind(int N){
rank.assign(N, 0);
p.assign(N, 0);
for (int i=0; i<n; i++) p[i] = i;
}
int findSet(int i) { return (p[i] == i ) ? i : (p[i] = findSet(p[i])); }
bool isSa... |
2cf9880302be31bbf18e47a69d9e65fefe6394e7 | 7529428968d27102ca7941a1c9c88d736a8b278f | /vm/vmcore/src/thread/helpers/thread_helpers_ia32.cpp | 58473ce0f6ef18522db57643fa664459961577b2 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-4-Clause-UC",
"Zlib",
"BSD-4-Clause",
"LicenseRef-scancode-other-permissive",
"ISC"
] | permissive | isabella232/harmony-drlvm | 460096ab4158d4568351fa3ead9c4824efff0b70 | e4c0736e77643c27b14a081a866a1985694d5dc7 | refs/heads/trunk | 2023-08-19T01:45:15.201411 | 2010-03-20T22:11:29 | 2010-03-20T22:11:29 | 418,125,051 | 0 | 0 | Apache-2.0 | 2021-10-17T13:07:23 | 2021-10-17T12:30:04 | null | UTF-8 | C++ | false | false | 11,081 | cpp | thread_helpers_ia32.cpp | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... |
7c7aa461cbdab413ccf0f370a7a7026d42aea85d | 44772c84d27dc98557afd6348c5b0bffdf3eea8d | /Power.cpp | 41f12c27e0bfd65b7b2eb132fb7d6502104ad26f | [] | no_license | fffffeng/small | f9055b135914e8f9169be275e146816a172e5952 | 4f284c2f98c4a599208f702845f7da640fac2b98 | refs/heads/master | 2021-03-30T21:56:39.551411 | 2018-09-29T16:57:34 | 2018-09-29T16:57:34 | 124,712,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 699 | cpp | Power.cpp | #include<stdio.h>
#include<iostream>
using namespace std;
double Power(double base,int exponent)
{
double res = 1.0;
if(base==0.0) //底数==0;
return 0.0;
else //底数不为0
{
if(exponent==0) //底数不为0,指数为0;
return 1.0;
else if(exponent>0) //底数不为0,指数大于0;
{
for(int i=0;i<exponent;++i)
{... |
f8c8ab8891e7d789a056ba106edd86a3b0a88d12 | 189f52bf5454e724d5acc97a2fa000ea54d0e102 | /ras/fluidisedBed/0.91/U.particlesMean | f14a06c633dfffc86b2b80ddd14acdf95bf7aae2 | [] | no_license | pyotr777/openfoam_samples | 5399721dd2ef57545ffce68215d09c49ebfe749d | 79c70ac5795decff086dd16637d2d063fde6ed0d | refs/heads/master | 2021-01-12T16:52:18.126648 | 2016-11-05T08:30:29 | 2016-11-05T08:30:29 | 71,456,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 152,531 | particlesmean | U.particlesMean | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1606+ |
... |
fd75744b2a5fbfc5aadbcb52407ea104177827c4 | d932716790743d0e2ae7db7218fa6d24f9bc85dc | /ui/aura/mus/window_port_mus.cc | b946380ee01b382faa7ee45716b51182c7f698b6 | [
"BSD-3-Clause"
] | permissive | vade/chromium | c43f0c92fdede38e8a9b858abd4fd7c2bb679d9c | 35c8a0b1c1a76210ae000a946a17d8979b7d81eb | refs/heads/Syphon | 2023-02-28T00:10:11.977720 | 2017-05-24T16:38:21 | 2017-05-24T16:38:21 | 80,049,719 | 19 | 3 | null | 2017-05-24T19:05:34 | 2017-01-25T19:31:53 | null | UTF-8 | C++ | false | false | 19,380 | cc | window_port_mus.cc | // Copyright 2016 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 "ui/aura/mus/window_port_mus.h"
#include "base/memory/ptr_util.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/transient_... |
72c7b72273a47c9a08ffabf40b48acb128651410 | 98d256fc469c63109ef59587d68b0b16697e1bee | /算法竞赛入门经典/part04/4.4/p/4-3.cpp | 7d2e194820f2fdc5cd70efca5e52fac742436c93 | [] | no_license | 0x822a5b87/csapp | 29b8e956eed197f48ff860fef5dab492662a7368 | 1a8f722284800416f3ef44f06a9b3e2d73c05d18 | refs/heads/master | 2022-12-15T13:48:45.590571 | 2020-09-07T12:05:53 | 2020-09-07T12:05:53 | 195,348,568 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,667 | cpp | 4-3.cpp | #include <vector>
#include "iostream"
// 4.4 例题 4-3
// UVa 133
// 有几个问题需要注意
// 1. 在循环计算 aIndex 和 bIndex 时,必须判断 cnt == k 和 cnt == m 来提前退出循环
// 否则会导致 aIndex 和 bIndex 多计算一次
// 2. bIndex 的类型是 unsigned,所以如果我们使用 if (bIndex < 0) 来修改 bIndex 的索引
// 将会发生异常
// 3. aIndex 和 bIndex 的计算可以抽象为一个函数,并使用一个参数步长来表示 ++ 或者 --
int main(int a... |
acd95cfabdcfd90c3e8ade7855b8f11023e210e0 | b378ba11412901c53b4d8b385ed2089a2f39afa4 | /util/singleton.h | 7ccd245148b5d7c76074eebd4b268ded1c889676 | [] | no_license | sanjay24/cpprs | 0003c654ed763ff9ab97d9d1cabf68d040ed0ef7 | c4f68687df52df114fb35e1cb86b5ff5cb27349e | refs/heads/master | 2021-01-12T00:38:58.867472 | 2017-03-20T06:53:41 | 2017-03-20T06:53:41 | 78,751,946 | 0 | 0 | null | 2017-03-20T06:53:42 | 2017-01-12T14:09:11 | C++ | UTF-8 | C++ | false | false | 809 | h | singleton.h | #ifndef __BLINK__STON__
#define __BLINK__STON__
#include <mutex>
// Singleton to dispatch the requests coming into
// the server. Check the C++11 memory model for enhanced
// thread safe signleton
namespace blink {
namespace util {
template <typename T>
class Singleton {
public:
static T& in... |
70c77052c3b8382e1b885426842630ca2a73b6e1 | 908d925380c958868fc7dea7f310d2cdce0f5a6e | /BookSamples/Capitolo10/Pa_AudioRecorder/Pa_AudioRecorder/recorder.cpp | f841c7a4f329b79cb4aa2108ae0654f07cc716c4 | [
"MIT"
] | permissive | mscarpiniti/ArtBook | 3d153a012ce4a24c4d77dad443c1299cf6af0520 | ca74c773c7312d22329cc453f4a5a799fe2dd587 | refs/heads/main | 2023-09-04T07:48:26.864011 | 2021-09-28T14:05:52 | 2021-09-28T14:05:52 | 374,614,762 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,728 | cpp | recorder.cpp | #include "recorder.h"
Recorder::Recorder()
{
m_globalParams = new RecorderParameters();
m_globalParams->audioBuff = nullptr;
}
void Recorder::Record(std::string filename)
{
m_sfinfo.format = (SF_FORMAT_WAV | SF_FORMAT_PCM_24);
m_sfinfo.channels = 2;
m_sfinfo.samplerate = SAMPLE_RATE;... |
9dba52560daa3e62085f29b9fdbd2150740c2ea5 | 6bd4a6969c5ca51b0730007aeccb19eede7b6558 | /src/wbt_src/tasks/wbt_task_rightfoot_righthand.cpp | b4c3381bc33ad29f8195b144f3d7f0a8c86edfa2 | [] | no_license | skurwa/wbt_opt | bdefbf40d38bb9901f4fca2cab0d88c0a1fff381 | f4e4b01b4c0f6ea81d9cb5211d54c6c613543884 | refs/heads/master | 2021-05-02T17:11:03.999079 | 2018-02-19T23:02:09 | 2018-02-19T23:02:09 | 120,685,314 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,859 | cpp | wbt_task_rightfoot_righthand.cpp | #include <wbt/tasks/wbt_task_rightfoot_righthand.hpp>
#include "valkyrie_definition.h"
// Define RightFoot Task ---------------------------------------------------------------
RightFoot_RightHand_Task::RightFoot_RightHand_Task(){
robot_model_ = RobotModel::GetRobotModel();
task_dim = 7; // 4 for the right foot, and ... |
216c25adc8b30e8c24e7d6d766f346bc7465397f | 46d7810a76e3064004275d4eb6ea80264f3519b3 | /spytank/arduino/TB6612FNG/motor.cpp | 7eaf2c112bed3fc49b05e40b3bc9da591e284bd5 | [] | no_license | Reyoth/Robotique2020 | c635a66bd87b6b7a9cb9b60509cabda9917b6c4c | 09334660efa173fea2c90e55b795ce8b1ff2bd2a | refs/heads/master | 2022-11-18T01:28:06.081967 | 2020-07-17T13:29:26 | 2020-07-17T13:29:26 | 269,599,425 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,062 | cpp | motor.cpp | #include "motor.h"
Motor::Motor (int pwm_pin, int in1_pin, int in2_pin) :
pwm_pin(pwm_pin), in1_pin(in1_pin), in2_pin(in2_pin) {
_pwm_value = 0;
}
void Motor::begin() {
TCCR1B = TCCR1B & B11111000 | B00000001; // set timer 1 divisor to 1 for PWM frequency of 31372.55 Hz
pinMode(pwm_pin, OUTPUT);... |
067582ff3144e1de74921b0449d3f1bcaa58d848 | 42879028bd9b4df66973de399d0b000afc7c4c96 | /cpp/problems/697/problem-697.cxx | ed0b32421a0048a7299ba29a44c4c9512051b984 | [] | no_license | MarkMoretto/project-euler | a8210fa1277b66dd65d7112b2679897237c27cc9 | 195d01a88ce168cf82e0fd63712eba9eb4fb5c84 | refs/heads/master | 2022-07-06T22:27:04.153107 | 2021-11-17T22:10:20 | 2021-11-17T22:10:20 | 216,794,241 | 2 | 0 | null | 2022-06-17T00:47:03 | 2019-10-22T11:12:48 | Python | UTF-8 | C++ | false | false | 1,893 | cxx | problem-697.cxx | /*
https://www.learncpp.com/cpp-tutorial/73-passing-arguments-by-reference/
Notes:
Need to compile with std=c++17 for template deducation.
TODO: Agg results and determine perecntage of n100 < 1.
*/
#include <iostream>
#include <random>
#include <chrono>
#include <cmath>
#include <functional>
// h... |
04281f723a65a4fdb1906286afb56ddcdcb36558 | 7f817653c296aaca02b917cc5b85ddb7365facd8 | /Allegro/IGraph.hpp | 55e213e97e52f72159e25bb5661bed1c05759094 | [
"MIT"
] | permissive | BernardJeremy/nibbler | 946d7e8e524cbf7e289e241eaecc94baa3d7891f | c02f837b61b17a5b67fbb071a02d9f38d33c576c | refs/heads/master | 2021-08-08T04:15:24.466876 | 2017-11-09T14:33:41 | 2017-11-09T14:33:41 | 110,120,707 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 730 | hpp | IGraph.hpp | //
// IGraph.hpp for nibbler in /home/bernar_w/Projet/Nibbler/core
//
// Made by bernar_w
// Login <bernar_w@epitech.net>
//
// Started on Wed Mar 12 11:27:37 2014 bernar_w
// Last update Thu Apr 3 08:27:23 2014 Claire Almozinos
//
#ifndef IGRAPH_HPP_
# define IGRAPH_HPP_
# include <string>
# include <iost... |
e163a25038d77a55db241c1c072f93774000e3b6 | cd96760180f65a17f428cc478b0cc774bcbef5e2 | /UVa/108.cpp | dfc614d5ef1bd73e2b7926e4de8856969684769f | [] | no_license | ngrj93/Competitive-Programming | 1cecc5cfec39472100fdb392f341f6190cca9b0e | 477b03d388262460443a22d62ab115f1966a4191 | refs/heads/master | 2021-01-17T21:11:28.850021 | 2017-03-07T07:50:44 | 2017-03-07T07:50:44 | 84,165,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 700 | cpp | 108.cpp | #include<iostream>
#include<climits>
using namespace std;
int n;
int main(){
cin>>n;
int matrix[n][n];
for(int i=0;i<n;i++)
for(int j=0;j<n;j++)
cin>>matrix[i][j];
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
if(i>0)
matrix[i][j]+=matrix[i-1][j];
if(j>0)
matrix[i][j]+=matrix[i][j-1];
if(i>0... |
83fa961037af1f408ef7de98ba92016c80b6c85f | fdab2dfb2bae56c8d0320f3c723391f27c2f6c23 | /43 字符串相乘.cpp | 5e1edf3fed4af292c11570e2b725e884a54e0087 | [] | no_license | ah651/LeetCode | 582104a651641da04172b34a77d45388afa542cc | 2c9ffbfce5b21925aac4a6f6dd739f8eee35ece6 | refs/heads/master | 2022-12-13T00:22:47.183285 | 2020-09-21T09:45:40 | 2020-09-21T09:45:40 | 221,640,161 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,800 | cpp | 43 字符串相乘.cpp | #include <vector>
#include <list>
#include <iostream>
#include <sstream>
#include <map>
#include <algorithm>
#include <stack>
#include <cmath>
#include <queue>
#include <climits>
#include <set>
#include <unordered_set>
#include <cstring>
using namespace std;
#include <random>
class Solution {
publi... |
a97204b278c7e4aa7a4b4988f661b77e93217173 | 42f1cbf1c8bd1838cf8857c325d5ac2d7a626692 | /C_year2/Prob_Solve_CPE/week3/b03.cpp | 7fba3c3b29fd1395b8e0832f5cbc84a802a1bdd7 | [] | no_license | Kritsatorn/Competitive-programming | dff3fc9b090f61a00af14374ba3edcf00a82d813 | fc38afb8696847a9372464765b2dd23bb6c07472 | refs/heads/main | 2023-03-27T21:40:34.559210 | 2021-03-28T05:07:01 | 2021-03-28T05:07:01 | 339,636,834 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 938 | cpp | b03.cpp | // #include <bits/stdc++.h>
#include<stdio.h>
#include<list>
#include<iterator>
#include<iostream>
using namespace std;
struct List {
// int data ;
struct List *next,*prev ;
};
int main(int argc, char const *argv[])
{
list<int> list[100010] ;
int n;
scanf("%d",&n);
while(n-- > 0) {
int... |
cb0d86dd5528a6006ae056014881824bdc876bac | a76cfebebfe17ae4ad91a8faf08c45fff6994471 | /mqp/Implementation/Server/HelperPerformance.cpp | b3931a2776927df31e4b202e6587a32f7bf320fe | [] | no_license | pete0877/wpi | b5e3163852ab6359bcb838c6ec9cafbaddac4004 | 9841753596c6e72facec7f4236d37a9d35b66c0b | refs/heads/master | 2021-01-02T08:21:47.787986 | 2015-04-03T21:17:56 | 2015-04-03T21:17:56 | 33,380,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,062 | cpp | HelperPerformance.cpp | // HelperPerformance.cpp
//
#include "stdafx.h"
#include "HelperPerformance.h"
#include <math.h>
HelperPerformance::HelperPerformance()
{
helperPerformanceData.alphaBetaGain = 0;
helperPerformanceData.branchingFactor = 0;
helperPerformanceData.evaluationTime = 0;
helperPerformanceData.pctCompleted = 0... |
be2069be6344807edac72cc9dbe6dc41b5338b72 | 12043db0f57f5d9402a99507648bcbb4d9417452 | /Programming_Abstractions/Chapter_07/Exercise_03/Exercise_03/mazelib.h | 46c50527c57a87d5eed23ec9ba30702585b0e871 | [] | no_license | daniellozuz/CPP | a8afb1ae3353bd483cf953fac8a70b0b1446023c | fdc8957158522fc27aa55a44b3e45333157b843f | refs/heads/master | 2021-05-12T08:31:17.581023 | 2018-03-07T23:41:45 | 2018-03-07T23:41:45 | 117,283,294 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 482 | h | mazelib.h | #ifndef _mazelib_h
#define _mazelib_h
#include <string>
using namespace std;
enum direction_t { North, East, South, West };
struct point_t {
int x, y;
};
void read_maze_map(string filename);
point_t get_start_position(void);
bool outside_maze(point_t pt);
bool wall_exists(point_t pt, direction_t dir);
void mark_s... |
698f2dc6737f8daacc1026f343ebf1f30ad564ca | e2829648045697859f4ed2aff860511d1e08eff3 | /DroneShooting/Intermediate/Build/Win64/UE4Editor/Inc/DroneShooting/GunShooter.generated.h | 71e6502b640b61011a5c409be4518d7dbdbd4f64 | [] | no_license | philipe-go/ue4-ml.drone.shooting | 365a3154c81efe4b05de0305057ae0fd39f3f41a | 812e5fb68d69ea6bbe36b2b4ac9b5eec09fcf54d | refs/heads/main | 2023-02-18T18:49:26.316186 | 2021-01-25T03:13:29 | 2021-01-25T03:13:29 | 328,750,272 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,402 | h | GunShooter.generated.h | // Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
========================================================================... |
93e9a825dbd1573a082aa86f41eac192b6b838c5 | ae52e1c23e8a38fa271f5084ff24406a95b1eab9 | /Common.h | 78f37e8ab42932f707fb94470bfe35713af21f90 | [] | no_license | KielanT/Skinning | 7f42aea69980a1d11525387b6a20f4cd5db6de86 | 30547c1016ee1cb4f4b46a97f527b8262a908f5c | refs/heads/main | 2023-04-14T15:32:09.277329 | 2021-04-18T16:27:53 | 2021-04-18T16:27:53 | 356,609,128 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,691 | h | Common.h | //--------------------------------------------------------------------------------------
// Commonly used definitions across entire project
//--------------------------------------------------------------------------------------
#ifndef _COMMON_H_INCLUDED_
#define _COMMON_H_INCLUDED_
#define NOMINMAX
#include <windows... |
94a140643d5fc6ab7a0401ae884460e58fd6bf25 | 11348e739dee821e4bdd6ec0e4c6c041a01b0b59 | /实验舱noip2019/contest3/小奇挖矿4.cpp | 60ec4eb039f46ed3613f7c39fca823d594eea136 | [] | no_license | Spartan859/Noip_Code | 580b1f022ca4b8bf3e77ff8d57d230340715a98d | 8efe9e7cc6f29cd864b9570944932f50115c3089 | refs/heads/master | 2022-11-18T15:09:19.500944 | 2020-07-11T13:36:21 | 2020-07-11T13:36:21 | 163,517,575 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 610 | cpp | 小奇挖矿4.cpp | #include<bits/stdc++.h>
#define N 100005
#define Q 100005
#define ll long long
using namespace std;
ll n,ai;
ll q,k[Q];
ll wt[N];
ll ans;
multiset<ll> s;
multiset<ll>::iterator it;
int main(){
scanf("%lld",&n);
for(ll i=1;i<=n;i++){
scanf("%lld",&ai);
s.insert(ai);
}
scanf("%lld",&q);
for(ll i=1;i<=q;i++)
sc... |
8fdc8c2ef09a56439e1a193ef65b0866c796c614 | bcffab1693654b9d032525024991f6749c27c030 | /S2Engine/s2SceneGraph/src/view/ViewPerspective.h | 1366bf42f865b9a355257d0103abadd75879cca3 | [] | no_license | danielevacca81/S2Engine | 9a954b6155033c0029033fc798d0d8df087a1224 | 113caabc9dc72ccf42742de77e35f733e14216ab | refs/heads/master | 2021-06-13T21:43:13.220620 | 2019-08-19T12:55:07 | 2019-08-19T12:55:07 | 133,978,244 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 924 | h | ViewPerspective.h | // ViewPerspective.h
//
#ifndef VIEWPERSPECTIVE_ONCE
#define VIEWPERSPECTIVE_ONCE
#include "s2SceneGraph_API.h"
#include "Math/Math.h"
namespace s2 {
namespace SceneGraph {
class S2SCENEGRAPH_API ViewPerspective
{
public:
ViewPerspective();
~ViewPerspective();
void setAspectRatio( double ar );... |
a35219a9be0fc386e728beb32a9af5e9fde7020f | 48be10325a7973f76166a3fe242b876912e768ac | /FFmpeg_Vul/cve-2012-2779.cpp | 21df8f59109d6d0c6b278f80954df851e1e1b805 | [] | no_license | quyutest/CodeSmellTest | 5c9b2a045396d122254a481d956557a1c58bb916 | ffbc2fed091bb4ae16341ae42c4a4efd7282578c | refs/heads/master | 2022-06-04T20:50:44.014451 | 2020-05-02T01:29:48 | 2020-05-02T01:29:48 | 260,587,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,054 | cpp | cve-2012-2779.cpp | //CVE-2012-2779
/**
* main decoder function
*/
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
AVPacket *avpkt)
{
IVI5DecContext *ctx = avctx->priv_data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
int res... |
e188310285e267e56ae8d9ee4c6233f9a4caff0b | 9a3f8c3d4afe784a34ada757b8c6cd939cac701d | /InterviewBit/Dynamic Programming/interleavingStrings.cpp | cb83be587ede898ddad05915360d22614f70836f | [] | no_license | madhav-bits/Coding_Practice | 62035a6828f47221b14b1d2a906feae35d3d81a8 | f08d6403878ecafa83b3433dd7a917835b4f1e9e | refs/heads/master | 2023-08-17T04:58:05.113256 | 2023-08-17T02:00:53 | 2023-08-17T02:00:53 | 106,217,648 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,735 | cpp | interleavingStrings.cpp | /*
*
//************************************************************Interleaving Strings.*****************************************************
https://www.interviewbit.com/problems/interleaving-strings/
*******************************************************************TEST CASES:************************************... |
d2cac0df28d715afaa75b0d56825bbaf298d29f9 | 309fceba389acdb74c4de9570bfc7c43427372df | /Project2010/Bishamon/include/ml/utility/ml_noncopyable.h | 93b04b3bf540244fa4d3c115df64863243bb63fd | [] | no_license | Mooliecool/DemiseOfDemon | 29a6f329b4133310d92777a6de591e9b37beea94 | f02f7c68d30953ddcea2fa637a8ac8f7c53fc8b9 | refs/heads/master | 2020-07-16T06:07:48.382009 | 2017-06-08T04:21:48 | 2017-06-08T04:21:48 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 608 | h | ml_noncopyable.h | #ifndef LIBMATCHLOCK_INC_ML_UTILITY_ML_NONCOPYABLE_H
#define LIBMATCHLOCK_INC_ML_UTILITY_ML_NONCOPYABLE_H
namespace ml{
/// @addtogroup utility
/// @{
/// @addtogroup utility_noncopyable
/// @{
/// @brief コピーさせない
/// @note このクラスを継承するとコピーできなくなります
class noncopyable{
/// @cond internal
protected:
noncopyable(){;}
~... |
254815cd3620546ffefea1f6e0632674f0c78d4f | 338f16b907cdca5d99f6fc4ee978b3dede217615 | /3rdparty/stout/include/stout/duration.hpp | 42c43cda21c75fc3bef962af67c4a09df68a95af | [
"Apache-2.0",
"GPL-2.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-protobuf",
"LGPL-2.1-only",
"PSF-2.0",
"BSL-1.0",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause"
] | permissive | apache/mesos | 24c92eb34ea9cbb2912d6471815a433c9942e0c9 | 8856d6fba11281df898fd65b0cafa1e20eb90fe8 | refs/heads/master | 2023-08-28T06:36:36.458732 | 2023-01-13T21:00:06 | 2023-01-14T00:29:23 | 11,469,439 | 4,860 | 2,034 | Apache-2.0 | 2023-04-12T06:10:25 | 2013-07-17T07:00:13 | C++ | UTF-8 | C++ | false | false | 12,074 | hpp | duration.hpp | // 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 to in writing, software
// distributed und... |
59bf769e62fe04b05d10e7723c3fb640b61e8c37 | 80bcf31bfa9d04e700a60627554686034bd3bdb7 | /SRCPCore/src/lan/ServerSocket.h | 9fd6e6b0e5a29696c36f196ebd70936c88a91e6e | [] | no_license | BackupTheBerlios/microsrcp | 277cc6e803a0b80b288c25179edd488cdaddba40 | a0d4b8ec0ceb2a05377810b16604688a3196f419 | refs/heads/master | 2016-09-06T16:03:02.745051 | 2013-03-05T20:26:13 | 2013-03-05T20:26:13 | 40,259,347 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,455 | h | ServerSocket.h | /*
ServerSocket - Ersatz fuer die Klassen Server und Client
aus der Arduino Library.
Diese konnten nicht verwendet werden, weil:
- keine Abfrage auf connected wenn keine Daten vorhanden sind
- keine zwei listen Ports auf dem gleichen Port.
Copyright (c) 2010 Marcel Bernet. All right reserved.
This program is... |
add7951e0351678e8900f7dc4d775d12455cf99f | ffda773b46fafd1aa9c20f16e7b473bfbea4787c | /ctci/8.1_triple_step.cc | de13354a17ce779a4e0b41222189d0ee98763093 | [
"Apache-2.0"
] | permissive | sservulo/programming-challenges | 82cdace539ad66d22733c0fd9bf1a993a1413182 | 65a872c96ab5cda347c0ee6b6742a07d55ba9d33 | refs/heads/master | 2021-01-23T02:41:21.829405 | 2017-04-30T21:48:34 | 2017-04-30T21:48:34 | 86,020,018 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 625 | cc | 8.1_triple_step.cc | #include<iostream>
#include<vector>
#include<limits>
using namespace std;
unsigned long long countClimbs(int steps){
if(steps < 1){return 0;}
vector<unsigned long long> step(100,0);
step[0] = 1;
step[1] = 2;
step[2] = 3;
for(int i = 3; i < 100; i++){
step[i] = step[i-3] + 3 + step[i-2] + 2 + step[i-1] ... |
2193ca9ed0e125b97bd22a462dea7860a96f0c8c | 82e2edb97d326ef24b011d1da4e4af45990f6c97 | /Project tyu tyu rocket/padinput.h | fca448fcb7f0540b2a136b401e7e32b553756939 | [] | no_license | Sakai-MAX/Project-tyu-tyu-rocket | 04938d8cd07d889a4d4f7a259ca7856a619735c5 | 441e08b456e39535e7c39a4e496ef8ffb0bfbd23 | refs/heads/master | 2021-05-08T20:40:12.900816 | 2018-02-15T08:27:25 | 2018-02-15T08:27:25 | 119,616,003 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 616 | h | padinput.h | #pragma once
/////////////
// Class //
/////////////
class PadInput
{
private:
static GamePad pad_; // パッドクラス
static GamePad::ButtonStateTracker pad_tracker_; // ボタンステートトラッカー
static GamePad::State State_; // パッド入力状態
static GamePad::ThumbSticks kaiten_;
p... |
593924a332635219311774417cb377bcabeae95e | a1dc40fb57a82dc2804651c02c08d39114c8fff4 | /headers/functions.h | 5f615bf5a1d4e4878c356ac21aa51852fa77f631 | [] | no_license | neutrinoceros/nbod | 8b37a00106f919c4074df795387e9c59cd34eef1 | 9bf81c80eb3f322ebf7dd117162b18426febf454 | refs/heads/master | 2021-01-17T11:10:16.438033 | 2015-10-12T21:09:37 | 2015-10-12T21:09:37 | 42,677,745 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 295 | h | functions.h | #ifndef FUNCTIONS
#define FUNCTIONS
#include <valarray>
#include <string>
#include <sstream>
#include <SFML/Graphics.hpp>
using namespace std;
double dot(valarray<double> a, valarray<double> b);
valarray<double> cross(valarray<double> a, valarray<double> b);
string intToString(int i);
#endif
|
882be77c2beaae59da41ae8ff665136ffdf51982 | 53360319eaf69ff75f34e1c2c45cbcdfd12842c9 | /groups/bdl/bdlb/bdlb_chartype.cpp | 913c5738d4e5607c5f865b3e15c146ae627d9348 | [
"Apache-2.0"
] | permissive | bloomberg/bde | 229de23237d9cc0937ec2d0b69ef7dfcb1fa2154 | 7cc8e30c7218eaffbc31f518bd40794cc79f7282 | refs/heads/main | 2023-09-01T08:52:24.600136 | 2023-08-31T17:43:40 | 2023-08-31T17:43:40 | 6,619,178 | 1,429 | 338 | Apache-2.0 | 2023-05-20T13:33:26 | 2012-11-09T20:00:30 | C++ | UTF-8 | C++ | false | false | 25,774 | cpp | bdlb_chartype.cpp | // bdlb_chartype.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example f... |
a6087e22e6b8109f4b95f08909d1c8128d9e9ae2 | 784eeffc3961c86b380915f1a965336d9f45dc79 | /src/udata.cpp | 87161972e38554dd60b7a43069968d8d828b4281 | [
"BSD-3-Clause"
] | permissive | neuralyzer/AMICI | d55829242d8dffdcefdc946cc16af19ad2f7f611 | cc2d75bb4cd39cff36a70acfca53e5728630df65 | refs/heads/master | 2020-06-24T11:34:20.289481 | 2017-07-11T08:43:32 | 2017-07-11T08:43:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,127 | cpp | udata.cpp | #include "include/udata.h"
#include <cstdio>
#include <cstring>
UserData::UserData() :
np(0), nk(0),
nx(0), nxtrue(0),
ny(0), nytrue(0),
nz(0), nztrue(0),
ne(0), nw(0),
ndwdx(0), ndwdp(0),
nnz(0), nJ(0),
ubw(0), lbw(0),
o2mode(AMICI_O2MODE_NONE), pscale(AMICI_SCALING_NONE)
{
in... |
800aa79ddc3cc18fc63c5cbf351fea99a52d937f | 119ba245bea18df8d27b84ee06e152b35c707da1 | /unreal/branches/robots/qrgui/interpreters/robots/details/robotImplementations/sensorImplementations/bluetoothSensorImplementation.h | 2d0ecdeb7df8fb0071b170e63b60b542105abbc6 | [] | no_license | nfrey/qreal | 05cd4f9b9d3193531eb68ff238d8a447babcb3d2 | 71641e6c5f8dc87eef9ec3a01cabfb9dd7b0e164 | refs/heads/master | 2020-04-06T06:43:41.910531 | 2011-05-30T19:30:09 | 2011-05-30T19:30:09 | 1,634,768 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,239 | h | bluetoothSensorImplementation.h | #pragma once
#include "abstractSensorImplementation.h"
#include "../../../robotCommunicationInterface.h"
#include "../../robotCommandConstants.h"
namespace qReal {
namespace interpreters {
namespace robots {
namespace details {
namespace robotImplementations {
namespace sensorImplementations {
class Bluet... |
541f5a85fe71d743039799b5572a6721c698a923 | ee4d492812ebf74c2dcd82d5a9266540f49873ed | /lab6_q4.5.cpp | 996c77474ad9b74798ad86ec07afde377ef59ab0 | [] | no_license | NivedithaCV/cslab-6 | 967036bb763928e18036da6b1c1d1e99ba08bff3 | ed4f6a1c5b66fec39e5a754354fe74bef3e15d06 | refs/heads/master | 2020-03-28T10:24:33.410638 | 2018-09-12T20:48:15 | 2018-09-12T20:48:15 | 148,106,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | cpp | lab6_q4.5.cpp | //(By reference)Minimum
//library
#include<iostream>
using namespace std;
// Declaring void function
void funcR(int a, int b,int &c){
//giving condition
if(a>b)
c=b;
else if(b>a)
c=a;
}
//Drive function
int main(){
//declaring variables
int e,f,min;
//asking for numbers
cout<<"write two numbers"<<endl;
//tak... |
089bc5b056ed1a19af9c8587f480d4f184b877f5 | 4baf22f9f94dd49f67d5d13d3f5247869f48f292 | /DJ_Hero/DJ_Hero.ino | 6be3715345ff28add4fbd1412540773adf76f13b | [] | no_license | johnpmayer/makerbardrumset | 77c38f457aa17f582fbffbd825043d7a25b741ed | 8feed08bd8882ed1ca9bdd652cff470eb4eec570 | refs/heads/master | 2021-01-10T09:57:43.013931 | 2013-04-29T03:51:45 | 2013-04-29T03:51:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,369 | ino | DJ_Hero.ino | #include <Wire.h>
#define LEFT 0
#define CENTER 1
#define RIGHT 2
#define CLOCKWISE 0
#define STOPPED 1
#define COUNTERCLOCKWISE 2
#define BUTTON 4
#define LIGHT 5
#define FADER A0
#define KNOB A1
#define DEBOUNCE 50
#define KNOB_THRESHOLD 50
#define FADER_LEFT_UPPER_THRESHOLD 200
#define FADER_CENTER_LOWER_THRESHO... |
551b4962b2702a4fc7a96d5a00782857e914623a | 326e84dfd64311138afc3325f2362a1a724be38e | /finals/client/Hypno.cpp | 1952c7fe22bd060f51c01567570c35a6d767c3d9 | [] | no_license | r0mai/nng-2017 | 239e9f8a3536b61d8406d8ab6128c9d0c04084ef | 1474e94993c1ecb119893e36667d36b3f2aed390 | refs/heads/master | 2021-05-15T12:38:22.997191 | 2017-11-25T20:52:36 | 2017-11-25T20:52:36 | 108,463,098 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 23,980 | cpp | Hypno.cpp | #include "Hypno.h"
#include <set>
#include <map>
#include <vector>
#include <iostream>
#include <algorithm>
CLIENT* CreateClient(std::string preferredOpponents) {
return new Hypno(std::move(preferredOpponents));
}
Hypno::Hypno(std::string preferredOpponents) :
mPreferredOpponents(std::move(preferredOpponents)) {
... |
5aba245a9934f9868dd7a25ad70d80b173891785 | 9f4f2aa4a6144ad6e3ec723d3e2e6c2361360cd6 | /app/src/main/cpp/subdir/second.cpp | 4838d49396d3a841c9585a10cd16ce1ac82bee2d | [] | no_license | 815034762/JNIExercise | 2068468604f4dfb8c9fc71421a5e667218d1d558 | 70f390b5276ee1f574c3d7952c10ac96225ac0d1 | refs/heads/master | 2020-03-28T01:28:34.667100 | 2018-12-28T07:00:27 | 2018-12-28T07:00:27 | 147,507,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 859 | cpp | second.cpp | #include <jni.h>
#include <stdlib.h>
#include <stdio.h>
#include <string>
// 引入log头文件
#include <android/log.h>
typedef struct {
char name[255];
int age;
} Person;
// log标签
#define TAG "zty_tag"
// 定义info信息
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,TAG,__VA_ARGS__)
// 定义debug信息
#define LOGD(...... |
ccfc2e0bd43b6444095b8a3dde68dcb4f7d6140e | 7cbcdc1b9aa085cd58ecb6bf70ea71a1536d5478 | /SDK/VI1_NTAnimation_parameters.hpp | 4e1d82d311b9c75ee35f73193834966653ea772a | [] | no_license | YMY1666527646/VaderImmortalEp1SDK | ebb25986a12cb2ea573c7ab776aade5e1f2bb8f6 | ccfe09575f27203af188cfd0c31efcf2642b0a0e | refs/heads/master | 2022-12-23T23:12:51.233601 | 2020-09-29T03:21:27 | 2020-09-29T03:21:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,561 | hpp | VI1_NTAnimation_parameters.hpp | #pragma once
// VaderImmortal_1 (236956) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function NTA... |
5fb320aca6535566a2d1ab26817e3eadbf9ed37e | 45dd31b0f5784bbda278c6bfdc56517e61e793fd | /MyGraphics/MyGraphics/Source/Hitbox.cpp | 7ce0ab6a536bd18ae5f7ffc5784101e081a40f53 | [] | no_license | lyx97/SP2-Team-11 | f59def02f0a72f31a1588cea5e989fc1d82df2b8 | d4b1acdd13437082ced64c1acf6819f6528bd25f | refs/heads/master | 2021-01-10T07:47:30.899411 | 2016-03-03T15:28:27 | 2016-03-03T15:28:27 | 51,690,529 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,621 | cpp | Hitbox.cpp | /******************************************************************************/
/*!
\file Hitbox.cpp
\author Lee Yu Xian
\par email: 155118A\@mymail.nyp.edu.sg
\brief
Class to define the hitbox class
*/
/******************************************************************************/
#include "Hitbox.h"
/**************... |
5f364ca39f658038cf285dd4feb6cc1d66c65a87 | eff550ccfe3f26ed0b368c54d7718c95356d420a | /과제1/Shell sort/shell_sort.cpp | 6a432366900493413577e0adf91587df09bb9699 | [] | no_license | yt4307/Algorithm_design | a0094eb9c0c06f297027198a0fad510198ee446b | 2e85757b91203c9b1f6d8f87e27c749a0693aebc | refs/heads/master | 2023-05-28T08:51:26.596026 | 2021-06-15T07:41:03 | 2021-06-15T07:41:03 | 344,013,684 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 3,521 | cpp | shell_sort.cpp | #include <iostream>
#include <random>
#include <chrono>
using std::cout;
using std::endl;
using std::random_device;
using std::mt19937;
using std::uniform_int_distribution;
using std::chrono::duration_cast;
using std::chrono::system_clock;
using std::chrono::microseconds;
void ShellSort(int*&);
void CheckSort(cons... |
a420a79bb80c863173e9be4d19909c6873cd17a5 | 4e80ccd652bc37acf9db47683ac22e1c4dce38b4 | /src/renderer/opengl/OpenGLShaderProgram.cpp | 494a7b5f8c28728f7d97946bc1e3c6c5dd4d4911 | [
"MIT"
] | permissive | pavankumarallu/ALZparticles | 1a5628d438baeda6553ba8e4e3389d09f5c3d73e | 8684d8c92e71825c727c0a76b6a29486e6e4e3de | refs/heads/master | 2020-08-28T03:31:06.418875 | 2019-10-20T18:43:28 | 2019-10-20T18:43:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,611 | cpp | OpenGLShaderProgram.cpp | #include <pch.h>
#include <glad/glad.h>
#include "OpenGLShaderProgram.h"
namespace ALZ {
namespace OpenGL {
OpenGLShaderProgram::OpenGLShaderProgram(const std::string& vertPath, const std::string& fragPath)
{
unsigned int vertex, fragment;
vertex = glCreateShader(GL_VERTEX_SHADER);
std::string vShader... |
5016203171ed95a419c5370742bfa8ef74484f3a | 759363669c972ad8b43ea006f93cf09cc381af85 | /cpp/code/employ/custom/menu/display/DisplayMenu.cpp | bba14c6e041558d97cb14c0cd97336879cfc66c8 | [] | no_license | heidekeyi/cpp | 38d3fda56b46d81d1318dbfebe6425a333d35af0 | cc5785a261b8c180a3e826da37adccc36586b3ff | refs/heads/main | 2023-07-16T12:42:39.255536 | 2021-09-05T09:47:30 | 2021-09-05T09:47:30 | 397,558,956 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,670 | cpp | DisplayMenu.cpp | //
// Created by 12131 on 2021/9/4.
//
#include "DisplayMenu.h"
namespace employ::custom::menu {
void DisplayMenu::display(const vector<EmployeeTable> &vEmployee, const vector<int> &vSalary) {
displayUtils.right()
.width(3).out("id")
.width(21).out("createTime")
... |
88fe6b6d6a7d911aa9720c61ac2828c80bb3686e | 8cd3565be5940cd6c358ba4ee38cd4ad5c706fe1 | /longestPalindrome3_5.cc | be4896dcdd974f5d4f26a112c2c4a5eb869ec19b | [] | no_license | ngmj/leetcode-interview | bae2230f7c6b1a39640526ed8e47a616a0bd63a4 | f11db210f8ebafa504bd9772b7241790d5c9b063 | refs/heads/master | 2020-09-21T03:14:45.613285 | 2020-08-31T16:29:19 | 2020-08-31T16:29:19 | 224,662,274 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,902 | cc | longestPalindrome3_5.cc | #include <iostream>
#include <vector>
using namespace std;
/*
* https://leetcode-cn.com/problems/longest-palindromic-substring/solution/zui-chang-hui-wen-zi-chuan-by-leetcode/
* 动态规划求解
* res[i, j] 表示s[i~j]是否是回文
* res[i, j] = res[i+1, j-1] && s[i] == s[j]
* 初始化一个回文长度的即res[i, i] = true
* 初始化两个回文长度的即res[i, i+1] = s... |
75bd992d8b53058cc28ed79ffdee0a9e00dffc24 | 40420e55ae2b25709872cac5bdf39fe250519922 | /RSAction/Source/RSAction/Private/Online/SoldierOnlineGameSettings.cpp | d8deec1269bf1f6fc0304e929b59cd886bc4cb3d | [] | no_license | magrlemon/RSActionII | 2d85709f05d63f5b1c39038e9918f86989ff9e29 | 26ae7910afdedfdf353f6fbd98f3e4a92b21dc7f | refs/heads/master | 2020-12-01T19:26:07.617189 | 2020-05-13T13:41:45 | 2020-05-13T13:41:45 | 230,740,815 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,275 | cpp | SoldierOnlineGameSettings.cpp | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "RSAction.h"
#include "SoldierOnlineGameSettings.h"
FSoldierOnlineSessionSettings::FSoldierOnlineSessionSettings(bool bIsLAN, bool bIsPresence, int32 MaxNumPlayers)
{
NumPublicConnections = MaxNumPlayers;
if (NumPublicConnections < 0)
... |
3311300679a00dad14d6dc3f4799dfa233eedcf7 | 125aadd932577dea65634b86692769faca9ef97a | /source/lcppCLI/lcpp/cli/exceptions.h | e8abc673d0fd2b5b92eae14b8118b5738ff25942 | [] | no_license | Manuzor/LispCpp | f4a5904c0d528fee75c79d1703f71a58aed94a1e | d51d5a6b0356bb213d9994c8b782e00799fc025d | refs/heads/master | 2021-01-25T09:59:27.752495 | 2014-10-28T22:51:11 | 2014-10-28T22:54:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409 | h | exceptions.h | #pragma once
#include "lcpp/exceptions/exceptions.h"
namespace lcpp { namespace exceptions {
class InitializationFailed :
public ExceptionBase
{
public:
inline InitializationFailed(const char* message = nullptr, const char* file = nullptr, ezUInt32 line = -1) :
ExceptionBase(messa... |
65a1d9f2cc07cdcc62dd7a976929dc463c5d9f35 | 566fe3417bf8730aba70d4ad3b5c0568c836218b | /pushbuttonview.cpp | e255b148270df03fd0225648fa8a849ed44d7a0b | [] | no_license | Anastasiya-Potseluico/InterfaceBuilder | 21c83ad7e717dde39e0dbe6f5f0ad38e5f6c3f4a | 91278e64531cba31a294109ecf6293e31280c80a | refs/heads/master | 2021-01-01T16:38:56.379408 | 2015-06-09T12:49:53 | 2015-06-09T12:49:53 | 30,318,828 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 670 | cpp | pushbuttonview.cpp | #include "pushbuttonview.h"
PushButtonView::PushButtonView(AbstractWidget *drawedWidget) :AbstractWidgetView(drawedWidget)
{
}
void PushButtonView::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
QRectF rect = widgetSize();
QPen pen(Qt::black, 1);
//Рисуем внешний прям... |
1aa6d95d9faa0474dab30d794d9556348a9c5d40 | 6e001354cb76c94b4ce064487b5b3ba938d3a935 | /bridles/eth/CMessageClient.h | 643c23cae12651ba8105f0beeb01a9855c121413 | [] | no_license | SilentButeo2/equids | 4f42f26bca432e9f799487c629a8b7d5cc127e30 | 5a001a7cc50091052aa21d81ddc79af3e142689a | refs/heads/master | 2021-05-26T23:13:23.419500 | 2013-10-01T09:46:30 | 2013-10-01T09:46:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,775 | h | CMessageClient.h | #ifndef CMESSAGECLIENT_H
#define CMESSAGECLIENT_H
#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include "CMessage.h"
#include "ipc.hh"
#include <semaphore.h>
#include <vec... |
3d1cc965dff2ffa0d033a28b5c2e7f5b3e46e721 | 5107d31ebc3e06c66ba18c0700e263fc4b11ae51 | /BOJ_1463(1로 만들기).cpp | 5dccbd7539bb771fd325f371de356443e2a18ca1 | [] | no_license | wjdgus112/Algorithm_Problem | f97adddb7093c94fd6e09f5c93270abf81422f6b | 32dae5cd9527eaf413be13357d60701718f67712 | refs/heads/master | 2021-04-15T04:55:31.871805 | 2018-05-27T14:05:24 | 2018-05-27T14:05:24 | 126,583,163 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | cpp | BOJ_1463(1로 만들기).cpp | #include <iostream>
using namespace std;
#define MAX 1000001
int D[MAX];
int solution(int N)
{
if (N==1) return 0;
if (D[N] > 0) return D[N];
D[N] = solution(N - 1) + 1;
if (N % 2 == 0)
{
int tmp = solution(N / 2) + 1;
if (D[N] > tmp) D[N] = tmp;
}
if (N % 3 == 0)
{
int tmp = solution(N / 3) + 1;... |
6e56859fa61bff8740b7e687cc3935f5525dd1da | d364269377c102c953e7d061bfee0b750069514e | /pic32/libraries/Bridge/Bridge.h | 14f86cbd3ec22d83d79a5b440643110e88507675 | [
"Apache-2.0"
] | permissive | chipKIT32/chipKIT-core | b09da1f7b0fc00e705a41f18c427471241bc09e2 | 380d4a834c094292a91d0099c66b749486c81fc0 | refs/heads/master | 2022-09-17T19:53:39.798019 | 2020-04-26T18:08:58 | 2020-04-26T18:08:58 | 33,152,510 | 58 | 80 | Apache-2.0 | 2022-08-27T10:24:42 | 2015-03-30T22:50:34 | C | UTF-8 | C++ | false | false | 3,352 | h | Bridge.h | /*
Copyright (c) 2013 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
Th... |
be438281b146f27539db1ae079893f0db20e2e4b | e0bd55ab6d168f428d1a16ab74cf3198effb7758 | /code/odeint423.cpp | c1abfff2f549fb8e33411901158d28abcbef0ebb | [] | no_license | tectronics/adj-tem-zhuq-4dvar | 0def820469d920822fc15d30d1a79642b7505b89 | aa45b7128c1e11e8fb6fc0caa44cf2740eb30f64 | refs/heads/master | 2018-01-11T15:06:09.584911 | 2013-01-11T00:23:24 | 2013-01-11T00:23:24 | 47,060,712 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,236 | cpp | odeint423.cpp | /* **************************************************************
ODEINT423.CPP - object contains functions to integrate ordinary
differential equations (ODE)
*****************************************************************
Modifications:
19991102 - DWK deleted code for:
virtual int boundc... |
f12ce0917a2d0c5ed05fc1fee5eda737ddac9b8a | db7a2bfaaaf2ddddcc442b368deed3afa29ab6cb | /tests/testthat/testExamples/inst/include/testExamples/stack.hpp | 0cc6f2805af7d99e886aedaf0074b973cd1edada | [] | no_license | eddelbuettel/RcppR6 | 6249a5b615b32b5cba4cffaa34b1d5df7b3874c1 | fa383f17fc79ee3d6f03ba08b7f80fc2d743b121 | refs/heads/master | 2021-01-24T22:02:51.763570 | 2015-06-03T13:35:51 | 2015-06-03T13:35:51 | 36,805,780 | 2 | 0 | null | 2015-06-03T13:34:19 | 2015-06-03T13:34:18 | null | UTF-8 | C++ | false | false | 1,641 | hpp | stack.hpp | #ifndef _TESTEXAMPLES_STACK_HPP_
#define _TESTEXAMPLES_STACK_HPP_
#include <stack>
#include <R.h> // NA_INTEGER
namespace examples {
// We're going to wrap std::stack. There's pretty much no need to do
// this in this way (simply copying elements would be fine). This is
// not yet templated on type, but that's com... |
9ac77153aa46b660e2f8333ad0f04505e86b1c58 | 88d9c9fce0294e5bba5ad2ae758d0de4d620c857 | /LightDrape/MeshLoader.h | 10e45a2610c954330859aaa0a4d85b15c4737725 | [] | no_license | CaiHaozhong/LightDrape | 7f002e712048d5bb76bf5f21ba7d9fc7b8f79634 | e03f8fd9cf8c196107bd5ad08ef34e4703247ad4 | refs/heads/master | 2020-06-11T18:27:13.469540 | 2019-01-26T09:39:02 | 2019-01-26T09:39:02 | 75,632,760 | 12 | 2 | null | null | null | null | GB18030 | C++ | false | false | 2,007 | h | MeshLoader.h | #pragma once
#include "Common.h"
#include <string>
#include <vector>
#include <QObject>
#include <queue>
#include <mutex>
class Human;
S_PTR(Human);
class Garment;
S_PTR(Garment);
class Mesh;
S_PTR(Mesh);
/* 用于加载人体模型和衣服模型, 异步进行,提供回调,回调方法在QT主线程中执行 */
class MeshLoader : public QObject
{
public:
/* 回调 */
class MeshLoade... |
8c093bec47a3be906742952add3460c7812833b9 | 2aacb12aecd80279a8e94951e5de305b54b7114c | /app_client/gameclient.h | 1f143b9d92d0371e5c26ee5983a16e023976a7b8 | [] | no_license | kasprus/zpr_game | a4caf483245c90c91badadd1d399ae81b32390fb | 288c30374bb76176108238522e3ce3068ffe1e68 | refs/heads/master | 2020-03-12T08:16:16.329824 | 2018-06-06T21:32:04 | 2018-06-06T21:32:04 | 130,523,991 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,560 | h | gameclient.h | #ifndef GAMECLIENT_H
#define GAMECLIENT_H
#include <memory>
#include <vector>
#include <QObject>
#include <QtNetwork>
#include <QTcpSocket>
#include <QDebug>
#include <QByteArray>
#include <QString>
#include "point.h"
#include "message.h"
#include "controller.h"
/**
* @brief This class provides the implementation o... |
ff68e0a511954ce28050c7c8a037b4b1ffc63579 | b1f65257d3bced6705f46af8f42fc8961c73eb61 | /Tutorial6/task2_value.cpp | 0c24eeb82f344ad1ed61c3ae90f2ae9dc9d44161 | [] | no_license | paulavillafulton/cpp-course | 5ae281e6a3fd378df5c00837b0b08b80c8693399 | 170e9f86486a5753904201e0538cda9e786d3ec1 | refs/heads/master | 2022-11-18T07:21:23.490873 | 2020-07-20T07:01:11 | 2020-07-20T07:01:11 | 281,039,316 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 625 | cpp | task2_value.cpp | // Exercise 6
// Task2
// by value
#include <iostream>
using namespace std;
struct swapper
{
int value1, value2;
};
//function declaration
struct swapper swap(int, int);
main()
{
swapper abswapper;
int a = 10, b = 12;
cout << "Before swapping:\n";
cout << a <<" "<< b << "\n";
abswapper = sw... |
db39649dc93a69cd6002218e9634300a5d2e9cd7 | bdef0f350580319499630233fb0a53c7dc96e846 | /source/terminal/serial.cxx | b90bb86cb5f4899a22ed8d89cdf405afbc9feffc | [] | no_license | numberZero/purple-horse-system | 0a4a779c708e75acee15a3206ccdb240ab23e2b2 | 4ade6bdf95d335a44d52a7f879972305d8210d75 | refs/heads/master | 2023-02-05T12:17:04.913981 | 2023-01-29T21:42:16 | 2023-01-29T21:42:38 | 108,907,063 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,530 | cxx | serial.cxx | #include "serial.hxx"
#include "misc.h"
#include "hardware/port.h"
enum class SerialConsole::Port {
Data = 0, // DLAB=0
InterruptEnable = 1, // DLAB=0
DeviceControl = 2,
LineControl = 3,
ModemControl = 4,
LineStatus = 5,
ModemStatus = 6,
Scratch = 7,
DivisorLo = 0, // DLAB=1
DivisorHi = 1, // DLAB=1
};
inl... |
2959e7fea5ec63e0cec5f9abdad7e055fb086c9f | 7bf98c9e2a8bb2e42274291d17a4d4607968f194 | /main.cpp | 0b5162e331c623e9351efd9e43eb50d80c555ca4 | [] | no_license | XueQinliang/frog_jump | 0939ac4ede724505f0aaef039d8b0b558c5bfb7d | ea8db013c502a5e905a6df68236647cb1f84cd5a | refs/heads/master | 2020-03-23T02:06:37.539296 | 2018-07-14T15:23:24 | 2018-07-14T15:23:24 | 140,956,427 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 670 | cpp | main.cpp | #include <iostream>
#include <stdio.h>
#include <time.h>
#include "frogBFSsolve.h"
#include "frogDFSsolve.h"
using namespace std;
int main(int argc, char *argv[])
{ int num;
cout<<"请输入青蛙总数:";
cin>>num;
int state[num+1];//总数加1表示青蛙数和石头数总和
for(int i=0;i<num+1;i++){
state[i]=i-num/2;
}... |
ea5970d53736e713dddf9b2061630e6148e7ea38 | 2af943fbfff74744b29e4a899a6e62e19dc63256 | /CUDA-ITK/Examples/Convolution3x3/main.cpp | b15c7ab4a6bc14ff89bd71369e2bf567c74225ec | [] | no_license | lheckemann/namic-sandbox | c308ec3ebb80021020f98cf06ee4c3e62f125ad9 | 0c7307061f58c9d915ae678b7a453876466d8bf8 | refs/heads/master | 2021-08-24T12:40:01.331229 | 2014-02-07T21:59:29 | 2014-02-07T21:59:29 | 113,701,721 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,730 | cpp | main.cpp |
#include <stdio.h>
#include "ImageUtils.h"
// From CUDA
#include "driver_types.h"
#include "cuda_runtime_api.h"
#ifdef WIN32
#include <conio.h>
#include "SimpleCudaGLWindow.h"
#else
#include <stdlib.h> // for free
#endif
extern "C" cudaError_t Convolution3x3(unsigned char * src, unsigned char * dest, int width, ... |
b338511f12cd3c1c1f8577074a0902d412cd8044 | 3adef134af0da3b55f11fa3f8dc80cfc4e8c8fc3 | /implement_trie.cpp | e8825b897885fbb522ef4dc534e38f628e43ae4b | [] | no_license | starmap0312/leetcode | fb402525050ea0cee5e663165d306d9c4cbaafdf | 9d99ad4de20f36bc511c0c141b75b2515d04cc38 | refs/heads/master | 2021-01-04T14:22:04.566212 | 2020-11-10T03:05:08 | 2020-11-10T03:05:08 | 39,904,796 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,888 | cpp | implement_trie.cpp | /* - a trie supports operations such as insert(word), search(word), startsWith(prefix)
*/
#include <iostream>
#include <vector>
using namespace std;
class TrieNode {
public:
// Initialize your data structure here.
TrieNode() {
for (int i = 0; i < 26; i++)
children[i] = NULL;
isWo... |
532e0776eec062325d7fc7e27355246f36aebe60 | 07f1f704c24225962a36596849669a6dd05f1189 | /guyTest.cpp | 31696b11ad23f5a9d400829b613a5ddcac062b7e | [] | no_license | JumpingNinja/GameEngine | ec0175614de65622af0486bd0b80168a79ec887f | 799f8cd99ca5afff0224cc75a0a944b1ed31bddb | refs/heads/master | 2021-01-01T06:39:17.862403 | 2012-03-17T17:47:29 | 2012-03-17T17:47:29 | 3,291,279 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,495 | cpp | guyTest.cpp | //
// guyTest.cpp
// GameEngine
//
// Created by Edu San Martin Morote on 04/02/12.
// Copyright 2012 Posva Games. All rights reserved.
//
#include "guyTest.h"
#include "Game.h"
#include <iostream>
#include <time.h>
#include <cmath>
float RandOne()
{
if (rand()%2)
return 1.f;
else
return -1.f;
}
float GetA... |
eb21827ccbb8e28de2d57ce66c32f8ff319ee853 | e4b96695bc6a6e64b50ed25a643f307cacef4cf8 | /load/load_strategy.h | fb82fc5bcd6b7c116ef45c06d3e721a9c8027f36 | [] | no_license | MexicanMan/Carcass-Visualizer | eb3dd823e3f1e05fa2fb17852e3e31775b7a3fbb | 554c9e33a3f781ab4b9cb3927fe8a0f38d4f7a69 | refs/heads/master | 2020-08-02T23:20:06.136254 | 2019-09-28T19:10:09 | 2019-09-28T19:10:09 | 211,542,304 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 307 | h | load_strategy.h | #ifndef LOAD_STRATEGY_H
#define LOAD_STRATEGY_H
#include "objects/base_object.h"
#include "model/model.h"
#include "errors.h"
class LoadStrategy
{
public:
LoadStrategy() { }
virtual ~LoadStrategy() { }
virtual int Load(const char *filename, BaseModel &mdl) = 0;
};
#endif // LOAD_STRATEGY_H
|
1152052cfa3840dda221d2f4ad9f38ad01beeeed | a0d7c85bf7639c6b6598b1b0ccb985658fc65769 | /src/dynamic.cpp | ccd2da38ef12970002d8979c9e6906fe843fffc1 | [] | no_license | clbx/CS322 | 58e929282550b2f7a9ddb41a307307a8a37c535d | beb1f8823111a8f173254ddbb5b26070abb4d864 | refs/heads/master | 2020-12-14T01:04:53.697724 | 2020-04-15T15:31:29 | 2020-04-15T15:31:29 | 234,586,401 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,971 | cpp | dynamic.cpp | #include "dynamic.hpp"
int dynamic::fibonacci(int n){
if(n == 0){
return 0;
}
int prevprev = 0;
int prev = 1;
int next;
for(int i = 2; i < n; i++){
next = prev + prevprev;
prevprev = prev;
prev = next;
}
return prev + prevprev;
}
int dynamic::coins(int* ... |
ad331060e740ef18f2ac49f7979f41e746afc95b | 6edaf7e78c43f822c830043aec786b2be47dd73e | /cpp/acm/The_winter_holiday/5.cpp | 96db6634580b20f085de22d1b4b643cfd8950bb0 | [] | no_license | HBat11233/hbat_code | 8d2c8bc0e44775fafa3cb2820e8388e8d3702bc6 | 2f5de84498660863fd2816f0f8d49442689f88b8 | refs/heads/master | 2021-07-20T03:54:20.961518 | 2018-10-11T08:24:50 | 2018-10-11T08:24:50 | 112,096,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,085 | cpp | 5.cpp | //aoj0121
#include <iostream>
#include <map>
#include <string>
#include <queue>
using namespace std;
string str="99999999";
map<string,int>dp;
int d[4]={-1,1,-4,4};
inline void bfs()
{
queue<string>que;
que.push("01234567");
map<string,bool>ps;
ps["01234567"]=true;
while(!que.empty())
{
... |
5891112dc5a3401a20fb9db9ce6e45c581c46405 | c299eef539639465b1ab881e6f8624d66692462c | /Practica/RecurMeta.cpp | 16d7e31e74f6ff665534dc9f996f2f8dcf8f9d25 | [] | no_license | iMawe/ADA | 2f24c3ad992d4a268b3e834df983f7c60dd56c32 | a64de4306b9f47ddaf1076f89ff69724c4fa068f | refs/heads/master | 2020-05-05T01:41:20.424550 | 2019-07-11T14:29:54 | 2019-07-11T14:29:54 | 179,611,479 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 146 | cpp | RecurMeta.cpp | #include<iostream>
#include<vector>
#include<algorithm>
#include<stdlib.h>
#include<time.h>
using namespace std;
int main(){
return 0;
} |
edc5a9e775f8f5da23dd6d1632e51562ac372e31 | a10b80d21a858976476863d53aa50b68f4d84f0d | /5335/08/map/brain.cc | 0991751f66c035bb28527694319bd5e3f5c182c4 | [] | no_license | NatTuck/scratch-2020-09 | ab89b338518c4d5544a6570665ea6697a8f28fb2 | 62766ee7d1c80f7882d5030dbdeb68a70fea8c45 | refs/heads/master | 2023-01-24T01:16:44.645647 | 2020-12-07T20:47:33 | 2020-12-07T20:47:33 | 279,927,891 | 3 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,669 | cc | brain.cc |
#include <iostream>
#include <sstream>
#include <string>
#include <thread>
#include <map>
#include <utility>
#include <deque>
#include <vector>
#include <math.h>
#include "viz.hh"
using namespace std;
typedef pair<long,long> posn;
map<posn, long> grid;
deque<posn> tasks;
// Start at 0,0
// Traverse the grid out t... |
eb7c63ae00084f97f78ba59c2f1edb610350bff4 | d92fc55174ac8424bfae07d00fa27224c7862aa6 | /interface/pfParticleProducerVector.h | 4be55023bc928340d5085e7206e6a35e1246aa75 | [
"CC0-1.0"
] | permissive | mverwe/diall | cfc5bf83adce405e84a20afc55641ea31c33e9cc | 22c110acc2dd71684dd1db3e6c384559f81cf513 | refs/heads/master | 2020-05-21T13:36:21.742391 | 2017-04-27T12:03:50 | 2017-04-27T12:03:50 | 47,253,784 | 0 | 2 | null | 2016-01-29T14:21:32 | 2015-12-02T10:24:18 | C++ | UTF-8 | C++ | false | false | 1,275 | h | pfParticleProducerVector.h | #ifndef pfParticleProducerVector_h
#define pfParticleProducerVector_h
//
// particle flow candidate producer
//
#include <TNamed.h>
#include <TChain.h>
#include <TString.h>
#include <TClonesArray.h>
#include "UserCode/diall/interface/inputBase.h"
#include <UserCode/diall/interface/pfParticle.h>
#include <UserCode/di... |
60642c3ac4f3b08d436a2fbf475ef006f11aae73 | 5e4cea5545a1468c29b862ac8f848d6c2d1854d1 | /mutex/mutex.hpp | a227503c272915758b5bbce28f8aaf8acbdf7a93 | [] | no_license | boatboatboatboat/webserv-basic-async | 8daa85c3f3236e03f6d6b416ec5700af867f36f4 | 7f569691f9a185f576246f951dd50b4d5ff2d092 | refs/heads/master | 2023-01-06T17:36:32.199861 | 2020-09-28T01:06:03 | 2020-09-28T01:06:03 | 275,646,790 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,931 | hpp | mutex.hpp | //
// Created by boat on 6/27/20.
//
#ifndef ASYNCTEST2_MUTEX_HPP
#define ASYNCTEST2_MUTEX_HPP
#include <pthread.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
#include <zconf.h>
namespace mutex {
template <typename T>
class Mutex;
template <typename T>
class MutexGuard {
public:
MutexGuard... |
496f9e28ad97d8e532a1847c3471f0686e95c3a2 | b16e2f8cc94df8320f9caf8c8592fa21b1f7c413 | /HDUOJ/1074/dp.cpp | b15c93bc3ea8cd39e589b13630a8b8c0dd581042 | [
"MIT"
] | permissive | codgician/Competitive-Programming | 000dfafea0575b773b0a10502f5128d2088f3398 | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | refs/heads/master | 2022-06-13T04:59:52.322037 | 2020-04-29T06:38:59 | 2020-04-29T06:38:59 | 104,017,512 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,679 | cpp | dp.cpp | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cstring>
#include <iomanip>
#include <climits>
#include <stack>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <functional>
#include <iterator>
#include <cassert>
using name... |
11181fe9118a6f0bf17d75bcccdcd5c5a8c8ec5e | 670d8634e21ca87fcc0e2a8fc3a038cc83f63577 | /modern_warfare/core/overlay/renderer/renderer.cpp | 68af1597352626291e8d25facee70f7890b5d1dc | [] | no_license | phone5001/external-warzone-cheat | 57ebe52a2ae2d5a81fd4e4ac4f1c6ebfd92cda95 | 0e0d5a4b966fff29a0569e6292600a522922effc | refs/heads/master | 2023-07-08T13:08:52.929217 | 2021-08-10T01:23:12 | 2021-08-10T01:23:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 551 | cpp | renderer.cpp | #include "renderer.h"
#include <iostream>
namespace renderer {
bool init( ) {
if (!internal::init()) {
std::cout << "[-] renderer internal init failed" << std::endl;
return false;
}
if (!colors::init()) {
std::cout << "[-] renderer colors init failed" << std::endl;
return false;
}
if (!fo... |
75889f6b923663ba2de1e877da49c8a9343fa8c7 | 64bea669730792b3b37fcbaf08eaa17cf20ac5a5 | /src/click/curveball/flowtable.hh | 84ec29a1d5650df508ca8510277ba5e46940c966 | [
"Apache-2.0"
] | permissive | lapd-c/curveball | f23756c3bdc249be56aac19d518c73b6448aeee1 | aef75fa97136967c96e087fd02963662ae3f6707 | refs/heads/master | 2021-07-25T16:17:26.710627 | 2017-11-07T01:32:08 | 2017-11-07T01:32:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,101 | hh | flowtable.hh | /*
* This material is based upon work supported by the Defense Advanced
* Research Projects Agency under Contract No. N66001-11-C-4017.
*
* Copyright 2014 - Raytheon BBN Technologies Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... |
013f602f6bf2978d21040c3522b8108760702f51 | 7b49317a78fccd0d6752c918bfca89d8bf6f34bf | /src/includes.cpp | d800953b96370f8c87d768a3f19bccb9f2dd3c9d | [] | no_license | mecseid/ODC_HOUGH | a6de5158b2e5a5ff1cd039a2a3d805137be11583 | 63ac06d07afe34b4a96b0beed2f013808ae2795a | refs/heads/master | 2020-04-28T09:07:54.206774 | 2015-05-19T15:31:13 | 2015-05-19T15:31:13 | 35,782,268 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,926 | cpp | includes.cpp | #include "includes.h"
#include <iostream>
cv::Mat strelDisk34()
{
return (cv::Mat_<unsigned char>(5, 5) << 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
}
cv::Mat strelDisk64()
{
return (cv::Mat_<unsigned char>(11, 11) << 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0... |
8d18bb048bd112e6ce440f0fa1bc1231a6d4d1ab | e7a035d9862b02668d3c1ceae5e757394488a645 | /mainwidget.h | e4868e7e498d9a31d9f36d8aa0b643a6fde4047d | [] | no_license | dopplix/qflux-starter | 5638ee862c0744db4748f24274c5715f76983a94 | 02279c256d9d598ed66f151b6281e451e4dfafcd | refs/heads/master | 2022-11-04T21:24:46.977364 | 2020-07-31T09:03:09 | 2020-07-31T09:03:09 | 283,719,329 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 393 | h | mainwidget.h | #ifndef MAINWIDGET_H
#define MAINWIDGET_H
#include <QWidget>
#include "qflux/connectedwidget.h"
#include "actionTypes.h"
//class MainWidget : public QWidget{
class MainWidget : public ConnectedWidget{
Q_OBJECT
public:
MainWidget(QWidget *parent = nullptr);
~MainWidget() override;
public slots:
void ... |
c47aacc895d14a5c0a625c103447e871a60703b5 | ded35d97e9abe34a44e4b0fce9e7ddc0ff35ae87 | /FruitMachineHopper/ArduinoCcTalk/ArduinoCcTalk/cctcom.ino | 24cf108458052ff1d3773f02c692cbd988318b50 | [] | no_license | playfultechnology/arduino-fruitmachine | 4c05ffbaf2ebdd0d36386855b4a4ceac1cd44798 | b901302a96107d13f8d0314730bc0e86c48e2676 | refs/heads/master | 2023-02-21T21:54:40.921685 | 2023-02-16T17:09:33 | 2023-02-16T17:09:33 | 155,291,758 | 10 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 6,254 | ino | cctcom.ino | #include "Arduino.h"
#include "cctcom.h"
#include "headers.h"
//
void cctsend(unsigned char command, unsigned char dest, unsigned char msglength, unsigned char D00,unsigned char D01,unsigned char D02,unsigned char D03, unsigned char D04,unsigned char D05,unsigned char D06,unsigned char D07) {
unsigned char temp = 0... |
a1854bea6387efa79c2a2411462f2c36343187be | 04630c5168ff26a780b2c21793606a42cf9e46fe | /Baekjoon_OJ/그래프와 BFS(기초)/1261_알고스팟.cpp | f216bdb018b5ef466677ec746cc029a65482fa6f | [] | no_license | heeguk/Algorithm | 4863d653bc0dec84e2cb0e13c1eb5164b575bd86 | c7b8b347c2b497271037e79d0ed9b8f94d5ee7e9 | refs/heads/master | 2020-04-27T01:28:23.163518 | 2019-08-23T06:08:32 | 2019-08-23T06:08:32 | 173,901,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,023 | cpp | 1261_알고스팟.cpp | #include <iostream>
#include <cstring>
#include <queue>
int map[100][100];
int dp[100][100];
using namespace std;
int W, H;
int dx[4] = { 1, -1, 0, 0 };
int dy[4] = { 0, 0, 1, -1 };
void bfs(int sy, int sx) {
memset(dp, -1, sizeof(dp));
deque<pair<int, int>> q;
q.push_front(make_pair(sy, sx));
dp[sy][sx] = 0;
... |
c582090d65ce3a3352141f3da5d2f70e5086cbe6 | f81124e4a52878ceeb3e4b85afca44431ce68af2 | /re20_2/processor20/30/phi | e50fec527a5f4a62c288051bd054b577d327ecf8 | [] | no_license | chaseguy15/coe-of2 | 7f47a72987638e60fd7491ee1310ee6a153a5c10 | dc09e8d5f172489eaa32610e08e1ee7fc665068c | refs/heads/master | 2023-03-29T16:59:14.421456 | 2021-04-06T23:26:52 | 2021-04-06T23:26:52 | 355,040,336 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,839 | phi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
2a5c6f59940fab1e8ad27900a2abe56fbe6736fc | 575ca59de0445406bae1cbfc269ca78aabd2b880 | /MyProfiling/MyProfiling/MyProfiling.h | 44edbb24ccf72062eb4e60d8934b617c823c5993 | [] | no_license | kwansu/MFC_Practice | 5a1bdeaea86a0452be306cebf4747d6c44e361d8 | 9562c6a9b74b4e0f6ec85dcd9df626083e27ae1f | refs/heads/main | 2023-04-28T01:31:55.699285 | 2021-05-16T03:30:32 | 2021-05-16T03:30:32 | 367,356,635 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 930 | h | MyProfiling.h | #pragma once
#include <Windows.h>
//사용시 파생클래스를 만든뒤, ShowCheckNode를 재정의해서 사용.
class CMyProfiling
{
protected:
struct CheckNode
{
LARGE_INTEGER tInsert, tInEnd, tInResult;
LPTSTR strName;
inline void SetTime()
{
tInResult.QuadPart = tInEnd.QuadPart - tInsert.QuadPart;
}
};
CheckNode m_... |
ad1cb894741cb30221146471186e6bf0aac3ad1c | f42778a539527e2756c6dd9f5b02f8bf1a9fc903 | /CodeRepo/19.7.22/19.7.22 c4.cpp | ff3f3d2b69e3984d48510f643d8d48cb88627432 | [] | no_license | SingleZombie/ICPC-Template | 40acb5b11b739806ec9f3cf6b6e67d60c0be6ce4 | 250c7ca9e351193eb9463128017d31de2d42a32a | refs/heads/master | 2020-05-07T17:15:13.051347 | 2019-07-23T02:38:52 | 2019-07-23T02:38:52 | 180,721,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,391 | cpp | 19.7.22 c4.cpp | //#include <iostream>
//#include <vector>
//#include <cstdio>
//#include <algorithm>
//#include <cmath>
//#include <cstdlib>
//#include <string>
//#include <cstring>
//#include <queue>
//#include <stack>
//#include <functional>
//#include <map>
//#include <set>
//#include <bitset>
//#include <ctime>
//#include <complex... |
1ff8112372e343081dcba30b7f709acaefb51b93 | cdf92aa3a8a49dc044306c125356cca26910dbda | /src4/static/SDK1/IfSearch/SettingItem.cpp | 7750bdb70c910e8eed704fee358dbbb13780f309 | [
"MIT"
] | permissive | eirTony/INDI1 | b7c5d2ba0922a509b32d9d411938ecdc0f725109 | 07fe9eff4fb88c6c2d636c94267ea8734d295223 | refs/heads/master | 2020-01-23T21:22:49.833055 | 2016-11-26T07:43:06 | 2016-11-26T07:43:06 | 74,568,244 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,388 | cpp | SettingItem.cpp | /** @file SettingItem.cpp
* Definition of SettingItem class for DDT core library
*
* @author Dynamic DeZigns Technology
*
*/
#include "iSettings.h"
#include <QTimer>
SettingItem::SettingItem(Settings * appSettings, QTreeWidget * Tree, Setting * Variant)
: settings(appSettings), tree(Tree), variant(Variant), proper... |
5ede39c65f238e19a4f922fbff7c8873feb74f9a | 3f53de353c63246005d34ddd640469b9ae6dbf0f | /C++/The-N-th-Element.cpp | 24a7b4c6ea5a19ea7ec6e32d1fa14d96a2992f2d | [] | no_license | Kaiyeh/Programing | 5e0a40db38931c4580e0285a97840f44f2371645 | 5803543a6922610d991bd9a0c2f701794b39338e | refs/heads/master | 2021-01-10T15:57:03.385597 | 2016-04-06T04:33:58 | 2016-04-06T04:33:58 | 54,002,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 358 | cpp | The-N-th-Element.cpp | #include<iostream>
int main(){
using namespace std;
int M,i;
long long p,q,r,x,y,z,N;
long long be1,af1,be2,af2,cr1,cr2;
cin >> M;
while(--M){
cin >> p >> q >> r >> x >> y >> z >> N;
be1=0;
be2=0
af1=N+1;
af2=N+1;
cr1=N-1/2;
cr2=N-1/2;
///cr1+cr2==N-3&&(cr1==0||cr2==0||cr1==N||cr2==N)
... |
c351f2cc67107e7be66d926ad8ac6db687928fa3 | 6231d792560fadc32a11a2574618a540f1c01704 | /Engine/Material.cpp | cb45aebbdb8e228be7533c3c671b7ab91d783c10 | [] | no_license | JackMinn/Custom-Engine | e350228c17777217ff40ce8b8c360b7b6147e575 | 5a2f57a76617490bb8f5cc0bb20d06d7c978063e | refs/heads/master | 2020-03-31T00:25:57.692055 | 2019-02-20T15:21:58 | 2019-02-20T15:21:58 | 151,739,392 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,869 | cpp | Material.cpp | #include "stdafx.h"
#include "Material.h"
Material::~Material()
{
SafeRelease(m_globalsCBuffer);
free(m_materialPropertyBlock);
}
bool Material::Initialize()
{
HRESULT result;
uint32_t cbSize = m_shader->m_cbSize;
if (cbSize > 0)
{
result = ConstantBuffer::Create(m_device, &m_globalsCBuffer, cbSize);
if ... |
1bffd162407b6f8abbf481845562f699ee97b844 | b36afc58bf5cf42b104a3d997c8514d09d0ae755 | /microaudiorender/app/src/main/cpp/UdpSender.cpp | 927b0a21c814c21df39e91855e5c4ab939b6cf07 | [] | no_license | liuchi2016/six | c2e541b226a30ba0635402b4831251b46ac5f0a0 | f3dadf188f26c467b6dae986a44648ad0fc27c5a | refs/heads/master | 2021-08-22T03:53:44.785406 | 2017-11-29T06:25:41 | 2017-11-29T06:25:41 | 104,585,579 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,162 | cpp | UdpSender.cpp | #include "UdpSender.h"
#include <common/stringexcept.h>
void UdpSender::Initialize(short m_port)
{
port = m_port;
Create();
}
void UdpSender::Send(std::string message, std::string sIp, int iSendPort)
{
int addr_len = sizeof(struct sockaddr);
struct sockaddr_in remote;
remote.sin_family = AF_INET;
remot... |
d96c974422139ae339d1e50a3d3a4cccdbcac9e3 | 77cab51d8312710b22907c787b0357aef46a710a | /Math/ExcelNumbers.cpp | bca0c2dbbcd63017013d4fb6a720405d41e1825e | [] | no_license | rockieCao/LeetCodeSolution | 994b82bd62b29953fa888a8bdf6b8932093971a7 | 0a4279a78669fd0c8c56a3ea0da7452f6494f8cb | refs/heads/master | 2021-01-19T02:54:36.990712 | 2016-09-26T15:55:43 | 2016-09-26T15:55:43 | 47,871,071 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 309 | cpp | ExcelNumbers.cpp | #include <iostream>
#include <string>
using namespace std;
//A->1,Z->26,AA->27,BA->53
class Solution {
public:
int titleToNumber(string s) {
int ret=0, n=s.length();
for(int i=0; i<n; ++i) {
int x=s[i]-'A';
ret=ret*26+x+1;
}
return ret;
}
};
|
b73fca8af34c7c62cbc0470ca98b2f2ac8dc6b02 | 85c3e18522388fc6d405d3fe504b787cd97937aa | /Editor/VEX/XTools/old.fontgen/Source/BFGGlyphData.cpp | 7509028a4d43e647729460547c97b0fca0f4de24 | [
"MIT",
"MS-PL"
] | permissive | blockspacer/FrankE | 2d454f77a15f02d8ac681c68730b20d189af131f | 72faca02759b54aaec842831f3c7a051e7cf5335 | refs/heads/master | 2021-05-21T10:01:23.650983 | 2019-11-12T17:44:54 | 2019-11-12T17:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 141 | cpp | BFGGlyphData.cpp | // BFG license goes here
#include <map>
#include <string>
using std::map;
using std::string;
#include "BFGGlyphData.h"
namespace BFG
{
} |
f285d41f138164f93d820f8329211b4418662f78 | 884056b6a120b2a4c1c1202a4c69b07f59aecc36 | /java projects/jtop/jtopas/versions.alt/seeded/v3/src/de/susebox/java/util/PaxHeaders.74544/Token.cpp | 48e0381eab97f0ce585f5cd6572f6d97c2ddc848 | [
"MIT"
] | permissive | NazaninBayati/SMBFL | a48b16dbe2577a3324209e026c1b2bf53ee52f55 | 999c4bca166a32571e9f0b1ad99085a5d48550eb | refs/heads/master | 2021-07-17T08:52:42.709856 | 2020-09-07T12:36:11 | 2020-09-07T12:36:11 | 204,252,009 | 3 | 0 | MIT | 2020-01-31T18:22:23 | 2019-08-25T05:47:52 | Java | UTF-8 | C++ | false | false | 58 | cpp | Token.cpp | 30 atime=1476297918.949714333
28 ctime=1476297918.9585984
|
b40165ba7933a9281a18cca53e76b4bc1d2ed5cc | 9121ebac4a954507758d494076c832c64f274963 | /LittlePoney.cpp | 59e177990ca358c60b1270687fc0d974de9114eb | [] | no_license | weixin1994/rush1 | a8080f190fda4b0a21d4fa6920f090a5c4a11b39 | 7671897a2da72af2bfd34df67aae0beede401e7e | refs/heads/master | 2020-03-22T14:25:03.428151 | 2018-07-08T15:23:41 | 2018-07-08T15:23:41 | 140,177,858 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 186 | cpp | LittlePoney.cpp | #include "LittlePoney.h"
LittlePoney::LittlePoney() : Toy("gay pony", TYPE_LITTLEPONEY)
{
}
void LittlePoney::isTaken()
{
Toy::isTaken();
std::cout << "yo man" << std::endl;
}
|
12eeb00d5d62c7d4928ac536b295fb8024e28af0 | b13c1318975a3531647b02c550f3199d48b895fa | /ch14/ex2/wine.h | 22093df54bf58b4328aebe78706689d763fd7195 | [] | no_license | tymekm/cpp_primerPlus | 923f0a26804c654072e3994c4bf110bda8b4d3d8 | f7d511f509ea73b394577b71959db406a0154ef7 | refs/heads/master | 2020-04-06T19:03:28.823776 | 2018-11-23T16:02:48 | 2018-11-23T16:02:48 | 157,723,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,062 | h | wine.h | #include <string>
#include <iostream>
#include <valarray>
typedef std::valarray<int> ArrayInt;
template<typename T1, typename T2>
class Pair
{
private:
T1 years;
T2 bottles;
public:
Pair(const int y, const int yr[], const int bt[])
:years(yr, y), bottles(bt, y){}
Pair(const int y)
:years(y), bottles(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.