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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bd94da38142ee47e064bd44c90b64b309961f799 | 527739ed800e3234136b3284838c81334b751b44 | /include/RED4ext/Types/generated/game/ScriptStatusEffectListener.hpp | 11d9e6b97db627ed4ca5eb768aa381a0bfa8edca | [
"MIT"
] | permissive | 0xSombra/RED4ext.SDK | 79ed912e5b628ef28efbf92d5bb257b195bfc821 | 218b411991ed0b7cb7acd5efdddd784f31c66f20 | refs/heads/master | 2023-07-02T11:03:45.732337 | 2021-04-15T16:38:19 | 2021-04-15T16:38:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 678 | hpp | ScriptStatusEffectListener.hpp | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Types/generated/game/IStatusEffectListener.hpp>
namespace RED4ext
{
namespace game {
struct ScriptStatusEffectListener : game::IStatusEffectListene... |
74ef2d9c6b9938c78f7cdf219c26b37c05481d8d | 0115b2bf82596f26a9ca09c2a017f3bdf9c4aad2 | /rgbLed/rgbLed.ino | 2a2b3514aa9abd4921083fbd52c77f4d76f3e861 | [] | no_license | kadu/TheGarageSandbox | 6d28f3b87a6c5e7e8bcffafe1564a97045473be0 | 1036bf3f6734ff0c9a15d455d131c0e548105a4f | refs/heads/master | 2020-12-26T02:51:51.493677 | 2014-10-28T13:24:06 | 2014-10-28T13:24:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,170 | ino | rgbLed.ino | #include <SPI.h>
#include <Ethernet.h>
#include "restArdueasy.h"
// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,1,177);
EthernetServer server(80);
const int R_PIN = 3... |
f1ea4df4626b1dd084fc0e47258fcdb03de63c09 | 5644fb2186bbc42307fe805851ace3bb1bb150f3 | /ApproximateComputing/gem5/ApproximateHardware/Multipliers/Exact/Multiplier32_32Exact.cpp | 7f6e0f79b20ac828b9380fdf76ad538cdf615c15 | [] | no_license | embeddedlabsiu/adaptive-approximate-computing | e5d4339bf917f98c91520d819a8e7a657db2213b | d0ac88595667b3e7160bc2351f823972e9a7461e | refs/heads/master | 2022-09-29T12:34:10.046149 | 2020-05-30T23:16:01 | 2020-05-30T23:16:01 | 263,443,409 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 212,161 | cpp | Multiplier32_32Exact.cpp | #include<stdlib.h>
#include<stdio.h>
#include<stdint.h>
#include<time.h>
#include "ExactMultiplierLibrary.h"
#include "../Multipliers.h"
//#define LogAccurateMultiplier32 ( 1 )
#if defined ( LogAccurateMultiplier32 )
#include "LoggerFactory.h"
#include "LoggingHandler.h"
#endif
static void multiplier32_32_accurat... |
ebe645d0b9416c466620f81c606ac04fdba82194 | 14423056566a23158de403b2eb8e7befe86a4739 | /GameServer/src/Object/Creature.h | 5d7e6101e5a71798522c9d20c8fec4c222160104 | [] | no_license | Aincent/ChatShow | 9d9024e5a7924974fa4270a9c23ab8730fa04d33 | c1e922132105f80ed552fcfb4baa9404e6fcbdfc | refs/heads/master | 2021-01-21T08:51:45.712035 | 2017-10-17T12:20:20 | 2017-10-17T12:20:20 | 91,642,947 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,259 | h | Creature.h | /*
* Creature.h
*
* Created on: Jun 27, 2017
* Author: root
*/
#ifndef CREATURE_H_
#define CREATURE_H_
#include "Object.h"
#include "define.h"
#include "Smart_Ptr.h"
#include "EventSet/EventSet.h"
#include "StateMgr.h"
using namespace std;
using namespace CommBaseOut;
//----------------------------------... |
74c1ceada80d61675c6e7baf45497d16841a7621 | 51635684d03e47ebad12b8872ff469b83f36aa52 | /kernel/sys/process.cpp | a849bdfcb524f779183f72eb29a4d6d88a704d65 | [
"Zlib",
"LicenseRef-scancode-public-domain"
] | permissive | zhmu/ananas | 8fb48ddfe3582f85ff39184fc7a3c58725fe731a | 30850c1639f03bccbfb2f2b03361792cc8fae52e | refs/heads/master | 2022-06-25T10:44:46.256604 | 2022-06-12T17:04:40 | 2022-06-12T17:04:40 | 30,108,381 | 59 | 8 | Zlib | 2021-09-26T17:30:30 | 2015-01-31T09:44:33 | C | UTF-8 | C++ | false | false | 1,065 | cpp | process.cpp | /*-
* SPDX-License-Identifier: Zlib
*
* Copyright (c) 2009-2018 Rink Springer <rink@rink.nu>
* For conditions of distribution and use, see LICENSE file
*/
#include "kernel/types.h"
#include <ananas/errno.h>
#include "kernel/result.h"
#include "kernel/process.h"
#include "syscall.h"
Result sys_getpid()
{
auto&... |
936336f5657d0f21da2a8b597b7d2eff285763ae | 548b41e86a003a9cfe21f717bf7afaa1af37a3bd | /src/nmea2000/src/test.cpp | 1528ef4272e5a21ee47c9d602af05eef10756f8e | [] | no_license | FeynH/nav_usv | e12d47b0cc3e9bb33b4db1596a5fa6fc3b4a893a | 2ce94b280a703020c94645322615344984634efb | refs/heads/master | 2022-04-08T10:33:12.736008 | 2020-02-08T11:06:48 | 2020-02-08T11:06:48 | 235,026,642 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,236 | cpp | test.cpp | #include <nmea2000/myfilter.hpp>
#include <nmea2000/geo_pos_conv.hpp>
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <ros/ros.h>
using namespace std;
geo_pos_conv _testgeo;
double GeshiChange(double Dufen)
{
int du=int(Dufen/100);
double fen=fmod(Dufen,100)/... |
7f53e984d6123bdde9a54186910b7b0663fe70ac | 3671c4da252437ad4db6c95aef9e62133c752aad | /Projects/pmvankerRpiTest/src/gpio.cpp | cb7a5dd1317b1c710bfd96d6e078fd971d8bf936 | [] | no_license | pmvanker/pmvankerPI | 09f9fbd65313186f155142a48b0671142de6e5d2 | d6612370ea94a673c75ed9d47e39335073ea01d7 | refs/heads/master | 2021-07-17T06:17:57.708776 | 2020-05-13T10:34:30 | 2020-05-13T10:34:30 | 144,412,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,265 | cpp | gpio.cpp | /*
* gpio.cpp
*
* Created on: 13-May-2020
* Author: pmvanker
*/
#include "gpio.h"
list<unsigned char> gpio_list = {2,3,4,14,15,17,18,27,22,23,24,10,9,25,11,8,7,0,1,5,6,12,13,19,16,26,20,21};
/**
* @param path The sysfs path of the file to be modified
* @param filename The file to be written to in that pa... |
ba086cfc3ee19f91a3188fe68fbc9ce96024d9a8 | a60e81b51935fb53c0900fecdadba55d86110afe | /tool/ImgSeg/ImgSeg/src/ImgCore.cpp | ebbd0c76ea90b15d6983bd2a774971b336d7078c | [] | no_license | FrankieZhen/Lookoop | fab6855f5660467f70dc5024d9aa38213ecf48a7 | 212f8b83d6ac22db1a777f980075d9e12ce521d2 | refs/heads/master | 2020-07-27T08:12:45.887814 | 2019-09-16T11:48:20 | 2019-09-16T11:48:20 | 209,021,915 | 1 | 0 | null | 2019-09-17T10:10:46 | 2019-09-17T10:10:46 | null | UTF-8 | C++ | false | false | 8,256 | cpp | ImgCore.cpp | // ImgCore.cc
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <iostream>
#include <string>
#include <vector>
#include <deque>
#include <cmath>
#include "../include/ImgCore.hpp"
#include "../include/FileTool.hpp"
using namespace cv;
using name... |
9919b2fd48f9ad9d80af9ad40699558fdba23892 | 973d723394437d646d0f27f6edd5c4860ee1fd63 | /MFCAddition/MFCAddition/ConfirmDlg.h | 679d611e99a3d4fa8ea49b048c9d087184adbddd | [] | no_license | 333mhz/learncpp | a4ffcb4f8baf140974776713b319e76e70075f06 | d2e875ff97b10d3a0c9da7f9aa0b6c389989cb9e | refs/heads/master | 2020-06-25T00:36:04.656244 | 2020-01-19T00:21:12 | 2020-01-19T00:21:12 | 199,141,405 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 365 | h | ConfirmDlg.h | #pragma once
// ConfirmDlg 对话框
class ConfirmDlg : public CDialogEx
{
DECLARE_DYNAMIC(ConfirmDlg)
public:
ConfirmDlg(CWnd* pParent = NULL); // 标准构造函数
virtual ~ConfirmDlg();
// 对话框数据
enum { IDD = IDD_CONFIRM_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESS... |
c808cf8e184dbe5c19a86a60967f7ddd12ce3b3e | 7b6b612f150fd39d339eaad7155c3857a4f2142c | /swea/15686.cpp | 219635e29c0dc31c0525db9eff22723bcc61bc67 | [] | no_license | suev7245/acmicpc | 8e8e68b60468a42058a9c78ed708226f9a09f532 | 69dc050a7c8fca273f274cfcc6a26d2bc9a502f3 | refs/heads/master | 2020-06-01T21:19:24.099893 | 2019-10-19T08:56:18 | 2019-10-19T08:56:18 | 190,930,695 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,016 | cpp | 15686.cpp | /*치킨 배달 - 1:55
1. vector<int> perchicken[13];
array<> 대신 []로 보기 편하게!
2. dfs로 m개 조합 뽑기.
void combi(int idx, int cnt){
if(cnt==m){
//처리하기.
return;
}
for(int i=idx; i<chinum; i++){ //selected에 선택된 애들 추가
selected.push_back(i);
comb(i + 1, cnt + 1);
selected.pop_back();... |
a0d6d82b3839535e637dfa4ff175d103692e12b0 | d4162fb94b7cde0482b115630a6d6cff00a79736 | /GUI/mainwindow.cc | 43de94f44e2a0e3b83eaa40963ee67a7b967086e | [] | no_license | shikevin/straights | e1e0b9ebbc87af659d926b30cb21e53b239db032 | ba01b92508183fb1c17ae08515c5d0ac5cc865dd | refs/heads/master | 2021-01-18T13:14:45.160653 | 2015-07-20T03:56:26 | 2015-07-20T03:56:26 | 37,504,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,562 | cc | mainwindow.cc | #include "mainwindow.h"
#include <iostream>
#include <gtkmm/box.h>
#include "Card.h"
#include <gtkmm/table.h>
#include "validate.h"
using namespace std;
MainWindow::MainWindow() {
tableView = new TableView(&deck);
handView = new PlayerHandView(&deck);
headerView = new HeaderView();
scoreView = new Sco... |
c2baf4a6a10e849f140e1257aafbbe48be570ebf | 62788124d3c9c8cc956fe402844c86357f54f431 | /Client/LibraryClient/User.hpp | 6441c71528af639237d568eab0b1af4befb8ef6b | [] | no_license | farzink/TCP-Library-C-asio | 8611e85d1d1748623751f2db0f159dc7824a7b6c | 23a3ada27806861c1e26b9edb1ee32d8b134e286 | refs/heads/master | 2021-04-12T12:26:26.077021 | 2018-03-21T18:37:44 | 2018-03-21T18:37:44 | 126,224,009 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 394 | hpp | User.hpp | #ifndef USER_H
#define USER_H
#include <string>
using namespace std;
class User {
public:
User(int, string, string, string);
int getId();
string getName();
string getAge();
string getEmail();
void setName(string name);
void setAge(string age);
void setEmail(string email);
User() {};
~User() {};
protected... |
22f0802128b934de36f07ae51dd7558f08f5e93a | b8462551e15ced9a83e771e0fee216e8018fc9ea | /Day167.cpp | 3ff9f5d19d72b2673882323657a44a54dafed374 | [] | no_license | Professor-Fabrizzio/Daily-Coding-Problem | 1a87f4b1b2fb84ab2859e698a89667803c973268 | 62e6643459e711fc0c3963e765e567283378b9fe | refs/heads/master | 2022-12-17T05:42:46.327650 | 2020-09-24T04:27:57 | 2020-09-24T04:27:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,076 | cpp | Day167.cpp | /**************************************************************************************************************************************
This problem was asked by Airbnb.
Given a list of words, find all pairs of unique indices such that the concatenation of the two words is a palindrome.
For example, given the list ["co... |
6d72f4907aa7a968cb8108ae75271ab71d73ff50 | 7c6f81ca4765ec2fe5d193ba3826f4584405cf6c | /code/Qt/mympvplayer/global.cpp | b09594a52cdd81de04f673ede53470ce099b9280 | [] | no_license | SunMoonStar2000/examples | a6dd6c630697b910081d01d103ec9a3cf9fe0a6b | 5a5045b63df765923d35bace18ae0b1dcefa5136 | refs/heads/master | 2022-11-26T00:46:43.346542 | 2020-07-31T06:06:16 | 2020-07-31T06:06:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 264 | cpp | global.cpp | #include "global.h"
#include "preferences.h"
#include <QApplication>
#include <QDebug>
Preferences * Global::pref = 0;
using namespace Global;
void Global::global_init()
{
pref = new Preferences();
}
void Global::global_end()
{
delete pref;
pref = 0;
}
|
9d7b1e50a9a5320df53183a5a30f44e0ae637175 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-athena/include/aws/athena/model/QueryRuntimeStatisticsTimeline.h | 2999d017349e67f0f1a78315b770f3e8829ce4f2 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 7,832 | h | QueryRuntimeStatisticsTimeline.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/athena/Athena_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Athena
{... |
10fd9a12bd991c99cf876d5298326c9e6ec6d55d | 9291fb1161991259b8077f8f9a850867d5464770 | /src/m68k/uae/cpuemu.cpp | 85b6140db1e4fc44eb442367ea20e467d5833cd4 | [] | no_license | goldmojo/uae4all | 1d67266e1984810645281e07dc21021ad0441da2 | 9988f9924a5da4d21fde414b8d531301f8b1076c | refs/heads/master | 2023-01-07T11:29:49.356720 | 2020-11-11T15:11:34 | 2020-11-11T15:11:34 | 255,284,950 | 7 | 2 | null | 2020-04-13T09:35:06 | 2020-04-13T09:35:05 | null | UTF-8 | C++ | false | false | 1,866,243 | cpp | cpuemu.cpp | #include "sysconfig.h"
#include "sysdeps.h"
#include "config.h"
#include "uae.h"
#include "options.h"
#include "memory.h"
#include "custom.h"
#include "m68k/m68k_intrf.h"
#include "compiler.h"
#include "cputbl.h"
#define CPUFUNC(x) x##_ff
#ifdef NOFLAGS
#include "noflags.h"
#endif
#if !defined(PART_1) && !defined(PART... |
630cc0c1baea0b31185758c15b3c990c068edef5 | 5713b91dc763d497d2139e7467a9711df17dd98b | /source/dll_resources.hpp | 50c66e90db694e3c79d171b48e28c04070053fc2 | [
"BSD-3-Clause",
"MIT"
] | permissive | crosire/reshade | f627a3323debef97ecd02b5d0eeec2a0e0dc32b9 | 9782cea39bcd0d8ae37a38798737f235ce680a5b | refs/heads/main | 2023-09-01T06:50:48.074855 | 2023-08-20T13:09:53 | 2023-08-20T13:09:53 | 61,246,596 | 3,611 | 694 | BSD-3-Clause | 2023-09-14T19:11:04 | 2016-06-15T23:02:16 | C++ | UTF-8 | C++ | false | false | 417 | hpp | dll_resources.hpp | /*
* Copyright (C) 2014 Patrick Mours
* SPDX-License-Identifier: BSD-3-Clause OR MIT
*/
#pragma once
#include "resource.h"
namespace reshade::resources
{
struct data_resource
{
size_t data_size;
const void *data;
};
/// <summary>
/// Loads the raw data associated with the specified <paramref name="id"/>... |
ad6da47d4df31abdcdb55c1c1d4caf720d33153f | be4737ec5e569506a3beea5cdfedafdd778e32e1 | /gp.cpp | 17dd7f1701f742882e6143a1bd44aa65e34943cc | [] | no_license | Samykakkar/DSA-practice | 8fd49c690f9c6af56437cb09475e7796538df77b | d10938f34e9467688f178b6570ccc740d3cc4dff | refs/heads/master | 2023-07-24T22:10:26.953125 | 2021-09-06T09:26:00 | 2021-09-06T09:26:00 | 392,998,137 | 0 | 1 | null | 2021-08-13T10:46:25 | 2021-08-05T10:21:28 | C++ | UTF-8 | C++ | false | false | 275 | cpp | gp.cpp | #include <iostream>
#include <cmath>
using namespace std;
double GP(int a, int b, int N)
{
double r = ((double)b) / a;
return (a * pow(r, N - 1));
}
int main()
{
int a = 2;
int b = 4;
int N = 9;
cout << "Nth term is" << GP(a, b, N);
return 0;
} |
a2bdc28cd43475c999b14fa449c2bf6f9b75e978 | 6697cd726d4cd3744ae52a7d5618f4ad107befba | /CP/1500/product.cpp | 1ce721f6a225ed7cd674406bef33653620ffefff | [] | no_license | Saifu0/Competitive-Programming | 4385777115d5d83ba5140324c309db1e6c16f4af | ecc1c05f1a85636c57f7f6609dd6a002f220c0b0 | refs/heads/master | 2022-12-15T09:11:53.907652 | 2020-09-08T08:20:44 | 2020-09-08T08:20:44 | 293,743,953 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,785 | cpp | product.cpp | // ----- In the name of ALLAH, the Most Gracious, the Most Merciful -----
#include<bits/stdc++.h>
using namespace std;
#define NINJA ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define fo(i,n) for(int i=0;i<n;i++)
#define Fo(i,k,n) for(int i=k;i<n;i++)
#define for1(i,n) for(int i=1;i<=n;i++)
#define dloop(i... |
3b8160b8d9ed016ae9d8b4ee9e1ae24f4680ec4d | cf3de7f4e07971357ae0b64d7fd8143d9640f0d4 | /include/mutils/file/toml_utils.h | a56e167b9bc39160d3046c48b5b2f680c836e74e | [
"MIT"
] | permissive | ABelliqueux/mutils | 2358291ed86515fd9cd1321e435ae6c4c57749fd | 14c827c2408f30cfdeb86b039bcdc47e6bd631a0 | refs/heads/master | 2023-07-16T06:15:39.961085 | 2021-08-26T13:47:46 | 2021-08-26T13:47:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,712 | h | toml_utils.h | #pragma once
#include <map>
#include <toml.hpp>
#include <mutils/file/file.h>
#include <mutils/math/math.h>
namespace MUtils
{
std::map<std::string, const toml::table&> toml_get_subtables(const toml::value& loaded, std::string parentName, std::function<void(const std::string&, toml::table&)> cb);
std::vector<floa... |
c3b248e17c1f1b7fcfffcac85b5064ad994f3f2b | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Geometry/HcalTowerAlgo/test/HcalGeometryDump.cc | f08db74cd18f8d774bf1ea446940d15465b5e333 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 2,936 | cc | HcalGeometryDump.cc | #include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "Geometry/CaloGeometry/interface/CaloGeometry.h"
#include "Geometry/CaloGeometry/interface/Calo... |
2c5ded5b8525c3b0c82259a269aa0b959a194682 | 6be31b4fa725b5b61c1efd6c8eaddcd78d4545a7 | /Cpp0017_FunctionsSample2.cpp | 2b9027f57edeebd94f3e2f5bc02539b12ac97b0e | [] | no_license | Abdullah06444/0017_FunctionsSample2 | 6f3343b430a5a814fe7c502295930bc3f6e90839 | f076c1d5cb6ee8d2a5990c296de017e1a3cc39a2 | refs/heads/master | 2023-01-01T00:18:31.986245 | 2020-10-16T19:34:46 | 2020-10-16T19:34:46 | 296,702,456 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 390 | cpp | Cpp0017_FunctionsSample2.cpp | #include <iostream>
using namespace std;
int isPentagonal(int number)
{
int i;
for (i = 0; number > 0; i++)
number -= 1+3*i;
if (number == 0)
return 1;
return 0;
}
int main()
{
int x;
do
{
cin >> x;
if (x > 0)
if (isPentagonal(x))
cout << x << " is a pentagonal number" << endl;
else
co... |
ffdb01c32d312e1f8a53185f13739bc9f23244e4 | f909905672dfb0983aefc7b12355161a2c008fc8 | /DoorToNextLevel.h | f96ea25718f42924e43c0b99eef3206eb268f399 | [] | no_license | LucasBarrot/ProjectQT | 61a8e9091aa71d7601c26781b13c645df9f79763 | ba0b45889b42bebe2a20e76c1daaf06b95e3f727 | refs/heads/master | 2022-12-20T13:28:16.922230 | 2020-09-25T16:54:00 | 2020-09-25T16:54:00 | 290,534,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | h | DoorToNextLevel.h | #ifndef DOORTONEXTLEVEL_H
#define DOORTONEXTLEVEL_H
#include <QGraphicsPixmapItem>
class DoorToNextLevel : public QGraphicsPixmapItem {
public:
DoorToNextLevel();
};
#endif // DOORTONEXTLEVEL_H
|
2e2696b0218b5ba743c7b16251781980dec46ea9 | 952b1cbc65d31598cd2f4a890fbdf7bf25790ebb | /src/main.cpp | 7fc7ec34d91498a91268baf2e50b44713f56098f | [] | no_license | LazyRichard/Arduino-Glass-Armoire-Controller | 843eaa9d6d935890d5e0ec66aa125051e87df892 | 7f59f0571539200f26d72408bd4ef63e3d0d9fb3 | refs/heads/master | 2020-12-10T17:21:34.230452 | 2020-01-30T04:20:10 | 2020-01-30T04:20:10 | 233,659,041 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,241 | cpp | main.cpp | #include <Arduino.h>
#include <stdbool.h>
const unsigned long BAUDRATE = 9600;
/*
* PIN Configuration
*/
const uint8_t PINS_DIP_SW[] = {5, 6, 7};
const uint8_t PINS_SIG_IN[] = {8, 9, 10};
const uint8_t PIN_SIG_OUT = 2;
unsigned long PrevTime_SW = 0;
unsigned long PrevTime_Sensor = 0;
unsigned long PrevTime_StateMo... |
ba9a2b77fd2d892275e632406955a89e1b38fa9e | a332e949c6b513f00349bec2e0e5de726c8049fc | /CSC454HW1/House.h | 78a401b4ea613db61f3442b0937c21a2ff03cab8 | [] | no_license | cking20/SystemSimulation | a14b6df80bd52035bd974a817c6fc4ca4c95fbe4 | 9d591b15daaa4c852657de5aa071dd1201a7a139 | refs/heads/master | 2021-05-12T03:09:28.448105 | 2018-01-16T00:37:21 | 2018-01-16T00:37:21 | 117,609,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,058 | h | House.h | /*
* File: House.h
* Author: chrisrk192
*
* Created on September 1, 2017, 3:24 PM
*
* House hold all pertinent
*/
#include "Room.h"
#include "Creature.h"
#ifndef HOUSE_H
#define HOUSE_H
class House {
public:
/**
* Constructor, instanciates a house with 100 rooms
*/
House();
House(const ... |
f71af7a6a15d77467e2f16257aba9069c91869a0 | e217eaf05d0dab8dd339032b6c58636841aa8815 | /IfcTunnel/src/OpenInfraPlatform/IfcTunnel/entity/IfcEventTime.cpp | 82a2596ea981985fcfee91ffdb9ca785e75af0a2 | [] | no_license | bigdoods/OpenInfraPlatform | f7785ebe4cb46e24d7f636e1b4110679d78a4303 | 0266e86a9f25f2ea9ec837d8d340d31a58a83c8e | refs/heads/master | 2021-01-21T03:41:20.124443 | 2016-01-26T23:20:21 | 2016-01-26T23:20:21 | 57,377,206 | 0 | 1 | null | 2016-04-29T10:38:19 | 2016-04-29T10:38:19 | null | UTF-8 | C++ | false | false | 3,722 | cpp | IfcEventTime.cpp | /*! \verbatim
* \copyright Copyright (c) 2014 Julian Amann. All rights reserved.
* \date 2014-03-05 19:30
* \author Julian Amann <julian.amann@tum.de> (https://www.cms.bgu.tum.de/en/team/amann)
* \brief This file is part of the BlueFramework.
* \endverbatim
*/
#include <sstream>
#include <limits>
#include "mo... |
806b4f783a2891e83f288a8a24a30e5621cbffe6 | 8409095e00ddec07248106c817ed1fe931108f3d | /SafeQueue.h | 7f46b54ac7984bab24297122c1c23d8a0db85f58 | [] | no_license | wusopp/SafeQueue | 8a1ab7b54fd6b42b6517170ae97d75c214a866a6 | ed33c3680eb7cc86e2a6771b0c204733ca850925 | refs/heads/master | 2021-06-08T01:25:08.437629 | 2016-12-04T02:01:50 | 2016-12-04T02:01:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,258 | h | SafeQueue.h | /////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Name :Isaac Styles
// Department Name : Computer and Information Sciences
// File Name :SafeQueue.h
// Purpose :Thread-safe queue template
// Author ... |
ae4dbba1a008788ef7df29098fd2b2de80937f58 | 35cd401ef876bec39366e5724bae71581c0cb658 | /Cpp/Interface/WorldViewProgram.h | c3c7f027cf7b0f25f6bf0454cd51e402ad68c69b | [] | permissive | krishauser/Klampt | bd450b8c67189b31abe4eb056707d50da3aa651b | dbaf38ca290a36fba9a8f4f9b6a49fda689f6585 | refs/heads/master | 2023-08-29T21:54:40.758699 | 2023-07-21T12:34:38 | 2023-07-21T12:34:38 | 13,944,923 | 327 | 98 | BSD-3-Clause | 2023-08-26T04:20:26 | 2013-10-29T02:46:08 | C++ | UTF-8 | C++ | false | false | 2,938 | h | WorldViewProgram.h | #ifndef WORLD_VIEW_PROGRAM_H
#define WORLD_VIEW_PROGRAM_H
#include <Klampt/Modeling/World.h>
#include <KrisLibrary/GLdraw/GL.h>
#include <KrisLibrary/GLdraw/Widget.h>
#include <KrisLibrary/math3d/Ray3D.h>
#if HAVE_GLUI
#include <KrisLibrary/GLdraw/GLUINavigationProgram.h>
#include <KrisLibrary/GLdraw/GLScreensho... |
4be44543ada930a156389fb15006294a2c5cf522 | eb653232377c835140b5213e90ed60847d5193ac | /example_1_shapes_and_colors/src/ofApp.cpp | bc8b1a6a3a453d9a2b3740e01938a852074dfc8d | [
"Apache-2.0"
] | permissive | ofcourseio/Design_by_Code | d84fcd710794af57e4ad661dc8fa6c01d6c7301c | f06b0449f8c5912c53d934b26f36e981c37420f3 | refs/heads/master | 2016-09-03T06:37:35.930163 | 2015-02-12T04:27:13 | 2015-02-12T04:27:13 | 30,685,463 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,500 | cpp | ofApp.cpp | /*-------------------------------------------------------------
[ofCourse][Spring 2015] Design by Code
Gabriel Gianordoli
gianordoli.com
@gianordoli
-------------------------------------------------------------*/
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setu... |
0369e9ebe8443e6b1b1a36210f9c3dfba3c0b864 | 8798f11778edcc78c01949b94edca4c0980d66fb | /test/T42.stl.names.map.hpp | 9747eb1031c15c31efa07d5c96f3175aba1adcd4 | [
"MIT"
] | permissive | RosettaCommons/binder | 32cfa9baf464e5419aa12f19fbd17da12deb2d2c | cb9788e87286686762746532f624843e2f1972d0 | refs/heads/master | 2023-06-28T00:51:39.433032 | 2023-06-19T17:44:17 | 2023-06-19T17:44:17 | 71,400,854 | 285 | 64 | MIT | 2023-09-06T09:17:17 | 2016-10-19T21:29:29 | C++ | UTF-8 | C++ | false | false | 1,265 | hpp | T42.stl.names.map.hpp | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// Copyright (c) 2016 Sergey Lyskov <sergey.lyskov@jhu.edu>
//
// All rights reserved. Use of this source code is governed by a
// MIT license that can be found in the LICENSE file.
/// @file b... |
cb54c3debcc503b0acfb483f9529e77d9ef2fae4 | feea85165502f6b3746719a57b6246979b202bb8 | /include/util/moveutil.hpp | dd54df89519690b1d4c109d1397892f42fbaf5cf | [
"MIT"
] | permissive | Guardian820/Teal | 11d4637978169677874836b2af241e9d458e401d | ce83249df744c56638b6414a7e5a1360deadce75 | refs/heads/master | 2020-05-04T18:53:17.873223 | 2019-03-03T12:58:11 | 2019-03-03T12:58:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 521 | hpp | moveutil.hpp | // Copyright (C) 2019 Samy Bensaid
// This file is part of the Teal project.
// For conditions of distribution and use, see copyright notice in LICENSE
#pragma once
#ifndef MOVEMENTUTIL_HPP
#define MOVEMENTUTIL_HPP
#include <NDK/Entity.hpp>
void moveEntity(const Ndk::EntityHandle& e, bool fightMode = fal... |
65e5bae08ddc43b7d93453e542ff2b659f191b1a | 492976adfdf031252c85de91a185bfd625738a0c | /lib/hkStubs/Havok/Physics2012/Dynamics/Collide/hkpResponseModifier.h | 0fe06e79c3424dbaa121d75f94fad081b047a8f6 | [] | no_license | zeldaret/botw | 50ccb72c6d3969c0b067168f6f9124665a7f7590 | fd527f92164b8efdb746cffcf23c4f033fbffa76 | refs/heads/master | 2023-07-21T13:12:24.107437 | 2023-07-01T20:29:40 | 2023-07-01T20:29:40 | 288,736,599 | 1,350 | 117 | null | 2023-09-03T14:45:38 | 2020-08-19T13:16:30 | C++ | UTF-8 | C++ | false | false | 2,927 | h | hkpResponseModifier.h | #pragma once
#include <Havok/Common/Base/hkBase.h>
class hkpConstraintInstance;
class hkpConstraintOwner;
class hkpDynamicsContactMgr;
class hkpRigidBody;
class hkpResponseModifier {
public:
enum Flags {
MASS_SCALING = 1,
CENTER_OF_MASS_DISPLACEMENT = 2,
SURFACE_VELOCITY = 4,
IMPU... |
66ab09f107574b06ef7751439641fb55d53ead37 | 44ace36ac975c50ffe2a32f5f044e09150cb9e4a | /example/openFrameworks/testApp.h | dcaef2b5f6fd593dba308868902e665fde407099 | [] | no_license | paulobarcelos/SimpleTweener | 60beb65be9d7f8ac683db8f6c476ef30fa8e8057 | 0b8b4fc00006c40a2ad291415ad101db54154439 | refs/heads/master | 2021-01-16T19:31:17.666253 | 2010-11-25T15:37:04 | 2010-11-25T15:37:04 | 1,060,342 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 304 | h | testApp.h |
#ifndef _TEST_APP
#define _TEST_APP
#include "ofMain.h"
#include "SimpleTweener.h"
class testApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
void keyPressed( int key );
SimpleTweener tweener_1;
SimpleTweener tweener_2;
float x;
float y;
float r;
};
#endif
|
27de98154b0ff0e78dba518460d25d703ed330d8 | de8c2e562e8d0ebd3e6d7469f41741c06d4c60bf | /code/Common/GSPSDK-V3/src/GSPCommon/RTP/RtpProFrame.h | 8d7bae45306c4add39ddade98d49c02b24b25c5e | [] | no_license | dongdong-2009/Bull | c95da575597414e85b161ac1397f5b12d6df3bb2 | ab10bef10d3422d37c36475c1b0a0fd2ab360004 | refs/heads/master | 2021-05-27T11:30:20.586457 | 2014-06-06T10:32:34 | 2014-06-06T10:32:34 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,755 | h | RtpProFrame.h | /*
******************************************
Copyright (C), 2011-2012, GOSUN
Filename : RTPPROFRAME.H
Author : 邹阳星
Version : 1.0.0.1
Date: 2013/4/3 9:17
Description: RTP 协议帧
********************************************
*/
#ifndef _GS_H_RTPPROFRAME_H_
#define _GS_H_RTPPROFRAME_H_
#include "../GSPMemory.h"
#include "... |
d0fd759f17f4e7beab8df72e6df48125f16ea353 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/CreateChangeSetRequest.h | fcd5568d64659a0d4625d5123852d35c7ac4e215 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 108,931 | h | CreateChangeSetRequest.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cloudformation/CloudFormation_EXPORTS.h>
#include <aws/cloudformation/CloudFormationRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memo... |
f36218a6c84bd321c9e22dbc1e546e5725b9a295 | b8b833ef45ee3a37e5b1737558663e081363d8c7 | /Core/Protocol/MessageServer.cpp | 1fa03f527c0a998c41a0190eb034a7db92c3f53a | [] | no_license | Reflexe/Ziqe | 25da769da5b41e9fc193e5545e2d28cf928122aa | a76a901d6adf9f5e368f3c7e35d0e56b00754794 | refs/heads/master | 2020-05-19T09:00:51.921555 | 2019-05-04T19:33:00 | 2019-05-04T19:33:00 | 184,935,871 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 191 | cpp | MessageServer.cpp | #include "MessageServer.hpp"
namespace Ziqe {
namespace Protocol {
MessageServer::MessageServer(Base::UniquePointer<Net::Server> &&server)
{
}
} // namespace Protocol
} // namespace Ziqe
|
ba936b3e36509a947c9e43760e105a715f87feb2 | 020cc9b0ff2d84a9a46c7a1ca88cf787097af5da | /QtSUA/SUA/ImageStatus.h | f174e445fe97424e1c38c8283a9194fe76b48286 | [] | no_license | SerikZ5/SUA | 2b0b6c39e784fe5646f960d820ee9bfb28cc35d6 | baa612f57eb4d2449cb707ac221b81b21eebbfe0 | refs/heads/master | 2020-12-03T03:51:35.105790 | 2018-09-11T20:16:50 | 2018-09-11T20:16:50 | 95,782,236 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 394 | h | ImageStatus.h | #ifndef IMAGE_STATUS_H
#define IMAGE_STATUS_H
#include <QLabel>
#include <QMovie>
#include <QPixmap>
enum SUAImages
{
GREEN,
GREY,
GREEN_BLINK,
YELLOW_BLINK,
};
class ImageStatus
{
public:
ImageStatus();
virtual ~ImageStatus();
void SetImage(QLabel* label, SUAImages color);
private:
QMovie* yellowB... |
85304bffdb6b8a8e49d5ad8d68daab07d554c29d | 2e5c75f3a893ae04b5054cecb73dbe929c8cd7c8 | /src/pctool/Anyka IP Camera/Anyka IP Camera/Anyka IP Camera/Aimer39RTSPClient.h | b3c5fe91e8ffe547b0ba662e9327ec498da066b3 | [] | no_license | amartol/videorec | 385192b1aca0acc42c24c700b93f4b0bc28a483f | a0b2372b27552c6326218799668d773f175cda6b | refs/heads/master | 2022-12-05T01:09:31.291281 | 2020-08-25T08:39:26 | 2020-08-25T08:39:26 | 72,375,362 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,850 | h | Aimer39RTSPClient.h | #pragma once
#include <liveMedia.hh>
#include <BasicUsageEnvironment.hh>
#include <string>
#include <vector>
#include "ThreadBase.h"
#include "AutoLock.h"
#include "InterfaceClass.h"
#include "Clock.h"
using namespace std;
class CAimer39RTSPClient;
typedef enum StreamType_en {
STREAM_UNKNOWN = -1,
... |
bc1c6fa24853c0732126836cf53e270c0a0ab6df | 5f8f05efe41fcbcec3d91d94bb17758e911f6afa | /code/effective_stl/Item36了解copy_if的正确实现/item36/item36.cpp | 7af129452a82cd8de2e8978750870c0400ae1af8 | [] | no_license | f0xxx/ficsCode | ca2f44fb8e6a377702959b30dd791ac183154c55 | 7b3c0a514e15f7e0e84bb999fb57b228d2fc2366 | refs/heads/master | 2020-12-25T19:15:10.388790 | 2017-12-01T07:14:26 | 2017-12-02T06:02:22 | 17,135,414 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,175 | cpp | item36.cpp | // item36.cpp : Defines the entry point for the console application.
//
#include <algorithm>
#include <vector>
#include <functional>
#include <iostream>
using namespace std;
int isDefective(int w)
{
if(w>10)
return 1;
else
return 0;
}
//template<typename InputIterator, // 一个不很正确的
//typename OutputIterator,... |
2911669244c0e6d192ced6e29e9be68b994afc58 | d347a13cd2bb18a0d5a2ba60c6010f929f0ef1c3 | /DuiLibTest1/DuiMenu.h | 5c3433c1c06b86b60e356dcf8e2ec1dd83125f7c | [] | no_license | TLScottChen/DuiLibTest1 | 563171dc41ca183f05d750e39dfd22dd5d733e8d | 8ce38835e2ebc2c787cebe71be9f0414d7dd2fa4 | refs/heads/master | 2022-12-26T13:08:36.219537 | 2020-10-12T09:31:11 | 2020-10-12T09:31:11 | 303,265,230 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,319 | h | DuiMenu.h | #pragma once
// 此处需要包含duilib的头文件#include <UIlib.h>那一段,详细代码请见前面教程
#pragma once
#include <UIlib.h>
using namespace DuiLib;
//class CDuiMenu : public WindowImplBase
//{
//protected:
// virtual ~CDuiMenu(){}; // 私有化析构函数,这样此对象只能通过new来生成,而不能直接定义变量。就保证了delete this不会出错
// CDuiString m_strXMLPath;
//
... |
b0c977dd35ff79ace32bbd183654a3e3a055f2f9 | bede44681b37e283366f6380b1c473fa14660b37 | /源.cpp | 40f0ebbe57e4e41195150d252a8032811faa2c52 | [] | no_license | chile-zhong/testcpp | d8debc28fa50a50a20a25260ae93b6de4055b465 | 4f6130dccb31a8d5b69b93bf601c01bcaf434404 | refs/heads/master | 2020-07-24T13:23:40.826853 | 2019-09-18T10:37:29 | 2019-09-18T10:37:29 | 207,941,871 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,556 | cpp | 源.cpp | #include<iostream>
using namespace std;
//定义一个链表节点
struct ListNode
{
int value;
ListNode* next;
};
//插入一个新节点到链表中(放在链表头部)
//void CreateList(ListNode*& head, int data)
//{
// //创建新节点
// ListNode* p = (ListNode*)malloc(sizeof(ListNode));
// p->value = data;
// p->next = NULL;
//
// if (head == NULL)
// {
// head = p;... |
5cedb858e075820f418bd13c593e7b728b730dda | af94701f4a135fc0cccdba621802fff98a64290b | /Libs/Pila/Pila.h | b74d86d21dd5b82284822a5ad953a742b8a5720d | [] | no_license | joclpacheb/Data_Structures_Project_UCLA_DCYT | 8be2e5a4a02b3e5b77f745581370df1923be1d58 | 75fc745b091000d1420b7f0f2bf1a17dbd792d81 | refs/heads/master | 2020-09-07T15:22:15.314643 | 2019-11-28T20:20:42 | 2019-11-28T20:20:42 | 220,826,318 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 643 | h | Pila.h | #ifndef Pila_H
#define Pila_H
#include <string>
template <class Tipo>
class Pila;
#ifndef NODOPILA_H
#define NODOPILA_H
template <class Tipo>
class Nodopila
{
public:
Tipo info;
Nodopila<Tipo>* ap;
friend class Pila<Tipo>;
};
#endif
template <class Tipo>
class Pila
{
typedef Nodopila<... |
487647ae91f0747d4c5e44f5389b19bc8bb591ba | 664efbc043b5ddf7068cf30babd09f381f545e9f | /C++/lesson17-江湖恩怨/main.cpp | f8e0dde513959ae232138cacaa53721e9ca9ef2a | [] | no_license | kindlyde/Cpp-Exercises | 1e5f923d8f26774d1216860cfa0403f2cd0773c7 | ada4c2da910e21b57b5a30cb36068894e682ab1b | refs/heads/master | 2020-07-04T07:19:33.201078 | 2015-08-30T14:57:44 | 2015-08-30T14:57:44 | 41,629,869 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,128 | cpp | main.cpp | #include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
class Boss{
private:
static Boss* cintance;
Boss()
{
}
public:
static Boss* get_boss()
{
if(cintance == NULL)
{
cout<<"new get_boss()"<<endl;
cintance ... |
66c2808dbcef8732b427f6a5e3e689d951bb508c | b4eaabe23599150524b7300c124545e83e6327f7 | /CTriangulo.cpp | d4e4fe7d88e4c70cf15dff3b65619b4c15acbfb2 | [] | no_license | Hildiu/PoligonosRegulares | 293adcde8b670d705bdb427db49f6083d72cf2d1 | f19a4d279dd014212749c953ecba03424763d270 | refs/heads/master | 2020-06-11T02:02:33.490049 | 2019-06-26T03:27:37 | 2019-06-26T03:27:37 | 193,822,106 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 291 | cpp | CTriangulo.cpp | //
// Created by Maria Hilda Bermejo on 11/18/18.
//
#include "CTriangulo.h"
CTriangulo::CTriangulo(TipoNumerico lado):CPoligono(lado)
{
}
TipoNumerico CTriangulo::Apotema()
{
return (m_lado * sqrt(3)/6.0);
}
TipoNumerico CTriangulo::SemiPerimetro()
{
return (3.0 * m_lado/2.0);
}
|
f6f8570542de328d831401f193f6151a1f775ddc | b28aa544e8421d041b1c868352d16744c106e26e | /casa/prefixed_expressions.cc | 4a2d1545183bf289de74c2a69423ba9402452d32 | [] | no_license | julia498/test | 14770ba84e49c2aab1f1475273a58bda329e6169 | 1470a5189d1be65709d7538af27e7f6595e54f44 | refs/heads/master | 2020-03-30T02:39:16.539489 | 2019-03-10T11:03:49 | 2019-03-10T11:03:49 | 150,641,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 309 | cc | prefixed_expressions.cc | #include <iostream>
using namespace std;
#include <cmath>
int expressio() {
char c;
cin >> c;
if (c == '+') return expressio() + expressio();
if (c == '-') return expressio() - expressio();
if (c == '*') return expressio() * expressio();
return c - '0';
}
int main() {
cout << expressio() << endl;
}
|
cb4396c92ed699b54cbf27d9b4f33b44863711fc | 4f06df6e45c2d1ce7c20061428fbbd404a0320ed | /soalno3.cpp | 4ed08e89ed71c5330cb73ee866cc9e7e94158153 | [] | no_license | ambartri3/TugasPTS1 | 1f1b1e09782ea304ab88e5c5abb9796d4d96e7bb | e1aa4808ee1c9e5a4ef11c6b3408d7b7a6867522 | refs/heads/master | 2021-08-07T15:17:23.939002 | 2017-11-08T11:41:12 | 2017-11-08T11:41:12 | 105,435,914 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 123 | cpp | soalno3.cpp | #include <iostream>
using namespace std;
int main()
{
int C;
for (C=0;C<6;C++)
{
cout<<"malam minggu sendiri"<<endl;
}
}
|
c432d2deb24988f6113c1883eeb6e6020107511b | 037a33c4d9d50fbc439a8fda8652a26f857897d9 | /ful-of-error-template.cpp | b2535da97c7edf06719e9652aca4cff73005a08e | [] | no_license | terminal-guy/CPP-BOOTCAMP | 435cf34f2ecad891192b1453bf9015420d2c34dd | 435af1b87889ec79d277f493eac6561375f02ebc | refs/heads/master | 2022-11-14T09:02:06.567570 | 2020-07-08T08:18:55 | 2020-07-08T08:18:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 249 | cpp | ful-of-error-template.cpp |
#include <iostream>
#include "adder.h"
template <typename T>
T adder(T a, T b){
return 0;
}
int main(){
int v1 = 4;
int v2 = 4;
float v3 = 5.6;
float v4 = 7.5;
std::cout << adder(v1, v2) << std:: endl;
return 0;
}
|
3f3fd1efaac1511b861acf350eb8735804ce9cf8 | 7ea618b70e81a9478e896949ab99995b089fe8de | /libsrc/blitz2/src/control_channel.cc | 0669c80ff5bc860b6e047428d956069885d6171b | [] | no_license | rickyu/mlsimgsearch | bab0cc11901ac3adf652a7f4daeaa01721b6b9e5 | 7fa89f058333af65c27e58d952a7ebbcbd94b46f | refs/heads/master | 2020-03-22T21:01:41.687118 | 2018-07-12T02:48:09 | 2018-07-12T02:48:09 | 140,650,471 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,308 | cc | control_channel.cc | #include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <blitz2/control_channel.h>
namespace blitz2 {
void ControlChannel::OnRead() {
LOG_DEBUG(logger_, "ControlChannel::OnRead fd=%d", fd_);
int newfd = -1;
int32_t type = 0;
while(1) {
int ret = ReadFd(&newfd, &ty... |
3c665e72a49e66d52fd7c3cf69f0a56b7cbd4dfc | 81b12da2eac22050156455eeb7367bc8e549e5bd | /sfml template/BronzeWorking.cpp | f38f717fdec097f7ce4e6b22cd5e561c19dd25cf | [] | no_license | SaintAllary/War-of-Civilization | 9ced788dd8d6239e0f1ce6e399d4c42d844939c3 | e58a832bccad3ae913ea5455723db6fd7e7c606e | refs/heads/master | 2022-05-03T13:07:51.429719 | 2022-03-27T11:10:01 | 2022-03-27T11:10:01 | 237,458,831 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 100 | cpp | BronzeWorking.cpp | #include "BronzeWorking.h"
BronzeWorking::BronzeWorking() : Technologies("Bronze Working", 0, 1) {} |
6a990849a237dcb488cd331c04688759cfcb61f5 | 10ecb0cf2a736a631bf781e0412602614d51426c | /RC_car_plataformIO/src/src/OneShot125/OneShot125.h | 79e711b8cfbb7a42cd5931c8fff0f878f1b7626d | [] | no_license | ttvAmavisca/rc_car | a734059ac57da5b3c3461a709e32df247d8e8376 | 4e21577a01120447f1fbdf36b34585ce83973d88 | refs/heads/master | 2022-12-12T22:50:10.430904 | 2019-11-06T22:52:11 | 2019-11-06T22:52:11 | 168,256,226 | 0 | 0 | null | 2022-12-08T05:26:56 | 2019-01-30T01:11:01 | C++ | UTF-8 | C++ | false | false | 186 | h | OneShot125.h | #pragma once
#include <cstdint>
class OneShot125
{
public:
OneShot125();
void Init() ;
void Arm() ;
void Disarm() ;
void Update(uint16_t motor_power);
};
|
bd032495b2ffb05109bf98da02bb1486cab7ae82 | a7832d00f002561d154ebcc6874e9738c7efeba4 | /ex2.cpp | adf47567fe116c932b8660d0e595286a0856b8d4 | [] | no_license | 281613520/AnKh | a2ebdc843566cacaf84d3014192316855114e3af | 4146a339c52fefd24fb6ed1d77c48244f568372f | refs/heads/master | 2021-01-17T07:12:18.167402 | 2016-12-19T15:41:17 | 2016-12-19T15:41:17 | 52,346,162 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 712 | cpp | ex2.cpp | #include<iostream>
#include<vector>
using namespace std;
void MaxSum(vector<int> &a, int N)
{
int thissum, maxsum;
int i;
int first, last;
int tmpf, tmpl;
thissum = maxsum = 0;
tmpf = 1;
for (i = 1; i < N; i++)
{
if (thissum >= 0)
{
thissum += a[i];
tmpl = i;
}
else
{
... |
b0e66e723980a68f29ac3ab1a9adc0961b9c9192 | de80b91a12b10bd962b59a89b2badbb83a0193da | /ClientProject/Mof/RatchetNClankCopy/RatchetApplication/Game/GameSystem/Text/Menu.cpp | 46923601b7140021414a526391aa7757dffc40ef | [
"MIT"
] | permissive | OIC-Shinchaemin/RatchetNclank-PrivateCopy | 8845eea799b3346646c8c93435c0149e842dede8 | e2e646e89ef3c29d474a503f5ca80405c4c676c9 | refs/heads/main | 2023-08-15T06:36:05.244293 | 2021-10-08T00:34:48 | 2021-10-08T00:34:48 | 350,923,064 | 0 | 0 | MIT | 2021-10-06T11:05:03 | 2021-03-24T02:35:36 | C++ | SHIFT_JIS | C++ | false | false | 4,934 | cpp | Menu.cpp | #include "Menu.h"
ratchet::game::gamesystem::text::TextMenu::TextMenu() :
_position(),
_space(),
_count(0),
_title(NULL),
_item(NULL),
_select(0),
_show(false),
_enter(false),
_rectangle(),
_header_rectangle(),
_drag(false) {
_space.x = 12.0f;
_space.y = 8.0f;
}
r... |
99350012be81abeadec43f27f8c616768ef31c1c | 2a07e7887c06d8673fd8af53c17dd4da634a2a0b | /src/client/windows/GameWindow.h | 0382d893b0433f6609eef4da9c8af8ef39da400d | [] | no_license | llmanuel/Z-TPGrupal | b41773cdc8b9d25bed9d0701a1796a9b973f8028 | a6a635c02b2e44ae3b6ed0ef1e90e5721b667ea0 | refs/heads/master | 2021-01-20T02:17:08.759900 | 2017-06-27T18:06:08 | 2017-06-27T18:06:08 | 101,312,891 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,167 | h | GameWindow.h | #ifndef Z_TPGRUPAL_GAMEWINDOW_H
#define Z_TPGRUPAL_GAMEWINDOW_H
#include <gtkmm/window.h>
#include <gtkmm/grid.h>
#include <gtkmm/button.h>
#include <gtkmm/builder.h>
#include <gtkmm/box.h>
#include <gtkmm/label.h>
#include <gtkmm/applicationwindow.h>
#include "../GameArea.h"
#include "../BuildingsMonitor.h"
#include ... |
419d6cadf1ddcc381845a5a93455d94e72b01573 | 7ed8ff9e9ed42b235a0c1286e53fbed9d81e0663 | /WhiteJaredEngine01/Timer.cpp | 4822d985c233e0292e6da89e39eb072a45727cda | [] | no_license | JaredMW/White_Jared_GameEngine01 | 5fa32ce2781e9756338edf4ac74790181e608829 | a9b652661623f8d782917fd019bb04cfd4c1ccc6 | refs/heads/master | 2021-08-22T19:54:59.950491 | 2017-12-01T04:52:08 | 2017-12-01T04:52:08 | 112,696,230 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 917 | cpp | Timer.cpp | // Jared White
// March 6, 2017
// WhiteJaredEngine01 Timer.cpp
#include <string>
#include "Timer.h"
#include <GL\glew.h>
#include <GLFW\glfw3.h>
Timer::Timer()
{
//prev = cur = clock();
t = prev = dt = fps = 0;
}
Timer::~Timer()
{
}
// Update Timer data
void Timer::update()
{
//prev = cur; // Updat... |
909de5ccccb5f6f3e088ed2307d80a9f5ab822ff | fb1e797601e9bb241c5cb0d4aecd98be33903e5a | /exercism/cpp/crypto-square/crypto_square.h | e071e6827ef53b429d71f1feaeac326300d7eb7e | [] | no_license | nilsso/challenge-solutions | 8b409b4665c62fdfda863e2706180ac8f2d4409c | 5b837cac329a9948c5bc4e57baa7780161ee5f07 | refs/heads/master | 2021-06-28T22:02:19.462270 | 2020-08-17T20:52:32 | 2020-08-17T20:52:32 | 133,567,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 859 | h | crypto_square.h | #ifndef CRYPTO_SQUARE_H
#define CRYPTO_SQUARE_H
//#define CRYPTO_SQUARE_MAIN
#define EXERCISM_RUN_ALL_TESTS
#include <cmath>
#include <string>
#include <vector>
#include <algorithm>
#include <sstream>
namespace crypto_square
{
using std::string;
using std::string_view;
using std::vector;
using std::stringstre... |
fca02acb7d25ec31b24513f6a532cf4c1a295c01 | 3c483e23854b74fb4debc6c2e72945c80c0ec591 | /Project/Source/FactoryGame/FGDestructibleActor.cpp | 06acc3a566deeb13361ac32e689ee987bc98f1f4 | [] | no_license | HaigenSAE/SatiSanctum | c535373b72ef970411f426310f29473ca64070c3 | 26075efc781eed2561958703955fde32e01e73b9 | refs/heads/master | 2020-06-25T09:22:33.716518 | 2019-08-06T22:07:15 | 2019-08-06T22:07:15 | 199,267,199 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,318 | cpp | FGDestructibleActor.cpp | // This file has been automatically generated by the Unreal Header Implementation tool
#include "FGDestructibleActor.h"
AFGDestructibleActor::AFGDestructibleActor(){ }
float AFGDestructibleActor::TakeDamage( float damage, FDamageEvent const& damageEvent, AController* eventInstigator, AActor* damageCauser){ return fl... |
7271ac823ae07d7d4ed7a5acdad3156b2390e237 | c62273a7d91d58faa9bbf2b784f67073c2df8d41 | /Source.cpp | b535e88a27d4a4ff3e3b862da36baad06f7c78cd | [] | no_license | aleyndmitriy/SQLTest | a2237262de5cb6a942b2fd9efca117e95777a6c2 | e7c681afbe3ad9ac78b56a820d6453fd134aece0 | refs/heads/master | 2022-02-21T09:17:44.165726 | 2019-09-25T11:29:55 | 2019-09-25T11:29:55 | 198,179,166 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 406 | cpp | Source.cpp | #include "DataSQLServerAccessAssembly.h"
int APIENTRY DllMain(_In_ HINSTANCE hInstance, DWORD fdwReason, PVOID fImpLoad)
{
switch (fdwReason) {
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hInstance);
break;
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH:
DrvFtaeAlarm::DataSQLServerAccessAsse... |
873c9864433c89e51e1f6b8c2c195e5ed4e1ca06 | 44d5ddeb77c4560af99f718fbc0a47de86a60fbd | /C++/Examples/C++/cast conversions/2 static_cast.cpp | 37b527ec02d826e12c24c146c898db9a42e6f859 | [] | no_license | tuandat64/rpw | f55c707f52d0a4b02fdbda59bd295e0dd5206f3c | be3d40ee52d487e83df20f6757c228d638c12d77 | refs/heads/master | 2023-03-05T15:14:13.308877 | 2021-02-18T08:37:09 | 2021-02-18T08:37:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,858 | cpp | 2 static_cast.cpp | #include "stdafx.h" //static_cast conversion @ http://en.cppreference.com/w/cpp/language/static_cast
#include <vector>
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
struct B {
int m = 0;
void hello() const {
cout << "Hello world, this is B!\n";
} };
struct D : B {
void hello() c... |
46427d358f99dfe5a66c7457fd7b73043048dbea | 2442bf3f201bf7e2ce000640c0523546f4c1219e | /Solutions/Climbing Stairs/main.cpp | e287cc644c4ffae406c3fc2cc4a753a825922f1a | [
"MIT"
] | permissive | Crayzero/LeetCodeProgramming | aeefd2cf00705334d031b35a2b98f4ddef44730d | b10ebe22c0de1501722f0f5c934c0c1902a26789 | refs/heads/master | 2021-01-17T15:12:40.116004 | 2015-06-17T12:27:57 | 2015-06-17T12:27:57 | 33,850,297 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 541 | cpp | main.cpp | #include <iostream>
using namespace std;
class Solution {
public:
int climbStairs(int n) {
int one_forward = 1;
int two_forward = 1;
if (n == 0) {
return 0;
}
if (n == 1) {
return 1;
}
for(int i = 2; i <= n; i++) {
int tmp... |
974710abe45cde4b58225ab9214144b31eec8e61 | 21727449157e5e020cd24fa3c6622683a36452e1 | /SPOJ/CPTTRN1 - Character Patterns (Act 1).cpp | f62dbeafef8de5fe1d84f5db2238a25c2cd8b029 | [] | no_license | Kristarx/Cplusplus | 3a0e819a6e383d5bf539b3fdc937a75fef7cea03 | 02615833ae250d8fe70044b55e0d335131a835ac | refs/heads/master | 2020-08-30T07:01:38.508291 | 2019-11-01T12:26:15 | 2019-11-01T12:26:15 | 218,299,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 512 | cpp | CPTTRN1 - Character Patterns (Act 1).cpp | #include <iostream>
using namespace std;
int main()
{
int ile;
cin >> ile;
for(int i = 0; i < ile; i++)
{
int wiersze, kolumny;
cin >> wiersze >> kolumny;
int iloczyn = wiersze * kolumny;
for(int j = 1; j <= iloczyn; j++)
{
if(j%2 !=... |
74e85846a7c6fbcb80e134c57c8eef9452bf4218 | 05803cfabffdef2ccdf294fdcbcb6319e31997f4 | /src/app.h | 058ee8981730d5b699e606a92c6b4bb6d7dba5c3 | [
"BSD-2-Clause"
] | permissive | abainbridge/trex-warrior | 3cedc69d5a69500e5cdde1a393df29e31f005ed9 | fac95802ce7efd8dc9c50f915ce8d5891f545640 | refs/heads/master | 2021-06-02T05:53:21.090486 | 2015-11-08T19:14:48 | 2015-11-08T19:14:48 | 32,854,108 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 761 | h | app.h | #ifndef INCLUDED_APP_H
#define INCLUDED_APP_H
class Camera;
class Level;
class ParticleSystem;
class Renderer;
class App
{
public:
enum
{
StatePlayLocation,
StateEditLocation,
StateGameOver,
StateQuit
};
private:
int m_state;
public:
// Things that are the world
Level ... |
52021c552a50bb88a0e7a2a142d9c20f01556565 | 14ca08448d67cb09eedce540d515242825068bbd | /server.cpp | 8701e8999a88d2eba3621e2ce21572507820e16f | [
"Apache-2.0"
] | permissive | Lab-Zjt/liblily | 254a1df2a810aa5ae650a918527e8d4dbe22b797 | ca92f5f14335f7a836646d661da3e6fce9be04d4 | refs/heads/master | 2020-07-25T22:30:12.789943 | 2020-06-29T14:49:43 | 2020-06-29T14:49:43 | 208,442,578 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,791 | cpp | server.cpp | #include "src/coroutine/go.h"
#include "src/net/net.h"
#include "src/coroutine/co_chan.h"
#include "src/coroutine/co_select.h"
#include <iostream>
#include <sys/eventfd.h>
#include <sys/epoll.h>
template<typename T>
using Ptr = std::unique_ptr<T>;
template<typename T>
using Arr = std::unique_ptr<T[]>;
template<typena... |
ddf3117160d6eaa581ca1c8775e5245a025fc017 | 51242f22d954e6cebed4979827defb335259913a | /src/ArduinoJson/Array/Utilities.hpp | 398e11d456975904afc7a3ca94a036488cf4dc20 | [
"MIT"
] | permissive | bblanchon/ArduinoJson | 458975619ce9e75857a8b07b868257ff74d46784 | aebf042baeb08435ca22bd583e5ee3df82e03d46 | refs/heads/6.x | 2023-09-01T07:29:14.785166 | 2023-08-24T07:43:23 | 2023-08-24T07:43:23 | 15,802,263 | 6,525 | 1,335 | MIT | 2023-01-13T07:21:55 | 2014-01-10T15:54:52 | C++ | UTF-8 | C++ | false | false | 3,644 | hpp | Utilities.hpp | // ArduinoJson - https://arduinojson.org
// Copyright © 2014-2023, Benoit BLANCHON
// MIT License
#pragma once
#include <ArduinoJson/Array/JsonArray.hpp>
#include <ArduinoJson/Document/JsonDocument.hpp>
ARDUINOJSON_BEGIN_PUBLIC_NAMESPACE
// Copies a value to a JsonVariant.
// This is a degenerated form of copyArray... |
feb822a3654010a233890e96d3ad41d54f4f2c97 | 43c32d6791349d91ee99d50330717e413f95b667 | /Strategy/cpp-source/SwimBehaviour.h | 40a5b6aaf08d08e409e48f0e1f47fe8d7890a930 | [] | no_license | akhtyamovpavel/PatternsCollection | 17d0f26b486f065fc38fc9297844d454711b687c | 9165d5bc7c50494adaf1b0dce40b08bfdd41d87c | refs/heads/master | 2023-04-02T20:06:18.635096 | 2023-03-21T19:38:02 | 2023-03-21T19:38:02 | 171,413,700 | 42 | 44 | null | 2021-10-31T18:44:25 | 2019-02-19T05:51:52 | C++ | UTF-8 | C++ | false | false | 133 | h | SwimBehaviour.h | //
// Created by Pavel Akhtyamov on 2019-04-10.
//
#pragma once
class SwimBehaviour {
public:
virtual void Execute() = 0;
};
|
a5dd850e27a7a254909aa29e51367f2a7e68e0ab | cc24b64a67de34e7320c867a6bb6e71d5146bcdf | /GamesProgramming2labs/GamesProgramming2labs/Transform.cpp | 8405893eaf97232e3a8dc1bbaa01fdb8c5267b40 | [] | no_license | crystalix/GPULabs-EGILLE200 | 4f21b40f4e07ec86a97c4b865ac4551d5cc9c7f3 | d5fa80eb5ed9b0e99864708ba2664c24fbcf903d | refs/heads/master | 2020-05-17T14:56:14.288562 | 2014-11-06T18:05:06 | 2014-11-06T18:05:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 887 | cpp | Transform.cpp | #include "Transform.h"
Transform::Transform()
{
}
void Transform::update()
{
mat4 translate = glm::translate(translate, m_Position);
mat4 scale =glm::scale(scale, m_Scale);
mat4 rotationX = glm::rotate(rotationX,m_Rotation.x,vec3(1.0f,0.0f,0.0f));
mat4 rotationY = glm::rotate(rotationY,m_Rotation.y,vec3(0.0f,1.... |
4f5693ae2adafd7657f60f89d0bc0e224976125b | 3851d34ce7b22b24526ce827a5f1ecac2f191de9 | /cpp/libs/src/asiopal/StrandExecutor.cpp | 2f9fb9c4ee127af85efda1dfe188df40ebfbc468 | [
"Apache-2.0"
] | permissive | wdtj/dnp3 | e5773820b9eb9916e5a8d3636ae50fe62f881ff6 | 049de82fe0def2de3729b1918ac5a0fe490c0762 | refs/heads/2.0.x | 2020-04-06T03:47:33.745971 | 2016-11-02T20:27:43 | 2016-11-02T20:27:43 | 56,339,849 | 0 | 1 | null | 2016-04-15T17:59:44 | 2016-04-15T17:59:43 | null | UTF-8 | C++ | false | false | 2,902 | cpp | StrandExecutor.cpp | /*
* Licensed to Green Energy Corp (www.greenenergycorp.com) under one or
* more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Green Energy Corp licenses this file to you under the Apache License,
* Version 2.0 (the "Lic... |
917aaba9fb64026098791d797982232a649710b1 | 6c0d489a8032915848fa7f9368698a2636eecd33 | /TTGO/TTGO_LORA32/TTGO_FreeRTOS/src/ssd1306/ssd1306_i2c.cpp | 6ad71419c448a64135664c44585e88883457a225 | [] | no_license | lstefani006/teensy | d05f044557fdff19594b9b4882226b42acb7dd1a | c8200f1ee43f6426d4f3acf0a3784f13626b8b48 | refs/heads/master | 2021-05-16T02:19:27.449462 | 2020-11-20T20:59:08 | 2020-11-20T20:59:08 | 43,541,230 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,911 | cpp | ssd1306_i2c.cpp | #include <string.h>
#include <stdlib.h>
#include "ssd1306_i2c.h"
#include "i2c_utils.hpp"
#include "fonts.hpp"
#define I2C_COMMAND 0x00
#define I2C_DATA 0x40
// Fundamental Command Table
#define SSD1306_SET_CONTROL 0x81 // Double byte command to select 1 out of 256 contrast steps. Contrast increases as the value inc... |
65a5a474ccff437b0fd213d300646e5d74bfda71 | 71b6e338f1fda053d0d924cbb5243ce7bb16d71f | /tests/test_helpers.cpp | 7fd322385cbcaac1933d75c47cc2d7f5fac954ce | [] | no_license | fargies/qrrd | 565c5a26ddf3a18e02dcbc6d12e78fc45fe63d53 | 951df74811feadf4ed8bdee833969e3fe453c96c | refs/heads/master | 2020-05-02T03:17:04.963857 | 2014-01-08T07:22:35 | 2014-01-08T07:22:35 | 37,081,177 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,766 | cpp | test_helpers.cpp | /*
** Copyright (C) 2013 Fargier Sylvain <fargier.sylvain@free.fr>
**
** 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.
**
** Permission is granted to anyone to use this software for an... |
ce9cb579e7cd33617a752e7da714ba5915bd89bf | b250f4c82f16cabb2a1fd28e7715fa36ca691c80 | /uva/challenges/WhatIsTheCard/TestWhatIsTheCard.cxx | 80839cf3cdf725ca81774629905f8f0911a6fcfe | [] | no_license | ismacaulay/problems | 19ffd055211c22f3d1c1f6f45f63907202a38a52 | 49af9716d66887963814c8e3d7de1d6865e14e38 | refs/heads/master | 2021-08-15T17:53:08.953195 | 2017-11-18T02:03:06 | 2017-11-18T02:03:06 | 19,360,214 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 248 | cxx | TestWhatIsTheCard.cxx |
#include <gtest/gtest.h>
#include "WhatIsTheCard.h"
/*
*************************************************
*
* No Tests - Challenge was mainly reading in
* and erasing values.
*
*************************************************
*/ |
2fd4b0cf851d966409752e17be23239ba9fbced4 | 616e188c75ed16fdf12d6070652b05f2296b0051 | /match.cpp | 5268d63c2781fe2d79851486672fedddc4f50986 | [] | no_license | bhamrick/imgmatch | 36d01c690d19a1c71911b440bc0d6a6ff7323e58 | 0d970fca3ba67186b0679f1dfecb7c7686b8012a | refs/heads/master | 2016-09-06T08:14:33.486925 | 2009-08-04T17:04:34 | 2009-08-04T17:04:34 | 88,822 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,469 | cpp | match.cpp | #include<ctime>
#include<cstdio>
#include<vector>
#include<cstdlib>
#include<algorithm>
#include"drawing.h"
#define NVERT 10
#define NPOLY 50
#define NPOP 16
#define PMUT 0.3
#define PADD 0.1
#define PNEW 0.05
#define MAXMOVE 5
#define MAXCMOVE 0.2
#define MAXAMOVE 0.05
#define FRATE 50
using namespace std;
double i... |
14253d8a23abc7cf13768691b330f128075c010e | 26bb69977888fdc5f701f32027a0a6ae33c769f2 | /peripheral/printer_normal_80.cpp | 5cf9f5c962b2f42c77358fd0edca5fa80b71f4be | [] | no_license | AM20302030/fastfd | a7ab37e3abdd9728f58fdcc76679fb9b1d1d22bf | 4b23ee7e736afac6603588dcf8079fae889134f5 | refs/heads/master | 2023-03-15T23:21:51.398989 | 2017-07-17T02:19:45 | 2017-07-17T02:19:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 151 | cpp | printer_normal_80.cpp | #include "printer_normal_80.h"
Printer_Normal_80::Printer_Normal_80()
{
}
blockIns Printer_Normal_80::tran(const blockIns &bins)
{
return bins;
}
|
76edf1672f127eeb6f4c43918d95c37c22cb84b6 | c4c8d1dcf23402574862d9fbf6db2a6f60da9814 | /Thunderclad/Thunderclad/Source/Rendering/DirectX 11/TCGraphicsContext_DX11.cpp | 2de18e221de246b8c8831d5f549cf054339f5d45 | [] | no_license | Seabolt/Thunderclad2 | 7e0b1be93b83569e57d603df4fb2236487d0acfb | 0688fe620d9ba5fa81cd22002105113b6ba81595 | refs/heads/master | 2021-03-24T13:43:28.321561 | 2016-07-18T05:30:11 | 2016-07-18T05:30:11 | 30,156,419 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 14,289 | cpp | TCGraphicsContext_DX11.cpp | //
// TCGraphicsContext_DX11.cpp
// Will define the functionality for a TCGraphicsContext_DX11.
//
//
// Includes
//
#include "TCGraphicsContext_DX11.h"
#include "TCWindow.Win32.h"
#include "TCLogger.h"
#include "TCVertexBuffer.h"
#include "TCIndexBuffer.h"
#if TC_GRAPHICS_PLATFORM_DX11
//
// Defines
//
#define TC... |
b3298c431079d8e660ca7458334446b9eca55f3e | 6cd1bf6544347c85cabaf672a5ed2dad94a18b63 | /kakomon/aising2019_c.cpp | 10655c16212736f7a53a073795c023657370cf5d | [] | no_license | Shell-Wataru/AtCoder | 0a35f12478ac0ab54711171f653ce7bed5189c92 | 0ba32250f4e4a44459a4cd231ff47a5f46c4fe87 | refs/heads/master | 2023-01-10T04:21:25.199532 | 2023-01-09T04:16:30 | 2023-01-09T04:16:30 | 89,144,933 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,184 | cpp | aising2019_c.cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include <deque>
#include <queue>
#include <set>
#include <map>
#include <limits>
#include <cmath>
#include <iomanip>
#include <functional>
#include <random>
#include <boost/multiprecision/cpp_int.hpp>
using namespace std;
using ll = long long;
struct UnionFi... |
319a0ee458387ce4f8b1350c8b83359d1c25921a | 587a987f72a6a0b366fdd52a611a56e10972491a | /LeetCode/406_根据身高重建队列.cpp | c9060ac71684ec843cff7107cae710cb0d5cb08b | [] | no_license | SeanCST/Algorithm_Problems | 18e4115dfd8d6b51cef6fad90b537d989123d655 | 03f7de3e4717677967d8b11ed4d7f0285debdb61 | refs/heads/master | 2023-07-27T22:33:56.783638 | 2023-07-17T14:13:49 | 2023-07-17T14:13:49 | 144,162,747 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,394 | cpp | 406_根据身高重建队列.cpp | class Solution {
public:
vector<pair<int, int>> reconstructQueue(vector<pair<int, int>>& people) {
vector<pair<int, int>> res;
// 按身高降序,k 值升序排序
sort(people.begin(), people.end(), [](const pair<int, int>& a, const pair<int, int>& b){
return a.first > b.first || (a.first =... |
a12c7c940880e0fdae21fbf28fe62556668d79bd | 7fd64b86c7e8f63d6238fe93ccf6e62a4b8ebc66 | /codeforces/435/B.cpp | f4a1892900aa63ce3a076523f73c00c0f3ffcb5d | [] | no_license | Mohammad-Yasser/harwest | 775ba71303cc2849f71e82652263f31e79bd8e04 | d01834a9a41c828c8c548a115ecefd77ff2d6adc | refs/heads/master | 2023-02-02T23:37:54.186079 | 2013-09-19T19:28:00 | 2020-12-21T14:30:32 | 323,233,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 422 | cpp | B.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int n;
cin >> s >> n;
for (int i = 0; i < s.size() && n; ++i) {
int ind = max_element(s.begin() + i,
s.begin() + min((int) s.size(), i + n + 1)) - s.begin();
if (s[i] < s[ind])
fo... |
143e3c919db5273f76039d200012a5bea1a4f08f | f5d6fc9408117af2d4ec9ca6b10dba91f0e65405 | /dDPV.cpp | 494f57be7f09da9f1b013c99e5281f8b76016890 | [] | no_license | bvrstich/v2.5DM-spin | 8a2628995e33dcafd2171bce10c80a4ef04bf3f4 | aa315f3872ff169aacbda4515b81288a9418e3fa | refs/heads/master | 2021-01-15T17:07:06.722112 | 2012-08-27T14:09:18 | 2012-08-27T14:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,827 | cpp | dDPV.cpp | #include <iostream>
#include <cmath>
#include <fstream>
using std::ostream;
using std::ofstream;
using std::ifstream;
using std::endl;
using std::ios;
#include "include.h"
int dDPV::M;
int dDPV::N;
/**
* initialize the static variables
* @param M_in nr of sp orbs
* @param N_in nr of particles
*/
void dDPV::init... |
bb2886515989120f5cd2f8963830f532260f0618 | aba765c5993b8d1074622441089a55a1610ce18e | /include/python/trident.h | 13dcfbdaa992fa9d6eb00cd5e2161f623e3ba319 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | karmaresearch/trident | cbf3dfa7d81c93ac40c76782564d0e453f605fa3 | 621ed49c648c811d5f69617833539f419766d3be | refs/heads/master | 2023-08-03T23:09:38.295697 | 2023-07-19T07:21:15 | 2023-07-19T07:21:15 | 97,223,343 | 23 | 9 | Apache-2.0 | 2021-09-30T09:04:25 | 2017-07-14T10:40:40 | C++ | UTF-8 | C++ | false | false | 1,946 | h | trident.h | /*
* Copyright 2017 Jacopo Urbani
*
* 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, V... |
6354323f40e7fe1a660f2c2b63b49f88d82b956c | b443baf79a4f62d1df92950204215e319f27e2fb | /intro/firstDigit.cpp | 388eb08708e9530000a36b1dc1517733a65dfe67 | [] | no_license | shubhgkr/codesignal | 2e956146cdbaddca73052b2b24045f45677e383c | d85feea1d33f67853db0b53a9ec6d07d853bc991 | refs/heads/master | 2018-11-03T01:58:57.536629 | 2018-10-22T19:14:27 | 2018-10-22T19:14:27 | 144,750,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 141 | cpp | firstDigit.cpp | #include <string>
char firstDigit(std::string inputString) {
for (char ch : inputString)
if(isdigit(ch))
return ch;
} |
0951450df4cceeb22cf2ed2d6e6b1c3dd89e81b4 | b39889e876c8f787a926383b61504fd22518d5c4 | /HackerEarth/PrimeString/main.cpp | 6c4ab0d6e5c4860a7fab85a38aee21f8590eae69 | [] | no_license | Pujolsluis/ACM-Training | 553244cd80c7ea9a55d8c0107d5b9eb69ef8c5e1 | a380fd55102544112628731b50b8ec731c36d55b | refs/heads/master | 2021-01-23T04:19:46.857889 | 2017-11-02T21:30:03 | 2017-11-02T21:30:03 | 86,184,004 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 809 | cpp | main.cpp | #include <iostream>
#include <map>
using namespace std;
bool isPrime(int n){
if(n == 1) return false;
for(int i=2; i<=n/2; i++){
if(n%i == 0) return false;
}
return true;
}
int main()
{
int T;
cin >> T;
for(int i=0; i<T; i++){
map<char,int> primeLetters;
string s;
... |
b0eb1eb094dc4e292e6540662857eec11405f300 | b3e69c1445589625d059e1f3f08d87ddbf122fa4 | /FTetris/FTetrisScene.cpp | 67dc7db656af2cd86a5ae81ca747245df34554cd | [] | no_license | FKint/FTetris | f455eaad3b7ae3a4b48eb6f821829ced27f71a49 | 5c6e8d0507fb2770048b75ca14376ba6c41b66c4 | refs/heads/master | 2016-09-06T04:31:32.358145 | 2015-07-05T15:44:25 | 2015-07-05T15:44:25 | 38,574,318 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,699 | cpp | FTetrisScene.cpp | #include "FTetrisScene.h"
#include <sstream>
using namespace std;
#include "FTetrisBlockSet.h"
#include "FTetrisGameController.h"
#include "FTetrisGameField.h"
#include "FreeTypeCommandText.h"
#include "FTetrisPreField.h"
#include "FTextureLoader.h"
#pragma message("ftetrisscene")
FTetrisScene::FTetrisScene(FGameUI *ui... |
3524943c80a157c5f1693bf7c500e4ebb40d7536 | 3927eb7aaa3cfa45ffc57f0a7a6b00417a720fea | /URI/01095-sequencia_ij_1.cpp | 49970606c808addb5c0bec3e1f00f5f979c436f6 | [] | no_license | jbsilva/Programming_Challenges | c2e5ee12bf3d2f17ce9b907447cd2c27d6198d7f | 889274951b1bbb048e8ea3a4843fac97ce6a95e3 | refs/heads/main | 2021-07-07T06:13:04.748780 | 2021-05-02T20:29:38 | 2021-05-02T20:29:38 | 49,593,340 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 627 | cpp | 01095-sequencia_ij_1.cpp | // ============================================================================
//
// Filename: 01095-sequencia_ij_1.cpp
//
// Description: URI 1095 - Sequencia IJ 1
//
// Version: 1.0
// Created: 09/30/2012 01:32:06 AM
// Revision: none
// Compiler: g++
//
// Author: J... |
4dc915667fe5223966a993ab89cca3add353adc2 | 7d5593b9bbaf6bb8eaacca88449d90c9c305c36e | /problems/882-reachable-nodes-in-subdivided-graph/882.hh | eb03b1945a22f7c55b0ca2ac867f66d26c794b94 | [] | no_license | yottacto/leetcode | fc98052ed9d643be8a79116d28540596bcc7c26b | 9a41e41c0982c1a313803d1d8288d086fbdbd5b6 | refs/heads/master | 2021-04-25T12:05:55.671066 | 2019-12-15T03:07:31 | 2019-12-15T03:07:31 | 111,814,868 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,741 | hh | 882.hh | #pragma once
#include <vector>
#include <queue>
auto constexpr maxn = 3007;
auto constexpr inf = 1<<30;
struct edge
{
int end;
int cost;
int id;
};
auto operator<(edge const& lhs, edge const& rhs)
{
return lhs.cost > rhs.cost;
}
struct Solution
{
std::vector<std::vector<edge>> g;
int reacha... |
7cbd0bf8bbb3cb547a15ff7cea32757986de0fc8 | 22d4f7fac0abdb2b771f44886cb919033cfc19ea | /SDL_Game/Game.h | 68e8ac8a4ed24d2b6264d619f51915da5b53bd56 | [] | no_license | RSharma98/SDL_Game | 7301961620bb8233ca2bd54f1ab78fa46b75c7ca | 552eb8aae4feabe88cc210c9fb612df51c3b036a | refs/heads/master | 2020-07-23T18:32:21.458450 | 2019-12-22T07:20:50 | 2019-12-22T07:20:50 | 207,668,247 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 734 | h | Game.h | #ifndef GAME_H
#define GAME_H
#include "SDL.h"
#include "SDL_image.h"
#include <iostream>
#include "GameObject.h"
#include "LavaObject.h"
#include "TileObject.h"
#include "Tilemap.h"
#include "Level.h"
#include "LevelManager.h"
#include "SpriteRenderer.h"
class Game {
public:
Game();
~Game();
void Initialise(co... |
06c0988d451e7e85a11c8460d3bc7f6a5eff1e71 | 495c4f474d76edbd39079dbdcf896f0da74217ec | /Mgoonga/sdl_assets/ImGuiContext.cpp | 0a4adda6ed03fed4e921175b04b6ac653bb25913 | [] | no_license | mgoongaBabangida/engine | 6ef76f4c8bca67832ec726eb51f0901759f3d78a | 7f3e2c3c2845062812e247ad92e09061fbf8c99b | refs/heads/master | 2023-08-25T02:43:32.221583 | 2023-07-01T15:17:20 | 2023-07-01T15:17:20 | 173,889,390 | 2 | 1 | null | 2019-05-19T07:09:57 | 2019-03-05T06:36:40 | C++ | UTF-8 | C++ | false | false | 37,535 | cpp | ImGuiContext.cpp | #include "stdafx.h"
#include "ImGuiContext.h"
#include <SDL/include/SDL.h>
#include <glew-2.1.0/include/GL/glew.h>
#include <SDL/include/SDL_opengl.h>
#include "imgui/imgui.h"
#include "imgui/imgui_impl_sdl.h"
#include "imgui/imgui_impl_opengl3.h"
#include "ImGuiFileBrowser.h"
#include <algorithm>
#in... |
eecd4443e93099f128966d9f3494a12cd15349a0 | 08c49ab21b5a7b79487fc55f9f5425f0b09dc4f9 | /DSAA2/PairingHeap.cpp | b595bdc776ce1621d29e36c8b786f11cc6a558e3 | [
"MIT"
] | permissive | crosslife/DSAA | f03a46781bd5a496944e00e92a31ed1f2f56623e | 03472db6e61582187192073b6ea4649b6195222b | refs/heads/master | 2021-03-12T20:45:18.195236 | 2013-11-06T08:10:49 | 2013-11-06T08:10:49 | 14,159,406 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,483 | cpp | PairingHeap.cpp | #include "PairingHeap.h"
#include "dsexceptions.h"
/**
* Construct the pairing heap.
*/
template <class Comparable>
PairingHeap<Comparable>::PairingHeap( )
{
root = NULL;
}
/**
* Copy constructor
*/
... |
df74080ee4373da7d4e00cf2ab91bdb947985d24 | d7b9fc7f5b7102c2e045256ceea8a31874ff5f0c | /accessibility/reader/q.cpp | 9ab21160579e20e6498084776bc608dec5fa379e | [] | no_license | kaiyasa/Miner-s-Play | aa04ef302e3549b2d63696d30102c934ca6d270a | 79a7be8af52eb5db50b34c60bd102d2f1e88e640 | refs/heads/master | 2021-01-17T08:29:22.428537 | 2016-07-15T19:09:03 | 2016-07-15T19:09:03 | 3,799,819 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,765 | cpp | q.cpp |
#include <ncurses.h>
#include "application.h"
#include "io.h"
#include "misc.h"
using namespace std;
vector<KeyAction> setup() {
vector<KeyAction> result;
result.push_back( {KEY_UP, [](Context &context) {
moveUp(context.view);
return 1;
}});
result.push_back( {KEY_DOWN, [](Context... |
a832832072f63aa766fb5d671ffa67cc19ad1195 | 61e06d54f7b90797a2be0fb6f8c5ede2006ee5c1 | /Brave-Pirate/Delay.h | 4d7ffcd5db9a45702bd76d3be05a138f4c7bae2d | [] | no_license | Politechniczne-Caleczki/BravePirate2 | f345062884de23ac0e0b6d9c10749d7653410419 | 3a1eb2c1207ab475464a32918f1bba56a8d2591f | refs/heads/master | 2021-01-02T22:51:47.556801 | 2015-06-16T13:22:17 | 2015-06-16T13:22:17 | 20,548,909 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 896 | h | Delay.h | #ifndef Delay_h
#define Delay_h
#pragma once
#include "Time.h"
#include <iostream>
class Delay
{
private:
float delayTime, startTime;
bool isredy;
public:
Delay(const float interval);
~Delay(void);
void setDelay(const float interval);
const float getDelay()const;
void update(void);
bool idRedy(void)const;
v... |
1c63bc90e9d8af8302e583b71555182d20e584fd | 8fa4dfbf3da618422376fa8ebe9627e0052da22f | /CharmDalitzFit/RooIsobar.cc | 8b68322892cb205680e67ae8adca500c0dcb8a95 | [] | no_license | sandrofonseca/UserCode-3 | 8481c6a77af6c7048b677cd97d6f949ba4ed618c | c3199f270bf40a14da20651088e021d1f2215bb2 | refs/heads/master | 2022-01-09T14:57:08.149677 | 2019-05-13T09:38:57 | 2019-05-13T09:38:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,041 | cc | RooIsobar.cc | /*****************************************************************************
* Project: BaBar detector at the SLAC PEP-II B-factory
* Package: CharmDalitzFit
* File: $Id: RooIsobar.cc,v 1.37 2008/06/10 17:08:25 pellicci Exp $
* Authors:
* Mario Pelliccioni, pellicci@slac.stanford.edu
*************************... |
5b709bb89bdf6ed045992ed122720a8b6cb2a5c5 | 251921a9bad70bf0cef196a755b17a30e583d49d | /ArpHeader/Glasslike/GlApp.h | 8bf5b847e98bba569906d674cdbfd52d0feb32dc | [
"Artistic-1.0"
] | permissive | tgkokk/Sequitur | 6d25b901c14960445230c91571934b3bdc0db214 | de306eb37de25cd8237c9a4bd30ce3e7a7ed416f | refs/heads/master | 2021-01-17T07:50:13.962534 | 2014-01-01T21:52:41 | 2014-01-01T21:52:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,345 | h | GlApp.h | /* GlApp.h
* Copyright (c)2002-2004 by Eric Hackborn.
* All rights reserved.
*
* This code is not public domain, nor freely distributable.
* Please direct any questions or requests to Eric Hackborn,
* at <hackborn@angryredplanet.com>.
*
* ----------------------------------------------------------------------
*... |
24885d5e4cef4bba4f7579ff6477bccdd51da18c | 1eab31ab4103f43d772e79872b0578a5960a0830 | /ClearEffect.cpp | 334d248404787fa284f89057c95b164c78ffb147 | [] | no_license | Bit-Rot/StarBarfBlinky | 7272c971f5f37969acd6b206002e596b6f80c414 | cd49d755af489aca4056ab6df4c09f6dcd7f617e | refs/heads/master | 2021-01-20T17:54:18.079106 | 2016-08-14T04:09:14 | 2016-08-14T04:09:14 | 64,902,052 | 3 | 0 | null | 2016-08-13T23:28:04 | 2016-08-04T04:18:48 | C++ | UTF-8 | C++ | false | false | 158 | cpp | ClearEffect.cpp | #include "ClearEffect.h"
ClearEffect::ClearEffect(PixelStrip *pixelStrip)
: Effect(pixelStrip) {
}
void ClearEffect::init() {
Effect::init();
clear();
} |
c4a18cdbc61436700e8ac641ed0283074a439051 | 7b0a12d6e9d9dce71244551c4c320dfa7b33f42e | /CCE-ALLOCATION/C/CCE_Allocation/cutscallback.cpp | 90cf6f1fd43298c021f66f257146f116e41b6ddb | [] | no_license | matheusota/MO648 | 572d6423c626b8ee63e5819e52b1ad93759d2575 | 76bd855c3bf4c1e16c06252a1fed780d548a1d04 | refs/heads/master | 2020-03-28T14:59:36.816909 | 2019-10-23T17:55:24 | 2019-10-23T17:55:24 | 148,544,539 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,564 | cpp | cutscallback.cpp | #include "cutscallback.h"
CutsCallback::CutsCallback(vector<User> &users, int R, map<int, map<int, GRBVar>> &x): users(users), x(x){
this->R = R;
}
// callback function
// Implements Van den Akker algorithm
void CutsCallback::callback(){
// integer solution
if (where == GRB_CB_MIPSOL){
solution_v... |
a683a362254a843bbfcfd78ddfbaf1cccdb0dd84 | d0010bab60052eaf751dcf1266331c832580540d | /read_mnist.h | 31997e651bf038fde6f83de812481c86e4f6f7d5 | [] | no_license | Qingsdz/bp_network_mnist | 57bcf18f6c0c680247982015779de9ad2507f2f1 | 7a4cd7a06e63a74461b0599d8f3ee24eeec4aad9 | refs/heads/main | 2023-04-30T18:07:26.791615 | 2021-05-23T05:15:01 | 2021-05-23T05:15:01 | 369,966,388 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,431 | h | read_mnist.h | #ifndef READ_MNIST
#define READ_MNIST
#include<iostream>
#include<fstream>
#include"matrix.h"
using namespace std;
const int output_number = 10;
class read_mnist
{
public:
read_mnist();
void get_new();
void write_to_ppm();
int ReversalInt(int nValue)
{
unsigned char cTemp1 = nValue & 255;
unsig... |
415d330e053878e386b5af2326d76b33ea664420 | ea4ca4a1003aeac5a71fdc1f8d965841470f8879 | /C++/C++ Basic 2/B_5635.cpp | 2352beb88903e1161f83dfcd2fb6eb36ffa0b326 | [] | no_license | SeMin4/AlgorithmStudy | e2aba3bf1d369943bf2f745c79b6e4f8f6f82a1d | f698482126362b9e95055b39d48fda7fb0758d73 | refs/heads/master | 2023-05-28T17:27:16.986157 | 2021-06-19T13:11:26 | 2021-06-19T13:11:26 | 237,901,891 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 726 | cpp | B_5635.cpp | #include<iostream>
#include<string>
using namespace std;
int main() {
int numerOfStudent;
string studentName;
int day;
int month;
int year;
int max_sum, min_sum;
string maxStudentName;
string minStudentName;
cin >> numerOfStudent;
max_sum = -1;
min_sum = 4000000;
while (numerOfStudent > 0) {
numerOfStuden... |
67a35e563315f3f183e90039100d915c48ea5e42 | 7dc7ad170c6692d683fdcf595be7ad913dfe9118 | /Problem#1_2/Problem#1_2/main.cpp | 1ed1d4324e7e207fc7f7e96aaaeed87ff6107b95 | [] | no_license | rgnlax/Algorithms | da00e2791b1a15a474be2fa8dc7f6fb20e345086 | 055206a92a83671c3b9cf9d98e70312ed7e9ce06 | refs/heads/master | 2021-01-10T05:11:47.610622 | 2016-03-08T21:03:37 | 2016-03-08T21:03:37 | 53,436,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,210 | cpp | main.cpp | //Во всех вариантах данной задачи необходимо реализовать указанный алгоритм сортировки массива целых чисел. Количество чисел в массиве определяется окончанием стандартного потока ввода и заранее не известно.
#include <iostream>
#include <vector>
void selectionSort(int *array, size_t count);
int main() {
std::vec... |
1ab158f3266f4d2ee90f7cacd8e880e5387a4b8f | 06da8e75c0615160dda7d9334f9bdf93f2d29ea1 | /Shiny/Game.h | 456d68d34bb3be529e74ad92a78e42c2ad1bb2b9 | [] | no_license | haoxiner/Shiny | d3daa327eb552aa6440a8cb715ed3893a4463ad3 | c0821306718951d6c7da8d5f612fa0cda2f9f1ea | refs/heads/master | 2020-06-11T07:23:58.967945 | 2017-06-16T13:16:15 | 2017-06-16T13:16:15 | 75,735,334 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 950 | h | Game.h | #pragma once
#include "Input.h"
#include "Mesh.h"
#include "Material.h"
#include "Entity.h"
#include "ThirdPersonCamera.h"
#include "ShaderProgram.h"
#include "MasterRenderer.h"
#include "Cubemap.h"
#include "Terrain.h"
#include "Player.h"
#include "Camera.h"
#include "MathUtil.h"
#include <vector>
namespace Shiny
{
cl... |
ed026593f9304a5ca0e8e691f72106f03d657a67 | fb6d28aa1255a2588e05aa7889ac0921fbb47aeb | /ClrsExercise/Chapter14 (Augmenting Data Structures)/14.1-7.cpp | edfb6406c6a518cfc7a857e37a0d9f220fef651a | [] | no_license | OasisGallagher/CLRS | c1471a05ec51ff47b193cc74047fd2efbe80e15b | c11843faff5ee50b59ba774800c6f8e973b9c6b6 | refs/heads/master | 2020-12-17T01:45:59.622658 | 2016-05-31T02:48:15 | 2016-05-31T02:48:15 | 59,834,685 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 368 | cpp | 14.1-7.cpp | /*
* 逆序对即, 对于数组A中任意的位置i和j, 满足A[i] > A[j]且i < j的(i, j)
* 数.
* 对于第j个插入到树中的元素(j = 1 ... n), j - RANK(arr[j])即为所求.
* 插入第j个数y之后, RANK即为1~j数中, 小于等于y的元素的个数, 那么, 这个数
* 被j减之后, 即为大于y的元素的个数, 即为逆序对的个数.
*/
|
48fc4f7e26a6dd20088fc024870427c663d513ec | f1c01a3b5b35b59887bf326b0e2b317510deef83 | /SDK/SoT_MysteriousNotes_classes.hpp | 8bb65c839976da4f435a6b5e2b6c2a31eb84f2d0 | [] | no_license | codahq/SoT-SDK | 0e4711e78a01f33144acf638202d63f573fa78eb | 0e6054dddb01a83c0c1f3ed3e6cdad5b34b9f094 | refs/heads/master | 2023-03-02T05:00:26.296260 | 2021-01-29T13:03:35 | 2021-01-29T13:03:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,781 | hpp | SoT_MysteriousNotes_classes.hpp | #pragma once
// Sea of Thieves (2.0) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "SoT_MysteriousNotes_structs.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
/... |
f0de60cfd7bd4525e502c4ab516c292acae2a545 | fd67f48ed77b16af95a592da382f92334b33b6d5 | /EasyTcpServer/EasyTcpServer/server.cpp | 42712ae62e708aa3d4ca19e1e9e1e293caec796c | [] | no_license | sunkiist/server-client | d1d570b13c9919dc525d2f12972ab1900e3b2b78 | 9d59849b5ec13d0a757d64008fdbce9f4827d70e | refs/heads/master | 2020-04-29T02:07:09.561793 | 2019-03-15T05:14:42 | 2019-03-15T05:14:42 | 175,753,068 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,530 | cpp | server.cpp | #define WIN32_LEAN_AND_MEAN
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#include<WinSock2.h> //此头文件必须在前面
#include<windows.h> //windows socket
#include<iostream>
#include <stdio.h>
#include<string.h>
#pragma comment(lib,"ws2_32.lib")//添加链接库
enum CMD {//表示命令的类型
CMD_LOGIN,
CMD_LOGIN_RESULT,
CMD_LOGOUT,
CMD_LOGOUT_RESUL... |
fb4de705edd8404338c5c52a2a055cc36df2e5d9 | c263bc50805e004b097ca125113668d956e97f6c | /VisAlg2DBase.h | 908aeb6f30590073b353543cd5888b03d5aaee78 | [] | no_license | veteran008/Lp2DBase | bde2268bb878fb8eeda9950c84b450273908c699 | 80543327b6ddb9222f0deec93c7d57bf2206cbef | refs/heads/master | 2020-12-10T03:25:45.162869 | 2017-06-27T11:31:13 | 2017-06-27T11:31:13 | 95,550,259 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 5,542 | h | VisAlg2DBase.h | #pragma once
#include <vector>
#include <ipp.h>
#include <mkl.h>
#include "ViType.h"
#define PI 3.14159265386
#define fitting_sigma 20
using namespace std;
enum ArcDirection//圆弧方向
{
CLOCKWISE,//顺时针
ANTICLOCLWISE//逆时针
};
typedef struct
{
IMG_RCOORD CirCen;//圆心
IMG_REAL Radius;//半径
}StructCircle;//圆
typedef struc... |
75027e63b724c910ffaf61baa8387073fa4d099f | 13240a810679cc98b5345fe884650f6f69f6b2e5 | /boj/5615.cpp | 2bc30070f49b2db2ee1208143e64e5defdb148a7 | [] | no_license | tristan3716/Problem-Solving | a7d76941f089e1a54fd7772bc7fa79236e3ac12b | c0df0748084eae31626985e00b1884d4adf29f3f | refs/heads/master | 2021-07-09T11:07:17.223598 | 2021-04-09T14:25:01 | 2021-04-09T14:25:01 | 240,870,428 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,570 | cpp | 5615.cpp | #include <iostream>
using namespace std;
using ull = unsigned long long;
ull alist32[] = {2, 7, 61};
ull alist64[] = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37};
inline unsigned long long addmod64(ull x, ull y, ull mod) {
x %= mod;
y %= mod;
return (x >= mod - y? x - (mod - y) : x + y);
}
inline ull mu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.