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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dbf4f4f9d2eb3b7fdfde1ba20faf63f8e4bc3c86 | 7fa38aa929ea2be23768fb6a4c020d1c728d9cab | /Jogo do 30/jogo.cpp | e41bea84e616cb3d741062d7303334987eb9c0f4 | [] | no_license | jkobata/laboratorio-1 | 68292bbb0124d3bd07ae3e06475655f4f3cf9644 | 26e321dade1b633d507ead7a0b4caca700fa11ed | refs/heads/master | 2020-05-04T05:27:25.711595 | 2019-04-02T02:44:41 | 2019-04-02T02:44:41 | 178,978,143 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,798 | cpp | jogo.cpp | /*Autor: João Vitor Kobata
*/
#include <iostream>
#include <string>
#include"jogador.h"
#include <vector>
#include"dado.h"
using namespace std;
int main(){
dado meu_dado;
vector<jogador> jogadores;
int NumeroDeJogadores;
cout << "Digite o Numero de Jogadores" << endl;
cin >> NumeroDeJogadores;
for(int i = 0;i <... |
66e9f6051472bde106701ecb75e15385166fe51b | ac6a64d9d435f9db26b675ff4d0228eff4e9300f | /Contest_3/bai10.cpp | 014dd014b7970cc76d1862291b584d2ed91ef7d3 | [] | no_license | HoangPham3003/CTDL-GT | ffb4fbbf797887cb78bd9b8c505e3da54146e4e6 | 0c0ab2638d46b441ee198fdc7897a19eee4fa679 | refs/heads/main | 2023-06-15T13:06:36.487041 | 2021-07-10T14:16:50 | 2021-07-10T14:16:50 | 384,712,745 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 497 | cpp | bai10.cpp | #include <bits/stdc++.h>
using namespace std;
int t;
long n;
long dodai;
long long ChiPhi;
priority_queue <long, vector <long>, greater<long> > q;
long s, v, r;
int main () {
cin >> t;
while (t--) {
ChiPhi = 0;
cin >> n;
for (int i = 0 ; i < n ; i++) {
cin >> dodai;
q.push(dodai);
}
while (q.si... |
ed1a31952d6ce6cd90568a82bda514b6c240e057 | f13da091809dc2af0eee7eb01d82e4e27021442e | /libev_test/client2.cc | 82564c2e100100ed6194e50de70c629f528f3a36 | [] | no_license | fU9ANg/hacks | c3e58039e374459c029b2922f962862d74d79528 | b259e3394a560dfde2bc22884f3df991b9667f2b | refs/heads/master | 2021-01-15T19:28:16.194698 | 2015-01-12T13:51:30 | 2015-01-12T13:51:30 | 3,471,273 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,562 | cc | client2.cc |
// for test
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/select.h>
#include <errno.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/epoll.h>
#include <sys/ioctl.h>
... |
3a35bcbdd32753ab438e4668530c42f2e9189a2e | 230fb8845f39bef0f30f5d3541eff5dc0641de14 | /Connect3/Export/windows/obj/include/haxe/ui/backend/ComponentBase.h | 77be407241739da01cf8e1432a1ae9b3db451e5d | [] | no_license | vhlk/AlgoritmoMinMax | 76abd62a6e2859ed229e5831264b6d8af27e318d | 40eded4948794ca48d50d16d2133a9ab21207768 | refs/heads/main | 2023-06-30T15:16:17.492478 | 2021-08-02T13:29:32 | 2021-08-02T13:29:32 | 390,493,745 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 7,277 | h | ComponentBase.h | // Generated by Haxe 4.2.0
#ifndef INCLUDED_haxe_ui_backend_ComponentBase
#define INCLUDED_haxe_ui_backend_ComponentBase
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
#ifndef INCLUDED_haxe_ui_core_ComponentBounds
#include <haxe/ui/core/ComponentBounds.h>
#endif
HX_DECLARE_CLASS1(haxe,IMap)
HX_DECLARE_CLASS2(haxe,ds,Strin... |
b000997261c481a52b420b85c761f65e8918d013 | c7c73566784a7896100e993606e1bd8fdd0ea94e | /panda/src/linmath/lpoint3_src.h | 81ba79a6449f434e8a0071ff4b762636d2fc0ad0 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | panda3d/panda3d | c3f94df2206ff7cfe4a3b370777a56fb11a07926 | 160ba090a5e80068f61f34fc3d6f49dbb6ad52c5 | refs/heads/master | 2023-08-21T13:23:16.904756 | 2021-04-11T22:55:33 | 2023-08-06T06:09:32 | 13,212,165 | 4,417 | 1,072 | NOASSERTION | 2023-09-09T19:26:14 | 2013-09-30T10:20:25 | C++ | UTF-8 | C++ | false | false | 3,485 | h | lpoint3_src.h | /**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file lpoint3_src.h
* @autho... |
fae365d82486960971d8d6be95284f93c3c75b83 | 7d3a6d7f6c20d7969009c62228e2447cbed25a64 | /main.cpp | 3039b3554d764742bbacc7d4df34f0f6071b41e6 | [] | no_license | migdea11/Ultrasonic-Range-Sensor-Driver | b9610ac8703e3adf9cc114d178334a66803ddaec | 9abed4f402d5d5df1c078a4990cf49ad506c4f72 | refs/heads/master | 2018-10-15T17:40:49.312713 | 2018-07-12T05:16:31 | 2018-07-12T05:49:41 | 116,210,531 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 564 | cpp | main.cpp | #include <iostream>
#include <cstdint>
#include <unistd.h>
using namespace std;
#include "HC_SR04.h"
int main()
{
cout<<"init"<<endl;
HC_SR04* sensor = HC_SR04::Init(20, 21);
cout<<"start"<<endl;
sensor->Start();
uint16_t numRead = 0;
while(numRead++ < 50)
{
uint16_t poll = 10... |
c16d4b561fe404f600850b7600293721ae513022 | 382c2831d0250b2e07791fe5a0851d36f9503ffa | /src/sim/solver.inl | f5f04496cb61a5089c9f3728b14b3aaab8e939a8 | [] | no_license | NTForked/Ariel | 2cb28739f3b51141ba3f0c5e19c23c4d1ad8faf5 | 4a0878f90c2f1346753953e0dffbf5646550cdd4 | refs/heads/master | 2021-05-29T15:20:30.850667 | 2015-09-01T09:19:42 | 2015-09-01T09:19:42 | 53,224,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,413 | inl | solver.inl | // Ariel: FLIP Fluid Simulator
// Written by Yining Karl Li
//
// File: solver.inl
// Breakout file for PCG solver
#ifndef SOLVER_INL
#define SOLVER_INL
#include <tbb/tbb.h>
#include "../grid/macgrid.inl"
#include "../grid/particlegrid.hpp"
#include "../grid/levelset.hpp"
#include "../utilities/utilities.h"
#include ... |
3ba40d57db9478ab17e567942deb331cd273bce3 | b991b3822572e13c1a0e17f037564326d4932ff6 | /shortest-path-in-binary-matrix/Accepted/2-13-2021, 8_25_22 PM/Solution.cpp | 613cf137165392b785de4c27288dd85a40fa323c | [] | no_license | isaigm/leetcode | 8f1188a824e78f11b8223302fe625e9a8bf9262a | e53b04a9f627ff95aaae9f8e5315f5f688c6b9e2 | refs/heads/master | 2023-01-06T02:07:41.118942 | 2022-12-31T23:13:20 | 2022-12-31T23:13:20 | 248,679,884 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,238 | cpp | Solution.cpp | // https://leetcode.com/problems/shortest-path-in-binary-matrix
class Solution {
public:
int shortestPathBinaryMatrix(std::vector<std::vector<int>> &grid)
{
auto dim = grid.size();
if(grid[0][0] == 1 || grid[dim -1][dim - 1]) return -1;
if(dim == 1 && grid[0][0] == 0) return 1;
... |
a75e3b7d6ad6e225449eea1f51315f8feec06f75 | 31e6b52bf50d123d7e129fbf18209501e966b549 | /laser_resender/src/laser_resender_node.cpp | b3936e5840d2898ab62545862ed5e59b261f3f2e | [] | no_license | MROS-RobMoSys-ITP/Pilot-URJC | c8819e6c1492523200abb0844d153ac73aa6a0b6 | 7386f5744730938557055a0c32191b6a40f03e89 | refs/heads/master | 2021-07-11T01:29:01.508739 | 2021-03-29T06:47:21 | 2021-03-29T06:47:21 | 235,316,865 | 7 | 3 | null | 2021-03-29T06:47:21 | 2020-01-21T10:34:01 | C++ | UTF-8 | C++ | false | false | 4,365 | cpp | laser_resender_node.cpp | // Copyright 2020 Intelligent Robotics Lab
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... |
3a84768076773b87b85bf106d8022cfaa46cb213 | bf18adcb40cb7ae517890642cadf9ed6886ac818 | /trial/testCostFunctor.cpp | 831e933a01e4e15b1044143b07e5fdfd5348e578 | [] | no_license | Alegriabaile/My3dPhoto | c2709e219e334fe6f09c4cf00eaea76a76ba9696 | 5093fe88f8fcead541a1aee388b7f1f637adae3c | refs/heads/master | 2022-05-14T18:56:39.401695 | 2020-01-16T14:05:37 | 2020-01-16T14:05:37 | 220,237,869 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,441 | cpp | testCostFunctor.cpp | //
// Created by ale on 20-1-6.
//
#include "testCostFunctor.h"
void GeneralGraphDfnSfn(const cv::Mat &input, cv::Mat &output)
{
size_t width = input.cols;
size_t height = input.rows;
size_t num_pixels = width*height;
size_t num_labels = 10;//segmentation.
output = input.clone();
ExtraData ex... |
c76aa6f0794a9030d9ede5e31bfecf5ce3243100 | 990db72b1341e04b19da8306b00a8d7810cd193f | /SESniipes/Casting/const_cast.cpp | df8172a87d1b1ea93ad0fff4748f95ac054915d3 | [] | no_license | yashica-patodia/4thSemester | 8f38266bf439991fdae009a0b4d62a8a400e18e5 | 19a806abbb8e657bb502648472169b3139dadfb5 | refs/heads/main | 2023-07-30T03:19:09.343893 | 2021-09-12T13:41:26 | 2021-09-12T13:41:26 | 405,651,496 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 784 | cpp | const_cast.cpp | //read gfg
//moslty used to make const operator non-const
#include <iostream>
using namespace std;
class A
{
int i_;
public:
A(int i) : i_(i) {}
int get() const { return i_; }
void set(int j) { i_ = j; }
};
void print(char *str) { cout << str; }
int main()
{
const char *c = "sample text";
// pr... |
c2c4d7b9f69c636c5110166a2226ad53e7303794 | fb0602ab77d4d61e838d0093b587fcaa0045a7b8 | /NAC/classes/Vektor2D.cpp | 45afbf58e999b55c7dc2a132c3f8464bad655b4f | [] | no_license | Toures/NAC | 63e1edbcdc1074bd4f7a934fbadcc3a055a59d93 | 04569e6eb4fbbb17f2a40934c9e50ae054fc0e23 | refs/heads/master | 2021-01-10T15:14:29.118653 | 2015-10-29T12:31:45 | 2015-10-29T12:31:45 | 44,311,483 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 653 | cpp | Vektor2D.cpp | #include "../headers/Vektor2D.h"
#include <iostream>
Vektor2D::Vektor2D(void)
{
}
Vektor2D::Vektor2D(int x, int y)
{
m_Element[0] = x;
m_Element[1] = y;
}
void Vektor2D::addiere(Vektor2D v) {
m_Element[0]+=v.m_Element[0];
m_Element[1]+=v.m_Element[1];
}
void Vektor2D::kopiereIn(Vektor2D* zielvar) {
zielvar->m_... |
6919cac79a34d74efd508834d2badd86cf4da0d5 | bfd0ce1bf9e0b55c1132d978372093f84b0798b6 | /Source/DungeonEscape/ObjectScaler.cpp | 7b5c22b8219150dd106d27fb1d29a46a63440533 | [] | no_license | fseverijns/UE4_DungeonEscape | e2a29dd762043be57c31c868da979f37042a394b | b6587335ad1fbdfdfb8bdafaf7a365f98e4ca0f3 | refs/heads/master | 2022-11-12T18:43:56.509955 | 2020-06-17T14:09:43 | 2020-06-17T14:09:43 | 246,330,043 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,546 | cpp | ObjectScaler.cpp | // Copyright Frank Severijns 2020
#include "ObjectScaler.h"
// Sets default values for this component's properties
UObjectScaler::UObjectScaler()
{
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
// off to improve performance if you don't need... |
50b1f3a744ba36e83ff6c578e86cf33d72dd5733 | 48f0afc743d93971f3bb5785374c4cab92e3412c | /processData.cpp | 70f1e03cb31a5979864c34eaa016e5bb1b738127 | [
"MIT"
] | permissive | huyducnguyen1198/dsa_ass2 | 37d4f7d25000eea0c162c1e5552f325547ee8393 | fbe9001ca1e174733ecc4a60436d92411aac3e3f | refs/heads/master | 2023-01-20T02:27:39.069647 | 2018-06-20T04:02:20 | 2018-06-20T04:02:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,812 | cpp | processData.cpp | /*
* =========================================================================================
* Name : processData.cpp
* Description : Student code for Assignment 2 - Data structures and Algorithms - Spring 2018
* =========================================================================================
*/
... |
e8d7eab67024af26c74849ddd97c209d55d160a2 | 2a2093b6a596544053cc49592a9282c970f34c78 | /NpCapTest/NpCapFile.h | 83a7702e308ff28bcc937ee55e10687a7b950790 | [] | no_license | ideic/npcapTest | 60bd19e5a1c3733aaba378ac38d922a4921ed3ff | 36c60821d380bf2f07c5e774abdd98a1969da7a7 | refs/heads/master | 2020-04-07T09:11:39.129355 | 2018-11-21T15:33:32 | 2018-11-21T15:33:32 | 158,243,578 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 492 | h | NpCapFile.h | #pragma once
#include <string>
#include <functional>
#include <pcap.h>
class NpCapFile
{
public:
NpCapFile() = default;
NpCapFile(std::string file);
NpCapFile(const NpCapFile& from);
NpCapFile operator=(const NpCapFile& from);
~NpCapFile();
bool PrepareForRead();
void FinishRead();
const bool NextData(const ... |
30a0b07fa003e3dd0533c2f8811492b8b30fef5f | 4b1d3ffdc601fc19327f5e262ada845e8d8244c7 | /Worker.h | af1c508b8bf624814288841041e11f3d69fcb78f | [] | no_license | Peterliang233/EMS-baseon-cpp | 484a5efabac675b77288b8e26cc4793264e08690 | e1eaca0ccce15c0878ba886a0121d290bf075248 | refs/heads/main | 2023-01-11T21:28:57.454097 | 2020-11-20T01:13:20 | 2020-11-20T01:13:20 | 301,591,829 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 265 | h | Worker.h | #pragma once
#include<iostream>
#include<string>
using namespace std;
class Worker { //定义一个主类
public:
int m_id;
string name;
int depart;
virtual void show_infor() = 0;
//获取个人信息
virtual string get_depart() = 0;
//获取所在部门
}; |
c4e375f2b771792163f700f3b28e36ad05a297a6 | bbb886b55bfb95dbce854d4aa5592044e6ad0da0 | /OpenRoboVision/src/vision/camera_vi.cpp | 5473de6692d5cd82e3c0aa56f12a37a8d44af9ca | [] | no_license | noonv/openrobovision | e68088c0deea39d518b1a7cb26125d8d74cca5de | 1e39f934ccfa5202e1e1aefe888bdb1144293e5a | refs/heads/master | 2021-01-13T01:40:26.828993 | 2015-03-13T09:48:39 | 2015-03-13T09:48:39 | 32,135,945 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,661 | cpp | camera_vi.cpp | //
// OpenRoboVision
//
// object for get frames from camera via videoInput library
//
// объект для получения картинки с видеокамеры
// через библиотеку videoInput
//
//
// robocraft.ru
//
#if defined(USE_OPENCV) && defined(WIN32) && defined(USE_VIDEOINPUT_LIB)
#include "orv/vision/camera_vi.h"
CameraVI::CameraVI()... |
b7f64f03820a4d764cf627bb22488d350293c963 | 1a1aec2664616e826c3ecc3f8669cabe9e61f6aa | /fio_test03_2_BlueToothSerial/fio_test03_2_BlueToothSerial.ino | 5d98bf29b9a6f79cb39f8325309f5a8923d351e8 | [] | no_license | AkihiroMasuda/Arduino | 5233076a1b2d16bd2747ba7ae4e92b883844f227 | a3c95d8aecbdae051359dec96db8771cd2754cdf | refs/heads/master | 2021-01-10T19:34:22.758464 | 2014-01-13T15:06:14 | 2014-01-13T15:06:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,151 | ino | fio_test03_2_BlueToothSerial.ino | #include <SoftwareSerial.h>
#define BLUETOOTH_RX_PIN (7)
#define BLUETOOTH_TX_PIN (12)
SoftwareSerial mySerial(BLUETOOTH_RX_PIN,BLUETOOTH_TX_PIN);
int count = 0;
char str[128];
void setup()
{
Serial.begin(9600);
mySerial.begin(9600); //BlueTooth用のシリアルポート
count = 0;
}
void loop()
{
//BlueToothポートへの書き込み
... |
2b7e2cb9e674ca092d6d6131283f3e3635829052 | 4625d6279a210f387130a052ca2b74d6aae15989 | /examples/First_Project/ggHllllSMEFT/Utilities/VetoPrefactors/JetVetoParameters.inc | bb55fc5d497e8e30643481ecbf78ae33eaec7dbf | [
"MIT"
] | permissive | JaySandesara/madminer | 0b2803fadbd264551fbf074797edb8f28a470d16 | c5fcb9fbbd5d70f7a07114e4ea6afc4e3c4518fb | refs/heads/master | 2020-09-11T21:06:52.559765 | 2019-11-18T19:29:01 | 2019-11-18T19:29:01 | 222,189,954 | 0 | 0 | MIT | 2019-11-17T03:08:30 | 2019-11-17T03:08:29 | null | UTF-8 | C++ | false | false | 366 | inc | JetVetoParameters.inc | double precision JETRADIUS, ptjmax
double precision MuScalefactor, MuMScalefactor, mode
COMPLEX MuHScalefactor
parameter (JETRADIUS= 0.40d0)
parameter (ptjmax= 20.00d0)
parameter (MuScalefactor= 1.00d0)
parameter (MuHScalefactor= 1.00d0)
parameter (MuMScal... |
56d8a3fb26f5a87b20eb8cc255dc1a6b916f01ec | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5636311922769920_0/C++/dussel/quald.cpp | 9dcc8de77656c8960d390149b12ee8af42f45337 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,669 | cpp | quald.cpp | /* attention to overflow */
#include <bits/stdc++.h>
#define dump(x) cerr<< #x << " = " << x <<endl
#define ALL(container) (container).begin(),(container).end()
using namespace std;
const int INF = 1 << 25;
void io() { cin.tie(0); ios::sync_with_stdio(false);}
template <class S,class T> ostream& operator<<(ostream& o... |
b5c949bd71ed1a46ab1e6682e8067eb40d8f1396 | 7d2fdb5e5810f1efaad664f1748b99b44cfa6226 | /include/loader/HTMLDump.h | d71ca02fe823d28bf71b84d859b69f4c9431e25c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | sbowman-mitre/FMACM | cdbba63a735134cdc5a0a2c6ecdf538ecf2c9ba0 | 510e8c23291425c56a387fadf4ba2b41a07e094d | refs/heads/master | 2020-03-21T16:38:34.503499 | 2018-06-27T18:02:37 | 2018-06-27T18:02:37 | 138,783,016 | 0 | 0 | Apache-2.0 | 2018-06-26T19:21:54 | 2018-06-26T19:21:54 | null | UTF-8 | C++ | false | false | 1,394 | h | HTMLDump.h | // ****************************************************************************
// NOTICE
//
// This is the copyright work of The MITRE Corporation, and was produced
// for the U. S. Government under Contract Number DTFAWA-10-C-00080, and
// is subject to Federal Aviation Administration Acquisition Management
// System... |
c32b693f6552c1d6cc31320ea81ddfed05ffbb77 | 56c11c2c4e0ef9752ccf9118825dec1a58787491 | /7_Exceptions/1_ZeroNegative.cpp | 78da9de3a6de4bc27fb839476d79d7fac39653a8 | [] | no_license | Ocvcorp/PR60Cplusplus | 79a1e2029756975f2ec81e01924609a6b2657aaf | 33aaf6dbe148a12d6d0beb5500a9707096a089f5 | refs/heads/master | 2021-02-07T03:08:23.119140 | 2020-08-14T21:40:34 | 2020-08-14T21:40:34 | 243,975,688 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 499 | cpp | 1_ZeroNegative.cpp | #include <iostream>
using namespace std;
void f(int b) {
if (b == 0) throw 5;
if (b < 0) throw 5.0;
if (b = 'A') throw "hhh";
}
int main() {
int a, b;
while (1)
{
cout << "input a, b: ";
cin >> a >> b;
try {
f(b);
cout << "The result: " << a / b << endl;
}
catch (int n) { cout << "Zero value. ... |
18ea9dd27c7815cf2dd71d774f1aecdcf88d73b0 | df2f2c89943e42743510bab97f30423018f94db1 | /src/types.hpp | 68d5ce0a25c3e5c5d4ffecbf4780281e106ccb73 | [
"MIT"
] | permissive | chiefstone/eaOpcUa | 5a6a2ef111f51beaddc0b7d5b9a606cc03f6d97b | 48f66bbf98a8894fdeae91ae985ce921c58eb55a | refs/heads/master | 2022-04-07T06:05:44.878206 | 2020-02-21T11:19:02 | 2020-02-21T11:19:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,473 | hpp | types.hpp | #ifndef EAOPCUA_TYPES_HPP
#define EAOPCUA_TYPES_HPP
#include <map>
#include <vector>
#include <mutex>
#include "open62541/types.h"
#include <functional>
#include "string_split.hpp"
struct address {
std::uint16_t byte = 0;
std::uint8_t bit = 0;
enum Feldtyp {
EIN, AUS, SPE
};
Feldtyp ftyp = EIN;
enum Ty... |
806478ea86aee5630226dba97b0906740be22b90 | 26bc498c752e59b3954113ca856e5807364c135e | /include/config.h | e012948c95a0f25ccbc5cfc83140af3ba7b7e5db | [
"Apache-2.0"
] | permissive | NCAR/nimbus | ac8cbe30e9ca27f53dff6a37642dccd6e8549cde | 9866f7b648bdda95afc80fb2ff11f7b970c2eeb2 | refs/heads/master | 2023-07-20T21:52:25.700742 | 2023-07-11T23:06:35 | 2023-07-11T23:06:35 | 155,920,551 | 4 | 1 | null | 2019-05-18T16:39:51 | 2018-11-02T20:55:07 | C | UTF-8 | C++ | false | false | 9,830 | h | config.h | /*
-------------------------------------------------------------------------
OBJECT NAME: config.h
DESCRIPTION: Header File declaring Variable and associated processing
functions.
NOTE: ProcessingRate vs. HRT_Rate, there used to only be 1 HRT,
25Hz. I couldn't easily roll the new 50Hz into
ProcessingRate, hen... |
385f4a45af7b728eee906388feb09c0e7c884c2c | a66ce2b31cee52088d0941f1734de2932b3afc37 | /src/pvxs/sharedpv.h | 95e69a7bdeb0bcc09a85886cf7f01de0ad39135b | [
"BSD-3-Clause"
] | permissive | mdavidsaver/pvxs | 291cda745d2b8387445758ef0054ea7d952dd390 | aba04ee95228369ba0f6f1843f85e830c2587317 | refs/heads/master | 2023-08-04T17:24:39.334946 | 2023-07-30T20:19:44 | 2023-08-03T00:20:13 | 216,301,431 | 13 | 24 | NOASSERTION | 2023-09-13T10:44:47 | 2019-10-20T03:21:19 | C++ | UTF-8 | C++ | false | false | 4,143 | h | sharedpv.h | /**
* Copyright - See the COPYRIGHT that is included with this distribution.
* pvxs is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
*/
#ifndef PVXS_SHAREDPV_H
#define PVXS_SHAREDPV_H
#include <functional>
#include <memory>
#include <map>
#in... |
b2e23a8323719b8730fe5795c71548837a55b250 | 83bc1d5ba7b7a2fa224ac4f605fb430a59dbae1d | /packing.cpp | fa5a586a1088321906944c97550728bc403b55f7 | [] | no_license | axnjaxn/toughersweeper | 9c430abc29d4e3be6742c956a991dfde4c1e5329 | fb44b1a6a014c9f2c21fb1b306b1a21b663719ba | refs/heads/master | 2021-01-10T21:26:29.559975 | 2015-02-03T16:51:18 | 2015-02-03T16:51:18 | 28,725,743 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,736 | cpp | packing.cpp | #include "packing.h"
#include <cstdio>
#include <cstdlib>
PackingGrid::PackingGrid(int h, int w) {
this->w = w;
this->h = h;
cells.resize(w * h);
}
void PackingGrid::factor(std::vector<int> nj, int N, std::vector< std::vector<int> >& solns,
int i, std::vector<int> soln) {
if (i >= nj.size()) {
if (N ... |
9f318e43ffc357be4a704eb78dda628e5c1866bd | 396396f9ff0869e3928a9b53836231d615bd1058 | /Timer/bool_timer.cpp | 39026ddf1241b49bab18460be71c7881583ebca4 | [] | no_license | SeptinaryAI/KilnSampler | 5e769198c15644393419d7f4fc20e25b2e2b4b7c | 940fb75a5cdbce149b6af6768d6848c53b930ac6 | refs/heads/main | 2023-03-27T08:37:10.361045 | 2021-03-16T09:54:31 | 2021-03-16T09:54:31 | 348,291,385 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 80 | cpp | bool_timer.cpp | #include "bool_timer.h"
//饿汉
QTimer* bool_timer::timer = new QTimer();
|
512118d8d7da620c671f90519fa9c578c1c2908a | 4a99fa98abd0285bc3b5671f237b932114123340 | /RunWidgets.cpp | aa79215cd7d6da3d583411161cb418bd12107b26 | [] | no_license | automenta/crittergod1.5 | 937cd925a4ba57b3e8cfa4899a81ba24fe3e4138 | 4786fe9d621c0e61cdd43ca3a363bfce6510e3c0 | refs/heads/master | 2020-12-24T16:58:32.854270 | 2010-04-12T03:25:39 | 2010-04-12T03:25:39 | 520,917 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,434 | cpp | RunWidgets.cpp | /*
* File: RunWidgets.cpp
* Author: seh
*
* Created on February 23, 2010, 3:59 PM
*/
#include <iostream>
#include <string.h>
using namespace std;
#include "video/GLWindow.h"
#include "space/DefaultSpace.h"
#include "physics/OpenGL/GlutStuff.h"
#include "audio/Audio.h"
#include "widget2d/container.h"
#inc... |
5a759e92e11b4521e03d55d135217160d401c87e | 0fdb6565a31358a7021c30bbfd0e95a1a9d39e25 | /src/morganaOperators/fnBF3dC.hpp | 414dfbcfab6682736855d975378f7c549ce97808 | [] | no_license | feof81/morganaPublic | b8b61a08d222a2ade3484cbdfc80c9790c0e5508 | 540cdbcdcf56e5cd13c0dc98c04f724543025bce | refs/heads/master | 2023-01-28T01:12:51.711178 | 2023-01-11T16:56:37 | 2023-01-11T16:56:37 | 216,569,123 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,721 | hpp | fnBF3dC.hpp | /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
This file is part of Morgana.
Author: Andrea Villa, andrea.villa81@fastwebnet.it
Morgana is free software: you can redistribute it and/or modify it under the terms of the GNU Gene... |
5871d638dc6f9de703135b8aee56ea6dd74682ea | b3da8a7e4d960d69de97d74fc18b19f49a11baa2 | /13151.cpp | 66983314366d553fd005ee6929495e86a99c7bc3 | [] | no_license | akrabulislam/UVA | 16eeb3f2ec735ac756e2e114025d158eaf0787f0 | 5c899bd6f71c40968dc4f0a699434ac5f8488c64 | refs/heads/master | 2022-04-09T23:53:00.056400 | 2020-03-09T06:08:08 | 2020-03-09T06:08:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,240 | cpp | 13151.cpp | #include "bits/stdc++.h"
using namespace std;
int main(){
// freopen("in.txt","r",stdin);
// freopen("out.txt","w",stdout);
char s[100];
int m;
while(scanf("%s %d",&s,&m)&&(strcmp(s,"0")!=0&&m!=0)){
int n;
if(s[0]=='0'&&s[1]=='x'){
sscanf(s,"%X",&n);
}
... |
0dfc2330bc4efd077d66f6f45e369f8cdabf2b7a | 188409864868c4f2659679ec39c040cd253c597b | /sbnana/FlatMaker/flatten_caf.cc | 6dfdf26ec95216972d7bed68ff57b0b3098ce5d1 | [] | no_license | cmmarshall/sbnana | 077c9f32b09bd8b08bd9b56ebb586e5a7aaa6dd2 | 0e2acc6130537be69bd0d4b3c48dd2914d753b29 | refs/heads/main | 2023-09-04T05:23:53.604373 | 2021-07-16T11:52:30 | 2021-07-16T11:52:30 | 388,840,340 | 0 | 1 | null | 2021-07-23T15:08:46 | 2021-07-23T15:08:46 | null | UTF-8 | C++ | false | false | 3,199 | cc | flatten_caf.cc | #include "sbnanaobj/StandardRecord/StandardRecord.h"
#include "sbnanaobj/StandardRecord/SRGlobal.h"
#include "sbnana/FlatMaker/FlatRecord.h"
#include "sbnana/CAFAna/Core/Progress.h"
#include "TFile.h"
#include "TH1.h"
#include "TSystem.h"
#include "TTree.h"
#include <iostream>
int main(int argc, char** argv)
{
i... |
5db2601e64d3a063939e47c6b80ecbd16925778d | 09a5f628f61aa97be79f67e8d2dfb920fcc8f894 | /Projects/FrameWork/FrameWork/Systems/Input/BaseInput.h | 33f261e8482f233ced01fcdceb31ca6bf29f76f5 | [] | no_license | tozawa0406/SpriteMeshEditer | daafdedb9b5957263553d65107357a6bbdac3c76 | e8c02aa73045ba4cdfb45443ad7d5f96091e968e | refs/heads/master | 2020-04-24T17:38:46.367375 | 2019-11-13T12:04:49 | 2019-11-13T12:04:49 | 172,154,914 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,900 | h | BaseInput.h | //-----------------------------------------------------------------------------
//
// コントローラ基底[BaseInput.h]
// Auther : 戸澤翔太
// 2018/08/18
//-----------------------------------------------------------------------------
#ifndef _BASE_INPUT_H_
#define _BASE_INPUT_H_
#include <Windows.h>
#define DIRECTINP... |
4e68a94f544a582067eacd951523152747f34dbb | c9af82733640aa1dd6d08313d084dae5d9ca4f66 | /Plotting/HInvPlot/Root/RecParticle.cxx | 7ef7cf8e68a9f6b46da541f8bc4188738fd2886f | [] | no_license | schaed/STPostProcessing | 4f7f2c216ce2da93ddf0874a58226ee05d2f72f4 | 14931b4512f07fa4ec481fc3482d18e8534464c6 | refs/heads/master | 2023-05-04T12:23:51.984327 | 2021-05-20T16:40:35 | 2021-05-20T16:40:35 | 369,274,722 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 985 | cxx | RecParticle.cxx |
// Local
#include "HInvPlot/RecParticle.h"
using namespace std;
//-----------------------------------------------------------------------------
Msl::RecParticle::RecParticle():
eta (0.0),
phi (0.0),
pt (0.0),
m (0.0),
bits (0)
{
}
//---------------------... |
fe98f21912403ea100aa51732bfcf73dea67c7e7 | e0d1c0d2ae04642d850bfeeca27202bb08bcd3b4 | /src/GLOBAL_DATA_FROM_SOURCES.h | 8daee48c252fd3cb1452f1b3e7cb366f345ea40c | [] | no_license | ArturWaz/bulbulator_head_banger | bafd6d03b0d76c57c7490c4e8333e7c37e064156 | cfb0bb4f54ecb2afbf87427f8ca3b5da8ea5ca49 | refs/heads/master | 2021-01-19T18:32:51.117367 | 2015-03-11T09:49:56 | 2015-03-11T09:49:56 | 30,066,076 | 0 | 0 | null | 2015-03-06T08:59:55 | 2015-01-30T09:49:48 | C | UTF-8 | C++ | false | false | 994 | h | GLOBAL_DATA_FROM_SOURCES.h | /*
* GLOBAL_DATA_FROM_SOURCES.h
*
* Created on: 3/6/2015
* Author: Artur
*/
#ifndef GLOBAL_DATA_FROM_SOURCES_H_
#define GLOBAL_DATA_FROM_SOURCES_H_
#include "Buffer.h"
#include "SensorsStructures.h"
namespace GlobalData {
static const size_t bufferLength = 5000;
namespace AccelRaw {
st... |
67f44bec87e5313620a8d637d3773a190f1cfb14 | df59b0571730619d5d3f72bdf3d9427393fcf8cc | /ld21/fingers/code/Entities/Entity.h | a247a2af2fa6618760f17de98b82500fb0759c90 | [] | no_license | stuckie/ludumdare | 69642be40da72e64bd0c1a17d4c4d6937fd278a9 | b61d30e97a63b56376defaf06a8eaebe3322811c | refs/heads/master | 2021-01-21T10:13:02.901439 | 2019-01-02T14:48:56 | 2019-01-02T14:48:56 | 4,536,120 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,612 | h | Entity.h | #ifndef _ENTITY_H_
#define _ENTITY_H_
#include <Resources/Resource.h>
#include <Graphics/Mesh.h>
#include <Maths/Vector2.h>
#include <Maths/Vector3.h>
#include <Maths/Matrix4.h>
#include <Graphics/VertexBuffer.h>
#include <Graphics/IndexBuffer.h>
#include <Graphics/Material.h>
#include "../Resources/Entities.h"
/// ... |
199e2868651268394e78e1930d09083a063b9a1c | 16239dbdff8ebfa9f75e13833b215a8e72f39a43 | /JSonWriter.cpp | dfdba4c18bad67fd1691276ddcf2beb56a197736 | [] | no_license | gta4roy/XML_dear | b0a2a0de95e9a2cf6efa297d2ba1004dc3b1566c | 59cb3f91facecb72a047aa7241ef9a6970faa3e3 | refs/heads/master | 2022-06-27T19:28:24.856299 | 2020-05-09T05:46:54 | 2020-05-09T05:46:54 | 262,497,744 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,329 | cpp | JSonWriter.cpp | #include "JSonWriter.h"
#include "Nodes.h"
namespace Gta4Roy {
namespace XMLJSONConvertor
{
using namespace std;
using namespace rapidjson;
JSonWriter::JSonWriter(const std::string & xmlFileName,const Node & rootNode)
:
m_fileName(xmlFileName),
m_rootNode... |
09ad0f587231da664434c434d6b55cc32a3a78c3 | 55ad45d68e1f895f98b0ffd944b1461b3ca492db | /Classes/RoleBossBullet.h | 344022a1988bd5e2539f868c01f131359b7ee849 | [] | no_license | koala1122/MyMario | ec07aa6b03f9014e6e5b32aaf3d2e59b2e4dfc28 | dad34d2adfbf918231c9f5ab0fddcdd8b92c4bf8 | refs/heads/master | 2021-01-22T13:52:37.801314 | 2017-09-04T03:14:31 | 2017-09-04T03:14:31 | 100,695,785 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 317 | h | RoleBossBullet.h | #ifndef __RoleBossBullet_H__
#define __RoleBossBullet_H__
#include "Role.h"
class RoleBossBullet:public Role
{
public:
bool init(ValueMap& objProperty);
void updateStatus();
void moveLeft(float dt);
void moveRight(float dt);
virtual CollisionResult collsion(Role*, const Rect&);
};
#endif
|
75b78e6792cd607f340b1a8855dbdf3308b9d558 | f9a6d748f95023016416ffbd62b6d73b70a6df66 | /Opengl08/Geometry.cpp | 9fef173dd79860460bbc16b532f8804992171753 | [] | no_license | JoseRHdz/graficacion_clase | ec4372b4cc1818925c35d500b741980cc149e008 | e591d25079f6999614e3972f48070295cd3fa87f | refs/heads/master | 2020-07-31T05:38:40.348067 | 2019-10-29T19:12:21 | 2019-10-29T19:12:21 | 210,502,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,981 | cpp | Geometry.cpp | /*
* File: Geometry.cpp
* Author: ulises
*
* Created on 27 de agosto de 2019, 10:20
*/
#include "Geometry.h"
#include <fstream>
#include <sstream>
Geometry::Geometry()
{
//ctor
}
Geometry::~Geometry()
{
//dtor
}
void Geometry::create()
{
glGenVertexArrays(1, &vao);
glGenBuffers(1, &vbo);
... |
9159707153822c4c0ad325394da31b464146becb | f20e965e19b749e84281cb35baea6787f815f777 | /LHCb/ST/STKernel/Kernel/STCommonBase.h | a40d8e0bbdd55adf4d7e199128b12de6810cd1f1 | [] | no_license | marromlam/lhcb-software | f677abc9c6a27aa82a9b68c062eab587e6883906 | f3a80ecab090d9ec1b33e12b987d3d743884dc24 | refs/heads/master | 2020-12-23T15:26:01.606128 | 2016-04-08T15:48:59 | 2016-04-08T15:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,441 | h | STCommonBase.h |
//-----------------------------------------------------------------------------
/** @file STCommonBase.h
*
* Header file for ST base class : STCommonBase
*
* CVS Log :-
* $Id: STCommonBase.h,v 1.8 2010-04-24 11:35:49 mneedham Exp $
*
* @author Matthew Needham Matthew.Needham@cern.ch
* @date 2005-11-1... |
f1ee341a4dd75505a6c91a1948e4466aa598d535 | 75ae2e16b483f34c86538a2015416e03c563ae06 | /code/windows/qt/dialog_ui/dialog.cpp | 3ac2173e06d71db5f9ddc8a9c3abc6620b11f17f | [] | no_license | nijiahe/code | 962d61efced0e4b7af0fcb93f158a489ed9237b0 | 4ac258c2e968d9bdfea7ffb76d1da4d79d6de94a | refs/heads/master | 2021-02-08T00:49:28.074815 | 2020-03-01T05:32:44 | 2020-03-01T05:32:44 | 244,090,411 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 464 | cpp | dialog.cpp | #include "dialog.h"
#include "ui_dialog.h"
Dialog::Dialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::Dialog)
{
ui->setupUi(this);
x=y=cx=cy=0;
}
Dialog::~Dialog()
{
delete ui;
}
void Dialog::on_pushButton_clicked()
{
QString str1=ui->lineEdit->text();
QString str2=ui->lineEdit_2->text... |
6dcb9c6468a88d529d95c92807a4e17ad24e2864 | 510afaf6e11518f06e1e22e56f0dc556d7a32452 | /Lab_6_Class_Factory/Class_B.cpp | 2c3dd3782715cdb73d74156ade47a50b65988651 | [] | no_license | VladMurat/Lab_6 | b39710017773512b3a033328a1522817375ef964 | eae9a204c0330f3ad30403276407df0430a6f65a | refs/heads/master | 2021-01-16T00:22:13.646581 | 2014-06-03T18:11:41 | 2014-06-03T18:11:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 138 | cpp | Class_B.cpp | #include "Class_B.h"
Class_B::Class_B(void)
{
}
Class_B::~Class_B(void)
{
}
void Class_B::Show(void)
{
cout<<"Class B"<<endl;
}
|
9fd182a3891258280a8a2abc12db974abd99dde0 | 8894ab29e8c99f964b33075e306c5db7f984247a | /DataStructure/review/LinearList.cpp | c011b1d1aa98dafc84a33672f72b579e25f4f9d9 | [] | no_license | WooKimm/Homework | d5e5d29cddcae66d50fda9259f7b4d1e9f5b38fc | 58efb0f6c5fe6460cc572353ca94e7cc29a4227c | refs/heads/master | 2022-01-04T22:36:30.251938 | 2018-07-28T08:29:46 | 2018-07-28T08:29:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,525 | cpp | LinearList.cpp | //Linear List(Sequential List)
//ADT of 1D Array
#include <iostream>
#include <stdlib.h>
template <class T>
class Array{
private:
T *elements;
int ArraySize;
void getArray();
public:
Array(int Size = DefaultSize);//constructor
Array(const Array<T>& x);//copy constructor
~Array(){delete []eleme... |
bfa9c077538c842075e6bed7e770afb9fca9065f | 78dc9f153549b281be709227bc9897931b06260d | /generation/WinSDK/RecompiledIdlHeaders/um/urlmon.h | 8b30d8613690272623678d0f6373e25582b40919 | [
"MIT"
] | permissive | microsoft/win32metadata | dff35b4fe904d556162cee5133294c4498f1a79a | 5bf233f04d45f7a697e112e9639722551103eb07 | refs/heads/main | 2023-09-01T19:51:22.972899 | 2023-08-30T21:39:44 | 2023-08-30T21:39:44 | 270,838,404 | 1,240 | 107 | NOASSERTION | 2023-09-14T18:49:44 | 2020-06-08T21:52:10 | C++ | UTF-8 | C++ | false | false | 431,580 | h | urlmon.h |
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 8.01.0628 */
/* @@MIDL_FILE_HEADING( ) */
/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__... |
e54383fe273284fd183987c8e31b23586f32157d | 7a04823ffd4d902dd37138972b59f52c8be52c81 | /DirectX/VisualStudio/Quantum/Library/Materials/SpotLightMaterial.cpp | 8cc5a9c36bb7d326b3665efa7f2ad773c835aec7 | [] | no_license | DarriusWright/Capstone_WrightD | d5f8b3651f52ec773b8442905177e0f72b66147e | a15741a120c8bd1567a09c4225555ef809e18562 | refs/heads/master | 2020-05-01T08:21:07.415036 | 2014-10-07T20:14:21 | 2014-10-07T20:14:21 | 24,615,888 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,764 | cpp | SpotLightMaterial.cpp | #include "SpotLightMaterial.h"
#include <Effects\Effect.h>
#include <3DObjects\Mesh.h>
#include <3DObjects\Model.h>
#include <Exceptions\GameException.h>
namespace Library
{
RTTI_DEFINITIONS(SpotLightMaterial);
SpotLightMaterial::SpotLightMaterial() : Material("main11"),
MATERIAL_VARIABLE_INITIALIZATION(AmbientCol... |
3be241538995fd74ccba932118957fe72cf106d8 | fc8b47153a85e5d42db981b348658d0be9fe0385 | /csqlbot/csqlbot/timehand.h | 78c84e230780a5b564c83cafdb4c7c0c1af106d3 | [] | no_license | BackupTheBerlios/sqlbot | e2d004478e0c358779a4ee4abd56f5125bfa3d1d | 3acb474f4cb2915eccb676ecdaed03a8642b6c36 | refs/heads/master | 2016-09-06T15:51:45.300668 | 2004-10-07T18:59:45 | 2004-10-07T18:59:45 | 40,073,145 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,633 | h | timehand.h | /***************************************************************************
timehand.h - description
-------------------
begin : Sun Oct 19 2003
copyright : (C) 2003 by Steve Gray
email :
********************... |
12f0769866fc7e75535a88915722b8b2897212dc | 0986e712ba08d59898271b493eab2cb80ba1af2d | /src/main/include/Robot.h | a9da04cc49f09264968c81322aba0e50f5cc9380 | [] | no_license | FRC830/2020Robot | e571e540f88dc23bda1faa5e43530c464ea5678e | 9843826d0d6483fee060aae4c88e04905d27c6d7 | refs/heads/master | 2021-11-11T19:28:28.730948 | 2021-10-26T22:25:22 | 2021-10-26T22:25:22 | 231,770,021 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,792 | h | Robot.h | #pragma once
#include <string>
#include "LEDController.h"
#include "utility.h"
#include "SwerveDrive.h"
#include <ctre/Phoenix.h>
#include <ctre/phoenix/motorcontrol/can/TalonFX.h>
#include <frc/AnalogInput.h>
#include <frc/DigitalInput.h>
#include <frc/drive/DifferentialDrive.h>
#include <frc/DriverStation.h>
#incl... |
5637809098e2ee25360d409864e5553cd8a3a2c8 | 38dc8e8f899c49fd4014f4fa8ecd1d61d2a18e07 | /Wallet/wallet-tx.cpp | ce529096b41818f4f6e59b2be320048236b29c0d | [
"MIT"
] | permissive | AztecChain/ATCBlockchain | c24ab5d62495cea2da83ef229bd9a3892fd8e709 | fc217c36af35de47ceb21f7d7ef4933eff9660d0 | refs/heads/master | 2022-11-24T03:39:09.605851 | 2020-07-18T04:45:32 | 2020-07-18T04:45:32 | 280,577,398 | 0 | 0 | MIT | 2020-07-18T04:27:06 | 2020-07-18T03:57:33 | C++ | UTF-8 | C++ | false | false | 5,387 | cpp | wallet-tx.cpp | #include "wallet/wallet.h"
#include "base58.h"
#include "checkpoints.h"
#include "chain.h"
#include "coincontrol.h"
#include "consensus/consensus.h"
#include "consensus/validation.h"
#include "key.h"
#include "keystore.h"
#include "main.h"
#include "net.h"
#include "policy/policy.h"
#include "primitives/block.h"
#incl... |
d501bf204b5088dcaabfd1de3888b7a87b785d85 | 01142bc0f8d59390ee1dd037c694329d6ae05cfa | /Particles/AlphaInitializer.h | a53ad8b59be3297562a67149dcd67d4631be9be7 | [] | no_license | RDAppel/KatanaEngine | 3c7276c97bec5e9309a42d1c2d93b982d499d4dd | 079d7b4a1b7d10d4905641e2c3ce33886382693b | refs/heads/master | 2022-02-05T02:38:29.213747 | 2022-02-02T00:48:49 | 2022-02-02T00:48:49 | 74,855,309 | 0 | 1 | null | 2019-01-23T12:47:31 | 2016-11-26T23:02:39 | C++ | UTF-8 | C++ | false | false | 2,064 | h | AlphaInitializer.h |
/* --------------------------------------------------------------- /
██╗ ██╗ █████╗ ████████╗ █████╗ ███╗ ██╗ █████╗
██║ ██╔╝ ██╔══██╗ ╚══██╔══╝ ██╔══██╗ ████╗ ██║ ██╔══██╗
█████╔╝ ███████║ ██║ ███████║ ██╔██╗ ██║ ███████║
██╔═██╗ ██╔══██║ ██║ ██╔══██║ ██║╚██╗██║ ██╔══██║
██║ ██╗ █... |
33303d014787791e2a3414fc12c17640c0ce3f54 | 91bd03bc4a32a8f378f0cce68818f178884e4cfb | /Project_TrueSTUDIO_901/Project_GPIO_TouchGFX_TrueSTUDIO/TouchGFX/generated/texts/src/LanguageGb.cpp | 74dcf67c5be029bd3f3b5db8345916301b41f104 | [] | no_license | secupia/stm32 | a9069a1f130f82d39f9b27bd1b0f048670d1be2f | 3358caf8ed1ff76f6ca075e17f7c67d6fcbaa4fd | refs/heads/master | 2023-02-04T06:16:05.322820 | 2023-01-29T07:44:12 | 2023-01-29T07:44:12 | 198,838,031 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 798 | cpp | LanguageGb.cpp | #include <stdint.h>
#include <touchgfx/Unicode.hpp>
#ifndef NO_USING_NAMESPACE_TOUCHGFX
using namespace touchgfx;
#endif
// Language Gb: No substitution
TEXT_LOCATION_FLASH_PRAGMA
KEEP const touchgfx::Unicode::UnicodeChar T_SingleUseId3_Gb[9] TEXT_LOCATION_FLASH_ATTRIBUTE = { 0x4e, 0x65, 0x77, 0x20, 0x54, 0x65, 0x7... |
5616aebc76e3e6ac7f8794f79c35ef3d61989a4d | b469a2968a2d596af7d811eb14bd3742d37bd15f | /HomeWork/10_ArtFiller/canvas.h | d827c18893bd05a4e4da5d4f8077049031b59932 | [] | no_license | JamesKalebby/CSCI-2380 | 139b88c39f6a0b7bc392e5d0468dd91615928c8f | a06ee6be561ea3b2a126e13f2ebd459f7fd9a912 | refs/heads/master | 2020-03-15T21:32:01.620433 | 2018-05-06T19:57:43 | 2018-05-06T19:57:43 | 132,356,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 927 | h | canvas.h |
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
char ** setCanvas(int row, int col)
{
char ** tempCanvas = new char * [row];
for (int i = 0; i < row; i++)
{
tempCanvas[i] = new char[col];
}
return tempCanvas;
}
void fill(char ** canvas, int row, int col, int i, int j, char x)
... |
f63aedf74fa271d4031046b0fac4b0356149b927 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/PhysicsAnalysis/DerivationFramework/DerivationFrameworkInDet/DerivationFrameworkInDet/TrackStateOnSurfaceDecorator.h | 052b221e41685fdbf6c189a3d27249f8ea9ccf0a | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,187 | h | TrackStateOnSurfaceDecorator.h | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
///////////////////////////////////////////////////////////////////
// TrackToVertexWrapper.h, (c) ATLAS Detector software
///////////////////////////////////////////////////////////////////
#ifndef DERIVATIONFRAMEWORK_TRACKSTATEONSURFACE... |
0011addd2a405880970754718c621498d27c2004 | 4026ba92023caafcaf1560b9875e00274004f91a | /main.cpp | 60cfcc1e4fc1f90f5324b3e0a2c331ba0f07c584 | [] | no_license | bjader/qhe | 459e500a37cdd05245f32bfe2ad5e93add841c68 | c7444fa66c0de0ec519326371180fa29444ec98d | refs/heads/master | 2021-10-25T09:05:57.714717 | 2019-04-03T09:18:34 | 2019-04-03T09:18:34 | 107,024,159 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,212 | cpp | main.cpp | //
// main.cpp
// Section3
//
// Created by Benjamin Jaderberg on 17/01/2017.
// Copyright © 2017 BenJad. All rights reserved.
//
#include <iostream>
#include "Point.hpp"
#include "methods.hpp"
#include <cmath>
#include <complex>
#include <random>
#include <algorithm>
#include <Eigen/Dense>
using namespace std;... |
869a797ff34fc2c66d780ca3eed92df8551cb1d8 | ff151e502f60840d4a10773ce96c757c51e7d33c | /src/YGEResourceManager.h | 7b7774060d9c69052b38230d19e1dcd4bf263ad4 | [
"MIT"
] | permissive | fortmeier/yge-game-engine | 31937337225da1f2a577a8135705d8823ecc6439 | c88cab6d0fa4220ab88adf562853b4db22536df8 | refs/heads/master | 2021-01-22T04:57:02.023689 | 2014-02-17T04:59:59 | 2014-02-17T04:59:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,889 | h | YGEResourceManager.h | /** @file
* @author Dirk Fortmeier
* @date 3.11.2009
*/
#ifndef _YGE_RESSOURCEMANAGER_H_
#define _YGE_RESSOURCEMANAGER_H_
#include <SDL.h>
#include <SDL_opengl.h>
#include <string>
#include <map>
#include "YGETexture.h"
#include "YGESound.h"
namespace YGECore {
/**
* singleton class for loading and unloadin... |
db592ad1507b403928e7f9b5de413dc457ddfd3e | f3860109ad4cae8595a8dace7cf2669c2d16d3cd | /openmp/circle/circle0.cpp | 166fbe953d1b9c5700e906dd6e22f32116045efe | [
"MIT"
] | permissive | StarlAllen/HPC | 993f908f0cd9c9c9c2861b6fcd1cb8f1e4effd8c | e555be8f76de0f7305f6df2844e5025c05c30eb1 | refs/heads/main | 2023-06-01T01:50:45.012185 | 2021-07-01T08:49:00 | 2021-07-01T08:49:00 | 381,936,210 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,495 | cpp | circle0.cpp |
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <vector>
#include <algorithm>
using namespace std;
// add your codes begin
#include <cmath>
#include <cstring>
#define max_threads_nums 128
/*
void scan_link(vector<int> &data,vector<int> &prev,vector<int> &next){
vector<int> data... |
b0de38b9722a8d8497ff17a0395578160e3ea2f4 | cc53d048a2f8645e4713d686a4eced12bdb14f0a | /include/gatbl/utils/type_erasure.hpp | dc83997627cab9da6330df0121e5c06365a47e09 | [] | no_license | Piezoid/gatb-lite | 4e214902cf6123305a8a5fbc562c3bb5d3ff4373 | b9ba223f3e10e6182ae3405c8174683781edb04d | refs/heads/master | 2021-06-27T07:02:00.558643 | 2020-09-25T10:59:08 | 2020-09-25T11:00:23 | 137,741,910 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,329 | hpp | type_erasure.hpp | #ifndef GATBL_TYPE_ERASURE
#define GATBL_TYPE_ERASURE
#include <memory>
#include <type_traits>
#include "concepts.hpp"
#include "../common.hpp"
namespace gatbl {
/// Pimpl idiom wrapper, taken from Herb Sutter.
/// This class can be instantiated while T is an incomplete type.
/// You need to include gatbl/utils/pim... |
79f1e521823ae829a79b76eff7e169bcc975e145 | 0e13c83dd8c30382f726c0510bc70c6e8fc0e474 | /liboslayer/MessageQueue.hpp | 5946f0316c89ad52d40c6f14d57c16bdb22061c9 | [
"FSFAP",
"GPL-3.0-only"
] | permissive | bjtj/oslayer | 77900fa829e3d784eb42c0149c9a9dea292a2545 | 92cc41288a4bae8e63a680fe714806e89421df16 | refs/heads/master | 2021-01-23T12:15:50.391837 | 2019-02-09T08:00:41 | 2019-02-09T08:00:41 | 39,714,088 | 1 | 0 | MIT | 2018-03-05T01:44:14 | 2015-07-26T04:59:00 | C++ | UTF-8 | C++ | false | false | 1,341 | hpp | MessageQueue.hpp | #ifndef __MESSAGE_QUEUE_HPP__
#define __MESSAGE_QUEUE_HPP__
#include "AutoRef.hpp"
#include "Object.hpp"
#include <deque>
namespace osl {
/**
* message
*/
template <typename T>
class Message {
private:
int _what;
int _arg1;
int _arg2;
T _obj;
public:
Message() : _what(0), _arg1(0),... |
1f2af1bdb1f06223cf081809d0a29865e18ec86a | 7877d17c76b4ea6248ab52ffdf7f2b3c3a745353 | /library/BaseLib/transmitterConnector/include/senseConnectorTypes.h | 8842bc8f98ae42d375adae95f09181979d984ba0 | [] | no_license | andrij-felenko/tsmok | c8bb3bebe01eeac72cbfab935021e0fa4ac7bc85 | a137c86caee877f8123464492945fa3850431afa | refs/heads/master | 2023-03-29T15:55:35.587776 | 2021-03-25T14:45:35 | 2021-03-25T14:45:35 | 355,472,448 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,273 | h | senseConnectorTypes.h | #ifndef SENSE_CONNECTOR_TYPES
#define SENSE_CONNECTOR_TYPES
namespace Tsmok::Sensory {
class SenseConnectorTypes
{
public:
SenseConnectorTypes() = default;
enum class FiveBase {
Visual = 0xA0, // sight
Auditory, // hearing
Gustatory, // taste
Olfactory, // smell
... |
ce96876aea9e7a1c507f64be6a5af6453a311bb3 | 9b700d31a4b856c7b121e8ea741a2604ed29a395 | /GyroLights/GyroLights.ino | c28ef741b8bcb0609904a53ab484f208c82ac124 | [
"MIT"
] | permissive | egg82/Arduino | a7e09eec99ff101702df1873f11a8e73eac4712d | ebb61831cb38e45a6c9effd40c6f95443856a559 | refs/heads/master | 2020-09-12T02:31:50.289347 | 2019-12-07T02:22:06 | 2019-12-07T02:22:06 | 222,271,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,293 | ino | GyroLights.ino | #include "LEDController.h"
#include "Gyro.h"
LEDController ledController;
Gyro gyro;
CRGB getRandColor() { return CRGB(random8(), random8(), random8()); }
void setup() {
Serial.begin(9600);
ledController = LEDController();
ledController.clear(CRGB::Black);
gyro = Gyro();
//gyro = Gyro(252.0, 45... |
9fbe188ce07531a534032ea6771cada2a9c7e08b | ee544bd13f56bcc06c5952b99b3d61e6fbfa2140 | /Team00/Code00/src/spa/src/Tokenizer.cpp | d0cf5be6391cee87f12cc2f69631ec7e2d200caf | [] | no_license | elevatethegame/Query-Parser-for-Static-Program-Analysis | 791415498d1de572ac16e544d1c864e2769a4564 | 27896b6b388c10746fc7fde47bf8b6f01c99887c | refs/heads/query-preprocessor | 2023-04-03T13:04:14.853729 | 2021-04-09T02:56:21 | 2021-04-09T02:56:21 | 339,255,218 | 0 | 0 | null | 2021-04-09T02:56:21 | 2021-02-16T01:33:22 | C++ | UTF-8 | C++ | false | false | 8,820 | cpp | Tokenizer.cpp | #include "Tokenizer.h"
#include "SyntacticException.h" // for throwing SyntacticException
#include <ctype.h> // for std::isdigit, std::isalpha
#include <algorithm> // for std::find
#include <iterator> // for std::begin, std::end
std::set<char> Tokenizer::specialCharactersAmongIdentifiers = {'_', '.', '#'};
std::se... |
8b018ca9981432b61909ca5048b620a56efe6dbd | 5d8b6281a9d940b65c460e5d263887345339cb0a | /mete/IIImete/src/ThrMeteM/mete_init.cpp | c61c2e2866d67117e162a9c6d82fd2361c8c9924 | [] | no_license | ubuntu11/cTest | 4064cfe6bc354ae54b74832030712251e547a5a8 | b1529c47fe9209de719a497d94aa1e37c60fed1d | refs/heads/master | 2023-07-11T10:50:00.130464 | 2021-08-18T07:51:43 | 2021-08-18T07:51:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,970 | cpp | mete_init.cpp | /**********************************************************
* name: mete_init.cpp
*
* desc: 气象下载器的,初始化
*
* date: 20170803100107
*
***********************************************************/
#include "mete_init.h"
#include "funcLib.h"
//using namespace tinyxml2;
C_MSysInit* C_MSysI... |
76019870374c4e0d0561a6c04e8d695379fb8233 | cf9efb609f32e0015110ab951b14bfeefddf0a27 | /OTOO/OcTreeOpenCL.hpp | 30621bc61ff6e862e2372f183adbf1cb47f11309 | [] | no_license | dadeba/OTOO-TEST | 0acd14ab87ca2cd8999a8eb817f6662e56c44fec | 7cb368dd5239d5a02e3075cdef38288dcb1020cd | refs/heads/master | 2020-05-19T10:51:56.453636 | 2012-07-05T01:22:47 | 2012-07-05T01:22:47 | 4,893,034 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,792 | hpp | OcTreeOpenCL.hpp | #ifndef OTOO_GRAVITYTREE_H
#define OTOO_GRAVITYTREE_H
#include "OpenCLDevice.hpp"
namespace OTOO {
struct PHKeys {
static const uint64 T0[12][8];
static const uint64 T1[12][8];
uint64 poi(uint64 key, uint64 level)
{
return (key >> 3*level)&0x7ULL;
}
uint64 Get(uint64 morton_key, uint6... |
fb29862a825fcae8bfff78e0519d701e7c26f6ec | cde9dc97b0fc3df945e2500a4b21deb9caf994cf | /ilwiscore/include/ilwisobjects/geometry/georeference/cornersgeoreference.h | 69cfb9664abcb1a1930c9d01a4bf3abbbdb06427 | [] | no_license | MartinSchouwenburg/ilwisobjects | 7bbe06a9c097472dea0496522465f59701782351 | ad59176c1eb79d56089abc009ea1622958d78fe4 | refs/heads/main | 2023-05-10T13:46:05.864706 | 2021-06-14T08:56:55 | 2021-06-14T08:56:55 | 373,075,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,671 | h | cornersgeoreference.h | /*IlwisObjects is a framework for analysis, processing and visualization of remote sensing and gis data
Copyright (C) 2018 52n North
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either versi... |
67eb3e09ce8521e384f9cfa6a4b5671189b647e1 | 8350ba26f61854b656270e26653e96bd1aefbc83 | /src/FindFileJob.h | 16f2e77bee4e4867162ed985e6d6fa7b366c272b | [] | no_license | qyqx/rtags | 1ea7f7267f71cb50b640c3f6e1c903430444ec67 | f2506bab26a22b31123eafc9f46c467a0d3e9722 | refs/heads/master | 2020-12-01T01:15:40.706146 | 2013-07-14T21:55:41 | 2013-07-14T21:55:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 400 | h | FindFileJob.h | #ifndef FindFileJob_h
#define FindFileJob_h
#include <rct/String.h>
#include <rct/List.h>
#include "RTagsClang.h"
#include "Job.h"
#include "Location.h"
#include <rct/RegExp.h>
class FindFileJob : public Job
{
public:
FindFileJob(const QueryMessage &query, const shared_ptr<Project> &project);
protected:
virtu... |
fd821a65606f93cb2074d6909b089349f95dbf9f | 0ce577bad754c58a376834299e776a13637ed92d | /aaaaa/Range.h | 84f1f262717c0f79fdb9c03e061878751cc0bf1a | [] | no_license | Aescosaurus/directx-is-hard | d0b5e30dbb9876698076804b92773bd7a4ae84e1 | ac66116b6fbabb92b9a3b7ca11c7325e64c56963 | refs/heads/master | 2023-01-13T12:15:42.310613 | 2020-11-06T03:40:39 | 2020-11-06T03:40:39 | 310,483,790 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 396 | h | Range.h | #pragma once
#include "Random.h"
#include <algorithm>
// suck it windows
#undef min
#undef max
template<typename T>
class Range_
{
public:
Range_( T min,T max )
:
min( min ),
max( max )
{
if( min > max ) std::swap( min,max );
}
operator T() const
{
return( T( Random::Range( min,max ) ) );
}
public:
... |
5c0ab464d1b6823709dd33687386a97200aa7a9d | 48eb1b74ad6fe59d1104f7102d01f1fe939408fa | /Source/LifeOfMercenary/Public/Quest/QuestManager.h | 7bb1d6485449054de491de3df5a0ed73d32ce7f9 | [] | no_license | Tackkyun/LifeOfMercenary_Git | 2db8315377664a0e29e39d7884f70522b8e9d818 | aad844a8189e67a17ed49db59bf361af18d262f8 | refs/heads/master | 2020-05-03T09:02:29.015592 | 2019-06-18T09:29:43 | 2019-06-18T09:29:43 | 178,543,309 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,545 | h | QuestManager.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "Engine/DataTable.h" // FTableRowBase
#include "QuestManager.generated.h"
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FChangeQuestList);
USTRUCT(BlueprintType)
stru... |
e22e5a1245699d537c199615b3d64b3317590f9a | 00ab7afe1168efffeb640aa4e9aee7d7e3e98327 | /codeup/100000566/F.cpp | 6bba89f840a4084c125d132498beb1aab8b71cdd | [] | no_license | fylr/algorithm | 16f84351b3282f39051776f74cfd8c5e7f51655d | 743132323f66b23a2cd3ecdd7145c9c5bedf1bfc | refs/heads/main | 2023-06-28T00:11:40.034266 | 2021-07-28T13:14:39 | 2021-07-28T13:14:39 | 360,783,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 120 | cpp | F.cpp | #include<stdio.h>
#include<stdlib.h>
int main()
{
char str[5];
scanf("%s", &str);
printf("%s\n", str);
return 0;
} |
c7f5100e5e060a99f173be7646058c402975d357 | 924f21b8066b0167d28f6545ba4f3729b084602a | /include/yds_key_maps.h | 28ff1cd139788f01a9b635326f5df2ee43e2e4ad | [
"MIT"
] | permissive | ArwinSaleh/delta-studio | 34a3bd24b07679d3f105430f113f489d4532ffdf | a06675cfa7c8981093bb7da6cec204c2216a4371 | refs/heads/master | 2023-03-04T09:10:35.447322 | 2021-01-30T21:55:18 | 2021-01-30T21:55:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 303 | h | yds_key_maps.h | #ifndef YDS_KEY_MAPS_H
#define YDS_KEY_MAPS_H
#include "yds_keyboard.h"
class ysKeyMaps {
public:
ysKeyMaps() { m_windowsKeyMap = nullptr; }
~ysKeyMaps() {}
static const ysKey::Code *GetWindowsKeyMap();
protected:
static ysKey::Code *m_windowsKeyMap;
};
#endif /* YDS_KEY_MAPS_H */
|
53a1b33163335e10536ff34b1b765793fa49d753 | b786a05c5bd90e660690427c54c95be9e02516b9 | /practical-07-11/third_test.cpp | 230622d3556149f8d2f9e67ca5acefdcd6a4ab0c | [] | no_license | Zacsch/OOP | 9e81f27a0fe6c50f4b97a3dd139e2ef5985ff3cd | 86444cd4b91612631b57c03c28bb3c4894233cb4 | refs/heads/master | 2020-03-15T09:11:05.209582 | 2018-05-24T03:52:02 | 2018-05-24T03:52:02 | 132,069,064 | 0 | 1 | null | 2018-05-04T01:46:56 | 2018-05-04T01:28:42 | null | UTF-8 | C++ | false | false | 3,574 | cpp | third_test.cpp | #include <iostream>
#include <string>
using namespace std;
int main()
{
int numberOfHumans;
cin >> numberOfHumans;
int numberOfPlayers;
cin >> numberOfPlayers;
string playerNames[5]={"a","b","c","d","e"};
bool playerType[numberOfPlayers];
for (int i=0; i<numberOfPlayers; i++)
{
cin >> playerType[i... |
c5ba2da24ff2b9097db6d6eae08883f16cff5dff | ecc6a41152867476f960f7e736a4aac67e325a1f | /NSCashe.cpp | 9187d15d199791a585606c8539a31cb5d6cecaf6 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | teknikqa/sirius | 375f6674c25e54776ff7733f8efc99031894a7cd | 684770782d689c53eb67003f7c9b8527b2cf2686 | refs/heads/master | 2020-05-17T09:12:50.236976 | 2013-03-13T07:25:37 | 2013-03-13T07:25:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,940 | cpp | NSCashe.cpp | //////////////////////////////////////////////////////////////////////
// NSCashe.cpp: implementation of the CNSCashe class.
// very simple internet name resolve and cache system by Teknikqa
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include <winsock.h>
#include ... |
f6fba9f6084f29c142bd7de4a7ebf21be8605757 | d2988c8498c94c5b3c4019ae370c118301eb5783 | /src/core/cpu_kernel/avx/dispatch_avx.h | 837e94f2dc28d5cf561c828db2d54c630fd5f460 | [
"MIT"
] | permissive | zpzim/SCAMP | 34faf8a177ac3fb422d8fd058b143f9313f82173 | fe867f9cf755d149f1a7aa98b6ed0509c1311fac | refs/heads/master | 2023-08-09T00:48:29.592709 | 2023-08-01T00:14:19 | 2023-08-01T00:14:19 | 127,799,249 | 134 | 39 | MIT | 2022-08-04T14:51:57 | 2018-04-02T18:58:28 | C++ | UTF-8 | C++ | false | false | 297 | h | dispatch_avx.h | #pragma once
#include "core/kernel_common.h"
#include "core/tile.h"
namespace SCAMP {
SCAMPError_t dispatch_kernel_avx(SCAMPKernelInputArgs<double> args, Tile *t,
void *profile_a, void *profile_b, bool do_rows,
bool do_cols);
}
|
466dd68970f2cd99077a9ffe494d08fc55b68011 | b907b0cfd758d5db53b6a8852e5c369fe4b6e775 | /include/common.h | e39b9c7cea946399d5475c25a348956a12cc1af3 | [] | no_license | swpustc/system-constituent | 131d8d03b873926ad652a36c427f1f7245446d10 | 1dde770100487524a834583826526ec831b317a5 | refs/heads/master | 2020-12-24T05:42:04.461726 | 2016-10-04T03:10:13 | 2016-10-04T03:10:13 | 34,052,974 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,789 | h | common.h | /**********************************************************
* STL算法扩展
* 支持平台:Windows; Linux
* 编译环境:VS2013+; g++ -std=c++11
***********************************************************/
#pragma once
#include <ctime>
#include <mutex>
#include <atomic>
#include <chrono>
#include <cstdio>
#include <memory>
#include <code... |
67ed033c112e6ad51663026120599ca8902ce061 | 50457fc28800b3cf2f25e06478f33981a1a626dc | /Codeforces/1148B.cpp | 56d310ecad5bfafdc525438f0a668f69f332b332 | [] | no_license | h-sinha/CP-codes | 5b1ef5021b7fd180b518270ffdb12997dc8d367b | 937174c73d1c80114de4535a6908122158366ad4 | refs/heads/master | 2021-07-20T18:47:00.500294 | 2021-07-06T05:11:57 | 2021-07-06T05:11:57 | 159,954,721 | 2 | 2 | null | 2020-01-07T18:57:28 | 2018-12-01T14:51:44 | C++ | UTF-8 | C++ | false | false | 1,850 | cpp | 1148B.cpp | #include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define DEBUG
#ifdef DEBUG
#define debug(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1>
void __f(const char* name, Arg1&& arg1){
cerr << name << " : " ... |
61ed79bab9ee22a9c1d91ea4e8dc987f7ad9bef7 | a1f19ca2de4d090b6da1a728c6fb81a4cfca3ff7 | /api/Network.cpp | 2de43b0a1cff5f8efa88a9b45fde7c9962e7dd56 | [] | no_license | prakashgupta/suproject | 48ead60a189f7c6a41daed8f48822dd4158bcf0f | 2b37a9ad416ed987d00ecb565cebf5e8e4034296 | refs/heads/master | 2021-01-02T22:39:42.056805 | 2010-02-14T20:44:54 | 2010-02-14T20:44:54 | 34,527,578 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,977 | cpp | Network.cpp | #include "Network.h"
Network::Network(void) {
tv.tv_sec = 0;
tv.tv_usec = 0;
}
Network::~Network() {
list<int>::Iterator it = remoteFD.begin();
for(int i=0; i<remoteFD.getSize(); i++) {
close(*it);
it++;
}
close(fd);
}
int Network::Startup(int p, int m) {
port = p;
max = m;
ad... |
3fb4eee9582bbe51d1c5a1b350b6ea36f14bc22f | a72d9357c5b43c5ae6b5b82ca16d548ac1fdd853 | /examples/chapter04_04a/src/os/os_task_control_block.h | 89f5530fad215430fb13ed66b5e8cdc0e3a0f4a3 | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-3.0-only"
] | permissive | ckormanyos/real-time-cpp | d61e90e79b47d41349ba4f34633a14ea35f36d70 | 1741e058cac3b0e865602be5f747d1fe828b7f6f | refs/heads/master | 2023-08-29T02:58:32.175068 | 2023-08-28T11:48:04 | 2023-08-28T11:48:04 | 5,922,310 | 484 | 160 | BSL-1.0 | 2023-08-28T11:48:05 | 2012-09-23T13:31:08 | C++ | UTF-8 | C++ | false | false | 2,182 | h | os_task_control_block.h | ///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2007 - 2016.
// Distributed under the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef OS_TASK_CONTROL_BLOC... |
77ac25b8fb6cea25ed72969f97f2953c91961652 | ecccf62599bbc31bf8f70d5d8845244385eecce8 | /PolygonFilling/PolygonFilling/src/Maths/Point.h | 0dd852400269414d6eb3015b07e0c5d11c7d01c7 | [] | no_license | Mistergix/ESGI-polygon-filling | 9db8f82a885f9ecb5074e724b4779076cd48ee8f | eec52752e6169151497d7e85e0a324489a45a2dd | refs/heads/master | 2023-02-20T07:44:11.920047 | 2021-01-19T19:19:51 | 2021-01-19T19:19:51 | 325,603,953 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 118 | h | Point.h | #pragma once
class Point {
private :
float m_x, m_y;
public :
float getX();
float getY();
Point(float, float);
}; |
16ad3b40ba9fd531ae58919a35a32b031c9d161d | 68c805de1584fc0c2f0b439b1695b3bec80bbbe2 | /GamesAndAlgorithms/MagicSquare/MagicSquare.h | a896581b74bb6425862d6d8870a2996cec1560ea | [] | no_license | girishetty/mytools | f8009099383d4c8600953e57ae1effe264e171fb | 300fcb5552c13dfaac03190028646ab5c0640664 | refs/heads/master | 2022-03-20T05:57:10.984171 | 2022-02-10T06:42:15 | 2022-02-10T06:42:15 | 20,978,920 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 375 | h | MagicSquare.h | #ifndef MAGICSQUARE_H
#define MAGICSQUARE_H
#include <vector>
class MagicSquare {
enum {
KMaxSize = 20,
};
public:
MagicSquare(size_t aSize = 1);
void Display() const;
void Create();
size_t fixMagicSquare(std::vector<std::vector<int>>& square);
private:
int iSize;
int iSqua... |
1d1e6adb46945c95754e25d2ff55b01a8a97fe99 | 8476022a29e9b5f10178c034fca402155fb66eec | /ENet/include/DicClave.cpp | 0454a62ea460989ef0d44840840d9cc8cb956ae9 | [] | no_license | Subtes/proyecto_subtes | 48e66fe3435e759f99e4ac86363cfb61f82f8773 | 9a9dd5cb52062beb38f91b7355f1943fc0c08c83 | refs/heads/master | 2021-01-01T16:25:20.529668 | 2015-12-18T14:22:26 | 2015-12-18T14:22:26 | 32,394,262 | 0 | 1 | null | 2015-12-18T14:22:26 | 2015-03-17T13:14:22 | C | UTF-8 | C++ | false | false | 369 | cpp | DicClave.cpp | #include "stdafx.h"
#include "DicClave.h"
DicClave::DicClave()
{
Host = "";
Clave = "";
SubClave = "";
}
DicClave::DicClave(std::string unHost, std::string unaClave)
{
Host = unHost;
Clave = unaClave;
}
DicClave::DicClave(std::string unHost, std::string unaClave, std::string unaSubClave)
{
SubClave = un... |
1abca5ef47a59afee78a065bacf6b8aab4e99b0e | 12cfee6f46b01524b96a6471020324d7b258e7a0 | /2022/src/day_03/rucksack_reorganization.cpp | 1681d3a087fa3769d461e86ecc9f18c86afd7feb | [] | no_license | Polladin/AOC | ecda1fd627bc92ca2d9d2953d58a025ca210c520 | 20042fb45e185001d1043d6110db5baac65aca41 | refs/heads/master | 2022-12-16T20:24:13.460877 | 2022-12-11T12:57:36 | 2022-12-11T12:57:36 | 161,549,723 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,352 | cpp | rucksack_reorganization.cpp | #include "rucksack_reorganization.h"
#include <vector>
#include <set>
#include <algorithm>
#include <iostream>
#include <optional>
#include "common/file_reader.h"
std::string get_sorted_unique_str( std::string && str )
{
std::sort( str.begin(), str.end() );
str.erase( std::unique( str.begin(), str.end() ),... |
7b7821df5357e6b1ee1914e7af8e7a1c81331659 | f843ebad90e8ac27461239f4957e4f938664d5dc | /Source/LightSwitch/LightSwitchCodeOnly.cpp | cb87c17a6931ae898e452bda8497cabb3f8c35a6 | [] | no_license | matzar/LightSwitch | fbc63ac7b2dd46c757e99b4ee14b7a27ae0c0f61 | dabf4590c3657ef428c72f9888e55d525081740c | refs/heads/master | 2020-03-30T20:14:49.991669 | 2018-10-04T13:52:52 | 2018-10-04T13:52:52 | 151,579,722 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,641 | cpp | LightSwitchCodeOnly.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "LightSwitchCodeOnly.h"
#include "Components/PointLightComponent.h"
#include "Components/SphereComponent.h"
// Sets default values
ALightSwitchCodeOnly::ALightSwitchCodeOnly()
{
// Set this actor to call Tick() every frame. Yo... |
ab4ce37307ec8f00f43d29431103f3f17efee9e3 | a7764174fb0351ea666faa9f3b5dfe304390a011 | /src/RWStepBasic/RWStepBasic_RWDocumentRelationship.cxx | cae05e571ed5985dcdafeed66bd0bb78b9b27ee1 | [] | no_license | uel-dataexchange/Opencascade_uel | f7123943e9d8124f4fa67579e3cd3f85cfe52d91 | 06ec93d238d3e3ea2881ff44ba8c21cf870435cd | refs/heads/master | 2022-11-16T07:40:30.837854 | 2020-07-08T01:56:37 | 2020-07-08T01:56:37 | 276,290,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,362 | cxx | RWStepBasic_RWDocumentRelationship.cxx | //gka 05.03.99 S4134 upgrade from CD to DIS
#include <RWStepBasic_RWDocumentRelationship.ixx>
#include <Interface_EntityIterator.hxx>
#include <StepBasic_DocumentRelationship.hxx>
#include <StepBasic_Document.hxx>
#include <TCollection_HAsciiString.hxx>
RWStepBasic_RWDocumentRelationship::RWStepBasic_RW... |
d7a468312dd0fa8826085b03a836e7b07198151d | 992df6ff3b49fddf01babb2a04ded03109da7ab7 | /4.0/Demo/tcpsocket/src/TCPSocketImpl.h | 49142aea67e42a132d78d08e40992db3602176a3 | [] | no_license | charfeddine-ahmed/PushFramework | abf187bc30bdd0f702929c4e571af49279278d56 | ed9804ffc5148e180cb95bafe13aa2e0f3903147 | refs/heads/master | 2021-12-08T15:22:19.895640 | 2021-12-01T14:04:08 | 2021-12-01T14:04:08 | 92,851,089 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,698 | h | TCPSocketImpl.h | #pragma once
class TCPSocket;
class ResponseHandler;
class TCPSocketImpl : public Connection
{
public:
TCPSocketImpl(TCPSocket* pFacade);
~TCPSocketImpl(void);
bool initialize(ProtocolFramework::Protocol* pProtocol, ProtocolFramework::MessageFactory* messageFactory);
int getStatus();
bool connect... |
165f499d3328e3252074431723356e637cd76b63 | 7da6942859bb296f2e765aa583fd546832b1787c | /CrazyTanks_v2.0/src/CGold.h | 4d2da1af2b33d7937f5bc8fe7c9c3c8cdc39113a | [] | no_license | romanenko97/CrazyTanks_v2.0 | ea5458a9abd45820ab0e7a548a05e85e4eee9d5e | 70160dbac1d7db23f4382bf293e382d7b4e5315b | refs/heads/master | 2021-04-12T08:37:24.599861 | 2018-03-26T21:45:56 | 2018-03-26T21:45:56 | 126,321,963 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 294 | h | CGold.h | #pragma once
#include"IFieldObject.h"
class CGold :public IFieldObject
{
public:
CGold();
~CGold();
int getHealth() const override;
nStruct::sCoord getCoord() const override;
void changeHealth() override;
void render() const override;
private:
nStruct::sCoord mCoord;
int mHealth;
};
|
a7a070be5713b2bf3797994f3e0040fdf47dfb82 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CalibMuon/CSCCalibration/test/stubs/CSCFakeDBCrosstalkHandler.h | 15f9f5abf354bc0b80b948c38ba99d5b50b4d806 | [
"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 | 939 | h | CSCFakeDBCrosstalkHandler.h | #ifndef CSC_FAKEDBGAINS_SRC_IMPL_H
#define CSC_FAKEDBGAINS_SRC_IMPL_H
#include <iostream>
#include <string>
#include <typeinfo>
#include <vector>
#include "CalibMuon/CSCCalibration/interface/CSCFakeDBCrosstalk.h"
#include "CondCore/PopCon/interface/PopConSourceHandler.h"
#include "CondFormats/CSCObjects/interface/CSC... |
a229fa34cc828c881cbac12b0ef46d2c11211212 | df4c20f45d3582f384b44fb1c07a50c7b44dbe38 | /interfaces/lola/lola_frame.cpp | 6eda86d3bb9c3ed0ca2b2cb2f2452231453876ed | [
"BSD-2-Clause"
] | permissive | LARG/spl-release | eeae659f141d1f63ce20bbcedb88ed25e75bd759 | 8a4dd93368cfe7b525d375467093abf3955c5e1a | refs/heads/master | 2023-02-21T02:11:51.722812 | 2023-02-15T02:41:01 | 2023-02-15T02:41:01 | 75,247,826 | 1 | 2 | NOASSERTION | 2023-02-15T02:41:03 | 2016-12-01T02:37:22 | C++ | UTF-8 | C++ | false | false | 26,607 | cpp | lola_frame.cpp | #include "lola_frame.h"
#include <iostream>
#include <math/Geometry.h>
#include <stdio.h>
#include <cmath>
#include "stl_ext.h"
#include <assert.h>
/*
* This file contains most of the code related to the LoLA connector.
*
* The code in this file is used to recieve sensor values from LoLA and pass it
* along to ... |
06bec7bb38baf99ee6f408d34acc136609863b00 | 7de0933dddab0e62d6048c7ae8d2dc835579cea0 | /SHFW/Sprite.cpp | 05ae9f2fd0a199c9b7592642ac312f803fa4324c | [] | no_license | UltraGameCoder/SHFW | c177bfb112f5100f3c15167444fac0ef7b45a0dd | aa7eecade51f853c2c977e9add327090bbde99e3 | refs/heads/master | 2021-09-07T03:00:46.872161 | 2018-02-16T10:18:40 | 2018-02-16T10:18:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,915 | cpp | Sprite.cpp | #include <iostream>
#include "SHFWConfig.h"
#include "Sprite.h"
Sprite::Sprite()
{
this->texturename = AUTOGENWHITE;
this->fragmentshader = DEFAULTFRAGMENTSHADERPATH;
this->vertexshader = DEFAULTVERTEXSHADERPATH;
spriteposition = Point3(0.0f, 0.0f, 0.0f); // spritebatch only
spriterotation = Point3(0.0f, 0.0f,... |
6a9a8b75fce1dbf81f4be0223435d311c6bbe068 | 4dcbb69d5ec59489e1cba4d5d6d54640b2e8ac64 | /UAS/Stack & Queue/stack & queue.cpp | aaa763f4a4c104f3cca4eb159e2dc367b524ed50 | [] | no_license | fikrihelmi17/Cpp-KumpulanFileCppSemester3 | 933eab27afef872f52d10a891cc086c349212bdf | c763560a2132f266f1085bf23440d0e3d0402582 | refs/heads/master | 2022-11-20T04:21:10.439412 | 2020-07-03T07:17:17 | 2020-07-03T07:17:17 | 276,834,417 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,726 | cpp | stack & queue.cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
struct mahasiswa { //inisialisasi stuct mahasiswa
char kode[5]; //disini di deklarasikan variabel yang dibutuhkan
char nama[30];
char angkatan[20];
char jurusan[20];
char email[20];
};
struct stack { //karna dua pointer maka ... |
dc540de43cf2955b24e6fd6bdf19007870169229 | cbc55b359bb7fae22824a7ebc3734e0c756da0d5 | /dependencies/PyMesh/src/IO/IOUtils.cpp | 7e033cad6000204a74c96e368a506f94df34f39e | [
"MIT"
] | permissive | aprieels/3D-watermarking-spectral-decomposition | 6a022f87b25b5d056561ad7159dab1300530b0bf | dcab78857d0bb201563014e58900917545ed4673 | refs/heads/master | 2020-03-09T06:45:03.420116 | 2018-06-03T15:54:35 | 2018-06-03T15:54:35 | 128,647,275 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 971 | cpp | IOUtils.cpp | /* This file is part of PyMesh. Copyright (c) 2015 by Qingnan Zhou */
#include "IOUtils.h"
#include <cstring>
#include <Core/Exception.h>
using namespace PyMesh;
std::string IOUtils::get_extention(const std::string& filename) {
size_t pos = filename.find_last_of('.');
return filename.substr(pos);
}
std::stri... |
a7efea2c725cadbbb1af03958025409bfdcff21d | ffdc77394c5b5532b243cf3c33bd584cbdc65cb7 | /tests/ut/cpp/device/ge_runtime_test.cc | b7585999903681c3e192cdf1987fef513145c2d1 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"MPL-1.0",
"OpenSSL",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause-Open-MPI",
"MIT",
"MPL-2.0-no-copyleft-exception",
"NTP",
"BSD-3-Clause",
"GPL-1.0-or-later",
"0BSD",
"MPL-2.0",
"LicenseRef-scancode-f... | permissive | mindspore-ai/mindspore | ca7d5bb51a3451c2705ff2e583a740589d80393b | 54acb15d435533c815ee1bd9f6dc0b56b4d4cf83 | refs/heads/master | 2023-07-29T09:17:11.051569 | 2023-07-17T13:14:15 | 2023-07-17T13:14:15 | 239,714,835 | 4,178 | 768 | Apache-2.0 | 2023-07-26T22:31:11 | 2020-02-11T08:43:48 | C++ | UTF-8 | C++ | false | false | 31,237 | cc | ge_runtime_test.cc | /**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
e001c21a3e20391e1ed1a8da42c3f457c7dbd2b3 | 01c8dcaf54aa78fc7a8c8292a25bf3d31620f6f3 | /examples/stepper_oneStepAtATime/stepper_oneStepAtATime.ino | ef5ab359ee6c49d4bf7cdd55540c2b9de8de7503 | [] | no_license | lilyrothschild8/MyStepper | 9c8c797b9f8f6a9870ac6b82c825b8268425b7cb | 8c9a708bbdae7e7d2f6323284361547e1502cf44 | refs/heads/master | 2023-03-19T22:20:06.686765 | 2018-10-15T11:55:30 | 2018-10-15T11:55:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 939 | ino | stepper_oneStepAtATime.ino | //**************************************************************************//
//*************************** Created by ***********************************//
//*********************** Author : Jay Dalwadi *****************************//
//******** Github Link: https://github.com/jaydalwadi01/MyStepper **********//
//**... |
8136ec70bd0db76a48a03273d987882d3b70bcd5 | a56c029277a2f81c6660ea9f6159e7f1a874132e | /src/DittoPlotUtil.cxx | 2bcc89b69f48c51c84bdfbaf6b0652f87620fd21 | [] | no_license | sgnoohc/Ditto | 8eea7ce9f95bbf4a12c7f03f3913f2ea05083c82 | 41d54af22b7c18ed446eb060d018abf2390e3034 | refs/heads/master | 2021-01-20T03:35:09.950653 | 2017-06-20T19:42:36 | 2017-06-20T19:42:36 | 89,559,936 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,534 | cxx | DittoPlotUtil.cxx | // vim: tabstop=2:softtabstop=2:shiftwidth=2:expandtab
// .
// ..: P. Chang, philip@physics.ucsd.edu
namespace PlotUtil
{
bool plot1D(string name, float xval, double weight, Hist_DB &allhistos, string title, int numbinsx, float xmin, float xmax, string prefix)
{
/// Plot 1D histogram. If a histogram doesn'... |
8707c35dae5f19e4441d86af49e3abf8168a9b98 | a2d84e576b4ec7e8de9642b167c259cfae5c1e94 | /src/endian_cpp.h | 6dc0fd79351ceffdc83b891b744761a97e089749 | [] | no_license | httbb/bifang | 8c8ac0cbd66f1e4b54554521bb7d77cfcc2bd4ef | 91622ac6e55870c9dc829f4e4bcdd6120744693c | refs/heads/main | 2023-03-24T00:54:45.458523 | 2021-03-12T02:47:24 | 2021-03-12T02:47:24 | 347,431,844 | 3 | 0 | null | 2021-03-13T17:16:16 | 2021-03-13T17:16:15 | null | UTF-8 | C++ | false | false | 1,877 | h | endian_cpp.h | /**
* brief: 大小端转换文件
*/
#ifndef __BIFANG_ENDIAN_CPP_H
#define __BIFANG_ENDIAN_CPP_H
// BYTE_ORDER BIG_ENDIAN LITTLE_ENDIAN
#include <type_traits>
#include <stdint.h>
namespace bifang
{
#define BSWAP_8(x) ((x) & 0xff)
#define BSWAP_16(x) ((BSWAP_8(x) << 8) | BSWAP_8((x) >> 8))
#define BSWAP_32... |
1be29f699b65f9119a119d5796ede2227aa76214 | c3bbdbbbc5f47577e332a280f81bd905617423c9 | /Source/AllProjects/DataUtils/CIDMData/CIDMData_ThisFacility.hpp | 020bb1e61a1b0e146e28e5b45946abda7116d56d | [
"MIT"
] | permissive | DeanRoddey/CIDLib | 65850f56cb60b16a63bbe7d6d67e4fddd3ecce57 | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | refs/heads/develop | 2023-03-11T03:08:59.207530 | 2021-11-06T16:40:44 | 2021-11-06T16:40:44 | 174,652,391 | 227 | 33 | MIT | 2020-09-16T11:33:26 | 2019-03-09T05:26:26 | C++ | UTF-8 | C++ | false | false | 2,993 | hpp | CIDMData_ThisFacility.hpp | //
// FILE NAME: CIDMData_ThisFacility.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 11/03/2015
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://ope... |
b79aa4e245e38c19d37cf7e7bb08397701bc79ad | b17f543b55a1f341f55f514fd3c861aa751fff11 | /_Penguin.h | 827b7b72c23af10ecbf945b0579bfa7d4e423d47 | [] | no_license | TheDizzyEgg/Santa-saves-the-dolphins | 965dc5eae5093877c1ef4e20549ffca4f20f1755 | 7151ac6e49366e9c8346c8323dda5b4609908759 | refs/heads/main | 2023-02-07T03:08:45.116741 | 2021-01-04T14:50:38 | 2021-01-04T14:50:38 | 326,714,566 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,687 | h | _Penguin.h | #ifndef _PENGUIN_H
#define _PENGUIN_H
#include "_Decls.h"
#define PENG_MAX_IDLE_FRAMES 3
#define PENG_MAX_RUNNING_FRAMES 4
class _Penguin
{
public:
_Penguin(float _x, float _y, float _endX, float _endY, int _moveClock, int _type);
virtual ~_Penguin();
enum States
... |
d74bc2dfbb807e7238d31f6b2f2d7d753307f274 | 9a70726d94a8cc2cf98b9752bdf7ea96334fca6a | /student_download/vs/book_apps/ch09c_bonus_calculator/bonus_calculator/main.cpp | e13f02df12cfac75a603f6f1480dd97b7876df6e | [] | no_license | isaiah-baker/murachcppStartFiles | 84f5fa45970cb42e714cb09b7c2a5ede43fde3f8 | e270e8a26be15d4ae4a18381828678b44ed2b261 | refs/heads/master | 2020-04-28T01:29:44.163882 | 2019-03-10T17:51:40 | 2019-03-10T17:51:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,199 | cpp | main.cpp | #include <iostream>
using namespace std;
enum class Department { marketing = 1, it, sales, other };
// function prototypes
void show_menu();
Department get_department();
bool check_criteria(Department);
int main() {
cout << "The Monthly Bonus Calculator\n\n";
show_menu();
const double bonus_amt = 1000;... |
8e8320421192151acb9088c5370bd6ccca7127e2 | 9a32178d3c2fdf377d84f65b55989264e67f40e9 | /2002/ALL VC SAMPLES/ATLServer/PerfMon/PerformanceCounter/PerformanceCounterIsapi/PerfObjectManager.h | bfe0cc45a494a2cb8b30114d0579b7d2a7035087 | [] | no_license | philipwolfe/Samples | 5e5cc1376575ac6361b62a3554c98626f153b694 | 7eb703287a6d07596a141c4557f271efe6c1666f | refs/heads/master | 2021-12-25T12:52:52.616313 | 2021-12-19T04:26:29 | 2021-12-19T04:26:29 | 250,445,305 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,157 | h | PerfObjectManager.h | // PerfObjectManager.h: interface for the PerfObjectManager class.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Classes Reference and related electronic
// documentation provided with the library.
// See these sources for de... |
0c314e6ec55b2f2a8942fae08a2650251b1efd31 | bcf138c82fcba9acc7d7ce4d3a92618b06ebe7c7 | /rdr2/0x58CB53DB63F84DEA.cpp | f4d61abdde23009de8589ca14e85604d72d7849a | [] | no_license | DeepWolf413/additional-native-data | aded47e042f0feb30057e753910e0884c44121a0 | e015b2500b52065252ffbe3c53865fe3cdd3e06c | refs/heads/main | 2023-07-10T00:19:54.416083 | 2021-08-12T16:00:12 | 2021-08-12T16:00:12 | 395,340,507 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 301 | cpp | 0x58CB53DB63F84DEA.cpp | // abigail2_1.ysc @ L69535
int func_1954()
{
int iVar0;
int iVar1;
int iVar2;
iVar0 = 0;
while (iVar0 < 9)
{
iVar2 = func_2271(iVar0);
if (STATS::CHAL_GET_NUM_RANKS_COMPLETED(iVar2) >= STATS::CHAL_GET_MAX_RANKS(iVar2))
{
iVar1++;
}
iVar0++;
}
return iVar1;
} |
f9d29efb317f635482362f503ceae4b5b897919d | a8ccdf4e5b2d4b7314fd98e4962bc7381104e89b | /generated/images/src/sw2_2-5.cpp | 666d7aa39d69adcbca2a41a7b81f7468d91929bf | [] | no_license | misstek/SmartHomePanel | d6e9948ec97655cff072bffcb13fc9b11b7bdd93 | 72a6498e9850533206a229407217dea05e641c12 | refs/heads/master | 2021-05-01T19:17:09.823698 | 2018-02-10T14:18:40 | 2018-02-10T14:18:40 | 121,018,424 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36,859 | cpp | sw2_2-5.cpp | // -alpha_dither yes -dither 2 -non_opaque_image_format ARGB8888 -opaque_image_format RGB565 0xc6cb7f13
// Generated by imageconverter. Please, do not edit!
#include <touchgfx/hal/Config.hpp>
LOCATION_EXTFLASH_PRAGMA
KEEP extern const unsigned char _sw2_2_5[] LOCATION_EXTFLASH_ATTRIBUTE = { // 70x26 ARGB8888 pixels.
... |
1e07d8f544b2e8a6ad62e4dbe7504e8e733f14ed | bd36e6a9b7fff372d1c883fea28fde479e04c531 | /Source/Oscillator.cpp | 9abc8c06693fd6338124660151f80fa98e1f82ae | [] | no_license | CharlesThaCat/JuceSynth | 0be791826118bc628ddc43d3a42c21c6937c5aa3 | c19d89caa4dd27be99d3b48a96e002a188b709b9 | refs/heads/master | 2022-12-11T20:12:43.369900 | 2020-09-15T01:12:21 | 2020-09-15T01:12:21 | 293,124,301 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,573 | cpp | Oscillator.cpp | /*
==============================================================================
Oscillator.cpp
Created: 3 Sep 2020 11:12:49am
Author: bhxxl
==============================================================================
*/
#include <JuceHeader.h>
#include "Oscillator.h"
//============... |
8a204f5937610e96253869b97199af286b683d7e | 278d7d5f54265612bed9b0257e951a10cd920779 | /filling_diamonds.cpp | 664d1a966930436473dfee95ddc0c3e0b8f3e01b | [] | no_license | zhiz-m/Competitive-Programming | dcabe9262ae5899708910392ebd730b2fd7ba1a4 | f99ba4390b2f0f092c204c96ad18f86cb79f1bd1 | refs/heads/master | 2023-04-23T23:38:17.458594 | 2021-05-08T06:33:34 | 2021-05-08T06:33:34 | 365,436,077 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 564 | cpp | filling_diamonds.cpp | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()
#define fi first
#define se second
#define SZ(x) (int)(x).size()
#define rep(i,a,b) for (int i=a;i<b;i++)
#define per(i,a,b) for (int i=b-1;i>=a;i--)
#define DEBUG(x) cerr<<'<'<<#x<<": "<<x<<'\n'... |
745204b5403fbce4340f587fdb839eaa00d0f699 | 7c8a9d06a324511b583ed8441c3879dd1ad33bb4 | /engine/math/NXMath.h | a6793ad97d39aa17ad2f02c3e2205499b967acfa | [] | no_license | 15831944/NXEngine | 57f03471da704272cb979f301985796e78eae3b8 | 5729fd996f552a53f39671e7db4f4142fe5ff610 | refs/heads/master | 2021-06-17T01:45:59.105473 | 2017-05-04T07:18:21 | 2017-05-04T07:18:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,025 | h | NXMath.h | /*
* File: math.h
* author: 张雄
* date: 2016_02_26
* purpose: 基本的数学库函数
*/
//写一些sin,cos之类的快速计算函数
#ifndef __ZX_NXENGINE_MATH_H__
#define __ZX_NXENGINE_MATH_H__
#include "NXNumeric.h"
#include "../common/NXCore.h"
namespace NX {
template<typename T, int Scale>
class vector;
template<type... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.