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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
135d107fcde613d6a6761c49b05397c64f7d3633 | 2929befda1ac3c85aa40143d2cb7e4de0b340e91 | /Anthill/src/RedAnthill.cpp | 87b6e41a56abfaeeb111e6dfad884ef23334f738 | [] | no_license | InjecT1309/Anthill | 60f9fa300a7e87ef2d5a0d27519729fc03e6fb43 | 7ffd1232f72c852c35ab7a856470875c7b0d76f5 | refs/heads/master | 2021-01-25T07:40:35.105046 | 2017-09-25T21:29:44 | 2017-09-25T21:29:44 | 93,648,158 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | cpp | RedAnthill.cpp | #include "RedAnthill.h"
RedAnthill::RedAnthill(int x, int y) : Point2D(x, y)
{
m_fill=red_anthill;
}
int RedAnthill::getTimer()
{
return m_ant_spawn_timer;
}
void RedAnthill::lowerTimer()
{
m_ant_spawn_timer--;
if(m_ant_spawn_timer<0) m_ant_spawn_timer=50;
}
RedAnthill::~RedAnthill()
{
//dtor
}
|
84b0516c608a2b80cb1d80427c1477f90c1b028a | 024b07663d349d5f2c6fd04db563307754a61ca4 | /SimulationChooseIVs/test/logical_index_test.cpp | 963554efbad0956a1bbb89bcd1e0b5e298221ea9 | [] | no_license | fditraglia/fmsc | b794059959705b68ea3ec992b48b8c0bf2affc73 | 5c913e7912a05064bc0d093ca7037bc6e32e8aae | refs/heads/master | 2021-06-30T14:32:59.409420 | 2016-09-02T15:30:06 | 2016-09-02T15:30:06 | 14,152,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 669 | cpp | logical_index_test.cpp | // [[Rcpp::depends(RcppArmadillo)]]
#include <RcppArmadillo.h>
using namespace Rcpp;
using namespace arma;
// [[Rcpp::export]]
mat logical_subset(mat M, vec col_indices){
uvec candidate_ind = find(col_indices);
mat out = M.cols(candidate_ind);
return(out);
}
// [[Rcpp::export]]
colvec est_selected(mat est, ... |
bd399a0281b8ea426f2c0511f4388aee8f9d2d77 | 751bdc3d365a64b18d78e8c2fb9f6ea00452764f | /axis/account/interactive.h | 30a413d0acde25cad1b2d97a4833bed758f13e92 | [] | no_license | ca2/app | b1de035566d9664aa7c5c9a94378cc352b1836ec | afdedd20df2f6dce81c63bc8a9db6de14503076e | refs/heads/main | 2023-08-27T07:19:45.584624 | 2023-08-26T12:28:28 | 2023-08-26T12:28:28 | 98,031,531 | 19 | 7 | null | 2017-08-14T11:13:14 | 2017-07-22T12:59:27 | C++ | UTF-8 | C++ | false | false | 437 | h | interactive.h | //
// account_interactive.hpp
// aura
//
// Created by Camilo Sasuke Thomas Borregaard Soerensen on 12/12/18.
//
#pragma once
////#include "acme/primitive/primitive/object.h"
namespace account
{
class CLASS_DECL_AXIS interactive :
virtual public ::object
{
public:
virtu... |
33bf695be8b2fce2560c8a6f66a388b9bd475ec8 | c4f8c05230083d5d1fa0376c10fe7bc0a2e9d4c8 | /Ordenacao/Bubble/BubbleSort.cpp | a50dcbe558fb620b5f511b09aae8877d89e08f3a | [] | no_license | kalinathalie/Sort | a5ee51259a41e774c4bac5cb20b69584adbaf711 | 47aac2d653310ebd3016e62c33df9c39fd59fb7e | refs/heads/master | 2022-04-29T08:01:03.357437 | 2022-04-16T02:53:26 | 2022-04-16T02:53:26 | 85,905,381 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 176 | cpp | BubbleSort.cpp | #include "Sort.h"
void sort(int v[], int size){
int i, j;
for(i=0; i<size ; i++){
for(j=0 ; j<size-i-1 ; j++){
if(v[j] > v[j+1]){
swap(v[j], v[j+1]);
}
}
}
}
|
89fbe76e0aae2fa65ff3a89685b4bc8514dc1925 | 1aaa8360941ddb2cd0540f0febc7db33f1259199 | /Course #4 (Brown Belt)/Week 6/Transport Guide/B/main.cpp | 5304ba6a52e771034a9597d856dd2835ab5b0505 | [] | no_license | rudenko-gold/cpp-coursera-specialization | dfc1d7da65a6be42e3e7be149c182e6c249fd5e1 | 50f9e2d7b7b8fdc5cce7eb5877b887d241cc9a5c | refs/heads/master | 2021-07-11T19:42:32.216337 | 2020-09-04T15:54:09 | 2020-09-04T15:54:09 | 195,674,185 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 148 | cpp | main.cpp | #include "transport_manager.h"
int main() {
//test_all();
TransportManager manager;
manager.performQueries(std::cin);
return 0;
} |
6c1c3987c08d17e7ce737e82a12c0ed7aa9587bb | c617d64b6bbd905cbe320582dca81f61de467935 | /ku/log/util.hpp | 5fa1f7a091153246847048db7b7a84c4f4028463 | [] | no_license | ralphjzhang/Ku | 42e13793e45550db148ee1fb7f96847470f450f1 | b2a1ee5154b1ef23010dd0fcb9cda15263919389 | refs/heads/master | 2022-07-06T06:52:45.112820 | 2022-06-14T10:52:50 | 2022-06-14T10:52:50 | 2,581,566 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,002 | hpp | util.hpp | /***************************************************************
* Copyright 2011, Zhang, Jun. All rights reserved. *
* Author: Zhang, Jun (ralph dot j dot zhang at gmail dot com) *
* *
* This source code is provided with absolutely no warranty.... |
37cd258a9d7ebebd788a60383897becbfd59eeb3 | 7ce91a98ae434dbb48099699b0b6bcaa705ba693 | /TestModule/HK1/Users/20110679/bai4.cpp | 83086012c0b19b3423e2f58d4a7f845d49683235 | [] | no_license | ngthvan1612/OJCore | ea2e33c1310c71f9375f7c5cd0a7944b53a1d6bd | 3ec0752a56c6335967e5bb4c0617f876caabecd8 | refs/heads/master | 2023-04-25T19:41:17.050412 | 2021-05-12T05:29:40 | 2021-05-12T05:29:40 | 357,612,534 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 542 | cpp | bai4.cpp | #include <iostream>
#include <math.h>
using namespace std;
int snt(int n){
if(n<=1)
return 0;
else
for(int i =2 ;i<=sqrt(n);i++)
if(n%i==0)
return 0;
return 1;
}
void main(){
int m,n,a[100][100],i,j;
cin>>m>>n;
for(i =0;i<m;i++)
for(j= 0;j<n;j++)
cin>>a[i][j];
int min,count = 0;
for(int k=0;k<n;... |
ca5dcc1559ccc97c1fb54c04e567902a9e695374 | 0480ab4afd7ccb14a457b433a2c1467e9a11f234 | /include/codegen.hpp | 933678c69ceb7cd3c1cb0f597fae5acd90a90235 | [
"MIT"
] | permissive | magicmoremagic/bengine-blt | 2c364d554d89cbb8c55c1c6da5232371efca5b74 | fc2e07107dca0689d44ebd066b74d5bac7cacfa8 | refs/heads/master | 2021-01-13T04:10:39.200277 | 2018-01-06T06:46:28 | 2018-01-06T06:46:28 | 77,801,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,458 | hpp | codegen.hpp | #pragma once
#ifndef BE_BLT_CODEGEN_HPP_
#define BE_BLT_CODEGEN_HPP_
#include <be/core/console_indent.hpp>
#include <sstream>
namespace be::blt {
///////////////////////////////////////////////////////////////////////////////
template <typename Str>
void single_quote_escape(const Str& data, std::ostream& os, I32 wra... |
4c3c489a225c0f4fa6c449057774c53597f2f82c | e32710c56e37207ba7129f0fcec213b34108cbec | /retroshare-nogui/src/menu/stdiocomms.h | bc559af4c3ec15793af7d022bc4f808d153004a0 | [] | no_license | sirjenster/RetroShare | 963f56b5662d3c41bf8421124c220c36dc6a38f1 | 47328a4ec9f1b26f84081cd674ced8e5046458cc | refs/heads/master | 2021-01-18T10:33:27.768840 | 2015-11-19T18:11:02 | 2015-11-19T18:11:02 | 42,929,480 | 2 | 0 | null | 2015-09-22T11:24:23 | 2015-09-22T11:24:23 | null | UTF-8 | C++ | false | false | 1,735 | h | stdiocomms.h | /*
* RetroShare External Interface.
*
* Copyright 2012-2012 by Robert Fernie.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 2.1 as published by the Free Software Foundation.
*
* This library is distributed in th... |
6d93f4f9b59816be481b57759836b2b887e98246 | a75d0418b2143d6f59635a8833bff49bc903df5e | /DofusTypes/PaddockInformations.cpp | 67d12d65b5df9b9675be3dd8c8ed520c1c3f5910 | [] | no_license | Arkwell9112/dofus_bot | 30b80850ba41b6a2b562705ec8aa1a6c87cfb8f8 | fc1b805b70c0ed43cbc585322806ece89d057585 | refs/heads/master | 2023-01-16T01:08:06.710649 | 2020-11-23T20:53:00 | 2020-11-23T20:53:00 | 314,084,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 552 | cpp | PaddockInformations.cpp | #include "PaddockInformations.h"
#include "Item.h"
#include "../BotCoreAPI/BotCoreAPI.h"
void PaddockInformations::deserialize(CustomDataInput *input) {
this->_maxOutdoorMountFunc(input);
this->_maxItemsFunc(input);
}
void PaddockInformations::_maxOutdoorMountFunc(CustomDataInput *input) {
this->maxOutdoo... |
f40d43063e93203239f3abeb2c1066a63d0e4119 | 720d46c469104d5d272b787e08c8beb25371bf4d | /fwlib/unknown.h | 24a540310a36ba3742d27851f9848751abe413ef | [] | no_license | jfrancik/FreeWill | 740f3df741685f47122cc64574b5460809ebe6fd | 60a2944c95134a1539c53d0075d4b8fb232b47be | refs/heads/master | 2020-04-06T06:31:19.125863 | 2016-06-19T14:31:25 | 2016-06-19T14:31:25 | 2,849,302 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,655 | h | unknown.h | // UNKNOWN: a Mini Library for DLL COM Servers
// Facilitates creating COM DLL server modules without use of ATL
//
// Provides:
// - template-based UNKNOWN base class with full implementation for IUnknown interface
//
// Does not require linking to CPP or importing LIB files
// long g_cComponents variable must ... |
ea4db6ebb01f9d3aab09beacce44c7a1fccbc5b0 | b254d97867952fce10fc81f7499a213c6cd32c9f | /Color.h | 8cc5509bfc510eb2ddb13fca6846298189c0f756 | [] | no_license | ritobanrc/DataStructProject2 | a6d2d3ae3ce82b8df885c1635fb9d811392b1bb6 | 3572ad00bf40b4842495b9232f7b7e9d67e0bb2d | refs/heads/main | 2023-01-31T05:35:24.750250 | 2020-12-16T05:58:48 | 2020-12-16T05:58:48 | 320,905,976 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,008 | h | Color.h | /*
* File: Color.h
* Author: ritoban
*
* Created on October 25, 2020, 7:26 PM
*/
#include <map>
#include <string>
#include <cinttypes>
#ifndef COLOR_H
#define COLOR_H
/* This class represents a Color -- specicially a 4 bit color based on ANSI escape sequences. See https://stackoverflow.com/questions/4842424/... |
54bc04f1c0b34146799880afb9351c7f5d31d0e2 | 176565540f0ddb9d861af7220d747611c2a84009 | /Parts/roles/brender/src/3dmatlrc.cxx | 9986919b1b8d2d9260054bc350b0870528180de7 | [
"MIT"
] | permissive | magic-lantern-studio/mle-parts | 0d3ac3e542ac8f97c0a7fd1a5da3f3aaa77b330e | 8d13f647b4176d5c57bfabcf4a27c8aaee4cc380 | refs/heads/master | 2022-10-13T16:07:39.547426 | 2022-09-12T22:49:45 | 2022-09-12T22:49:45 | 128,479,014 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,360 | cxx | 3dmatlrc.cxx | /** @defgroup MleParts Magic Lantern Parts */
/**
* @file 3dmatlrc.cxx
* @ingroup MleParts
*
* This file implements the carrier for a 3D Material Registry property
* targeting the BRender platform.
*
* @author Mark S. Millard
* @date May 1, 2003
*/
// COPYRIGHT_BEGIN
//
// Copyright (C) 2000-2007 Wizzer Wo... |
2e073cc93193f52f2f57eaa8f4c70b3cb84ab134 | 1f1b4928565732e402b2bf27fa33c6cab8ed8138 | /10/10.1.3_Arrays/main.cpp | 2933dde6cbd0d169c2b099b97e0d08e0c64f9870 | [] | no_license | MustaphaRashiduddin/accelerated | 68b7b7703e6c79bcd0d583545da7b02a2c1ab089 | d768719c20b2db2f399f354e67b8253c14ab3f12 | refs/heads/master | 2021-08-23T10:42:56.556557 | 2017-06-24T03:37:01 | 2017-06-24T03:37:01 | 113,058,821 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 229 | cpp | main.cpp | #include <iostream>
using std::cout;
using std::endl;
int main(int argc, char *argv[])
{
const size_t NDim = 3;
double coords[NDim];
*coords = 1.5;
cout << coords[0] << endl;
return 0;
}
|
f8e88dc310a78901ca023043725855b3f10cd599 | fd1f8d39ecad4443fa43d99380e71616372a8d18 | /COM_Data_Reciever/mainwindow.cpp | dbd57d9e9dccb08e5e5c50bbb3b20d38c6e485e5 | [] | no_license | rubndubn/telemetrie_old | b36d35ccb3b30c8d7751784070a30615fa4555f5 | bfa96db348e1c27fea7e8cbfdb3e38ccc18f4178 | refs/heads/master | 2020-03-18T17:00:33.320774 | 2018-06-21T23:45:21 | 2018-06-21T23:45:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,514 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
connect(&serial, SIGNAL(readyRead()), this, SLOT(readData()));
serial.setPortName("COM4");
serial.setBaudRate(QSerialPort::Baud115200)... |
d843cd24e2570d2647e0b98494608fb28a9235bb | b5e242c6afaad1973f1ff3a86118e8e387ecd94b | /leetcode-algorithms/077. Combinations/combinations.cpp | 17f0bb5f6a300d9b67a6aec6f9390e192af708c0 | [] | no_license | csyang79/algorithms-and-oj | e80c063585585ca5c447d7e657b7b5d3b06edd42 | ccce7f0f6b14d02d777f09fb4a3ba1e78ecd958d | refs/heads/master | 2021-04-12T08:16:11.538385 | 2019-10-02T12:08:48 | 2019-10-02T12:08:48 | 125,964,716 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 570 | cpp | combinations.cpp | //subset, dfs
class Solution {
public:
vector<vector<int>> combine(int n, int k) {
vector<int> nums(n);
for (int i = 0; i < n; ++i)
nums[i] = i + 1;
vector<vector<int>> res;
vector<int> cur;
dfs(nums, 0, cur, res, k);
return res;
}
void dfs(vector<int>& nums, int start, vector<int>& cur, ve... |
fa878b98b01471ee7595fc450f8cee776c5d1a39 | 88d210c34af6607a5818334dcf75a87d6d05d808 | /Klein.Dustin-Program2/Klein.Dustin-Program2/Student.cpp | 23b0d8efba060a5d6c7e61184846b724b851c0ad | [] | no_license | Dustin-Klein/CS-201-Assignments | 0649f62bfa6d04bd819fe7f5a96fba4991b8b177 | 7e812b04b46b9ff4d7ba9d657b945dae66f2f4bd | refs/heads/master | 2020-03-26T13:04:31.772563 | 2018-08-16T01:54:51 | 2018-08-16T01:54:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,003 | cpp | Student.cpp | #include <iostream>
#include "Student.h"
Student::Student(int ID, string fName, string lName) {
if (ID > 0)
studentID = ID;
else
studentID = -1;
firstName = fName;
lastName = lName;
}
Student::Student() {
studentID = -1;
firstName = "";
lastName = "";
}
string Student::getFirstName() {
return firstName;... |
4bc77d3dfd088f44bde7b5beb1da6174c5c2da2b | 46e778ec12a16b3b8d4f44f948f4f955e0c4c0ff | /path.cpp | c4d219a558bdfd70c6165dabc81f5b862b02ac74 | [
"MIT"
] | permissive | dferndz/path-finder-visualizer | 0f2b9918281ae6e0bfc4816e55e38cac6b1f94c2 | 4ae321b23bc4a64194cb06acaafef3e1433651fe | refs/heads/main | 2023-02-01T09:26:53.806509 | 2020-12-20T03:54:42 | 2020-12-20T03:54:42 | 316,873,826 | 2 | 0 | MIT | 2020-12-05T22:32:26 | 2020-11-29T04:14:47 | C++ | UTF-8 | C++ | false | false | 3,044 | cpp | path.cpp | #include "path.hpp"
#include <thread>
PathFinder::PathFinder(Board *b, color_t empty, color_t target, color_t seen, color_t visited, color_t path, bool diagonal_paths, int step, int back) {
_board = b;
_empty_color = empty;
_target_color = target;
_seen_color = seen;
_visited_color = visited;
_sleep_step =... |
d5d7e2bee11a3955a155be86bb266107b6081d74 | 61225acb6eb55cfbe464c7554b627fa92b736d97 | /cisco-ios-xe/ydk/models/cisco_ios_xe/Cisco_IOS_XE_vlan_oper.cpp | 608f63719f809f2758b0f88dda25e6c32ea84cff | [
"Apache-2.0"
] | permissive | CiscoDevNet/ydk-cpp | a4301f2e512e50b1d4287a04ae50e361cffa3f4e | f84684214cff6dc640338ccca9ecdf13d308205f | refs/heads/master | 2023-08-16T18:05:25.822935 | 2022-02-19T18:27:13 | 2022-02-19T18:27:13 | 74,431,871 | 19 | 13 | Apache-2.0 | 2023-09-06T17:29:35 | 2016-11-22T03:48:08 | C++ | UTF-8 | C++ | false | false | 12,925 | cpp | Cisco_IOS_XE_vlan_oper.cpp |
#include <sstream>
#include <iostream>
#include <ydk/entity_util.hpp>
#include "bundle_info.hpp"
#include "generated_entity_lookup.hpp"
#include "Cisco_IOS_XE_vlan_oper.hpp"
using namespace ydk;
namespace cisco_ios_xe {
namespace Cisco_IOS_XE_vlan_oper {
Vlans::Vlans()
:
vlan(this, {"id"})
{
yang_name ... |
dce7492b5800846905322027122cdbe9f6618c35 | 04314015734eccb309857652e73944be8996fedc | /src/ExternLibs/fox/include/FXPath.h | b30899cc61891fcdaaa503b827f00a0f0c1958ff | [] | no_license | onexianjian/tsiu | 0ed1c2df3f39a445e039d1ac8752a189dbfe21e9 | 7f37d79588d3655ec52f7cfd04019e332b5bcdf7 | refs/heads/master | 2020-05-20T09:22:21.261314 | 2015-06-11T06:41:18 | 2015-06-11T06:41:18 | 185,498,769 | 1 | 0 | null | 2019-05-08T00:38:11 | 2019-05-08T00:38:11 | null | UTF-8 | C++ | false | false | 6,809 | h | FXPath.h | /********************************************************************************
* *
* P a t h N a m e M a n i p u l a t i o n *
* ... |
eb6e486afce7d655e56add575a02d370e8f39ff8 | 0828a783fab57142f9c6c656bcb0e77bfa8d9f26 | /baekjoon/algorithm_study/dfsnbfs/P3055.cpp | 5d859952c85ffc9cad16a2a9215af26f70d0d502 | [] | no_license | Hyorm/ProblemSolving | 6441d375a48d0911c97776020697653e537afc76 | 1f7973024d32bd8252d7c7dcf88cd6107ae9a6be | refs/heads/main | 2023-08-22T17:50:54.100474 | 2021-10-04T01:52:52 | 2021-10-04T01:52:52 | 336,786,080 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,583 | cpp | P3055.cpp | #include <cstdio>
#include <queue>
#include <memory.h>
using namespace std;
char M[51][51];
int V[51][51];
int dx[4] = {1, -1, 0, 0};
int dy[4] = {0, 0, 1, -1};
int R, C;
void water(){
int F[51][51];
for(int i = 0; i < R; i++)memset(F[i], 0, sizeof(int)*C);
for(int i = 0; i < R; i++){
for(int j = 0; j < C; j++){
... |
9a6d62343b4030d5801ccaf33a120a94931a09f9 | dcb522183ccd7e13d704c9d117b524bdd99db0b2 | /src/TMonitor.cpp | 03fd92c36a070b483c061a71a95db358d586f57b | [] | no_license | rondinellebrazolino/pccp | 0fb9476eeeb5b58b219414da21dc78b610e95330 | 2aae20100c151f0c9263a23691747210b046015a | refs/heads/master | 2021-01-10T04:28:05.928192 | 2015-12-01T12:16:43 | 2015-12-01T12:16:43 | 43,699,919 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | cpp | TMonitor.cpp | #include "../include/TMonitor.h"
#include "../include/TPar.h"
#include "../include/TBranch.h"
#include <iostream>
TMonitor::TMonitor(int mId){
//ctor
id = mId;
}
TMonitor::~TMonitor(){
//dtor
}
///Retorna o id do monitor
int TMonitor::getId(){
return id;
}
///retorna o custo do monitor
int TMonitor::getCu... |
a72eb66b2b608b7d3c2944ccc1784d8d84941173 | 6b5bbe2a1c0a1ee5bf73d8d1ce67086a8d70e019 | /ID3/require.h | 4c0f579b803a9e5138306724c868895035530e7d | [] | no_license | lujiaxuan0520/decision-tree-cpp | 3997ed757459eca37010fb3f3bbc39fbd82ef095 | c717e3eea1c75d32be62107a9bca3b59e1ae1806 | refs/heads/master | 2021-08-16T22:08:40.997856 | 2017-11-20T11:38:53 | 2017-11-20T11:38:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,723 | h | require.h | #ifndef REQUIRE_H__
#define REQUIRE_H__
#include "decisionstructure.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <stack>
#include <string>
#include <map>
#include <vector>
inline void assure(std::ifs... |
6ebb25559245cd47e762c3c591028471e6c4f2a0 | ff39c81d6a24920d4c626658677a58db7b477b90 | /Source/Unreal_CPP_Combat/DiceRoll.h | 112e786ca6013a28ff5ac1a9f18a028cbd666d4d | [] | no_license | denfrost/Unreal_KOTOR_Prototype | ef633677c9fca2aee0d3183f22f151158d149e86 | f90bb722efc387585da79ccf18674064e1bbcff1 | refs/heads/master | 2023-04-30T18:31:04.550636 | 2021-04-19T10:57:22 | 2021-04-19T10:57:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,229 | h | DiceRoll.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "Math/UnrealMathUtility.h"
#include "DiceRoll.generated.h"
/**
*
*/
UCLASS()
class UNREAL_CPP_COMBAT_API UDiceRoll : public UBlueprintFunctionL... |
d40408390720e6e3b027d6ad9750eb9f7c281278 | 5950c1da3c975cdf203287d214c039cba9530683 | /HelloConstBuffers/Mesh.cpp | f3a9493af62ebdf4afb3b3760dd915ef048deed3 | [] | no_license | ousttrue/d3d12_practice | fd4eb640d2762c0947ea88afc5aa24565a9efdf9 | fd7645b908ff4e6de289af1c1b5b260d9c5d8b97 | refs/heads/master | 2023-06-20T02:20:17.998592 | 2020-02-17T19:41:12 | 2020-02-17T19:41:12 | 238,118,033 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,893 | cpp | Mesh.cpp | #include "Mesh.h"
#include "ResourceItem.h"
#include "CommandList.h"
void Mesh::IndexedCommand(CommandList *commandList)
{
auto indexState = m_indexBuffer->State();
if (indexState.State == D3D12_RESOURCE_STATE_COPY_DEST)
{
if (indexState.Upload == UploadStates::Uploaded)
{
... |
d7e4606742314acfd17754accc052625794c342e | 004e444615a2f0e01d0d500a049e36d447a30fd4 | /learning-opengl/src/Rendering/IndexBuffer.h | af2b4dfeb28a53d484ea3555ef9bdc645f8a8660 | [] | no_license | QuillDev/learning-opengl-cpp | c64f92c0d806bd59ff9f6121a54b72ccc07811fb | 19a57adc0afb6344d1797ff18bab0e158254f077 | refs/heads/master | 2023-03-16T18:49:51.144538 | 2021-03-12T00:20:05 | 2021-03-12T00:20:05 | 346,552,685 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 356 | h | IndexBuffer.h | #pragma once
class IndexBuffer {
private:
unsigned int m_RendererID;
unsigned int m_Count;
public:
IndexBuffer(const unsigned int* data, unsigned int count); //constructor for new vertex buffers
~IndexBuffer();
void Bind() const; //bind the buffer
void Unbind() const;//unbind the buffer
inline unsigned int Ge... |
4bb8f1e334e31cac16884de631e5a9194bb8f731 | 87fb387383db8f0b634b35c38e88da29b2580155 | /lib/small_functions.hh | 68682934d22efc3e28710c816d1c25df39adccf4 | [
"Apache-2.0"
] | permissive | Pandabirds/pShell | fef4e560be9f049c41b2e1337b87935a59538ae3 | ef4ff16ce24753300bc7fd500e6afbab71f0ccb3 | refs/heads/main | 2023-04-26T08:35:37.297138 | 2021-05-11T17:03:23 | 2021-05-11T17:03:23 | 363,656,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 730 | hh | small_functions.hh | /**
@file small_commands.hh
@brief A header file for very small files.
@namespace small_functions
@brief The namespace for storing the functions for the small commands.
*/
#ifndef PSHELL_LIB_SMALL_FUNCTIONS_HH_
#define PSHELL_LIB_SMALL_FUNCTIONS_HH_
#include "helper_functions.hh"
#include <time.... |
f407aa78d2ad7e256b3307779a406168838aac03 | 2118dd7a5237c1e5cb3c6821b9b3b41c9c81dfdb | /checks/globus/src/globus/global_var_callback.cxx | 01a8425aa9cffbf771112b0decc3014763849b01 | [
"BSD-3-Clause"
] | permissive | bodand/cg3 | 42d75f4db49c40172fb51af9d441c812a64b328f | e23075c542b658085f09dd10e712dd3c72773c4e | refs/heads/trunk | 2023-06-08T11:33:34.429639 | 2022-12-28T21:00:54 | 2022-12-30T13:37:45 | 570,995,405 | 0 | 0 | NOASSERTION | 2022-12-06T21:10:23 | 2022-11-26T20:11:30 | C++ | UTF-8 | C++ | false | false | 2,736 | cxx | global_var_callback.cxx | /* cg3 project
*
* Copyright (c) 2022 András Bodor <bodand@pm.me>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notic... |
c9f676139230ddea29cef6acc4d6ed1a3b3462d7 | e4f6ae9120feb6e6583d17f108681c4e6a1b843c | /highestAffinityPair.cpp | db82883f78652928fb79c7a8f003ce010c58678e | [] | no_license | LiehuoChen/EPI | f9db360039ac5028c476c0d9acb2fdecf4070121 | 3fdd952a6e815f58a3e6812964e2b651f597c6ed | refs/heads/master | 2021-01-01T05:47:09.386800 | 2015-08-10T20:35:44 | 2015-08-10T20:35:44 | 40,504,569 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,040 | cpp | highestAffinityPair.cpp | #include <set>
#include <unordered_map>
#include <iostream>
#include <algorithm>
#include <utility>
#include <vector>
#include <string>
using namespace std;
pair<string, string> highestAffinityPair( istream &ifs) {
unordered_map<string, set<string>> page_user_map;
string page, user;
while (ifs >> page >> user) {
... |
4f2077696a005ba1dc08f952eef127d17f8e18a9 | a16aab9040b35c3e50e0dfc41869200037f3fe3a | /lib/LBDatabase/src/entity.cpp | 087251f11c93fc618e8e0b4b90605d521981614b | [] | no_license | Kampfgnom/LBDatabaseEditor | 3579da70527a603f2e0646ae9238582e5e82dac6 | 63fa849fd09938a5ece43019afa9f45e506b5290 | refs/heads/master | 2021-01-19T08:14:05.445330 | 2012-01-30T22:42:56 | 2012-01-30T22:42:56 | 3,101,037 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,676 | cpp | entity.cpp | #include "entity.h"
#include "attribute.h"
#include "attributevalue.h"
#include "context.h"
#include "entitytype.h"
#include "functionvalue.h"
#include "relation.h"
#include "relationvalue.h"
#include "row.h"
#include "storage.h"
#include <QDebug>
namespace LBDatabase {
/********************************************... |
e5fd5edd85417dd8adb355c29481f91d69ed79e1 | d093e5dbdf4fb08eacbe2ec3cfc070e4c58c0f3e | /Source/Core/TornadoEngine/Features/Graphic/Begin/Maker/Units/TreeNodeMakerSystem.cpp | d2af69b366a55e887e44455ed610ba4418944d7a | [
"MIT"
] | permissive | RamilGauss/MMO-Framework | 3bd57e800f20b6447b494009eb3d7a49dfeb1402 | fa4ec6427a3a891954f97311af626f8753023ec2 | refs/heads/master | 2023-09-02T17:50:25.742920 | 2023-09-01T09:17:26 | 2023-09-01T09:17:26 | 15,496,543 | 32 | 20 | MIT | 2023-05-11T07:10:07 | 2013-12-28T17:54:28 | C++ | UTF-8 | C++ | false | false | 988 | cpp | TreeNodeMakerSystem.cpp | /*
Author: Gudakov Ramil Sergeevich a.k.a. Gauss
Гудаков Рамиль Сергеевич
Contacts: [ramil2085@mail.ru, ramil2085@gmail.com]
See for more information LICENSE.md.
*/
#include "TreeNodeMakerSystem.h"
#include <ImGuiWidgets/include/TreeNode.h>
#include "NodeIconComponent.h"
#include "VisibilityComponent.h"
#include "T... |
24f21ab212f17b79ba38b7f6599706cc093930d4 | 3a918810fff9810a3e77ba6e8d323cd67b99f4cd | /ArduinoPlatformio/02_demos/25 debug/01_ATtiny85/02_DigiCDC/a03readLed/a03readLed.ino | cf6de9a5f00490634f1b89117c952c5446877b6d | [] | no_license | ramonjunquera/GlobalEnvironment | 7cdb81e7dd30619016ee36f3d4501ebb13891d8b | d099ce6fbaa4e9f570428ca30a058bf75a4ac4b5 | refs/heads/master | 2023-03-08T02:36:07.720569 | 2023-02-20T08:58:18 | 2023-02-20T08:58:18 | 110,946,331 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,334 | ino | a03readLed.ino | /*
Autor: Ramón Junquera
Fecha: 20191027
Tema: Sistemas de debug en ATtiny85. Librería DigiCDC.h
Objetivo: Lectura e interacción
Material adicional: ATtiny85, breadboard
Descripción:
El ejercicio consiste en leer la información recibida.
Si se detecta el carácter 1, se encenderá el led integrado en pla... |
7616c113dea8c4a5d2086f5aa0a9a6129585fba8 | ffd0ac0c7a24a6e9f3d9bee71fa7db30c4b8fb4f | /practice5/search/crawl.cpp | 97350aece910474ca3e36372dcd85ab5b16debe6 | [] | no_license | yunhaoz/C-Data-Structure | 63ab522a7802d2a5c6dacfdfa74b3e117e57a7dc | dc01db11cdc139d71c3ccf69719772a843572a9c | refs/heads/main | 2023-08-23T15:15:04.215445 | 2021-10-23T05:22:32 | 2021-10-23T05:22:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 828 | cpp | crawl.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <map>
#include <set>
#include "md_parser.h"
#include "txt_parser.h"
#include "util.h"
using namespace std;
int main(int argc, char* argv[])
{
if (argc < 3) {
cout << "Must provide an index file and output file" << endl;
return 1;
... |
304de7ebaa26197788f594b3d88ea559589c7f51 | a01851ad710157c72e2a122a1f7735639f6db225 | /T860. Lemonade Change.cpp | 74f7dae520b7a48823709c09e7b233c087f35d9d | [] | no_license | we-are-kicking-lhx/xinxinalgorithm | 9089629b210a5a0e199f374c74afc24742644f03 | e988e3bca6438af6933378f374afb2627a5708fe | refs/heads/master | 2021-06-27T10:50:22.979162 | 2020-11-23T07:01:23 | 2020-11-23T07:01:23 | 173,912,054 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 729 | cpp | T860. Lemonade Change.cpp | class Solution {
public:
int m[3]={0};
int a[3] = {5,10,20};
int greedy_search(int num){
int i = 2;
while(i >= 0){
if(num < a[i] || !m[i]){
i--;
continue;
}
num -= a[i];
m[i]--;
}
if(!num)return 1... |
406ed05950bbfd6db942095ec150743036dcd01c | c844d13abca82bdec9ec6cde85a27de270a76ca3 | /174b/origin_reader.h | d5fee45194afb3a2140fc010f57ae02c19fd2709 | [] | no_license | georgexxu/cs174B-final-project | fb7965876381cbbc6fc63a134893d6b7bb3aab27 | 0f275af9ce9af68c030251af7e281df0afe72c01 | refs/heads/master | 2021-09-09T14:53:49.665342 | 2018-03-17T04:25:25 | 2018-03-17T04:25:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,609 | h | origin_reader.h | //
// reader.hpp
// 174b
//
// Created by Xiaofeng Xu on 24/02/2018.
// Copyright © 2018 Xiaofeng Xu. All rights reserved.
//
#ifndef origin_reader_h
#define origin_reader_h
#include<string>
#include<iostream>
#include<fstream>
#include <stdio.h>
#include<algorithm>
#include<vector>
using namespace std;
typedef ... |
376461b721423eeebb2e83530922590add56d21c | 449dbc9c7d26de12588ac27c4628ce75da0629c6 | /demo/cpp/video.cpp | 0d496eae68d4d579f70bf3bb07eed26249dc2291 | [
"BSD-3-Clause"
] | permissive | berak/opencv_smallfry | fde87d2b9aa0698cfc3cdd2d3ac286e0da7e0509 | 2653a3b823499d1412c5a1d6dd977502d88d6590 | refs/heads/master | 2022-07-07T23:41:39.914141 | 2022-07-03T19:58:06 | 2022-07-03T19:58:06 | 12,484,192 | 61 | 28 | null | 2019-01-16T07:01:08 | 2013-08-30T10:39:40 | C | UTF-8 | C++ | false | false | 490 | cpp | video.cpp | #include "opencv2/opencv.hpp"
using namespace cv;
#include <iostream>
using namespace std;
int main(int argc, char**argv)
{
int id = argc>1 ? atoi(argv[1]) : 0;
VideoCapture cap(id);
namedWindow("ocv", 0);
if (! cap.isOpened())
{
cout << "could not open the VideoCapture !" << endl;
return -1;
}
Mat frame;
... |
ec07cb95d50f100b7a3e64777bf2b8735995905d | 50ff170af16974fa220efc13533729b635719b83 | /libws++/server-http.cpp | cd4ba864e523fab111af7b3f66d2e6b4f6ce9686 | [] | no_license | drsubs/ev3webapp.js | 987634a3124f8c1656bf3738e8e5b2f7718f6149 | e17267b51f973ab3db6fb3e48a2279720cc5509f | refs/heads/master | 2021-01-10T12:20:31.865645 | 2016-03-23T14:00:51 | 2016-03-23T14:00:51 | 54,563,643 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,607 | cpp | server-http.cpp | /*
* libwebsockets-test-server - libwebsockets test implementation
*
* Copyright (C) 2010-2015 Andy Green <andy@warmcat.com>
*
* 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:
*... |
823558cf1a72d382c54f3e2a09b6b240ada9ed10 | cca4b969b1c431dbf8a085284f2c23ac9a09890f | /gui/controllers/NoteSelector.h | 207981834488206231ffcf8cad66473a726b7edb | [
"BSD-3-Clause"
] | permissive | digited/stand | 9a9fbc60a3e188b4cfe4dbea2729f6e82d33ea30 | 3a0f3aceebe1f1aa747f465141421f65edf49a84 | refs/heads/master | 2021-01-15T17:14:31.914023 | 2013-08-31T16:10:53 | 2013-08-31T16:10:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,204 | h | NoteSelector.h | /*
*
* NoteSelector.h
* (c) HAL@shurabaP
* 2013/07/26
*
* These files are distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTI... |
e35aac134e0cd229fe6f8782444974309abd3138 | c48e5a0d4c8b1a98c588266d744c2428aec6bb13 | /arraylist.cpp | 5b0a2fe6dd37dcea15d1d4c5e47cc12e2e38fd73 | [] | no_license | camyllaoliveira/camylla.Huff | 5a4a3328eb4a41e08adbd1c3ed3852dd3aeb6209 | 64f2cb532b1d23893d129f2d3010395078abcc01 | refs/heads/master | 2021-01-21T11:44:56.068671 | 2014-12-15T14:02:36 | 2014-12-15T14:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,747 | cpp | arraylist.cpp | #include "arraylist.h"
ArrayList::ArrayList(int size)
{
maxSize = 256;
sizeList = current = size;
aList = new Node* [maxSize];
}
ArrayList::~ArrayList()
{
delete []aList;
}
void ArrayList::clear()
{
delete []aList;
sizeList = current = 0;
aList = new Node* [maxSize];
}
void ArrayList::a... |
c98b2adb670d713c282491383509782bbc62ba8d | 3ff4d1d3b8477190fcb785d9a3cd7e0257cbc191 | /网易雷火笔试题.cpp | 5ad2448186231698464c00b3e59886ecbcc26bd7 | [] | no_license | zhourongtu/ZRTCPlusPlusAlgo | 6a66d0dea7029c0542fc09cfbba75c08fd2dd526 | 4e19bb3b6d5bb779331d827cef6e06b4f272f172 | refs/heads/master | 2022-12-02T23:39:55.741646 | 2020-08-27T06:56:52 | 2020-08-27T06:56:52 | 260,489,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 441 | cpp | 网易雷火笔试题.cpp | // 第一题、交换两个子树(非递归交换)。BFS(碰到M的时候做一个反操作)
// 第二题、可以弄出的包裹数。暴力,排序,每个数字减1。
// 第三题、替换、ESC(撤销选中) 1键。选中全部、复制、粘贴 2键。
// 计算打N个字需要的最少按键次数。
// 使用DP。
// 第四题、模拟题。模拟消消乐。将题目进行分解,最后%10。不知道为什么。
|
2542affca122c589baf452880e16f960b25698fe | 85ab3929ec0915d4b6383ff3fcca1f3e5e0b3ba6 | /stereo_cam_calibrate/src/StereoCalibrator.cpp | e5fcc38c18254b1ed327ddc16361eb973e77050b | [] | no_license | ljb2208/ljb_ros_ws | bec2bfff2a3b8b951b6d1d7d72ad50d18d095823 | 10895267e30857513a0d2da49faac61fdf0b1298 | refs/heads/master | 2016-09-06T16:18:26.959257 | 2015-04-26T23:02:36 | 2015-04-26T23:02:36 | 17,831,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,892 | cpp | StereoCalibrator.cpp | /*
* StereoCalibrator.cpp
*
* Created on: Mar 24, 2014
* Author: lbarnett
*/
#include "../include/StereoCalibrator.h"
StereoCalibrator::StereoCalibrator(int num_corners_x, int num_corners_y, float square_size, int window_size, int zero_zone, int max_iterations, double epsilon, double alpha) {
// TODO Auto... |
6181c43bf19848c3fd38fd99fe0a36b378b5ec88 | d828a4a7d07966721b858803c450104ba2de68f0 | /ins_sort.cpp | 6efaeaf703bf27a726e0dd0dac982574a6a11a2d | [] | no_license | Poornima-Kalyan-Sundaram/practise | c5c578434ec071dcc6cae92ddaf589485f383f3b | 7e4a130cdd7eb46c15a6aa76531789b0d02558fb | refs/heads/master | 2016-08-12T14:44:00.938549 | 2016-02-05T06:05:06 | 2016-02-05T06:05:06 | 51,127,173 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 302 | cpp | ins_sort.cpp | #include<iostream>
using namespace std;
int main()
{
int a[10];
int n;
cin >> n;
for (int i = 0; i < n; i++)
cin >> a[i];
int i = 0, j = 1, temp;
while (i < n - 1)
{
j = i + 1;
temp = a[j];
while (j >= 1 )
{
if(a[j-1]>temp)
a[j] = a[j - 1];
j--;
}
a[j] = temp;
i++;
}
}
|
ec4a7a227bd6c1cca27780c24341a109eea0fca1 | c850e10c3a6bcd63d794e6e386d531ded8687a24 | /src/MediaSrv/Net/NetObj.cpp | aff0cd3b885d9d49a24e9a0715a352fc5fb4ad92 | [] | no_license | jjzhang166/Media | c3a42d5ea403260d864efdf341b6497c9da0ca00 | 00de6b828a397d30f633fa652330425cc170fba4 | refs/heads/master | 2021-08-12T01:30:55.586365 | 2014-10-11T06:39:50 | 2014-10-11T06:39:50 | 110,660,883 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 12,670 | cpp | NetObj.cpp | /***********************************************************************************************************************
Copyright:
FileName: NetObj.cpp
Author: Version : Date:
Description:
Version:
Function List:
History:
<author> <time> <version > <desc> ... |
9e3c31359e69c3e2104caa457679717f80fe201b | 87c8231c74e1394182cea3a9dea9c80f3e3411eb | /freezer_mote_v0_1/freezer_mote_v0_1.ino | bace4fb5ee028f2cd7924c2f4fcfbccd79034043 | [
"MIT"
] | permissive | brulejr/sketchbook | 5123d840318352b2cd8d63d80d01de4a67668790 | 0d8d4c5dd638bb9ba861b700fb0a0af2055c01d5 | refs/heads/master | 2021-01-01T19:11:29.418205 | 2017-02-26T20:01:46 | 2017-02-26T20:01:46 | 15,694,163 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,530 | ino | freezer_mote_v0_1.ino | /* -----------------------------------------------------------------------------
Freezer Sensor
Monitors several sensors on a freezer watching for out-of-ordinary behavior.
Circuit:
* Moteino R4 w/ RFM69HW RF module
* Battery voltage monitor attached to analog pin 0
* LDR sensor attached to analo... |
f39705c5b603a78e9c40204711ac4a1de4c72caf | b1778ec63a308a5d00c9a7c5a1d9b088c5db4778 | /gfx/src/nodes/TPaper.cpp | a11c0ff08801dc21725f0d5b5da73599bfe36549 | [] | no_license | TimSimpson/Lp3-Engine | f9e023d584f8d18de245884b6045fa611c4961f7 | 8c41fab79e46e1e4422afe3e56a930cbd4301555 | refs/heads/master | 2022-12-12T00:24:11.612505 | 2022-05-01T22:03:19 | 2022-05-01T22:03:19 | 23,773,527 | 2 | 0 | null | 2016-07-06T05:36:12 | 2014-09-07T23:14:34 | C++ | UTF-8 | C++ | false | false | 3,663 | cpp | TPaper.cpp | #include <lp3/gfx/nodes/TPaper.hpp>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <lp3/gl.hpp>
namespace lp3 { namespace gfx {
LP3_GFX_API
TPaper::TPaper(const glm::ivec2 _resolution, gl::TextureID _texture,
const std::size_t vertex_count)
: program(),
resoluti... |
4899f46f5f55a515c5c9ab2511c43b564dcd2786 | c789bbc4d80b3a1eb1ca10e8903e7ffa3e0c1762 | /rf24_trans.ino | db0b65c24de6b55baed7344a635eb0929ea724e2 | [] | no_license | rfarduino/rf24_trans | c3044bc869a97fe9ee07bb2b18f093431732a7ee | 30a38d109ece5fabed4977a69b182fff806bceb5 | refs/heads/master | 2021-01-10T05:08:40.301543 | 2016-03-20T02:55:32 | 2016-03-20T02:55:32 | 54,297,515 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,017 | ino | rf24_trans.ino | #include <RF24.h>
#include <nRF24L01.h>
#include <SPI.h>
RF24 radio(9, 10);//ce9 csn 10
const byte txAddr[6] = "00001";//pipe address 1 transmit
const byte rxAddr[6] = "00002";//pipe address 2 receive
char incomingByte; // incoming data
void setup()
{
Serial.begin(9600); // initialization
radio.begin();
ra... |
90e9d93ab65be63482431f7b2772a3d42d9c41cd | 9ef02f0b6b8afa0b3c49c02e1324c71f8cfc3fdd | /LABA15-16/Laba15-16Consol/Laba15-16Consol/Laba15-16Consol.cpp | 7dde2e78eab3df192ca3c68a88513f372c6d97e4 | [] | no_license | UstinovMS/SPbCT_UstinovMS | ba3c7a1975b2d0b577d4c49ce6106932f9d13686 | a0c2c01d9db7b9bb3d05e5d722eabf2e2a6fff68 | refs/heads/main | 2023-01-10T15:55:32.325908 | 2020-11-16T03:14:16 | 2020-11-16T03:14:16 | 305,713,963 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,065 | cpp | Laba15-16Consol.cpp | /*Создать пустой проект Console Application и реализовать в нем программу по
вычислению стоимости поездки на автомобиле(исходными данными являются : километраж,
расход топлива, цена единицы топлива).*/
#include "pch.h"
#include <iostream>
#include <locale>
using namespace std;
int main()
{
setlocale(LC_ALL, "rus")... |
d13abdcf51fe0ae6690018e6e05ca504872b5223 | 0f87e7933d3216f405ba2e6e056b40a565fd18ca | /sorting/game_entry/score.hpp | 9c3e46dbde00450716566290eaccae4ab496f6eb | [] | no_license | nshaibu/algorithms_in_c | 1b6ee6de372487305869d9c76d65bfe32a2600e1 | 86150c7c41b75bd9f00817f668e7c51213bc19d7 | refs/heads/master | 2023-03-28T20:56:36.297731 | 2021-03-30T13:10:58 | 2021-03-30T13:10:58 | 260,171,038 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 593 | hpp | score.hpp | #ifndef SCORE_H
#define SCORE_H
#include "game_entry.hpp"
#include "../../exceptions/index_out_of_range.hpp"
class Score {
public:
Score(unsigned max_entries);
~Score() { delete [] entries; }
unsigned getMaxNumEntries() const { return maxEntries; }
unsigned getNumEntries() const { ... |
aebd9e7a97f6d68b84b84fbb718f35a9d572da9e | c480ccc885f4202bf45b23874525100cd2e93b1f | /Algorithmic_Toolbox/week3/loot.cpp | 951c26230ca3fe26bf7fb416236c98e45cda376a | [] | no_license | aa-ryan/DSA | 2c1d9ddae297bf184bc0576d55ab3e313ed2a784 | 930a212a46135919b33b7f018ba29c2216ad5007 | refs/heads/master | 2023-07-25T06:01:06.832253 | 2021-08-25T07:11:50 | 2021-08-25T07:11:50 | 293,875,746 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 957 | cpp | loot.cpp | #include <bits/stdc++.h>
#define pb push_back
using namespace std;
//desendinig order
bool sortbythirdelement(const tuple<double, double, double>& a,
const tuple<double, double, double>& b)
{
return (get<2>(a) > get<2>(b));
}
int main()
{
double n, weight;
cin >> n >> weight;
vector<tup... |
5b7f2ed61ad1daf84a9bcdd845a1aa935a616988 | 1adbea64905f41b978e42844d72721230272c69d | /src/SOS/lldbplugin/swift-4.1/lldb/Symbol/TaggedASTType.h | eabd41ebbf29323faf3fd6228d07aa083b217456 | [
"NCSA",
"Apache-2.0",
"LLVM-exception",
"MIT"
] | permissive | dotnet/diagnostics | 5b3e0901f87d6429fca4282d149986546cee8eb4 | 3357ebf5f4aaf4fe196c08e3e47fa2233096fada | refs/heads/main | 2023-09-01T12:42:17.138682 | 2023-09-01T08:37:32 | 2023-09-01T08:37:32 | 126,257,942 | 1,156 | 361 | MIT | 2023-09-14T13:47:19 | 2018-03-22T00:39:48 | C++ | UTF-8 | C++ | false | false | 1,298 | h | TaggedASTType.h | //===-- TaggedASTType.h -----------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
c9c6306c4597f65f9f101b0b392f48ff50c22c44 | 08fae5bd7f16809b84cf6463693732f2308ab4da | /MarketDataAdapters/include/Activ 1.6.22/ActivContentPlatform/ActivContentGatewayApi/ISymbolDirectoryResponses.h | 49afa3667a2b2b4647a4be8a4e82c265204fb298 | [] | no_license | psallandre/IVRM | a7738c31534e1bbff32ded5cfc7330c52b378f19 | 5a674d10caba23b126e9bcea982dee30eee72ee1 | refs/heads/master | 2021-01-21T03:22:33.658311 | 2014-09-24T11:47:10 | 2014-09-24T11:47:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,276 | h | ISymbolDirectoryResponses.h | /**
* @file ISymbolDirectoryResponses.h
*
* @brief Callback interface for symbol directory request responses.
*
* $Log: $
*/
#if !defined (ACTIV_FEED_API_ISYMBOL_DIRECTORY_RESPONSES_H)
#define ACTIV_FEED_API_ISYMBOL_DIRECTORY_RESPONSES_H
#include "ActivContentPlatform/ActivContentGatewayApi/External.h"
name... |
b740526ddfdb23eb3e911291994857df204ee24e | 0c22d527c18df1f4edb90523f01e4a56cdf58606 | /NaoTH2011-light/NaoTHSoccer/Source/Core/Cognition/Modules/BehaviorControl/XABSLBehaviorControl/Symbols/TeamSymbols.h | 4e3eaa1e12c7f414ca19f8a897d6335169058cd8 | [] | no_license | IntelligentRoboticsLab/DNT2013 | 3d9fdb1677858fe73006132cc47dda54b47ef165 | ddc47ce982fe9f9cfaf924902208df1d5e53a802 | refs/heads/master | 2020-04-09T06:04:30.577673 | 2013-12-11T13:39:12 | 2013-12-11T13:39:12 | 9,521,743 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,376 | h | TeamSymbols.h | /**
* @file: TeamSymbols.h
* @author: <a href="mailto:scheunem@informatik.hu-berlin.de">Marcus Scheunemann</a>
*
* First created on 9. April 2009, 18:10
*/
#ifndef _TEAMSYMBOLS_H
#define _TEAMSYMBOLS_H
#include "Tools/Math/Vector2.h"
#include <ModuleFramework/Module.h>
#include <XabslEngine/XabslEngine.h>
#in... |
c29cc288d43b95914caf5f0e38baab458035fc41 | d230f40264c2512a27a743b97582c7020d47e5d1 | /flyback_potencia/flyback_potencia.ino | 0f484ec4484b12011bbc788c0f31794f0b1ef9cf | [] | no_license | ordonezt/fuente_desfibrilador | 118ddd5ee660211216c4b2fbc64696f8a08a8ca6 | 5c856cebfe79d2b0bd0300d482068ecc40b85b8c | refs/heads/master | 2023-01-03T15:09:53.388299 | 2020-10-30T21:18:42 | 2020-10-30T21:18:42 | 307,508,795 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | ino | flyback_potencia.ino | #include "comunicacion.h"
#include "estados.h"
#include "entradas_salidas.h"
#include "medicion.h"
#include "timers.h"
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
/*######## INICIO DE CODIGO ########*/
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
/*######## SETUP ########*/
void setup() {
comunicacion_inicializar();
entradas... |
962020ca00b832a630c3467b279f95fd975bb004 | eb37c65020e148f0def08e499f582fdc0386b2c3 | /VisualStudioProjects/Emulator/Emulator/ConditionalJumpExecuter.cpp | 06b1ae4135e58b3d3461de3026106ca2cfeec540 | [
"MIT"
] | permissive | nikolabebic95/AssemblerEmulator | fa3c43c06d6b63398f0e127c93df6e75e7c8febe | 62ca04e4a176ec3765b95fb1610da23273a67693 | refs/heads/master | 2021-03-27T10:14:43.102487 | 2018-06-12T14:07:16 | 2018-06-12T14:07:16 | 96,522,003 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 408 | cpp | ConditionalJumpExecuter.cpp | #include "ConditionalJumpExecuter.h"
namespace bnssemulator {
void ConditionalJumpExecuter::execute(InstructionBitField instruction, Context & context) const {
auto address = context.getOperandAddress(instruction, 1);
auto ® = context.getRegister(instruction.register0);
if (test(reg.negativeFlag(), reg.z... |
99a0fd62867ee69f3587261769685330ee9fcbf6 | 7926b62be2454c7034a29a835a0e619f036aacdf | /backup.cpp | 4f00c72d568804053d98412d13bfd11324b2a4a7 | [
"MIT"
] | permissive | thejonathanwong/BackupUtility | 74a47e5a57ef4a6b3e67593f548ba59501cfa3bc | 1dc0ff52f928ca8f2b6659128d6ad39f11d17765 | refs/heads/master | 2021-01-10T02:31:41.240268 | 2015-06-06T06:34:22 | 2015-06-06T06:34:22 | 36,852,316 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,218 | cpp | backup.cpp | #include <fstream>
//#include <cstdio>
//#include <stdlib.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/sendfile.h>
#include <unistd.h>
#include <fcntl.h>
#include <unordered_set>
#include "md5.hpp"
int main(int argc, char * argv[]) {
if(argc != 3) {
// cerr << "USAGE: " << argv... |
508b0f25374b16226c1b6302e6c5fd391f86b862 | 9bf11c47b2ba7e54290cdc8e806cc36bba61a39d | /Header/Teleporter.h | 5b6395e587e6776b7de821a33e8acc4f7895caa7 | [
"MIT"
] | permissive | TheMrNomis/ludum | 9714efa04f096cc35f878940161b9afba2c13df8 | eba6188556fe07c8ad801886a634bee109e6f3e6 | refs/heads/master | 2021-01-10T15:12:48.198213 | 2015-12-15T02:23:59 | 2015-12-15T02:23:59 | 47,765,063 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 826 | h | Teleporter.h | #pragma once
#include <SFML/Graphics.hpp>
#include "INCollisionable.h"
#include "INUpdatable.h"
#include "INDrawable.h"
#include "TextureLoader.h"
#include "Ray.h"
class Teleporter : public INUpdatable, public INDrawable
{
private:
sf::Texture const*const m_texture;
unsigned int m_x;
unsigned int m_y;
unsigned... |
1fecb3db26d2294713adddc6c73f9fc682259e33 | 685b76c22afc2739dd52c6186ee243dac4564b77 | /Section1/The Seven Percent Solution.cpp | fdbbd871021adcdef6ec8e8cd86fcb646d6dec92 | [] | no_license | Skyer19/HDU | 2deb30d6eedaa7a84489dc0dd24c17a36b088158 | 086b5faf903cf0df31c85b33a3e997d6a222f71d | refs/heads/master | 2022-04-10T15:45:11.887403 | 2020-03-20T01:15:58 | 2020-03-20T01:15:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 585 | cpp | The Seven Percent Solution.cpp | #include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
using namespace std;
string s;
struct str{
string op1;
string op2;
}a[7];
int main(){
a[0].op1=" ",a[0].op2="%20";
a[1].op1="!",a[1].op2="&21";
a[2].op1="$",a[2].op2="%24";
a[3].op1="%";a[3].op2="%25";
a[4].op1="(",a[4].op2="%28";
a[5].op1=")... |
6193b23b34c53e484e208a2f92a6fde9e2b2ca68 | 64a1533f4541b76181cd6d3cec3b28876c969250 | /LADS/ValC/ForceReloadTest/Main.cpp | e5fb078e4fec8bfccb4dad60198316564ce44706 | [] | no_license | drkvogel/retrasst | df1db3330115f6e2eea7afdb869e070a28c1cae8 | ee952fe39cf1a00998b00a09ca361fc7c83fa336 | refs/heads/master | 2020-05-16T22:53:26.565996 | 2014-08-01T16:52:16 | 2014-08-01T16:52:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,238 | cpp | Main.cpp | #include <vcl.h>
#include <windows.h>
#pragma hdrstop
#pragma argsused
#include <tchar.h>
#include <stdio.h>
#include "AcquireCriticalSection.h"
#include <algorithm>
#include "API.h"
#include <boost/scoped_ptr.hpp>
#include <boost/variant.hpp>
#include "ConsoleWriter.h"
#include "CritSe... |
4c2ae2884280c06f49be886a276d8b121ad0145c | 86c68f2f4942dbf8d98bedeb7ea083ad0f523292 | /homework9/seeder.cpp | 3014138447e9d1d333de79c1ed0c9aceeed23e98 | [
"MIT"
] | permissive | codeworm96/SE106-Data-Structure | ea62c32f164924c97377b04c92f7c7132407b41d | edf90c86bc639cb6c9666c7448ae511c8c84a6c3 | refs/heads/master | 2021-01-17T07:49:12.538389 | 2016-07-11T05:52:34 | 2016-07-11T05:52:34 | 37,981,696 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,300 | cpp | seeder.cpp | #include <fstream>
#include <cstdlib>
#define N 500
#define INF 0x3FFFFFFF
using namespace std;
int a[N][N];
int to_ans(int x)
{
if (x == INF){ // no path
return -1;
}else{
return x;
}
}
int main()
{
srand(time(0));
ofstream input_file("dijk.in");
input_file << 499 <<endl;
in... |
fd6d5bf4e509b85cdae0dc384e3f057505f1a9ac | b11e7f8a87a3e0ce62f865cf4a283342fd9ea158 | /Stacks-Queues/311.cpp | 14eefacacced9601eec6be3a2cf4ae9628497b7d | [] | no_license | atharvamarathe/Final450-Solutions | 63db98d46046189c17ef5c8b336544f3bc8f67d4 | a12e9173b7a53071f7234eaccc884bbdf93d276d | refs/heads/main | 2023-06-29T07:10:42.871341 | 2021-07-29T09:27:19 | 2021-07-29T09:27:19 | 390,667,417 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 870 | cpp | 311.cpp | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
vector<vector<int>> mergeIntervals(vector<vector<int>> &intervals)
{
sort(intervals.begin(), intervals.end());
stack<pair<int, int>> s1;
s1.push({intervals[0][0], intervals[0][1]});
for (int i = 1; i < intervals.size(); i++)
{
... |
cff1f240d4125412ef69c3db5147abc62fd8d9b0 | 96a48df2a03d542068be2cbe140500bc99f52725 | /stereomatching.cpp | 93bb8cb13f911e03f2e5b67b7fdbacc6e0be0dcb | [] | no_license | noahkong/stereocam | d0bbffafba8815ac3531dd59c5f270b67b52a11d | 19749024834ed11767c114370fc55aeb41f75e2c | refs/heads/master | 2020-05-30T14:50:32.032286 | 2011-03-26T18:51:33 | 2011-03-26T18:51:33 | 32,440,548 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 942 | cpp | stereomatching.cpp | #include "stereomatching.hpp"
StereoMatching::StereoMatching(char * theName): name(theName){
everyFrameGet = 1; // it means - every frame
propertiesChanged = false;
}
StereoMatching::~StereoMatching(){
Property * element;
while(properties.size() > 0){
element = properties.back();
properties.pop... |
77e8c813b662be5a46468f7a6f458659bc47b01f | 2bfddaf9c0ceb7bf46931f80ce84a829672b0343 | /src/xtd.drawing/src/xtd/drawing/system_icons.cpp | 2dfc1acf37d96093fcb1f8b3030ae2926cf460bb | [
"MIT"
] | permissive | gammasoft71/xtd | c6790170d770e3f581b0f1b628c4a09fea913730 | ecd52f0519996b96025b196060280b602b41acac | refs/heads/master | 2023-08-19T09:48:09.581246 | 2023-08-16T20:52:11 | 2023-08-16T20:52:11 | 170,525,609 | 609 | 53 | MIT | 2023-05-06T03:49:33 | 2019-02-13T14:54:22 | C++ | UTF-8 | C++ | false | false | 4,076 | cpp | system_icons.cpp | #include "../../../include/xtd/drawing/system_icons.h"
using namespace xtd::drawing;
icon system_icons::application() noexcept {
return application(default_size());
}
icon system_icons::application(const size& size) noexcept {
return from_name("application-x-executable", size);
}
icon system_icons::asterisk() n... |
d0257f786e700e4bff369b0f7cd4f853464d518b | 6d25ac2e6f455ae78563bf0d820ddde64b654f70 | /src/Audio/Sound.h | 51abdfac7001edfd2d86837601b59cfa2ce8c7b3 | [
"MIT"
] | permissive | ksmai/fire-web-engine | 64825140007fccaef7dbe41e23e8e764de50a48d | 531fd3d2ae78244bf2e2a62571ccbcd6e6c2a5bd | refs/heads/master | 2023-03-05T15:35:18.762152 | 2021-02-07T10:29:25 | 2021-02-07T10:29:25 | 324,719,077 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 340 | h | Sound.h | #ifndef __SOUND_H__
#define __SOUND_H__
#include "SDL/SDL_mixer.h"
#include "File/Data.h"
namespace FW {
class Sound {
public:
friend class Audio;
Sound(Data&&);
Sound(const Sound&) =delete;
Sound& operator=(const Sound&) =delete;
Sound(Sound&&);
~Sound();
private:
Mix_Chunk* c... |
baf442801386692bdca7ad2a71d6fab4f1d798e6 | dc67555ed0543e5e8bfe586797d103ef0e91fcac | /test1.cpp | a7524f1978f678e8ac815c370c94f55e054ad498 | [] | no_license | arshad0110/leetcode | a3f9a659c9c3f3b100dbf6776a868d13ab071dbc | 9f752e299947a30f8521b9958637144cc1639eb1 | refs/heads/master | 2020-06-04T17:14:17.810619 | 2019-07-03T09:12:44 | 2019-07-03T09:12:44 | 192,120,737 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 37 | cpp | test1.cpp | #incljlaskdd;klsaa
aslkjkfadc
sdflas |
559561a4aa2a274e3e07eea27b400d9e92798ef4 | 03e890ffdcd238c0c16d187f4fb874971ccf0f15 | /Sup/Table/CStolb.h | e3a29b9a479d42dec1f15a515b62df15fb3520f5 | [] | no_license | rg3443/testCreatorProg-SDL2- | 16e226f3aacbea3d1cedbafa511b91dfa3424d7a | 94d2a805ef391a1722f78386dec1fc0db4d22a0e | refs/heads/master | 2020-12-27T19:43:18.236261 | 2020-02-03T18:15:54 | 2020-02-03T18:15:54 | 238,028,793 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,348 | h | CStolb.h | #ifndef CSTOLB_H_INCLUDED
#define CSTOLB_H_INCLUDED
#include <iostream>
#include <stdio.h>
#include <string>
#include <cmath>
#include <string>
#include <sstream>
using namespace std;
#include "SDL.h"
#include "SDL_ttf.h"
//#include "SDL_image.h"
//#include "gGlobal.h"
#include "../SDL_stuf/cGraf.h"
#in... |
7d2b435643833e40bc57f861d7ff6afc41db22a9 | 6e6542d3e5c491570ae86ee40bd9424e4de6ecc1 | /Data Structures Problems/LinkedList Pratice/Easy/find_pairs_with_given_sum_in_doubly_linked_list/main.cpp | 75a5b30dbeec55b3fbd4f8c1e14e684e0d77c098 | [] | no_license | Ubaid-Manzoor/Interview_Practice | 9b66a920dfdc934f50b171d990e45dbddd9d7b54 | d1ae188123da060b31e4e537713a45349786835a | refs/heads/master | 2023-02-10T15:52:02.851818 | 2020-12-26T14:58:43 | 2020-12-26T14:58:43 | 275,573,186 | 20 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,521 | cpp | main.cpp | // C++ program to find a pair with given sum x.
#include<bits/stdc++.h>
using namespace std;
// structure of node of doubly linked list
struct Node
{
int data;
struct Node *next, *prev;
};
// Function to find pair whose sum equal to given value x.
struct Node * gettail(struct Node *head){
Node *current=h... |
de575d48085433281500006c000ef0aca865fd71 | 02fec111191ecede92d844422125ac8482171bde | /Contests/innopolisFinals/b.cpp | f2f9d3360a7544d6f5e51d157ab1e2bc20ce294b | [] | no_license | Lucas3H/Maratona | 475825b249659e376a1f63a6b3b6a1e15c0d4287 | 97a2e2a91fb60243124fc2ffb4193e1b72924c3c | refs/heads/master | 2020-11-24T18:35:24.456960 | 2020-11-06T14:00:56 | 2020-11-06T14:00:56 | 228,292,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,110 | cpp | b.cpp | #include<bits/stdc++.h>
using namespace std;
#define fr(i, n) for(ll i = 0; i < n; i++)
#define frr(i, n) for(ll i = 1; i <= n; i++)
#define frm(i, n) for(ll i = n-1; i >= 0; i--)
#define pb push_back
#define f first
#define s second
typedef long long ll;
typedef pair<ll,ll> pii;
typedef pair<double, double> ponto;... |
7711398d439bf084b349f5227022c79301d35e98 | 2aec12368cc5a493af73301d500afb59f0d19d28 | /GeometryTool/LibGraphics/Shaders/Wm4PixelProgramCatalog.cpp | b87ffe7b30202207bcc513f4fe816434bdf18f50 | [] | no_license | GGBone/WM4 | ec964fc61f98ae39e160564a38fe7624273137fb | 8e9998e25924df3e0d765921b6d2a715887fbb01 | refs/heads/master | 2021-01-11T21:48:17.477941 | 2017-01-13T14:09:53 | 2017-01-13T14:09:53 | 78,854,366 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 5,925 | cpp | Wm4PixelProgramCatalog.cpp | // Geometric Tools, Inc.
// http://www.geometrictools.com
// Copyright (c) 1998-2006. All Rights Reserved
//
// The Wild Magic Version 4 Restricted Libraries source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4RestrictedLicense.pdf
// and may not be copie... |
418e04dd489695e9d75442c21b4ed6c1f85aab1e | 17a21d74aedfb2d19b6957dbb752432062461060 | /SpaceInvaders/GConsole.cpp | 49f3d8f96e597c5f536a9270fc1d6a8e51eeddca | [] | no_license | Otoman25/SpaceInvader | 02fe49d6c286638e4614c2f1d4337a56a113c9cd | 3860a089e028b0c267b597f728b2c4afa788dbf1 | refs/heads/master | 2023-03-13T03:36:30.293734 | 2023-03-02T19:59:17 | 2023-03-02T19:59:17 | 156,007,529 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,768 | cpp | GConsole.cpp | #include "stdafx.h"
#include <time.h>
#include "StringBuilder.h"
#include "GConsole.h"
void GConsole::Draw() {
COORD screenSize = { (short)this->iWidth , (short)this->iHeight };
SMALL_RECT screen = { 0, 0, (short)iWidth, (short)iHeight };
if (RenderBorder) AddBorderToBuffer();
WriteConsoleOutput(this->hHandle... |
3eb509519b3766d46552e25a1ede11d33e49cb75 | a5468a15a5918b3ea2cc2b17da530ad475939c7d | /Sources/Network/PacketProvider.cpp | 434c6973f1a79fee513231a111655f992e44e296 | [
"MIT"
] | permissive | TraurigeNarr/SupportSDK | 7f9bb8678b0ef66948218945d00dbf5736f8ad19 | 02939aa54ad434993f806f7cb58ef14f4f52702e | refs/heads/master | 2020-04-04T05:50:26.928699 | 2017-11-06T10:52:43 | 2017-11-06T10:52:43 | 24,842,561 | 0 | 3 | null | 2017-11-06T21:29:01 | 2014-10-06T11:03:29 | C++ | UTF-8 | C++ | false | false | 931 | cpp | PacketProvider.cpp | #include "stdafx.h"
#include "PacketProvider.h"
#include "Packet.h"
#include <Utilities/ConversionsUtilities.h>
namespace Network
{
PacketProvicer::PacketProvicer(Connection& i_connection)
: mp_buffer(new unsigned char[255])
, m_connection(i_connection)
, m_buffer_size(255)
{ }
PacketProvi... |
255cc8888e7f459dfdeb7d443795f6879103c015 | 65553cdec71ebba8c8a6ce3b462f0115e39f26ae | /bobcat/bobcat/ConfigManager.cpp | 424a3cbd5f82eae4b0a57375a4fd14e0b2135dfa | [] | no_license | Coteh/bobcat | 13ea7958c33ce8945b754fc2917e4a211026937e | 1a1adc775fd8c51df72dc42e2767795a9e5a0109 | refs/heads/master | 2020-04-05T06:20:07.890234 | 2015-05-19T00:05:42 | 2015-05-19T00:05:42 | 26,010,534 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,201 | cpp | ConfigManager.cpp | #include "ConfigManager.h"
#include <rapidjson\rapidjson.h>
#include <rapidjson\stringbuffer.h>
#include <rapidjson\prettywriter.h>
using namespace bobcat;
using namespace rapidjson;
ConfigManager* ConfigManager::instance;
ConfigManager::ConfigManager() {
logManager = LogManager::getInstance();
}
ConfigManager::~C... |
a3fb5b0a04b29ccbcd908342cde207515778331d | 8743cb01e02a5cf45d5e40d59fd04a40e68139b6 | /src/Initializer/tree/Lut.hpp | 7f73ff4c653b00fd6070573b50a302b7fc085e34 | [
"BSD-3-Clause"
] | permissive | SeisSol/SeisSol | a2c9ae29021251db5f811c343762e0699756b39d | 7fde47786f10aebbb4225f4c5125829ea9b541a1 | refs/heads/master | 2023-09-01T08:57:51.863085 | 2023-08-31T07:29:26 | 2023-08-31T07:29:26 | 21,459,883 | 227 | 129 | BSD-3-Clause | 2023-09-13T10:06:09 | 2014-07-03T11:17:47 | C++ | UTF-8 | C++ | false | false | 4,873 | hpp | Lut.hpp | /**
* @file
* This file is part of SeisSol.
*
* @author Carsten Uphoff (c.uphoff AT tum.de, http://www5.in.tum.de/wiki/index.php/Carsten_Uphoff,_M.Sc.)
*
* @section LICENSE
* Copyright (c) 2016, SeisSol Group
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* mod... |
5798547bf0ebc880bf2216b888b46c407485def9 | a8e6a049596c902786e860278b37e59624dbb6aa | /src/vertexShaderScene.h | 46c090fa15ef1dd471d0f8894040189e2f14efc5 | [] | no_license | 73-ch/shaderVJApp | 6e52aa030c3a9c4520f22fde63ad42911f0166ae | 99efe39b4baa7da8664c682596c699bd1550a277 | refs/heads/master | 2020-03-20T19:15:21.771886 | 2018-10-27T14:45:58 | 2018-10-27T14:45:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 312 | h | vertexShaderScene.h | //
// shaderScene.hpp
// shaderVJApp
//
// Created by nami on 2017/09/11.
//
//
#pragma once
#include "settings.h"
#include <sys/stat.h>
class vertexShaderScene : public shaderScene {
public:
void setup();
void update();
void draw();
private:
int vertex_num;
ofVboMesh vbo;
}; |
5265cf323e5ee28cbfad0516290a2726ed887638 | a066403cf1b15fa4f7de1bcd8fb59fac4f3dfe1c | /0621/0621/NameSpace-1.cpp | e4a169b3919a2bda33bef81da07f316751fbf154 | [] | no_license | NamSangKyu/2104C | 05fbb5eec9b6bc2e7496afd9d591446933188187 | feaafd8860b81db5f4fde0201d4180205884d437 | refs/heads/main | 2023-05-21T05:39:43.390870 | 2021-06-08T12:48:28 | 2021-06-08T12:48:28 | 357,517,196 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 497 | cpp | NameSpace-1.cpp | #include <iostream>
//namespace 키워드를 이용해서 --> 코드상에서 영역 나누기
namespace A {
int num=20;
void printMessage() {
std::cout << "namespace A" << std::endl;
}
}
namespace B
{
int num = 20;
void printMessage() {
std::cout << "namespace B" << std::endl;
}
}
int main(void) {
A::num++;
... |
fa05d5eba437fc97c288792749e00d10ef20c472 | 5d81b6f2425adea89c53779ecd2ca7d9b258e40d | /include/sorting.h | f9032c5b40e69edc15a7cbceebb30c9c448b9c54 | [
"MIT"
] | permissive | NNDavydov/Database-Management-System | edd9da8c317c57d435e019dd25536a93e0f8dd13 | 022ef336ee34d63f8deda626702222e6c364db40 | refs/heads/master | 2023-04-09T15:13:51.424290 | 2021-04-18T06:26:55 | 2021-04-18T06:26:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,466 | h | sorting.h | // Copyright 2021 Davydov Nikolay <davy.nikola@gmail.com>
#ifndef HOMEWORK_1_SORTING_H
#define HOMEWORK_1_SORTING_H
template<class It, class Out, class Compare = std::less<>>
Out merge(It first1, It last1, It first2, It last2, Out out, Compare cmp = Compare{}) {
while (first1 != last1) {
if (cmp(*first1, ... |
212407c4dc8d8c535224083f1bc01456193c7e2f | b5537e258522344b0a20c10bbf51959c24b82e5d | /src/ludic/allegro_starter.cpp | 003cb8b2a561132463853f721449c8f3df1930f2 | [
"MIT",
"Zlib"
] | permissive | mstuttgart/ludic-game-library | cf07a3f73c6308518c8038948c8086195a5968a6 | 380e9d165c2071f6c9a5d098de3c969a40a1476d | refs/heads/master | 2021-01-21T14:04:59.833683 | 2019-10-12T16:50:34 | 2019-10-12T16:50:34 | 21,882,506 | 0 | 0 | null | 2016-03-22T18:34:44 | 2014-07-16T01:48:05 | C | UTF-8 | C++ | false | false | 4,232 | cpp | allegro_starter.cpp | #include "allegro_starter.hpp"
#include "video.hpp"
#include "resource_manager.hpp"
#include "keyboard_manager.hpp"
#include "mouse_manager.hpp"
using namespace Ludic;
using namespace std;
/** Instancia da classe. Atraves dela, o constructor sera chamado dando
inicio a incilizacao da Allegro5 */
AllegroStarter All... |
dbfbc2c42b50db75b0cc914ca2d0e7fc02ac1189 | 297bc28f8ddd7c901398a9338f405d8aeee5cd89 | /448.cpp | 902d1295053b05bfc75707bdcb39ec3b954e67e4 | [] | no_license | lyswty/leetcode-solutions | 951072abc316234d32938b041221e0c17504a06f | 88aac5289228d1d62fe3e6b4926311bdf2cdfad2 | refs/heads/master | 2020-04-21T20:57:03.752636 | 2019-08-11T14:09:41 | 2019-08-11T14:09:41 | 169,862,666 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 425 | cpp | 448.cpp | class Solution {
public:
vector<int> findDisappearedNumbers(vector<int>& nums) {
vector<int>res(nums.size());
for(int i=1;i<=nums.size();i++) res[i-1]=i;
int size=0;
for(int x:nums)
if(!res[x-1]) size++;
else res[x-1]=0;
int i=0;
for(int j=0;j<... |
8f9356d64ca4d7174e6cbb4050da3e830c4fb7dc | e211530f5e4db9b00da734d784cf40a8bfcb079d | /C++Primer/base/md5.cpp | c92570c3162f82917a1c163c25d67fed41ac3f30 | [] | no_license | zcily/test | a6cc80d7bc7104d1f2f680586e153f533534000f | 2f96f144d3c4658412dc6a89abb2b211a50edf30 | refs/heads/master | 2016-09-05T18:42:15.214610 | 2014-11-28T08:20:45 | 2014-11-28T08:20:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,814 | cpp | md5.cpp | #include <iostream>
#include <string.h>
#include <fstream>
#include <stdlib.h>
#include <vector>
using namespace std;
struct md5_file
{
char *md5_file_value;
char *md5_file_name;
};
void find_same_value(md5_file *all_md5_file, int length) {
vector<md5_file*> same_file;
vector<vector<md5_file*> > sa... |
1d72d78dfc033822bb822f88c8fdd728f2ef677f | 4822c134d969fedc16f2fa5311fb2d1e776782d3 | /CollisionDet.cpp | bb267f61a44b95021dcaa6ba327312b1f7a32dd3 | [] | no_license | SerbIMolot/Crimsonlike | 631eac94bc69cd9c8dc254aea7d8a02851e69605 | ef61db5e01e04614d250b9b00877c862eb676e6b | refs/heads/master | 2020-05-31T11:38:29.923607 | 2019-06-04T21:18:59 | 2019-06-04T21:18:59 | 190,264,487 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,329 | cpp | CollisionDet.cpp | #include "inc.h"
bool collisionCheck(Object* obj1, Object* obj2)
{
if (obj1->getBox()->LeftSide() >= obj2->getBox()->RightSide())
{
return false;
}
if (obj1->getBox()->RightSide() <= obj2->getBox()->LeftSide())
{
return false;
}
if (obj1->getBox()->topSide() >= obj2->getBox()->BottomSide())
... |
7fcdcfc0e110cc91be11f2a00cf3d69029951b38 | fa14b0cd354185bd9a4c8b46dff579b9108bcce8 | /EEditorSheetManager.h | ae46e8506db5fb88be739f92cf70a00d024dd7d9 | [] | no_license | minuowa/sheet | 71f3b5ffa5659cc54ab4c2794ebbd56e60981dcf | ff554f395036e39fc689135c34d3f1afc84dc465 | refs/heads/master | 2020-04-21T14:24:23.369705 | 2014-05-07T09:24:09 | 2014-05-07T09:24:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,819 | h | EEditorSheetManager.h | #pragma once
#include "EditorSheetBase.h"
#include "EPropertySheet.h"
#include "..\src\corelib\tools\qvector.h"
class EPropertySheet;
class EObjectListSheet;
class QTreeView;
class QWidget;
class QMenu;
class QMainWindow;
class QAction;
class PROPERTYSHEET_EXPORT EEditorManager: public QObject, public Actor
{
//CXD... |
ececae66c75336318cdb081195a5ed94a4a0ca94 | e65a4dbfbfb0e54e59787ba7741efee12f7687f3 | /devel/indi/files/patch-libs_indibase_property_indipropertybasic.cpp | 88fb1d26d317d66175944469ba54967c1a462708 | [
"BSD-2-Clause"
] | permissive | freebsd/freebsd-ports | 86f2e89d43913412c4f6b2be3e255bc0945eac12 | 605a2983f245ac63f5420e023e7dce56898ad801 | refs/heads/main | 2023-08-30T21:46:28.720924 | 2023-08-30T19:33:44 | 2023-08-30T19:33:44 | 1,803,961 | 916 | 918 | NOASSERTION | 2023-09-08T04:06:26 | 2011-05-26T11:15:35 | null | UTF-8 | C++ | false | false | 660 | cpp | patch-libs_indibase_property_indipropertybasic.cpp | --- libs/indibase/property/indipropertybasic.cpp.orig 2022-05-21 13:52:23 UTC
+++ libs/indibase/property/indipropertybasic.cpp
@@ -16,6 +16,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <cassert>
#include "indipropertybasic.h"
#include "indipropertybasic_p.h"... |
11c302fb9272f77614a108fdeeaeee40acfac4db | 34c3ad47dc82696e0c66b9b49c2f7d90da9e26b6 | /Ctracker.h | 3f324a02278f1212768d78194e2d8679771286b5 | [] | no_license | xwyangjshb/video_synopsis | 1da77493d2b34a3ec5c34c95e8865ae33d66914d | 8a617c8bfc2aac5e85aae5daa2d059f6adb23a1e | refs/heads/master | 2021-01-12T01:01:38.876888 | 2016-05-18T13:15:31 | 2016-05-18T13:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 991 | h | Ctracker.h | #pragma once
#include "Kalman.h"
#include "HungarianAlg.h"
#include "synopsis.h"
#include "opencv2/opencv.hpp"
#include <iostream>
#include <vector>
using namespace cv;
using namespace std;
class CTrack
{
public:
vector<Point2d> trace;
static size_t NextTrackID;
size_t track_id;
size_t skipped_frames;
Mat predi... |
b61236b4639a1dfae093ee0adaac9348943f7e41 | 390c529d35ea9dd99ca3a64cb5fc31ab338f84aa | /tutorials/PuzzlePlatforms/Source/PuzzlePlatforms/GameInstance/PuzzlePlatformGameInstance.h | 01899e1aaa1d06229caf74c589e1d8520b687f1d | [] | no_license | timi-liuliang/ue4-learn | 710150b34d50c94b458ee827efd979c3311bff17 | 0b54b7db9b065a74643c6eb6d91fbf0c353f5006 | refs/heads/master | 2022-01-08T22:25:48.543079 | 2019-05-13T07:31:12 | 2019-05-13T07:31:12 | 154,819,480 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 577 | h | PuzzlePlatformGameInstance.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintPlatformLibrary.h"
#include "PuzzlePlatformGameInstance.generated.h"
/**
*
*/
UCLASS()
class PUZZLEPLATFORMS_API UPuzzlePlatformGameInstance : public UPlatformGameInstance... |
7eb8650c58db65a7a5d7cbb518f0b80d5e1a595d | e55368305b711fc01960688c103d0fa85105c581 | /Tut7-Sort/ComplexNumberTemplateClass.h | dc5ebdfb4a74e07a8022c54ebe6804d01a846cae | [] | no_license | BernardBussy/Tut7-Sort | b8154270ac4b657212e4db59c68ac7b7806e467b | 4b2e29182e1ee68f32a06dd5cacbeed9827e51e9 | refs/heads/master | 2021-01-13T00:57:38.488563 | 2015-05-25T19:25:28 | 2015-05-25T19:25:28 | 36,239,807 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,972 | h | ComplexNumberTemplateClass.h | #include <iostream>
#include <math.h>
using namespace std;
template <typename T>
class ComplexNumberTemplateClass
{
public:
ComplexNumberTemplateClass(); //Default Constructor
ComplexNumberTemplateClass(ComplexNumberTemplateClass ©Object); //Copy Constructor
ComplexNumberTemplateClass(T real, T imagi... |
84af7b6e3771b899e12f38fee9a8ee4f8b80477c | 142d376aa88e066f4f2ebec7f306a7b6f723bc96 | /Project 4/Project Files/GenomeMatcher.cpp | fc8b86b63bad8d217b3846d650bb2cc485d05c08 | [] | no_license | mppombo5/CS32 | 314f00450ec9bc62ffde28a79fcfdd18a6c14a78 | 42082840ca5b59932403cca50da839b21cdeb9a5 | refs/heads/master | 2021-07-14T21:22:20.994923 | 2020-06-09T00:48:21 | 2020-06-09T00:48:21 | 164,750,378 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,019 | cpp | GenomeMatcher.cpp | #include "provided.h"
#include "Trie.h"
#include <string>
#include <vector>
#include <unordered_map>
#include <iostream>
#include <fstream>
using namespace std;
class GenomeMatcherImpl
{
public:
GenomeMatcherImpl(int minSearchLength);
void addGenome(const Genome& genome);
int minimumSearchLength() const;
... |
2f6bfa74a37d35150680b31711f739021133f93d | 92c1bad6d52a9612d0e09687088322170ba85db5 | /cnoncopyable.h | 40c8923a84166a00721dd300d0b9327134c3a29a | [] | no_license | chensongpoixs/clib | ab79cebbdfc8f3fe1932e283514178cf22978a9f | bc9bbe3162f66ed7ee66a541a8fddaf95b5a6dec | refs/heads/master | 2022-10-08T07:41:33.538942 | 2020-07-19T03:58:47 | 2020-07-19T03:58:47 | 171,093,137 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,382 | h | cnoncopyable.h | /***********************************************************************************************
created: 2019-02-26
author: chensong
purpose: noncopyable
Copyright boost
我可能会遇到很多的人,听他们讲好2多的故事,我来写成故事或编成歌,用我学来的各种乐器演奏它。
然后还可能在一个国家遇到一个心仪我的姑娘,她可能会被我帅气的外表捕获,又会被我深邃的内涵吸引,在某个下雨的夜晚,她会全身淋透然后要在我狭小的住处换身上的湿衣服。
3... |
7670360c6cee5a1981193ee146149f6334386ee0 | a5019b8eb82da8083d76eb5a51b9d29bdf99cef1 | /vectormap.hpp | 4947a2f3c9244cb7d79d5c960e54580690074397 | [] | no_license | yimi97/ECE565-Rainfall-Simulator | 05befb3ce2172ea1473afb76e9c77c268c519990 | afcc4ac2be0efc4a0fe69d429d1a49470275c11a | refs/heads/main | 2023-01-20T21:10:10.771134 | 2020-12-03T19:22:15 | 2020-12-03T19:22:15 | 316,876,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 748 | hpp | vectormap.hpp | #pragma once
#include <array>
#include <vector>
#include <map>
using namespace std;
class VectorMap {
public:
// Constructor
VectorMap(int N);
// get the vector of trickle (x, y)s
vector<int> getX(int x, int y);
vector<int> getY(int x, int y);
// set the v... |
e87666680ddb5c976e6f07b9ee0d6bbc72856307 | 7ea8ee302c30ba18ab23cc58a3a89d2714d34744 | /p5/comun.h | de9bbd4a566b11887999312f8bbb1fe9df0d5ccd | [] | no_license | npj6/PL-2020-C | 59ed01e2c02bb8139a1c0b66d8f126a6753c19e0 | 0a887434a5349ef1b6eb6f077969f281ee3d8603 | refs/heads/master | 2022-09-18T17:09:51.966394 | 2020-05-30T20:19:59 | 2020-05-30T20:19:59 | 260,837,895 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,660 | h | comun.h | #include <string>
#include <iostream>
#include <cstring>
#include <tuple>
#include <vector>
using namespace std;
typedef struct TOKEN_STRUCT {
string lex;
int linea;
int columna;
//atributos de los tipo array
unsigned lInf, lSup;
vector<tuple<unsigned, unsigned> > *limites;
int tipo; //tipo de la vari... |
865aa3a06636dec29a1ce5abc3ed8e901f2933c2 | 469ce2a7b9b51d3685472661f6b24205ed783c1c | /include/lxgui/utils_maths.hpp | ab0b99305074fde4c1c405b6fc3ccb02370528f3 | [
"MIT"
] | permissive | cschreib/lxgui | 6b6b4b0101317226a8cf02ed097d2dd4d1692c7c | 2d7824097933b69fa484f996a858705fc7b5fa45 | refs/heads/main | 2023-06-23T15:37:27.164033 | 2023-06-10T15:25:29 | 2023-06-10T15:25:29 | 16,353,700 | 70 | 22 | MIT | 2023-06-10T15:25:30 | 2014-01-29T18:14:43 | C++ | UTF-8 | C++ | false | false | 834 | hpp | utils_maths.hpp | #ifndef LXGUI_UTILS_MATHS_HPP
#define LXGUI_UTILS_MATHS_HPP
#include "lxgui/lxgui.hpp"
#include "lxgui/utils.hpp"
namespace lxgui::utils {
/// Rounding method for points to pixels conversions.
enum class rounding_method {
/// Equivalent to round()
nearest,
/// Equivalent to round() but only returns 0 if ... |
41f2d6de3565c3d192aa80caa114dc55da63c87d | 9021be09e9456381979800f7387e49efa3cd43a0 | /CommunicationDaemon/main.cpp | 6e9c1419b0dc30c50c497daff7a6ec4101b990a1 | [] | no_license | balazshorvath/CommunicationDaemon | 36e6b7120b47e1909502ddfb56efe14b13e517b3 | 700b76d0d5f12e868e5bb7f0dd19a91d6ab84d0d | refs/heads/master | 2021-01-10T14:04:12.941821 | 2015-11-14T01:45:01 | 2015-11-14T01:45:01 | 44,256,380 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,209 | cpp | main.cpp | #include "Includes.h"
std::vector<CommHandler*> cHandlers;
std::vector<Serial> ports;
int currentHandler = 0;
int initData();
std::vector<std::string> split(std::string str, char delimiter);
void increment(int*);
/*Parameters
* 1. required path to the folder to make and modify in/out files
* 2. required serial dev... |
048f9f9888c49931ddf66fafc52c594f1ab44edf | 380e9b88b463d718c70bee7a8458ad8535fe1a54 | /系统模块/服务器组件/聊天服务器/ChatServer.cpp | 85906c106444da367159d12ad25a413c87ad4591 | [] | no_license | WesternCivilization/S-FOX-S | 2804ca67ba64cea37ace48076cad76128a65f7c5 | 422e5182b190736d07631f92e96bb606e31cc8c7 | refs/heads/master | 2021-09-04T00:57:32.251715 | 2018-01-13T17:33:06 | 2018-01-13T17:33:06 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 943 | cpp | ChatServer.cpp | #include "Stdafx.h"
#include "ChatServer.h"
#include "ChatServerDlg.h"
//////////////////////////////////////////////////////////////////////////////////
//程序对象
CChatServerApp theApp;
//////////////////////////////////////////////////////////////////////////////////
BEGIN_MESSAGE_MAP(CChatServerApp, CWin... |
b5ac63a93dacca76c2d14c6c0746d7fb300cc578 | 693f6694c179ea26c34f4cfd366bcf875edd5511 | /winter2016/contest/icc/icc.cpp | 6786c7187b0f56d6aa3e23a0ab02dbf24c1e84e7 | [] | no_license | romanasa/olymp_codes | db4a2a6af72c5cc1f2e6340f485e5d96d8f0b218 | 52dc950496ab28c4003bf8c96cbcdb0350f0646a | refs/heads/master | 2020-05-07T18:54:47.966848 | 2019-05-22T19:41:38 | 2019-05-22T19:41:38 | 180,765,711 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,306 | cpp | icc.cpp | #include "icc.h"
#include <bits/stdc++.h>
#define err(...) fprintf(stderr, __VA_ARGS__), fflush(stderr)
using namespace std;
const int dd = 107;
struct dsu {
int P[dd];
dsu() { for (int i = 0; i < dd; i++) P[i] = i; }
int get(int v) { return v == P[v] ? v : P[v] = get(P[v]); }
void un(int a, int b) ... |
3c7692ec79b3657687304963f4ae15c2257ac554 | 529ac9e8fc0d9a3c18712fc13921e4998fd593bd | /PRG-6-11-Lowest-Score-Drop/main.cpp | 30f7009c4351ed3207495af6fe06144ea91539b8 | [] | no_license | afewvowels/CPP-PRG-06-11-Lowest-Score-Drop | 23b2628ab280407a6c29e703d4edcafc5dc5b935 | b083e147b8cce4876eb553060a71eba0562850fb | refs/heads/master | 2021-07-08T20:42:24.204164 | 2017-10-07T23:54:34 | 2017-10-07T23:54:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,495 | cpp | main.cpp | //
// main.cpp
// PRG-6-11-Lowest-Score-Drop
//
// Created by Keith Smith on 10/7/17.
// Copyright © 2017 Keith Smith. All rights reserved.
//
// Write a program that calculates the average of a group of test scores, where the lowest
// score in the group is dropped. It should use the following functions:
//
// ... |
f24890ac936935af4e2f11f376998298e937bf7e | 4d8d31459f29c6b5b19c28fe5260fd081e7953b8 | /include/Command.h | 0b38a48b66e6ec0218d60ede78f7815ae6c48680 | [
"CC0-1.0"
] | permissive | vsamy/labyfou | 2824b1ce56ba3b9edbb926bca01b7891fbad4f66 | 88e473ea8190c7ddf4f22f216082032f193b6f44 | refs/heads/master | 2020-05-21T23:50:07.331944 | 2017-07-21T20:13:55 | 2017-07-21T20:13:55 | 59,384,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 826 | h | Command.h | #pragma once
#include <functional>
#include <queue>
#include <cassert>
#include <SFML/System/Time.hpp>
#include "utils.h"
class SceneNode;
struct Command
{
Command() : action(), category(CategoryType::None) {}
std::function<void(SceneNode&, sf::Time)> action;
CategoryType category;
};
templa... |
fbaf7b5bc3d99730e0f6074cb7ac8e84293160e4 | 9384a0dc5c52d3bf8a3307c1c5710acd103276f9 | /GeeksForGeeks/Arrays/noOfIslands(DFS).cpp | 7dd1375c560355082b2b3018297abd216f85a53f | [] | no_license | codeboy47/Competitive-Programming | c80deab0dc66b55de083a7faaab92f90577665fa | b1a8f3a5d3170f256d970e3103315e56fe4c3e45 | refs/heads/master | 2021-09-11T00:22:45.949158 | 2018-04-05T02:09:26 | 2018-04-05T02:09:26 | 76,561,517 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,616 | cpp | noOfIslands(DFS).cpp | #include <bits/stdc++.h>
using namespace std;
void dfsHelper(int x, int y, int arr[][1000], int r, int c){
arr[x][y] = 2;
// top-right
if(x != 0 && y != c-1 && arr[x-1][y+1] == 1){
dfsHelper(x-1,y+1,arr,r,c);
}
// right
if(y != c-1 && arr[x][y+1] == 1){
dfsHelper(x,... |
fe236fd0a8de592f6f27e42371ced994cf32b07f | d8b6c4070a82fa106fa32a0f00e5fd1dd871d613 | /main-game/source/bow.cpp | be2341991be57952d45732ea663f78b67f342e7e | [] | no_license | goel97/MultiPlayer-Web-Archery-Game | 857822ccfc8a6470b3d7982cbaad563ca838c845 | 3ce2bf35327b8b2513ac8bda77b32f437906d39b | refs/heads/master | 2021-04-06T07:14:45.812559 | 2018-03-12T14:22:33 | 2018-03-12T14:22:33 | 124,900,004 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 155 | cpp | bow.cpp | #include "bow.h"
bow::bow()
{
QPixmap b(":/images/bowleft.png");
QPixmap scaled= b.scaled(QSize(50,60));
setPixmap(scaled);
angle = 0;
}
|
95ad606e414be03901cedc5953c122a488e9a21b | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc | 5b9a59af149ec2cb4bd191486d8c7ada93f6c764 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 8,937 | cc | graphics_2d.cc | // Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stdio.h>
#include <stdlib.h>
#include "ppapi/c/ppb_image_data.h"
#include "ppapi/cpp/graphics_2d.h"
#include "ppapi/cpp/image_data.h"
#include "ppapi/cpp/input_event... |
c7c0a666921e2fa05170309ae43bb207ab456a79 | 0ee6dba3d0a10346f24dc9fc677de4df94d14b9e | /src/SudokuConfig.cpp | 361ed129deb707697465f3db36be96fc872a4d05 | [
"MIT"
] | permissive | Matt-London/sudoku-solver | 5287a6cfcfd3155ff657b0b73d6bb3b11a040155 | 56ed3ac5ea3c958710872c15a7c6b30785027213 | refs/heads/main | 2023-08-26T04:47:14.634202 | 2021-11-08T03:34:17 | 2021-11-08T03:34:17 | 425,309,213 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,307 | cpp | SudokuConfig.cpp | //
// Created by mattl on 11/6/2021.
//
#include "SudokuConfig.h"
int SudokuConfig::configsTried = 1;
/**
* Constructor for config
*
* @param row row that was changed
* @param col col that was changed
* @param sudoku sudoku grid that is referenced
*/
SudokuConfig::SudokuConfig(int row, int col, Sudoku sudoku) ... |
2a5cbff6eb93e52e392f9db2ca6185197b3d945b | 6bac07ceda232029b6a9ea0144ad261311348699 | /plugin_vc/game_vc/CCarGenerator.h | 278282970d96a1dc2fe87c3d4c1f31e40e9d7924 | [
"Zlib"
] | permissive | DK22Pac/plugin-sdk | ced6dc734846f33113e3596045b58febb7eb083c | b0ebc6e4f44c2d5f768b36c6a7a2a688e7e2b9d3 | refs/heads/master | 2023-08-17T06:36:25.363361 | 2023-08-10T05:19:16 | 2023-08-10T05:19:20 | 17,803,683 | 445 | 221 | Zlib | 2023-08-13T04:34:28 | 2014-03-16T16:40:08 | C++ | UTF-8 | C++ | false | false | 1,274 | h | CCarGenerator.h | /*
Plugin-SDK (Grand Theft Auto Vice City) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#include "PluginBase.h"
#include "CVector.h"
#include "eVehicleModel.h"
class CVehicle;
class CCarGenerator {
pub... |
f47e3c12a16bdeae3e113af499640bb7afdfed5f | 07a8ba380d9b943330de9329823c36bfe4a9a409 | /Token.cpp | b63506adf291447533f2300590548eaed1a9bb65 | [] | no_license | CDelaney0/CS-4550 | da1eba567704e18c94b9a17ff6ac509ea5e40b29 | aac780078920faa410b50f5f869b87d712b448fb | refs/heads/master | 2021-02-16T13:45:20.281487 | 2020-03-13T21:34:14 | 2020-03-13T21:34:14 | 245,012,109 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,035 | cpp | Token.cpp | #include "token.h"
Token::Token() {
};
Token::Token(TokenType type, const std::string &lexeme)
:mType(type), mLexeme(lexeme)
{
}
void Token::CheckReserved() {
if (mLexeme == "void") {
mType = VOID_TOKEN;
}
if (mLexeme == "main") {
mType = MAIN_TOKEN;
}
if (mLexeme == "int") {
mType = INT_TOKEN;
}
if (m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.