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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
697ee5a7009d635fe66e5cced96343417a143e82 | aa5ca755d9876e9105ffabe5fca7f307dfe485e7 | /Babel_Serveur/Babel_Serveur/CPP/FileContact.cpp | ccdab4b4fc60f30ec1fbc2e88f1c2b4ca9ba9a56 | [] | no_license | atidot3/Babel | ebcc651777a668bcaf0f7de5d4288e0c5666127c | 9dbfb9aa7c9f739863bb5e86d2573ea95868015e | refs/heads/master | 2021-01-23T02:54:27.847276 | 2014-11-09T20:41:46 | 2014-11-09T20:41:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,505 | cpp | FileContact.cpp | #include "Include/FileContact.hh"
#include <string>
#include <iostream>
#include <vector>
FileContact::FileContact(const std::string &pseudo)
{
std::ofstream file;
this->_user = pseudo;
this->_pseudo = "accounts/" + pseudo;
if (this->checkExistence(pseudo) == false)
{
file.open(_pseudo.c_str()... |
47ae912f964d89de8d36648098811f6b1d685acd | 6c3a113ef04b1189b230ed48922dbbe57a7e269c | /Node.hpp | a39f34256b3ace6577b2027b36ab7963ce88b6ac | [] | no_license | shriramjoshi/CAN | 2a58cfc418bc794a7c5c803741eb125f583828e9 | 1c31f1bf934e6175abe48d5061bb014b0ddbbc90 | refs/heads/master | 2021-01-01T19:50:02.955234 | 2017-08-02T09:01:15 | 2017-08-02T09:01:15 | 98,703,055 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,088 | hpp | Node.hpp | #ifndef NODE_HPP
#define NODE_HPP
#include "Server.hpp"
#include "Member.hpp"
#include "Message.hpp"
#include "Logger.hpp"
#include "SharedQueue.hpp"
#include <boost/asio.hpp>
#include <utility>
#define TREMOVE 50000
#define TFAIL 10000
namespace boost_geometry = boost::geometry::model::d2;
class Node : public Memb... |
544dd5ad15dcb9034657a08ece7287792174098d | 831e634496e86f4aad88d604c4cfe40173a9874c | /Codeforces-Problem B/1145B.cpp | 0038d6802ea38e8cfd182b08abdb8ef0b7f599be | [] | no_license | Sujan804/Competitive-Programing | d03f3e973092748d70379a87f722b4d58d6361b5 | 454ac154ecd781b57431d0ab963a2f000f0fb531 | refs/heads/master | 2023-06-03T10:49:45.722601 | 2021-06-17T12:45:03 | 2021-06-17T12:45:03 | 263,839,561 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,958 | cpp | 1145B.cpp | /** PUSH YOURSELF TO THE LIMIT**/
/*** Sujan Ahmed ***/
/**** Updated: 12-04-21||11:25 **/
#include<bits/stdc++.h>
#define IO std::ios_base::sync_with_stdio(false);std::cin.tie(nullptr);cout.tie(nullptr);
#define endl "\n"
#define l64 __int64
#define mod 1000000007
#define maxN 1000000
#define PB push_back
#define rsor... |
11994046f8e6449322daddf59de87ea9c7fb87a9 | 44522084033b659642f68656e4eaab27b9b80a95 | /C++/#12#.cpp | bcadf834abeff72d54e6f3bf212edbedc973ee64 | [] | no_license | GibJaf/CyberCell | 78034f648d8088b686a4dd82d7a3991716abd53a | 736939757201a59768cb8a8e20aeb0ccb1a3cb70 | refs/heads/master | 2020-03-30T03:51:16.282784 | 2019-07-14T15:21:16 | 2019-07-14T15:21:16 | 150,710,760 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 417 | cpp | #12#.cpp | #include <stdio.h>
int findStep(int n)
{
if (n == 1 || n == 0)
return 1;
else if (n == 2)
return 2;
else
return findStep(n - 3) +
findStep(n - 2) +
findStep(n - 1);
}
int main()
{
int n;
printf("e... |
f94e53128f9ecaad91f7b303a9513ecc84d3664d | aeb2dda48d22c4eef4e3b43aef1c4a120e6c5fbc | /TrashMarshal/BeltFunctions.ino | 6fd8590c6f0d6d29f2dbc288c4b5fc8d9986a762 | [] | no_license | navidkhan1/TrashMarshal | a19affdccc7b0957fa985a1da818fb76bc9f233f | 49a738d78d2a44b1067e5d4143c59995561cefc9 | refs/heads/master | 2020-04-11T23:41:59.774011 | 2018-12-26T06:14:32 | 2018-12-26T06:14:32 | 162,175,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128 | ino | BeltFunctions.ino | void beltON()
{
belt.write(0);
beltStatus = true;
}
void beltOFF()
{
belt.write(110);
beltStatus = false;
}
|
2e80bc614a3bcaec189d821bacbc5c1a9eff8b5f | 339aca423e73308b8e87ebd5553081eed46d10fb | /指针/diwuzhang513.cc | 89613b09c2e566f4bd2f5d7ef67f95260009ccb4 | [] | no_license | wuhongyi/TechnicalReserves | 26aa44b067a6cc898eba8088c6f36300f5b6bb4f | 2f3148942633a2b9731e88735f3b652056f811f4 | refs/heads/master | 2021-06-26T08:56:39.492125 | 2019-05-18T09:53:32 | 2019-05-18T09:53:32 | 135,350,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,157 | cc | diwuzhang513.cc | // diwuzhang513.cc ---
//
// Description:
// Author: HongyiWu,吴鸿毅
// Email: wuhongyi@qq.com
// Created: 六 2月 22 20:59:56 2014 (+0800)
// Last-Updated: 六 2月 22 21:10:47 2014 (+0800)
// By: HongyiWu,吴鸿毅
// Update #: 1
// URL: http://wuhongyi.cn
#include <iostream>
#include <iomanip>
using namespace std... |
678f19839272de4078701c9e387735bbf45702c3 | cd8f24a7d33b36edf876d17da91b0175908e94fa | /HEADSHOT.cpp | 519b6aaabae04d2ee823656032bb569849dd3912 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | vishnujayvel/SPOJ-1 | f6f34c3cdb31d3a87c04dbedd94e1936bc63d88e | a8764d2eb9cf004dc4d405f549c07275ce1d74a0 | refs/heads/master | 2021-01-15T15:56:57.947037 | 2013-03-28T09:48:42 | 2013-03-28T09:48:42 | 11,000,711 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 591 | cpp | HEADSHOT.cpp | /*
USER: zobayer
TASK: HEADSHOT
ALGO: ad-hoc
*/
#include <stdio.h>
#include <math.h>
int main() {
char round[110];
double total, zero, ones, cnt;
scanf("%s", round);
total = zero = ones = cnt = 0;
for(int i = 0; round[i]; i++, cnt++) {
if(round[i]=='0') {
total++;
if(round[i+1]) {
zero += round[i+1]=... |
10e530a7fdcf5e0ea6c1de8ead2db8ce261a94f8 | f69bb3b2536b88096887ae7d5326464ee52037cf | /LinaEngine/src/PackageManager/OpenGL/GLRenderEngine.cpp | 7667c7643cfacc3c9615141a912cae73e58a429e | [
"Apache-2.0"
] | permissive | lineCode/LinaEngine | 97c291bf5fc3e94c8dced8aea5292ce16fe258b4 | 0118901a4ab9f045fe508cc575c96e28bb1ca2bc | refs/heads/master | 2020-05-15T18:27:06.654802 | 2019-04-19T17:30:54 | 2019-04-19T17:30:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,081 | cpp | GLRenderEngine.cpp | /*
Author: Inan Evin
www.inanevin.com
Copyright 2018 Inan Evin
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
938ca9409600900be8543b1c9c88fbc7a7fb3211 | 6011a9913a871363fb90055f29d26d31ae525786 | /uva514.cpp | 4eb9a44ec154448d35e75e32b9fb30b0dd0664b4 | [] | no_license | tim70036/Programming_Contest_2017_Fall | dde08a012fadbfb3b96a49cbeefff3bdbea22b0d | 0533b26f5e94c5c6c4346e6b388e9025b120917d | refs/heads/master | 2021-09-02T14:32:36.127029 | 2018-01-03T07:23:46 | 2018-01-03T07:23:46 | 104,372,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 683 | cpp | uva514.cpp | /* Problem: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=455 */
#include <iostream>
#include <stack>
#include <queue>
using namespace std;
int main()
{
int n;
while(cin >> n)
{
if(n==0) break;
int in;
while(cin >> in)
{
if(in == 0) break;
queue<int... |
5648e815ac0b9f1815bb579c24801514c5cd0007 | 669951b6fc45543581f452a75831eaae77c3627c | /1174A.cpp | 4c70edb4d6b3ed77d0537d6b5ebd5dc31efc5cf9 | [] | no_license | atharva-sarage/Codeforces-Competitive-Programming | 4c0d65cb7f892ba8fa9fc58e539d1b50d0d7a9cb | c718f0693e905e97fbb48eb05981eeddafde108e | refs/heads/master | 2020-06-10T01:12:17.336028 | 2019-06-24T16:43:32 | 2019-06-24T16:43:32 | 193,542,627 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 795 | cpp | 1174A.cpp | /******************************************
* AUTHOR: Atharva Sarage *
* INSTITUITION: IIT HYDERABAD *
******************************************/
#include<bits/stdc++.h>
#warning Check Max_Limit,Overflows
using namespace std;
# define IOS ios::sync_with_stdio(0);cin.tie(0);cout.tie(... |
03946a379aa9330b8569cb172f0576488d305dc2 | 87fb332035d0cc7c7d8124156280a87452a24693 | /native_addon/wj_uws/uws_app.cpp | cc6e9742abd6321b08119fa290cbfce4ba36cbae | [
"CC-BY-4.0"
] | permissive | rktuxyn/web_jsx | 36a89ba8a46a0acb5b454e9fe2c6275e4e9542c6 | 7ce26957e40c4e6658042d4f2e6f3d93a77b709f | refs/heads/master | 2021-07-03T06:04:13.062299 | 2020-09-21T14:33:39 | 2020-09-21T14:33:39 | 161,079,824 | 2 | 2 | CC-BY-4.0 | 2020-09-21T14:33:40 | 2018-12-09T20:45:50 | C | IBM852 | C++ | false | false | 5,301 | cpp | uws_app.cpp | /**
* Copyright (c) 2018, SOW (https://www.safeonline.world). (https://github.com/RKTUXYN) All rights reserved.
* @author {SOW}
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
//7:26 PM 12/5/2019
//https://github.com/uNetworking/uWebSockets.js
# include "uws_app... |
0a7b994ec67ece00d3daa2c16eb29eac872e47b5 | f4d880066afe560a3edd1c221baab85268ba28fd | /Assignment 2/Source.cpp | 1c76fdcc1514ace65a3af0ddd4b9101127305255 | [] | no_license | JuanBuena/1410-Assignment_2 | ae5f0e776f795e08b1d8206459dadb5123dc8a59 | 9de3bb3c6b32326b26cdecf31bebfc0f420427d3 | refs/heads/master | 2022-05-10T04:12:02.313992 | 2018-12-06T20:03:36 | 2018-12-06T20:03:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,349 | cpp | Source.cpp | /* COSC 1410, Assignment 2
Tuesday, September 16, 2014
Write a program that simulates the user login.
Assume the user will always enter numbers
*/
#include <iostream>
using namespace std;
//Init the functions
bool is4digits(int pw);
int main(){
//Init the variables
const int USERID = 123456, PWID = 2014; //User logi... |
c42184a3bd63209d68c2bee101da16cc2a1b4beb | 8b7abc4a71a4bfa488aa0f78b181f05bf0e2ca39 | /DS/Lab 3/stack.CPP | 313fe8eb5b89ae7d5dc673cadfe63c14f23425b4 | [] | no_license | itsnavneetk/sem3 | d9a7f37d0466bcd5037f0e81947fe4c53d6270ac | fdef1c43a487660172c3b684e7123c2fe328c3e4 | refs/heads/master | 2021-01-25T07:44:18.047946 | 2017-08-03T05:18:08 | 2017-08-03T05:18:08 | 93,657,894 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 825 | cpp | stack.CPP | #include<iostream>
#include<conio.h>
using namespace std;
class stack
{
int s[5], top, el;
public:
int size;
stack()
{
top=-1;
}
void push(int);
void pop();
void display();
};
void stack::push(int size)
{
for(int i=0;i<size;i++)
{
if(top==size-1)
cout<<"Stack Overflow!";
else
{
cout<<"Ent... |
0fe1813f9b99be6c97ed1c5e0b32af12db3e10bc | 672d383b821c5034e8337c7ee68c4037c331aadb | /packages/nextclade/src/analyze/calculateTotalLength.h | 1f97ecac852b8bf366bfba4410fdaa235175628b | [
"MIT"
] | permissive | flywind2/nextclade | 1f7f764f1c7ef3ec0091a13d225416dd78945e0b | cc9460cec046c6666ccc3f84064c96a980bc6426 | refs/heads/master | 2023-08-10T21:12:38.420204 | 2021-09-09T16:27:36 | 2021-09-09T16:27:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 301 | h | calculateTotalLength.h | #pragma once
#include <numeric>
namespace Nextclade {
template<typename T>
int calculateTotalLength(const std::vector<T>& items) {
return std::accumulate(items.cbegin(), items.cend(), 0,//
[](int result, const auto& item) { return result + item.length; });
}
}// namespace Nextclade
|
75eaa78c68abb363fe637191462992f66a0569af | a2d4cae6bfa944209a56ca5124a278f176625336 | /src/Core/Gui/Gui.cpp | 25af1225ca3f645744c8c28affdc354f2160256e | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | maciejjaskiewicz/Xenon | d57116e135088ff7dec3a4d42799fe927f2fbc05 | 665bdd69b9aa8a90ce3e90221d7ba9ded467d5d3 | refs/heads/master | 2021-07-22T18:11:44.358673 | 2020-05-13T13:25:38 | 2020-05-13T13:25:38 | 167,240,268 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 273 | cpp | Gui.cpp | #include <Xenon/Core/Gui/Gui.hpp>
#include "Platform/OpenGL/OpenGLGui.hpp"
namespace Xenon
{
std::unique_ptr<Gui> Gui::create(Window& window, const GuiConfiguration& guiConfiguration)
{
return std::make_unique<OpenGLGui>(window, guiConfiguration);
}
} |
5c77cc88e03c3ec7c08a8135740c5b4a60c8deda | 9f520bcbde8a70e14d5870fd9a88c0989a8fcd61 | /pitzDaily/878/phia | eea0001996ad0dc11c0b294c597fdf399c2bf9b0 | [] | no_license | asAmrita/adjoinShapOptimization | 6d47c89fb14d090941da706bd7c39004f515cfea | 079cbec87529be37f81cca3ea8b28c50b9ceb8c5 | refs/heads/master | 2020-08-06T21:32:45.429939 | 2019-10-06T09:58:20 | 2019-10-06T09:58:20 | 213,144,901 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 235,107 | phia | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
... | |
3c73de634f515471499e93ef26617d73a9fdc6fc | 1482f92f53ee677463a0c200e0481a5e5ddc522a | /src/States/BaseState.hpp | cf67a88c1a8455cfed5ce162e0c4094d7aff2744 | [
"MIT"
] | permissive | Whittler23/WhitE-SFML-Engine | b8673b3d82b7218dac3f86be1e2265cedc323270 | 98f6fcba303dc169dfcc4ef21b13e9cb369def66 | refs/heads/master | 2020-06-25T13:15:54.874479 | 2019-08-30T19:00:28 | 2019-08-30T19:00:28 | 199,318,454 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,235 | hpp | BaseState.hpp | #pragma once
#include "Renderer/stateRenderer.hpp"
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include <vector>
namespace WhitE {
class GameObject;
struct SharedData;
class BaseState
{
public:
BaseState(SharedData& sharedData);
virtual ~BaseState();
virtual void onPop() = 0;
virtual void onPush(... |
7d8befc933915da867eca05074f18b4b5e57e945 | d1179bba13fda35acffc860c59b260c961eb0d98 | /kta/a1sl/a1sl.cc | 7800a8021825dbb983174d4a1fd4e4487b2f845a | [
"MIT"
] | permissive | dimasalomatine/kta | 2702e86e1feab8626d7eeca4eaeb2e1e6d1113cd | 0af246321cf90e329decc152cb2a7144b7d70b8c | refs/heads/master | 2016-09-05T19:07:37.200953 | 2013-08-07T17:16:28 | 2013-08-07T17:16:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 668 | cc | a1sl.cc |
#include "a1sl.h"
#include "string.h"
#include <stdio.h> /* printf, scanf, NULL */
#include <stdlib.h> /* malloc, free, rand */
static char*tmp=NULL;
#define TBS 10*1024+800
//*512
char *init_a1sl() {
if(tmp==NULL)
{
tmp=(char*)calloc(TBS,sizeof(char));
}
unsigned int i;
//for(... |
0fd1a372f5f6b54637b051152b8a22ee3461c7d1 | 8665c1f70eab0814cf11d6ebf5604c7155c1fd74 | /RayTrace.hpp | 3b991a82e471f7255960ab4d36634e0c79608c0a | [] | no_license | c9dong/CS488-Raytracer | f27118b176c1ebd65ac25f6f5156050bb5af25c0 | 8c1015c611023bed05e23e0b46fcc0d35eb265ee | refs/heads/master | 2020-12-03T06:37:59.820579 | 2017-07-19T18:56:19 | 2017-07-19T18:56:19 | 95,712,221 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,022 | hpp | RayTrace.hpp | #pragma once
#include <glm/glm.hpp>
#include "SceneNode.hpp"
#include "Light.hpp"
#include "Image.hpp"
#include "Ray.hpp"
#include "Shadow.hpp"
class RayTrace {
public:
struct GenerateArg {
int x_start;
int y_start;
int x_size;
int y_size;
int x_max;
int y_max;
glm::mat4 world_ma... |
42a1b6e4041f436a1dea3d860495310e63eb42dd | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/db/6f4f1b7eb17a64/main.cpp | 1481b850cbdcd5f8f492a4cda843b5e07da38a49 | [] | 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 | 236 | cpp | main.cpp | #include <iostream>
#include <boost/units/unit.hpp>
void test2()
{
int i = 0;
i++;
}
void test()
{
test2();
}
void asd()
{
test();
asd();
}
int main(int argc, char* argv[])
{
asd();
}
|
268b60cb6f3947baa238aad5fafc40db51aa4ea3 | 9ff321d2ff5a27ffe3a3938dddc26052cadf2fcf | /src/server/http.cpp | 5156dfe723adb028e80a4488a47712b1d732bbf5 | [
"BSD-3-Clause",
"MIT"
] | permissive | raedatoui/acoustid-index | 352895ace7ed579ee5055e17d9b96a09f6e3746c | f125c75c2c6a0d7da6cb5a81b116e0522c8182c4 | refs/heads/master | 2022-09-01T21:02:18.093770 | 2020-05-31T12:21:10 | 2020-05-31T12:21:10 | 283,866,048 | 1 | 0 | NOASSERTION | 2020-07-30T20:01:07 | 2020-07-30T20:01:06 | null | UTF-8 | C++ | false | false | 1,135 | cpp | http.cpp | #include "http.h"
#include "metrics.h"
using namespace qhttp::server;
namespace Acoustid {
namespace Server {
static void sendContent(QHttpResponse *res, const QString &content) {
auto contentBytes = content.toUtf8();
res->addHeaderValue("Content-Length", contentBytes.size());
res->end(contentBytes);
}
... |
ca6bf03e873a5155af1d413e57b1b3d1f9814c55 | cde7a34aab67a0511081c64eeb7ed34035ddee72 | /GameScene.h | ccdb9cbbe4045f71c48a0d13378099f8744c1d94 | [] | no_license | kiyoxy/AT12CTEAMWORK | 7caa28e9b2bf10544a3fa7327a3426b574e97f8b | b1941b414005717c8e4da21e008a95ee02f7577d | refs/heads/master | 2020-08-27T19:10:23.734388 | 2019-12-22T19:38:50 | 2019-12-22T19:38:50 | 217,467,372 | 0 | 0 | null | 2019-12-18T05:16:12 | 2019-10-25T06:36:40 | C++ | SHIFT_JIS | C++ | false | false | 5,214 | h | GameScene.h | #pragma once
#include "Main.h"
#include "Input.h"
#include "xinpututil.h"
#include <math.h>
#define BLOCK_WIDTH 40
#define BLOCK_HEIGHT 40
#define SEPARATEWIDTH 32 //画面分割数(横)
#define SEPARATEHEIGHT 18 //画面分割数(縦)
#define STAGEMAX 1 //ステージ数
#define SEPARATESCROLLNUM 1.2//大きくするとスクロールまでが早くなる(... |
7ab21be4fbe42989a81dffb973910dc8b0f931a3 | 749a66f49629f44ae0279ae3dd947c4c88265555 | /HillsHaveTowers/HillsHaveTowers/SoundManager.h | 0ef978e217cb5e38042ced00a2f1808808d9ef9d | [] | no_license | pierrecwchen/HillsHaveTowers | 20cebc4f441eb4bc40f3adf621eef8443d03f8d1 | 1d9ab3481cbd69d73a5546e8f83c0c89741789df | refs/heads/master | 2020-03-21T05:41:18.636105 | 2018-07-03T19:22:03 | 2018-07-03T19:22:03 | 138,054,751 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,287 | h | SoundManager.h | #ifndef SOUNDMANAGER_H
#define SOUNDMANAGER_H
#include <map>
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include "fmod.hpp"
#include "fmod_errors.h"
class SoundManager
{
public:
static bool Init();
static bool InitGameSounds();
static void PositionListe... |
5078ef59f58996777b7674bbd2224687b2131489 | 820b6af9fd43b270749224bb278e5f714f655ac9 | /Filters/Parallel/vtkPExtractDataArraysOverTime.cxx | 1bc20c919ba0729aa1e4ea57bc3b23fba97ffa9d | [
"BSD-3-Clause"
] | permissive | Kitware/VTK | 49dee7d4f83401efce8826f1759cd5d9caa281d1 | dd4138e17f1ed5dfe6ef1eab0ff6643fdc07e271 | refs/heads/master | 2023-09-01T10:21:57.496189 | 2023-09-01T08:20:15 | 2023-09-01T08:21:05 | 631,615 | 2,253 | 1,243 | NOASSERTION | 2023-09-14T07:53:03 | 2010-04-27T15:12:58 | C++ | UTF-8 | C++ | false | false | 6,526 | cxx | vtkPExtractDataArraysOverTime.cxx | // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
// SPDX-FileCopyrightText: Copyright (c) Kitware, Inc.
// SPDX-License-Identifier: BSD-3-Clause
#include "vtkPExtractDataArraysOverTime.h"
#include "vtkDataSetAttributes.h"
#include "vtkInformation.h"
#include "vtkMultiBlockDataSet.h"
#... |
30ab295cdcd3327bd3d739a5ddaf9c7bb8710452 | eb2f8b3271e8ef9c9b092fcaeff3ff8307f7af86 | /Grade 10-12/2019 winter/cf787D/t1.cpp | db70e897b2e85e5fa0467d1f563211c34793179b | [] | no_license | Orion545/OI-Record | 0071ecde8f766c6db1f67b9c2adf07d98fd4634f | fa7d3a36c4a184fde889123d0a66d896232ef14c | refs/heads/master | 2022-01-13T19:39:22.590840 | 2019-05-26T07:50:17 | 2019-05-26T07:50:17 | 188,645,194 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,669 | cpp | t1.cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cassert>
#include<queue>
#define ll long long
using namespace std;
inline ll read(){
ll re=0,flag=1;char ch=getchar();
while(!isdigit(ch)){
if(ch=='-') flag=-1;
ch=getchar();
}
while(isdigit(ch)) re=(re<<1)+(re<<3)+ch-'0',ch=getc... |
2581fc897026299ac0b6b8093e6f204216ff9104 | 98157b3124db71ca0ffe4e77060f25503aa7617f | /topcoder/archive/Undiv2.cpp | 79ca7dfde80011f3aa108fd87c56b48fdb0ede20 | [] | no_license | wiwitrifai/competitive-programming | c4130004cd32ae857a7a1e8d670484e236073741 | f4b0044182f1d9280841c01e7eca4ad882875bca | refs/heads/master | 2022-10-24T05:31:46.176752 | 2022-09-02T07:08:05 | 2022-09-02T07:08:35 | 59,357,984 | 37 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 3,225 | cpp | Undiv2.cpp | #include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
return a ? gcd(b % a, a) : b;
}
long long lcm(long long a, long long b) {
return (a/gcd(a, b)) * b;
}
class Undiv2 {
public:
long long getsum(int n) {
vector< pair< long long, pair<int, long long > > > v;
for (int i = 2; i... |
66cd08f3c59f900ecec73a6659e096c57d96e1c4 | 77bbf5ed3536ad7fa3c3c99921fd26b400a625bb | /examples/line_plot/plot3/plot3_2.cpp | 2fb8e9005fd6c4b4263843cab864f52ff38f8b3a | [
"MIT"
] | permissive | kurogane1031/matplotplusplus | ffc55a475c05383e958e079fad319cdd9c904a0c | 44d21156edba8effe1e764a8642b0b70590d597b | refs/heads/master | 2022-12-18T21:06:06.875321 | 2020-08-29T19:08:55 | 2020-08-29T19:08:55 | 291,301,340 | 0 | 0 | MIT | 2020-08-29T15:52:51 | 2020-08-29T15:52:50 | null | UTF-8 | C++ | false | false | 667 | cpp | plot3_2.cpp | #include <cmath>
#include <matplot/matplot.h>
int main() {
using namespace matplot;
std::vector<double> t = iota(0, pi/500, pi);
std::vector<double> xt1 = transform(t,[](auto x){return sin(x)*cos(10*x);});
std::vector<double> yt1 = transform(t,[](auto x){return sin(x)*sin(10*x);});
std::vector<doub... |
ef7254e197590d1ea3b3dc818c50fa060458b26e | ea8afd37229ed3c1900d26a33ec7f71f7507add2 | /tests/harness/mbed_test_harness_cfg.hpp | 6cc78ed99999730a78b8cdd43af112587ecbc981 | [
"MIT"
] | permissive | brandonbraun653/ThorDev | 101d3824058a610d265f47cc9678305ca0ede243 | 051b6217b16e7fc30db2ee2e740ad9ffeec821a9 | refs/heads/master | 2023-08-18T00:31:17.193340 | 2023-08-17T20:46:11 | 2023-08-17T20:46:24 | 177,412,098 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,433 | hpp | mbed_test_harness_cfg.hpp | /******************************************************************************
* File Name:
* mbed_test_harness_cfg.hpp
*
* Description:
* Test harness configuration file for Thor
*
* 2023 | Brandon Braun | brandonbraun653@protonmail.com
****************************************************************... |
86f9dadb3da2fd85d280eed39761140d7ecd9f67 | 09a84b15b0dc5c9f1b62445f6d9883803d542193 | /jni/application/Ground.cpp | 5e5b33f32329b96cc08c1cefc0cd746d6bbb57f0 | [] | no_license | clarkdonald/eecs494game1 | 3135bac9dde87d66437af9759a221622cb812d3e | 3ecf9d517c47e813b24ddd7b1033853898f0767a | refs/heads/master | 2021-01-15T22:01:05.129329 | 2013-10-11T23:48:16 | 2013-10-11T23:48:16 | 13,262,700 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | cpp | Ground.cpp | //
// Ground.cpp
// game
//
// Created by Donald Clark on 10/4/13.
//
//
#include "Ground.h"
using namespace Zeni;
Ground::Ground(const Position &position_)
: Terrain(position_)
{}
void Ground::render() const {
Game_Object::render("ground");
}
|
9fe8a398e71fb48a91446e5d09c7db289210331a | e165b8b02aeb085db2bf18c3cd2667c8b991dfdf | /ExceptionClassLevel/Account.cpp | 48821590f0ce969b2e4ff43f92d04d5555dbfd74 | [] | no_license | AGistinger/Udemy_Beginning_CPP_Programming | 2e5f141955be45f6a4dbdab425f5564a713b814b | 2a933c8f739dcabc1b350cbf0a943439c24a7c36 | refs/heads/master | 2022-05-08T03:28:28.616794 | 2022-04-29T16:42:05 | 2022-04-29T16:42:05 | 253,580,146 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,044 | cpp | Account.cpp | #include "Account.h"
#include "IllegalBalanceException.h"
//Account Constructor
Account::Account(std::string name, double balance)
:name{name}, balance{balance}
{
//In the Constructor checking if balance is less than zero and throwing an exception if it is
if(balance < 0.0)
{
... |
fd0e02cd3aa850ebc783754ed8cbb748f2b9aa23 | cb3a3c4578ffc9e3e51c5eb2d88c8d488951f42f | /potato/bin_recon/source/asset_database.h | 505808eb0b9c6cffc47fcc636d4b1752e5d47d4d | [
"MIT"
] | permissive | potatoengine/potato | f89bc645a26060f2617756f98009b3215b3ac17b | bbcb42fca25ab18e0b4ea70aad0ccee6fff24dde | refs/heads/main | 2023-01-22T08:33:47.706990 | 2023-01-09T01:58:30 | 2023-01-09T01:58:30 | 158,169,449 | 48 | 3 | MIT | 2023-01-09T01:58:31 | 2018-11-19T05:58:39 | C++ | UTF-8 | C++ | false | false | 2,984 | h | asset_database.h | // Copyright by Potato Engine contributors. See accompanying License.txt for copyright details.
#pragma once
#include "posql.h"
#include "potato/runtime/asset.h"
#include "potato/runtime/uuid.h"
#include "potato/spud/generator.h"
#include "potato/spud/string.h"
#include "potato/spud/string_view.h"
#include "potato/s... |
c14afdd8944b99afc700855bc4ad576945c5f100 | d4f8f9a9158167f2eb417edbed431c617d577c65 | /genericLinkedList.h | f031243f31d0e73cd57e5c57c11d8f4cb61d4d2d | [] | no_license | sydneymiyashiro/Equation-Calculator | ac323835d974be6c717cadaa6eddd6dd11332b2b | 28952b463f03ae1c4613c07c515da000132c1a6d | refs/heads/master | 2020-03-28T16:23:29.198473 | 2018-09-13T20:01:17 | 2018-09-13T20:01:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,460 | h | genericLinkedList.h | #include <iostream>
#include <stddef.h>
using namespace std;
template<typename E>
struct genericNode {
E elem;
genericNode<E> *next;
};
template<typename E>
class genericLinkedList {
public:
genericLinkedList(); //constructor
~genericLinkedList(); //destructor
genericLinkedList(const genericLinkedList& othe... |
612185cb8c31f340c852e949f6712fedbe50fefe | 2292b0a79bbe8b37c244f3fe244e061fc85f9881 | /threadsafe_map.hpp | 15f50ae96630a3360950e78753984cce1fb911e9 | [] | no_license | kinglezhuang/threadsafe-stl-container | 5701627893c9907a461be96bbd314f7cc7f1f9c4 | 942ac39a631f6a79e18deebfbe0ea699ecbf8c9d | refs/heads/master | 2020-09-15T11:09:29.218556 | 2020-03-08T09:06:37 | 2020-03-08T09:06:37 | 223,429,368 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,331 | hpp | threadsafe_map.hpp | //
// threadsafe_stack.hpp
// stl_extension
//
// Created by Kingle Zhuang on 11/20/19.
// Copyright © 2019 RingCentral. All rights reserved.
//
#pragma once
#include <map>
#include <mutex>
#include <memory>
#include <utility>
#include <functional>
#include <shared_mutex>
namespace std
{
template <
... |
2af7e93779dabd151f9e4e28babc7f15d33e72ce | 721101c1ea557152f7178016bc395152405a03a7 | /src/show/show.cpp | c1a5c3b03fe17891ec1488ac9f2f14a734936a46 | [
"Apache-2.0"
] | permissive | u-235/nixie-in18 | c45c1f3ef90db5bff6a7ef443a9ffc7aa6f2c016 | ebe4532869fea968e5211f3e942373c74ea35c5d | refs/heads/master | 2021-11-07T05:39:15.159219 | 2021-11-06T17:08:44 | 2021-11-06T17:08:44 | 28,661,535 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,799 | cpp | show.cpp | /**
* @file
* @brief
* @details
*
* @date создан 05.01.2019
* @author Nick Egorrov
* @copyright Copyright 2019 Nick Egorrov
* @copyright http://www.apache.org/licenses/LICENSE-2.0
*/
#include "../alarm.h"
#include "../config.h"
#include "../sensor.h"
#include "childs.hpp"
struct display *Show::display_;
uint... |
b77cb8246321ea2c3740624c5d293b1eec7b0d7b | 871f10eba814f061561f6535205d896ebf18c5bc | /MFC1229/ItemInfo.h | b69bf3f9f5e05e248288f007b015c12704ae8942 | [] | no_license | 15831944/MFC-PiePicWork | 712d1b32e0888c2c475711d86d9b1c3a55a3b72d | afeb480df21f751b6ae41c53524b38416f9bb11d | refs/heads/master | 2023-03-31T20:59:58.235573 | 2018-01-07T08:04:39 | 2018-01-07T08:04:39 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 655 | h | ItemInfo.h | #pragma once
#include"Pie.h"
// CItemInfo 对话框
class CItemInfoDlg : public CDialogEx
{
DECLARE_DYNAMIC(CItemInfoDlg)
public:
CItemInfoDlg(CWnd* pParent = NULL); // 标准构造函数
virtual ~CItemInfoDlg();
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_ITEM_INFO };
#endif
protected:
virtual void DoDataExchange(CDataE... |
a934b8490b8fc176b3271eef504d77412bab349a | 8209f893a1e7effbf56d8114206e952eaf577b1d | /test/entt/entity/runtime_view.cpp | 4ae75b278c07ee295703dd161780a8fcac90b438 | [
"CC-BY-SA-4.0",
"CC-BY-4.0",
"MIT"
] | permissive | aimoonchen/entt | 78d5e05c38e57c68926bd1b1418efcc39d67991f | cb974bf5671c757cbce2e0248787bad616b06bf9 | refs/heads/master | 2023-08-18T20:14:45.347641 | 2023-06-13T09:54:29 | 2023-06-13T09:56:56 | 159,793,898 | 0 | 0 | MIT | 2018-11-30T08:41:24 | 2018-11-30T08:41:24 | null | UTF-8 | C++ | false | false | 10,527 | cpp | runtime_view.cpp | #include <algorithm>
#include <type_traits>
#include <utility>
#include <gtest/gtest.h>
#include <entt/entity/entity.hpp>
#include <entt/entity/registry.hpp>
#include <entt/entity/runtime_view.hpp>
struct stable_type {
static constexpr auto in_place_delete = true;
int value;
};
template<typename Type>
struct ... |
6f39b891300420232c85529d1051d06f373c2dac | 477fa6db86975120d4064e93d06fda4807afe979 | /knowledgeKing/knowledgeKing/Classes/GameBaseClass/GameMainScene.cpp | a9a516b762e54107ce37f04c77db96c93bacd3df | [] | no_license | nooboracle/ForTest | 86a8371ac4fb5b049966c0e7bf170cd2a3504b24 | da30d1604cc2632060001fe5e523db462bef2a7f | refs/heads/master | 2020-04-05T05:02:18.717722 | 2014-03-12T15:17:13 | 2014-03-12T15:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,636 | cpp | GameMainScene.cpp | #include "GameBaseClass.h"
#include "ASGame.h"
#include "ASUser.h"
#include "ASBot.h"
#include "SimpleAudioEngine.h"
using namespace std;
using namespace CocosDenshion;
extern ASUser* MainUser;
extern ASGame* player1;
extern ASBot* bot2;
extern int djMaxUseNumber[7];
CCScene* GameBaseClass::scene(){
CCScene *scen... |
8b89bc6d4760c34368815c877a261a9384d39120 | c7ddaad7fa061218d1e547a974fc6a7853e69c7a | /chrome/browser/ui/views/dialog_stubs_gtk.cc | 80890b8a6b4c9ac12442443696ad5af44a98b293 | [
"BSD-3-Clause"
] | permissive | cha63506/chromium-29 | 9adcc9ba819ced9dfe1f5da4807ad10516896142 | 9df275a67dc9038e300bfcad34f634b20dc9e8bc | HEAD | 2017-05-27T06:59:00.183474 | 2011-05-03T04:06:05 | 2011-05-03T04:06:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,743 | cc | dialog_stubs_gtk.cc | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file contains stub implementations of the functions declared in
// browser_dialogs.h that are currently unimplemented in GTK-views.
#include ... |
ce00a8fbc122bc30ff024f6aac6f913033f71d7d | 8578ed3398f66bafbb1f383bb648b4b5a8b9973e | /DriveAPI/BallSensor.cpp | 8b93faf9952979eaef84913f6a10df533de81edd | [] | no_license | y6tada/Yunit5X | 7d8d7dd77df4276ea0c7e0966dbd43b37409a9ad | c73d784861480583acfe754502b4cbe675887248 | refs/heads/master | 2021-09-01T00:13:54.050281 | 2017-12-23T18:38:10 | 2017-12-23T18:38:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 801 | cpp | BallSensor.cpp | #include "BallSensor.hpp"
BallSensor::BallSensor()
:serial(BALL_TX_PIN, BALL_RX_PIN)
,led(LED3_PIN)
,hold(HOLD_SENSOR_PIN)
{
serial.baud(BALL_BAUD);
serial.attach(mbed::callback(this, &BallSensor::callback), mbed::Serial::RxIrq);
}
void BallSensor::callback() {
led = 1;
uint8_t _data = serial.get... |
89c724deb5074c920445bd5a085793d2a3841333 | 0dc893a2592e5da206755486c5dad5e641abb0f4 | /Flash/algos as pregel/scc.cpp | 25e8ddb311547e2ae9efbad1028f1ae6afe5da52 | [] | no_license | jxyszzx/GraphBase | 4aebe7a31048512e7dca1371eabb17b0fffb91c8 | 3abac8eab3114edb7af331fe8284b8291e67946f | refs/heads/master | 2022-01-04T15:45:11.655137 | 2019-10-24T09:51:08 | 2019-10-24T09:51:08 | 208,948,513 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,133 | cpp | scc.cpp | #include <iostream>
#include <map>
#include <set>
#include <queue>
#include <cmath>
#include <algorithm>
#include "graph.h"
#include "omp.h"
// #define DEBUG
std::map<std::string, clock_t> t_starts_;
void init_time(std::string name) {
t_starts_[name] = clock();
}
void get_time_cost(std::string name... |
4dc7fdc792f97da4095ca5135ea8d5f007abb087 | 41f9a44de5bdce2830e89117c73c3adbdaf23ed5 | /paxoskv/dbcomm/bitcask_log_impl.cc | 1f8df43cb5eb3153fcb2b010b10abe089cc13592 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | shanbaoyin/paxosstore | e3acd37b03dd63cab7c44d000a92548658bf6c7a | d9969c102df9ea4ef11a95f94f40c63d9d12b354 | refs/heads/master | 2022-04-19T19:05:58.603013 | 2020-04-17T12:24:14 | 2020-04-17T12:24:14 | 256,381,187 | 0 | 0 | NOASSERTION | 2020-04-17T02:29:02 | 2020-04-17T02:29:02 | null | UTF-8 | C++ | false | false | 10,198 | cc | bitcask_log_impl.cc |
/*
* Tencent is pleased to support the open source community by making PaxosStore available.
* Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of... |
ec1af28b887451ec05db4c19e1a855cf27678b4e | 971713859cee54860e32dce538a7d5e796487c68 | /unisim/unisim_lib/unisim/component/cxx/processor/tms320c3x/cpu.tcc | 7ebafc1265ebd5020d015f12796317467a2c9f8e | [] | no_license | binsec/cav2021-artifacts | 3d790f1e067d1ca9c4123010e3af522b85703e54 | ab9e387122968f827f7d4df696c2ca3d56229594 | refs/heads/main | 2023-04-15T17:10:10.228821 | 2021-04-26T15:10:20 | 2021-04-26T15:10:20 | 361,684,640 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 59,587 | tcc | cpu.tcc | /*
* Copyright (c) 2009,
* Commissariat a l'Energie Atomique (CEA)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyrig... |
4c59e39f7c919eb00a482203511e426c67a55108 | 3b4695f4ef8ffb3fe876b55c62d1f51cbc16f4d1 | /HaierSweepRobotApp/HaierSweepRobotApp/Thirds/ASR_UI_SDK/ASR_UI/CommonTool.h | 36cdddcd69ddce17e6bba8b7474384dad7489549 | [] | no_license | GitHubpan527/EseeNetSDK | f4cf22eebde02f3864cfd33ebed3bc5497f80a13 | 6cec5140b9d37a83917f682cf374424385ff34bd | refs/heads/master | 2020-12-24T10:03:26.653433 | 2017-02-03T05:28:23 | 2017-02-03T05:28:23 | 73,137,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 414 | h | CommonTool.h | #ifndef __common_tool_header__
#define __common_tool_header__
#include <string>
using std::string;
string GetIosDocumentPath(void);
string NsStrToString(NSString *nsStr);
//获取不带有文件名的文件路径
string GetIosResDataPath(NSString*fileName,NSString*fileType);
//获取带有文件名的全路径
string GetIosFullResDataPath(NSString... |
794418332261ff3ec3592f0f2da8187ec948e983 | d691a93e4d28157e29cac96bbb7ddf7f09fa8b89 | /main/main/GoodGuys.h | 57a8c778fe3774b24c3eefb328c7e3386278d5be | [] | no_license | NicholasAMills/RiceC- | 34951cebc9a133701350d2729b3676628ef0f3c1 | f2271f74fd33af2a450f151f1385d09e0fe92c61 | refs/heads/master | 2020-12-04T17:07:06.456574 | 2020-01-05T00:40:57 | 2020-01-05T00:40:57 | 231,847,739 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,004 | h | GoodGuys.h | #pragma once
#include <iostream>
using namespace std;
//Global variables NOTE: Villains is IDENTICAL except the word "Heroes" is replaced with "Villains"
int heroesHealth; //needs to be global because we are referencing it in multiple functions
class Heroes {
public: //public means that any other ... |
a69c9f1d722815aaea3a309afdbe6df9b8eb10ef | 6992cef1d8dec175490d554f3a1d8cb86cd44830 | /VisualC6/all/common2/CommonView.cpp | caeb566a51add7f627db6fe6e822de7750d31b22 | [] | no_license | hamaenpaa/own_code_examples | efd49b62bfc96d1dec15914a529661d3ebbe448d | 202eea76a37f305dcbc5a792c9b613fc43ca8477 | refs/heads/master | 2021-01-17T14:51:03.861478 | 2019-05-06T09:28:23 | 2019-05-06T09:28:23 | 44,305,640 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,637 | cpp | CommonView.cpp | // CommonView.cpp : implementation of the CCommonView class
//
#include "stdafx.h"
#include "Common.h"
#include "CommonDoc.h"
#include "CommonView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
///////////////////////////////////////////////////////... |
a4fb659fce048784b75e1dd9f87b099a196fd5a5 | 7705248b3f862385db8375c91f9bfd3781bf7c7b | /14th/source2.cpp | db82bab8a24b5a08896ced54d4f7e4a31ab7e535 | [] | no_license | DongJinNam/2017_1_problem_solving | 2ae0c791fcd882d69ec7f308cc4ed30884e02519 | 5385ab719dc68d63792a72bd7f2b57ed39ed3bc5 | refs/heads/master | 2021-01-21T21:15:40.994799 | 2017-06-19T17:44:50 | 2017-06-19T17:44:50 | 94,804,239 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,229 | cpp | source2.cpp | #include <stdio.h>
#include <string.h>
#define MAP_SIZE 6
bool map[MAP_SIZE + 1][MAP_SIZE + 1];
bool bVisited[MAP_SIZE + 1][MAP_SIZE + 1];
int sizeMap = 0;
int processing(int y, int x, int depth) {
int i, rtn;
int max = 0; // 최대 방문할 수 있는 노드의 수
bool bExplore = false; // 해당 y,x 로부터 동서남북으로 이동가능한지[true] 아니한지[false]
... |
e0421bcec101dfe1fffa8447d80839d342389a8f | 0c985d4973f3f7058412286700f3adc27465bac9 | /application.cpp | 5fabb28e085fba1cc1794710a1dbafc21702c209 | [] | no_license | Rikain/Checkers | 2bb30a2fa343080cc8a8715d2821246b0d6b54a3 | fac2468463ca8c96d05123bcae315fc84174c3d1 | refs/heads/master | 2022-09-14T03:29:51.999392 | 2020-05-27T17:14:32 | 2020-05-27T17:14:32 | 267,380,285 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 601 | cpp | application.cpp | #include "application.h"
#include "ui_application.h"
Application::Application(QWidget *parent) :
QWidget(parent),
ui(new Ui::Application)
{
ui->setupUi(this);
}
Application::~Application()
{
delete ui;
}
void Application::new_game()
{
ui->stackedWidget->setCurrentIndex(1);
emit show_toolbar()... |
81eaa6779024d43213cff174ddfdd72785e52697 | b3ed9b09f3a067c4a264a06ed73bee87400d6e99 | /Client/cpp/Auth/Authmanager.cpp | 360c38d23c90717bad2a6c0b7ac55f8ccbc567fd | [] | no_license | IAlmostDeveloper/booking-rooms-application | 5b8ee0d7f04b13dad1cb2ed5ef4fa3cf8b0ada47 | fb57e96c7bf554e2d2844ec08af7f25535d57ed7 | refs/heads/master | 2021-05-19T11:44:40.133362 | 2020-06-28T21:22:02 | 2020-06-28T21:22:02 | 251,681,346 | 0 | 0 | null | 2020-04-16T07:47:19 | 2020-03-31T17:34:51 | Python | UTF-8 | C++ | false | false | 2,778 | cpp | Authmanager.cpp | #include "Authmanager.hpp"
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QUrl>
#include <QJsonObject>
#include <QJsonDocument>
#include <QJsonValue>
#include <QDebug>
#include <QString>
AuthManager::AuthManager(QObject* parent) : QObject(parent)
{
m_isAuthProcessing = false;
m_isRegProcessing =... |
d1fdc999bc69a7ce12c1fa69cdb38e160f57b92c | 5efebceb6041795adeb0d45b5003a5565d32fa06 | /host/include/perf.h | 8b66b6e9c7991bdad0f12c45914326e7e943aef6 | [
"BSD-3-Clause"
] | permissive | widemeadows/affix | 358e4f6cb0ac0f91ddd02832fe794c3f51eda1f8 | 89dfe97aedbf0f6a2cf01dd578c22c8712453b7f | refs/heads/master | 2022-11-08T23:29:01.270393 | 2020-06-19T02:09:19 | 2020-06-19T02:09:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,175 | h | perf.h | #pragma once
#include <chrono>
#include <map>
#include <iostream>
#include <vector>
enum EventType{
CUT_WRITE_STARTED,
CUT_WRITE_FINISHED,
CUT_READ_STARTED,
CUT_READ_FINISHED,
CUT_READWRITE_STARTED,
CUT_READWRITE_FINISHED,
CUT_COMP_STARTED,
CUT_COMP_FINISHED,
THREAD_COMP_STARTED,
... |
32c9cd726cc5b3325716fc27ddb54e91ec41599f | c54b02b383b81ffae61a1b4bb2c81fcc216d06e2 | /gamelogic/framework/include/package/SFPackageManager.h | e23ca942fb82e3aaf785d6e4a5553351f3f8bf4b | [] | no_license | atom-chen/client-1 | 10efcb0700aefbf685b96d8f2643efcf39ff27f8 | 5ead121c3b0028141427ce85c66b97d4e6c78fc2 | refs/heads/master | 2020-06-17T04:23:57.390868 | 2017-10-14T08:34:29 | 2017-10-14T08:34:29 | 195,772,492 | 0 | 1 | null | 2019-07-08T08:46:35 | 2019-07-08T08:46:34 | null | GB18030 | C++ | false | false | 2,986 | h | SFPackageManager.h | /********************************************************************
created: 2013/10/22
created: 22:10:2013 16:36
filename: E:\Sophia\client\trunk\framework\include\package\SFPackageManager.h
file path: E:\Sophia\client\trunk\framework\include\package
file base: SFPackageManager
file ext: h
author: Liu Rui... |
b38f6dd332301e433c1232c40dccfc96adf7339d | 22cc023ea025152a8dd2ec6d564565fbf1907c53 | /TurnstileCPP/uModbus.cpp | bfcbdccadeed21e8efaf0dba38f57d2575338415 | [] | no_license | goqu172255230/TurnstileModbusSDK | 554fbaee85f4b96f5a479b4dcade6eb731ff87b9 | 7bc1189bb350472b1ea421a127c34f04fde40c29 | refs/heads/master | 2021-09-22T13:26:30.643637 | 2018-09-10T11:09:52 | 2018-09-10T11:09:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,957 | cpp | uModbus.cpp | #include "uTypes.h"
#include "uModbus.h"
#include "uSerial.h"
#include "uTtcp.h"
#include "uCrc16.h"
const char * StrModbusError[merLast+1] =
{
"OK",
"Can't open channel",
"Device connection timeout",
"Sent and received addresses are not equal",
"Sent and received func codes are not equal",
"De... |
5b67054f98491bd46d29a77e15c143012ff7daf0 | bda6e07c1e4cad03f5cae2f998cc731b665f2b36 | /RayTracer/RayTracer/SphereFactory.h | 79822463abe6741a947de45cb8833d19b8bcd617 | [] | no_license | wilandrade/raytracer | 7a0771a1554aef1590554a71419420a24226b245 | 7b4d6600c7060dc411f114b976aa52909d1524d6 | refs/heads/master | 2021-01-10T19:23:30.770503 | 2019-10-17T06:52:50 | 2019-10-17T06:52:50 | 24,687,170 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 388 | h | SphereFactory.h | #pragma once
#include "PrimitiveFactory.h"
class string;
class Primitive;
class SphereFactory : public PrimitiveFactory
{
private:
SphereFactory();
~SphereFactory();
public:
virtual Primitive* CreatePrimitive();
static PrimitiveFactory* GetInstance()
{
static PrimitiveFactory* s_pIns... |
ef72dce5e79e5a6f4a13d6ba26dc11a2233b8ccd | a4642709a131054a656bb3ecb831ac6041db022a | /xwords4/relay/udpager.cpp | b414ca622854973479983c718925fcfbbe04e289 | [] | no_license | eehouse/xwords | cf40afd9a5bde589353f9ad5b7f0f7903e4f600c | 892edc098b58fbcbeaf408390a28e5563e6a35ec | refs/heads/android_branch | 2023-08-18T02:58:21.999975 | 2023-08-14T18:33:09 | 2023-08-14T18:34:43 | 5,944,632 | 4 | 6 | null | 2023-02-19T19:28:32 | 2012-09-25T03:44:01 | C | UTF-8 | C++ | false | false | 3,607 | cpp | udpager.cpp | /* -*- compile-command: "make -k -j3"; -*- */
/*
* Copyright 2013 by Eric House (xwords@eehouse.org). All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either versio... |
6518ca6d5c90986ee798903617ec9c70375b2f70 | e5efbbf17f8e20a54d0846b8cecb12120fa24270 | /UsefulFunctions.h | 889adc0b44a1d73f60d39fe9697258a9d2667ade | [] | no_license | Rehaoulia/RDBMS | e2cfd0c51ad8bda249a056795a716024cd9c3606 | 0430cff6b81dc00c2cebee0ae3aca1e0c5fc7f8f | refs/heads/master | 2022-06-13T02:55:03.398610 | 2020-05-11T13:32:47 | 2020-05-11T13:32:47 | 263,051,310 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 288 | h | UsefulFunctions.h | #ifndef USEFULFUNCTION_H
#define USEFULFUNCTIONS_H
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
// Function to check whether a file exists or not
bool fileExists(const string fileName);
#endif /* USEFULFUNCTION_H */
|
db970e81a7556de841118d458b543f0a27c1957f | c334d7b383aca1e7c18aca2f77b2b990631c8768 | /Management-system-for-restaurant-staf/Management System/UpdateDishes.cpp | e60bbe6369b2c9d9bd8ccff79f87b1469c65d2f7 | [] | no_license | shisong99/Management_System_For_Restaurant_Stuff | bf5153a0d98be954eefc334a16af1bf3e0c2ad0b | 359c7c37e8c2a0c27187b7ed2a9106ae987240d5 | refs/heads/master | 2021-01-10T03:50:43.773723 | 2016-02-03T10:12:50 | 2016-02-03T10:12:50 | 50,991,531 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 10,002 | cpp | UpdateDishes.cpp | // UpdateDishes.cpp : implementation file
//
#include "stdafx.h"
#include "餐饮管理系统.h"
#include "UpdateDishes.h"
#include "DishesNum.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CUpda... |
df21ef599c82ffd905b9145decd993b7476ddc1c | fdc62d2a29b6194f00c49299cf8caa447e0a0ef7 | /Math/Matrix.h | 9417a0cb10a983715fe28b4d3d08d09e0e56c669 | [] | no_license | GenKnight/Algos | a5f5cf0b0b91a11e3becad472cc3fccb3bc726ac | eff0b5aeb4aedec3bd9933a388c3e990324093dc | refs/heads/master | 2020-03-29T15:36:10.856276 | 2018-07-23T05:16:33 | 2018-07-23T05:16:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,105 | h | Matrix.h | template<typename T>
struct Matrix {
vector<vector<T>> a;
vector<T>& operator[](int x) { return a[x]; }
const vector<T>& operator[](int x) const { return a[x]; }
int row() const { return a.size(); }
int col() const { return a[0].size(); }
Matrix(int r, int c) {
a.resize(r);
for (auto& e : a) e.r... |
f0915791c4058efcfdb28fb2485a4b758d57ad91 | 535eddd9cacdb562b240fabbc2f3023d72f6d220 | /src/classwork/06_assign/main.cpp | 1119ac5ddbe69c7ef76ba2117be1286b3aaec13e | [
"MIT"
] | permissive | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-basiliskk | b2544846e878c0dbbd3570dec1c2b70df6e91e1b | 32e02a33edc4a77c26d3a37c1b4b2212421dca5e | refs/heads/master | 2023-01-28T16:49:08.818999 | 2020-12-05T03:18:05 | 2020-12-05T03:18:05 | 290,343,704 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 218 | cpp | main.cpp | #include <iostream>
#include <fstream>
int main()
{
std::ofstream out_file;
std::cout<<"Open file: ";
out_file.open("names.dat");
out_file<<"joe\n";
out_file<<"mary\n";
out_file<<"larry\n";
return 0;
} |
2fd30d371172f3deefee10dac9d5a29c746bd883 | 54e52b945b716d947e88f7cb35b4cd7412e97c0f | /Week04-C-Assembly/memcpy.cpp | 171484af143ecf1c3e22f62720b1a937fc8ee353 | [] | no_license | fuzzpault/UIndy-SCSI230-2016-I | 63b603e34bd5165e755b207de76fca7f84a4909e | 2a05d0c260600925776d264644452a5078e0b3e2 | refs/heads/master | 2020-07-23T15:49:37.298723 | 2017-10-23T01:57:02 | 2017-10-23T01:57:02 | 66,468,142 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,378 | cpp | memcpy.cpp | /* Name: Paul Talaga
Date: 9/22/16
Desc: An example of using the memcpy function to change bit values in a larger 'thing'.
*/
#include <iostream>
#include <stdlib.h>
#include <string.h>
using namespace std;
template <typename myType>
void printBits(myType a){ // Thus any type thing can be printed
// To get ... |
9712dea53bd4f7de777c4c3a163ca0c8a336409d | a92b18defb50c5d1118a11bc364f17b148312028 | /src/prod/ktl/src/tools/tests/ktlcommon/kntmemorymaptests.cpp | 479e2ec943256d86c88e9518a5d063835efc4199 | [
"MIT"
] | permissive | KDSBest/service-fabric | 34694e150fde662286e25f048fb763c97606382e | fe61c45b15a30fb089ad891c68c893b3a976e404 | refs/heads/master | 2023-01-28T23:19:25.040275 | 2020-11-30T11:11:58 | 2020-11-30T11:11:58 | 301,365,601 | 1 | 0 | MIT | 2020-11-30T11:11:59 | 2020-10-05T10:05:53 | null | UTF-8 | C++ | false | false | 8,554 | cpp | kntmemorymaptests.cpp | /*++
Copyright (c) Microsoft Corporation
Module Name: KtlMemoryMapTests.cpp
Abstract:
This file contains test case implementations for memory map file related APIs in KNt.
--*/
#include "kntmemorymaptests.h"
#include "KtlCommonTests.h"
#if KTL_USER_MODE
#include <ktlevents.um.h>
#else
#include <ktlevents.km.h>
#incl... |
d19020670ee3af3e21bedd06a05bac36b4ca84ed | 913d586c7f8517912f938ce35864a3d586dcfbe2 | /Auris/src/Auris/Utilities/SpriteSheet.cpp | 42e5382e58e677e6f82035f0cd23e943714b08e1 | [] | no_license | KasperHdL/Auris-Game-Engine | 64264d722481711a6b3651af5f19703dfb9cd258 | 637de02a2c5d7c3c6c5d155e64f2531b06e35b9f | refs/heads/master | 2020-03-11T09:51:28.773980 | 2018-04-17T15:28:04 | 2018-04-17T15:28:04 | 129,924,875 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 812 | cpp | SpriteSheet.cpp | #include "Auris/Utilities/SpriteSheet.hpp"
#include "Auris/Systems/RenderSystem.hpp"
namespace Auris{
using namespace std;
SpriteSheet::SpriteSheet(){
}
SpriteSheet::~SpriteSheet(){
//go through everything in the map and remove it
for(map<std::string, Auris::Mesh*>::iterator it = meshes.begin(); it != meshe... |
cc660de8ff5b9b35b9ab0c23f13454e3568e90f9 | 8c7857f142141135094b539811eb090f5f7da323 | /wait.cpp | 13de2a075db2e99f3f04d105456ac2a69917347a | [] | no_license | ADanayi/Nevisa | 35a7ce9f7ab65629efa8fb6fa3a2330c82864f7f | e4ec2a1f53d86b13d13cb9a7651e0c46ec467c35 | refs/heads/master | 2020-05-24T21:18:37.065551 | 2019-05-19T12:27:59 | 2019-05-19T12:27:59 | 187,472,025 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 173 | cpp | wait.cpp | #include "wait.h"
#include "ui_wait.h"
Wait::Wait(QWidget *parent) :
QDialog(parent),
ui(new Ui::Wait)
{
ui->setupUi(this);
}
Wait::~Wait()
{
delete ui;
}
|
8386b01dc3b0342180cd62c52e589e68227721b0 | 3a3002e883bd57840fef26146a187d613957b457 | /Util/WriteLogFile.h | 74dfe200c01b83e49aceb832322c2ab76e7b7052 | [
"BSD-2-Clause",
"MIT"
] | permissive | juhuaguai/duilib | 184f5ce6c4d1aa2056d7c954e902e41553cf6fca | eba087f6563ee67d405d867f647f579da1bf5dca | refs/heads/master | 2023-04-13T16:42:09.454573 | 2023-04-12T09:58:13 | 2023-04-12T09:58:13 | 70,299,505 | 118 | 73 | MIT | 2021-02-02T09:18:04 | 2016-10-08T03:03:16 | C++ | GB18030 | C++ | false | false | 1,325 | h | WriteLogFile.h | //写日志的类
#pragma once
#include <Windows.h>
#include "StringTools.h"
using namespace std;
class CWriteLogFile
{
public:
//pszLogFileName日志文件名字,nLogFileMaxSize-日志文件最大大小(KB),默认1024KB,超过大小时下次调用构造函数时会删除日志文件
CWriteLogFile(const wstring& strLogFileName,int nLogFileMaxSize = 1024);
CWriteLogFile();
virtual ... |
1f3c11e81aa2518a4fcdd5be0dc734d4ef4863ac | 113084958dfe5eb22cbd3f3cb48b4ddeed06c0bb | /main.cpp | 459575a1abb6bec6bf3d1c3a1fe3863d50af72e8 | [] | no_license | bivek520/PokerPlus | fb4dc0621a35d7c229a056ca674632bab5fe6f08 | bddf21dada337d9d5c25ad72389d397bda368bfd | refs/heads/master | 2023-02-12T00:44:37.262371 | 2021-01-04T18:49:46 | 2021-01-04T18:49:46 | 326,753,858 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 766 | cpp | main.cpp | #include "mainwin.h"
#include "chat_client.h"
#include "dealer.h"
#include <X11/Xlib.h>
Mainwin *win = nullptr;
int main(int argc, char* argv[]){
XInitThreads();
auto app = Gtk::Application::create(argc,argv,"Nirakar.test");
Gtk::Main kit(argc, argv);
if (argc != 3)
{
std::cerr << "Usage: ... |
82e68dec703977aa239e5203e9f0df8a10ca96df | decdab2bff1b5f81b77c0d6808ad0b17e715e68f | /Matrice.cpp | dd85d05842be364402e640de19b47864004110e0 | [] | no_license | irinapetcu99/Proiect2_POO | 4bd6430ec4581dc2958d2baa2b2c24d221d8c475 | 770182f01467425301b4a740282ea0b852408496 | refs/heads/master | 2020-09-20T15:24:34.402822 | 2019-11-29T12:44:20 | 2019-11-29T12:44:20 | 224,521,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,838 | cpp | Matrice.cpp | #include <iostream>
#include "Complex.h"
#include "Matrice.h"
#include "Matrice_oarecare.h"
#include "Matrice_patratica.h"
#include "Citire_si_Afisare.h"
#include <vector>
#include <cstdlib>
using namespace std;
Matrice :: Matrice()
{
cout << "Constructor de initializare(Matrice)"<<endl;
this -> n... |
74439ea876b2e2b5efb120ea1b2486b7be7a62da | d62600407e56451c7c31606a0fd6e8a0c1d920de | /i_am_miss_nobody/1375A.cpp | b2808070eaa586702adc4f960fdf466bb208d640 | [] | no_license | nafisa11bd/My-Codeforces-AC-submissions | f25058e2391840f5d1b267264d15e3fc14e38b61 | b456b9a526e076a54ed1fe38792481263cfffb62 | refs/heads/main | 2023-05-12T01:49:27.649597 | 2021-06-03T14:35:45 | 2021-06-03T14:35:45 | 303,282,892 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | cpp | 1375A.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
for(int i=0;i<t;i++)
{
int n;
cin>>n;
int a[n+1];
for(int i=1;i<=n;i++)
{
cin>>a[i];
if(i%2!=0)
a[i]=abs(a[i])*(-1);
else
... |
a9c5ac2d4cdf65e47387f8b5bef37d761a3afc9c | 189f52bf5454e724d5acc97a2fa000ea54d0e102 | /ras/fluidisedBed/0.93/T.air | 2c295fe5283e09c7dd57cfddb752adc3994a42bc | [] | no_license | pyotr777/openfoam_samples | 5399721dd2ef57545ffce68215d09c49ebfe749d | 79c70ac5795decff086dd16637d2d063fde6ed0d | refs/heads/master | 2021-01-12T16:52:18.126648 | 2016-11-05T08:30:29 | 2016-11-05T08:30:29 | 71,456,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 47,279 | air | T.air | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1606+ |
... |
e03fe1cefbb0a151c4671702bc663c402ac23b4b | 45f91617eb289d742e6c752c7b7195b38e6a0393 | /4.4/frameup.cpp | 2a5c5dfc3bf4761d6ec8b6bc23d7778b7d61add8 | [] | no_license | jjhuang22/USACO | 2fbca503d8f94e1911c86284e25438fafb257140 | 1227348e830dc9d4f87ea2394314ac73e4c14143 | refs/heads/master | 2020-03-19T08:58:55.456019 | 2018-08-02T17:51:30 | 2018-08-02T17:51:30 | 136,246,335 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,201 | cpp | frameup.cpp | /*
ID: jonatha61
PROG: frameup
LANG: C++11
*/
//use recursion to backtrack
#include <iostream>
#include <fstream>
#include <vector>
#include <set>
#include <queue>
#include <string>
#include <limits.h>
#include <algorithm>
using namespace std;
char board[30][30];
int boundaries[26][4];
int seen[26];
int order[26][... |
ed0f0b2b61b46917bb03bde247791db6f26f7990 | 35a5816d1247b42807d47b9b7739dec3103dc2e6 | /src/Cmd/CmdSettingsColorFilter.h | a9240a33e574065e92b098ae18dc933a37d57569 | [] | no_license | wvulej/engauge6 | ec796f6f0cc01037581f882b5dd7c8e9bc0f27da | 4b0ff7d62ba70941dd5efcbe1d9fac39267df92e | refs/heads/master | 2021-01-17T17:54:31.403616 | 2015-03-24T03:04:35 | 2015-03-24T03:04:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,141 | h | CmdSettingsColorFilter.h | #ifndef CMD_SETTINGS_COLOR_FILTER_H
#define CMD_SETTINGS_COLOR_FILTER_H
#include "CmdAbstract.h"
#include "DocumentModelColorFilter.h"
class QXmlStreamReader;
/// Command for DlgSettingsFilter
class CmdSettingsColorFilter : public CmdAbstract
{
public:
/// Constructor for normal creation
CmdSettingsColorFilter(M... |
3c5b6ebd09017acb878bef1ccd823737f9b04265 | da05b19355fc6a174b1084cbfdaf160032d71fc4 | /Homework 9/nontechnical.h | e55c9e4a391fd3d18b43b5cbb3cf5ba38f96565b | [] | no_license | MakennaKidd/CSE240_Assignments | a64d6ec0cf4dca6c3558ce01f6a08a35f6845139 | 7745a32cac851b9690f08bdc8962829012828252 | refs/heads/main | 2023-03-31T10:20:25.118762 | 2021-04-01T04:27:03 | 2021-04-01T04:27:03 | 303,515,244 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | h | nontechnical.h |
// CSE240 Spring 2021 HW9
// Makenna Kidd
// Programming environment used: VS - Visual Studio
#ifndef _NONTECHNICAL_H
#define _NONTECHNICAL_H
// Q1a: Create Nontechnical class (5 points)
// Part 1: Create a child class of the Employee class named 'Nontechnical'
class Nontechnical : public Employee
{
// P... |
6eb0f71f789d495d33108663f7eab14bf4912c08 | 9ef3261146a77a81db270bcdc33e4b3261beeddf | /src/3rdParty/ogdf-2020/include/ogdf/lib/abacus/constraint.h | 683a6e8d53f74cc6158df0085857100b1d374c4b | [
"MIT",
"GPL-2.0-only",
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-only",
"LGPL-2.1-or-later",
"LGPL-2.0-or-later",
"EPL-1.0",
"LicenseRef-scancode-generic-exception",
"GPL-1.0-or-later",
"BSL-1.0",
"LGPL-2.0-only",
"BSD-2-Clause"
] | permissive | MichaelTiernan/qvge | f5464d69fc9adaec79ec46125b95bec05afd591d | aff978d8592e07e24af4b8bab7c3204a7e7fb3fb | refs/heads/master | 2020-12-30T07:58:22.867560 | 2020-09-24T22:07:10 | 2020-09-24T22:07:10 | 238,916,864 | 0 | 0 | MIT | 2020-02-07T12:31:57 | 2020-02-07T12:31:56 | null | UTF-8 | C++ | false | false | 10,677 | h | constraint.h | /*!\file
* \author Matthias Elf
* \brief constraint.
*
* \par License:
* This file is part of ABACUS - A Branch And CUt System
* Copyright (C) 1995 - 2003
* University of Cologne, Germany
*
* \par
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Ge... |
88ca89fb62fe352836ff07c70f388ff6f9cd9bd4 | d4b5ac83977d2586ef72862aaba334de5c8d8579 | /natlog/documentation/pcap-demo/pcap/loop.cc | d30218de5bea0253b037fa93b10f842066670a50 | [] | no_license | fbb-git/natlog | b49563213b93b58e20d61b9a588bcd0c2d10e792 | 9b11ff39bcb2e6e2b939cb39408823305dd6fc62 | refs/heads/master | 2021-03-12T20:42:22.507846 | 2018-06-25T12:56:26 | 2018-06-25T12:56:26 | 41,296,617 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 149 | cc | loop.cc | #include "pcap.ih"
void Pcap::loop()
{
cerr << "Starting the loop\n";
pcap_loop(d_pcap, -1, callback, reinterpret_cast<u_char *>(this));
}
|
19b96159a9710fd68e0abbde6398f063695348c7 | 575cb11708f438dd1efaf386af2b83cfb6ffebc8 | /cpp/inc/rev_comp_hash_allocate.hpp | 0d76b6938f846b9ab46d7049d607fbd121f570ea | [] | no_license | ysard/bench_rev_comp | 39f4d207a0a44ac0471e6b641c418773fcf580dd | 160fd89582b18ab46fe4a3876f2a71e796db0bf8 | refs/heads/master | 2020-12-02T22:43:40.343316 | 2015-10-02T09:56:56 | 2015-10-02T09:56:56 | 43,726,279 | 0 | 0 | null | 2015-10-06T02:39:35 | 2015-10-06T02:39:35 | null | UTF-8 | C++ | false | false | 353 | hpp | rev_comp_hash_allocate.hpp | #ifndef _HG_REV_COMP_HASH_ALLOCATE_HPP_HG_
#define _HG_REV_COMP_HASH_ALLOCATE_HPP_HG_
#include <map>
#include "arev_comp.hpp"
class rev_comp_hash_allocate : public arev_comp
{
public:
rev_comp_hash_allocate();
std::string run(std::string ori);
private:
std::map<char, char> hash;
};
#endif /* _HG_R... |
19a255eacf832e8c65ac80074ead4dc4fd940468 | 803b2c9c2ebfa9495318de1f6c5ef0959fea47f7 | /CommonAPI_project/ProxyImpl/HelloProxyMain.cpp | d7a296b2040c4743dd893153560c0e58d73d6990 | [] | no_license | ksehan89/ivis | f06348073094d9d96bbf1a7890c6284569adbc50 | 957e57b1eddefa6551bf30025d853712d1f33878 | refs/heads/master | 2020-12-07T09:45:39.070129 | 2020-02-06T09:08:46 | 2020-02-06T09:08:46 | 232,696,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,821 | cpp | HelloProxyMain.cpp | #include "HelloProxyMain.h"
#include <CommonAPI/CommonAPI.hpp>
#include <v1/proj/testcode/Test_CodeProxy.hpp>
void speedValue(const int32_t& speedVal)
{
std::cout << "Receive speedValue : " << speedVal << std::endl;
}
void rpmValue(const int32_t& rpmVal)
{
std::cout << "Receive rpmValue : " << rpmVal << std::... |
39db983b9042438e7f637200a3371649b51f63a9 | f3c932d55bad5e4bb98794c1e150a6e8159450d2 | /random.cpp | d04f528f83423b7a22aa1429acf48ddbed242f69 | [] | no_license | kevinwall1992/private-security | 195c393479596fa4d5ac9cf854fe5725efe00caf | d39d7238f14d4836560c91a3477bb866dd4a6e33 | refs/heads/master | 2021-06-30T06:37:30.939610 | 2017-09-19T21:56:29 | 2017-09-19T21:56:29 | 76,130,221 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,375 | cpp | random.cpp | #include "Random.h"
#include "Math.h"
#include "Common.h"
RandomIterator::RandomIterator(int prime_, int seed_primitive_root, int count_, int seed_state)
{
prime= prime_;
count= count_;
state= seed_state;
vector<int> primitive_roots;
primitive_roots.push_back(seed_primitive_root);
int max_exponent= (in... |
b15c41d8b642188399c82a33bc5d5cdb46d89fe2 | 698038c7d3b1d847bd368ce151ea8e3c991e0612 | /CSGO_external/Features.hpp | 50f8bc89dde707262d236ceca248c8417dc10932 | [] | no_license | joke801/CSGO_external | acc55abfe6d7fd21910da3339aa4cc01bcf7cf13 | aa2bd5e3e8df4e4d0f745aee45d5d928c5de3f2c | refs/heads/master | 2023-08-22T00:56:04.790423 | 2021-10-10T17:02:33 | 2021-10-10T17:02:33 | 357,257,645 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,171 | hpp | Features.hpp | #pragma once
#include "CommonIncludes.hpp"
#include <string>
#include <vector>
enum class eVars {
aimlockenable,
aimlockkey,
aimlockfov,
aimlockbone,
aimlockbonealternative,
aimlocksmoothx,
aimlocksmoothy,
aimlockrandomize,
aimlockrecoil,
standalonerecoilenable,
standalonerecoilhumanize,
triggerbotenable,... |
a8c3eb3d9ba2c50852d01e2f2f5a899bfdde1222 | bfb8c9fb2c79ad863efd788d0154ab39b617b8eb | /Source.cpp | c676b2daddd973ccb8227f32894bb0c563f6a9ce | [] | no_license | msjuc/RSdecoders | 74f050f640544cb4837c45dea268f682f0059cb6 | 81e993ee734229b2b8a542f791dd8a0251c6fd1e | refs/heads/main | 2023-05-09T16:52:29.255960 | 2021-06-06T15:14:56 | 2021-06-06T15:14:56 | 374,121,117 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,210 | cpp | Source.cpp | #include "header.h"
#include <random>
#include <time.h>
/*BCE7qA npoBep9u Ha BIG ENDIAN!!!!*/
int main() {
//for checking!
random_device rd{};
mt19937 gen{ rd() };
double Q;
srand(time(NULL));
cout << "input the \'noise level\': "; cin >> Q;
normal_distribution<> nd{ 0,Q };
///R = { 0,0,2,0,6 };
... |
f78a827b9b588285e2ad3da36c9ff114288c1b09 | fac6a03635d492afc66fdedab79f5af07274b4fc | /src/WordSearch/WordSearch.cpp | f225464b2090d5e28fe11e8726bce0e6ee69e8a8 | [] | no_license | elwin0214/leetcode | 0aa0d2a495413e67897b16a853e0dac63d62baa8 | b0eb38ed9388177345cb694bebd5fdee44b43bfd | refs/heads/master | 2021-01-10T12:34:15.930124 | 2017-09-10T14:31:47 | 2017-09-10T14:31:47 | 43,357,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,447 | cpp | WordSearch.cpp | /*
https://leetcode.com/problems/word-search/
Word Search My Submissions Question
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may ... |
3c45720bc6d2d26a431b935e0ae1ee37f049d34e | 7e9a73cf9e01b353945b53c91556536641a02137 | /td/telegram/SentEmailCode.cpp | 2260b2cc27170b1ac834ba19e7b99f4873880eca | [
"JSON",
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | tdlib/td | a3036bf50a834f68337f8dc451165d4dd474b6e1 | 470c36ceef780ff6189bbd8e2f889941ca828247 | refs/heads/master | 2023-09-04T01:37:21.754421 | 2023-08-24T09:21:04 | 2023-08-24T09:21:04 | 115,883,761 | 6,323 | 1,497 | BSL-1.0 | 2023-09-04T19:10:38 | 2017-12-31T20:23:47 | C++ | UTF-8 | C++ | false | false | 1,020 | cpp | SentEmailCode.cpp | //
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "td/telegram/SentEmailCode.h"
#include "td/utils/lo... |
b45b9927608c9e97ac6c638f19197d8dd77cb496 | 986b7841f72eb24616be8d5fc7defcc3a308db94 | /include/tempest/parser/driver-base.hh | ff5c68bcf28752d7e0ccb9ec61638435b246b20f | [
"MIT"
] | permissive | zeroeffects/TempestRenderer | e783065fecdb1a5ffbe7945044453c6a8fb7e7b4 | 698e974dbeee89e3ca1258e2601b85e9cbfbfc8b | refs/heads/master | 2021-01-23T22:15:31.970201 | 2016-12-05T19:14:48 | 2016-12-05T19:14:48 | 25,295,700 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,802 | hh | driver-base.hh | /* The MIT License
*
* Tempest Engine
* Copyright (c) 2009 2010 2011 2012 Zdravko Velinov
*
* 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 w... |
31cd42f34e6e6c5fe2f1b40c87b1f195f35ee557 | 6abfbf8d3c934bfb77ce989c46f7ee5c3e3c19a7 | /168. Excel Sheet Column Title/Solution.cpp | 4610dc3a8c065ee6871857836ae0b0caf3933534 | [] | no_license | AristoChen/LeetCode-AC-Solution | 7be7d09d99f131e06529e4e34e12129729a12efa | d2f988257b1631e79cf13763bf87e826ee834c3b | refs/heads/master | 2020-03-17T20:30:29.879961 | 2018-06-07T13:26:20 | 2018-06-07T13:26:20 | 133,913,472 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 452 | cpp | Solution.cpp | /*
Submission Detail:{
Difficulty : Easy
Acceptance Rate : 27.47 %
Runtime : 2 ms
Testcase : 18 / 18 passed
Ranking : Your runtime beats 100.00 % of cpp submissions.
}
*/
class Solution {
public:
string convertToTitle(int n) {
string answer = "";
while(n > 0)
{
... |
653d8642f19fd95e99ae4a244b87bc0e46378fe9 | db12741a37137a521087cd3e4e17d0fa08ed2c13 | /dynamicArray.cpp | d7701655aa14197c987aaf8ab04ffe6a794e640d | [] | no_license | sabeelhps/HackerBlockAssignment | e7a16710ad64fc8142e54eb4605030b6cf442ee6 | 3afbe5977a3ff039be58e21ea603663d32be4239 | refs/heads/master | 2020-04-18T02:26:15.538328 | 2019-01-23T10:11:52 | 2019-01-23T10:11:52 | 167,162,473 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 387 | cpp | dynamicArray.cpp | #include<iostream>
using namespace std;
int main(){
int *p;
int n;
cout<<"enter size"<<endl;
cin>>n;
p=new int[n];
for(int i=0;i<n;i++){
cin>>*(p+i);
}
for(int i=0;i<n;i++){
cout<<*(p+i)<<" ";
}
delete []p;
... |
2aa0fb880d49dc3a6119a21cf16e96fbf8455c2e | c7af95ab65eb5f1cd12a55e6f3f12dcde2096380 | /file_server/file_socket.h | ca22e75e2a9bd2dce1e91f3fb93271b1ce92c4ea | [
"BSL-1.0"
] | permissive | youngwolf-project/st_asio_wrapper | bf6d4eba8c7d6753693d4ddf15b95d73e6b86dc4 | 6880e98c55f27dce76a744d156ef0e0782167d88 | refs/heads/master | 2023-08-03T09:19:32.241504 | 2023-07-06T14:49:39 | 2023-07-22T05:05:54 | 8,304,855 | 108 | 52 | null | 2017-10-28T07:38:25 | 2013-02-20T02:58:19 | C++ | UTF-8 | C++ | false | false | 1,204 | h | file_socket.h |
#ifndef FILE_SOCKET_H_
#define FILE_SOCKET_H_
#include "../include/ext/tcp.h"
using namespace st_asio_wrapper::tcp;
using namespace st_asio_wrapper::ext;
using namespace st_asio_wrapper::ext::tcp;
#include "../file_common/common.h"
class file_socket : public base_socket, public server_socket
{
public:
file_socket(... |
8a1134bcfc3bc9392b089e699f431c3bfa66da06 | 45a214ec3207caec0dfc52fb521a70570dd51858 | /test/lib/Connection.cpp | 82414f135127d373588e37b67846365e3b599a2b | [
"BSD-3-Clause"
] | permissive | TomasKorbar/libmemcached | f67673631f231462aa0ab4128011b5b458c1266d | 0dc8017cc3b4ccd4d6d79fa5821d5fd48d6f5a3f | refs/heads/v1.x | 2023-08-14T00:14:58.604000 | 2021-09-20T08:04:09 | 2021-09-20T08:49:20 | 380,164,583 | 0 | 0 | NOASSERTION | 2021-06-28T04:52:57 | 2021-06-25T07:49:30 | C++ | UTF-8 | C++ | false | false | 4,141 | cpp | Connection.cpp | #include "Connection.hpp"
#include "p9y/poll.hpp"
#include <cerrno>
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#if !(HAVE_SOCK_NONBLOCK && HAVE_SOCK_CLOEXEC)
# include <fcntl.h>
# define SOCK_NONBLOCK O_NONBLOCK
# define SOCK_CLOEXEC O_CLOEXEC
#endif
static inline int socket_ex(int af, int so, int pf, int fl)... |
8bd39441f730e4a7b7ec37af00cc11d3bde9dc80 | 8e835a14cf7e11fd100dc431bb57a43698e76fca | /dequeue.cpp | 25f6e72295ca2cf8fe5b99857ed2f3d7e6d145b0 | [] | no_license | navinghimire/Consultation | 7d0d96548333898f98697569ba7b5247a13e1010 | ddab6a31844feef5db0ebafcd78156ad942cf80c | refs/heads/master | 2016-09-05T15:32:37.485658 | 2015-04-14T08:09:00 | 2015-04-14T08:09:00 | 33,918,479 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,891 | cpp | dequeue.cpp | /*
* Name: YOUR NAME
* Dequeue Member Function Definitions
* Course: CSI218 (Spring 2015)
* Date: April 13, 2015
* Description: Dequeue member function definitions.
* Linked list implementation, keeping track
* of list with pointers to both first node
* and last node in list.
*/
#ifndef HI... |
a71e809098a9d5fba1740b9a4a878b0b7d1d861b | 8f961bc022f5ce587d854b7458909c3e0f1ef4bb | /framework/amorphous/Graphics/Direct3D/Shader/Embedded/EmbeddedGenericHLSL.cpp | 3ebe576d7f3fc7a04a1a169951821d92b9da01e5 | [] | no_license | takashikumagai/amorphous | 73f0bd8c5f5d947a71bbad696ce728f25c456aae | 8e5f5ec9368757a639ed4cf7aeb02a4b201e6b42 | refs/heads/master | 2020-05-17T10:55:59.428403 | 2018-07-05T02:48:59 | 2018-07-05T02:48:59 | 183,671,422 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,500 | cpp | EmbeddedGenericHLSL.cpp | #include "EmbeddedGenericHLSL.hpp"
#include "EmbeddedHLSLShader.hpp"
#include "EmbeddedMiscHLSL.hpp"
#include "Graphics/Shader/GenericShaderDesc.hpp"
#include "Graphics/Shader/Generic2DShaderDesc.hpp"
#include "Graphics/Direct3D/Direct3D9.hpp"
#include "Support/Log/DefaultLog.hpp"
#include <boost/algorithm/string/repla... |
bfc5d3fbbc32c29b2b79824c9ad1453f91e3551f | df37fcec621b5aab06bd1327368fb111200cc0c5 | /Day-3-2-Cards-of-the-Same-Suit/main.cpp | 7ec8128d30acabc30f89178c7981e10f9d66886c | [] | no_license | ktp-forked-repos/HackerRank-10-Days-of-Statistics-Challenges | 6d20c2e44846cab4e482e8ddfe075f278f9ad664 | 421ae532000b9116bd775476e1fd7005c04131ec | refs/heads/master | 2020-05-02T17:23:53.508543 | 2017-02-05T14:19:34 | 2017-02-05T14:19:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | cpp | main.cpp | #include <iostream>
using namespace std;
int main() {
// There are 1/4 chance to select one suit
// and then 12/51 chance to select another card of the same suit
// There are 4 suits in total
// so the result is 4 * 1/4 * 12/51 = 12/51
cout<<"12/51"<<endl;
return 0;
} |
9c15d6ff27d82e5c616e800696ce0b6d410d758c | 0976d8e57263f88939078a21f620a10fd29b51c5 | /Classes/Core/Rendering/Renderables/AxisRenderable.cpp | 749cb2938790fcecd06fc1003ed407b6d307ec25 | [] | no_license | beerent/cosmos_client | 241559be92d6a71676874a4c1b85adc6ab4e7997 | 9623267efbaac148f9430b027731c2d64526cfa3 | refs/heads/master | 2021-12-08T21:17:44.917814 | 2021-08-23T01:08:05 | 2021-08-23T01:08:05 | 224,532,833 | 0 | 1 | null | 2020-01-20T13:54:25 | 2019-11-27T23:16:10 | C++ | UTF-8 | C++ | false | false | 4,506 | cpp | AxisRenderable.cpp | //
// AxisRenderable.cpp
// Projectios1
//
// Created by Kamil Konecko on 11/25/13.
//
//
#include "Core/Rendering/Renderables/AxisRenderable.h"
#include <iostream>
#include <cstdio>
#include "Core/Rendering/Renderer.h"
#include "Core/Rendering/Shaders/ShaderManager.h"
#include "Core/OpenSource/Vector.hpp"
CONST_S... |
bc8169ce30ad9741cfadb5424941a5895606a61b | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/blink/renderer/core/frame/csp/csp_violation_report_body.cc | 9551a62bdc7f7137cc95e50e2e9698796ea96d09 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 821 | cc | csp_violation_report_body.cc | // Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/frame/csp/csp_violation_report_body.h"
namespace blink {
void CSPViolationReportBody::BuildJSONValue(V8ObjectBuilder& builder) const... |
e188274773cf6a805bb30ff310c346763fa63919 | f07c072871f8c6e8f25e63a2a05308575eb3242c | /Codeforces/A. Design Tutorial Learn from Math.cpp | f884f6b4cdf86a962e1ac3e3e9da7afa8352f820 | [] | no_license | pathakaditya6/Competitive-Programming | 7c5d71dcc537152fb06b4e580a68cbe00572a9b1 | e6175075cfc82b4ab166181ccaf7a447635911ca | refs/heads/main | 2023-01-15T16:32:52.125572 | 2020-11-22T23:31:57 | 2020-11-22T23:31:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,756 | cpp | A. Design Tutorial Learn from Math.cpp | // https://codeforces.com/problemset/problem/472/A
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define fast ios_base::sync_with_stdio(false) ; cin.tie(0) ; cout.tie(0) ;
#define endl '\n'
bool isPrime(int n)
{
int flag = 0;
for(int i = 2 ; i <=sqrt(n) ; i++)
{
if(n % i == 0... |
984abfe9d6e73d477dae5ff69eb7a8fcecc0a887 | 731cfa7869e22d368c2d91e9ee470097af22378c | /newDelete.cpp | 9cbd8a4182c7f4a8865bb7aaabe24edb526b277a | [] | no_license | VivekSahu1993/cppCommonMistake | 595bd588c879abb2bd230d5775031227f462c062 | cfa7455d42b311ced5bd22928a58daad6602c782 | refs/heads/master | 2020-04-13T15:16:03.394982 | 2018-12-27T11:27:25 | 2018-12-27T11:27:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | cpp | newDelete.cpp | #include<iostream>
#include<memory>
using namespace std;
class A
{
public:
A(){
cout<<"Const"<<endl;
}
~A(){
cout<<"Destr"<<endl;
}
};
int main(){
unique_ptr<class A> p(new class A);
//A *p= new A();
//delete p;
return 0;
}
//g++ -std=c++11 p1.cpp
|
2c28baa71643061880e871d03a83667d6fbe4349 | aa94afa2f4f9e5408bbcbf26b64cde2ec82f55dd | /Aircraft.cpp | 7ffb579918150f36afaca26d04a8709cb59177e5 | [] | no_license | BwingedSis/STM32_Aircraft | 619cd61e42de3107deab6b0db2834432d517a88d | 1a59c9495ec8518bd088102b08ad112487e6e13c | refs/heads/master | 2021-01-22T14:10:16.341160 | 2015-07-04T04:29:52 | 2015-07-04T04:29:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,377 | cpp | Aircraft.cpp | //#define _DEBUG_MPU6050
//#define _DEBUG_MOTOR
//#define _DEBUG_USART
//#define _DEBUG_WITH_LCD
//#define INIT_MOTOR
//#define _DEBUG_STICK
#include <stdio.h>
#include <stdint.h>
#include "stm32f4xx.h"
#include "misc.h"
#include "stm32f4_discovery.h"
#include "Aircraft.h"
#include "Delay.h"
#include "Formatter.h"
#i... |
7215781f6596f254107337e7e8bfd3b5cf49f60f | 56012be91460653ca4d25282b24869d0a238c0c2 | /Assignment2/airline.h | cee8c975f00f6abf799d4d26118a2821c5652b9e | [] | no_license | vmswift/CS417-Object-Oriented-Programming | a3ea826968844367025a6f7c077e8d7f440fe3f1 | b03330a3e06c910feaba8928467cf5a23ce16c86 | refs/heads/master | 2020-07-23T15:47:23.374911 | 2018-02-10T10:54:36 | 2018-02-10T10:54:36 | 67,482,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,573 | h | airline.h | /*
Class: CS417 OOP
Instructr: Dr. Lewis
File: airline.h
Description: Header file code used to outline code in the implementation file etc.
This code is used in an effort to resolve the problem statement listed
under Assignment 2 in CS417 OOP.
*/
#pragma once
#include <queue>
#include <iomanip>
//#include "a... |
95bb20599a94e4501541a3a8093f746379e7f57c | 8b84632f973d69c9eb3f4bfaff05f3aea553745c | /token.cpp | ebafcbdb483d81cac818dc4e4836873acefc2f7f | [] | no_license | ztmail723/JLU-SNL-compiler | 453f320f5ede822cb96eed45a56a131d24dbb855 | 1a9b2c4c067e276f8f59320d602638f18c11888c | refs/heads/master | 2023-05-26T19:25:29.510804 | 2021-06-17T00:45:55 | 2021-06-17T00:45:55 | 371,209,830 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 544 | cpp | token.cpp | #include "token.h"
Token::Token()
{
}
Token::Token(int _lineshow, LexType _lex, QString _sem){
this->lineShow = _lineshow;
this->lex = _lex;
this->sem = _sem;
}
void Token::setLineShow(int lineShow)
{
this->lineShow = lineShow;
}
int& Token::getLineShow()
{
return this->lineShow;
}
void Token:... |
76a500bec21918029b8d3de73794fec6b3020f97 | f978ad6a837d46a1ad52a6c5691b2c7e5f1d2a7d | /lets_remember/lesson9/students.h | 9a87571458b8369579867b377f88fd7b935eb1e6 | [] | no_license | theSaintBelial/C_PlusPlus | ee6326e32acd31ce7865a11a73b90f9e62d22311 | 9eb57e27cd8c9fd7c294aac00f37a04d0bcf486c | refs/heads/master | 2021-02-17T19:15:09.330795 | 2020-03-05T09:33:08 | 2020-03-05T09:33:08 | 245,120,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 770 | h | students.h | #ifndef STUDENTS_H
# define STUDENTS_H
# include <iostream>
using namespace std;
class Students
{
private:
float average_score;
int scores[5];
string name;
string last_name;
public:
void set_name(string stud_name)
{
name = stud_name;
}
string get_name()
{
return (name);
}
void set_la... |
7991a69b5e77517ff2fdfd87cb5f14938cf420f0 | eac431b16b465c994000d49990501115acf9fdb8 | /src/Entity.cpp | 98ede35eabb105089befdf3ed175fa8132b1f5d3 | [] | no_license | SirMastermind/CG1415-Frogger | ca61b691e69f3f6ec4d878f292552afe898faa92 | 8f884ff46d008e20c09f83052d78cf7494871bea | refs/heads/master | 2021-01-10T15:41:20.623514 | 2015-05-29T14:36:44 | 2015-05-29T14:36:44 | 36,509,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 729 | cpp | Entity.cpp | /*
* Entity.cpp
*
* Created on: Oct 3, 2014
* Author: ist176231
*/
#include "Entity.h"
#include <iostream>
#ifdef __APPLE__
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
#else
#ifdef _WIN32
#include <windows.h>
#endif
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#endif... |
01f7b91cfd7eef3d1f6053f93eea37a6f6c9ee86 | d11bd2fc4724a37cee2a2bcb236ad9f76e511176 | /cpp/src/BBMOD/Node.cpp | f626181fc36d605cf342989f40397abcf67c0fc4 | [
"MIT"
] | permissive | NeutralD/BBMOD | 62d0cd395d6f27cf6193721b3e696606d46afc97 | c03fcd3f6cee569bd16028ccb70d22dfa394db29 | refs/heads/master | 2023-01-29T00:23:48.191415 | 2020-11-30T21:13:55 | 2020-11-30T21:13:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,331 | cpp | Node.cpp | #include <BBMOD/Node.hpp>
#include <utils.hpp>
#include <iostream>
bool SNode::Save(std::ofstream& file)
{
const char* str = Name.c_str();
file.write(str, strlen(str) + 1);
FILE_WRITE_DATA(file, Index);
FILE_WRITE_DATA(file, IsBone);
FILE_WRITE_MATRIX(file, TransformMatrix);
size_t meshCount = Mes... |
64b5630129f06bbe0b5c7b283931c104c79388a7 | 6106429a36e153574efedf9b07a6a979175879a6 | /int_char_converter.cpp | 1a544cc1a038944c7ae1ec77305af5f8dd4b48f8 | [] | no_license | cosc4740fa21/os_lab5_files | 31de6384a58e70597257000950b1f9d1afd34647 | 6219c4a249aab01d00a1e7d44a294061a0859ec7 | refs/heads/main | 2023-07-15T15:54:59.490962 | 2021-08-24T23:31:23 | 2021-08-24T23:31:23 | 399,631,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,905 | cpp | int_char_converter.cpp | #include <iostream> // cout, endl
using namespace std;
// === TODO 1 ===
// Converts four characters in the buffer into an integer and returns it.
// @param buffer: The buffer to retrieve the integer from
// @param pos: The position in the buffer to get the four characters
// Example: buffer = "123456789"
// pos... |
004ba469f5aea0533ab0828a56aa48312eb85cdf | 49be4f166bbcbc0ee37c8ab4a4ec811078b43124 | /src/common/GLTF/GltfPbrMaterial.cpp | 942874177eb5d9bc37eda80c274ee1afb7ce2329 | [
"MIT"
] | permissive | GPUOpen-LibrariesAndSDKs/Cauldron | 7efb3a740f847eab22d61fc85997baf70f74947d | b92d559bd083f44df9f8f42a6ad149c1584ae94c | refs/heads/master | 2023-08-23T19:59:27.311641 | 2022-08-30T13:15:08 | 2022-08-30T13:15:08 | 198,422,281 | 809 | 99 | MIT | 2023-09-08T23:59:13 | 2019-07-23T12:04:18 | C++ | UTF-8 | C++ | false | false | 9,401 | cpp | GltfPbrMaterial.cpp | // AMD Cauldron code
//
// Copyright(c) 2020 Advanced Micro Devices, Inc.All rights reserved.
// 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 without limitat... |
e943bf2773cc9ebb7adf3f84690215c76eedbd0d | 57f90bbd02a3a531e5a20217d3891943fdc03ccf | /Zadanie5/function_maxima.h | 0030f994bb7f598484482be8d530b83e5d14d7c2 | [] | no_license | FranekJemiolo/JNP1 | 94dc3f2bd62ba9402682408cf6ac9da94ec20703 | 6684d010963642459cfd16797301753cfff14e72 | refs/heads/master | 2020-06-02T12:40:15.400071 | 2015-03-30T17:07:10 | 2015-03-30T17:07:10 | 26,034,579 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,978 | h | function_maxima.h | // This program was written by Franciszek Jemioło and Joanna Wiszowata
// identified by index numbers 346919 and 332659 respectively.
#ifndef FUNCTION_MAXIMA_H_
#define FUNCTION_MAXIMA_H_
#include <set>
#include <memory>
// Thrown when function is given argument out of domain.
class InvalidArg : public std::exceptio... |
537652a0e5788db884305c83d849886121bffa34 | b6926a3e90d5f2322cf96e3819415d50a58097e2 | /codeforces1348D.cpp | 7235fb2979bbb375c14d6fc871731ed404f052cc | [] | no_license | AbhJ/some-cp-files-1 | 67c6814037e6cbc552119f3d2aa4077616b88667 | 04e7e62ac7d211bb38dd77dc44558a631805c501 | refs/heads/master | 2023-07-05T16:36:56.770787 | 2021-09-03T12:50:13 | 2021-09-03T12:50:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | cpp | codeforces1348D.cpp | #include <iostream>
#include <algorithm>
using namespace std;//coded by abhijay mitra
const int N=2e5+10;long long a[N];
void solve(){
int n;cin>>n;int i,j=0,z;
for (i = 0;n; i++)z=min(n,1<<i),a[j++]=z,n-=z;
sort(a,a+j);cout<<j-1<<"\n";
for (int i = 1; i < j; ++i)cout<<a[i]-a[i-1]<<" ";
}
int main(){
int t;ci... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.