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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b3b5efdef621432edbf4be58ccfb71e03c4a3541 | 89c6e274dd4daf0aa771fe25dab136a0254506f8 | /src/postgres/backend/utils/adt/ri_triggers.cpp | a4895f744315623df983739160d8c5c1cc425225 | [
"Apache-2.0"
] | permissive | dvanaken/peloton-bwtree | 761db53008eb7f091154d47ea6d3a0af8ae44f65 | 52785fb88239f1789b8b5502d645fbd64ebdfaac | refs/heads/master | 2021-01-11T19:43:15.837317 | 2016-03-10T04:31:20 | 2016-03-10T04:31:20 | 49,620,925 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 104,776 | cpp | ri_triggers.cpp | /* ----------
* ri_triggers.c
*
* Generic trigger procedures for referential integrity constraint
* checks.
*
* Note about memory management: the private___ hashtables kept here live
* across query and transaction boundaries, in fact they live as long as
* the backend does. This works because the hashtable str... |
0d89caded7ce1152c6e741487009b2f407df500c | 2758c5759e04971a5b19bed0e4e40499749ff69e | /Engine/Ball.cpp | c8f9433c09bc6fa2934dd98badf55894d20464e2 | [] | no_license | NightFury300/BallJumper | 1b1cc874009d78f1b571f7d62ee78aea49c3928f | f8f4a299698d765d955a878fa255e5c65298347a | refs/heads/master | 2022-08-27T11:32:19.219369 | 2019-12-27T15:14:01 | 2019-12-27T15:14:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | cpp | Ball.cpp | #include "Ball.h"
void Ball::Draw(Graphics & gfx)
{
for (int j = y - radius; j <= y + radius; j++)
{
for (int i = x - radius; i <= x + radius; i++)
{
int xcomponent = x - i;
int ycomponent = y - j;
if ((xcomponent * xcomponent) + (ycomponent * ycomponent) <= radius * radius)
{
gfx.PutPixel(i, j, ... |
f606830dcd47ba993b32cbcf54b44458bfb216b4 | f3218028d129a3e1325e5cff37271eb0c5883908 | /medicine.cpp | b401f2525c1adbceb96cc75c743023133844839f | [] | no_license | Digbi/DM | 5bf9b52f0fdebe6f8cf3b48a23f2c92e68b97731 | daaebf07e6ef29d399711ecf67a4ec0cd3c913d4 | refs/heads/master | 2021-01-22T18:07:12.240259 | 2017-03-15T21:13:21 | 2017-03-15T21:13:21 | 85,059,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,792 | cpp | medicine.cpp | #include<stdio.h>
#include<conio.h>
#include<math.h>
#include<stdlib.h>
int medicode[5]={1001,1002,1003,1004,1005},temp,i,a;
float mediprice[5]={2.25f,5.65f,45.60f,3.35f,6.50f},temp1,sum;
char meditype[5]={'T','C','S','T','C'},temp3;
int qnty[5];
void pmain();
void acc_order()
{
printf("\t\t order form \t\t... |
dce5c1114b4ac81f7359283efaef28827711e3e1 | 5ba4adbfe55c41e5d1ac9c4f3695aaf9cd851b21 | /src/lru.cpp | a39036a147610789f0e7bb13b11717bc7c63ea12 | [] | no_license | kalsrepo/ds-prac | ced4d4339675e3496af96b283b370dde909963bf | 79bfb595129a80d71b616279cec379a7d644e85c | refs/heads/master | 2020-04-01T02:40:41.694576 | 2018-10-12T18:30:47 | 2018-10-12T18:30:47 | 152,789,909 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | cpp | lru.cpp | //
// lru.cpp
// datastructures
//
// Created by Kallol Banerjee on 9/14/16.
// Copyright © 2016 Kallol Banerjee. All rights reserved.
//
#include "lru.hpp"
void test_cache()
{
LRUCache c(3);
c.set(1, 2);
c.set(2, 2);
c.set(3, 10);
c.get(1);
c.print();
c.set(4, 1);
c.print();
... |
c96cc5ec056c3606e8ecaf2243f1919b31b5f9f8 | 5c5658d68599c3480ec3914ec2ad81f993fd0ab0 | /Chapter6/6-1/6-1/OldFunctions.h | 181a775c9875e228edf13541ebad96bdac9585e4 | [] | no_license | mwharris/Accelerated-C-Exercises | 3d9fa2cae95f7cce0f6556ab01ab3f0de0f06e4b | 4fe6c6dbbadddfb892d4eaf9c9a3ac86d2eb1e3c | refs/heads/master | 2021-09-10T12:01:51.514128 | 2018-03-26T01:16:40 | 2018-03-26T01:16:40 | 117,593,217 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 369 | h | OldFunctions.h | #ifndef OLD_FUNCTIONS_H
#define OLD_FUNCTIONS_H
#include <vector>
#include <string>
std::string::size_type width_old(const std::vector<std::string> v);
std::vector<std::string> frame_old(const std::vector<std::string>& words);
std::vector<std::string> hcat_old(const std::vector<std::string>& left, const std::vector<s... |
274da490ec89c2471316016d3e839c754f443413 | ede86a6ffbb877fd1b865842a217c8896184efd1 | /src/intersectinfo.h | 81a99920216077e1cdc8275c8cd8ed1bcca8da00 | [] | no_license | TUS-OSK/lecture-classical-raytracer-2021 | 514050e15b072f776a9bfd4448bf25eee25c09ce | c58283a9968091bef196b5dd91cc91831b38b52d | refs/heads/main | 2023-08-30T05:36:34.148249 | 2021-11-07T07:49:40 | 2021-11-07T07:49:40 | 390,409,750 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 250 | h | intersectinfo.h | #pragma once
#include "vec3.h"
#include "shape.h"
class Shape;
struct IntersectInfo {
//交差距離
float distance;
//交差位置
Vec3f position;
//法線ベクトル
Vec3f normal;
//スフィアのポインタ
Shape* sphere;
};
|
e3fa3f281f12180cfd06a064bbeb6e95164c89d1 | c48efb3fa168590f8ae2232f6e46890e3fd908d7 | /Spike/src/Platform/OpenGL/OpenGLFramebuffer.h | 03f651a1aab444b40f79db044cee8af86258441e | [] | no_license | ToniPlays/Spike | f99accd9f7d5e34d75dc2716bba302e6e280c576 | fabfb6947c94bae51ab11c39d9ebbd1a5ebb51f6 | refs/heads/main | 2023-03-20T08:19:47.828086 | 2021-03-07T17:37:17 | 2021-03-07T17:37:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,782 | h | OpenGLFramebuffer.h | /*
SPIKE ENGINE
This file is licensed under the SPIKE LICENSE
--Spike Source Code--
Copyright 2021 - SpikeTechnologies - All Rights Reserved
File Name : OpenGLFramebuffer
File Type : h
File created on: 2021/01/09
File created b... |
94217d83c2cb9217ad2d907d10cc583952bb2996 | 1082d5cde908e101c51f69923212dcae4b4b60f4 | /Source/UnrealEnginePython/Private/Wrappers/UEPyFRawMesh.cpp | d6f8f24d2dc90934b07df22041c2ed80c74bf411 | [
"MIT"
] | permissive | SaxonRah/UnrealEnginePython | 88039c62024d01672138c4adeecac0fc9729bed0 | d5f3b2e7a42209af31cbbd47377633e8d452439c | refs/heads/master | 2021-01-04T23:56:44.556697 | 2020-02-16T00:38:43 | 2020-02-16T00:38:43 | 240,805,780 | 7 | 1 | MIT | 2020-02-16T00:03:20 | 2020-02-16T00:03:19 | null | UTF-8 | C++ | false | false | 18,896 | cpp | UEPyFRawMesh.cpp | #include "UEPyFRawMesh.h"
#if WITH_EDITOR
#if ENGINE_MINOR_VERSION > 13
#include "Engine/StaticMesh.h"
static PyObject *py_ue_fraw_mesh_set_vertex_positions(ue_PyFRawMesh *self, PyObject * args)
{
PyObject *data;
if (!PyArg_ParseTuple(args, "O:set_vertex_positions", &data))
{
return nullptr;
}
PyObject *ite... |
a205cb8accb25d42eeff62175d747d5074c07371 | 36183993b144b873d4d53e7b0f0dfebedcb77730 | /GameDevelopment/Game Programming Gems 3/Source Code/01 General Programming/02 Patterson/GFSrc/Systems/Win32/LogSysWin32Lib/LogSysWin32Impl_t.cpp | cac6e059fa05d2619649a09ef93c492bf19749f8 | [] | no_license | alecnunn/bookresources | b95bf62dda3eb9b0ba0fb4e56025c5c7b6d605c0 | 4562f6430af5afffde790c42d0f3a33176d8003b | refs/heads/master | 2020-04-12T22:28:54.275703 | 2018-12-22T09:00:31 | 2018-12-22T09:00:31 | 162,790,540 | 20 | 14 | null | null | null | null | UTF-8 | C++ | false | false | 2,891 | cpp | LogSysWin32Impl_t.cpp | /* Copyright (C) Scott Patterson, 2002.
* All rights reserved worldwide.
*
* This software is provided "as is" without express or implied
* warranties. You may freely copy and compile this source into
* applications you distribute provided that the copyright text
* below is included in the resulting source code,... |
8699cf665ca778cd52170230069781a96d221b2f | 32546edc31bb199da5eb579a5908d2d6102f4ef1 | /0141121830_zhaobeichen_源码_winxp/0141121830_zhaobeichen/Set.h | d2dbec4c6bec977be6c28587d26e09e424e03bd7 | [] | no_license | ZhaoBeiChen/Home-Work | 91ecb3f7f0ddab49eaa434c0a4e18554512a839b | 1ed85fcb2cc463bd330f5cc5e07e22718b97e9dc | refs/heads/master | 2020-05-27T21:16:32.390520 | 2017-03-13T09:08:27 | 2017-03-13T09:08:27 | 83,647,793 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 669 | h | Set.h | #pragma once
#include "afxcmn.h"
#include "SetPara.h"
#include "AddFile.h"
#include "EncryptionDialog.h"
// CSet 对话框
class CSet : public CDialogEx
{
DECLARE_DYNAMIC(CSet)
public:
CSet(CWnd* pParent = NULL); // 标准构造函数
virtual ~CSet();
// 对话框数据
enum { IDD = IDD_SET };
protected:
virtual ... |
155609eaaffcc777379f20d29c565e2b014bca13 | 47a0d457c251d58b436c7af498261ba99eb4657d | /VectorworksSDK/SDK2021/WindowsSDK/SDKLib/Source/VWSDK/Kernel/MiniCadExternals.cpp | 10367345adf8c71361e8658e06242f1be1e72c64 | [] | no_license | jacob-ditkoff/VW_2021SDK_Example | 591cbc1e5e38dddda69420be6bc0ab6f322b5cf1 | a429f3c402716f1fc4a067e0aacf08a67c5285c5 | refs/heads/main | 2023-03-21T18:04:22.305924 | 2021-03-04T14:48:50 | 2021-03-04T14:48:50 | 339,420,316 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 537 | cpp | MiniCadExternals.cpp | //
// Copyright Nemetschek Vectorworks, Inc.
// Use of this file is governed by the Nemetschek Vectorworks SDK License Agreement
// http://developer.vectorworks.net/index.php?title=Vectorworks_SDK_License
//
//
#include "StdHeaders.h"
#include "VectorworksSDK.h"
// This must follow all header files.
#un... |
92b3e883cd6de35f82e542a55046e822850a84c4 | b9a2f019733091409bd5c1e1f7e9383666f767bc | /codeforces/Packets.cpp | 0d03dacf60547a487516ead52c681517b798d14d | [] | no_license | dipty13/Competitive-Programming-Codes | 0f00da0fc9fc1ea13fe0d483f88d7311f0997517 | 3182305d9d7901dc72acf2e7d94eb8baaf201fdc | refs/heads/master | 2022-11-24T08:42:22.890428 | 2022-11-11T21:06:20 | 2022-11-11T21:06:20 | 120,195,465 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 246 | cpp | Packets.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
long long int n,i,j,c,k,x;
while(cin>>n)
{
c = 0;
while(n)
{
n/=2;
c++;
}
cout<<c<<endl;
}
return 0;
}
|
b1c10abdd4691a50fd1fccf9763d8dc4e92ffcf0 | be34d599008cc0b3b81177fdb9f9e2dcbd7f56ba | /src/mcu/core/Lamp.h | acc94781e7b8439ad408ee89b906b205ff0e2ff0 | [
"Apache-2.0"
] | permissive | wouterdevinck/lamp | d5c94f98bd8b39fdf5395ae1bc129f0fe1f0e931 | 5020ba56f68738133934c4014166813790d04df9 | refs/heads/master | 2023-03-07T03:05:55.753756 | 2020-08-11T10:15:29 | 2020-08-11T10:15:29 | 134,090,004 | 2 | 0 | Apache-2.0 | 2023-02-25T04:39:21 | 2018-05-19T18:58:27 | C++ | UTF-8 | C++ | false | false | 595 | h | Lamp.h | #pragma once
#include "IrHandler.h"
#include "LedsManager.h"
#include "IPlatform.h"
#ifndef BASIC
#include "WiFiHandler.h"
#include "HttpHandler.h"
#include "IotHandler.h"
#include "UpgradeManager.h"
#endif
namespace lamp {
class Lamp {
public:
explicit Lamp(IPlatform* platform);
void start() con... |
ca48f1046a9e77fc0abab6cd89b1f56df05c2642 | 4ece20b0e44f04e041405e54a1703de68eb3a82c | /A.cpp | c7def8406d3c2628bf3c4d5c68e866da578d6218 | [] | no_license | Rajon-Chowdhury/Lightoj-Solution | 8dfb1bedebd0362f895ba6954b72021a9aa44b31 | ca0918818991006d343d9835a8f7a228e8642c4e | refs/heads/master | 2020-12-20T19:52:15.425448 | 2020-12-15T14:33:43 | 2020-12-15T14:33:43 | 236,193,701 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | cpp | A.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
int n,i,mx=0,j,k;
string s;
cin>>s;
n=s.size();
for(i=0;i<n;i++){
for(j=0;j<n-i;j++){
int d,c=1;string u;
u=s.substr(j,i+1);
d=u.size();
for(k=j+1;k<n;k++){
string ... |
e1b3c7ddfac07d3ef6eacc242344ed48612470a6 | 51507a638826683c237783ffc4be5f2f0dd7fc4f | /ConvolutionalNeuralNetwork/struct/CSV.h | 8c8d90f02abb5452b10754dffa1346d17730023f | [
"Apache-2.0"
] | permissive | daimaxiaxie/miniLearn | bf15e734016953652e2872864d66570a71c603db | 598d69c51f213dda8785e3831b1c0d01d5fa1823 | refs/heads/master | 2020-04-03T01:24:05.322304 | 2018-11-07T13:14:14 | 2018-11-07T13:14:14 | 154,929,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,507 | h | CSV.h | #pragma once
#include "head.h"
class csv
{
private:
std::string s[1000];
std::string a;
std::ifstream fin;
public:
csv()
{
}
csv(std::string aa) :a(aa)
{
fin.open(a, std::ios::in);
if (!fin)
{
std::cout << "open error" << std::endl;
exit(0);
}
}
~csv() {
fin.close();
}
void setURL(std::s... |
0eb0881dba1aff72a63e5e4cd275798527551e97 | 4ee155a930b585bc177d270d843a218344a991ee | /Sketch/G_019_Atomizzatore/Esempi/HelloWorld_i2c_Uno/HelloWorld_i2c_Uno.ino | 9b695049710117c2b2bc9c8e7fe6a671dd877808 | [] | no_license | mdmecco/Arduino | 9b278fdcd308f979983661f1843f1d3416a3da7e | aa18251efd6a9029ac2e16d914866135bb174aef | refs/heads/master | 2023-08-14T12:35:06.627139 | 2023-08-11T14:22:18 | 2023-08-11T14:22:18 | 88,310,794 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,821 | ino | HelloWorld_i2c_Uno.ino | #include <Wire.h>
#include <LiquidCrystal.h>
//#include <A:\libraries\LiquidCrystal_I2C_V121\LiquidCrystal_I2C.h>
/* --------------------------------------------------------------------------
2^ TEMPLATE
Scrivo su un display LCD 20 caratteri x 4 linee, con interfaccia seriale I2C
"YwRobot Arduino LCM1602 IIC V1"... |
75af47f0b50b654f7f5498f477bd2c0cf8871fca | 754ae794632b5aa1b7c521d4d50cf728aa456af0 | /travnikmp3.cpp | 4d16474e05ea52b69f65978c4666d4202377f1df | [] | no_license | aljaztravnik/travnikMP3 | 779a64f2493ea1b7bce28821e98d7880dc7f8654 | 67c8746fb088cfc96a9df6f6a3782984a90b807b | refs/heads/master | 2022-09-19T03:50:08.667582 | 2020-06-01T21:58:17 | 2020-06-01T21:58:17 | 268,641,417 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,487 | cpp | travnikmp3.cpp | #include <iostream>
#include <vector>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <sstream>
#include <dirent.h>
#include <sys/types.h>
void updatePlaylist(const char *path, std::vector<std::string> &words)
{
words.clear();
dirent* entry;
DIR* dir = opendir(path);
if(dir == NULL) return;... |
8ca21edf5cf588daa13139399b54dab32d031b02 | 96870b97d05597413d779cc324b5aa06313c4cbb | /19127360_Tuan2/P6/header.h | 70bed6f414fa6c5e5c00e7cf5a0bcfda566b8015 | [] | no_license | duongthixuandieu/Repo | 5e67fa1c3c4ef93cf7f9ec8f677397a74a4b298d | fb2faaa69df165ac2f6f6c9cc0e75b9f8b8af37f | refs/heads/master | 2022-11-11T17:25:27.849873 | 2020-07-09T13:06:57 | 2020-07-09T13:06:57 | 260,400,561 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 165 | h | header.h | #ifndef _HEADER_
#define _HEADER_
#include <iostream>
#include <fstream>
using namespace std;
bool groupSum(int start, int sum[], int target, int lesngth);
#endif |
733ccecc0d5588e2d61768eef1051069f0ab7025 | c5ea205fbbb9cda113f1322902597fe5a0b6ba0f | /move_quiz/move_quiz/CBoard.h | 31db6f21bbb2d282a159965bc8560ed105194f5c | [] | no_license | lethe2211/Beltrailer | 5f0364f561a3afb744d2eb13aa068910aece02ba | d39cffdbb72040bbe22812f5cef578446556aa7a | refs/heads/master | 2021-01-22T11:46:22.055144 | 2013-12-14T11:31:49 | 2013-12-14T11:31:49 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 539 | h | CBoard.h | #ifndef DEF_CBOARD_H
#define DEF_CBOARD_H
#include "utility.h"
#include <string>
// 画面を表すクラス
class CBoard {
public:
CBoard(); // コンストラクタ
~CBoard(); // デストラクタ
void title(); // タイトル画面の描画
void select(int select_num); // 問題セレクト画面の描画
void draw(int point, int quota, std::string statement1, std::string... |
8722b63f5d104ed2e8230beaaa51f0d488cca455 | 98921e7b2309ab25dea0d63d3c915bada5b2f7cc | /HPA/Sources/xfmod.c | 2577e3509ac9838dab80b810a4a95319d376126e | [] | no_license | Zerui18/Arithma | 90f97370bd82c7ecde828b3a6eed1471157cdef2 | a1c9cc48c048b7560e9ca57c5a3e30dbbc36fb56 | refs/heads/master | 2023-02-27T17:31:37.322310 | 2021-02-03T01:27:42 | 2021-02-03T01:27:42 | 138,183,988 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,865 | c | xfmod.c | /*
Copyright (C) 2000 Daniel A. Atkinson <DanAtk@aol.com>
Copyright (C) 2004 Ivano Primi <ivprimi@libero.it>
This file is part of the HPA Library.
The HPA Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publ... |
a5c6c4b3442ecf919d7248235109248116331931 | 0a2f6dbe31df371288a89da206eea7ab1fed6588 | /133、二维数组.cpp | ee9bf218b026462b000fb9baf4dc5f40ff49a0b4 | [] | no_license | william4s/Competitive-Programming-code | af86a2bde7479fa0245f7559b0152acce1484c17 | fbbc96f8096c116dd6f3cc1a55b816cb484dd214 | refs/heads/main | 2023-07-15T01:53:38.036661 | 2023-07-03T03:01:35 | 2023-07-03T03:01:35 | 319,254,285 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 259 | cpp | 133、二维数组.cpp | #include<bits/stdc++.h>
using namespace std;
long a[120][120],n,m;
int main(){
cin>>n>>m;
for(int i=0;i<n;i++)
for (int j=0;j<m;j++)
cin>>a[i][j];
for (int i=0;i<n;i++)
{
for (int j=0;j<m;j++)
cout<<a[i][j]<<" ";
cout<<"\n";
}
return 0;
}
|
19b5a1c74a8f93d7dd088aaff5e572a9cb8ad2bf | 2c69245fa6b65affaa40755785504df4c12dd3b5 | /phraser/cc/base/files.cc | 86cf66def76e07538eea618236e5106f95926bd2 | [
"MIT"
] | permissive | knighton/phraser | 1b711a20193e4722e50d41e0ea11c69dca7bfcef | a4b213260cd9b24fb3052973a1268c021f965ce8 | refs/heads/master | 2021-01-17T09:04:22.561009 | 2016-04-01T21:32:10 | 2016-04-01T21:32:10 | 34,379,599 | 1 | 2 | null | 2016-04-04T21:12:41 | 2015-04-22T08:51:15 | C++ | UTF-8 | C++ | false | false | 1,725 | cc | files.cc | #include "files.h"
#include <dirent.h>
#include <cstdio>
#include "cc/base/strings.h"
namespace files {
bool EachCommentableLine(ifstream* in, string* line) {
while (getline(*in, *line)) {
size_t x = line->find('#');
if (x != ~0ul) {
line->resize(x);
}
strings::Trim(l... |
eecd7f5adc89f9d70d91f9854df9352e80f68a14 | 11986b8a755e6528e095696a6b7023034e518a35 | /visual studio 2015/Projects/03_0822_ cpp的重复声明_01/03_0822_ cpp的重复声明_01/demo.cpp | 91093127f3a667289f49ea527ea6162bcd2152de | [] | no_license | lianchonghui/projects | 91c0df5a23098329945f7e624d132579a5a7fde0 | 734da275ef8fe777d08224224cb8e43ec389c6a2 | refs/heads/master | 2021-07-25T21:43:52.189351 | 2017-11-09T07:39:54 | 2017-11-09T07:39:54 | 110,086,125 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41 | cpp | demo.cpp | #include"demo.h"
int a;
extern int a; |
a9e48f640c8df3667b479e2415d700a7fd28a8cf | ff177f8213ec802c73846b838fa6e88512b98cd9 | /374_Big_Mod.cpp | 5c1efbaea7cab64f9bacdeb79003689dbe478fb2 | [] | no_license | Shubham28/UVa | 3f52926e673ba13aec23dff338eb8aeae048a460 | b557039e6643d4b85cadf5dd89072a8949717468 | refs/heads/master | 2020-07-20T14:04:58.129188 | 2013-05-23T12:42:07 | 2013-05-23T12:42:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 635 | cpp | 374_Big_Mod.cpp | #include <vector>
#include <algorithm>
#include <iostream>
#include <cmath>
#define FOR(A,B,C) for(int A=B;A<C;A++)
#define EFOR(A,B,C) for(int A=B;A<=C;A++)
#define RFOR(A,B,C) for(int A=B;A>=C;A--)
using namespace std;
int bigMod(long long B,long long P,int M)
{
if(B==0 || M==1)
return 0;
if(P==0 || B==1)
re... |
f259ffd7a6348c4b995bf86af6a223b582eee995 | 63e564dde63a487d66502b5b59d253aa48a408a2 | /src/EASYTEST.CPP | 427fa57d664a3ffef7e8bba28a9f9518d825813f | [] | no_license | seanwaye/ECG_Carbide_Phone | 0e8ca104dbf1269cc9768ed0f34bad0efbf5e846 | dc8257b3f7dc4d1e8e8754d18bc34f19f655a521 | refs/heads/master | 2021-01-13T16:06:36.556039 | 2010-08-02T00:38:07 | 2010-08-02T00:38:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,313 | cpp | EASYTEST.CPP | /*****************************************************************************
Easytest.exe is a simple program to help test the performance of our
beat detection and classification software. Data is read from the
indicated ECG file, the channel 1 signal is fed to bdac.c, and the
resulting detections are saved in the ... |
2bc6a828fd437c81b7e2ede1511acbe3f80bd42f | a0de36cb9cc57c79d6ef612c57efcece704566a8 | /riru/src/main/cpp/util/dl.cpp | dda46b50d28de35828688dae6c76d1f2c8ae611f | [] | no_license | HT-ZH/Riru | 7565ef6f344ff7ff0f6137607334ba8da85b595b | 0f78ff8e3700bc8d6b1a16f00f708be7b70b7424 | refs/heads/master | 2023-03-20T19:54:22.161537 | 2021-03-13T15:03:15 | 2021-03-13T15:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,263 | cpp | dl.cpp | #include <cstddef>
#include <plt.h>
#include <dlfcn.h>
#include <libgen.h>
#include <cstring>
#include <logging.h>
#define FUNC_DEF(ret, func, ...) \
using func##_t = ret(__VA_ARGS__); \
static func##_t *func;
#define FIND_FUNC(func) \
if (!func) \
func = (func##_t *) plt_dlsym(#func, nullptr);
FUNC_... |
5e1ec5a23767753773cc519a4196827b9f75b722 | 0c76f24ff33b8fb154eb8cd623de5f83c3939dc3 | /src/cegis/genetic/lazy_fitness.h | 676ade7ca6532652946dceb51466956d6874fcf6 | [
"BSD-2-Clause"
] | permissive | martin-cs/cbmc | 77e383481814be5560044805172309e7eb7f7b7f | b0c9814d344c493741f45bba93e1668c3727b0e3 | refs/heads/master | 2023-03-09T02:42:58.781240 | 2014-06-18T22:19:34 | 2016-02-23T15:42:14 | 55,787,607 | 0 | 4 | NOASSERTION | 2021-02-04T16:07:16 | 2016-04-08T15:03:24 | C++ | UTF-8 | C++ | false | false | 1,909 | h | lazy_fitness.h | /*******************************************************************
Module: Counterexample-Guided Inductive Synthesis
Author: Daniel Kroening, kroening@kroening.com
Pascal Kesseli, pascal.kesseil@cs.ox.ac.uk
\*******************************************************************/
#ifndef CEGIS_GENETIC_SYME... |
8cae4543260bde4c83b924ff40c7a4e57cc32d2f | 90a8515711c5c89847f096bdffb14fe68dba7bef | /Exam problems/X40596.cc | c77e94922e1a3be60ccd6c52f008e5cf569cf5f3 | [] | no_license | andyfratello/EDA | e02830ce0c71c8cad53cec6c4ff423dd23c42d88 | dcec8e02167f2698d6383f5c9954808d72e075f1 | refs/heads/main | 2023-06-17T23:21:18.571694 | 2021-07-09T14:56:46 | 2021-07-09T14:56:46 | 379,036,037 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 767 | cc | X40596.cc | #include <iostream>
#include <vector>
using namespace std;
void write(const vector<int>& sol, int n) {
cout << '(';
for (int i = 0; i < n; ++i) {
if (i != 0) cout << ',';
cout << sol[i];
}
cout << ')' << endl;
}
void seq(vector<int>& sol, vector<bool>& vis, int n, int d, int i) {
i... |
272a93497a087238503e7ed27e86347e384ac531 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir40735/file41101.cpp | 7fb411860f494603af7dbcef80346cb963f48049 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | file41101.cpp | #ifndef file41101
#error "macro file41101 must be defined"
#endif
static const char* file41101String = "file41101"; |
d19291ca46b432b65c9979c76a67e0c1ce927187 | e166d489960097aabdf072d77aefc0d17c833e56 | /codeforces/202a.cpp | e313861c0bc557e9ee04ca1bfbcc8564c583317b | [] | no_license | yash0patni/cp | 17f289c680368ad1f5c20ecb29d5e6c6e4a1c40c | 9f55980e093d66fb3518c6c5ddef2d966049c89d | refs/heads/master | 2023-02-02T14:01:56.971462 | 2020-12-17T15:54:52 | 2020-12-17T15:54:52 | 299,001,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,996 | cpp | 202a.cpp | #include <bits/stdc++.h>
#define ll long long
#define testcase() int t; cin>>t; while(t--)
#define fo(n) for (int i = 0; i < n; i++)
#define fos(s, n) for (int j = s; j < n; j++)
using namespace std;
int power(int a, int b)
{
int result = 1;
while (b > 0)
{
if (b % 2)
result = result *... |
d9d9e76eea0b0f085597c301ee9ce734f3a61ab8 | e867728ca76653f87da789dd5f0a287ea37aafc0 | /wincommoncontrol.cpp | 75dac42c8b7c5a05cca90e1ddf4a243cf3797207 | [
"MIT"
] | permissive | bl222/win32-wrapper | 7a900aac9a7af0dd95f6f25fe9c2ad31bcd45728 | 90a055d9623375259d15f937bf12a1d2897c2e86 | refs/heads/master | 2021-01-19T14:04:27.677362 | 2017-08-20T19:18:44 | 2017-08-20T19:18:44 | 100,883,113 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 569 | cpp | wincommoncontrol.cpp | #include "wincommoncontrol.h"
#include <windows.h>
#include <commctrl.h>
//-----------------------------------------------------------------
// Loads one of the common controls in memory.
//-----------------------------------------------------------------
Win::UsingCommonControl::UsingCommonControl (DWORD ... |
61b552067ad18212b0928095897c2beb9d292385 | 09ddd2df75bce4df9e413d3c8fdfddb7c69032b4 | /src/LXUI/ecmascript_lex_.cpp | 8feca4aedc0b8eeda3052e2412b1455f49ea27f5 | [] | no_license | sigurdle/FirstProject2 | be22e4824da8cd2cb5047762478050a04a4ac63b | dee78c62a1b95e55fcdf3bf2a9bc79c69705bf94 | refs/heads/master | 2021-01-16T18:45:41.042140 | 2020-08-18T16:57:13 | 2020-08-18T16:57:13 | 3,554,336 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 501 | cpp | ecmascript_lex_.cpp | #include "stdafx.h"
//#include <istream>
//#include <ostream>
#include <iostream>
#undef max
#undef min
using namespace std;
#include "../../Win32/LXUI/ecmascript_parse.tab.hh"
#include "ecmascript_lex.cc"
#if 0
#include "ecmascript_ast.h"
namespace System
{
namespace ecma
{
using namespace std;
#include "ecmas... |
0669a68b6547ed1641b7c50c7a761fb16273be87 | 79db1b3d6d96f9762f87f366f78d556efab6ad35 | /simulations/floatingpointfuckery.cpp | 9b80d97e93ba14e9a8732a8302d45cafcf42e7ec | [] | no_license | 1f604/questions | d5ec960111539923f434f01affca384e1d4f1b44 | e96ec79ea5c6f5c4ad67e753094703ecf05a1abe | refs/heads/master | 2023-01-19T18:32:39.158978 | 2023-01-09T23:40:15 | 2023-01-09T23:40:15 | 31,363,706 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 391 | cpp | floatingpointfuckery.cpp | #include <iostream>
#include <math.h>
using namespace std;
void foo()
{
std::cout.precision(64);
std::cout << std::fixed << ((0.1+0.2)+0.3) << endl << (0.1+(0.2+0.3)) << endl;
if (((0.1+0.2)+0.3)!=(0.1+(0.2+0.3)))
{
std::cout << "Huh?!?\n"; // you might end up here when x == y!!
}
else{
std::cout <<... |
57c3ca9f62f867db88a596736f830daf1d1b4276 | 482c77a6e601138d812ada028571948c4a9feb8b | /figures/Results/HFE_pPb/Compare_FullRange_Log.cpp | 22686a2f0046f233cf4eb1c4ed1fda6135031ac8 | [] | no_license | deepathoms/HFE_pp_pPb_PaperDraft | 2998c4d52abd8492805caf5f2dd09de8a9f85136 | f694776a643475f4d81d4979c45368ed8da1bbb3 | refs/heads/main | 2023-03-08T07:31:07.557541 | 2021-02-16T16:47:41 | 2021-02-16T16:47:41 | 339,461,322 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 49,872 | cpp | Compare_FullRange_Log.cpp | #include <stdio.h>
#include <TStyle.h>
#include <TFile.h>
#include <TH1D.h>
#include <TCanvas.h>
#include <TLegend.h>
#include "mystyle.C"
using namespace std;
Double_t minpT=0.4;
Double_t maxpT=11;
TGraphAsymmErrors* RebinFONLL2TeV (TGraphAsymmErrors *g){
int points = 13;
double x1,y1,x2,y2, x,y, ex, eylow, e... |
442ad39dbd42811d7602ee86760332dd8467e3d4 | cf453583d8a7b8f6921d5a9af02b98cc292ad553 | /simulate/screencpp/interfaceandcommunicationdlg2.cpp | 96831bc18cbdabc26eb1aeee4496d071c2d6cff8 | [] | no_license | Coderpsh/AnalysisInstrumentII | 904c9eb628c00adc1461db05f3febbccd62418b2 | 80a353e5b2df86cc058f631d94ea9d91a7971dc9 | refs/heads/master | 2021-05-13T19:38:32.763340 | 2018-01-10T02:38:14 | 2018-01-10T02:38:14 | 116,896,180 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,295 | cpp | interfaceandcommunicationdlg2.cpp | #include "screeninclu/interfaceandcommunicationdlg2.h"
#include "ui_interfaceandcommunicationdlg2.h"
#include <QTime>
#include <QTimer>
#include <QMessageBox>
//add 6.14-5
extern fileoperate *files;
interfaceandcommunicationDlg2::interfaceandcommunicationDlg2(QWidget *parent) :
QWidget(parent),
ui(new Ui::in... |
53c6b98f19aa8567b25e86e806a4e9ee9575b00a | 135c772cbff2d5fa849e16d9879d0ed1765e3aaa | /src/halo/entity/particles/playerDeath.h | dbb8770ede74e4498fa9a5f35e101f45ba1d94ee | [
"Apache-2.0"
] | permissive | gregtour/tedge-cpp | a8bfa17cd668b1880b73240eb90c35e216095069 | 45f47ec7017d2124463430f1e584d9fb0dc8bdd8 | refs/heads/master | 2020-04-23T19:12:46.613511 | 2015-09-06T03:33:00 | 2015-09-06T03:33:00 | 28,570,309 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 327 | h | playerDeath.h | #ifndef _DEATH_H
#define _DEATH_H
#include "../../../engine/graphics/particle.h"
class CPlayerDeath: public CParticleEmitter
{
public:
CPlayerDeath( float x, float y, float z );
~CPlayerDeath();
void CreateParticle();
void EffectParticle( CParticle* p, float dt );
void Logic( float dt );
};
#... |
f2aebe33a0f8e14babac84382005aaf5bb6add2f | b22819d39a788b046e9a475f655b005ac478b1ef | /src/025.Reverse_Nodes_in_k-Group.cpp | 7ca6584631adcea007834b0cd3293362e0b285ae | [] | no_license | chouchoudiudiu/LeetCode | 81424dd12c6ec7ff0c801b6c4786a6e567b1cdec | a5af14f948db04a2e5a1adfefe033a872fd8f0ed | refs/heads/master | 2021-01-11T07:45:53.672062 | 2019-05-14T21:26:35 | 2019-05-14T21:26:35 | 72,676,179 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,156 | cpp | 025.Reverse_Nodes_in_k-Group.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution { //tried many times...
public:
ListNode* reverseOneGroup(ListNode* prev, ListNode* next) { // -1 1 2 3 4 -> -1 and 4
ListNode* last = prev->... |
f0df7e5c93a54f73f3bb30a93d174d3e1b496906 | d2285bab09d40be62c4357f90a5d46b673d1f12b | /src/Menge/MengeCore/BFSM/GoalSelectors/GoalSelectorExplicit.h | 2e0751061205755ca7f81ab8ef042a23a49f94f4 | [
"Apache-2.0"
] | permissive | mfprado/Menge | 5a6ae2bd53e539adcbdb9f9cbf9af5723078d1a4 | 75b1ebe91989c2a58073444fb2d5908644856372 | refs/heads/master | 2020-04-19T13:10:25.101581 | 2019-02-21T02:11:00 | 2019-02-21T02:11:00 | 168,211,094 | 0 | 0 | Apache-2.0 | 2019-02-21T02:11:01 | 2019-01-29T19:03:59 | C++ | UTF-8 | C++ | false | false | 4,994 | h | GoalSelectorExplicit.h | /*
Menge Crowd Simulation Framework
Copyright and trademark 2012-17 University of North Carolina at Chapel Hill
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/licen... |
bf1ff60f98a0c3c72eb37b3a4044a86a3a3316db | 283c49f7ee23f90fe8c0c4983a443d8947f949ff | /math/hackerEarth/UnlockTheDoor.cpp | 7e4f3943d0d072d02584e2eade51816df9e39309 | [] | no_license | ashwoolford/Coding_problems | b9fa44d2a0a02b1b2cbf7c8908fcf9b82af09a65 | 74b43fa0f9967bc99bb58d2f2667344b345aff71 | refs/heads/master | 2020-06-12T17:34:39.707933 | 2019-06-29T09:22:17 | 2019-06-29T09:22:17 | 194,373,891 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,405 | cpp | UnlockTheDoor.cpp | #include <bits/stdc++.h>
using namespace std;
#define IOS ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#define endl '\n'
#define MOD 1000000007LL
#define F first
#define S second
#define U unsigned
#define LL long long
#define ULL unsigned long long
#define LD long double
#define MAX(a,b) ((a)>(b)?(a):(b))... |
4cfce3a264f491c94aaf14b242e0678bc3787512 | c21e50a308a04d504c1864887a5b23a32ca7c43b | /esp32weatherstation/sds011 library/SDS011/examples/sds011_test/sds011_test.ino | f558ee0223cb764e02e392d406fcb3588dba0d9e | [] | no_license | ElektorLabs/180468-ESP32-Weatherstation | b52f0a90cd3f04469db90c281460d8ce4e54d711 | 66ddc48907d9ee89f220b7628e0121543101c1a2 | refs/heads/master | 2021-06-10T03:45:21.823517 | 2021-04-29T07:57:59 | 2021-04-29T07:57:59 | 179,253,280 | 13 | 7 | null | 2021-03-12T08:31:52 | 2019-04-03T09:11:27 | C++ | UTF-8 | C++ | false | false | 1,065 | ino | sds011_test.ino | //code tested on ESP32 Pico Kit
#include <SDS011.h>
SDS011 sds(Serial1);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial1.begin(9600);
delay(500);
Serial.flush();
if (sds.setMode(SDS_SET_QUERY))
Serial.println("mode set");
else
Serial.println("failed");
}
... |
1016e6925c6be1f69641f6b4026ee4fd118fad63 | aeb89abef9f4dafb315f4dbcb87b0bacf2077745 | /Autotest.cpp | ffef8a020e0cb420e65169facc0b5caca7adbff2 | [] | no_license | AliKhokonov1/Kr2_17 | 1484d189fc378037363a87df16e724899bc264eb | dd8c319896b008353ff9de6946aa6a7f895466a0 | refs/heads/master | 2022-12-28T23:21:48.588598 | 2020-10-22T20:02:14 | 2020-10-22T20:02:14 | 306,117,463 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,473 | cpp | Autotest.cpp | #include"FractionPoint.h"
#include"FractionVector.h"
#include <fstream>
#include <iostream>
using namespace std;
int Autotest (void) {
FractionPoint sk;
int N1,N2;
ifstream fin("test.txt");
if (fin.fail()) {
cout<<"File did not open!"<<endl;
return 2;
}
fin>>N1;fin>>N2;
... |
5707dc1627e95c8b29767435700b9e97f3563b26 | 9b3574cd4913999b7fe33b0a3c65ae6008a54381 | /IkonEngine/src/InputHandler.h | ad4c2acd0b4f4798b21a66aa28a122e3af8bb8d7 | [
"MIT"
] | permissive | IkonDev/IkonEngine | ebf1f59ff37c2ed62bfe02a4b36cda0b9eb60355 | 5c7778fc2819ca86f946a49c5018b482ff83c587 | refs/heads/master | 2020-06-11T03:48:51.210989 | 2017-06-06T05:19:39 | 2017-06-06T05:19:39 | 76,010,776 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,373 | h | InputHandler.h | #pragma once
#include <glm\vec2.hpp>
#include <SDL.h>
class InputHandler
{
private:
static InputHandler* m_Instance;
public:
enum KeyState
{
RELEASED = 0,
PRESSED = 1
};
enum IkonKey
{
//Letters
A, B, C, D,
E, F, G, H,
I, J, K, L,
M, N, O, P,
Q, R, S, T,
U, V, W, X,
Y, Z,
//Number Keys
K... |
2305872964af40c28cc71a6ccefbbd5ce2ef2f21 | 21d8f5cd1dbcd89a8c8e55e9c4df4713003f4347 | /ticket_8/ticket_8/Money.cpp | 756bb561828fb8001e127262a46c1947286ab63b | [] | no_license | Antoshka-Tkachev/Exam | 50b8a0092273e9c273967a2dbe200fef6fe20cf9 | 79b7308e68e26861ea151acfb50057040ebdc540 | refs/heads/master | 2020-06-09T21:31:15.106435 | 2019-06-25T22:01:46 | 2019-06-25T22:01:46 | 193,508,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,220 | cpp | Money.cpp | #include "pch.h"
#include "Money.h"
#include <string>
Money::Money()
{
ruble = 0;
penny[0] = '0';
penny[1] = '0';
}
void Money::set_money()
{
int bufer;
cout << "Введите кол-во рублей: ";
cin >> ruble;
cout << "Введите кол-во копеек: ";
cin >> bufer;
if (bufer > 10) //проверка, если ее не ... |
347f6ba85bb58f674085d8d9e57a873a023539ec | 0b6309f2222033a58122bb67ca70182899349bbb | /Filerun_candle_vgrid_원본/__Common/__unity[2]/Dlg_Alert.h | 52f953de045852853820fddba525420260ea9122 | [] | no_license | elysionlab/client | 8c0923df53069510bb0557241cee6bc7ed380806 | f67bd232e3eaa859f8b594748d9a3ad306e22c34 | refs/heads/master | 2022-04-16T18:17:33.976968 | 2020-04-06T05:32:59 | 2020-04-06T05:32:59 | 253,389,619 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 582 | h | Dlg_Alert.h | #pragma once
#include "SkinDialog.h"
#include "afxwin.h"
class Dlg_Alert : public CSkinDialog
{
public:
Dlg_Alert(CWnd* pParent = NULL);
virtual ~Dlg_Alert();
enum { IDD = IDD_DIALOG_NOTICE };
protected:
virtual void DoDataExchange(CDataExchange* pDX);
virtual BOOL OnInitDialog();
afx_msg HBRUSH OnCtlC... |
af2a2379a5fe0063482400ec37a21912ab095c93 | 304ed86e6506de1ff8b1381725179f7449bdd38f | /libs/medicine.cpp | 7791a527ff55b5465c3fc0a916b7f25dc821ee21 | [] | no_license | vitorassis/medicamentosEDI | b7bd847a547c9acfdfdcfccae7e1643787566373 | f9eed736f81bdb9c38bc84452e3e59f9d1bfb0a6 | refs/heads/master | 2022-11-05T23:46:11.273759 | 2020-06-23T22:29:14 | 2020-06-23T22:29:14 | 269,238,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,012 | cpp | medicine.cpp | #include "medicine.h"
medicineDescriptor createMedicineDescriptor(){
medicineDescriptor medicines;
medicines.start = medicines.current = NULL;
medicines.quantity = 0;
return medicines;
}
medicine *createMedicine(char name[], char last_buy[]){
medicine *_medicine = new medicine;
strcpy(_medic... |
3b577d79c3fa4073e1f51daf41ad6330b99c0078 | 4acc67f4af1c26580b7540b36259ddb421c087bb | /GamePlay.cpp | eeba5856f67837c5c86133c9eca4e968fd4d13ed | [] | no_license | EadmondDai/Game-230-Pong | b040a8f97599d3f982f8a4a7978917b36d11e320 | b4c99231b1b23e20e170675e629f6e9b2becb56d | refs/heads/master | 2021-04-30T22:23:07.127890 | 2017-01-23T22:17:54 | 2017-01-23T22:17:54 | 71,685,488 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,155 | cpp | GamePlay.cpp | #include "GamePlay.h"
using namespace std;
int GamePlay::PlayGame()
{
float deltaTime = clock.restart().asSeconds();
if (Keyboard::isKeyPressed(Keyboard::W))
{
MyController.MovePad(0, -deltaTime * PadSpeed, 0);
}
if (Keyboard::isKeyPressed(Keyboard::S))
{
MyController.MovePad(0, deltaTime * PadSpeed, 0);... |
184b62ff4bd038f97c8c7e5724ab1ddcc2e4a5e4 | d7bc95af84182516ebbbc56de77942ea7970a0df | /program/client/client_connection_handler.h | 4badc8637ea49394b03db3c2af8d7b024267a40f | [] | no_license | mardrey/Eda031 | e74f8137d2f90b75df893ead44f98c7728367dc9 | c5511eaf938d7e67b73ba20c959d9081bf22ad0b | refs/heads/master | 2016-09-05T15:20:25.615929 | 2013-04-12T14:34:16 | 2013-04-12T14:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 702 | h | client_connection_handler.h | #include <string>
#include "connection.h"
namespace client{
class client_connection_handler{
public:
client_connection_handler(client_server::Connection* connection);
~client_connection_handler();
bool send_command_list_ng();
bool send_command_create_ng(std::string ng_name);
bool send_command_delete_ng(un... |
34cf19a0e3cdba82c3e1f7aaf6449b501569f051 | e094cc953e5e24e475fbca428f7722bf6bd8cd08 | /project/project/msviewer/msviewer/include/msviewer/rbviewwvectors.hpp | 27e5cef9c4325c264960e73359f14fb561317904 | [] | no_license | potaopereira/mechanical_sys_simulator_2d | 4e4ff50be47ccc95e084a258c7469293c9edf496 | bb530fcf9d51e06de7d076be0c275193e2f86415 | refs/heads/master | 2023-07-26T23:53:47.109525 | 2021-09-14T19:12:55 | 2021-09-14T19:12:55 | 406,483,063 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,207 | hpp | rbviewwvectors.hpp | #pragma once
// RBView
#include "msviewer/rbview.hpp"
#include <QGraphicsItem>
#include <QGraphicsLineItem>
#include <QColor>
#include <QPolygonF>
#include <QPainterPath>
#include <QGraphicsPathItem>
#include <QVector>
class PointPath:
public QGraphicsPathItem
{
public:
typedef Eigen::Matrix<double, 2, 1> vec... |
b6aa3a42efb3901de028093355bedf319f0daf26 | 407f8d7d90181ca74fb372c0aca96052aa3ceb42 | /cgi/eva.cpp | d7fa8a73e17a05b9b16d0deb13934919888c340b | [] | no_license | liukai/Evented_Server | 7a17d18bf18cc407a39c99d4fb3ee405844b3477 | 5583515e90f1772886a8f01e784a91a585851583 | refs/heads/master | 2020-05-18T02:10:07.102625 | 2012-02-13T15:06:17 | 2012-02-13T15:06:17 | 3,096,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 49,392 | cpp | eva.cpp | #include "evhttp_server.h"
#include "evhttp_server.h"
#include "evhttp_server.h"
#include "evhttp_server.h"
#include "evhttp_server.h"
#include "evhttp_server.h"
#include "evhttp_server.h"
#include "evhttp_server.h"
#include "evhttp_server.h"
#include "evhttp_server.h"
#include "evhttp_server.h"
#include "evhttp_server... |
2d3b0944efb4182113c29a858b1105160c6791b3 | babe98e6fcc653668da56dd3c323a1324672570f | /Http/ShareMutex.hpp | 4e25f5124daaa950ab551ced156898c2b2bc0971 | [
"Apache-2.0"
] | permissive | Txhua/IOLoop | b07626c8956ec118f482d2bbc584bc9cd392e36c | 710fb914ac7fd65a874e2866f0f38ab38b7858f3 | refs/heads/main | 2023-03-02T00:34:54.472506 | 2021-02-07T14:56:17 | 2021-02-07T14:56:17 | 315,976,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 924 | hpp | ShareMutex.hpp | #ifndef _IOEVENT_LOCKABLE_H
#define _IOEVENT_LOCKABLE_H
#include <boost/core/ignore_unused.hpp>
#include <shared_mutex>
#include <mutex>
#define HTTP_SHARED_MUTEX_ENTER_TO_READ(shared_mutex) \
auto const& dummy = ShareMutex::enter_to_read(shared_mutex); \
boost::ignore_unused(dummy);
#define HTTP_SHARED_MUTEX_ENTE... |
a09bbe703151c05e159d25ae045596ac89817e9f | 0a75138cdd05129681cf5ceaa218f884c0dc0c43 | /C++PrimerPlus-Answer/lab/queue.h | 4a5e579dc9d6bb3ee01bb5fb1ec8c2a6cd7ec829 | [] | no_license | baochuquan/Messy-Up | dbe00abed25917ffddb2de5e5c4de46687549b5f | 3b9f57d66748d865c4549ba00ad37f21a97f414a | refs/heads/master | 2021-10-26T04:44:56.928097 | 2019-04-10T15:58:48 | 2019-04-10T15:58:48 | 109,563,521 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 755 | h | queue.h | #ifndef QUEUE_H_
#define QUEUE_H_
class Customer
{
private:
long arrive; //arrival time for customer
int processtime; //processing time for customer
public:
Customer(){ arrive = processtime = 0; }
void set (long when);
long when() const { return arrive; }
int ptime() const { return processtime; }
};
typedef Cus... |
34a9921a794b554a1ab53603b2101043ee6869e0 | 6f37a724ab7397a1198c55ecbb4db58f15f6fed9 | /CPPPlugin/LoremIpsum/textprocessor.h | a1ad0d0dfde1f0796eb7cc86a511c4cea463d13f | [
"BSD-2-Clause"
] | permissive | Tsukihime/Easy-Text-Hooker | 73f54554b5fd94a81d545920e0b4643f000d4150 | 18196bf39083f284f40fc08a56a8140674545c8a | refs/heads/master | 2020-12-10T15:06:59.255032 | 2016-08-15T14:19:23 | 2016-08-15T14:19:23 | 24,567,059 | 12 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 1,040 | h | textprocessor.h | #ifndef TEXTPROCESSOR_H
#define TEXTPROCESSOR_H
#include "PluginAPI/PluginAPI_TLB.h"
#include "interfacedobject.h"
#include <QTimer>
#include "settingsform.h"
class TextProcessor : public ITextProcessor, InterfacedObject
{
public:
TextProcessor(IApplicationCore* ApplicationCore);
~TextProcessor();
void ... |
5fe22594764abcb6e8aae710490208185411021e | 3ea34c23f90326359c3c64281680a7ee237ff0f2 | /Data/3866/H | d21e260a27378e7c026e7db33bdaf516033763e6 | [] | no_license | lcnbr/EM | c6b90c02ba08422809e94882917c87ae81b501a2 | aec19cb6e07e6659786e92db0ccbe4f3d0b6c317 | refs/heads/master | 2023-04-28T20:25:40.955518 | 2020-02-16T23:14:07 | 2020-02-16T23:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 92,430 | H | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source Cstd::filesystem::create_directory();FD |
| \\ / O peration | Version: 4... | |
f2d9cd62ba81016d60c47c555e9c11c2ae96881a | 940ee27f9f09916381dde1aa2d982d0530f7cdae | /Simplify Directory Path.cpp | a3e603a9e16459dbde09a74c2494c66b5846b7f9 | [] | no_license | harshmalik/Code-Practice | 51c3ca44eb8a52cb2472a5e44ca5d85e97992e27 | d09659b01d8a87da8a7948e262c8f66f6fcc7b28 | refs/heads/master | 2021-01-12T09:32:41.149927 | 2017-01-04T18:37:34 | 2017-01-04T18:37:34 | 76,190,869 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,315 | cpp | Simplify Directory Path.cpp | string strreverse(string s)
{
string result;
string str;
for(int i=0;i<s.length();i++)
{
if(s[i]!='/')
str+=s[i];
else{
result.insert(0,str);
str="";
result.insert(0,"/");
}
}
return result;
}
string Solution::simp... |
75365b4a5f9275a49303a61555fb42bb0b44f298 | 0a2f6dbe31df371288a89da206eea7ab1fed6588 | /嵌套正方形.cpp | 41111b805966608aa6c317a3acc19423ef6ef32d | [] | no_license | william4s/Competitive-Programming-code | af86a2bde7479fa0245f7559b0152acce1484c17 | fbbc96f8096c116dd6f3cc1a55b816cb484dd214 | refs/heads/main | 2023-07-15T01:53:38.036661 | 2023-07-03T03:01:35 | 2023-07-03T03:01:35 | 319,254,285 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 434 | cpp | 嵌套正方形.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int w,i,j,k;
char s[220][220];
cin>>w;
for (i=w;i>=2;i=i-4)
{
for (j=1+(w-i)/2;j<=(w-i)/2+i;j++)//ÁÐ
{
s[1+(w-i)/2][j]='*';
s[(w-i)/2+i][j]='*';
}
for (k=1+(w-i)/2;k<=(w-i)/2+i;k++)//ÐÐ
{
s[k][1+(w-i)/2]='*';
s[k][(w-i)/2+i]... |
b9c905e09907ae5fa6382d2434a2dac3d878764e | 0229895a9d5037714138cea93bf85afcac8e1207 | /src/ArduinoUAVCAN.h | cb099dd5dae7d26b8451361e202fd9bd66d68336 | [
"MIT"
] | permissive | joelsa/107-Arduino-UAVCAN | 975517a7733fd5cd8110c81a33c13f17eaccf448 | 532d3a23a67a9b68552ac1ed3f10c0cc4929dd52 | refs/heads/master | 2023-09-03T20:40:44.349141 | 2021-09-27T07:59:35 | 2021-09-27T07:59:35 | 405,669,597 | 0 | 0 | MIT | 2021-09-12T14:50:26 | 2021-09-12T14:50:26 | null | UTF-8 | C++ | false | false | 3,956 | h | ArduinoUAVCAN.h | /**
* This software is distributed under the terms of the MIT License.
* Copyright (c) 2020 LXRobotics.
* Author: Alexander Entinger <alexander.entinger@lxrobotics.com>
* Contributors: https://github.com/107-systems/107-Arduino-UAVCAN/graphs/contributors.
*/
#ifndef ARDUINO_UAVCAN_H_
#define ARDUINO_UAVCAN_H_
/*... |
204c124774bc62f97cef20a4ed686db9453f26dc | 41e060be180f064ae67aff26d39c0bc0118171a5 | /OgreNext-Basic/main.cpp | 3c29c77909fba342f1a9298569c7336577c48fcb | [] | no_license | fengyhack/LearningOGRE | bad6807d1b65f4acfe124fc64f6ff70c703b85d6 | 51ba36549216a4d1dea897ae645734af04ec2a37 | refs/heads/master | 2022-04-13T23:39:15.971342 | 2020-03-15T02:08:58 | 2020-03-15T02:08:58 | 32,518,269 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,387 | cpp | main.cpp | #include "OgreArchiveManager.h"
#include "OgreCamera.h"
#include "OgreConfigFile.h"
#include "OgreRoot.h"
#include "OgreWindow.h"
#include "OgreHlmsManager.h"
#include "OgreHlmsPbs.h"
#include "OgreHlmsUnlit.h"
#include "Compositor/OgreCompositorManager2.h"
#include "OgreWindowEventUtilities.h"
#pragma comment(lib,... |
affb6a51738e5b124bd8225231bb46a027cdcf2c | 1556270cb4656477fb2f02c68d90f2a2c032aa5c | /102-Binary-Tree-Level-Order-Traversal/solution.cpp | 13ae82a6747bddca96e8972ca905dec75bafecaf | [] | no_license | ajlichuan/For_leetcode | 64835c402437a86870771a037d6d85c5a894b5e6 | 68c172138a4e32b00a7ba24035163eac85d54f0b | refs/heads/master | 2020-04-06T05:03:15.180847 | 2016-09-27T09:57:43 | 2016-09-27T09:57:43 | 57,279,726 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,023 | cpp | solution.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<vector<int>> levelOrder(TreeNode* root) {
vector<vector<int>> res;
... |
aa18671b46a507d516cf8d9ab870c15ebb513a74 | 72852e07bb30adbee608275d6048b2121a5b9d82 | /algorithms/problem_1278/solution.cpp | b08071cb458534e8baa01bc2b4ea975b8e478035 | [] | no_license | drlongle/leetcode | e172ae29ea63911ccc3afb815f6dbff041609939 | 8e61ddf06fb3a4fb4a4e3d8466f3367ee1f27e13 | refs/heads/master | 2023-01-08T16:26:12.370098 | 2023-01-03T09:08:24 | 2023-01-03T09:08:24 | 81,335,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,451 | cpp | solution.cpp | /*
1278. Palindrome Partitioning III
Hard
You are given a string s containing lowercase letters and an integer k. You need to :
First, change some characters of s to other lowercase English letters.
Then divide s into k non-empty disjoint substrings such that each substring is palindrome.
Return the minimal number of... |
8ae0901a59aaf5719879efb57e5856461d384ee6 | b2f2c4942f535285a28cfaa2127abc4a33a54c4a | /syzygy/pdbfind/pdbfind_app.cc | 133e02f74345695f30a596705f898bd29787f670 | [
"Apache-2.0"
] | permissive | pombreda/syzygy | 4f71e27e54182e26ee3f6605be62d60210bb5820 | 7bac6936c0c28872bfabc10a1108e0157ff65d4a | refs/heads/master | 2021-01-25T07:08:04.019036 | 2015-03-12T18:29:28 | 2015-03-12T18:29:28 | 32,210,396 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,582 | cc | pdbfind_app.cc | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
95a6163635744e3221ce76c3ee2af656b3a873c7 | 35a0a383b079978992647555645ac30e52ebec3f | /unittests/AST/CommentLexer.cpp | 1883050658a5f24237d8ad797355d8f626d85f4e | [
"Apache-2.0",
"LLVM-exception",
"NCSA"
] | permissive | Codeon-GmbH/mulle-clang | f050d6d8fb64689a1e4b039c4a6513823de9b430 | 214e526a2b6afeb9508cac5f88c5a4c28e98982f | refs/heads/mulle_objclang_100 | 2021-07-18T07:45:29.083064 | 2021-02-16T17:21:51 | 2021-02-16T17:21:51 | 72,544,381 | 29 | 5 | Apache-2.0 | 2020-04-30T11:36:08 | 2016-11-01T14:32:02 | C++ | UTF-8 | C++ | false | false | 52,369 | cpp | CommentLexer.cpp | //===- unittests/AST/CommentLexer.cpp ------ Comment lexer tests ----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
22de0825e3904fd6e962e15a1a3ba3d44bf528c6 | 2098dcc83076fb0dc606bcdabbe2f35c5b950e8b | /algorithm/offer/isNumeric/main - 副本.cpp | 9e2a7456dfed3c7a376f66109222d79f8b5cd016 | [] | no_license | MosterAndMonk/temporary | 525202d56f3c2ae1213380d17a1072a4f29348a8 | 4b09827e8c60cc840a122ee127d55eaf6412c93c | refs/heads/master | 2020-03-18T22:42:45.341926 | 2018-05-29T23:07:28 | 2018-05-29T23:07:28 | 135,360,464 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,845 | cpp | main - 副本.cpp | #include <iostream>
using namespace std;
class Solution {
public:
bool isNumeric(char* str)
{
if(str == NULL){
return false;
}
//cout << str << endl;
int e_n = 0, d_n = 0;
int e_pos = 100, d_pos = -1;
for(int i = 0; str[i] != '\0'; i++){
/... |
f1e77a1b19512faec4770e3bde90cbd8011d9b05 | 3ccf2b7adfe29b34f5a469b4780c0620843d262c | /CashMachine.hpp | 38cc0d8f244c45cd6938eee14ac80182bf428451 | [] | no_license | jakjan95/cash-machine | e5e9ce3365baa6829df964ba9e7ce2fed50fc6aa | 26b4309196ddb87cef7ffd91eab0ce19d01a22ff | refs/heads/master | 2022-11-21T11:38:21.926743 | 2020-07-28T13:17:54 | 2020-07-28T13:17:54 | 283,217,800 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,211 | hpp | CashMachine.hpp | #pragma once
#include <iostream>
#include <memory>
#include "Account.hpp"
class CashMachine {
public:
~CashMachine() = default;
CashMachine(std::unique_ptr<Account> user, size_t cashAmount)
: user_{std::move(user)}, cashAmount_{cashAmount} {}
enum class Action {
Exit = 0,
GetBalan... |
644b9a648d4ce65b3cba09985437862efcbf23c2 | c6c8bf3525698a8184fde1b5439a24744970512d | /config/src/vespa/config/frt/frtconnection.cpp | 702cc06d29d6e4d89f13db01f77b5db0e0648542 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | socratesone/vespa | 0df03ece09de001942232300de23f8db13a38e45 | 7ee52b93cbae2695cf916c9b2941361b35b973f1 | refs/heads/master | 2023-03-16T23:35:10.953427 | 2021-03-17T02:41:56 | 2021-03-17T02:41:56 | 305,143,840 | 1 | 0 | Apache-2.0 | 2021-03-17T02:41:56 | 2020-10-18T16:18:57 | null | UTF-8 | C++ | false | false | 3,565 | cpp | frtconnection.cpp | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "frtconnection.h"
#include <vespa/config/common/errorcode.h>
#include <vespa/fnet/frt/supervisor.h>
#include <vespa/fnet/frt/target.h>
#include <vespa/fnet/frt/rpcrequest.h>
#include <vespa/l... |
d6bdbf54362bc990b0c45c3e4530fa3d689e2bea | f20522415b3b9856b41ad5a622f3f8ee72b5e905 | /Plugins/BlueprintToDoc/Source/BlueprintToDocEditor/Private/BlueprintToDocCommands.cpp | 091d348db4cd5d32906945c8c7a0bf205c8ca820 | [
"MIT"
] | permissive | kongbawa/BlueprintToDoc | 859ad6e411b1b580e603c97862b56310c5149f73 | b6a8112cb7d2ee6252a55e220279f3524347fa59 | refs/heads/master | 2022-01-16T16:10:49.614006 | 2018-12-16T06:00:23 | 2018-12-16T06:00:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370 | cpp | BlueprintToDocCommands.cpp | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "BlueprintToDocCommands.h"
#define LOCTEXT_NAMESPACE "FBlueprintToDocModule"
void FBlueprintToDocCommands::RegisterCommands()
{
UI_COMMAND(PluginAction, "BlueprintToDoc", "Execute BlueprintToDoc action", EUserInterfaceActionType::Button, ... |
0b3db09bd1659344c9a38d65aa68d88fe795457d | 9ceae4308b5e8482ffa7d1f469cf45c830da1002 | /Rope/Integrator.cpp | c865abac2edd2bb1e5def1f83ac7010411971880 | [] | no_license | tomrosling/Rope | 1c1c1d7574c3b75a84c5c9bbfa8f72ce7de4f732 | 0b2f78af3fbdb4f50336e62ec7c66c79f666f692 | refs/heads/master | 2021-01-20T21:16:01.940651 | 2016-06-13T21:23:41 | 2016-06-13T21:23:41 | 61,058,581 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 360 | cpp | Integrator.cpp | #include "Integrator.h"
#include "Rope.h"
Integrator::Integrator()
: m_timeAccumulator(0.f)
{
}
void Integrator::Integrate(Rope& rope, float dt)
{
static const float timeStep = 1.f / 60.f;
m_timeAccumulator += dt;
while (m_timeAccumulator >= timeStep)
{
m_timeAccumulator -= timeStep;
rope.IntegratePosVel(tim... |
83ab1f2058767329cab6bedb7db8ffff19ca498a | 03a47d14fc4c8ee461ba139fd22d2be589984ef0 | /source/parse_print.cpp | 79cb6e09a29794046b490c535573f16fdae91e2d | [
"Zlib"
] | permissive | brittonsmith/c10.00-b | b6cd0058e1f37cf6e53863206f7c2bd73d5970a7 | e34b9a91941aab6eb2e5d4a6c76fa2d479f0abc7 | refs/heads/master | 2020-09-18T20:55:25.193631 | 2019-12-04T11:02:36 | 2019-12-04T11:02:36 | 224,183,983 | 0 | 1 | NOASSERTION | 2019-12-04T11:02:38 | 2019-11-26T12:10:06 | C++ | UTF-8 | C++ | false | false | 20,779 | cpp | parse_print.cpp | /* This file is part of Cloudy and is copyright (C)1978-2010 by Gary J. Ferland and
* others. For conditions of distribution and use see copyright notice in license.txt */
/*ParsePrint parse the print command */
/*prt_constants print physical constants */
/* PrtMacros - print macros in cddefines.h and their status -... |
fea7d824e04740335b065e7c72548e0003fbe179 | fb3d2b4c296cd17077e5c0ad06de4e62e57780a1 | /Assignment5/BinaryTree.cpp | aabbdb050a43e66032a0840a29eac5258232e022 | [] | no_license | coolbeans201/DataStructuresAndAlgorithms | 931df580b209c02ee597cbf24d9e212e9026aa6a | 200200864bb5160c7a75b9e4e9e2ddca76d9a273 | refs/heads/master | 2020-02-26T17:40:32.935729 | 2015-03-12T20:38:04 | 2015-03-12T20:38:04 | 18,035,678 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 167 | cpp | BinaryTree.cpp | //Name: Matthew Weingarten
//Gatorlink ID: coolbeans201
//UFID: 8189-1861
//Discussion Section: 8147
#include "BinaryTree.h"
#include <iostream>
using namespace std;
|
2a7c22f135de1858f2da278aec1cedc69f531f2b | 401e2729d36c466f0306a60cebc310ab34321180 | /src/GraphGeneratorConsole.hpp | 78839f6f6525770f9f1dc3a6270cc5f775578e5a | [] | no_license | hlscalon/TrabalhoTeoriaGrafos | 073f83cf80ca98279280dbf6c315449dcf70316c | 2b19c08276198ee45ad4de823d7e490354117cb7 | refs/heads/master | 2021-06-09T03:49:52.219127 | 2016-12-11T22:16:39 | 2016-12-11T22:16:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 241 | hpp | GraphGeneratorConsole.hpp | #ifndef GRAPH_GENERATOR_CONSOLE_HPP
#define GRAPH_GENERATOR_CONSOLE_HPP
#include "GraphGenerator.hpp"
class GraphGeneratorConsole : public GraphGenerator
{
virtual void read();
public:
GraphGeneratorConsole() { this->read(); }
};
#endif |
85814c3d13b64d5a48c7c5f28bfa0453b5617b34 | 6ffcc2e7335d1aa2ec369b1ff3949b9b0b0c8d66 | /Enums.hpp | f7aaeeff79d0557ff9f31c624df9453e42de7a56 | [
"MIT"
] | permissive | mozdren/ShowCaseCpp | ff6cce0249988d08fa5e4a6ea086cc2db3aebd9f | 91c2c349e50873d474920836ec783a1320c592a0 | refs/heads/master | 2020-12-30T15:29:21.284178 | 2017-05-15T20:57:49 | 2017-05-15T20:57:49 | 91,142,920 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 575 | hpp | Enums.hpp | #pragma once
namespace Services
{
/// Represents possible result types
enum ResultType
{
/// Represents a result of an operation that was completely successful.
Success,
/// Represents a result of an operation that was successful with a small warning which doesnt influence the result dat... |
b2fbe45138c0a2d26b38057fe328a19469531c78 | e454907e30f827706cf14e899ce1dd08f6ac55cc | /utek/ChargingStation.cpp | 269e519ddba18e49c523737ac62e2bce59994b8f | [] | no_license | sally-chen/UTEK-Programming-Competition | d1b4688c7b09cde19e4cf1cd1e3629788f2c83aa | db278fb749188c3e8aef037a2b642a0258c4bb35 | refs/heads/master | 2021-06-10T10:37:44.662541 | 2017-01-21T22:00:27 | 2017-01-21T22:00:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 961 | cpp | ChargingStation.cpp | #include "ChargingStation.h"
ChargingStation::ChargingStation()
{
//nothing here
}
ChargingStation::ChargingStation(Pair _p, string _name, string _city, int _id)
{
p = _p;
name = _name;
city = _city;
id = _id;
}
ChargingStation::~ChargingStation()
{
//nothing here
}
Pair ... |
87b856039d1602c02cf593df1483f640839d836c | e71d40ad4e76272fca4494c6bcc818050d221090 | /Blink/Source/WebKit/chromium/src/WebHelperPluginImpl.cpp | 6efd7910a9673d8e6995e13f85b55d9f4d12136e | [
"BSD-2-Clause"
] | permissive | yuanyan/know-your-chrome | e038e49c160bdf46b28241427e99bf2816fac022 | 18cace725261122f6903c98bfdcbfa0b370138c3 | refs/heads/master | 2022-12-29T18:31:42.046729 | 2013-12-18T11:45:13 | 2013-12-18T11:45:13 | 9,907,874 | 7 | 7 | null | 2022-12-18T00:00:55 | 2013-05-07T08:55:26 | C++ | UTF-8 | C++ | false | false | 8,543 | cpp | WebHelperPluginImpl.cpp | /*
* Copyright (C) 2012 Google Inc. 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
* notice, this list of conditio... |
dcb2cfb361a732cb0235e530cb9f314893105c21 | bd98eee921f862c94d2e8b49c904bfae0e16f43f | /CTDL/tree/tree/LamLai/tree.h | f02d65d5ef3ca0669aa920ac3fd8a673d942f092 | [] | no_license | sonhip/CTDL | a8058d1745bae39b39af1042d1de3c433b3462b6 | c1e0154292a32d08f138dad42771deb95e5ed5ca | refs/heads/master | 2020-03-31T13:48:14.742708 | 2018-10-09T14:48:01 | 2018-10-09T14:48:01 | 152,269,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,522 | h | tree.h | #ifndef tree_h
#define tree_h
#include <iostream>
#include "node.h"
using namespace std;
template <class T>
class Tree
{
private:
Node<T> *root;
void AddChild(T value, Node<T> *root)
{
if(root->value>value)
{
if(root->l==0)
{
Node<T> *n=new Node<T>;
n->value=value;
n->l=0;
n->r=0;
root-... |
4ed4fdd39ada6b5573f35238e811771ea0ec97f7 | 190ce15b9aa839815e303ffdd5321b74bed567c8 | /mid darul marif chiper transposisi2.cpp | 0aaad522fb5937e224d25297286557666c007243 | [] | no_license | darulmarif17/chiper-Transposisi | 726d3583abf34a992b48e4b4f42e5322354a6722 | 782d8e95ecc6f78eed43f63a7fabf550aa6c0f0b | refs/heads/master | 2022-11-27T21:27:27.167810 | 2020-08-07T14:45:29 | 2020-08-07T14:45:29 | 285,850,861 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 971 | cpp | mid darul marif chiper transposisi2.cpp | #include <iostream>
#include<cstdio>
using namespace std;
void revstr1(char str[],int l,int h ) ;
void partition(char str[],int l,int h);
int strlen(char str[]);
void revstr1(char str[],int l,int h){
char c;
int k=0;
for(int i=l;i<(h+l)/2;i++){
c=str[i];
str[i]=str[h-k-1];
... |
8e1ce77ce071a93bda01d8930de5624de3539e39 | 0f0add5e2c721c7a3381de612093a41bae0c190d | /Study/NhapMonGame/Tham khao/Rockman_ver4/Rockman_ver4/Sprite.h | efe49a92bbfa12a956e32281fc5bcc2ed8471396 | [] | no_license | phanybien/University | 9d5a8b0a8598823b6612e07980b820469223f7e1 | 409496c8c9feca3d8420d93d6a5d91ac583cb71a | refs/heads/master | 2023-06-11T17:39:13.619405 | 2021-01-08T06:01:58 | 2021-01-08T06:01:58 | 80,742,472 | 1 | 4 | null | 2023-05-31T18:17:29 | 2017-02-02T16:11:05 | C++ | UTF-8 | C++ | false | false | 951 | h | Sprite.h | #pragma once
#ifndef __CSPRITE_H__
#define __CSPRITE_H__
#include "CGlobal.h"
#include "Texture.h"
#include "Include.h"
class CSprite
{
public:
CSprite();
~CSprite();
//ve texture tai vi tri mac dinh la chinh giua
void draw(CTexture* image, RECT *RectRS, D3DXVECTOR3 pos, D3DCOLOR transcolor = 0xFFFFFFFF, bool isCe... |
241cb04ff7fe0ece89e557a50ac3124cbc9f9f64 | 321af71e5bf2405bed33c45f440fea1d8fabb926 | /SCIBIP (Sistema Embebido en Arduino)/SCIBIP/Estado.h | be9f3f5d8f47ba77944e1a1c11869d3362833de6 | [] | no_license | GabrielDehner/prototipo-bomba-insulina | 0ad818782c8dde49f5277bf193e611eee93a80e8 | c6feed7172c10012d489ab6d25d08f52ad59ecd1 | refs/heads/master | 2020-08-06T14:20:52.878245 | 2019-10-05T13:50:47 | 2019-10-05T13:50:47 | 213,004,247 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 468 | h | Estado.h | class Estado{
private:
String nombre_estado= "EJECUTANDO";
public:
Estado(){}
void setValues(){
nombre_estado= "EJECUTANDO";
}
void estadoAlerta(){
nombre_estado = "ALERTA";
}
void estadoError... |
399423a583329f76334dd7ba645de2fea5ec4f2b | 8f8ede2d240cafa0b17f135c553a2ae64e6ea1bd | /voice/voicerecog/test/voicerecoglib/dialogmanager/src/action/VrUnit/VR_RadioInfoAction_VrUnit_Test.cpp | 9de45272a1b75209f7f3ee3673851bb8741da23b | [] | no_license | hyCpp/MyDemo | 176d86b720fbc9619807c2497fadb781f5dc4295 | 150c77ebe54fe7b7f60063e6488319d804a07d03 | refs/heads/master | 2020-03-18T05:33:37.338743 | 2019-03-10T04:21:01 | 2019-03-10T04:21:01 | 134,348,743 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,463 | cpp | VR_RadioInfoAction_VrUnit_Test.cpp | /**
* Copyright @ 2015 - 2016 Suntec Software(Shanghai) Co., Ltd.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are NOT permitted except as agreed by
* Suntec Software(Shanghai) Co., Ltd.
*
* Unless required by applicable law or agreed to in writin... |
fc5ebc9b886fab1c1907607ca913764ae1c08ab5 | 987e57b9af58db3fd1a6176e8dd131fcf37d68be | /src/Outputs/Outputs/MtdOutput.hpp | fc339c59e45df0eaf9cdb0b8f150a5c964ff8c8e | [] | no_license | olivierpierre/openflash | a42ae04d3922d84f496e14708a8290207ec5b1e6 | a77e55d79751b3e70b1764c0353f6cd152e8c763 | refs/heads/master | 2020-05-04T02:55:43.292401 | 2015-12-23T18:07:54 | 2015-12-23T18:07:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 562 | hpp | MtdOutput.hpp | #ifndef MTD_OUTPUT_HPP
#define MTD_OUTPUT_HPP
#include "../Output.hpp"
class MtdOutput : public Output
{
public:
MtdOutput(string output_file, Simulation &simu, MtdStats *mtd_stats) :
Output(output_file, simu), _mtd_stats(mtd_stats) {};
MtdOutput(Simulation &simu, MtdStats *mtd_stats) :
Output(simu), _mtd_s... |
317645792af440a746a277210d9675382cb9f2ae | a56e4802caf739c3c296787b8728066fdb04ac23 | /compare 2 linked lists.cpp | 4f8d4cae94bdc1f55ddffca068e56bc3573e98f9 | [] | no_license | pradyumnac26/Data-Structures- | 0a7e4bb285a1dd57ae972c923a3ded7c7b21b02f | ef9ce0cedc97a1e6ad3d37ca23fffb17c3e2f872 | refs/heads/master | 2022-12-06T19:07:34.442701 | 2020-08-16T18:53:13 | 2020-08-16T18:53:13 | 287,997,614 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 307 | cpp | compare 2 linked lists.cpp | bool compare_lists(SinglyLinkedListNode* head1, SinglyLinkedListNode* head2) {
if (head1 == NULL && head2 == NULL) {
return 1;
} else if (head1 == NULL || head2 == NULL) {
return 0;
}
if (head1->data == head2->data) {
return compare_lists(head1->next, head2->next);
} else {
return 0;
}
}
|
9e24786b3ee978ed187eeb56f79c4ca798ea63fd | a2df4c6f579974d78f3baa58cfbb3db22d98af0d | /Tiles.h | 7baf50ee66fdeeb44a910474c93e32768d65e3d4 | [] | no_license | panda-game/AmericanMahjong | 7cbb875c5a6c10021b9cb5f0c7d48ce0059ea115 | 0a9a651161b6204243a4f366c653e826878a5eee | refs/heads/master | 2021-01-21T02:27:01.188036 | 2016-08-09T17:53:11 | 2016-08-09T17:53:11 | 65,334,762 | 0 | 0 | null | 2018-08-28T07:59:54 | 2016-08-09T23:21:46 | C++ | UTF-8 | C++ | false | false | 493 | h | Tiles.h | #ifndef __Amerian_Majong__Tiles__
#define __Amerian_Majong__Tiles__
#include <string>
using namespace std;
class Tiles
{
string type; // 牌の種類
int index; // 牌の索引
int tileData; // 牌の数字
Tiles *next;
Tiles *prev;
public:
Tiles();
Tiles(int index, string tileType, int tileData);
frien... |
1ba106c2a2ec88a5a87aa65b45db4a456a7f4e3e | c20c4812ac0164c8ec2434e1126c1fdb1a2cc09e | /Source/Source/Tools/SceneEditor/KScneDataFlowEditorFrameWnd.cpp | c14691507ae55e21845d2482178d71ce1fbcb027 | [
"MIT"
] | permissive | uvbs/FullSource | f8673b02e10c8c749b9b88bf18018a69158e8cb9 | 07601c5f18d243fb478735b7bdcb8955598b9a90 | refs/heads/master | 2020-03-24T03:11:13.148940 | 2018-07-25T18:30:25 | 2018-07-25T18:30:25 | 142,408,505 | 2 | 2 | null | 2018-07-26T07:58:12 | 2018-07-26T07:58:12 | null | UTF-8 | C++ | false | false | 1,598 | cpp | KScneDataFlowEditorFrameWnd.cpp | // KScneDataFlowEditorFrameWnd.cpp : implementation file
//
#include "stdafx.h"
#include "SceneEditor.h"
#include "KScneDataFlowEditorFrameWnd.h"
#include "KSceneDataFlowEditorPanelView.h"
#include "KSceneDataFlowEditorView.h"
// KScneDataFlowEditorFrameWnd
IMPLEMENT_DYNCREATE(KScneDataFlowEditorFrameWnd, CMDIChildW... |
38ddf05dc98d78e80ff2aeb5f6692a281028e964 | 32880979e4c6ecfb7937c8e697c868899090197e | /mazepath.cpp | d5f9d80b4da926d940fcaeebfe63d09d1fbf24ca | [] | no_license | Gauravkumar050996/Recursion | b1f25498755e316be37c88fd0dc5999af24956f2 | a2d16d0c05b595b49a140f24d8c1f9dc78513dc7 | refs/heads/master | 2022-11-21T10:38:25.384946 | 2020-07-21T18:30:49 | 2020-07-21T18:30:49 | 281,472,336 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,115 | cpp | mazepath.cpp | #include<ios>
#include<iostream>
#include<string>
using namespace std;
int mazepath(int sr, int sc, int er, int ec, string ans, bool visited[3][3])
{
if (sr == er && sc == ec)
{
cout<<ans<< endl;
return 1;
}
visited[sr][sc] = true;
int count = 0;
if (sc + 1 <= ec && !visited[sr][sc + 1])
count += mazepath... |
93f83bfd5ce944f210337c2f6bec9d322851f802 | caf3e2bd89c9392cf215296c5597341b671912d1 | /qwindow.h | f9744d392f305b483ecb53ee6aefe4b7e85030af | [] | no_license | profsha/TouchWM | 1b448d845617f9be0f4a62de2e3df4b6d27ad750 | d13329cefbe66764efc29add6affae54b01a0e35 | refs/heads/master | 2021-03-12T19:41:03.967960 | 2012-08-22T10:13:43 | 2012-08-22T10:13:43 | 5,017,588 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 384 | h | qwindow.h | #ifndef QWINDOW_H
#define QWINDOW_H
#include <QString>
#include <QIcon>
#include <QX11Info>
#include <X11/Xlib.h>
class QWindow
{
public:
QWindow();
QWindow(Window id, int index);
Window id;
QString title,wmname,icname;
QIcon icon;
QRect geometry;
// Panel* currentPanel;
int tabIndex;
... |
4ede76c4266e219c8d0cf07b1cb5b97aba5ecc15 | ecdcaf3635eaf8239cb9e69851c527bfe0db26c1 | /RangeTree/nodetree.h | 49d9843580b284e6ccb49a8e6f0eee1f159b4a89 | [] | no_license | lehi10/RepoEDA | 688b92ab0de22dd7fa55bbf1b01fd1d4c3c8e4a4 | 017ac34548e85cd56915c516955c08648ca1c1df | refs/heads/master | 2021-08-23T02:55:12.138092 | 2017-12-02T18:44:18 | 2017-12-02T18:44:18 | 110,485,581 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 704 | h | nodetree.h | #ifndef NODETREE_H
#define NODETREE_H
#include <vector>
using namespace std;
struct point2D
{
point2D( int x, int y)
{
xy[0]=x;
xy[1]=y;
}
int color=1;
int xy[2];
};
struct nodeLayer
{
nodeLayer(nodeLayer * l, nodeLayer * r , point2D *p):point(p){
child[0]=l;
... |
8e6aed15c4f15db2f9eac8c1838cb9c54305bc0a | c4e83683737699b0c8f2b484b38df2d0044fabe7 | /src/agent/socket/AgentSocketClient.cpp | 38f589164a50ae21b7f0ce335bfc90bcad9acc91 | [
"Apache-2.0"
] | permissive | azdyb/cynara | 9fb33c31df83406eaa206cab792b94863e3465d2 | 3485e13d1de2b4829f79f028842fc62fceed059b | refs/heads/master | 2021-01-22T23:53:10.072222 | 2016-07-26T15:30:03 | 2016-07-26T15:38:38 | 64,233,875 | 0 | 0 | null | 2016-07-26T15:44:44 | 2016-07-26T15:44:44 | null | UTF-8 | C++ | false | false | 2,919 | cpp | AgentSocketClient.cpp | /*
* Copyright (c) 2014-2015 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*... |
f8aa74ec7056726072ff66ef015b9c378ea438a8 | 6eadfad26912702aac9ced41c05aa6aa0888f9db | /Arduino Reg.Biometricos/CambiarClave/CambiarClave.ino | 7152959a9b8e1fa41d9a2ca80e42f02c6e1896ef | [] | no_license | JairMendoza/Proyectos | c3a1163e8d9d9104f3f2b1634a5ec8f09ccd646c | ddc8e6c7cc60e8b04a7260f93936180b2e3354a7 | refs/heads/main | 2023-02-25T03:35:45.884203 | 2021-01-22T03:21:50 | 2021-01-22T03:21:50 | 331,465,807 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,334 | ino | CambiarClave.ino |
// Esta librería ha sido desarrollada para la version de Arduino 1.8.5
// y en caso de encontrarse BUGS en futuras versiones de Arduino
// El soporte lo encontrarán en el Canal de Youtube "Innova Domotics"
// https://www.youtube.com/c/innovadomotics en el vídeo dedicado al
// SENSOR DE HUELLA cuyas actualizacione... |
027ad2baf87af5b7530f36cfd2b736b73f4eff54 | ac152b4be5adc8dbcd8dc2604dedc25776a74be4 | /Data Analyzer/Data-Analyzer/serialport.cpp | 035076c5236c076d5cfa8db98d13aca4f4b87d3a | [] | no_license | electro-bits/Data-Analyzer | 1510ab74c0c5909aa760069b1f2bdb7e337a7693 | a56a067a4b9ffc19513eeb1390da707130375107 | refs/heads/master | 2020-09-27T17:03:46.125610 | 2020-01-01T13:24:37 | 2020-01-01T13:24:37 | 226,564,601 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,880 | cpp | serialport.cpp | #include "serialport.h"
#include <QDebug>
SerialPort::SerialPort(QSerialPort *parent):QSerialPort(parent)
{
}
//TX Address - RX Address - SID - ...DATA... - Checksum
#define TX_ADDR_PART 0
#define RX_ADDR_PART 1
#define SID_PART 2
#define DATA_PART 3
#define CHECKSUM_PART ... |
aa9f7955e59b48e912a191e75a3b1ec76057984e | 60bc4df912b11b88f7ba53e8cb1ab6c96dc28284 | /abstract-factory/factories/concrete/FactoryFarnitureEconom.h | e4c5ad9c77e024651fc05e8afbd1356b724e2d15 | [] | no_license | heyW0rld/Software-engineering | 065bc930cb3e57350dd18e2da596858f1d569065 | 84902854cf5647055f0f2f5728605070be29af36 | refs/heads/main | 2023-04-05T10:40:04.888437 | 2021-04-18T18:32:58 | 2021-04-18T18:32:58 | 359,219,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 729 | h | FactoryFarnitureEconom.h | //
// Created by HW on 21.03.2021.
//
#ifndef LAB1_FACTORYFARNITUREECONOM_H
#define LAB1_FACTORYFARNITUREECONOM_H
#include <memory>
#include "../abstract/FactoryFarniture.h"
#include "../../builders/concrete/BuilderSofaEconom.h"
#include "../../builders/concrete/BuilderChairEconom.h"
class FactoryFarnitureEconom: p... |
eda935c8aa211a88df064370532409dbe094696b | 25d2e23145f4a3302642b8b1f4b95b5f6cb32d6a | /Legacy/622/Final/Almonaster/MapGen/MapFairnessEvaluator.cpp | 63dd4e1f7b2667b0a3de4957c27a6b81798be5bd | [] | no_license | mfeingol/almonaster | 3b167043b29144e96d50e620f03d1015bc74c4a3 | 57caeda258bc4bce60e37f61e122b791767147e7 | refs/heads/master | 2023-01-11T07:57:28.278474 | 2023-01-03T23:45:48 | 2023-01-03T23:53:09 | 223,525,538 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,158 | cpp | MapFairnessEvaluator.cpp | //
// Almonaster.dll: a component of Almonaster
// Copyright (c) 1998 Max Attar Feingold (maf6@cornell.edu)
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of t... |
8a60b46125e8aaa97f49e10197816d8d051503d8 | 6ad84250e82d78af31efdff16d06a2c80c6687da | /src/Views/busstopdetailview.cpp | 03ce23123d9787b30daa9e2d574ae01e6c87ac75 | [] | no_license | tblahagh/ICP_Project | e5a1f52f383d2741ef85da07522d06368e3e2c11 | dcf19e2aa9f6b6313bac054ea5f1f180bb8ed945 | refs/heads/master | 2021-05-25T18:00:45.471726 | 2020-05-16T20:07:43 | 2020-05-16T20:07:43 | 253,858,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,309 | cpp | busstopdetailview.cpp | #include "busstopdetailview.h"
//**************************************************************************
// konstruktory, destruktory
//--------------------------------------------------------------------------
// ---------------------------------------------------------------
// Základní konstruktor
BusStopDetail... |
4da99d8ed0e7237ca7090eee2b2e38518b4ab35a | 1e2c2688150ddcc894d9049fc353029cd75c8d87 | /supporting libraries/pyside/PySide-1.2.4/pyside_build/py3.5-qt4.8.7-64bit-release/pyside/PySide/QtGui/PySide/QtGui/qgraphicsview_wrapper.cpp | 6b52e73754b8c718b0404ff52884bea59a81717d | [] | no_license | tryanaditya/mainmain | f3f9559230a520b69bdafc8bf9e36ebbf14147fa | fc82048e17587af3b56b977bea476a7f2506a7ba | refs/heads/master | 2021-01-11T03:11:00.020758 | 2016-10-16T23:55:05 | 2016-10-16T23:55:05 | 71,084,893 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 299,286 | cpp | qgraphicsview_wrapper.cpp | /*
* This file is part of PySide: Python for Qt
*
* Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
*
* Contact: PySide team <contact@pyside.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2... |
775ea83005c8e336761c8a0e518c3e702c7dc7c1 | c91351addd8469101192fc532ca08e3f64ef8207 | /STL/tuple/tuple2.cpp | 265268b0a73e5e8d9e10ae288ed330e5fc699ae3 | [] | no_license | shrutisonone/usual-coding | 6f80c05f1ee3f218afb98e4803cb34f3098fa32b | 143ce3ef143bebc1a9bfc93c0c256ac5da85d541 | refs/heads/master | 2023-07-04T05:07:02.534460 | 2021-08-03T02:07:47 | 2021-08-03T02:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 499 | cpp | tuple2.cpp | //CPP code to illustrate operators in pair
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
tuple<string, int, int>t1;
tuple<string, int, int>t2 ;
t1=make_tuple("Rajesh",12,23);
t2=make_tuple("Ramman",13,34);
cout << (t1 == t2) << endl;
cout << (t1 != t2) << endl;
c... |
69e1b473bea235bb38d303833d136edbb3171bb1 | 0e1e52b9ec5f57553f503977512792a9f734e357 | /Ex2_NavigationSystemIteration2/Navigation_System_Ex_Ex2/myCode/CPoiDatabase.cpp | 5daf1864c98b1b9519ca23e7a4c080d9d72e26c1 | [] | no_license | viveknath93/NavigationSystem | fe5c625981caee3204d9f8803838e09a88a96e2f | 8284b0d96def1d624d8d22a5f62d9ab8aa046d2a | refs/heads/master | 2022-08-25T02:58:32.966263 | 2020-05-27T15:17:46 | 2020-05-27T15:17:46 | 262,889,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,236 | cpp | CPoiDatabase.cpp | /***************************************************************************
*============= Copyright by Darmstadt University of Applied Sciences =======
****************************************************************************
* Filename : CPOI.CPP
* Author : Viveknath Thulasi
* Descriptio... |
f009fabf0aa078f4c1bd60d0c707d4bbbf0f1ed0 | 73e4b36003461509bb1802fe0ac1bcd243a3d306 | /ContourLine/AcadFuncs/Source/AcadFuncs/Geometry.h | d4f13c2b92e086a00a587530eb9b803fa6fa5930 | [] | no_license | 15831944/ExtensionAutoCAD | 21250df6d535ad769d2bf51cd985bafbc28c0a36 | bee431063db31d0367f770b751b6958a3daf32e6 | refs/heads/master | 2022-02-24T06:00:29.546633 | 2019-08-28T15:20:02 | 2019-08-28T15:20:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 832 | h | Geometry.h | #ifndef _GEOMETRY_H_
#define _GEOMETRY_H_
#include "../acad_header.h"
class GeoFuncs
{
public:
static double GetLengthPolyline(const AcDbObjectId& id);
static double GetLengthPolyline(const AcDbObjectId & id, const AcGePoint3d &vertex1, const AcGePoint3d &vertex2);
static double GetDisToStartOfPolyline(const AcDbO... |
432a1ccedb910939e235c260064fe28b21cb4510 | ee33b4ab65c8840cf37c4acb3037ea66dde12d91 | /curvefs/src/mds/fs_manager.h | 5b20aec6c26d63ca28f8714b577bbceb95860d37 | [
"Apache-2.0"
] | permissive | opencurve/curve | 36339c6377e7ac45ad2558d5cb67417b488094b4 | 6f5c85b1660aeb55d5c08e3d1eb354949ab7567a | refs/heads/master | 2023-08-31T04:52:54.707665 | 2023-08-05T14:04:44 | 2023-08-15T11:46:46 | 276,365,255 | 2,099 | 540 | Apache-2.0 | 2023-09-14T15:33:46 | 2020-07-01T11:57:25 | C++ | UTF-8 | C++ | false | false | 9,220 | h | fs_manager.h | /*
* Copyright (c) 2021 NetEase Inc.
*
* 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... |
b45682185483576656a9a9c3be1c9e4610c0a49c | 25fe109451a57058e9420b0c4b86a76f364633e2 | /Polygon.h | f7361a177ba63eb6bde63151962f8519db71c831 | [] | no_license | dminskiy/2DGraphicsEngine | dcb102351036e0cfb1944414bc67aa38d5d51cd9 | d83e81e5007054a9b40b350be1771c60ae19cf84 | refs/heads/master | 2022-02-04T13:42:49.949003 | 2022-01-20T14:43:58 | 2022-01-20T14:43:58 | 87,806,223 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 840 | h | Polygon.h | /*
* Polygon.h
*
* Created on: 5 Dec 2016
* Author: dm00314
*/
#ifndef POLYGON_H_
#define POLYGON_H_
#include <iostream>
#include <string>
#include "Node.h"
#include <vector>
class BadHeaderException{};
class BadFooterException{};
class BadColourArgumentException{};
class BadNumberOfVertArgumentException{... |
601b98313b25edafb45890bc65885e458a833940 | 531aeb9727ba27a84cbfc29f3e485164f412709e | /Taxi Dispatcher/Dispatcher.cpp | 34e4ae774e8c99286086b4a138b1f9249a430c5d | [
"MIT"
] | permissive | kip-codes/cpp-sandbox | 703fbf49591d385d63d0b26e814a641476148180 | fb32900a1aff6750f5dcdf7d6898e368df6ddd98 | refs/heads/master | 2021-08-22T20:36:08.448791 | 2017-12-01T07:03:13 | 2017-12-01T07:03:13 | 112,705,380 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,303 | cpp | Dispatcher.cpp | #include "Dispatcher.h"
#include "Graph.h"
#include "Taxi.h"
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <queue>
#include <assert.h>
using namespace std;
//FIXME
//CGraph MainMap;
/* Redundant with m_roadmap member of CDispatcher
*/
CDispatcher::CDispatcher(void)
{
for(int... |
c3aad544a5dc314e46f0bdc43e2acb6f011766e6 | 65188b35d74ee9697814c996d5b6df0ceed17052 | /HIS/clinicchargeitem.h | 540e49f80924974fed84659d976d762a6e7c893c | [] | no_license | xuebeibei/HIS | 1eed7e05cbb19d054ea53888ff45f8da6a4b791a | d22782f122dbaafd7a265d1fa2d6ed492f821141 | refs/heads/master | 2016-09-12T20:45:32.864592 | 2016-05-09T09:21:40 | 2016-05-09T09:21:40 | 56,227,562 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,196 | h | clinicchargeitem.h | #ifndef CLINICCHARGEITEM_H
#define CLINICCHARGEITEM_H
#include "stdafx.h"
//-----------------------------------------------------------------------------------------------------------------------------------
// 门诊收费记录类
//--------------------------------------------------------------------------------------------------... |
7943f32bf1a49d58b65d0344121957eb7efb6e5e | 1e146a89aa62efb473bbcf5bd75c7e91d6c2d2fd | /GeneratorTest/TestsContext/GetSelectorTest.h | f6c5bf7e08a06a0201f6eb3f9e736585f5347f61 | [
"MIT"
] | permissive | GerdHirsch/Generator | 7a86647d6bc3dc27d71465714983e17db6fd59a5 | 1a91d78ec1fc6282e60a55a3a2b293fbf99c13c0 | refs/heads/master | 2021-09-09T20:17:59.773857 | 2018-03-19T13:56:43 | 2018-03-19T13:56:43 | 125,865,029 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 471 | h | GetSelectorTest.h | /*
* GetSelectorTest.h
*
* Created on: 12.12.2013
* Author: Gerd
*/
#ifndef GETSELECTORTEST_H_
#define GETSELECTORTEST_H_
#include "../GeneratorTestApp.h"
class GetSelectorTest : public CPPUNIT_NS::TestFixture{
CPPUNIT_TEST_SUITE(GetSelectorTest);
// 1 Selector
CPPUNIT_TEST(CSContext);... |
0f41bd3ed510c961d3b834d83bff681faecde1cd | 60baf4b77924beb96087c217140d3e0691326bb4 | /stdcpp/threadpool.h | 7590cb47344b7b83ef3ef9188998bcda206086df | [] | no_license | superlb/socks5-cpp | 2e0cdf5cf5087f48de7765f3b7b6e9629c1ff7d4 | ecbd5a67a0cdaa237b5092d021c9686e26ad650e | refs/heads/main | 2023-01-19T02:30:05.420430 | 2020-11-19T04:12:00 | 2020-11-19T04:12:00 | 309,272,552 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 475 | h | threadpool.h | #include <condition_variable>
#include <deque>
#include <functional>
#include <mutex>
#include <thread>
#include <vector>
class ThreadPool {
private:
typedef std::function<void()> task;
std::deque<task> task_list;
std::vector<std::thread*> thread_list;
std::mutex task_mutex;
std::condition_variable task_co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.