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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d54d36e12ccdb9994345b5f1e6dc48f365039593 | c5160b7fa284f8003a4b0c4c35b5660f2669ce10 | /countsetbit/main.cpp | 21ae704c8e2184ff298de4879d257a04f47a73b5 | [] | no_license | rockvivek/DS-using-C- | 00a49d790d1b926169c0f25ba6b056f8aca0eb10 | 6f38fbe972364740d3c6d7187e0a78176b716e5f | refs/heads/master | 2021-02-09T19:16:24.137412 | 2020-03-02T08:33:43 | 2020-03-02T08:33:43 | 244,317,268 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | cpp | main.cpp | #include <iostream>
using namespace std;
int main()
{
int n = 1024;
int res = 0;
while(n>0){
n = n & n-1;
res++;
}
cout<<res<<endl;
return 0;
}
|
4c75e994bb37787dd1e8a95313578e61379ec2ee | 2ac71ff13f39e33eb772adc5677500a642785a5b | /main.cpp | d392ca73c2240eb59721076864ef663bc0f3a70d | [] | no_license | chenyushuo/QA_system | 88ec2c51ec1d2dd27dece6e766582c68b2bf7ea3 | 3d34b409c8f350d0a444020f2c5ef3560091cd40 | refs/heads/master | 2020-03-23T08:12:18.988505 | 2018-07-17T16:09:45 | 2018-07-17T16:09:45 | 141,313,702 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 775 | cpp | main.cpp | #include <bits/stdc++.h>
#include "queryjr.h"
using namespace std;
int main(int argc, char *args[])
{
if (argc == 3){
QueryJR query;
// ifstream fin(args[2]);
// if (!fin.is_open()){
// cout << "服务器出现了一些问题o(╯□╰)o" << endl;
// }
// else{
// string que;
// string str;
// while (fin >> str)
// que += ... |
f7e91eb0df99f018a43023ba5e1546a9c10fd361 | 1a6f65fec6d8545d435c4ed65cc32b15c8da053f | /IALG (Matriz)/6.cpp | 72da6cfa8683213440b75f416652a572570dc676 | [] | no_license | caiogottmann/IALG | 02cb5bd0ea70d20cd50d4bd0772a7aafd287e16d | fc406cdaa920de7ec710b6e180aaa6f8febaa048 | refs/heads/master | 2020-06-10T22:18:59.861022 | 2019-09-25T00:17:34 | 2019-09-25T00:17:34 | 193,770,772 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 331 | cpp | 6.cpp | #include <iostream>
using namespace std;
int main()
{
int l, c, i, j;
cin >> l >> c;
int v[l][c];
for(i = 0;i < l;i++) {
for(j = 0;j < c;j++) {
cin >> v[i][j];
}
}
for(i = 0;i < c;i++) {
for(j = 0;j < l;j++) {
cout << v[j][i] << " ";
}
cout << endl;
}
r... |
d781ab6c285fb43a91875f0561be830759543e82 | b863bd1068a37c8519fb06b0e431fb2336a2ec73 | /src/lib_intercept/SegIntercept.h | cf829cca7ed04d5c394df755b3eec2a3a6062e79 | [] | no_license | Juggernautical420/BarkerMOOS | 44d800c96aa3b602bedeb6924afa707c848b1562 | be450eabe4153333af789fbf14139d06b90491d4 | refs/heads/master | 2021-06-08T18:45:51.752056 | 2021-04-30T01:33:49 | 2021-04-30T01:33:49 | 171,881,954 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,414 | h | SegIntercept.h | /************************************************************/
/* NAME: Jason Barker */
/* ORGN: MIT - 2N */
/* FILE: SegIntercept.h */
/* DATE: October 29, 2019 ... |
87ce764603051635d5f5adb18b983d330f521326 | eb831f0eae24e871f4fe6cb584a83a45891541b0 | /common/src/gui/columnlistview/ColumnListItem.cpp | 97d605c7bc3b53c1a2f0f10d0ac3d79fa7db460f | [
"MIT"
] | permissive | humdingerb/WonderBrush-v2 | 3f0e4be6bc6d7a51b23a9149f6392cb56927843b | a876a28b99c13414184b8f5a27567b03edc2b32e | refs/heads/master | 2021-07-01T09:59:54.077533 | 2020-12-10T17:01:01 | 2020-12-10T17:01:01 | 195,271,147 | 0 | 0 | MIT | 2019-07-04T16:11:58 | 2019-07-04T16:11:57 | null | UTF-8 | C++ | false | false | 5,266 | cpp | ColumnListItem.cpp | // ColumnListItem.cpp
#include <stdio.h>
#include <View.h>
#include "ColumnListItem.h"
#include "Column.h"
#include "ColumnListView.h"
#include "ColumnListViewColors.h"
// constructor
ColumnListItem::ColumnListItem(float height)
: fParent(NULL),
fParentItem(NULL),
fChildItems(NULL),
fHeight(height),
fF... |
7af66bc2100d3832729a5516eef95c5dc1e36ae9 | dc35066c405efa5101f4f1530ea37b7f74d0c997 | /src/Maximum Subarray/Solution.cpp | 9630ab5d73e2e443e02b71402736da4427a943ad | [] | no_license | wangzi6147/leetcode | 08d5667144f1609b9e71be2fcc46694972e54cab | 4817fbab92d425ab253feb39ffcaeeb14452d09d | refs/heads/master | 2021-01-25T07:18:51.292146 | 2018-10-01T03:56:09 | 2018-10-01T03:56:09 | 31,905,070 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 316 | cpp | Solution.cpp | class Solution {
public:
int maxSubArray(int A[], int n) {
int i = 1, largestSum, curSum;
largestSum = A[0];
curSum = largestSum;
while(i<n){
if (curSum<0){
curSum = 0;
}
curSum = curSum + A[i];
largestSum = (largestSum > curSum) ? largestSum : curSum;
i++;
}
return largestSum;
}
}; |
435f2ad1907e0901406f14f0a52be6fe73a198fa | c78c1626132502091264c484a99b6bda9d5bb48b | /MeshEditor/MeshEditor/ParameterSetDlg4.cpp | 841072ce18415f9eafef46c836ce3d3f245662f2 | [] | no_license | zephyrer/mesh-editor | 6c5bc596ab722c189821379e55712115cd6fbbf1 | d70a1dffd6172fdf81edb97803d758aea4c21e12 | refs/heads/master | 2021-01-23T07:15:13.453834 | 2012-11-21T08:20:56 | 2012-11-21T08:20:56 | 40,067,505 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,465 | cpp | ParameterSetDlg4.cpp | // ParameterSetDlg4.cpp : 实现文件
//
#include "stdafx.h"
#include "MeshEditor.h"
#include "ParameterSetDlg4.h"
#include "afxdialogex.h"
// ParameterSetDlg4 对话框
IMPLEMENT_DYNAMIC(ParameterSetDlg4, CDialogEx)
ParameterSetDlg4::ParameterSetDlg4(CWnd* pParent /*=NULL*/)
: CDialogEx(ParameterSetDlg4::IDD, p... |
5c32dfdb2baec52021d816aed5b5d14110389129 | a16447431515cb948997b09f7defac6a88171739 | /weiyunsuanhuibian.cpp | 7c9950b243c774f55e1844b1d1ff9c0890f59697 | [] | no_license | Twopothead/OOCplusplus | af74c92ab04fd360f8b459ece071b2b7559e66bc | 7d49d6aafcb40c7a5fd37970ddf59155dca7aebb | refs/heads/master | 2020-05-22T09:05:56.927339 | 2017-04-16T09:02:43 | 2017-04-16T09:02:43 | 84,330,290 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,122 | cpp | weiyunsuanhuibian.cpp | #include <iostream>
#include <vector>
using namespace std;
int displayint(int temp)
{
int onezero[32]={0};
_asm{
mov eax,32;
mov ecx,eax;
lea ebx,onezero;
mov eax,temp;
mov esi,0;
s: clc
shl eax,1;
mov edx,0;
rcl edx,1;
mov [ebx+esi*4],edx;
inc esi;
loop s;
}
for(int i=0;i<32;i++)
{
cout<<o... |
383215600520bac1377ee883be404e81d35fb818 | b3ea5b77d96f00e88d6118498c63864769525fd9 | /Source/Envision/TipDlg.cpp | 2108b068a94308b2c3aa4b8074a67c0b62a513f7 | [] | no_license | radtek/Envision | 01e50f84a4b179bbf2450ff63d5112788d20179b | 279268bd58c133db32eacf432f176f5366a608ac | refs/heads/master | 2020-06-11T04:33:45.527215 | 2019-06-13T22:13:36 | 2019-06-13T22:13:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,480 | cpp | TipDlg.cpp | /*
This file is part of Envision.
Envision 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 3 of the License, or
(at your option) any later version.
Envision is distributed in the hope that... |
9aa7fc28af3ed1f1ae50943e8c07e05940affe3c | ecb8534e12983ddb3333fec54511043bf028b43d | /NyaBack.h | eff21a5cab0e4725da1e498b245460e70b6a337e | [] | no_license | tkr987/H2NC_LIB | 57fef907e38b3db86f0e910b02db2d4a36bf1dcb | 2ad28e01a220209c7b15563b45badcdc28f4ace8 | refs/heads/master | 2021-06-29T21:10:12.739319 | 2019-04-08T16:16:37 | 2019-04-08T16:16:37 | 116,551,729 | 1 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 273 | h | NyaBack.h | #pragma once
namespace HNLIB
{
enum class eEVENT;
// 背景画像と背景音楽の基底クラス
class NyaBack
{
public:
NyaBack(){}
virtual ~NyaBack(){}
virtual void Act(void) = 0;
virtual void Draw(void) = 0;
void Run(const eEVENT check_event);
};
}
|
28abb16cbaf7a9e15f35f59349b5c6ac8f9e4852 | cc7b9acdda86009a881b55c1414e9ab19290bee6 | /ツユノアルヒ/OutLineMgr.cpp | b6187294de9d596db70eff78e2c752e9eed835fc | [] | no_license | hoshiTAKAhoshi/Hanazukin | e90809beb2a628c79e4b3e102ca0604f23338707 | f805392924dd6fd851036f1660b8181534cc6253 | refs/heads/master | 2020-12-14T12:15:54.766662 | 2020-01-18T13:26:34 | 2020-01-18T13:26:34 | 234,738,982 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 944 | cpp | OutLineMgr.cpp | #include "OutLineMgr.h"
#include "Bank.h"
#include "Shake.h"
#include "DxLib.h"
void OutLineMgr::Update()
{
}
void OutLineMgr::Draw()
{
for (int y = 0; y < 9; y++)
{
for (int x = 0; x < 12; x++)
{
for (int d = 0; d < 4; d++)
{
if (OutLineData[y][x][d] == 1)
{
DrawRotaGraph((x + 0.5) * 16 * 4... |
44cdfa6f8f2f28af742db8f70bfcaf02c31a6670 | 24103cd912a3f60e8fe2172628f8f5404b6ead98 | /ApplicationServer/src/Exceptions/AuthorizationException.cpp | 4acd9a74b89bfe427b6d69edea49aaef6400a680 | [] | no_license | jmoguilevsky/Taller2Match | 3236fa1eb9e58bd865b32c942f5075248c920933 | e336790d0a7e28d6d9d8cfc35fe8cc7f7472e5c5 | refs/heads/master | 2020-05-29T12:28:30.038813 | 2016-06-30T20:21:26 | 2016-06-30T20:21:26 | 54,287,051 | 4 | 0 | null | 2016-05-21T19:37:56 | 2016-03-19T21:03:24 | HTML | UTF-8 | C++ | false | false | 76 | cpp | AuthorizationException.cpp | //
// Created by chris on 11/06/16.
//
#include "AuthorizationException.h"
|
091c2f12e5ad98b1b6236b90eaeec3b03d5448ee | c1af5229f7f2a270c27f34479cee25673a07a778 | /src/libsrc/phia/phiaformprocessor.cpp | 563679c222d697b9d9af04b9426f91f43fa30219 | [] | no_license | Phisketeer/phisketeer | ba44202ca64dd3c566c2109154353fdf479a223f | 2a8fae960e04111f01fdd77d97246f274aefc4d9 | refs/heads/master | 2021-01-19T06:46:37.896508 | 2014-05-03T12:27:28 | 2014-05-03T12:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,471 | cpp | phiaformprocessor.cpp | /*
# Copyright (C) 2010-2013 Marius B. Schumacher
# Copyright (C) 2011-2013 Phisys AG, Switzerland
# Copyright (C) 2012-2013 Phisketeer.org team
#
# This C++ library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# ... |
4ed1bde28166344f9085f67cbd0bbaf4f0b21377 | 3e21e4934728442aef91b16fc4626d66d678e32b | /ana/src/XtcPool.cc | d5bbb753bdd47fb31ee964814f5a1752af4bbe2a | [
"MIT"
] | permissive | weninc/pdsdata | 26e912c83518f1210b6334684c41477d46714a89 | 72cecd89183bd074081873159b8b421661d0459e | refs/heads/master | 2020-06-13T09:21:39.684044 | 2017-11-09T23:52:12 | 2017-11-09T23:52:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,018 | cc | XtcPool.cc | #include "pdsdata/ana/XtcPool.hh"
#include "pdsdata/xtc/Dgram.hh"
#include <queue>
#include <semaphore.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
namespace Pds {
namespace Ana {
// Copied from pds/service/SafeQueue.hh and specialized as <char *, true>
class SafeBuffe... |
1f915192447fd499881b370fbd21c9ca0ae90e48 | 00e69a7bc07b52878fbc43679f83dac715b5c7a9 | /leetcode_solved/[editing]leetcode_1090_Largest_Values_From_Labels.cpp | f8080d6f688397af8990c89efd82353c9b0d8cda | [] | no_license | Ghost-2019/Algorithm | 0589e3017c76d312d26e3433498379e75ad975fd | e4421bf5e900ff5fbe3035456b66bd18f0c30bbe | refs/heads/master | 2022-04-17T00:31:04.963031 | 2020-04-12T06:16:21 | 2020-04-12T06:16:21 | 258,400,595 | 1 | 0 | null | 2020-04-24T03:59:37 | 2020-04-24T03:59:36 | null | UTF-8 | C++ | false | false | 147 | cpp | [editing]leetcode_1090_Largest_Values_From_Labels.cpp | class Solution {
public:
int largestValsFromLabels(vector<int>& values, vector<int>& labels, int num_wanted, int use_limit) {
}
}; |
d778adbd9793d02754b8cac11ee2a619dd816634 | 051c898be81003a5c90f5a1ce77a252252774973 | /preliminary/D/33909495.cpp | 876c68ce9f82e2f912c790822846a853451226d1 | [] | no_license | mmatrosov/FKN2020 | 29caffa241882e672df654b4857b5674d5f96f6e | 38bfa7811d4af175415f7cc4da81df44b5b4a74c | refs/heads/master | 2022-12-27T19:15:05.849915 | 2020-10-16T07:12:27 | 2020-10-16T07:12:27 | 298,350,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 947 | cpp | 33909495.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pii;
const double P = M_PI;
struct point{
ll x, y;
};
struct vec{
ll x, y;
};
ll cross(vec a, vec b) {
return a.x * b.y - a.y * b.x;
}
ll dot(vec a, vec b) {
return a.x * b.x + a.y * b.y;
}
vec operator-(poi... |
1e8d36b57af2ce1569cc31ce9fba84b5e2d4000f | b4a27d6caa9ef512af1145796e40fb4a834d257e | /Factorial_Recursion.cpp | c38790499b6fd6bd8db1c3baf3d5a4a521325c99 | [
"MIT"
] | permissive | A-Chathumini/HackTheOctober-HacktoberFest | 76eaa2164aeee4295d78069f1980ed375d587695 | e5c434e89e13ae288bd0cc201d7d4b29368905a9 | refs/heads/main | 2023-08-14T21:15:43.526791 | 2021-10-05T04:27:44 | 2021-10-05T04:27:44 | 413,156,285 | 3 | 0 | null | 2021-10-03T21:21:04 | 2021-10-03T18:00:26 | null | UTF-8 | C++ | false | false | 506 | cpp | Factorial_Recursion.cpp | // To find factorial using recursion.
#include<iostream>
using namespace std;
int Factorial(int n);
int main()
{
int num,fact;
cout<<"Enter no. whose factorial is to be calculated: ";
cin>>num;
if(num<0)
{
cout<<"Factorial of negative no. is not defined";
}
else{
fact=Factorial(num);
c... |
9a5a79644751cb787e8db698db0ae876a43506c4 | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Source/Runtime/Core/Public/Misc/EngineVersion.h | 5170d730ff5c068efa7633f89d8ddcbe77a7c155 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 2,678 | h | EngineVersion.h | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreTypes.h"
#include "Misc/EngineVersionBase.h"
#include "Containers/UnrealString.h"
/** Utility functions. */
class CORE_API FEngineVersion : public FEngineVersionBase
{
public:
/** Empty constructor. Initializes the version to 0... |
05f963b5aa9f386239a7a72c720ad3f53a5a3dc7 | 63c1ec9c41cf26122b79c7465d21c796d2497520 | /cpp/transmitter.h | 4c6f4b6647f126aad11c03504ce357ce8ef54848 | [] | no_license | xaratustrah/misc_code | 17870d70d8bcbdc568f6efb6e03752f83c58dc9b | ec2c3b8505543215e55dfc721be32a31943e46e0 | refs/heads/main | 2021-06-08T13:54:51.822401 | 2018-06-11T14:18:31 | 2018-06-11T14:18:31 | 25,710,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 203 | h | transmitter.h | #ifndef TRANSMITTER_H
#define TRANSMITTER_H
#include "interface.h"
class transmitter// : public interface
{
public:
transmitter(interface* iface);
interface *iface;
};
#endif // TRANSMITTER_H
|
c584ff44f20f6529161f62ba3dc825db6bad35d6 | 384d18989ed90e85d9dd70113b00387376c59518 | /211.cpp | de5fadcc7a36832dbe708f80195111919c0eee0c | [] | no_license | yyisgod/LeetCode | e62dafc39fa6c7483af0642782f9249364e11a4c | eadea6fe42891e08f80cc68e57965f1806625c92 | refs/heads/master | 2021-01-19T02:17:59.954620 | 2016-08-02T06:11:35 | 2016-08-02T06:11:47 | 40,067,064 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,781 | cpp | 211.cpp | /*208的基础上,逢'.'就遍历递归*/
class TrieNode {
public:
TrieNode(bool end=false) {
isEnd = end;
memset(children, 0, sizeof(children));
}
bool isEnd;
TrieNode* children[26];
};
class WordDictionary {
public:
// Buildup the constructor
WordDictionary() {
root = new TrieNode();
... |
667e11268ba4b751dae38c53a821fecf8851eff2 | 5b7e69802b8075da18dc14b94ea968a4a2a275ad | /DRG-SDK/SDK/DRG_Tutorial_Hint_LaserPointer_functions.cpp | 5adbd5ae3be5ca0262d0dd4e8db808ccaf62ea45 | [] | no_license | ue4sdk/DRG-SDK | 7effecf98a08282e07d5190467c71b1021732a00 | 15cc1f8507ccab588480528c65b9623390643abd | refs/heads/master | 2022-07-13T15:34:38.499953 | 2019-03-16T19:29:44 | 2019-03-16T19:29:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,173 | cpp | DRG_Tutorial_Hint_LaserPointer_functions.cpp | // Deep Rock Galactic (0.22) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "DRG_Tutorial_Hint_LaserPointer_classes.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//--------------------------------------------------------------------------... |
117a1bad2c46890f41f0cabfbea7b244be4f4f5d | b257bd5ea374c8fb296dbc14590db56cb7e741d8 | /Extras/DevExpress VCL/Library/RS17/Win64/cxShellCommon.hpp | 044d7b00d7d4c289ff0e2981b2abad427368dd5f | [] | no_license | kitesoft/Roomer-PMS-1 | 3d362069e3093f2a49570fc1677fe5682de3eabd | c2f4ac76b4974e4a174a08bebdb02536a00791fd | refs/heads/master | 2021-09-14T07:13:32.387737 | 2018-05-04T12:56:58 | 2018-05-04T12:56:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,571 | hpp | cxShellCommon.hpp | // CodeGear C++Builder
// Copyright (c) 1995, 2012 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'cxShellCommon.pas' rev: 24.00 (Win64)
#ifndef CxshellcommonHPP
#define CxshellcommonHPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- // All... |
2ad1667b7fb6342d9e0f3a7a58290e73228b3a55 | 26812a9295d7d01c4dae474e7ad6d562892d1778 | /greatest no. by switch in scope resolution.cpp | 89aeb952ea83c92966fd4b5144042eb0e8719eef | [] | no_license | PriyankaNohria/C- | 52e3ddd5a148b51ca5c68a81ab5c4706c5ef5574 | 73ac37e72227b6167a60988030bd3c85384a4585 | refs/heads/master | 2020-12-08T20:54:27.913275 | 2020-01-10T17:07:00 | 2020-01-10T17:07:00 | 233,093,331 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 146 | cpp | greatest no. by switch in scope resolution.cpp | #include<iostream>
using namespace std;
class large
{
public:
void enter();
void inte();
void floatno();
void chara();
}
void large:: inte()
{
}
|
bd6ee8b0e87d2f363678b6f57a2cb637daca4653 | ec978c7a75c8ccbeef7f154dadb3e15bad9496db | /linker/inc/LinkerWrapper.h | eee9e866eceb8b62347d59b970ed77469e89bf35 | [] | no_license | Uros2323/System-Software | 434b982ec5f00b67aee6637e50dd32b0cfc5a11d | 7f4d62493326e0618feb636d919739cb83ccef61 | refs/heads/main | 2023-07-15T23:20:47.377435 | 2021-08-02T18:46:42 | 2021-08-02T18:46:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,879 | h | LinkerWrapper.h | #ifndef LINKER_H
#define LINKER_H
#include <string>
#include <vector>
#include <map>
#include <iostream>
#include <fstream>
#include <iomanip>
using namespace std;
class LinkerWrapper
{
private:
struct SymbolTable
{
int id_symbol; // sequence number of symbol
int value; // this is offs... |
36011baa4c0806a8a7023887d71fb4c8d61e14f0 | a8bfdb70b38d4d14422a6397cc898a70306372af | /arduino/OpenROV/GeigerCounter.h | 2a4439259f8c5a3c7585c60aa45a6d5fb51d1e5b | [
"MIT"
] | permissive | scubasonar/openrov-software | 16e0d97a5dbd7eda5588f04f3bca5815a68f7de5 | fb1fa06b979857bebe68a0a3a5e1430aca4581a6 | refs/heads/master | 2021-01-22T17:22:31.807434 | 2014-01-11T23:45:13 | 2014-01-11T23:45:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 885 | h | GeigerCounter.h |
#ifndef __LIGHTS_H_
#define __LIGHTS_H_
#include <Arduino.h>
#include <limits.h>
#include "Device.h"
#include "Pin.h"
// Geiger counter tube models
#define LND_712 0 // LND
#define SBM_20 1 // GSTube
#define J408Gamma 2 // North Optic
#define J306Beta 3 // North optic
#define TUBE_MODEL LND_712
#define INTE... |
e5b7ddbc6df721a8827abae566f87fd278b39677 | 57c9081fb638d14b61f6c482ec4c2e439cbcbb77 | /Assignment1/LinkListMain.cpp | fd13085b4861166b8a92f2e5cec4c6b861e40806 | [] | no_license | mdhasanai/Data-Structure-Assignment | a865040f3eec53597096802cbac7dabbe67b1f2b | db49f885dfdb49d676af485f8888009887ed6625 | refs/heads/master | 2021-06-24T10:49:06.147178 | 2017-07-22T16:30:47 | 2017-07-22T16:30:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,576 | cpp | LinkListMain.cpp | #include<iostream>
#include <string>
#include <fstream>
#include <algorithm>
using namespace std;
struct pos {
int index;
pos* next;
};
struct node {
string data;
int counter;
node *next;
pos *position;
};
int MainIndex = 0;
int totalWord=0;
node* head = NULL;
//pos *h2 = NULL;
//int count... |
7426f4bb7ffd19634903d5ee608f98bb33a02404 | 4f42d18a8e7dc9f62621227fce2118eb49974a47 | /arch/avr/avrspi.h | 2f468e03dfce880e3c17d6c7dc5b0ee7f62b3eb9 | [] | no_license | irsural/mxsrclib | e3004a503c0c5be07ffa42f05f7824d1c57eca0c | 8607711eae1366bf11dabe26ed5003af53698fc3 | refs/heads/master | 2023-06-09T06:23:31.734589 | 2023-04-14T06:45:37 | 2023-04-14T06:45:37 | 107,269,128 | 0 | 0 | null | 2021-06-09T10:36:04 | 2017-10-17T13:00:53 | C++ | WINDOWS-1251 | C++ | false | false | 2,036 | h | avrspi.h | //! \file
//! \ingroup drivers_group
//! \brief Драйвер SPI для AVR
//!
//! Дата 26.02.2009
#ifndef avrspiH
#define avrspiH
#ifndef __ATmega128__
#include <irsspi.h>
#include <irsstd.h>
namespace irs
{
namespace avr
{
//! \addtogroup drivers_group
//! @{
class avr_spi_t : public spi_t
{... |
20d6fab25b83578e8f4eea17a58961179ee405a1 | 735fdaf179abb568a309b9a500c3d1c636256c3d | /1088 lightoj- Points in Segments 1.cpp | d8e41f15fb2acb631788af4e68ca074cf67aab3a | [] | no_license | mazedrupok/lightoj | 6befd498becedf0f60b546c026dc41c9bb5618b2 | 701b13c8be76c75a086ec096d410b71ac17a0203 | refs/heads/master | 2023-06-10T18:49:56.255882 | 2023-05-27T18:52:47 | 2023-05-27T18:52:47 | 30,004,511 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 638 | cpp | 1088 lightoj- Points in Segments 1.cpp | #include <bits//stdc++.h>
using namespace std;
int main ()
{
int tc, cs = 0, n, q, a, b;
scanf (" %d", &tc);
while (tc--) {
scanf (" %d %d", &n, &q);
int ara[n];
for (int i = 0; i < n; i++) scanf (" %d", &ara[i]);
//sort (ara, ara+n); //no need for these library
printf ("Case %d:... |
479131abe8c62da5274f745ae93a71cac49184a2 | b47b2abfe49a4088fc46606075d6c60b7ac3c446 | /Constructor/mainwindow.h | 2f38678c3b043797b617fb1a5883455f80897ae4 | [] | no_license | ritesh007sharma/Sprite_editor | 6209f25fbfbfd412eb4644c0102497895f8ac8b0 | d96fcac366199cec7f04e3125fb190def48e8fd9 | refs/heads/master | 2022-03-21T04:16:00.361693 | 2019-11-29T17:36:33 | 2019-11-29T17:36:33 | 224,897,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,630 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QGridLayout>
#include "framecontainer.h"
#include <QFileDialog>
#include "load.h"
#include "save.h"
#include "gifexport.h"
namespace Ui {
class MainWindow;
}
/**
* This class manages the tools utilized in the menu bar as well as integrating... |
cbe9907bd54cd613f3f2ddcc3ec6bdda16c6fa7a | 4baa416f605621b8ee0cc1bed01b99fb05b90003 | /ChemicalEquationBalancer/fraction_testdriver.cpp | fe469c8706d59ecaa356b53c57277bac1fb91aa7 | [] | no_license | Aragami1408/ChemicalEquationBalancer | 61f37fb06f734f778ee4536a982b7c6165045963 | d0047579dfcd4950f0c890c74ff78e3437fe86c6 | refs/heads/master | 2021-05-29T20:16:29.075350 | 2015-10-16T18:25:51 | 2015-10-16T18:25:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,726 | cpp | fraction_testdriver.cpp | #include <iostream>
#include "Fraction.h"
int main()
{
Fraction a;
Fraction b = 5;
Fraction c(3, 7);
Fraction d(-1, 5);
Fraction e(21, -9);
Fraction f(-6, -5);
Fraction g(6, -9);
std::cout << "Test constructors:\n";
std::cout << "a = " << a << "\n";
std::cout << "b = " << b << ... |
92df86f1ffe50337aeba2ec4e8852a8cf59e90d7 | 0b6f28fafe2ac0eb9e572bb91defc6d33283fb01 | /binary_tree.cpp | 6c5404bf31f4cfc3de3987ccc4859fff367c7ccc | [] | no_license | udaynbausj/scripts | 7b808c1669902028861ee3f868bbfd33efedbc06 | a2973bd283b6995fc40d3ff4996a97d6024e242d | refs/heads/master | 2023-04-25T14:40:29.437614 | 2021-05-15T10:09:37 | 2021-05-15T10:09:37 | 261,472,632 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,173 | cpp | binary_tree.cpp | //
// Created by Uday B K on 05/05/20.
//
#include <iostream>
#include <vector>
#include <map>
#include <queue>
using namespace std;
struct Node {
Node* left;
Node* right;
int data;
};
Node* new_node(int data) {
Node* n = new Node();
n->data = data;
n->left = n->right = nullptr;
return n;... |
c884c378f820cd997c51ab57224382a98a485bd1 | 1cddfc361a1ff50d02845050cbec4b0a513d9873 | /inc/WynikWizyty.h | f79007fe87c52231489fb0693df287cd81fd1edd | [] | no_license | Wojtas5/Przychodnia | 0311ba2a60a773fc93b6506c6452c1c7ce4fe313 | 673e4ac696598b70e187616f657d31f7fb0be720 | refs/heads/main | 2023-05-15T08:25:43.368825 | 2021-06-13T00:35:56 | 2021-06-13T00:35:56 | 357,659,881 | 0 | 0 | null | 2021-06-13T00:35:57 | 2021-04-13T19:00:08 | C++ | UTF-8 | C++ | false | false | 408 | h | WynikWizyty.h | #ifndef WYNIKWIZYTY_H
#define WYNIKWIZYTY_H
#include <string>
#include "Date.h"
using namespace std;
class WynikWizyty
{
private:
Date *data;
string przebieg_wizyty;
string zalecenia;
string skierowania;
public:
void wyswietlWynik();
void setData(Date *data);
void setPrzebieg_wizyty(string przebieg);
voi... |
b5b7071d9758ca18679fd0f6d1f560b63bae4c49 | 33d51bfd99c5a385e3177dba6b2ab80b47ba01a0 | /src/kernel/rectilinear.hpp | 23877b61cd58cb957826621629105d3bfb0a3705 | [
"MIT"
] | permissive | spinicist/riesling | 3fce2f01134582b938b9079aa552f0823de997c3 | d62e32d6c104a3252265073c4005a0d96d50c9b0 | refs/heads/main | 2023-09-04T03:39:35.020520 | 2023-08-25T15:15:33 | 2023-08-25T15:15:33 | 317,237,623 | 20 | 7 | MIT | 2023-09-08T08:48:40 | 2020-11-30T13:48:22 | C++ | UTF-8 | C++ | false | false | 1,780 | hpp | rectilinear.hpp | #pragma once
#include "fixed.hpp"
#include "tensorOps.hpp"
namespace rl {
template <typename Scalar, size_t N, typename Func>
struct Rectilinear final : FixedKernel<Scalar, N, Func::PadWidth>
{
static constexpr size_t NDim = N;
static constexpr size_t Width = Func::Width;
static constexpr size_t PadWidth = Fun... |
20a553eafc5dbceed9adb2ac95a4aee1f96ccf00 | 9cd567f133d88392651d45112a5aacf3ee982fdc | /w06p01.cpp | fd8d5de6e19bd00e5870d1145fc8ef078b13a6df | [] | no_license | BartoszewskiA/Programowanie-obiektowe-WYKLAD-Int.-techniczna-2021 | baaaca58383dba5d3519c60a9c577ec53a34c3a2 | 44834e6666c2eb3c30fbb4b3149b10ca2100ff60 | refs/heads/master | 2023-07-09T20:35:38.171257 | 2021-08-17T17:05:01 | 2021-08-17T17:05:01 | 366,501,586 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 911 | cpp | w06p01.cpp | #include <iostream>
#include <string>
using namespace std;
// int ile_obiektow=0; - podejscie "nieobiektowe"
class osoba
{
private:
int id;
string imie;
public:
static int ile_obiektow;
osoba (string s): imie(s)
{
id=++ile_obiektow;
}
void setImie(string imie) { this->imie = imi... |
cc969ea0a54c20693212a651b228d737a1fb0900 | a6b698105aec67701cdd509cb9a48528786049d2 | /RegainEarthCheat/SDK/BP_DissolveComponent_functions.cpp | bacd43d872ecfc75a7ab94bda5cb77629ddae1c9 | [] | no_license | ejiaogl/RegainEarth-Cheat | 859d44d8400a3694b4e946061b20d30561c6304f | 4136c2c11e78e9dbb305e55556928dfba7f4f620 | refs/heads/master | 2023-08-29T09:39:45.222291 | 2021-10-19T19:56:05 | 2021-10-19T19:56:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,000 | cpp | BP_DissolveComponent_functions.cpp | // Name: RegainEart-FirtstStrike, Version: Version-1
#include "../pch.h"
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Functions
//------------------------------... |
57eb8d687c9a5374edf37cfb6531bc5e25b21d6b | 8a5466fb60ca8318567991555af00fdcfa3a79a1 | /Header.h | 4b98aa50aa0fcfc7c0991664aedb7c5a54708136 | [] | no_license | michelleabreo/Hangman-Game | b0829e137ca4ee92498de7c7fa437396b065cba8 | 89acf3c2980fb6edc4665b05b60ab4735fc6b7bb | refs/heads/master | 2021-10-02T22:49:26.875798 | 2018-12-02T01:49:51 | 2018-12-02T01:49:51 | 105,077,380 | 0 | 0 | null | 2018-12-02T01:49:52 | 2017-09-27T22:51:39 | null | UTF-8 | C++ | false | false | 39 | h | Header.h | //hangman.h
class hangman
{
}; |
4ad2c2bc3c1775a26e8847e3bd15fdbd11fff65e | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir22441/dir26975/dir27120/dir27591/file27606.cpp | ecb68563a41ece71119508703ab96e1c5d44ce2e | [] | 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 | file27606.cpp | #ifndef file27606
#error "macro file27606 must be defined"
#endif
static const char* file27606String = "file27606"; |
77854ccbc5f6fcc35e253708f8553f2320c1440a | c0b1ff8b95dbc9713f6c1c710df1211d61617dc8 | /SimpleMCMain.cpp | 018320a78f724cea4c10f6dcdce2e12d1dfb08f3 | [] | no_license | sremo/cppDerivPricing | 187bd4c22b6c578d3ec970134447360194e638a6 | 91b3f74abf71fe582d3d70dcdd5574533549667b | refs/heads/master | 2020-05-04T16:11:50.335391 | 2013-02-08T08:55:50 | 2013-02-08T08:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,834 | cpp | SimpleMCMain.cpp | // requires Random.cpp
#include "Random.h"
#include <iostream>
#include <cmath>
#include <string>
#include <sstream>
using namespace std;
double string_to_double( const std::string& s )
{
std::istringstream i(s);
double x;
if (!(i >> x))
return 0;
return x;
}
int string_to_int( const std::str... |
6e3681cd2035c7aa9165a11d4036656d66f1f029 | b747063a7eddcdc473a37262b0f293da39f9a4e9 | /code/CS info/cs240/chess/Pawn.cpp | 0690c46e87e8b184583501f572cbeb9927872f5f | [] | no_license | Iiridayn/sample | 2a8d6693e80d53ca5e63d79cad09aa9da2b373bc | 0dfc4eb0f17c7bf4618f07d1483878e333441500 | refs/heads/master | 2023-07-07T11:31:25.401037 | 2023-06-23T22:34:28 | 2023-06-23T22:34:28 | 24,160,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,061 | cpp | Pawn.cpp | #include "Pawn.h"
#include "Board.h"
void Pawn::getMoves(Board* board, bool usecol) {
int index = (color == "white")?y-1:y+1;
bool temp = false;
if(index >= 0 && index < 8) {
if(board->board[x][index] == 0) {
board->poss.insert((x*10)+index);
cout << "adding: " << ((x*10)+index) << endl;
te... |
d2728859ca84f6d5e390df7d41c15a735b091909 | 3bae1e0391ab877c0ddfbdfbf392a2c5965d1669 | /cbmc_trunk/cbmc_trunk_linux/src/goto-cc/goto_cc_cmdline.h | b3fb450c6710ca318a6c66a43dc72fa43bd69bc7 | [
"BSD-2-Clause"
] | permissive | cocreature/rvt | 36f6e2a153b3f398bd997ebeccdec38ca6259241 | b9dc17b21a87b5b93326376117401c3011bb4fa3 | refs/heads/master | 2021-01-11T16:14:54.732076 | 2017-08-28T19:18:54 | 2017-08-28T19:18:54 | 80,048,732 | 0 | 1 | null | 2017-01-25T19:20:46 | 2017-01-25T19:20:46 | null | UTF-8 | C++ | false | false | 731 | h | goto_cc_cmdline.h | /*******************************************************************\
Module: Command line interpretation for goto-cc
Author: Daniel Kroening
Date: April 2010
\*******************************************************************/
#ifndef GOTO_CC_CMDLINE_H
#define GOTO_CC_CMDLINE_H
#include <cmdline.h>
class got... |
7c9462a5f7faebae5a7885b911cb4137921628d3 | 7556139eba33cbbbf0e0262c69e9c8b56e08a399 | /include/RED4ext/Scripting/Natives/Generated/game/ui/OnscreenVOPlayerController.hpp | 892cd7b17f28a13725e5a01a9dff4cd3b0d54b2d | [
"MIT"
] | permissive | vandermerwewaj/RED4ext.SDK | 3ef7563a1855e6206097fdf6c5b44ae1c1c2c20d | 9dd544a221a39f27c8d38aa23a607b31aba1715a | refs/heads/master | 2023-09-05T06:32:39.278419 | 2021-11-22T15:01:18 | 2021-11-22T15:01:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,140 | hpp | OnscreenVOPlayerController.hpp | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/CName.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/ui/VOWithDelay.hpp>
#include <RED4ext/Scripting/Nat... |
6cb7e72fa2df0c5c56888315e63bab2c21c4e116 | b2ab05db73084df8447cae6266bbf73ebeeb8665 | /files/recursao.cpp | ef8b5e81f2e9caf866ae863ab6a931b965b5be22 | [
"MIT"
] | permissive | luizfelipedasilva678/data-structure | 843930d86a64c5412d347a8ace16d97108f3de99 | f9632074b10ea5daf588c09f3ea88e16ee1f2f8b | refs/heads/main | 2023-03-31T11:10:28.087999 | 2021-04-03T17:54:31 | 2021-04-03T17:54:31 | 352,842,148 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,043 | cpp | recursao.cpp | #include<iostream>
using namespace std;
int potencia(int number, int n)
{
int result = 1;
if(n >= 1) {
for(int i = 1;i <= n; i++)
{
result *= number;
}
} else {
result = 1;
}
return result;
}
int recurPotencia(int number, int n)
{
... |
a9485a213364203895f00a8bf395ab9950575566 | a3a094c90af33d3c7f9ec4fac420104760e875b8 | /DuiFramework/control/button.cpp | 922a709bca3b15c3c3a575406a9852633d425975 | [] | no_license | blueantst/DuiFramework | 5770028c255b82932209d6179973485259ef2c8b | a755a5f51b8f9e01f8897eac801b2efcddba94a7 | refs/heads/master | 2021-01-15T13:12:49.604701 | 2014-11-14T09:42:41 | 2014-11-14T09:42:41 | 26,765,792 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,556 | cpp | button.cpp | #include "stdafx.h"
#include "button.h"
#include "event/mouse_event.h"
#include "core/image.h"
#include "core/rectangle.h"
namespace ui
{
Button::Clicked::Clicked(Button* btn)
: Event(EVENT_BUTTON_CLICKED)
, trigger_(btn)
{
}
Button::Button()
{
}
Button::~Button()
{
}
... |
2051a7fb6f804316c1f7ff04bdf455923a9f6f22 | 1ad7fe7c1a6ce492cd31ac0b28f0dd12d5ff1477 | /剑指offer/c++/变态跳台阶/solution.cpp | 0e400d044c22ac9807958394deec2bcf4a2a6857 | [] | no_license | hill2hill/Algorithm | 62b9c1710d76c75e580f7948be8dbd194d02832a | ea4d430402b1578677e50484e73d70e01247b246 | refs/heads/master | 2020-09-28T21:30:46.243743 | 2020-05-09T03:11:02 | 2020-05-09T03:11:02 | 226,869,433 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | cpp | solution.cpp | /*一只青蛙
一次可以跳上1级台阶,也可以跳上2级……它也可以跳上n级。
求该青蛙跳上一个n级的台阶总共有多少种跳法。
*/
class Solution {
public:
int jumpFloorII(int number) {
if(number == 0) return 0;
return pow(2,number-1);//如何快速pow?
}
}; |
7ae43bbf10a605af46fda02ad6a9472c36e3224c | d58afa0974baf412366f5ead5ce38267b9f41efd | /advstringtest.cpp | 0ec0269ff0f877f5edd37509970664b5dbd44fce | [
"Apache-2.0"
] | permissive | prasaathviki/advstring | a5e2772922bca9a949b852dc4898e47dc9ad935e | fb973d2ea222db02a13c8b92d8d8d72f79af4964 | refs/heads/master | 2016-09-06T18:50:42.265132 | 2014-05-20T05:00:31 | 2014-05-20T05:00:31 | 17,478,740 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,874 | cpp | advstringtest.cpp | #include "advstring.h"
#include <iostream>
int main(int argc,char** argv)
{
advstring asSampleText;
asSampleText = "------advstringtest------";
asSampleText.DispStringEndl();
std::string sSampleStd = "sSampleStd";
const char* pchSampleChar = "pchSampleChar";
int nSampleInt = 1234;
float nSampleFloat = (float)1234.12;... |
e710234758701aa95fa74400b0f37d00c471e0e5 | fc7a7633b480fee21d29f0c0167fe79aa021802f | /CRC_16_CCITT.cpp | 7a081070c4699cb6473b62ca06c3c7ab16d3704a | [] | no_license | maoxiaoke/CRC_16_CCITT | 5f834b39a5be93b833747f8101ed68d159a61802 | 6ac7da4697256eda857880b06526b82a868c6c95 | refs/heads/master | 2021-01-20T18:14:59.790675 | 2016-08-24T13:49:45 | 2016-08-24T13:49:45 | 61,694,641 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,675 | cpp | CRC_16_CCITT.cpp | // CRC_16_CCITT.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
unsigned short crc16_ccitt_table[256] =
{
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7,
0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef,
0x1231, 0x0210, 0x3273, 0x2... |
8f355434804050e7e05fb70cac08ffe8b4ca90e4 | 6af4068cf5ce7bf3f198c1c61b2507d723b838ad | /tree_binary_search/last_question.cpp | 77e7d2d72b4ecd949d982bc8659dc4922031ad48 | [] | no_license | monk78/Standard-Algorithms | 87a06b8614b8bf73d56eaa6f7fda1507944a98db | ad31a7adb2560150509a6476878cfdadc7a5fdc4 | refs/heads/master | 2023-02-26T10:41:29.570831 | 2021-01-29T12:45:00 | 2021-01-29T12:45:00 | 290,782,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,247 | cpp | last_question.cpp | /** Author:Monk_
* Topic: **/
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define _for(i,a,b) for(i=a;i<b;i++)
#define _rfor(i,a,b) for(i=a;i>=b;i--)
#define mp(a,b) make_pair(a,b)
ll gmin=INT_MAX... |
1b81c7ae6cb13db23d594ca0992faaddd915411b | 9cf78d4d6e7c14578cb2269ebef7f3f93f702144 | /inc/Food.hpp | 949c6a9e022ae5cba6708bf665a8a7021fd86f69 | [] | no_license | ibotha/nibbler | 0948aa3db5e7b0a871abfbb34b2c58716d79348a | 6a5f805ca2a5889b5f1b52398d0fa5fc7e795aa1 | refs/heads/master | 2020-06-10T16:10:33.491964 | 2019-08-05T07:30:48 | 2019-08-05T07:30:48 | 193,670,863 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,350 | hpp | Food.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Food.hpp :+: :+: :+: ... |
bd0e7489f8fbb4b34666cd84677d51ee04fbc457 | f500b8a710b306cdd9f10d90c6b1ef2a2faf49e3 | /VSCode/ControlSystem.cpp | d390dbda54631f35e43736a5b8b6d71d2863e8cb | [] | no_license | up201505284/Application | b6b78087e59b2881845a513a36e931941045e720 | 8784162dc7f29cbbdc735fd1c99797fed4ecf71a | refs/heads/master | 2022-05-19T03:32:16.370813 | 2020-04-29T12:32:40 | 2020-04-29T12:32:40 | 248,866,699 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | cpp | ControlSystem.cpp | #include "ControlSystem.h"
ControlSystem::ControlSystem(
float _accelarationRate,
int _accelarationTime
) {
setAccelarationRate(_accelarationRate);
setAccelarationTime(_accelarationTime);
}
ControlSystem::~ControlSystem() {
}
void ControlSystem::setAccelarationRate(float _accelarationRate) {
... |
fbd40a8d9bc7496d8ee383ac236e04a5078ad576 | 7115c2b3d4be6751483fbda39ee23da9169f3626 | /addons/ofxNotify/src/ofxNotify.cpp | 07309a23d4042204af72a199d0355ffc361d5f9a | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | fluaten/Pinacotek | c365bebf718a123b0ffc74e5edc13f8cf981fce8 | 592a7f6abb42ebdec35ce4400ba281c0ea556a18 | refs/heads/master | 2020-06-08T19:59:18.925313 | 2013-06-03T17:57:18 | 2013-06-03T17:57:18 | 10,455,609 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,471 | cpp | ofxNotify.cpp | //
// _____ ___
// / / / / ofxNotify
// / __/ * / /__ (c) ponies & light, 2013. All rights reserved.
// /__/ /_____/ poniesandlight.co.uk
//
// ofxNotify.cpp
// Created by tim on 23/01/2013.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
//... |
4da7bcc4c5d5a3f10cc92db40fc79d2f9cabb78e | 9e15ecabaaedbf21090ce8542558df9ea1c8d868 | /Plugin_ArUco/src/ofxRulr/Solvers/MarkerProjections.cpp | 282a00e0a03f7fd7abb6fc40cf3be3193d2316ab | [] | no_license | elliotwoods/ofxRulr | a6948cfffa4419ee9c3367c6a3f1bb9ae0af17ae | 5f9033cd42841dcab5063878bcab788d05921e19 | refs/heads/master | 2023-09-04T11:00:31.464347 | 2023-08-30T05:46:03 | 2023-08-30T05:46:03 | 19,885,267 | 106 | 19 | null | 2016-03-19T06:45:43 | 2014-05-17T11:41:48 | C++ | UTF-8 | C++ | false | false | 11,133 | cpp | MarkerProjections.cpp | #include "pch_Plugin_ArUco.h"
#include "MarkerProjections.h"
#include <glm/gtx/matrix_decompose.hpp>
using namespace ofxCeres::VectorMath;
template<typename T>
class Transform {
public:
glm::tvec3<T> rotation;
glm::tvec3<T> translation;
Transform(const T* const parameters) {
this->rotation[0] = par... |
f0a55a15339dbd81117b69e94daaa8662986f267 | 3ee5b07b0fc87b5b2b7c28b14179fbe0724fcbf9 | /Codeforces/freymanlozanoq/1283/a/80264308.cpp | 7d12b183a02d4a42e61d3bbba956dfbd7e2389bf | [] | no_license | Freym4n/Problemas-resueltos | fb8a33c34d4d252617667dddeca7db5354ce5dae | e0fd654a0079362f075269d1d1e70b6c50f1d8f4 | refs/heads/master | 2022-12-15T09:00:27.361423 | 2020-09-05T18:58:08 | 2020-09-05T18:58:08 | 284,178,130 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 310 | cpp | 80264308.cpp | #include <bits/stdc++.h>
using namespace std;
void solve() {
int h,m;
cin >> h >> m;
int total = h*60 + m;
int ans = 1440 - total;
cout << ans << "\n";
}
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int t;
cin >> t;
while(t--) {
solve();
}
}
|
4f8691e919355e88a0e86e496916ce152d66517b | 2d7d666fa73858187e9fd8eb4fb6c0707aeb512e | /Project 3/Project 3/ppmimage.h | 083a9606210d8e935c737076a65a6daa9ec9db00 | [] | no_license | drthomas21/CS332C | 57b685ee40f55b83f2d4a352faed054dba97b901 | a58f5d87a0993d8383c8c7bd21f1bad49c742a80 | refs/heads/master | 2021-01-10T12:25:08.331512 | 2016-03-11T19:20:28 | 2016-03-11T19:20:28 | 49,286,862 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 803 | h | ppmimage.h | #ifndef PPMIMAGE_H
#define PPMIMAGE_H
#include <string>
#include <iostream>
#include <stdint.h>
class PPMImage {
private:
std::string magicNumber;
unsigned int width;
unsigned int height;
unsigned int maxColor;
unsigned char* colors;
std::uint8_t* getRGB(size_t);
void setRGB(size_t, std::uint8_t*);
public:
st... |
697eb3b2e26a25a9d7dbf37cd8d0660734e0b52a | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/e6/f3ba41142249d9/main.cpp | ba1a1115d6197ec2ec27f62b4932a6382f4618b9 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | cpp | main.cpp | void foo(double val) { cout << "double\n";}
class obj {
public:
using ::foo; // (1) compile error: using-declaration for non-member at class scope
void callFoo() {
using ::foo; // (2)will cause the global version always be called
foo(6.4);
foo(0);
}
private:
void foo(int val) {cout <<... |
eb92c1a5cd72c3cae0aed3cdfcac2c767a611803 | 45b497be5666d03d8194e7cd1967ae71f4dbe31c | /cpp/src/eshelby_tensor.cpp | d26b09f43aa3cddce26c882cd3f983743df69a77 | [
"MIT"
] | permissive | davidkleiven/CEMC | d7241cacc17841f4e04c441f76857368ef6b5a41 | 0b253dd98033c53560fe95c76f5e38257834bdf6 | refs/heads/master | 2021-06-05T01:39:44.122237 | 2021-02-24T07:48:12 | 2021-02-24T07:48:12 | 113,870,714 | 2 | 3 | MIT | 2019-06-20T12:33:23 | 2017-12-11T14:45:13 | Python | UTF-8 | C++ | false | false | 12,188 | cpp | eshelby_tensor.cpp | #include "eshelby_tensor.hpp"
#include "additional_tools.hpp"
#include <Python.h>
#include <cmath>
#include <stdexcept>
#include <map>
#include <string>
#include <iostream>
#include <sstream>
using namespace std;
const double PI = acos(-1.0);
EshelbyTensor::EshelbyTensor(double a, double b, double c, double poisson):... |
ed374a56fa1ffd823cf575ca35393dce1c2f2f37 | 405066a2479315f8327217203593c14d37cc67f7 | /include/AnalyseSpatialVelocityCorr.hpp | 67c1ac7a73296160a8324ac7c54c949d170ae1ce | [] | no_license | melampyge/PolymerAnalysis | c5fc974ad2499b5daed7ff4cd27aa5d7924a9383 | 9252f6083e48aa36a8cec5fbceee19a2fb4af761 | refs/heads/master | 2021-07-12T19:43:04.226905 | 2017-10-05T14:42:37 | 2017-10-05T14:42:37 | 96,563,723 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,374 | hpp | AnalyseSpatialVelocityCorr.hpp |
/* analysis on spatial velocity correlation */
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include <iostream>
#include <fstream>
#include <iomanip>
#include <sstream>
#include <vector>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <tuple>
#inc... |
48ce89500381f46a23e63aadda350f70893a28db | f847c8793e466728ae13ad4726cdeb5d243b6c2d | /3 Desvio Condicional Encadeado/atv01_10_03_16.cpp | 0fd7204b0eb03205f5e950045758c43f1778b2bf | [] | no_license | raymissson/AlgoritmosProgramacaoC | 720c9f8c09de7d650aad1d02d00cbeeddb367fbc | f98a73699189ad64c98d41d30a0858eb5e4da4bf | refs/heads/master | 2020-03-11T09:44:10.374504 | 2018-04-17T15:28:37 | 2018-04-17T15:28:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | cpp | atv01_10_03_16.cpp | #include<stdio.h>
#include<stdlib.h>
main()
{
float sal, d;
printf("\tIMPOSTO DE RENDA A SER DESCONTADO DO SALARIO DE UM TRABALHADOR");
printf("\nInsira o salario: ");
scanf("%f", &sal);
if (sal<=1050)
{
d=0;
}
else if (sal<=2500)
{
d=(sal/100)*15;
}
else if (sal<=7500)
{
d=(sal/100)... |
829a1bc2025775d857dc3cf6c3ac86b67d380232 | 429d8b7a9b4c4954c4ccf40ba3ee0fab38849986 | /C++programming/C++基础/汽车防碰报警/Comparer.h | 692ce003f31b28c5312dd3dfcaf1f7cea1562795 | [] | no_license | DanylZhang/CurriculumDesign | f2aa7b5023d312511bdcef97295bdc1dbf015734 | eae3c424ea5d5424dc34c7a0720e8807095ab95e | refs/heads/master | 2021-01-10T18:02:41.388236 | 2017-06-26T08:52:42 | 2017-06-26T08:52:42 | 50,718,367 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 821 | h | Comparer.h | #ifndef COMPARER_H
#define COMPARER_H
using namespace std;
class Comparer
{
public:
double m_S;//超声波测出的距离
double m_V;//超声波测距时汽车的速度
public:
Comparer() {}
virtual ~Comparer() {}
friend istream &operator>>(istream &in, Comparer &comparer)
{
in >> comparer.m_S;
in >> comparer.m_V;
return in;
}
//判断是否应该报警
v... |
2bf9879d86efd1f41554b0c24fcc828a4688c29a | b162619254d4a48e03b4ad01fa85183f37a13a9b | /include/onmt/nn/MM.h | 715f3c01f49282da20e9f69e6deb4f8db986c3a0 | [
"MIT"
] | permissive | jhnwnd/CTranslate | b443a6d53717a4995de702fe6fac4dbfbc2b2411 | b9c85a4ccf3e0c38cc8691e1eaaafcb51086d33d | refs/heads/master | 2021-08-16T08:35:14.595852 | 2020-04-07T09:10:38 | 2020-04-07T09:10:38 | 152,083,533 | 0 | 0 | null | 2018-10-08T13:20:13 | 2018-10-08T13:20:12 | null | UTF-8 | C++ | false | false | 1,425 | h | MM.h | #pragma once
#include "onmt/nn/Module.h"
namespace onmt
{
namespace nn
{
template <typename MatFwd, typename MatIn, typename MatEmb, typename ModelT>
class MM: public Module<MatFwd, MatIn, MatEmb, ModelT>
{
public:
MM(th::Table* data)
: Module<MatFwd, MatIn, MatEmb, ModelT>("nn.MM")... |
df8b59d7530a77ad1baa18aff486f5ab8a0e9c42 | f153c807c2ca002faa58ac9d256efb6f97db7fcb | /dlxnet/core/platform/refcount.h | 622117d1ad9be5edf54f861778bd0fa09be9131f | [] | no_license | kl456123/dlxnet | e5148a4a416279accb953e9869ca0200df29cf33 | 7dcfdc703377d282ad322b93d86802b983374755 | refs/heads/master | 2021-02-26T20:12:18.329969 | 2020-08-11T16:23:37 | 2020-08-11T16:23:37 | 245,444,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,118 | h | refcount.h | #ifndef DLXNET_CORE_PLATFORM_REFCOUNT_H_
#define DLXNET_CORE_PLATFORM_REFCOUNT_H_
#include <atomic>
#include <memory>
#include "dlxnet/core/platform/logging.h"
namespace dlxnet{
namespace core{
class RefCounted {
public:
// Initial reference count is one.
RefCou... |
7dc2579d8fee00e926750d6e9e53b67cd6b78944 | 0f6d650e209e230d6181941bd9014cb559023ff6 | /MineSweeper1/Game.h | 0b1fa04da0be3c869ef9ddd5dd6bbcd9d67a63aa | [] | no_license | dlstu1234/MinesWeeper | 837f1addad74124cb5cd057472b07d34be0d2486 | 136e72d8a2dd81e88c4cfb421962d2d3a89fb54e | refs/heads/master | 2020-07-08T03:01:49.207150 | 2019-08-26T05:10:47 | 2019-08-26T05:10:47 | 203,546,673 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 294 | h | Game.h | #pragma once
#include "Mine.h"
// 게임 내부 함수
class Game
{
public:
void GameStart(); // 시작
int Move(Mine& p, int *x, int *y); // 움직임
int GetUserInput(); // 키입력
private:
int Width = 10;
int Height = 10;
int x = 0, y = 0;
int action = 0;
};
|
ee31cf9f5acf57ea038ae9b54f3d8364b4f5a53d | df977fc187b9ac6d74b57efa2386485455c25888 | /gamma-vertica/CoordPoint/toCoordPoint.cpp | b507842d9ad917c7e4069b9e577e1d6bbb1099eb | [] | no_license | yzhang1991/gamma | c20a6edd20d3beba6e499e34805a29e0183285aa | 7ded49c29131a8d58c14a32966a09256c86a2023 | refs/heads/master | 2021-09-11T13:27:27.847588 | 2018-04-07T20:56:00 | 2018-04-07T20:56:00 | 46,943,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,610 | cpp | toCoordPoint.cpp | /*
* Copyright (C) 2013-2016 Yiqun Zhang <zhangyiqun9164@gmail.com>
* All Rights Reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (... |
e5c7eb279d59a3cb3728501b077faf5120d3429b | 9f5285c51125866fcc5031c12d876471bff4b434 | /Day 6/toeplitz_matrix.cpp | 2330b39dff705f09969fb476f4fa7ff92bb51a45 | [] | no_license | Sumeet36/DS-A-assignments | 90152c0040168fac3fc2cdd26cfec6aa03c952ee | 03b0a7e5d5c576d0cc62f1029552040341212fdb | refs/heads/main | 2023-06-09T13:52:44.788663 | 2021-07-05T19:47:08 | 2021-07-05T19:47:08 | 381,147,037 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 369 | cpp | toeplitz_matrix.cpp | class Solution {
public:
bool isToeplitzMatrix(vector<vector<int>>& matrix) {
int r=matrix.size();
int c=matrix[0].size();
for(int i=0;i<r-1;i++)
for(int j=0;j<c-1;j++)
{
if(matrix[i][j]!=matrix[i+1][j+1])
return fa... |
678b441388d0fbdee7c0a14ee0344866ec1ddc64 | 05379b5fa65a579996f5f9db24b0d524560d603f | /Kodlar/BONUS/p10_led_panel/p10-freetronics-dmd-v2/DMD2.cpp | 1ac379c351eddcdba2fcdbfd472fbf11509ec61a | [] | no_license | alperbek/arduino-kursu | 06bd524863a05e2b0d3e4400e348acf436801829 | 8863c2a0892c58261125d294005c4bc7b1fbaf0a | refs/heads/master | 2022-09-28T00:51:42.185916 | 2020-06-05T20:38:17 | 2020-06-05T20:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,414 | cpp | DMD2.cpp | /*
DMD2 Implementation of SPIDMD, SoftDMD.
Copyright (C) 2014 Freetronics, Inc. (info <at> freetronics <dot> com)
Updated by Angus Gratton, based on DMD by Marc Alexander.
---
This program is free software: you can redistribute it and/or modify it under the terms
of the version 3 GNU General Public License a... |
f9e5a3287cba09c98e62a74e44af978757c2580a | fbd11b5dc97d71831107e02b60c8a0bf0c0356d4 | /edu-oop-pv911 (Home work)/Class work/Class work/Other/Animals.h | 856681834e0ba6faab4c412da4161a9ddf063440 | [] | no_license | Gabatawr/.cpp | 28ae98331e6c679c1d5915ce1aa0381672c3cbb0 | c0124a604572be5f235d129cde0dee515f7ad160 | refs/heads/main | 2023-05-26T07:41:53.874380 | 2021-06-08T16:04:49 | 2021-06-08T16:04:49 | 375,069,304 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | h | Animals.h | #pragma once
class animals
{
public:
virtual void eat() = 0;
virtual ~animals() = default;
};
class i_carnivorous
{
public:
virtual void hunt() = 0;
virtual ~i_carnivorous() = default;
};
class i_herbivorous
{
public:
virtual void grass() = 0;
virtual ~i_herbivorous() = default;
};
class Wolf : public anima... |
cd0d69ccbdc152ca73d2a519fd9ba79cce47327f | 2435f7052bd52bf6ea0c7882675a8fc42ef92a3a | /data_structures/linked_list/4_linkedlist_insert_delete_ith_node.cpp | ea5aeb704cb7f7942365ab0fbf3d7e05e8f90c89 | [] | no_license | wmh97/data-structures-and-algorithms-cpp | 1164c8140d3b8f1ca6af9d20d63bd01f86b86650 | 94df4c9d87caab23e0dc4c012b1d6f6c2c2191a3 | refs/heads/master | 2023-07-20T14:58:49.275438 | 2021-08-25T10:41:46 | 2021-08-25T10:41:46 | 389,213,591 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,717 | cpp | 4_linkedlist_insert_delete_ith_node.cpp | #include<iostream>
using namespace std;
class Node
{
public:
int data;
Node *next;
Node(int data)
{
this->data = data;
next = NULL;
}
};
void printLinkedList(Node *head)
{
Node *temp = head;
while(temp!=NULL)
{
cout << temp->data << "-->";
temp... |
35d66cb44fab70b1fe1c48e8bc618d361784f984 | c84eeb89edd4c499000af4ae0fe90a027b7ad927 | /sem21.cpp | 27f02be7f7386de3f232d1b6c30710ba1d4d8841 | [] | no_license | Deepti725/myPrac | 31b76d69597c34e033ef8dcafdca77fab4c1f68c | 410e3c95d0fb1aab9a01f0cea4aa1383c008fe05 | refs/heads/master | 2020-03-24T22:46:51.294625 | 2018-11-25T10:33:20 | 2018-11-25T10:33:20 | 143,102,689 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 539 | cpp | sem21.cpp | #include<iostream>
using namespace std;
int main()
{
int n,c=0;
cout<<"Enter the size of array :\n";
cin>>n;
int A[n][n],B[n][n];
cout<<"Enter the array element :\n";
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
cin>>A[i][j];
}
}
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{... |
97725dcc51aaa243cd44a94a19ac4b3b4b0e4f33 | cb498ffb2af4acad55644548f7bd359370fe7496 | /src/triangulate.cpp | 7dba0d75890f696fa866a47a0273e69acdd4030a | [] | no_license | frsfnrrg/step-gdml | 04eb857d641b79e94c3575c874929c43e64f623c | 80a31a0eb5a7a003ccd16a6ef46565e0ffbf6eca | refs/heads/master | 2018-10-12T22:27:20.267698 | 2018-07-11T16:42:25 | 2018-07-11T16:42:31 | 21,978,083 | 5 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 2,900 | cpp | triangulate.cpp | #include <TopoDS_Shape.hxx>
#include <Poly_Triangulation.hxx>
#include <Poly_CoherentTriangulation.hxx>
#include <TopExp_Explorer.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS.hxx>
#include <BRep_Tool.hxx>
// Almost verbatim from [OpenCASCADE7.2.0/StlAPI_Writer.cxx:Write]
Handle_Poly_CoherentTriangulation triangula... |
55858f5b933fc99d440cdf8e7fa32eadc7fc3b25 | 4e586375caeba6c4d1409053e6ec082c624eece1 | /vehicles/vehicles/Truck.cpp | 53251b0355bc8b9b3f6ba9fa58167de34674354e | [] | no_license | arick-mounts/VehicleObject | 8b228db71fe127c10945de18423e1e306971cd75 | bdfc1df192d7c80de1c2368ab887baf32f76e416 | refs/heads/master | 2020-07-16T10:52:04.414369 | 2019-09-02T04:13:18 | 2019-09-02T04:13:18 | 205,775,255 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 695 | cpp | Truck.cpp | #include "Truck.h"
#include <iostream>
using namespace std;
Truck::Truck() {
Vehicle::Vehicle();
load = 0
tow = 0
}
Truck::Truck(string manuN, string ownerN, int numCyl, double loadIn, int towIn) {
Vehicle::Vehicle(manuN, ownerN, numCyl);
load = loadIn;
tow=towIn
}
Truck::getLoad() {
return load;
}
Truck::... |
8200ba3507996b17098892e8d2b18cfc8f133fd0 | a56b8be21ee0ed73ee03eddb532d2d0715d31048 | /examples/magicdemo/src/main.cpp | bdb867ebdf6e0bb4c761135a05a616e388610c89 | [] | no_license | ELETTRA-SincrotroneTrieste/cumbia-magic-plugin | aa287a43e8c0ff5022881a068fd0aa811d701255 | d010612d266107dcfab5218a1c041ae72c9e7467 | refs/heads/master | 2023-07-02T21:40:25.104065 | 2021-07-23T07:43:47 | 2021-07-23T07:43:47 | 341,913,805 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,076 | cpp | main.cpp | #include <quapplication.h>
#include "magicdemo.h"
// cumbia
#include <cumbiapool.h>
#include <cuthreadfactoryimpl.h>
#include <qthreadseventbridgefactory.h>
// cumbia
#define VERSION "1.0"
int main(int argc, char *argv[])
{
QuApplication qu_app( argc, argv );
qu_app.setOrganizationName("Elettra");
qu_app... |
3ab96b32dee5b8c1c69e1a8a3727beb9b4da13ee | 850d45a27ea54a6f5befcca5057e8be1281b5e47 | /src/MediaCapturer.cc | 0a47cec98e5b125902ea0c90a3c78a96dd8f816c | [
"MIT"
] | permissive | HefnySco/node-webrtc-native | 6bca407e49a70493c33917ae327bc38ebedfd9a2 | 6e19c5fe431335cc7a63379e9182ce0113f66fc0 | refs/heads/master | 2021-01-15T22:51:36.597390 | 2017-08-14T08:19:44 | 2017-08-14T08:19:44 | 99,919,255 | 14 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,699 | cc | MediaCapturer.cc | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 vmolsa <ville.molsa@gmail.com> (http://github.com/vmolsa)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including wi... |
bd7458c3333bfd462502ec9f79979a6bc0473cb7 | 034207478f623f7c93ca8893c37e572fce491290 | /benchmarks/timing_benchmark.cpp | 24e9de987c4ee5933811fa3bc47acfc1cf8523d8 | [] | no_license | lucianodasilva/prototype_bundle | c04cd389035ba38ba8d2312b83a1afa85d3448f2 | 6a3773bfe8c6e8ab784045e9650dffb346b3764a | refs/heads/master | 2023-05-24T13:54:31.700565 | 2023-05-11T21:52:18 | 2023-05-11T21:52:18 | 116,009,378 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 499 | cpp | timing_benchmark.cpp | #include <benchmark/benchmark.h>
#include <chrono>
#define MIN_ITERATION_RANGE 1 << 16
#define MAX_ITERATION_RANGE 1 << 30
#define RANGE Range(MIN_ITERATION_RANGE, MAX_ITERATION_RANGE)
void with_std_chrono (benchmark::State& state) {
std::chrono::high_resolution_clock::time_point time;
while (state.KeepRunning()) ... |
8a728e552d695261804f5f2c042386b8d76e4d59 | b40835c73f4fbe9325ed59e92ecc4c266ae5b3d2 | /DymonProject/DymonProject/SwapRateBootStrapper.h | 0219f9d4f935a68a6c1844465ad4990a59f16f7c | [] | no_license | michaelhukun/DymonRepo | 72da230df2b0d9027bafc191ec2ba225f0a42a8c | eaf56a0891db9bc17a748f314296a0726eff5657 | refs/heads/master | 2021-01-16T20:07:51.137070 | 2013-04-14T13:29:06 | 2013-04-14T13:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,193 | h | SwapRateBootStrapper.h | //created by Wang Jianwei on 01 Dec 2012
#ifndef SWAPRATEBOOTSTRAPPER_H
#define SWAPRATEBOOTSTRAPPER_H
#include <string>
#include <vector>
#include "AbstractBootStrapper.h"
#include "DiscountCurve.h"
#include "cashflowLeg.h"
#include "cashflow.h"
#include "Enums.h"
#include "Swap.h"
#include "date.h"
using namespace i... |
998bb79869f5ef9c68644181ebce4c8aff0629a1 | 54f9692f8a8d92f7c47d7b6cedcc95b6e3d80b0d | /Source/Application/RCSFile.cpp | abca31eaf4b27e03a8afc41a5e4ab77773272153 | [
"BSD-3-Clause"
] | permissive | HeliumProject/Core | 7f65008325149e53f9f61a07c1355cfe43a95a32 | 0f5821537573c0f2ad5b302ef4f4e8a30de09d3f | refs/heads/master | 2022-09-14T06:32:38.776481 | 2022-07-11T18:01:48 | 2022-07-11T18:02:45 | 129,567,266 | 34 | 15 | NOASSERTION | 2019-01-05T02:32:56 | 2018-04-15T01:27:31 | C++ | UTF-8 | C++ | false | false | 9,272 | cpp | RCSFile.cpp | #include "Precompile.h"
#include "RCSFile.h"
#include "Foundation/FilePath.h"
#include "Foundation/Log.h"
#include "Application/RCS.h"
using namespace Helium;
using namespace Helium::RCS;
void RCS::File::GetInfo( const GetInfoFlag flags )
{
GetProvider()->GetInfo( *this, flags );
}
void RCS::File::Sync( const uin... |
1fed9a45c5d91815375a19003a888b33d835950a | 52c336d3fc5828ae9559d532499400a9ed1ee8fd | /grafuri/dijkstra_basic.cpp | b2adab5efa43e03df9f144509426b2d035ec1dc0 | [] | no_license | KruZZy/11b | a51b4bde950cd58a606b123d358067720de4db69 | 587ade4e71aa91535a7ed91441a1aac79389527f | refs/heads/master | 2020-08-31T15:35:28.294495 | 2020-02-27T08:40:35 | 2020-02-27T08:40:35 | 218,723,376 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,314 | cpp | dijkstra_basic.cpp | #include <bits/stdc++.h>
using namespace std;
ifstream in("graf.in");
const int N = 100,
oo = INT_MAX/2;
int P[N], dist[N], cost[N][N], n, m;
bool v[N];
void drum(int x) {
if(P[x] != 0) drum(P[x]);
cout << x << ' ';
}
int main()
{
in >> n >> m;
for(int i = 1; i <= n; i++)
for(in... |
d3f08ffb1562447227e1ccbf0b9b47e54be5bb22 | 19cccae9f14fef24f87c8cded25b9ed8ac3a4c4e | /src/swing_vlp/src/manual_visualizer.cpp | bd9a685db79189f49616c3919fd7ecfaae71a27f | [] | no_license | shingyo12/catkin_ws | ab70d41ad6aa54a2c40a7b24adc496dc46f3c7c2 | 68547f806e72156043408dae664b98b15bd0011e | refs/heads/master | 2020-04-07T19:37:16.966634 | 2018-12-13T08:17:31 | 2018-12-13T08:17:31 | 158,648,175 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,302 | cpp | manual_visualizer.cpp | #include <iostream>
#include <string>
#include <vector>
#include <ros/ros.h>
#include <std_msgs/Float64.h>
#include <sensor_msgs/PointCloud2.h>
#include <pcl_ros/point_cloud.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/io/vlp_grabber.h>
#inclu... |
67f52c952166d3dc51dfade59f6aaa3a6c4c6620 | cb80a8562d90eb969272a7ff2cf52c1fa7aeb084 | /inletTest6/0.042/k | d55fb4079d2f07a24b624e280336002529008825 | [] | no_license | mahoep/inletCFD | eb516145fad17408f018f51e32aa0604871eaa95 | 0df91e3fbfa60d5db9d52739e212ca6d3f0a28b2 | refs/heads/main | 2023-08-30T22:07:41.314690 | 2021-10-14T19:23:51 | 2021-10-14T19:23:51 | 314,657,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348,749 | k | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
... | |
f5c033aba5e7d05f9aacca5b7f00dbf233e4f543 | c036d3b8dac648900fea6c0fa25a06581fac6245 | /emptyheaded/src/Trie.hpp | 01de5a481e24889322c27694c9f019598f0c5d86 | [] | no_license | meego/chinstrap | 70b4a3e8847800d7644b14fc8692107c7f24df5c | 6c9ded20ce9e11cdf33ed133c9adade49b714301 | refs/heads/master | 2021-01-22T13:47:08.458614 | 2015-04-30T01:02:57 | 2015-04-30T01:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,194 | hpp | Trie.hpp | #ifndef _TRIE_H_
#define _TRIE_H_
#include "Block.hpp"
#include "Encoding.hpp"
#include "tbb/parallel_sort.h"
#include "tbb/task_scheduler_init.h"
struct SortColumns{
std::vector<Column<uint32_t>> *columns;
SortColumns(std::vector<Column<uint32_t>> *columns_in){
columns = columns_in;
}
bool operator()(si... |
dc53f227eb653fea402a0490798fe086db1f8ea5 | 9581061fc52c42fbb91d853f44f448e3747a5da5 | /Source/Nelobin/Types.cpp | 41f425bed53be43d91cf768118fe6c2455dd17c3 | [
"MIT"
] | permissive | dgdev1024/Nelobin_Library | afd83d1483acf13d3cfc77f60ed9ea1d7d1aa7dd | 74f6174a069b6852fe7ffb8f690f99ee4f8f45f8 | refs/heads/master | 2021-01-11T20:34:24.337372 | 2017-01-16T19:54:05 | 2017-01-16T19:54:05 | 79,144,791 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 863 | cpp | Types.cpp | ///
/// \file Types.cpp
///
#include <Nelobin/Types.hpp>
namespace Nelobin
{
String stringifyType (const U8 a_type)
{
switch (a_type)
{
case Datatypes::Unknown: return "Unknown";
case Datatypes::SignedByte: return "Signed Byte";
case Datatypes::Sig... |
b456afb43be4cc8875a09109963665e3675e8831 | 2d7974502098a1c6c3b064befee0b68cd966fea1 | /C/PSU_zappy_2018/src/Graph/Game/Game.cpp | e49e857391ea65e4310c57e0d5d5b658cdef6ed7 | [] | no_license | Tifloz/Tek2 | 85d280aac303a81cecbba7f0254b23a434583efd | e4cf798878c991ca7bc41e3dc075d47da8b854aa | refs/heads/master | 2020-12-10T15:15:16.569214 | 2020-01-13T15:43:33 | 2020-01-13T15:43:33 | 233,628,967 | 0 | 0 | null | 2020-10-13T18:49:49 | 2020-01-13T15:33:25 | C++ | UTF-8 | C++ | false | false | 19,420 | cpp | Game.cpp | /*
** EPITECH PROJECT, 2019
** Graph
** File description:
** Created by Denis Demouveau,
*/
#include <sstream>
#include "Error.hpp"
#include "Game.hpp"
Game::Game(sf::RenderWindow *window, std::string &activeTab, Socket &server) :
Scene(window, activeTab), _server(server)
{
}
#include <iostream>
std::vector<std::st... |
32d540c3f2074f0bae54147581414bff0692b05c | c51a6916d05c907779eb4b0864de678a9a95a065 | /arduino/pirem.cpp | 3f8a269be8f7700f6fcf3341e879f0f2a41288c2 | [] | no_license | julianes10/ipaem | b197f9cf2079498ba9e7a9687086175a5d1d4743 | 6f6e3179aa64b29d697059662697b835eebf706a | refs/heads/master | 2022-03-28T14:28:44.990515 | 2022-03-09T17:26:55 | 2022-03-09T17:26:55 | 104,714,268 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,037 | cpp | pirem.cpp | #include <Arduino.h>
#include "pirem.h"
class PIREM PIREM;
#define DATA_PIN_PIR 8
//------------------------------------------------
//------------------------------------------------
//------------------------------------------------
PIREM::PIREM()
{
_status=false;
pinMode(DATA_PIN_PIR, INPUT); // dec... |
fa1a6bb789166efe78b022c07a67645b92a09f80 | bfa94b1e2deed41e36a9ab56446b5d06cc8ee110 | /Trees/Judge Reviews.cpp | 60e3cbe9ca0952e71cad3f4e689c5a36eef22cb6 | [
"MIT"
] | permissive | shawamar/InterviewBit | 2f067392a4ed1a3c4b588fa1816fc88081481372 | 6a800a35e8f9bc0a66d7f94c1dca25bca3abff6f | refs/heads/master | 2020-12-26T18:19:11.166699 | 2020-02-01T09:52:30 | 2020-02-01T09:52:30 | 237,594,236 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,407 | cpp | Judge Reviews.cpp | /*
Judge Reviews
You are given the task of ranking hotel reviews in this question. Lets say, you are given a bunch of user reviews where
each review is a string. Assume that our Expedia bots have figured out a set of "Good words" which indicate that the
user likes the hotel. The more the number of "Good words", the m... |
ec0e7ff3f64d00015ec5b33e25776172a0592801 | 3749d1d4397b075d681fe75fc235ceb58180642c | /2.1/point/util.cpp | 3aaa1cd006e10997d0e81ba07313691f8aadb2a0 | [] | no_license | Examnes/super-pooper | 35564acf64b99cbbc7769bb7dc42e27e7ffdc952 | b2762c2c7a5bf4eaeeb291d23372d49fd806b057 | refs/heads/master | 2022-10-20T16:26:01.844675 | 2020-07-03T20:11:00 | 2020-07-03T20:11:00 | 266,134,009 | 1 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 2,475 | cpp | util.cpp | #include "util.h"
#include <fstream>
#include <limits>
#include <math.h>
#include <algorithm>
#include "point2d.h"
void randomToFile(std::string fname,unsigned int count)
{
if(count)
{
std::ofstream file;
file.open(fname);
for(count;count;count--)
{
file<<(rand()/(RA... |
8fcf06d9c660d8e7539116cc591dfbb500b2d9a3 | 25b36236d90aa38deb0e28db06f5f5ee5264d931 | /NPSimulation/Scorers/CylinderTPCScorers.cc | fd02e7dbb71827956165f7fcd77c6108c11a03e9 | [] | no_license | adrien-matta/nptool | 54b5ea6fe2d8c226e7422a948d3ecc94d62d1ff2 | 415ad50066f715ca1de312da1202201f9381e87e | refs/heads/NPTool.2.dev | 2021-04-18T23:52:44.645407 | 2019-09-02T12:38:49 | 2019-09-02T12:38:49 | 13,268,020 | 36 | 20 | null | 2016-12-05T11:46:35 | 2013-10-02T10:11:22 | C++ | UTF-8 | C++ | false | false | 5,770 | cc | CylinderTPCScorers.cc | /*****************************************************************************
* Copyright (C) 2009-2016 this file is part of the NPTool Project *
* For the licensing terms see $NPTOOL/Licence/NPTool_Licence *
* For the list of contributors see $NPTOOL/Licence/Contributors *
***... |
cabccbb4001679716d79fc5fd7e7f702b38efe1b | b8e815a57b1ec7592769433a07a6c79b26678145 | /UVa/11334 - Antenna in the Cinoc Mountains/cinoc.6.cpp | 05a66170f12198f8d2ad91301c9cf2bdc406e8df | [] | no_license | AlMamun-CSE/competitive_programming | 865ece03cd9a6235bd9412244e650cc57c70e0d2 | c167e0de7b59849e47ab8404c4018a3eb1ffa3bf | refs/heads/master | 2023-08-26T11:01:21.419074 | 2021-11-04T01:41:37 | 2021-11-04T01:41:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,736 | cpp | cinoc.6.cpp | // Andrés Mejía
// Accepted, too.
using namespace std;
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <sstream>
#include <fstream>
#include <cassert>
#include <climits>
#include <cstdlib>
#include <cstring>
#include <bitset>
#include <string>
#include <cstdio>
#include <vecto... |
2de1e6204921bf3c85e302ccaccfa8c304e0aecc | b67825906580033d17f4451e51b707e6db24e2a3 | /cpp/sd_common/Frame.cpp | 1d871d0179c6a84adc2606ccc3fd153e0a8b0c1b | [] | no_license | emilmoham/SignDetectionSystemCIS4398 | 43716593172c44922ebbd233341815695956eefa | ed91a3ded24a2f7a3810635e9a5a4f489e3db02e | refs/heads/master | 2021-08-28T09:46:29.816025 | 2017-12-11T21:51:25 | 2017-12-11T21:51:25 | 105,054,002 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,564 | cpp | Frame.cpp | #include "mpi.h"
#include <cstdlib>
#include "Frame.h"
#include "LogHelper.h"
static const int MAX_FRAME_BUFFER_LEN = 8 * 1024 * 1024;
Frame::Frame() :
cvFrame(),
index(0),
m_buffer(nullptr),
m_bufferLen(0)
{
}
Frame::Frame(cv::Mat frame, int frameIndex) :
cvFrame(frame),
index(frameIndex),
... |
93242f92809588102ef81ffd8440016bcf5d203f | 46c8e4ce6be2805014a87dfa36a64af99d1ceec3 | /opencv/6/boxFilter.cpp | 19e42ba692949a6ec080511b01e38cc8630a794a | [] | no_license | sjtujxwang/image-processing | 05550152013a1cdbef022ecb9255a62736866f42 | 8592fdeeaefad5483062ace94cbc97ec87b0d2ae | refs/heads/master | 2022-11-26T13:54:59.498308 | 2020-07-27T15:14:50 | 2020-07-27T15:14:50 | 276,915,806 | 5 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,692 | cpp | boxFilter.cpp |
//--------------------------------------【程序说明】-------------------------------------------
// 程序说明:《OpenCV3编程入门》OpenCV3版书本配套示例程序31
// 程序描述:方框滤波boxFilter函数的使用示例程序
// 开发测试所用操作系统: Windows 7 64bit
// 开发测试所用IDE版本:Visual Studio 2010
// 开发测试所用OpenCV版本: 3.0 beta
// 2014年11月 Created by @浅墨_毛星云
// 2014年12月 Revised by @浅墨_... |
80f3e3227dbd95a076aa20c8000ff1474f116f22 | b88330194eab0dbbb0742129dcb77282da4ba0b8 | /2/cpp/bomberman-2015-beaume_a/src/tronberman/Menu/Items/Resume.cpp | c43d9f7ac0eb79adc7c393d915e6042f93831fd6 | [] | no_license | GeoffreyHervet/epitek | 98cba959844812c5363bb514b948ce2f3bdca79b | e37bcf1136929e519bd1ffabe014e12c8a9f78e2 | refs/heads/master | 2021-03-24T10:25:36.869836 | 2013-02-01T15:03:04 | 2013-02-01T15:03:04 | 3,387,019 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | cpp | Resume.cpp | #include "Resume.hpp"
namespace Menu
{
Resume::Resume(const std::string &name) :
AMenuObject(name)
{
}
Resume::~Resume()
{
}
bool Resume::selected(::Menu::IMenu &, MyGame &game, gdl::Input &)
{
game.setState(MyGame::GAME);
return true;
}
}
|
ff54a445f800b0e787e1d9217378b26065137e72 | ace20ae898aadf18c4ef8a2355b528422fc27bb5 | /ccc_cco/coolnumbers.cpp | ef65e04a50491d9afccc08a9b3d34ad8f123be8e | [] | no_license | pidddgy/competitive-programming | 19fd79e7888789c68bf93afa3e63812587cbb0fe | ec86287a0a70f7f43a13cbe26f5aa9c5b02f66cc | refs/heads/master | 2022-01-28T07:01:07.376581 | 2022-01-17T21:37:06 | 2022-01-17T21:37:06 | 139,354,420 | 0 | 3 | null | 2021-04-06T16:56:29 | 2018-07-01T19:03:53 | C++ | UTF-8 | C++ | false | false | 283 | cpp | coolnumbers.cpp | // https://dmoj.ca/problem/ccc09s1
#include <bits/stdc++.h>
using namespace std;
int main() {
int aqt, bqt, rqt = 0;
cin >> aqt >> bqt;
for(int i = 0; i < 23; i++) {
if(pow(i, 6) >= aqt && pow(i, 6) <= bqt)
rqt++;
}
cout << rqt << endl;
}
|
c0e0251cc5cdc4a963676d3de948831a40b6a95a | 98f217e4b47b71d0b24145340bf865fba2dd2cb4 | /Level_5/Visrrut Assignments/DD_projects_3.5.5_v2/DD_projects_3.5.5_v2/main.cpp | a86c772e27f2bae7b786f1ed8435ab7e78debcf6 | [] | no_license | VictorTo100/BaruchCplusplus | 21c15549c089b3351fb454db6e907f6ab6c4d369 | 17a00873d79afd843e6d9d70a7e7b791de2a5dc1 | refs/heads/master | 2023-04-11T03:10:32.233937 | 2021-04-24T14:09:57 | 2021-04-24T14:09:57 | 361,177,309 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 3,685 | cpp | main.cpp | /*Author: Vishrut Talekar; Nov 2020
*/
/*Testing:
****************** Deleted functionalities already tested in level 3
***************** Already Tested in 2.4.1 *****************************
* Testing the Operator overloading for Point class primarily
*
* ***************** Already Tested in 2.4.2 ********************... |
8cbe55784ffcc3fb42945d83d39957879f921696 | 2d91d1af1f049248c9e5f2c4047289d614fcb0b4 | /cpp_utils/SSLUtils.h | 90546b83865b46af27ed5fb6d7c96237ba6f5095 | [
"Apache-2.0"
] | permissive | chegewara/esp32-snippets | 8b9d8e5fb8cbe9ef912b38561795620944b59b01 | 874ce79815817a4796612716c95ea6d639c9df0b | refs/heads/wip | 2021-05-07T03:38:48.099902 | 2018-10-01T23:37:06 | 2018-10-01T23:37:06 | 110,790,433 | 9 | 4 | Apache-2.0 | 2018-10-03T22:53:41 | 2017-11-15T06:01:18 | C | UTF-8 | C++ | false | false | 494 | h | SSLUtils.h | /*
* SSLUtils.h
*
* Created on: Sep 16, 2017
* Author: kolban
*/
#ifndef COMPONENTS_CPP_UTILS_SSLUTILS_H_
#define COMPONENTS_CPP_UTILS_SSLUTILS_H_
#include <string>
class SSLUtils {
private:
static char* m_certificate;
static char* m_key;
public:
SSLUtils();
virtual ~SSLUtils();
static void setCertific... |
8615873a269aaf0a58eec683a6d2ea2a622043e1 | f50776ed33831ff7fe93d185e051cce5ebd4636a | /MyApplication.cpp | 663361c1fede4f7cc1f0e4266b4a72f833992430 | [] | no_license | Md5Inj/Xlebovich_1.1 | b876fca26e646ba5e034ab815846624e7054b381 | 32d576301b0864b6ed5d1172877c94c212ebeed4 | refs/heads/master | 2021-04-15T19:00:42.910800 | 2018-03-26T21:04:57 | 2018-03-26T21:04:57 | 126,889,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,288 | cpp | MyApplication.cpp | #include "MyApplication.h"
MyApplication::MyApplication()
{
List l;
char input = 0;
int keyCode = 0, choice = 0;
string s;
char c[30];
while ((int)input != 48)
{
cout << "1 - Add the element to array" << endl
<< "2 - Print a array" << endl
<< "3 - Remove the element" << endl
<< "4 - Get ... |
895014f44066d1dd1a15f565c295ddf747029ed4 | d5819163e2c72bd2022b8557987140bed8fc615f | /Project1/Project1/MinerView.h | f3759f7b06f4d82af208c516894b3351294a9896 | [] | no_license | MiliMoutin/BitcoinsFaseI | 0df89081e155c20891e5d39cd105923fe7591d72 | f1f8c0e36b75ae1f7b8f8e98c95eab8c20415e80 | refs/heads/master | 2020-05-27T09:12:00.049805 | 2019-06-26T20:31:24 | 2019-06-26T20:31:24 | 188,560,780 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 230 | h | MinerView.h | #pragma once
#include "Allegro.h"
#include "Miners.h"
class MinerView: public Observer
{
public:
MinerView(Allegro& alle);
~MinerView(){}
void update(void* model);
private:
ALLEGRO_SAMPLE* sound;
void ChaChig(Miner* min);
}; |
cc58b2be3257a34600bccad7ec9e797900de3589 | eb384883038c4b8d21c617418f0827902673f01c | /NetSDK/SDKDEMO/MsgDlg.h | 745f7d2f11bdbe1a9bbfb6c29ec9ca91b653e4f8 | [] | no_license | vaizmanai/TVT_SDK_1.2.0.44 | a62a4f50f50a4917936f5f5db70a89a2a5ad9e11 | e50355afe217b4d0c5f95aaadda910bda374ca9a | refs/heads/master | 2022-12-25T22:50:07.089526 | 2020-10-02T16:33:40 | 2020-10-02T16:33:40 | 299,368,639 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 592 | h | MsgDlg.h | #pragma once
#include "afxwin.h"
#include "afxcmn.h"
// CMsgDlg 对话框
class CMsgDlg : public CDialog
{
DECLARE_DYNAMIC(CMsgDlg)
public:
CMsgDlg(CWnd* pParent = NULL); // 标准构造函数
virtual ~CMsgDlg();
// 对话框数据
enum { IDD = IDD_MSG_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DD... |
44260080e2cf2a6365a50753cd24e9a1a7b717eb | 28ec742cca66c25a7aacbfda5d907cfe94f45a67 | /main.cpp | 7db4ff1e1c67ab092cffe0fdef60d01983df9843 | [] | no_license | jinlin1/Reed-Solomon-Encoder-Decoder | 8232e1b36a8fdbf88a0ece18fa2ad347637e9ae2 | 3d88b51f0331242a22194b0ad723fb40c11a7d14 | refs/heads/master | 2020-04-05T12:49:42.272122 | 2019-05-17T17:28:49 | 2019-05-17T17:28:49 | 156,882,416 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,371 | cpp | main.cpp | #include <chrono>
#include <gtkmm.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include "Package.h"
#include "Parse.h"
#include "Encoder.h"
#include "Decoder.h"
void encode_button_clicked(Glib::RefPtr<Gtk::Builder> builder)
{
Gtk::Window* error_window;
Gtk::Label* error_msg_widget;
Gtk::ComboBoxT... |
48ebe11ecdf4345b326008541f6cc2a411c2b00e | bb844c108809aefa32fc46f1db0c07d670b19598 | /src/AST/AST.cpp | 434db4d27d086f368e0191ab0b363199cb67e89f | [] | no_license | jdao55/toy-compiler | de81a2397820451c4d68fcc20743fbc0ba1839e6 | 1b182941004a80eba32b46cbb20456af973b1434 | refs/heads/master | 2021-07-05T07:58:36.994994 | 2020-12-22T01:16:46 | 2020-12-22T01:16:46 | 212,196,914 | 1 | 0 | null | 2020-08-17T22:12:43 | 2019-10-01T20:49:35 | C++ | UTF-8 | C++ | false | false | 14,261 | cpp | AST.cpp | #include "llvm/IR/Verifier.h"
#include "AST.hpp"
#include "../misc/util.hpp"
#include <fmt/format.h>
std::map<std::string, uint32_t> BinopPrecedence{ { "<", 10 }, { "+", 20 }, { "-", 20 }, { "*", 40 } };
llvm::Value *LogErrorV(std::string_view Str) { return util::logError<llvm::Value *>(Str); }
llvm::Function *getFu... |
2acdbb39dd0bf7c2ab444093961f167b37a40875 | f444bfd99194475fd394ef2a63a37fc3b8937440 | /KonoCPP/Human.h | 105aec3fbf8199bd184043da1603eee050bf4d80 | [] | no_license | taweisse/kono-cpp | abc61cebe7ce459790ee9211d9da909003ab9a27 | 72f82c0bb57a0dd62dcaca4124227d90b0360f71 | refs/heads/master | 2021-09-06T11:45:38.047228 | 2018-02-06T06:43:49 | 2018-02-06T06:43:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | h | Human.h | #pragma once
#include <string>
#include "Player.h"
#include "Helpers.h"
using namespace std;
class Human : public Player
{
public:
Human(const helpers::Color& = helpers::NullColor, const int& = 0);
// Displays a menu to the player before they actually make a move.
virtual const Move PrePlay(Board&);
... |
25edef5f3c6634957aaba067bc6860aeb1729ba8 | b294e49b0ac4305e433d90a179eb309e6ba9238e | /graphics/applications/view_points/shape_reader_base.h | 4ccbdc6bd0a61cfab2b5c92b6d603908a804af0e | [
"BSD-2-Clause"
] | permissive | NEU-LC/snark | beeb81fc2d66a543035d9e576f100483c8c10a98 | db890f73f4c4bbe679405f3a607fd9ea373deb2c | refs/heads/master | 2023-08-16T09:24:29.362774 | 2021-08-25T01:12:48 | 2021-08-25T01:12:48 | 418,307,005 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,594 | h | shape_reader_base.h | // Copyright (c) 2017 The University of Sydney
#pragma once
#include <Eigen/Core>
#include "../../../math/interval.h"
#include "reader.h"
#include "types.h"
#include "../../block_buffer.h"
namespace snark { namespace graphics { namespace view {
class shape_reader_base : public Reader
{
public:
void add_vertex( c... |
457879ab92421885287e7994686bc7ba5dd6299e | 366e2cdd40f6afef727cf24f71c70e555410fef5 | /dev/exceptions/badindex.cpp | 56641ba3db95c1ee2b955f6d109e1ba5dbc657b9 | [] | no_license | benkopolis/kmeanstriangleclustering | 20a1060040074dfd28125c8b87b2d387e6bf65f5 | 8714d70f1a3e6542d44cfe16e29ce97de64622ff | refs/heads/master | 2020-12-24T13:17:10.643581 | 2017-03-22T20:31:07 | 2017-03-22T20:31:07 | 32,231,248 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 307 | cpp | badindex.cpp | #include "badindex.h"
BadIndex::BadIndex(const char *file, int line) :
_data("Given index is out of range", file, line)
{
}
BadIndex::BadIndex(const char * msg, const char *file, int line) :
_data(msg, file, line)
{
}
const char *BadIndex::what() const throw()
{
return this->_data.what();
}
|
849882d942534e8b828dd8ca1ba7d747988796a5 | 7b884afc99055f0734435d918a9e11cdcede3499 | /GameTutorial/CSniperBoss.cpp | f2797a1cd5b2a0beb785de09f9cc16739bd380f6 | [] | no_license | doanhtdpl/game-con-tra | 5ea83a20a15632fe7facd89910b4754a212f0305 | c3dc9e0e49e71d35f82326ec8f387130154b1ca0 | refs/heads/master | 2020-06-05T02:09:10.183272 | 2015-01-23T17:35:01 | 2015-01-23T17:35:01 | 40,470,425 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,598 | cpp | CSniperBoss.cpp | #include "CSniperBoss.h"
#include "CPoolingObject.h"
#include "CCollision.h"
#include "CContra.h"
#include "CLoadGameObject.h"
#include "CCamera.h"
#include "CManageAudio.h"
CSniperBoss::CSniperBoss(void)
{
this->Init();
}
CSniperBoss::CSniperBoss(const std::vector<int> &info)
{
if(!info.empty())
{... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.