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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
69ae358a872c1f89524f12b33710e1ded23ffa05 | efea68eccbac678f5ad78cc14f0b8cbac3109ee7 | /Week2i/array/pdf/maximum reapting element.cpp | 620cc44643134dc4b8bb5f68a700bb78b10174f5 | [] | no_license | indraraj844/ipmp1921Week2 | dc2795a6f8f4b6f8742f1a972f895149c2831aef | 3003ff0cc6fa7f61601369b4ee6ca51f43cbc4ca | refs/heads/main | 2023-04-21T11:02:35.613765 | 2021-04-20T03:24:46 | 2021-04-20T03:24:46 | 355,276,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 443 | cpp | maximum reapting element.cpp | #include<bits/stdc++.h>
using namespace std;
void find_majority(int arr[],int n)
{ int k=10000;
for(int i=0;i<n;i++)
{
arr[arr[i]%k]+=k;
}
int max_index=0;
for(int i=1;i<n;i++)
{
if(arr[i]>arr[max_index])
max_index=i;
}
cout<<arr[max_index]%k<<" i... |
9aeecf8aa67a2db55a3eff5c44393f7d4b134dc7 | 2e681135562c2b9148947526e3d16ed42815cee0 | /Texto.h | 1f1149adf7a41f1fa2f0765ea4d9184dccaa9351 | [] | no_license | Hackables44/TareaProgramadaII | 787aa5d5156f1efadae96b3dee6adc1abf0fb8c1 | 14634e54ae9afde942e1691b99ac2eb278c8c1f7 | refs/heads/master | 2020-03-19T08:37:38.459809 | 2018-06-10T16:13:24 | 2018-06-10T16:13:24 | 131,327,925 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,356 | h | Texto.h | //Texto.h Cabecera de la clase Texto
#ifndef _TEXTO_H
#define _TEXTO_H
// clases que utilizará
#include "Diccionario.h"
//#include "Palabra.h"
#include "string"
#include <fstream>
class Texto{
private:
Diccionario * diccionarioPtr; // puntero al diccionario que utilizará
int cantidadPalabras; // ... |
36f2dcbd0b4a7dfa686a43b0fdbc14978b29e5b9 | 7046d581da4fddbb931343dbeba74654b30ae15b | /include/tailor/certVerify.h | b0471cd903250415c33c7b8f6847f01cc2712201 | [
"MIT"
] | permissive | Adennan/Tailor-tls | 8ddb56c713e5c81eb1e2829eceaa31fd19e866dc | 2d24cb016a26f13ffa9627a193bc8177489f1a7f | refs/heads/main | 2023-03-23T12:34:02.878820 | 2021-03-22T10:27:55 | 2021-03-22T10:27:55 | 348,375,095 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 667 | h | certVerify.h | #ifndef CERT_VERIFY_H
#define CERT_VERIFY_H
#include "handshake.h"
#include "types.h"
#include <cstdint>
#include <string>
#include <iostream>
#include <openssl/x509.h>
namespace tailor
{
class CertVerify : public Handshake
{
private:
x509::sign_algo _sign_algo;
std::basic_string<uint8_t>... |
5748e88887c94a1dcf0cdd6a743a01a465249791 | 3c7c200fa7b0bcf50bd099b0081bd7e3332b638d | /src/UI.cpp | 5c9f718631903c5e1b5f8623118c8933cffdcf25 | [] | no_license | dushan42/thegrid | edd2d3568e16b4708b629247220f765922565aa2 | cb17b142002763b2d9116f857d75a40a632f0db5 | refs/heads/master | 2022-07-01T00:34:52.665219 | 2013-02-14T20:56:39 | 2013-02-14T20:56:39 | 8,106,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,884 | cpp | UI.cpp | #include "UI.h"
#include "OpenGL.h"
#include "Font.h"
#include "Texture.h"
#include <SDL.h>
static GLuint g_texture = 0;
static int g_xMouse = 0;
static int g_yMouse = 0;
static int g_hotItem = 0;
static int g_activeItem = 0;
static int g_mou... |
142049a6b47484e0d4058a69130ef81ff4a7dbd4 | ae92a9930a03e7283039c9ce0f7cd809a205f859 | /Musume/SimplePortrait.h | 0941a978fb2a6ba24ddf372d829f37ccbca41492 | [] | no_license | Warhammer4000/OpenGLMusume | 07f4d4659d60367e78fe0927a45969b7e1b5beeb | 5c9550187a47e2707c019a9272d72ac6b99a4d35 | refs/heads/master | 2020-12-31T04:55:38.901585 | 2016-12-28T01:09:21 | 2016-12-28T01:09:21 | 76,187,669 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 87 | h | SimplePortrait.h | #pragma once
class SimplePortrait
{
public:
SimplePortrait();
~SimplePortrait();
};
|
a7f23790b0a19db5c9ca467f3952a1414f39f9d9 | f015d2b8264dfd2b45349a7a421dbec5375d462f | /test.cpp | 0dc7165f6eb4a66d9a5e8460312bdccd53e1b82f | [] | no_license | Request2609/codeOfPractice | b8ab9f36a2e7ebd435645868f71ede0bd9875056 | 5226ff6616272f83423780209cb2dfe43c77527a | refs/heads/master | 2021-07-12T17:25:28.637166 | 2020-09-20T14:44:20 | 2020-09-20T14:44:20 | 199,008,203 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,264 | cpp | test.cpp | #include <iostream>
#include <vector>
//评测题目: c++ , 给定一个数组和一个数组下标,请根据下标值把数组“对折”一下。
// 如 给定数组: 1,2,3,4,5,6,7,8,9 和下标3. 结果为:7,6,5,4,3,2,1,8,9
// 注意考虑边界条件
void swap(int&num1, int& num2) {
int tmp = std::move(num1) ;
num1 = std::move(num2) ;
num2 = std::move(tmp) ;
}
void fun( std::vector<int>& array , int index){
... |
9589cff07195aace5471684444e083c5a103e51d | 4019d98ce38791a4e145c639d48aef5666a3fd5c | /conts/team/buaast19/6/g.cpp | a91dc7a4760818e5ad4011e938280fc4c808d227 | [] | no_license | karin0/problems | c099ded507fabc08d5fe6a234d8938575e9628b7 | b60ffaa685bbeb4a21cde518919cdd2749086846 | refs/heads/master | 2023-02-09T21:55:24.678019 | 2021-01-08T16:46:54 | 2021-01-08T16:46:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,354 | cpp | g.cpp | sort(use,use+n,cmp);
for(int i=0,j=1%n;i<n;++i){
while(j!=i and (use[i]^use[j])>=0)
j=(j+1)%n;
}
struct node{
ll x,y;
int xx;
node(){}
node(ll _x,ll _y){
x=_x,y=_y;
if(y==0){
if(x>=0)xx=1;
else xx=2;
}else{
... |
3760af399ec7f26b3e574280becf37b0b57a5f02 | fadd572fac56a74d326bf4b0e64c2d25a3543172 | /Tcp_Server_Client/displayform.h | 4d7dc46aadbec6ad4604f4e2046be1e7b6654ae5 | [] | no_license | XueDee123/QT_Exercise_Tools | d36aec4d9439a34c2ceb55f6a43b0a081c2e7a28 | 1555e7c5dd699635a95af51acf0e1440b86a9365 | refs/heads/master | 2023-03-01T01:29:13.163193 | 2021-01-29T05:28:20 | 2021-01-29T05:28:20 | 331,553,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 741 | h | displayform.h | #ifndef DISPLAYFORM_H
#define DISPLAYFORM_H
#include <QWidget>
#include "Parameter.h"
namespace Ui {
class DisplayForm;
}
class DisplayForm : public QWidget
{
Q_OBJECT
public:
explicit DisplayForm(bool connect=false,QWidget *parent = nullptr);
explicit DisplayForm(SocketInfo info,bool connect=false,QWi... |
250a1eb2ab59118abf5c84c67557e2312e8a77da | b42e741cc8934423c3b681447cd5d9a9c8e00ce7 | /string v4.0/palidrom.cpp | 38364240b0007c1e7a7d02bbb47fb964f179b8aa | [] | no_license | wildstrider/kalcul | 8730514fe1eee5ae47e68369873499d325f0c323 | dac62066d40c90793fff6ddd6c9b2895fe01df30 | refs/heads/master | 2023-04-12T14:54:33.928588 | 2021-04-11T14:49:39 | 2021-04-11T14:49:39 | 356,895,388 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 196 | cpp | palidrom.cpp | #include <iostream>
using namespace std;
void text(char* t, int s);
void main()
{
string text = "я иду с мечем судия";
int s = text.length();
}
void text(char* t, int s)
{
} |
38351a5ce9bfa3d55b66924825a5fb08fcc2fa91 | 5919d75bbf999847b12e5f0b4f401e3c8f756883 | /bmpReader/MyFrameWnd.cpp | 46496704cda0ea4c03dee523836a4bec5fcb9fcc | [] | no_license | popelenkow/MyBmpReader | 2f46afdbd6dd3cc30c16865684b889d6d1777408 | d2c59e191ec3d2fe35b1ea451242d639975f57be | refs/heads/master | 2021-01-10T04:37:00.642194 | 2016-02-23T07:45:00 | 2016-02-23T07:45:00 | 51,840,728 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 783 | cpp | MyFrameWnd.cpp | // MyFrameWnd.cpp: файл реализации
//
#include "stdafx.h"
#include "bmpReader.h"
#include "MyFrameWnd.h"
// CMyFrameWnd
IMPLEMENT_DYNAMIC(CMyFrameWnd, CWnd)
BEGIN_MESSAGE_MAP(CMyFrameWnd, CWnd)
ON_WM_PAINT()
ON_WM_ERASEBKGND()
END_MESSAGE_MAP()
CMyFrameWnd::CMyFrameWnd()
{
}
CMyFrameWnd::~CMyFrameWnd()
{
clean_i... |
69cbd3593268509ed82128c05e05d5d330089bba | fccf42a949aaf0f6d756120c70c7aace514c7011 | /FreightSimulator/FreightSimulator/State.hpp | eee5c2b6435ee78653c5005679095c3d15117d64 | [] | no_license | gcbh/ACO-platooning | f9126e4b233a1c7111320981b6eadf8a394d3c3b | b1dc618fb11696c2623ccacaa48a262e7c56471c | refs/heads/master | 2020-03-09T03:52:42.701586 | 2018-04-07T23:09:41 | 2018-04-07T23:09:41 | 128,574,825 | 0 | 0 | null | 2018-04-07T23:09:42 | 2018-04-07T22:46:34 | C++ | UTF-8 | C++ | false | false | 1,183 | hpp | State.hpp | //
// RenderState.hpp
// FreightSimulator
//
// Created by Sean Amadio on 2017-07-05.
// Copyright © 2017 FYDP. All rights reserved.
//
#ifndef RenderState_hpp
#define RenderState_hpp
#include "imgui.h"
#include "imgui_impl_glfw_gl3.h"
#include <stdio.h>
#include <map>
#include <GLFW/glfw3.h>
#include "glm.hpp"
... |
3e64f1343247d29262855a3ac9dde50042b73156 | cab2a22409d1a98802ca4918fd9629563ed4d276 | /dc/core/WallWindow.h | 6dd241a22f0a2c566ee9532a43ec8bf6fa2c15ac | [
"BSD-2-Clause"
] | permissive | BlueBrain/DisplayCluster | 4cff0a5b65cb89b2bfb1afe729ec544203ca6ecb | 6daed7a1009b75048cf82591ff4c4323fe48f514 | refs/heads/master | 2021-01-17T22:04:07.060487 | 2016-04-07T11:34:04 | 2016-04-07T11:34:04 | 10,027,845 | 6 | 5 | null | 2016-04-15T12:50:50 | 2013-05-13T08:48:40 | C++ | UTF-8 | C++ | false | false | 4,128 | h | WallWindow.h | /*********************************************************************/
/* Copyright (c) 2015, EPFL/Blue Brain Project */
/* Raphael Dumusc <raphael.dumusc@epfl.ch> */
/* All rights reserved. */
/* ... |
661fe44fe4132131e5115e3d163e2e5408138b36 | 05db8a70a2134afc5c830b7f2af779647f643202 | /src/manager/EzyAppManager.h | 49bf65588ebb65ba1a5c892c968fa5db11260693 | [] | no_license | youngmonkeys/ezyfox-server-cpp-client | a97699cb6494380e75d86c86ee4493471f52f986 | 1d55695eaaf855b01464604cd205ae6861e1bbf2 | refs/heads/master | 2023-07-21T19:36:32.775174 | 2023-07-09T06:58:55 | 2023-07-09T06:58:55 | 112,422,375 | 6 | 6 | null | 2023-07-10T15:02:37 | 2017-11-29T03:36:27 | C++ | UTF-8 | C++ | false | false | 793 | h | EzyAppManager.h | #ifndef EzyAppManager_h
#define EzyAppManager_h
#include <map>
#include <vector>
#include <string>
#include "../EzyMacro.h"
EZY_NAMESPACE_START_WITH_ONLY(entity)
class EzyApp;
EZY_NAMESPACE_END_WITH
EZY_NAMESPACE_START_WITH(manager)
class EzyAppManager {
protected:
std::vector<entity::EzyApp*> mAppList;
std... |
2941782e2a016c56744a9d3249648844f2c37271 | cec143902e7187dccb6219ab753864c87b7225ee | /src/graphics/primitives.h | ef7f463552b068c9b4394d7fdaa6f4fdce0e1b47 | [] | no_license | higgipoker/gamelib | ad4f0b3ee1627dc5a94572439c46247f1f5383dd | 5abae6a0be08e9a90a23330f37a32c0fc3fac255 | refs/heads/master | 2021-01-01T17:48:31.306907 | 2018-07-05T18:47:41 | 2018-07-05T18:47:41 | 98,159,773 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,550 | h | primitives.h | #pragma once
#include "../math/shapes.h"
#include "../math/vector3.h"
#include "color.h"
#include "window.h"
namespace GameLib {
// ************************************************************
// TODO: primitives do not take account of viewport for HUD elements!!!
// *************************************************... |
5fe2861767ee163f78dc0ce69ac71bb5e13eab67 | 42c5f229c9e5d843730779e325f9df02ad119d24 | /MouseController.h | 02c2dc878590dec907645922f514ac2b4a5f4177 | [] | no_license | keshoujing/MineSweeper | 823b541cdc469a27ab496222a19e93e35e4beabc | 73514c3f3deb21a963cffe5c9976ff9dd9f38ce1 | refs/heads/main | 2023-08-31T16:16:38.095613 | 2021-10-24T23:33:15 | 2021-10-24T23:33:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 544 | h | MouseController.h | #ifndef MAIN_CPP_MouseManager_H
#define MAIN_CPP_MouseManager_H
#include <iostream>
#include <SFML/Graphics.hpp>
#include "logicController.h"
using namespace std;
class MouseController {
static sf::Vector2<float> position;
public:
static void leftClicked(sf::RenderWindow &window, sf::Mouse mo... |
aafbb351a0585ab42bc3e3f76e22e0b0ab699bce | 0b26358f214df46483ed4c95f36227bdc515dd5f | /cf/526/a.cpp | 736e041b0f11605695b47e4d4c5bd3b333509716 | [] | no_license | ghost1998/codes | 884d282275ea555e6126588ba5587782df3be031 | 84c656072ba542e2d07a3d0808493032ee3cf1d3 | refs/heads/master | 2020-04-25T14:26:04.683766 | 2019-02-27T04:11:00 | 2019-02-27T04:11:00 | 172,841,246 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 462 | cpp | a.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
long int n; cin>>n;
long int ar[n+1];
for(int i = 0 ; i < n ; i ++) cin>>ar[i];
long int ans = 10000000000;
long int temp = ans;
long int sum = 0;
for(int i = 0 ; i < n ; i++)
{
temp = 0 ;
for(int j = 0 ; j < n ; j++)
{
if(j<=... |
9fb28eda92f3d881d4021b9712f59f3988d4a217 | 490f20c0e75357d1be5f789f362273f1cdc0cfcb | /RcEngine/RcEngine/Graphics/Material.cpp | f9fbca5c6550ebd5be02f0e37fad6a28a08f7efa | [] | no_license | cgkelei/cg-demos | 105639b46caed39127579e61340d25cb29b72a8c | 34048efae5dd0f3bf02bcd82881e5398b4fbf0e6 | refs/heads/master | 2021-01-10T13:34:31.184706 | 2014-07-25T03:06:01 | 2014-07-25T03:06:01 | 48,785,065 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,029 | cpp | Material.cpp | #include <Graphics/Material.h>
#include <Graphics/RenderDevice.h>
#include <Graphics/RenderFactory.h>
#include <Graphics/FrameBuffer.h>
#include <Graphics/Camera.h>
#include <Graphics/Effect.h>
#include <Graphics/GraphicsResource.h>
#include <Graphics/TextureResource.h>
#include <Graphics/RenderState.h>
#inclu... |
03f2aed7dfb5a34b5ac6c30013b476ace7da3041 | 819f672546f411a29f655212c3b0d643bc09f309 | /Token.cpp | d1d5b9ba68fba5bebbdfb10a3eb902f50f429b9c | [] | no_license | afaucher17/abstract-vm | 53141964d88203819545da9ffed32c4daf97cbf5 | 63540781db6a589ef534bdde655956dfec35b3ee | refs/heads/master | 2020-06-20T13:10:55.074506 | 2016-11-27T02:45:13 | 2016-11-27T02:45:13 | 74,862,625 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,620 | cpp | Token.cpp | #include <iostream>
#include "Token.hpp"
Token::Token( void ) : _value(""), _type(UNKNOWN), _line(0)
{
return ;
}
Token::Token( tokenType type , size_t line ) : _value(""), _type(type), _line(line)
{
return ;
}
Token::Token( std::string const & value, size_t line) : _value(value), _type(UNKNOWN), _line(line)
{
re... |
e62858b15d5437d41a27df1e97eb0e33c3537821 | db2d4784dd26e7f5b09de5565238b2794a245520 | /SPL_CKQ/DlgExtStaDevStatus.cpp | d75127659e195c21e6ce59cfe2d00862d82a54a3 | [] | no_license | xsjames/SPLCKQ-11 | 16daa54c1156491a14221ea5cc7cc18a4d5c7755 | 6b635ad2a799a7126a4f508c8c0767c05bbb21cb | refs/heads/master | 2021-01-02T16:58:54.850962 | 2018-02-08T09:59:54 | 2018-02-08T09:59:54 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,456 | cpp | DlgExtStaDevStatus.cpp | // DlgExtStaStatus.cpp : implementation file
//
#include "stdafx.h"
#include "SPL_CKQ.h"
#include "DlgExtStaDevStatus.h"
#include "afxdialogex.h"
#include "AccessData.h"
#include "Tools.h"
#include "MainFrm.h"
// DlgExtStaStatus dialog
IMPLEMENT_DYNAMIC(DlgExtStaDevStatus, CDialogEx)
DlgExtStaDevStatus::DlgExtStaDe... |
89d8ab1da7f8695057c553728fc67d72caeda4ae | e480eb092d704fd1b696011c04b47449ce8d386f | /code/judge/judge_test.cpp | 2a10b16a00ae3210e22dbe097cc8978ad225f4dd | [] | no_license | weizengke/judge | cc28feca9c43d11599a63315810bb18da4a1c480 | 2eb8dc81cfa7cafe16d51d872d54ba40fbeff551 | refs/heads/master | 2022-05-13T03:37:53.647972 | 2022-05-02T07:57:17 | 2022-05-02T07:57:17 | 14,402,444 | 39 | 10 | null | null | null | null | UTF-8 | C++ | false | false | 4,975 | cpp | judge_test.cpp | #include "judge/include/judge_inc.h"
typedef struct tag_Judge_test_ST
{
char testId[128];
int problemId;
int languageId;
int verdictId;
int time_used;
int memory_used;
char languageName[100];
char languageExt[10];
char languageExe[10];
char sourcePath[MAX_PATH];
char inputFile[MAX_PATH];... |
ac879ddaa92e3d8722ace779e666f69e29043e92 | ad10052619b7bc79d311940bd2419772c4bc8a53 | /topcoder-master-2/Bonuses.cpp | 8b8ec737143d556042affb5cfbf0337994fc5011 | [] | no_license | bluepine/topcoder | 3af066a5b1ac6c448c50942f98deb2aa382ba040 | d300c8a349a8346dba4a5fe3b4f43b17207627a1 | refs/heads/master | 2021-01-19T08:15:06.539102 | 2014-04-02T21:10:58 | 2014-04-02T21:10:58 | 18,381,690 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,786 | cpp | Bonuses.cpp | #include <string>
#include <vector>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
using namespace std;
class Bonuses {
public:
vector <int> getDivision(vector <int> points) {
vector <int> ret(points.size());
unsigned int i, j, tmp;
int totalPoint = 0;
int r... |
9be0d93c72b5b30fef761c257bf6deeecef9612b | 74393dfca94417b6aa7fd4903b2912313fbd9bf7 | /engine/src/wolf.system/w_window.cpp | 1b635daa50c4eae3dd516952ce7df9edb5325c5c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jstarpl/Wolf.Engine | 2c558dc91e311091102a477541e06ee490df9f14 | 40f4f9933cab551ab3fafd0ed6675ccde249ef62 | refs/heads/master | 2021-01-09T06:17:33.157681 | 2017-01-31T15:41:21 | 2017-01-31T15:41:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,080 | cpp | w_window.cpp | #include "w_system_pch.h"
#include "w_window.h"
#include <map>
static std::map<std::wstring, std::function<HRESULT(HWND, UINT, WPARAM, LPARAM)>> sMsgsProcFunctions;
w_window::w_window() :
_full_screen(false),
_screen_width(800),
_screen_height(600),
_screen_posX(-1),
_screen_posY(-1),
_close(false),
_hInst... |
7731ac071a5d14a29b86af53e2a67801de65a348 | 39880004a4b884b90e7c58585f8efcfba1639d0d | /Steam/SteamCommon.cpp | 1bf84f55a56569dee520fa26b103477730b12708 | [] | no_license | sokie/hAPI | 30971f0fa70e3c84cfc9a4cbe64085813b594d06 | 1400b256cff52baa4047b31f6bd90facb761260e | refs/heads/master | 2021-01-21T23:54:21.465519 | 2014-01-05T05:40:38 | 2014-01-05T05:40:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,330 | cpp | SteamCommon.cpp | #include <STDInc.h>
bool ValueExists(char *Section, char *Key, char *File)
{
char Buffer[512];
if (GetPrivateProfileString(Section, Key, NULL, Buffer, 512, File) > 0)
return true;
return false;
}
void SteamCommon::Init()
{ // I Think this is one of the ugliest functions I've ever written..
HHSDBG();
steamID ... |
c4dc47480beecda2434d4509f8f25b6f27c05c5e | cd5ea61819e208d56fc85c07e8200e7fc4dea75e | /Symmetric Tree/Solution.cpp | 5d4f4a4ab3979fcb464533e4ccbc69028b8b93f3 | [] | no_license | rogers140/leetcode-oj | b741fd42efb877ce10c196fc7d05744bc5e17a67 | 9b1b8729840d5e20c879c81d460e461465be34c4 | refs/heads/master | 2020-04-05T23:41:03.033613 | 2017-01-21T07:39:00 | 2017-01-21T07:39:00 | 16,267,782 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,178 | cpp | Solution.cpp | #include <stdio.h>
#include <iostream>
#include <vector>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x): val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
bool isSymmetric(TreeNode *root) {
if(root == NULL) {
return true;
}
i... |
c28d718cf01dcd1cb282121f56fe5e1adc2f8bc3 | fb62f45c6e3140ab11cd73e0b64be516247945b6 | /common/common_internal.h | 025987b6be6ff7f74c5f2aea1ffaacdbf4bfe56b | [] | no_license | shangdehao1/cleanup | 80a7dab3fb48baa56d39b3b11cfaecd5bc2bd92f | 2c5144c4cdb0280c6207ad9fb3a65e40cb2f7322 | refs/heads/master | 2021-04-25T03:37:25.324334 | 2018-02-04T16:07:56 | 2018-02-04T16:07:56 | 115,608,206 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,502 | h | common_internal.h | #ifndef COMMON_INTERNAL_H_
#define COMMON_INTERNAL_H_
#include <boost/bind.hpp>
#include <boost/asio.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/function.hpp>
#include <memory>
#include "smart_ptr/networking_ptr.h"
namespace hdcs {
namespace networking {
class ControllerImpl;
typedef h... |
a2dba728f76dd15c5abd2e3303acaeb7dcadabc9 | 5b95703178b1a20541941404e894de4c719b72b7 | /main.cpp | 9d8c3cf4047dd19c392263dfc5a246e6d9278528 | [] | no_license | wolfsberger/HumiditySensor | 9a2d16597f8d2028a35a83d528c4ff013d3b759a | 8a823b32d114b7e9260d0fe09385b710a8ebbd5f | refs/heads/master | 2021-01-10T01:54:51.688214 | 2016-02-25T12:30:10 | 2016-02-25T12:30:10 | 51,906,309 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,114 | cpp | main.cpp | #include "stdio.h"
#include "mbed.h"
#include "HygroClip2.h"
#include "SPI_TFT_ILI9341.h"
#include "Arial12x12.h"
#include "Arial28x28.h"
#include "GraphScale.h"
#include "LineGraph.h"
#include "CommandHandler.h"
#include "Encoder.h"
//Serial pc(SERIAL_TX, SERIAL_RX);
HygroClip2 sensor(D8,D2);
SPI_TFT_ILI9341 TFT(SPI_... |
7493fe618fce2d8d46917bdf98e6a9e5ca2cd0e9 | 6132c157618f09f8f4751061c282e1523a968f7b | /Hackerrank/DiagonalDifference.cpp | 315c64962f7dd3b7b0e406fb0a7e13bfca2af535 | [] | no_license | hryer/Algorithm-Playground | 12926704ba20230c7d50b6cbdddad06c0597c71d | 80d8edd0047116cfe174bcf2aabc9c910acfcb11 | refs/heads/master | 2022-12-15T13:07:35.678594 | 2020-09-12T11:27:42 | 2020-09-12T11:27:42 | 110,347,356 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 662 | cpp | DiagonalDifference.cpp | //https://www.hackerrank.com/challenges/diagonal-difference/problem
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main(){
int n;
cin>>n;
int a[n][n];
int x=0,y=0;
for(int i = 0; i < n; i++){
for(int j = 0;... |
98ddcc8eb209e45755514e9177488aef82f1a8ab | b209f657817b2252934dd5fba2601d3f8fb8ab04 | /app/src/main/cpp/engine_3d/MusicPlayer.h | 9b14e116f3eb78da4cd2cc265252c99471c31c8f | [] | no_license | raynor73/AndroidNDKOpenGLResearch | 4faa8d7cd618e2194ab7396af28e83fb7fd84444 | 34d4292d1bcaaa72e7a4836d7e38568e31183e46 | refs/heads/master | 2023-01-31T12:54:35.325233 | 2020-12-10T09:37:55 | 2020-12-10T09:37:55 | 268,936,661 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | h | MusicPlayer.h | //
// Created by Igor Lapin on 31/08/2020.
//
#ifndef ENGINE_3D_MUSIC_PLAYER_H
#define ENGINE_3D_MUSIC_PLAYER_H
#include <string>
class MusicPlayer {
public:
~MusicPlayer() = default;
virtual void play(const std::string& path) = 0;
virtual void pause() = 0;
virtual void resume() = 0;
virtual vo... |
8904ce67c1565064bfdd2fa38886523cbe0fe456 | d263e9ad5c18c95a44d26af8c9e1a06ed7ba660f | /OSSupport/ResolveProcessSpecifier.cpp | 42cfb6d17307ceb424c5f04f84ed8443b81aea36 | [
"BSL-1.0"
] | permissive | mlbrock/MlbDev | 3783d148e7934ce84d26643c879d33a3aa1935a2 | d499f66c7f672f8761d81a04f00f87a0808f9ff1 | refs/heads/develop | 2022-10-28T18:09:17.473659 | 2022-10-18T08:28:44 | 2022-10-18T08:28:44 | 15,541,112 | 2 | 2 | null | 2018-04-23T21:50:46 | 2013-12-31T02:18:56 | C++ | UTF-8 | C++ | false | false | 5,014 | cpp | ResolveProcessSpecifier.cpp | // ////////////////////////////////////////////////////////////////////////////
// ////////////////////////////////////////////////////////////////////////////
// MLB Operating System Support (OSSupport) Library Module File
// ////////////////////////////////////////////////////////////////////////////
/*
File Name ... |
380f44df38f55e02ceac79d5a782ef02efc24817 | 4ce262e598ef85ade7e76b89773e644f977a04d1 | /tests/test_example.cpp | 79371185215cfad96b8b25e3f65d763d5df77a6b | [] | no_license | nick-warfield/thread-safe-vector | fa744a400b647f56150efdb3c62c170731f88406 | 40800385ad9034cb93786b7bf2dcef1837529b48 | refs/heads/main | 2023-08-15T14:40:16.487301 | 2021-10-06T02:04:02 | 2021-10-06T02:04:02 | 413,586,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 66 | cpp | test_example.cpp | #include "catch.hpp"
TEST_CASE("Example") {
REQUIRE(1 == 1);
}
|
d23efb1d8e215fae72b5891359a5e8438d9c8177 | 30dd9ff200f97b525b069577471d23387b23970b | /src/map/util/lanelet2_map_preprocessor/src/fix_lane_change_tags.cpp | aef6aeed1d8ea7bdb5694dd5279c4e6953a6c0a1 | [] | permissive | ColleyLi/AutowareArchitectureProposal | cd544ef913e3c49852d385883c3e3ee5b518b1b8 | 80ac2a8823d342e5a1e34703dbde27e8e9b5cd98 | refs/heads/master | 2022-04-18T01:41:53.649137 | 2020-04-21T12:18:58 | 2020-04-21T12:18:58 | 257,659,506 | 2 | 0 | Apache-2.0 | 2020-04-21T17:03:50 | 2020-04-21T17:03:49 | null | UTF-8 | C++ | false | false | 3,654 | cpp | fix_lane_change_tags.cpp | /*
* Copyright 2020 Tier IV, 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 appli... |
f8daeb8dac7df107ae068f91a1e27d7fe51953cc | 9e4f8d9c7717d6bd20c0a6f724fc355e87d2f666 | /include/PrimitiveRenderer.h | 8a2826ea8cf539e250f35ecebed1fe977708c8aa | [
"MIT"
] | permissive | Sometrik/framework | 071f7e12c9d58f15dad078788b6405ec5440f0a1 | 29d387251cd553aa75f8755adccf94494a9d7367 | refs/heads/master | 2023-02-05T11:31:12.545966 | 2023-02-01T15:07:08 | 2023-02-01T15:07:08 | 44,181,086 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,569 | h | PrimitiveRenderer.h | #ifndef _PRIMITIVERENDERER_H_
#define _PRIMITIVERENDERER_H_
#include <VBO.h>
#include <shader_program.h>
#include <glm/glm.hpp>
#define COLOR_BUFFER_BIT 1
#define DEPTH_BUFFER_BIT 2
#define STENCIL_BUFFER_BIT 4
#define DEPTH_STENCIL_BUFFER_BIT 8
class Texture;
class FWPlatform;
class Sprite;
class PrimitiveRend... |
b0e2280c5e4e18467a064bbff291f20ec0f85869 | f14626611951a4f11a84cd71f5a2161cd144a53a | /Public/Setup/SkillList.h | cc301a6fa3da47782c4b534e4a0ca7dfc9a5bd8f | [] | no_license | Deadmanovi4/mmo-resourse | 045616f9be76f3b9cd4a39605accd2afa8099297 | 1c310e15147ae775a59626aa5b5587c6895014de | refs/heads/master | 2021-05-29T06:14:28.650762 | 2015-06-18T01:16:43 | 2015-06-18T01:16:43 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,005 | h | SkillList.h | //======================================================================================
/**
* @file SkillList.h
* @data
* @author
*/
//======================================================================================
#pragma once
/**
* @class CSkillList
*
* @brief 技能列表配置类
*/
class CSkillList
... |
23aaeac4e9539785e22f5b29bce832f02c94b500 | 827fb12621580fccea54f2f4a577cc6ee8a80692 | /backend/web/client.hh | e55dcf3b3c88d335544781d73106323a40b4569b | [] | no_license | stanford-stagecast/equipment | f731a3dd0e364e7daf1f4247921e4184ac76cf05 | d73196ab0d65a8c38176f2d91d8739e9de85bac6 | refs/heads/main | 2023-03-13T04:39:05.070470 | 2021-03-04T09:44:59 | 2021-03-04T09:44:59 | 300,461,829 | 0 | 1 | null | 2021-03-03T06:36:17 | 2020-10-02T00:40:20 | C++ | UTF-8 | C++ | false | false | 799 | hh | client.hh | #ifndef CLIENT_HH
#define CLIENT_HH
#include <string_view>
#include <queue>
#include "net.hh"
#include "beast.hh"
class Dispatcher;
class Client : public std::enable_shared_from_this<Client> {
private:
websocket::stream<beast::tcp_stream> ws_;
beast::flat_buffer buffer_;
std::queue<std::string> queue_;
std:... |
488157c197664727ce94713baf8bd24a667699ad | 15c48a209be92c84c17e80659621f35e46ee8922 | /include/Clock.hpp | 86e9cdb951ef8ba9d3570e94cbcb5efa43bf4154 | [
"Unlicense"
] | permissive | Denmey/Terrain | fc96cfa3d977492d6b812079da2fc73dfba320a4 | bf1dc5dfda018c9b3788524dc00a86e10d8f3b4d | refs/heads/master | 2023-02-13T19:23:32.762045 | 2021-01-10T12:28:41 | 2021-01-10T12:28:41 | 258,827,988 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | hpp | Clock.hpp | #pragma once
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
namespace Trn {
class Clock {
public:
Clock();
void update();
double currentTime() const;
double previousTime() const;
double deltaTime() const;
private:
private:
double m_currentTime = 0.0;
double m_previousTime ... |
c0d7f59555a39277706ef728f70c1f05ceb45693 | 09e38c683fd8deee413c595146419a2b5064bb09 | /src/vector.cc | c309c80d7d7c1acf08c943a3a7fa9a2c3e88d628 | [
"MIT"
] | permissive | hiro-dot-exe/patient-observer | e4b6cb3e975ab2b25c11ef83d3d83e9dadda7db7 | 5a684248e0f4ddba7e96110b6be2c6e0fc0ea153 | refs/heads/master | 2022-08-13T01:37:00.787167 | 2020-05-18T16:15:44 | 2020-05-18T16:15:44 | 264,993,355 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,681 | cc | vector.cc | #include "vector.h"
#define _USE_MATH_DEFINES // M_PI
#include <math.h> // M_PI, sqrt(), pow(), acos()
Vector::Vector(double initX, double initY, double initZ)
: x(initX), y(initY), z(initZ) {
}
Vector::Vector() : x(0.0), y(0.0), z(0.0) {
}
Vector Vector::Add(const Vector &v) const {
Vector answer;
... |
14ab3a2e07485e42e85484567ac6d4c5ece82343 | b59919a3d3bdf9876f17459427c4767b79687d17 | /Src/Logic/Entity/Components/SunController.h | 12222401fb531c95f71450e815452019047c230f | [] | no_license | yarpee/DamnedSunset | a7fd113f7406e9a331d00611948690ceaa3d13b3 | 2de62f680cf1ba11d8fc5848c337818a9d7a6ebe | refs/heads/master | 2020-03-19T10:02:01.476681 | 2012-10-15T09:43:28 | 2012-10-15T09:43:28 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 4,189 | h | SunController.h | /**
@file SunController.h
Contiene la declaración del componente que controla el movimiento
del sol y el la luz ambiental.
@see Logic::CSunController
@see Logic::IComponent
@author Daniel Flamenco
@date Enero, 2012
*/
#ifndef __Logic_SunController_H
#define __Logic_SunController_H
#include "Logic/En... |
e65c31657a533e78646da26140e970d54f4e6eec | ec10d4320fdbad0bab61b5fa00c0bf27e50ce6f1 | /code/engine/vieigen/sources/vieigendouble.cpp | 667bfea686293ea14ba059b578efd41c114d4b55 | [] | no_license | dualword/Visore | d9e97c5a53cdd0c812c41a52ce169bd7c04b765d | db402f0bb69b25fccbca7500f275fac8a629b1f9 | refs/heads/master | 2023-03-17T12:38:02.901936 | 2015-01-29T06:06:32 | 2015-01-29T06:06:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,621 | cpp | vieigendouble.cpp | #include <vieigendouble.h>
ViEigenMatrixDouble::ViEigenMatrixDouble()
: EigenMatrixDouble()
{
}
ViEigenMatrixDouble::ViEigenMatrixDouble(const int &size)
: EigenMatrixDouble(size, size)
{
int i, j;
for(i = 0; i < size; ++i)
{
for(j = 0; j < size; ++j) this->coeffRef(i, j) = 0;
}
}
ViEigenMatrixDouble::ViEige... |
02e012f7a90777a246a1bb83ed630b4cc3d185f4 | b6cdff45c1e3e7052487f6fa819cfd3b5e5d2542 | /LNQuang-bai2.cpp | a3775e793cb0a5b2b28b3afa73e987aa0734a28e | [] | no_license | QuangNLee/C-Final-Exam | 4e075cb35c848476d6ab189d0d9c81b5338ffce1 | 3e9f6ef9b4d7ae09a839b39f28ea6ca66481f9bc | refs/heads/master | 2020-08-31T19:39:30.315573 | 2019-10-31T13:10:25 | 2019-10-31T13:10:25 | 218,768,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | cpp | LNQuang-bai2.cpp | #include<stdio.h>
#include<math.h>
int main(){
int n;
float interest_rate,capital, interest;
printf("Enter Capital Sum: \t");
scanf("%f",&capital);
printf("\nEnter Rate of Interest: \t");
scanf("%f",&interest_rate);
printf("\nEnter No of year: \t");
scanf("%d",&n);
for(int i=1;i<=n;i++){
interest... |
343cb50a96062c2406105d83cd6576b97dc4028d | 5faedde7e894769aad042015ce56f30c77d67fda | /Experiment6.0.cpp | 9b8a387424f7621f89ebd6124d05722343a07ba6 | [] | no_license | MaruAlgio/Experiment-2 | 587d37ebdc602415e3817346217af8d81ddc2f30 | 5d17c82b7702b4c54def81398fb824d8acde6432 | refs/heads/master | 2020-05-19T08:10:55.032070 | 2019-05-05T22:36:44 | 2019-05-05T22:36:44 | 184,914,742 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 581 | cpp | Experiment6.0.cpp |
// PROBLEM 6 - Custom Calculator.
/*
The total terms here are 22 since it includes the first 0 and 1 and then the succeeding 20 terms.
*/
#include <iostream>
#include <conio.h>
using namespace std;
int main ()
{
int Maru;
int x = 1;
do
{
cout << "Enter a number: ";
cin >> Maru;
if (Maru >= 1)
... |
c0b8076ec17880939e6ff50e2c45afcc654a9ab6 | 1221f25393be9ee6d3375c22802d70b237236c7e | /code/init/views/SplashView.h | 4defb06b9cdb818e1e82d696dc11612f2c064c73 | [] | no_license | ajatprabha/CS223_Apr18_02 | 19625a7bf76f4fe5cfb8097eddca6f1250ff188e | f51c14397c91d6cce10adcd74bca0e7d2756f461 | refs/heads/master | 2021-04-03T01:35:19.393757 | 2018-04-24T18:25:23 | 2018-04-24T20:52:07 | 124,763,461 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | h | SplashView.h | //
// Created by ajatprabha on 12/3/18.
//
#ifndef CLASSROOMBOOKINGSYSTEM_SPLASHVIEW_H
#define CLASSROOMBOOKINGSYSTEM_SPLASHVIEW_H
#include <controller.h>
#include <base/views/View.h>
class SplashView : public View {
public:
SplashView() : View("Welcome to ClassRoomBooking system\nChoose from the options below\n... |
854d5e51b95f83cceb6b23fb9268a9ab9d95730a | 78970aebaa5cc619fc4a69bd4ce8f158a070dc53 | /md5.cpp | 0e8834e3c9728df53ba6107191ff208a49ebc03b | [] | no_license | cachpachios/md5-optimisation | 0116d9f5044d37d88d61134da81e3856d6ee777d | 31fc4e985ca9efbed5810c665d415b19e089ebee | refs/heads/master | 2023-08-19T15:28:55.635739 | 2021-10-20T04:35:36 | 2021-10-20T04:35:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,798 | cpp | md5.cpp |
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <stdio.h>
#include "md5-x86-asm.h"
#include "md5-arm-asm.h"
template<typename HT>
void md5_init(MD5_STATE<HT>* state) {
state->A = 0x67452301;
state->B = 0xefcdab89;
state->C = 0x98badcfe;
state->D = 0x10325476;
}
#ifdef __AV... |
96ab29b6f133d02c2a9b2ad9bc43b7c7178df75d | 0e8f2bdbbb5e1433e2fa20742e36db918e1c0cfc | /Derivator.cpp | 7ed672f54b97f20550f07a00bf8b6109f583e69e | [] | no_license | a-m-j-s/FC-ElectromangeticShowerSimulation | 38abe099ed82616e8a7e8a2048f2f2bce0baeb71 | c62a6e78b8220ba0005f54d54852d82f2d46e582 | refs/heads/main | 2023-07-09T14:10:31.376700 | 2021-08-11T19:50:40 | 2021-08-11T19:50:40 | 394,981,902 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,076 | cpp | Derivator.cpp | #include"Func1D.h"
#include"Derivator.h"
#include"Vec1.h"
#include"FCmatrix.h"
#include"FCmatrixFull.h"
#include"EqSolver.h"
#include"TF1.h"
#include<stdio.h>
#include<iostream>
using namespace std;
//#define DEBUG
void Derivator::FDerivative(double x,double h,double &Derivative){
#if defined(DEBUG)
printf("... |
653fa17529402621eefd077cf487dd44c696e2fc | 48cb56db297506f3764efa2475c29082d49b669d | /simpleui/include/screenprinter.hpp | 4b89b44453e07eaca11ad4f78ae1998e25ece433 | [] | no_license | jbigot/Projet-GLCS-2020-2021 | c3c3554111980ae513212d33af05656f6433f536 | 665cf5ff964bc26cc7cd31736b066c83a704f5f7 | refs/heads/main | 2023-02-10T21:51:05.791634 | 2021-01-08T10:16:37 | 2021-01-08T10:19:53 | 327,666,171 | 0 | 12 | null | null | null | null | UTF-8 | C++ | false | false | 454 | hpp | screenprinter.hpp | #pragma once
// library headers
#include <simulationobserver.hpp>
/** An implementation of SimulationObserver that prints the simulation data to
* screen.
*
* \warning This class is inefficient, brittle and does not guarantee the correct
* ordering of the values printed on screen.
*/
class ScreenPrinter
: pub... |
6e1064afe0525797335b22e7d65d2f364b04fad8 | 7aa7aabfbf1218018f71a10f4d069d3dc0f602c0 | /6.08/projects/ball_launcher/ex04_ball_starter/ex04_ball_starter.ino | 273466eea4ade90927b2b0c131af38c51f7464da | [] | no_license | mtrejo0/SchoolWork | 55f35b5223be1ce37fd071071037d3175bd41238 | 3b44d5cc9d7f6dc1f4be4e717d376f5ab1417f84 | refs/heads/master | 2020-06-19T22:47:05.146191 | 2019-07-15T01:40:51 | 2019-07-15T01:40:51 | 196,902,751 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,041 | ino | ex04_ball_starter.ino | #include <SPI.h>
#include <TFT_eSPI.h>
TFT_eSPI tft = TFT_eSPI();
// Set up the TFT object
const int LOOP_SPEED = 25;
unsigned long primary_timer; //main loop timer
#define BACKGROUND TFT_BLACK
#define BALL_COLOR TFT_WHITE
const uint8_t BUTTON_PIN = 16; //CHANGE YOUR WIRING TO PIN 16!!! (FROM 19)
class Ball {
... |
f2216b6b12c85c77f0685f03616e8eb2fb3ac715 | 1653acd0b8a476b55128b9af60c74366cc730568 | /2018-2/support/utils.h | 26a3cbf440c9707be1040aeb9681a16522bd46ba | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sgtest/p4test | 5c6ab62098e99413af8ee12b5911ad9cf7fc081e | 0b065a1f4aad902f5860d03fa44d14e00ee980a4 | refs/heads/master | 2020-04-27T16:46:05.018649 | 2019-02-07T10:04:05 | 2019-02-07T10:04:05 | 174,492,667 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,272 | h | utils.h | /*
* @file utils.h
*
* @brief miscellaneous utilties available to all
*
* Threading: none
*
* @invariants:
*
* Copyright (c) 2012 Perforce Software
* Confidential. All Rights Reserved.
* @author Wendy Heffner
*
* Creation Date: December 5, 2012
*/
////////////////////////////////////////////////////////... |
ac3e58c8e2771888c649f7d9cceb17a98f96edce | 7c76919de4ccabb6e5f86c723f9e7771a3b5d95e | /src/ns_ui/UIRadioButton.h | 1461cef04f3b082a1de77d9a96fd532a259f3b5f | [
"MIT"
] | permissive | shintaro4/cellophane | cdcbd09cb1b94207473ae6ea603437270b7834c9 | 6876c81886f75f74d1b61076b9298f277872db04 | refs/heads/master | 2021-06-30T23:51:35.116229 | 2016-11-03T07:32:02 | 2016-11-03T07:32:02 | 27,334,525 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,496 | h | UIRadioButton.h | //
// UIRadioButton.h
//
#pragma once
#include "UIButton.h"
namespace cellophane {
namespace ns_ui {
class UIRadioButton : public BaseUI {
public:
//--------------------------------------------------------------
// interface
//--------------------------------------------------------------
UIR... |
d318e80f97effb6edf64bebeb16ad4800f2f88a6 | 0ce9e3d0643571994e5d95e1182e6a31ac9728c2 | /data_acquisition/ptu/libs/digites/src/Console.cpp | ce77422ef27a4e88f99e4cc67d60ede073e23d55 | [
"MIT"
] | permissive | HoliestCow/wind_daq | 78fddb2407b857fdfb1d843b995b64cd13c837f8 | 6a8b30ba6b14b3162f2fa3144b52cdf7ed17ec3a | refs/heads/master | 2021-01-19T19:16:49.840098 | 2020-01-06T18:02:17 | 2020-01-06T18:02:17 | 101,187,374 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,089 | cpp | Console.cpp | /******************************************************************************
*
* CAEN SpA - Front End Division
* Via Vetraia, 11 - 55049 - Viareggio ITALY
* +390594388398 - www.caen.it
*
***************************************************************************//**
* \note TERMS OF USE:
* This program is f... |
58d268d00ec5e7d9cde6e6983bfeefba7399162c | 4bec0306800897b05aac563161d3147d305c1c1a | /src/blogger/blog.cpp | b8388a72d7b7b329ac559eae25d1c2050730e1ba | [
"CC0-1.0",
"BSD-3-Clause"
] | permissive | KDE/libkgapi | 03d5d494406ff44ddb1797c2f3d6e8d9892454d8 | 4fbde0ea726bf3759a05298ecab9d8e40e72da8a | refs/heads/master | 2023-08-24T12:26:21.881120 | 2023-08-08T01:52:54 | 2023-08-08T01:52:54 | 42,723,656 | 9 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 3,832 | cpp | blog.cpp | /*
* SPDX-FileCopyrightText: 2014 Daniel Vrátil <dvratil@redhat.com>
*
* SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#include "blog.h"
#include <QJsonDocument>
using namespace KGAPI2::Blogger;
class Q_DECL_HIDDEN Blog::Private
{
public:
Private();
static B... |
64ec7e3e9c3bbeddfbfbe9887a6e5de7d7e30c82 | cfd8eb4191254363cbac4384cfa334d52cb8e5fe | /sweetcher/sweetcher.ino | b2ecc785f5f3f978dff60421b3bc611168391278 | [] | no_license | vlad-gheorghe/arduino | 52c938058bda78da37287ba824c258bb167071d1 | fccb2e70b83c6a2803f6294c7c975d8f2fa965b6 | refs/heads/master | 2020-03-14T17:24:50.946561 | 2016-10-29T14:00:38 | 2016-10-29T14:00:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,721 | ino | sweetcher.ino | #include <EEPROM.h>
int in = 3;
int mode = 1;
int a = 2;
int b = 3;
int c = 4;
int d = 5;
int e = 6;
int f = 7;
int g = 8;
int signalOut = 11;
int led = 13;
boolean ledOn = false;
int modeOut[] = {20, 73, 112, 152, 191, 250};
int digits[13][7][2] = {
{{a, 0}, {b, 0}, {c, 0}, {d, 0}, {e, 0}, {f, 0}, {g, 1}},//0
... |
cf23d3ead0b658308ae176da22a94f972ecf5384 | c84f4810ba016f271bfab0330f3d731793a685ba | /Lista 4/Gerenciamento_contas/Conta.h | 459e2aee182c65444df60333c640c642a00ec387 | [] | no_license | andersoncoutinho/Laboratorio-de-Linguagem-de-Programacao-I | 0f017d658bdd3e79b9108cb4030ea6ba8c578899 | acbd3467bd159241465c1fc571d40670de2d5fcb | refs/heads/main | 2023-06-10T16:53:29.659514 | 2021-07-02T17:26:38 | 2021-07-02T17:26:38 | 349,862,663 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 497 | h | Conta.h | #ifndef CONTA_H
#define CONTA_H
#include <string>
class Conta {
public:
Conta();
Conta(std::string nomeCliente, int numero);
virtual void sacar(double);
virtual void depositar(double);
virtual double saldoTotalDisponivel();
virtual void getInfo();
void setNomeCliente(std::string);
std::string getNome... |
fef76985d98cb0f5297a77fe1c811dc00b0f0619 | 5a63bd6870346aa6593233b990303e743cdb8861 | /SDK/ST_Team_structs.h | 4f580926301b5cbdd100bff0a4551b1253cb3440 | [] | no_license | zH4x-SDK/zBlazingSails-SDK | dc486c4893a8aa14f760bdeff51cea11ff1838b5 | 5e6d42df14ac57fb934ec0dabbca88d495db46dd | refs/heads/main | 2023-07-10T12:34:06.824910 | 2021-08-27T13:42:23 | 2021-08-27T13:42:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,577 | h | ST_Team_structs.h | #pragma once
// Name: BS, Version: 1.536.0
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
// Script Structs
//---------------------------------------------------------------------------
// UserDefinedStruct ST_Team.ST_Tea... |
24dc4c4e0bea6a5ab44bf0e8dc738624375ce54b | 2f06ecd54b971cf789af33667f8f147aa965fe8c | /arrays/q7-arrays.cpp | 4681f8699e7067fa74be2520fa66446084520e64 | [] | no_license | umtince/C-introductory-exercises | 9bfc3ba4b6667b833359fff4d8e3e72cc8717c68 | dfe2e2956983a229b07d02a2317cf831d20051eb | refs/heads/master | 2020-09-16T02:19:13.888563 | 2020-04-24T18:09:22 | 2020-04-24T18:09:22 | 223,620,600 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,387 | cpp | q7-arrays.cpp | #include <stdio.h>
void ArraySortAndMerge(int a1[],int a2[],int elementB,int element1,int element2);
int main()
{
int element1,element2,elementB;
int i=0;
printf("Input the number of elements to be stored in the first array:");
scanf("%d",&element1);
int a1[element1];
printf("\nInput %d elements in the array... |
be537e6c5b3e40a8871278077b3c2a206606690b | 81e31a571f9263b317a60ab7e2fa6a62199aefa1 | /icm-1.1/icm/Current.h | 46c963e3b3efb5a6f51abdb8ad540a968d085e73 | [] | no_license | qhjindev/icm | 66910f1db5b9cf549b31817e3e2adeada4babd17 | 9e2a659dcf8c4cdadb71e129eedb667efc817517 | refs/heads/master | 2020-05-17T05:37:21.762348 | 2015-01-08T02:16:08 | 2015-01-08T02:16:08 | 28,762,156 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 300 | h | Current.h | #ifndef ICM_CURRENT_H
#define ICM_CURRENT_H
#include <string>
#include "Object.h"
#include "ObjectAdapter.h"
#include "Connection.h"
struct Current
{
ObjectAdapter* adapter;
//Connection* con;
Identity* id;
std::string operation;
Context ctx;
};
#endif //ICM_CURRENT_H
|
db371c62ee9ff2465008d145f9398bd870822c5f | bfabf4e93e251cf03541749c732b384651fcc363 | /stl/pair.cpp | 8844da75896ffb5dd86f33937461746ca80ddcd3 | [] | no_license | youndge/cpp | 1d364a2bdaaea8fb90046518434d7d1a7c6d3115 | 530838d56fc0543c43c3c682ffce3c0f792abb8d | refs/heads/main | 2023-07-27T18:41:24.504638 | 2021-09-09T15:42:53 | 2021-09-09T15:42:53 | 393,051,318 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,052 | cpp | pair.cpp | #include <utility>
#include <iostream>
#include <string>
using namespace std;
/**
* 1.pair类构造函数
#1) 默认构造函数,即创建空的 pair 对象
pair();
#2) 直接使用 2 个元素初始化成 pair 对象
pair (const first_type& a, const second_type& b);
#3) 拷贝(复制)构造函数,即借助另一个 pair 对象,创建新的 pair 对象
template<class U, class V> pair (const pair<U,V>& pr);
#4) 移动构造函数
te... |
9c168f84fdf811428c7c28fda79eb84266cf988c | d9a50abfe2b0a1adf655048ddba8ef302d750d53 | /DERAS-Server/src/ieee_sep/gYear.cpp | 5229497e7edbbee9a92c5d14b8a2aeb9e6d63398 | [
"BSD-2-Clause"
] | permissive | psu-powerlab/DERAS-Server | f7ed520ee6885a77ac5d3b2f672d8a6502004c97 | 5b41f35148aa1ff45c1f6b3a96f94ce443a72d0f | refs/heads/master | 2022-11-29T15:01:50.874535 | 2020-06-18T20:06:10 | 2020-06-18T20:06:10 | 261,805,865 | 0 | 0 | BSD-2-Clause | 2020-07-06T18:53:10 | 2020-05-06T15:44:56 | C++ | UTF-8 | C++ | false | false | 279 | cpp | gYear.cpp | ///////////////////////////////////////////////////////////
// gYear.cpp
// Implementation of the Class gYear
// Created on: 13-Apr-2020 2:51:30 PM
///////////////////////////////////////////////////////////
#include "gYear.h"
gYear::gYear(){
}
gYear::~gYear(){
} |
bfec8ca1621813afaca0abd01cc5350970d789dd | 413a1d85f164ab38ef876452ac3c363f9df058c4 | /wiki_app/venv/lib/python3.5/site-packages/lucene-8.1.1-py3.5-linux-x86_64.egg/lucene/include/org/apache/lucene/analysis/standard/UAX29URLEmailAnalyzer.h | 090296d4af3aeb22dd6f2fd7e065847a6e33be53 | [] | no_license | prateek68/Wikipedia-Online-Content-Comparison | 18d53e3456e2d7aa6eb67629c2ea1c79b7d8be4d | 77d54b99881558b3195190740ba1be7f8328392b | refs/heads/master | 2020-12-26T11:58:18.903011 | 2020-02-02T09:55:37 | 2020-02-02T09:55:37 | 237,495,848 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,785 | h | UAX29URLEmailAnalyzer.h | #ifndef org_apache_lucene_analysis_standard_UAX29URLEmailAnalyzer_H
#define org_apache_lucene_analysis_standard_UAX29URLEmailAnalyzer_H
#include "org/apache/lucene/analysis/StopwordAnalyzerBase.h"
namespace java {
namespace io {
class Reader;
class IOException;
}
namespace lang {
class Class;
}
}
... |
c8972452792ba7b5d28a512c7ca4716efc609707 | 26135a1362f8cb9638cc9649ec9cc2a11e2cd66e | /src/Transform/ONNX/ShapeInferencePass.cpp | c7b0f31dda165f8beda53e650ec34a7c2db10f4f | [
"Apache-2.0",
"LicenseRef-scancode-dco-1.1"
] | permissive | onnx/onnx-mlir | 81003870714bf743aac7b08666563552aac34a5b | 8919cf3198e8e98960d95b1fb163a58f43c52070 | refs/heads/main | 2023-08-28T13:18:14.750654 | 2023-08-28T09:57:10 | 2023-08-28T09:57:10 | 241,400,276 | 590 | 286 | Apache-2.0 | 2023-09-14T18:46:19 | 2020-02-18T15:43:43 | C++ | UTF-8 | C++ | false | false | 1,912 | cpp | ShapeInferencePass.cpp | /*
* SPDX-License-Identifier: Apache-2.0
*/
//===------- ShapeInferencePass.cpp - Shape Inference ---------------------===//
//
// Copyright 2019-2023 The IBM Research Authors.
//
// =============================================================================
//
// ShapeInferencePass infers shapes for all operation... |
aa2c49b12ae5bc2dbeea9a8ef5c4bce825b45a70 | e2bad7304a6a07271ec3b927b4a7ebc0da0d1e83 | /Classwork/AFS_Archive/volume_user.mcresap/cse20311/lab11/fern.cpp | 3a53493b34bf17d15125033f031ddb725a24aa40 | [] | no_license | mcresap/ND | 8fadf03aad4d50f9548ed52203466055e6e8bdba | c973ad1348747580ca638bab3f3f047bddf9d9d8 | refs/heads/master | 2022-11-16T00:05:47.618952 | 2020-07-07T01:31:07 | 2020-07-07T01:31:07 | 277,685,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,117 | cpp | fern.cpp | // Recursive function to generate the Sierpinski triangle fractal.
// From main, you would call this function to draw the outer triangle.
// The function will then recurse to draw all the inner triangles
// (you will of course have to write a triangle drawing function).
// NOTE:
// you may only use this code if you ful... |
9f8fee6d5855508290222e38b9d075edde316234 | 2555cbc320199097f339b1de7ffc3b1fe197bc4e | /Source/AgeOfSurvival/CPPCharacterAI.cpp | c0a28cdceb5d05cee5b336775888992a62faeeb5 | [
"BSD-2-Clause"
] | permissive | JensenJ/AgeOfSurvival | 74c55c99ccd63905150848b5ed3ec861a9c98802 | 8329ad9f96e039818f0e731318435d06f56f3f2f | refs/heads/Distribution | 2020-04-15T00:40:47.780523 | 2019-01-26T22:20:39 | 2019-01-26T22:20:39 | 164,248,766 | 0 | 0 | BSD-2-Clause | 2019-01-26T22:20:40 | 2019-01-05T20:29:14 | C++ | UTF-8 | C++ | false | false | 109 | cpp | CPPCharacterAI.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "CPPCharacterAI.h"
|
8a0d12044ec1fee069d2dc4e5db4f44a4619afed | bfa78ed6d5b741902d17549e5c0e923f42dbf716 | /sceneManager/patch.cpp | e071c04c49cc908a8526925655c864029ab8d819 | [] | no_license | lucio81/3DGraph | 8591a1ad1c8c372650a667cefb385e0a7c9979da | 9fef6c9912d6fe9844063e5cd460e1980b5cf2c7 | refs/heads/master | 2020-06-01T16:18:26.268421 | 2012-02-14T10:44:52 | 2012-02-14T10:44:52 | 550,797 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,240 | cpp | patch.cpp |
#include"sceneManager/patch.h"
#include<QColor>
void Geometry::loadArrays() const
{
glVertexPointer(3, GL_FLOAT, 0, vertices.constData());
glNormalPointer(GL_FLOAT, 0, normals.constData());
}
void Geometry::finalize()
{
// TODO: add vertex buffer uploading here
// Finish smoothing normals by ensurin... |
8e7357877a34e83f8a32e989158e70717169239d | ef38f0e1a85f4f9f1444a76f5ebaf7c234a01835 | /src/server/game/Battlegrounds/BattleGround.h | ed27958656faba84313cf4898bf7f0dd3d02000b | [] | no_license | Refuge89/sunstrider-core | 189546853dfc896cbde75181e29d0f2ec6fcf2fb | 6295c804be78ddafdccfc08cce0d9cf8fe7f50ca | refs/heads/master | 2020-03-23T10:50:17.426306 | 2018-07-18T14:26:38 | 2018-07-18T14:26:44 | 141,465,214 | 2 | 0 | null | 2018-07-18T17:04:05 | 2018-07-18T17:04:04 | null | UTF-8 | C++ | false | false | 25,407 | h | BattleGround.h |
#ifndef __BATTLEGROUND_H
#define __BATTLEGROUND_H
#include "Opcodes.h"
#include "ObjectMgr.h"
#include "SharedDefines.h"
#include "SpectatorAddon.h"
#include "Position.h"
struct PvPDifficultyEntry;
enum BattlegroundSounds
{
SOUND_HORDE_WINS = 8454,
SOUND_ALLIANCE_WINS = 8455,
... |
00ff24839b85442851365335800c6a2ce6174fe1 | ac48dc874f5550d03648c28b1eda5720202eb55c | /sensors/dsps/libhalsensors/inc/MultiShake.h | 343a044fddde0bec72681eb8063253a1406b2a70 | [] | no_license | difr/msm8937-8953_qcom_vendor | 464e478cae4a89de34ac79f4d615e5141c40cbcb | 6cafff53eca7f0c28fa9c470b5211423cf47fd40 | refs/heads/master | 2020-03-20T09:58:48.935110 | 2018-05-27T04:13:22 | 2018-05-27T04:13:22 | 137,355,108 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,609 | h | MultiShake.h | /*============================================================================
@file MultiShake.h
@brief
MultiShake class definition.
Copyright (c) 2015 Qualcomm Technologies, Inc.
All Rights Reserved.
Confidential and Proprietary - Qualcomm Technologies, Inc.
=============================================... |
d2613806853fbc1615db7b2abfa05d29b2866220 | 9870e11c26c15aec3cc13bc910e711367749a7ff | /HYSBZ/hy_1367.cpp | 02f0df72ae70415e2c38d73ddf19866c0189e668 | [] | no_license | liuq901/code | 56eddb81972d00f2b733121505555b7c7cbc2544 | fcbfba70338d3d10bad2a4c08f59d501761c205a | refs/heads/master | 2021-01-15T23:50:10.570996 | 2016-01-16T16:14:18 | 2016-01-16T16:14:18 | 12,918,517 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,545 | cpp | hy_1367.cpp | #include <cstdio>
#include <cstdlib>
#include <cctype>
typedef long long ll;
int root,l[1000001],r[1000001],d[1000001];
ll a[1000002],b[1000002],v[1000001];
int main()
{
void read(ll &),insert(int,ll),del();
ll get();
int n;
scanf("%d",&n);
for (int i=1;i<=n;i++)
{
read(a[i]);
a[i]-=i;
... |
f5c83931329a4089b670e943992702d45f32f111 | ae1bb960e93468819ab8fa14e6b07cd111b885c0 | /Second_year/Triannual1/ED/6-Final/src/testletras.cpp | ff9363f395f4a27898752859cdf2ddf1c2c804e5 | [] | no_license | Asmilex/CppUniversityProjects | b50deb5a0e480e35834ba832234f0df98923505e | 37d074b32d0e9daed4c03b15b212e9ebe13c9555 | refs/heads/master | 2021-10-11T18:16:56.572056 | 2019-01-28T23:30:03 | 2019-01-28T23:30:03 | 114,488,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,905 | cpp | testletras.cpp | #include "letras.h"
#include <string.h>
#include <cstring>
using namespace std;
int juego_puntuaciones ( Bolsa_Letras letras ) {
char opcion;
size_t amount_letters = letras.get_list_letters().size();
do {
letras.generate_random_letters( amount_letters );
list< char > lista_letras = letras... |
c73e18dabc98c6a6b17b92f08161fcd84ed87906 | 08f388ad9a5ef896532be6fe9cc34b9b04b70f1a | /arduino mega/atmega/radio_functions.ino | bcd1d40ca21647bc0ec12e6dfd2f4fa1967d102f | [] | no_license | frnhr/dagor-dome | bc2067acec45287cbc4333b783fe2ac5d74e92ff | b1f9efaf2708e00694461c065b215786c23caf79 | refs/heads/master | 2020-12-13T11:25:31.647483 | 2014-12-13T19:53:44 | 2014-12-13T19:53:44 | 18,734,281 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,975 | ino | radio_functions.ino | // radio_functions.ino
// (included from atmega.ino)
/*
* The radio loop.
* Handles communication with the dome arduino C3 (a.k.a. "server") via intermediary Arduino C2.
* Communication with C2 is performed in the simplest way, by develar dedicated lines ("pins"). Maybe will add SPI...
*
* Why "radio loop"? Becau... |
ba1ee38b148ec767acfa3647825cfa9d4207fa13 | f96f9244a9e1e4711c27c6d969e513999c4e84a5 | /middleware/xatmi/source/tx.cpp | 90804f79d42b3ee32f4e227462b70c2083e988af | [
"MIT"
] | permissive | casualcore/casual | 88965684f908a46dcc998238aa78726e0143bb05 | 7311cc481f3b823d0c86fc09171fbd17e3c39fc1 | refs/heads/feature/1.7/main | 2023-09-04T01:22:09.633159 | 2023-07-07T15:33:29 | 2023-07-18T08:48:49 | 477,282,028 | 14 | 4 | MIT | 2023-09-14T07:52:38 | 2022-04-03T08:34:20 | C++ | UTF-8 | C++ | false | false | 4,685 | cpp | tx.cpp | //!
//! Copyright (c) 2015, The casual project
//!
//! This software is licensed under the MIT license, https://opensource.org/licenses/MIT
//!
#include "tx.h"
#include "common/transaction/context.h"
#include "common/code/tx.h"
#include "common/code/category.h"
#include "common/exception/capture.h"
#include "commo... |
33379bb1932b6bee0c2d89442a441c71cf6f545c | ce5294a10a4843419f334a070712b0623f6a1525 | /main.cpp | ead049bdd17250c98f23a1003118bce52d2ed63f | [] | no_license | sandsmark/kfontview-standalone | 99a87b5ae6dacb64993be1d5aee2862903099e5f | abf1f1de39272c3bf0e508f8803d8aedb4c67dee | refs/heads/master | 2021-11-05T12:18:33.885820 | 2021-09-19T15:05:44 | 2021-09-19T15:05:44 | 181,045,421 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 569 | cpp | main.cpp | #include <QApplication>
#include <QDebug>
#include <QFile>
#include "FontPreview.h"
int main(int argc, char *argv[])
{
if (argc < 2) {
qDebug() << "need a font";
return 1;
}
if (!QFile::exists(argv[1])) {
qWarning() << argv[1] << "does not exist";
return 1;
}
QAppl... |
0eec74b7ee91d42d7b0486ae2f07467e03b43842 | bc9f32b311957fdf1a6c583d46904641821d0caa | /src/parameter_learner.hpp | a6595a47d085ac478be763c2512bc4f046e42549 | [] | no_license | silasxue/RGM-AOGTracker | 118d7b449dc750b86ed121368fcbf328cef518ac | ea0739a1f28c365bf65e40426d28f18b556fc426 | refs/heads/master | 2021-01-18T04:01:18.965317 | 2016-05-06T20:13:50 | 2016-05-06T20:13:50 | 58,340,852 | 0 | 1 | null | 2016-05-09T01:46:09 | 2016-05-09T01:46:08 | null | UTF-8 | C++ | false | false | 7,170 | hpp | parameter_learner.hpp | #ifndef RGM_PARAMETER_LEARNER_HPP_
#define RGM_PARAMETER_LEARNER_HPP_
#include "inference_dp.hpp"
#include "lbfgs.hpp"
#include "AOGrid.hpp"
#include "tracker_result.hpp"
namespace RGM {
// Predeclaration
template <int Dimension>
class ParameterLearner_;
template <int Dimension>
class Loss_;
enum objFuncValType {
... |
4aa3831559d42087f2c8905c48c6d87381e95ac1 | 016c4ca9ea582ac1f71bea5c485c5a74fa71d4e3 | /ImageReconstruction/Master/DetectorType.cpp | eb210feaa4daa3ba2d1a858985f99433fea5f04c | [] | no_license | jackjoynson/MedicalImaging | bad71569f6af4c3b46c63f739fc920a7e1354e78 | 55bb413132d6770329d079b32e4dc2faeb1c4747 | refs/heads/master | 2021-05-11T07:10:21.083577 | 2018-03-17T11:04:36 | 2018-03-17T11:04:36 | 118,009,298 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | cpp | DetectorType.cpp | //
// DetectorType.cpp
//
//
// Created by ziyue wang on 23/01/2018.
//
#include "DetectorType.h"
DetectorType::DetectorType(){
}
DetectorType::DetectorType(double x, double y, double z, bool scatter){
_DetectorXCord = x;
_DetectorYCord = y;
_DetectorZCord = z;
isScatter = scatter;
}
|
688b137752b65e8fc5fe10ce79d1749beae70837 | e7037db5dcf40fbaeadb319ca6bd4b0ba2d84cd4 | /c_and_CPP/Dynamic Programming/Memoization/LongestIncreasingSubsequence.cpp | 18a149da2b8e5ba437df4537344632892c78c24c | [] | no_license | heer14/Programming | 6dc27a40d94be3df1fb0ac21e79e62cd480522d0 | c831729dfe390543bfb9c66c2fa7a08ec9abafc6 | refs/heads/master | 2020-03-19T07:38:17.588848 | 2020-01-31T11:08:20 | 2020-01-31T11:08:20 | 136,134,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 697 | cpp | LongestIncreasingSubsequence.cpp | #include<iostream>
#include<stdlib.h>
using namespace std;
int *a;
int n;
int *lis;
void printLis(){
for(int i=0;i<n;i++)cout << lis[i] << " ";
cout << endl;
}
int LIS(){
lis= (int *)malloc(n*sizeof(int));
for(int i=0 ; i < n;i++) lis[i] = 1;
printLis();
for(int i=1 ; i<n;i++)
{
for(int j=0;j< i;j++){
if(a[... |
60071469d52e42e8635afc547decafd394696cf1 | f987adbe43b00477f2d438f4995fad5461c12d51 | /DemoAbstractFactory/Source.cpp | 8ac48db3f710c16881bdf0295c8415d0d8a34c60 | [] | no_license | thaobktin/CnCPP | bbd1d04c6fc9b707616888068642b937ed62ba95 | 212c0cc03cb7e4bda6a5bbc2e61dd449257f1622 | refs/heads/master | 2021-04-26T23:13:58.422298 | 2018-03-05T17:27:09 | 2018-03-05T17:27:09 | 123,951,323 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 591 | cpp | Source.cpp | #include "AbstractFactory.h"
#include "Dongvat.h"
#include "Thucvat.h"
#include "DongvatFactory.h"
#include "ThucvatFactory.h"
#include<conio.h>
#include <iostream>
//comment this for demo
#define TAO_DONG_VAT
int main()
{
AbstractFactory* factory = NULL;
Sinhvat* sinhvat = NULL;
#ifdef TAO_DONG_VAT
factory = new... |
eba411c9d8e5a7e1961050eb5943db4f91c0d06e | 461188dca96f46443a951cb74504f3ac171b3792 | /LuaAV/modules/ga/src/c3/test.c3.cpp | ddf2b5461cc90d30786623a1ae70a43b9ba59bf3 | [] | no_license | italoadler/LuaAV | f1e7d713c3efd6b0e2ac607f32df1cc71bbc22be | f2a7fbc6bb4c5d7c0668a6a49135a617f638f2b4 | refs/heads/master | 2021-01-15T18:26:40.264978 | 2017-07-25T17:20:25 | 2017-07-25T17:20:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 563 | cpp | test.c3.cpp | #include <stdio.h>
#include "c3ga.h"
int main(int argc, const char *argv[]) {
c3ga::e1_t _e1;
c3ga::e2_t _e2;
c3ga::e3_t _e3;
c3ga::no_t _no;
c3ga::ni_t _ni;
// c3ga::exp bug
c3ga::mv res1 = _e1^_e2*3.14159;
c3ga::mv res2 = _e3^_ni;
c3ga::mv res3 = res1-res2;
c3ga::mv res4 = c3ga::exp(res3);
printf("--... |
05a76b69dd49070364b0d2fac90e780529dd5ca7 | 2a8b8217b2d4d469621addbda266d28ba7f8233e | /TSP.cpp | 1db2b45ecb1028c592f41023246a6b525cbaf9c4 | [] | no_license | rostun/TSP | 553cdd61b951014387c28922501b976d21ef97f6 | 4c0bb1bc484ec6e49c5eeb9bbe8b7827f234453b | refs/heads/master | 2021-01-10T04:26:37.556830 | 2016-03-12T01:54:14 | 2016-03-12T01:54:14 | 53,427,980 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,007 | cpp | TSP.cpp | /*
Rosa Tung + Sam Nelson + Kara Franco
Date Modified: 3.11.16
*/
//timers
#include <chrono>
#include <ctime>
using namespace std::chrono;
#include "fileFilter.h" //deal with file inputs and outputs
#include "point.h" //city class that stores cityID, X and Y coordinates
#include "graph.h" //graph class that stores ... |
09e481af97eab786bf81ffc3573e3cb255899504 | 716b59ef2ee44c13300c9b91dfd467aea75f7165 | /GL/Source/Scenes/Scene16Particles.h | 1cea0981e65c5ccb153f0d69f10865801b9dfd61 | [] | no_license | GCourtney27/OpenGLRenderingEngine | af46fbf658c6ff6c528fb1e921f13ca3ba6764fa | d93701253e29b310d7193a683ad8863ec99b97d4 | refs/heads/master | 2020-06-24T07:47:57.642395 | 2019-07-25T21:03:38 | 2019-07-25T21:03:38 | 198,900,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 698 | h | Scene16Particles.h | #pragma once
#include "core/scene.h"
#include "..\Objects\ParticleSystem.h"
class Scene16Particles : public Scene
{
public:
Scene16Particles(class Engine* engine) : Scene(engine) {}
virtual ~Scene16Particles() {}
bool Initialize() override;
void Shutdown() override;
void Update() override;
void Render() overrid... |
e14bc30c0fd2b6bc95d8cb92a6c7c8bb01233bf5 | ace20ae898aadf18c4ef8a2355b528422fc27bb5 | /codeforces/558C.cpp | 35119ca47c4ca7836df862ef4baa7022f7ecd2db | [] | 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 | 1,931 | cpp | 558C.cpp | // https://codeforces.com/contest/558/problem/C
#include <bits/stdc++.h>
using namespace std;
// #define cerr if(false) cerr
#define cerr cout
#define watch(x) cerr << (#x) << " is " << (x) << endl;
#define endl '\n'
#define ld long double
#define int long long
#define pii pair<int, int>
#define fi first
#define se se... |
e8c255757cb62f7319d9d66fa63dc1df71a2df5e | 9d851f5315bce6e24c8adcf6d2d2b834f288d2b2 | /chipyard/generators/gemmini/src/main/scala/berkeley-hardfloat/test-MulAddRecF16_add/dut.cpp | ba04c0fe54844a172b1fd679029336b8cfb4261a | [
"LicenseRef-scancode-bsd-3-clause-jtag",
"BSD-3-Clause"
] | permissive | ajis01/systolicMM | b9830b4b00cb7f68d49fb039a5a53c04dcaf3e60 | d444d0b8cae525501911e8d3c8ad76dac7fb445c | refs/heads/master | 2021-08-17T22:54:34.204694 | 2020-03-18T03:31:59 | 2020-03-18T03:31:59 | 247,648,431 | 0 | 1 | null | 2021-03-29T22:26:24 | 2020-03-16T08:27:34 | C++ | UTF-8 | C++ | false | false | 64,464 | cpp | dut.cpp | // Verilated -*- C++ -*-
// DESCRIPTION: Verilator output: Design implementation internals
// See dut.h for the primary calling header
#include "dut.h" // For This
#include "dut__Syms.h"
//--------------------
// STATIC VARIABLES
//--------------------
VL_CTOR_IMP(dut) {
dut__Syms* __restrict vl... |
cc859ce8ced5c4237e1b54cf58270d085f8d13c0 | 8afb86d9c8718fafe428525ef7a533773be433d4 | /src/Renderer/Texture2D.h | 039884b9c4f505bf6eb6440d7497c7048ec0371e | [] | no_license | Smirnov-Peter-Alekseevich-pmgic-studio/BattleCity | cdce0aa61ec5b3d0f20112a7bea1faa12215242b | 6ca9a91b5d6e2efe6bff6422be7c431d701e611b | refs/heads/main | 2023-04-12T05:37:04.449561 | 2021-05-16T08:44:51 | 2021-05-16T08:44:51 | 354,054,236 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,395 | h | Texture2D.h | #pragma once
#include <glad/glad.h>
#include <string>
#include <glm/vec2.hpp>
#include <map>
namespace Renderer {
class Texture2D {
public:
struct SubTexture2D{
glm::vec2 leftBottomUV;
glm::vec2 rightTopUV;
SubTexture2D(
const glm::vec2& _leftBottomUV,
... |
ec6f0f6554ecf2a38287c3ad800e8420f1ed6497 | 29dec8d4ab5ded7f0b3f2cdac3304918f9846b8f | /epam29.09.cpp | fd60e63beef3d5505bfd2734ddba92723f8619d8 | [] | no_license | halovvv/epamLabs | f950a556873355a04efcaeff5b36ec6ee1131d3a | 663f925a7ce3fc581f2b697cc026aed1f8ff9e67 | refs/heads/main | 2022-12-24T00:35:46.614933 | 2020-10-07T17:40:52 | 2020-10-07T17:40:52 | 302,111,652 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 2,200 | cpp | epam29.09.cpp | #include <iostream>
using namespace std;
struct students // 1 пункт
{
string Surname;
string Name;
int Score[3];
int Sum;
};
void showData(students* st, int amount)
{
for (int i = 0; i != amount; i++) //4 пункт
{
cout << "#" << i + 1 << " Surname:\t" << st[i].Surname << "\t" << " Name:\t"... |
002f50d33394a061da000c9807209c89714826e4 | 4aa08d49eca9ad51cbd9493236a72a427388cfe1 | /src/MathParser.cpp | fa459543800a0e04bf5729ac0d2f9fc842822f7c | [] | no_license | pmarathe25/Math | 0b85651a1a1628adb107adfe81fb57c2944971be | 35a248eae472b584058a75dd616eb048ad324778 | refs/heads/master | 2021-01-20T18:33:31.270667 | 2017-10-20T23:04:21 | 2017-10-20T23:04:21 | 62,969,309 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,681 | cpp | MathParser.cpp | #include "MathParser.hpp"
#include <algorithm>
namespace StealthMath {
MathParser::MathParser() {
}
double MathParser::parse(std::string expression) {
// Remove spaces.
expression = strmanip::remove(expression, " ");
// Balance parentheses.
expression = strmanip::balance(e... |
7fb91c6dcd2973c72f0cb8fceffeb16166d065a3 | ff18be417439435d0db3756181a9e98c55cf25e3 | /ACM-ICPC/ACM-ICPC_12/Amritapuri/online contest/ACM-ICPC Amritapuri 2012 Online Competition Accepted Solutions/D/cpp/00006227_D_TEAMDIV_amicpc120394.cpp | c3ac2932f839a2e690f903d3527de25020fccedb | [] | no_license | rovinbhandari/Programming_Scripting | 3952b45636f10e46c05dede29492eb0828857448 | ee67f9289883d3686ed5cf41dbae13e1313bcfb0 | refs/heads/master | 2023-06-22T13:52:03.559222 | 2023-06-20T13:40:32 | 2023-06-20T13:47:22 | 4,378,004 | 6 | 1 | null | 2019-03-25T14:44:18 | 2012-05-19T12:25:13 | C++ | UTF-8 | C++ | false | false | 1,757 | cpp | 00006227_D_TEAMDIV_amicpc120394.cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <cstring>
#include <string>
#include <sstream>
using namespace std;
#define REP(i,n) for(int i=0;i<(int)n;i++)
#define FOR(i,a,n) for(int i=(int)a;i<(int)n;i++)
#define FOR1(i,n) for(int i=1;i<=(int)n;i++)
#define ALL(c) c.begin(),c.end... |
7e5d4fbef69967ee86f57e76dbcf6dca4465355d | ac453c5afa6797e11411fa07f9bf491c989e59fd | /include/hal/Adc.hpp | be45dfcfb75ad274ebb65bf700b79b0e76c8efb1 | [
"BSD-3-Clause"
] | permissive | charanyaarvind/StratifyAPI | 0344a3b13b933cde242221677fbb9f91301645ef | adfd1bc8354489378d53c6acd77ebedad5790b4f | refs/heads/master | 2020-03-27T11:14:38.510797 | 2018-08-28T03:06:57 | 2018-08-28T03:06:57 | 146,473,720 | 0 | 0 | BSD-3-Clause | 2018-08-28T16:10:27 | 2018-08-28T16:10:27 | null | UTF-8 | C++ | false | false | 4,030 | hpp | Adc.hpp | /*! \file */ //Copyright 2011-2018 Tyler Gilbert; All Rights Reserved
#ifndef SAPI_ADC_HPP_
#define SAPI_ADC_HPP_
#include <sos/dev/adc.h>
#include "PinAssignment.hpp"
#include "Periph.hpp"
namespace hal {
/*! \brief ADC Attributes Class
* \details This class is for containing ADC attributes.
*/
class AdcAttr : p... |
a78a190ff19dfff6332edfb97c57a34446cc494a | fd183defc064165daf2902b91fbb2e4cb7f1b9c7 | /VolumeSingleScatter/main.cpp | 669460eddaab6f4470f9b70c692fd0ca4587c0c5 | [] | no_license | daydreamer2023/VolumeSingleScattering | b8d894250941c83e3222dc062bd34c7b78e67055 | 34a8e866a1a31d341f34ab3fe2b5ab7e78f7c45e | refs/heads/master | 2021-09-10T23:04:00.002949 | 2018-04-03T20:29:01 | 2018-04-03T20:29:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 40,788 | cpp | main.cpp | #if defined(_WIN32)
#include <Windows.h>
#endif
//
// main.cpp
// RayTracer
//
// Created by WangYue on 16/9/20.
// Copyright © 2016年 WangYue. All rights reserved.
//
// g++ -c main.cpp
#define inf 1e20
#define eps 1e-20
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector... |
e766ad948cc08539d70afe14f1dfe83af0e57f53 | f37d8d2dcdf3b3f1aabb09e7b5f69ddbe4a75c09 | /t3d-graphics-engine-master/T3D/T3D/HouseBoatMove.h | a142f012d1c29436da72cba01ffe08e038c77339 | [] | no_license | Ken-na/RoboPirates | 8d4f568f0a66c1ba61592a69a239ca0e97e275c4 | dd8af05e4e4eb8dfc1cd32fbe994b52902de38d0 | refs/heads/master | 2023-03-02T09:38:34.898547 | 2021-02-01T10:18:29 | 2021-02-01T10:18:29 | 334,792,779 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 325 | h | HouseBoatMove.h | #pragma once
//#include "T3DApplication.h"
#include "task.h"
namespace T3D {
class HouseBoatMove :
public Task
{
public:
HouseBoatMove(T3DApplication *app);
~HouseBoatMove(void);
virtual void update(float dt);
//void init();
//~AnimationTask(T3DApplication *app);
float elapsedTime;
Transform *obj;
... |
a1a4cef7c1474ff5ebe181cbd6338f317fb7d01e | 775acebaa6559bb12365c930330a62365afb0d98 | /source/public/interfaces/ui/IMenuCustomizationData.h | 0087f7298ce737c31a5870f93fec16b519bc08d5 | [] | no_license | Al-ain-Developers/indesing_plugin | 3d22c32d3d547fa3a4b1fc469498de57643e9ee3 | 36a09796b390e28afea25456b5d61597b20de850 | refs/heads/main | 2023-08-14T13:34:47.867890 | 2021-10-05T07:57:35 | 2021-10-05T07:57:35 | 339,970,603 | 1 | 1 | null | 2021-10-05T07:57:36 | 2021-02-18T07:33:40 | C++ | UTF-8 | C++ | false | false | 7,506 | h | IMenuCustomizationData.h | //========================================================================================
//
// $File: //depot/devtech/16.0.x/plugin/source/public/interfaces/ui/IMenuCustomizationData.h $
//
// Owner: lance bushore
//
// $Author: pmbuilder $
//
// $DateTime: 2020/11/06 13:08:29 $
//
// $Revision: #2 $
/... |
b894dbf3904955f39d3869f49e09ba433676c0f7 | 617f1777427d6302bf55de8cfd8c642ff189c1af | /Codeforces/gravity.cpp | 642bf7ee38432506daa61fe22ff04df3c17c399b | [] | no_license | alywaly13/codechef | 76c89593e7d2f87cbd1ed3e59def99f23a1cfb50 | 084b5b2d1a33d5b733dabaa7c99bd2a44c7f7236 | refs/heads/master | 2020-05-19T19:43:20.928761 | 2015-08-13T03:38:35 | 2015-08-13T03:38:35 | 40,637,234 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,526 | cpp | gravity.cpp | #include <iostream>
#include <cmath>
#include <string>
#include <cstdlib>
using namespace std;
void calc(string a, string b){
// cout << a.length();
// cout <<b.length();
int last;
long switches = -1;
for(long i = 0; i < a.size(); i++) {
if (a[i]=='#' && b[i]=='#'){
cout << "No";
... |
8e827bc0d9c710ff6824b64ef4aa557d646afb64 | 9f0c3e15eb57eb0d3c74cf5a949905b5b167021f | /Tree/Pruning.cpp | 0abe6f7d8850fb776212fac69e570b56e53f973a | [] | no_license | BhJia/Data-Structure | 87899768917836ca921baf00d1f78bf12ef618ca | 48f5537832c746902c33e53cc187eea9a55f7a6b | refs/heads/main | 2023-08-04T14:12:22.511869 | 2021-09-28T01:08:00 | 2021-09-28T01:08:00 | 411,091,843 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,671 | cpp | Pruning.cpp | #include <bits/stdc++.h>
using namespace std;
template <class T>
struct TreeNode
{
T val;
TreeNode *left, *right;
TreeNode() : left(nullptr), right(nullptr){};
TreeNode(T &x) : val(x), left(nullptr), right(nullptr){};
TreeNode(T &x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right)... |
b0cd86c4ba7a6a762c093f0c50b6c791d8276835 | 7503aa76d5f67825b589d3ad567bbee12c1d2460 | /parsingrfframe.h | 6c4bd1dda1a72920187baa1a5986aa1bfe0999ad | [] | no_license | zy14443/NFC_Frame_Viewer | b56085c1f5bb48832347fb1fb6e0f8c7790368ab | 0c9939fb8ed8711489eb20fc1172c174ddbaad86 | refs/heads/main | 2023-07-17T15:44:49.711356 | 2021-09-07T18:30:44 | 2021-09-07T18:30:44 | 404,082,023 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,310 | h | parsingrfframe.h | #ifndef PARSINGRFFRAME_H
#define PARSINGRFFRAME_H
/*******************************************************************************
* THIS INFORMATION IS PROPRIETARY TO BROADCOM CORP
*
* ------------------------------------------------------------------------------
*
* Copyright (c) 2011 Broadcom Corp.
*
* ... |
1c0254901309e8e4a2d20f0a6e0c5c6675cd2fee | 4720509cf38d03eee361055a4af3625173c446e9 | /classe.cpp | 62e953384d3b0eeea9b7b47b46fbde463feb0597 | [] | no_license | FernandoFaveroRo/AtividadePOO | bd7c8cdca89e7322cde4d20436894eb5b38864a7 | 6ada0c29b7101c89bd810881b501317c7fa6bd42 | refs/heads/main | 2023-05-12T09:41:43.163992 | 2023-05-07T15:29:32 | 2023-05-07T15:29:32 | 354,914,851 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,090 | cpp | classe.cpp | #include "classe.hpp"
// ---------- POLIGONO ---------//
Poligono::Poligono(){
this->base = 0.0;
this->altura = 0.0;
}
Poligono::Poligono(float x, float y){
this->base = x;
this->altura = y;
}
float Poligono::getBase(){
return this->base;
}
float Poligono::setBase(float x){
this->base = x;
}
f... |
a673b59cab355f04598ee9a24d9f7b6693a16483 | 20e4a665595f2290f38cbca7f3fde4476b6d8da4 | /2020.09.17-Homework-1/Task4/Source.cpp | 2efcb6731e1a99538126d6d750e81677e512d21f | [
"Apache-2.0"
] | permissive | st021213/programming-bach-2020-autumn | 64fa2926628127883ede25c6621daefbe2cfe691 | b0b62cc3ac46b981f272bc362398e63b4cb62e7f | refs/heads/master | 2023-02-01T08:16:14.238574 | 2020-12-17T07:59:53 | 2020-12-17T07:59:53 | 298,191,586 | 2 | 1 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 516 | cpp | Source.cpp | #include<iostream>
using namespace std;
/*
4. Написать программу, печатающую все простые числа, не превосходящие заданного числа.
ввод: 18
вывод : 2, 3, 5, 7, 11, 17
*/
bool isPrime(int n)
{
for (int i = 2; i * i <= n; ++i)
{
if (n % i == 0)
{
return false;
}
}
return true;
}
int main()
{
int n = 0;
... |
743316b455fb8c0f01f125eced0ba9f52f671e02 | efe51f3a9520a9c295a0d065df239f7fef1eac6d | /lextest.cc | 5bdc04d18d892743201de6901445db6b241d9677 | [] | no_license | KabirUttamsingh/Compiler | 4e4653e99e457f81bc659d4bb4f70d7a5506ff6c | 199fa220dced5ab761e5412204ccb6beb28575bd | refs/heads/master | 2021-07-08T20:23:18.571819 | 2017-09-27T22:15:33 | 2017-09-27T22:15:33 | 105,075,162 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | cc | lextest.cc | #include "token.h"
#include "lexer.h"
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
void processFile(istream& in) {
Lexer lexer(in);
Token token;
token = lexer.nextToken();
printf(" Type Lexeme Line # Pos\n");
while (token.getType() != Token::ENDOFFILE) {
pri... |
65b282422716419247d8ca895d88c1dc55805a83 | 7fa46faf52cad727faf012ff60f07ebd17882c63 | /terminal_new/audiowidget.cpp | 44b8a343b525adb0d930b5c6726b289806ad199d | [] | no_license | chunhui204/qt-project | c945ba632b9d6408ae98816cbae791cae1373a22 | 9fd13829437a59fc47f3287808502b8336a02512 | refs/heads/master | 2020-03-22T18:15:54.641483 | 2018-10-14T01:55:08 | 2018-10-14T01:55:08 | 140,448,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,611 | cpp | audiowidget.cpp | #include "audiowidget.h"
#include "ui_audiowidget.h"
AudioWidget::AudioWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::AudioWidget)
{
ui->setupUi(this);
initUI();
}
void AudioWidget::initUI()
{
// 初始化绘图组件customPlot
ui->customPlot->addGraph();
ui->customPlot->graph(0)->setPen(QPen(Q... |
35599391bef495a17a419cbb80787cd93bc5e043 | ff7f92968d200843a6a480dda8247e9fe26d094b | /client/src/game_io/final_match.cpp | f7401b95aaef9dd73fea983b09815601f695b0b6 | [] | no_license | IngErnestoAlvarez/CounterStrike | e7b36867de2b4cd2ac1a19fb8cf4217a89b40043 | 0155ce1ef31c1c5abaefcad36f196cdd0845c502 | refs/heads/main | 2023-07-18T17:07:28.168997 | 2021-07-20T20:24:12 | 2021-07-20T20:24:12 | 373,655,897 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 771 | cpp | final_match.cpp | #include "game_io/final_match.h"
FinalMatchScreen::FinalMatchScreen(SdlWindow &window, FinalScores *fs,
TeamID myTeam)
: myTeam(myTeam),
score(window),
winner(window, "VICTORIA", BLUE, 60),
looser(window, "DERROTA", RED, 60),
fs(fs) {
winner.set_pos(50... |
4a917c374bd12ac567e033869411247b7d63a93c | 1cfc1bf471fac442968051d081878f811d8e9b5f | /QualEye/BloberClass.cpp | 4219df89def4a3477179b6889de4ae619e79aeb4 | [] | no_license | ess-seb/QualEye | a8418f0b2d053a2fe0783959c9dde731d8c29ad3 | bdaca30434946323e336e2366751f8a37d056d0c | refs/heads/master | 2016-09-11T08:20:27.318254 | 2014-09-07T11:09:35 | 2014-09-07T11:09:35 | 23,758,008 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,222 | cpp | BloberClass.cpp | #include "StdAfx.h"
#include "BloberClass.h"
#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
#include <Math.h>
#include <string>
#include <iostream>
#include <blob.h>
#include <BlobResult.h>
//#include <BlobExtraction.h>
#include <BlobLibraryConfiguration.h>
static IplImage* image_resized;
static IplIma... |
c722093f8744ab3e7916d2cead9e4a630c6cce6f | 04c3023905e3bf1493b1e2310b74c3a5c7fa332c | /structs.h | f2ac3625a61a99e3c5bb868af98fbc778bc5c4d4 | [] | no_license | lx9t01/CG5 | 7310b1e562c8a7baf6ac217597c56652e5208c6f | 119a8ce5d2ca5f84dc1d6fb6963bd26db247051f | refs/heads/master | 2021-01-10T07:39:15.023945 | 2015-11-18T04:12:56 | 2015-11-18T04:12:56 | 46,394,490 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,917 | h | structs.h | #pragma once
#ifndef STRUCTS_H
#define STRUCTS_H
#include <string>
#include <vector>
#include <stdio.h>
#include <math.h>
#include <fstream>
#include <iostream>
#include <sstream>
using namespace std;
struct Vec3f
{
double x, y, z;
};
struct Vertex
{
double x, y, z;
Vertex(float x1, float y1, float z1){
... |
cf68c0e1958a8c090e989e637f7c83ccc08844ea | 84caa80560aade813c5a53846461bc1ea2e95fb9 | /Proj4/main.cpp | cad52dfa088217252e9252396003fa85db424299 | [] | no_license | hennoz/FYS3150Project4 | 5c163b91ca05da53b77e4512eca968eeabad8635 | e0af43c35d814c960d7341ba7077806435015288 | refs/heads/master | 2020-04-04T10:35:58.769716 | 2018-11-20T07:19:08 | 2018-11-20T07:19:08 | 154,859,463 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,590 | cpp | main.cpp | #include <iostream>
#include <random>
#include <fstream>
#include <iomanip>
#include "analytical.h"
#include "metropolissampling.h"
#include <mpi.h>
#include <chrono>
using namespace std;
ofstream outfile;
void output( int dim, double T, double *ExpectVal, int MCcycles, double timing );
int main( int argc, char *arg... |
b64c2867a91d3d4650f9873cd529a3b32d54c860 | c686516041c5489c7a49911715effe2224334bf4 | /WD_Alg/5th/5_3_3_12.cpp | b43529054d94cc47ccf4d0164434d05844b453de | [] | no_license | ccccqyc/Books | 58326ba6b94c719e0bf94ee985b9a756001cae3e | 77b131a1ba4bcb40fdb47cbcfdeae91d94c270dd | refs/heads/master | 2023-06-26T09:44:58.931630 | 2021-08-01T07:26:43 | 2021-08-01T07:26:43 | 297,269,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 844 | cpp | 5_3_3_12.cpp | // 第五章 树与二叉树
// 5.3.3 二 12
// 打印值为x结点祖先
#include <malloc.h>
#include <cstdio>
typedef int ElemType;
// 二叉树
typedef struct BitNode {
ElemType data;
BitNode *lchild, *rchild;
} BitNode, *BitTree;
// 思路后续遍历,查询到x值的结点,终止遍历,输出队列中祖先
void search(BitTree T, ElemType x) {
Queue Q;
initQueue(Q); //初始化遍历队列.
... |
9cfff6c591ef3e6bb1e054bceee38399eadd7d2b | 84257c31661e43bc54de8ea33128cd4967ecf08f | /ppc_85xx/usr/include/c++/4.2.2/gnu/javax/security/auth/login/ConfigFileParser.h | c8f707479b01ccbf2f98b5385eaffbc1dc2dace6 | [] | no_license | nateurope/eldk | 9c334a64d1231364980cbd7bd021d269d7058240 | 8895f914d192b83ab204ca9e62b61c3ce30bb212 | refs/heads/master | 2022-11-15T01:29:01.991476 | 2020-07-10T14:31:34 | 2020-07-10T14:31:34 | 278,655,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,385 | h | ConfigFileParser.h | // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __gnu_javax_security_auth_login_ConfigFileParser__
#define __gnu_javax_security_auth_login_ConfigFileParser__
#pragma interface
#include <java/lang/Object.h>
extern "Java"
{
namespace gnu
{
namespace javax
{
namespace security
... |
1bac148aee01d804f3db8a58122649eef2d73466 | b0b024d8d68593d622aa4f3b2a4af20045207818 | /C++/Append_Last_Kth_Node(LinkList).cpp | 5bf90ed7343b0a233bd0d08991d96b07297771fe | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Anshuman212/HacktoberFest2021 | 41c7529faa1640ec319103cc72a2264c1d65d9ed | 9dba6d7492a171298acfcf59ed4599bb5095a48c | refs/heads/main | 2023-08-13T12:45:04.009408 | 2021-10-13T05:32:29 | 2021-10-13T05:32:29 | 415,319,296 | 0 | 1 | MIT | 2021-10-09T13:37:55 | 2021-10-09T13:37:55 | null | UTF-8 | C++ | false | false | 2,046 | cpp | Append_Last_Kth_Node(LinkList).cpp | #include<iostream>
using namespace std;
class node{
public:
int data;
node* next;
node(int val){
data=val;
next=NULL;
}
};
void insertAtTail(node* &head,int val){ //insert node at the tail of linklist
node* n=new node(val); // make a new node to data is insert
if (head=... |
4af86227a146d631081a5ad54c23859ba3869c7b | c0b471f8cfd32f02cbcaa0db86afc8075d3ea95b | /OneMoreTalk_Client/friendlistitem.h | 1e3a2a79dc084a6c0c364102cb7806bcf6c4e2d0 | [
"MIT"
] | permissive | xqyzjl/OneMoreTalk | 83889710c1f607b83162e3ae0da7562ce80dc039 | aa7209357f87d7f314eace86faba21a5fd161082 | refs/heads/main | 2023-07-29T11:25:13.004867 | 2021-09-04T13:56:11 | 2021-09-04T13:56:11 | 403,068,431 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 621 | h | friendlistitem.h | #ifndef FRIENDLISTITEM_H
#define FRIENDLISTITEM_H
#include <QWidget>
#include <QLabel>
#include <QDebug>
#include <QListWidgetItem>
class FriendListItem : public QWidget
{
Q_OBJECT
public:
explicit FriendListItem(QWidget *parent = nullptr);
void setID(int id);
void setDot(bool);
void setSign(QStri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.