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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
394591e9ba139a02f3a76910829bdbad9a9d8f8c | 29cd8de734117b5fb81d4bc568ac9b45b4e2cd82 | /744.cpp | cbf106f152316e870706d703204d07d25d32e68f | [] | no_license | vedantpople4/problem_solving_cpp | 386eacd11ea307e3e9bf2ce86b78043573d67b9c | ebe4599ad9eba332fccec9aec0b63ecad930813b | refs/heads/master | 2022-07-28T22:21:17.659296 | 2022-07-11T13:10:20 | 2022-07-11T13:10:20 | 228,216,495 | 1 | 3 | null | 2020-10-25T15:58:32 | 2019-12-15T16:38:00 | C++ | UTF-8 | C++ | false | false | 287 | cpp | 744.cpp | class Solution {
public:
char nextGreatestLetter(vector<char>& letters, char target) {
int ans = upper_bound(letters.begin(), letters.end(), target) - letters.begin();
if(ans>=0 and ans<letters.size()) return letters[ans];
else return letters[0];
}
};
|
02573b6a17c6c92b346ee112fa2527b82f7d1034 | a25a7f46d5c3b0e90620607ab0288a416d68e37c | /tuplex/codegen/include/ApplyVisitor.h | 225dc622f917cab4ff9360a7cfe41ab9b063aa1c | [
"Apache-2.0"
] | permissive | cacoderquan/tuplex | 886ec24a03e12135bb39e960cd247f7526c72917 | 9a919cbaeced536c2a20ba970c14f719a3b6c31e | refs/heads/master | 2023-08-21T06:10:15.902884 | 2021-10-25T16:41:57 | 2021-10-25T16:41:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,363 | h | ApplyVisitor.h | //--------------------------------------------------------------------------------------------------------------------//
// //
// Tuplex: Blazing Fast Python Data Scien... |
183c55ace9c72d63b7be2e2aac7553e10f3775c6 | a575586dcb56f7b52378a368390ecfc2dd238e78 | /class_pointer.cpp | abe62561ff534a5813771dee51fca6392241fe95 | [] | no_license | monp97/cpp | 89aa1b0da07d17a09ed85a371089d4ee7ca5fdbe | 7ec467e62fd1eec14fdcc841a768135432c8c18b | refs/heads/master | 2021-04-25T14:00:38.017459 | 2017-12-11T02:43:46 | 2017-12-11T02:43:46 | 110,008,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | cpp | class_pointer.cpp | #include<iostream>
using namespace std;
class point{
private:
int marks;
public:
void get()
{
cout<<"enter";
cin>>marks;
}
void display()
{
cout<<marks<<endl;
}
};
int main()
{
point *p=new point[3];
p->get();
p->display();
return 0;
}
|
35c105807914a896f1ea5880861438c7f338a0ed | b1344e8317465a5e290d5bf050aa6e3ed77e1014 | /OpenGL Tutorial/OpenGL Tutorial/VertexArray.cpp | 377c9e21122f9f8f6df05e0527d836f0737adf1c | [] | no_license | zerowanghao/OpenGL-Learning | 1974eeaf206682ecafdb851ce447adcadc7cc615 | 53afdf77855492c3fa17153630979a0135a43eb1 | refs/heads/master | 2021-08-24T15:26:53.442671 | 2017-12-10T06:58:41 | 2017-12-10T06:58:41 | 113,636,697 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 732 | cpp | VertexArray.cpp | #include "VertexArray.h"
namespace Renderer
{
VertexArray::VertexArray()
{
glGenVertexArrays(1, &mVertexArrayID);
}
VertexArray::~VertexArray()
{
glDeleteVertexArrays(1, &mVertexArrayID);
for (size_t i = 0; i < mBuffers.size(); i++)
{
delete mBuffers[i];
}
}
void VertexArray::enable() const
... |
d5169a65610d85443b8ec59ad228c225dd5b8701 | 24b4b6cbef5ff3988d2ca18abacba9181c338c51 | /basic_heap.cpp | 228fdd10fca7b3ea39437c705c31123880240758 | [] | no_license | singhalyash8080/codes-for-dsa-practice | edd5aa01fde5a35ec75cbcfe76fd21b36be9c944 | a8f91f9836f52e9fe10b0b08832696ee623f543a | refs/heads/master | 2023-08-06T03:32:14.397248 | 2021-09-18T12:46:50 | 2021-09-18T12:46:50 | 343,876,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,118 | cpp | basic_heap.cpp | #include <bits/stdc++.h>
using namespace std;
#define int long long int
void yashio();
// max and mean heap using the same class
class Heap{
vector <int> v;
bool minHeap;
bool compare(int a, int b){
if(minHeap){
return a<b;
}
else{
return a>b;
}
... |
a9b5b16876ab0cc55e4750ffbbe1a6e6653a434d | e5529d3d1fe1fe76eef924cb0879d6e062f9ecfb | /mpi/cross-gpu/main.cpp | 2be978685a22c40f7f2d72c5d7c3e2d4f3b8214e | [] | no_license | yuq/compute | b09b2a94a479c9eb8a9e651c59b287ef9d875800 | 91b3727ee3d80d1b61c957d2d3b743ac442c8dec | refs/heads/master | 2023-06-07T20:51:03.061806 | 2023-05-27T03:57:48 | 2023-05-27T03:57:48 | 150,856,469 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,786 | cpp | main.cpp | #include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <mpi.h>
#include <hip/hip_runtime.h>
#define CHECK(cmd) \
{ \
hipError_t error = cmd; \
if (error != hipSuccess) { \
fprintf(stderr, "error: '%s'(%d) at %s:%d\n", \
hipGetErrorString(error), error,__FILE__, __LINE__); \
exi... |
237529602826ccda5c9dee0e16e3bc0c9130f5b9 | 2992e854a02cbc10d57c85c7d4b07a7e3e2ab7d4 | /백준/Silver/2579. 계단 오르기/계단 오르기.cc | 2e3427b839f63691e73d8a8164cd74e592e4253b | [
"MIT"
] | permissive | getCurrentThread/Algorithm | 81794cc42f7037ccf0c0e46da23a53ff226e4580 | f86ee8d5467e595fe5121542c6a31a1239ba08ef | refs/heads/master | 2023-04-28T08:10:41.140117 | 2023-04-16T13:44:48 | 2023-04-16T13:44:48 | 237,871,919 | 0 | 0 | MIT | 2022-01-09T10:33:08 | 2020-02-03T02:42:44 | null | UTF-8 | C++ | false | false | 545 | cc | 계단 오르기.cc | #include <iostream>
#include <algorithm>
#define MAX 300
using namespace std;
int n;
int stair[MAX+1];
int dp[MAX+1];
int func(int n) {
dp[0] = stair[0];
dp[1] = stair[0] + stair[1];
dp[2] = max(stair[0] + stair[2], stair[1] + stair[2]);
for (int i = 3; i < n; i++) {
dp[i] = max(dp[i - 2] + ... |
5f37395550008039ce3bac18622a7cb8005bc9f5 | ed75b1d4d9eb83a98f0688ae90418a8399c5cf7c | /Contests/Codechef/accepted/voters.cpp | 8372a3885ba21184a0c3916fd6108ef45e22a00e | [] | no_license | vivekp/C-and-Cplusplus-Programs | df762698dcb1a4f3e0e378bf9f71ddb837ea959d | a79e49d57ce590bd1de4e31e56bae0db095eeca1 | refs/heads/master | 2016-08-08T03:22:10.805674 | 2011-11-11T14:39:23 | 2011-11-11T14:53:19 | 2,756,339 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 537 | cpp | voters.cpp | /*
* CODE: VOTERS
*/
#include <iostream>
#include <map>
#include <iterator>
using namespace std;
typedef map< int, int , less<int> > Map;
int main()
{
Map id;
int N1, N2, N3;
cin >> N1 >> N2 >> N3;
long total = N1 + N2 + N3;
int key; long count = 0;
for(int i = 0 ; i < total; ++i)
{
cin >> key;
if(id[ke... |
87ad7938fd8954e6ebeb8a3f4c6c0122c948dc49 | 53697ba06cea725839a5011b8a1adbea852e8a7f | /dynamic_programming/17_dp_coin_min_coins.cpp | 305383ef53ec56754a67b404d8aa112f35e89d21 | [] | no_license | harshithkrpt/algorithms | 4b712ad7fe259d9197a9be41860738bd63b772a5 | 751b162f8ca370a29715c2850ce776b902e751c3 | refs/heads/master | 2020-07-31T12:36:50.218165 | 2020-06-21T18:03:06 | 2020-06-21T18:03:06 | 210,606,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 590 | cpp | 17_dp_coin_min_coins.cpp | #include<bits/stdc++.h>
using namespace std;
int minCoins(int coins[],int m,int V)
{
int table[V+1];
// o coins are required to make the sum 0
table[0] = 0;
for(int i=1;i<=V;i++)
table[i] = INT_MAX;
for(int i=1;i<=V;i++)
{
for(int j=0;j<m;j++)
{
if(coins[j] <= i)
{
int sub_res = table[i-coin... |
5a1746ad629440c1544f9651dead24ddd0bd5c35 | 3113b3ed92063987040a652a1ca19231c33afc2c | /Stone Age/Stone Age - Qt Application/model/Places/HutPlace.cpp | ea9d0512fa56c7d522eda0b5cd498585956ba9d2 | [] | no_license | kristofleroux/uh-ogp1-project | 1e61a198219e6d7ee62b3a67847e40ccc34b66ba | 90047d39eb4cc14df9815decc472caf86a05d7b5 | refs/heads/master | 2022-01-24T23:07:06.643206 | 2019-07-16T08:44:41 | 2019-07-16T08:44:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 589 | cpp | HutPlace.cpp | #include "HutPlace.h"
#include "../../config.h"
#include "../PlayerBoard.h"
#include "../Player.h"
#include "../Game.h"
#include "../PlayerBoardItems/Worker.h"
#include "../PlayerBoardItems/Workers.h"
// Constructor
HutPlace::HutPlace(QString name, int maximumWorkerAmount, Game* game) : Place (name, maximumWorkerAmo... |
439c7a429f85d1c058bdeb5f823f4982f849a85f | 2f48a6e0779d24d309d42220912320c0afa415d7 | /boost/numeric/ublasx/operation/sum.hpp | 3a022c7efd8899c460cae0e77dd129e07c1e9841 | [
"BSL-1.0"
] | permissive | sguazt/boost-ublasx | da6cbca6d8a0a85db1c64f7beb93dbf0da013ecd | 21c9b393d33a6ec2a8071ba8d48680073d766409 | refs/heads/master | 2021-01-21T21:45:36.712354 | 2021-01-06T10:26:05 | 2021-01-06T10:26:05 | 5,560,736 | 8 | 1 | BSL-1.0 | 2020-12-28T18:31:16 | 2012-08-26T14:43:05 | C++ | UTF-8 | C++ | false | false | 11,907 | hpp | sum.hpp | /* vim: set tabstop=4 expandtab shiftwidth=4 softtabstop=4: */
/**
* \file boost/numeric/ublasx/operation/sum.hpp
*
* \brief The \c sum operation.
*
* \author Marco Guazzone (marco.guazzone@gmail.com)
*
* Copyright (c) 2010, Marco Guazzone
*
* Distributed under the Boost Software License, Version 1.0. (See
*... |
cf60aa3baa6dd9ead1c15f243ed9e2ca0a928c56 | 2258b10e8d10343a9dc057019bd8d94ee6d81f6f | /Zara/Parser/IParserState.hpp | c7bd9397135346d94783cffa7e608aea269e77cc | [] | no_license | d0rj/Zara | 1e0d19140a2da8d57b46a322a8f5ccfa9f4536e6 | 010044009dd97fc33fb0406afffde3e9a4c2e155 | refs/heads/master | 2023-02-06T14:44:55.794736 | 2020-12-23T17:08:16 | 2020-12-23T17:08:16 | 258,433,907 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 146 | hpp | IParserState.hpp | #pragma once
#include <string>
#include <vector>
namespace Zara
{
class IParserState
{
public:
virtual void NextChar(char ch) = 0;
};
}
|
444694b0e4492e40bbe7a1184e47e1778d5d8049 | 79625fb9eeba05cf4dfc124c2f69d73e2a383d31 | /db/detail/transaction.hpp | bcb5027f0fa85b86c75b42e7406c4086b5b9f1fe | [
"MIT"
] | permissive | beikehanbao23/bark | f152c4a4c697316d160f1b1b09731f40441e47ba | e4cd481183aba72ec6cf996eff3ac144c88b79b6 | refs/heads/master | 2023-03-23T00:47:39.777260 | 2021-01-16T10:10:23 | 2021-01-16T10:10:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 671 | hpp | transaction.hpp | // Andrew Naplavkov
#ifndef BARK_DB_TRANSACTION_HPP
#define BARK_DB_TRANSACTION_HPP
namespace bark::db {
template <class T>
class transaction {
T& as_mixin() { return static_cast<T&>(*this); }
protected:
void set_autocommit(bool autocommit)
{
if (autocommit_ != autocommit) {
exec(as_... |
4808de6b26fd85475c553b26a12a415a66a72a84 | 9f9eaffc00ceead522382e4c4dd485eca114896e | /Chapter12/12_4.cpp | 6ee3f3cda0045c1cc656bc61477283c4bfc00d25 | [] | no_license | sarahannali/elementsofprogramming | f62757476b229e36d5015069f80800bd010b4bdc | 6bf6cf5c6e6a6168ea1169fd1234641cbd7b8f5c | refs/heads/master | 2022-11-10T18:01:45.169195 | 2020-07-06T00:19:55 | 2020-07-06T00:19:55 | 275,467,608 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 443 | cpp | 12_4.cpp | #include <iostream>
#include <vector>
using namespace std;
int IntRoot(int square)
{
int L = 0, U = square;
while (L <= U)
{
int M = L + (U - L) / 2;
if ((M * M) > square)
{
U = M - 1;
}
else if ((M * M) < square)
{
L = M + 1;
... |
77b822c13a15d5c9df197a0d59f81da2bd15fc22 | ddc210a05032afc83109cb5690e1203a5b481c97 | /include/tcprelay.hpp | 90b1fbd13562dc60450a3484dc46e470d4a81310 | [] | no_license | litao91/shadowc | 63ea4c662df9439bdbe249b77e6364886807527a | 51235b9b443d69a5da72bef4412b518c42b70b0c | refs/heads/master | 2020-06-10T01:16:10.094704 | 2017-05-18T12:17:23 | 2017-05-18T12:17:23 | 76,118,357 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,309 | hpp | tcprelay.hpp | #ifndef SHADOW_C_TCPRELAY_H__
#define SHADOW_C_TCPRELAY_H__
#include "eventloop.hpp"
#include "asyncdns.hpp"
namespace tcprelay {
class TCPRelay;
class TCPRelayHandler;
typedef std::map<int, TCPRelayHandler*> fd_to_handlers_t;
class TCPRelayHandler {
public:
TCPRelayHandler(
TCPRelay* tcp_r... |
16a8824d61c86cc4412d00a929bd3ace4477015c | 74837c92508b3190f8639564eaa7fa4388679f1d | /xic/include/fio_nametab.h | f6be32f60cb3193d76618e76c01207fb9f222c8a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | frankhoff/xictools | 35d49a88433901cc9cb88b1cfd3e8bf16ddba71c | 9ff0aa58a5f5137f8a9e374a809a1cb84bab04fb | refs/heads/master | 2023-03-21T13:05:38.481014 | 2022-09-18T21:51:41 | 2022-09-18T21:51:41 | 197,598,973 | 1 | 0 | null | 2019-07-18T14:07:13 | 2019-07-18T14:07:13 | null | UTF-8 | C++ | false | false | 6,013 | h | fio_nametab.h |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
00836556d70e8c3ce0cf20c5f5c656a1d3140b5e | 1bdce38606736fd064a44fdb4aefb3d51aeb5724 | /client/ftpclient/globalsettings.cpp | 69b4ab2c13926663b758a9e0624625f3449e960b | [] | no_license | llylly/FTP_Project | fbb7c5dc0c0cedc33bc88a00a6296b476cdc42b8 | 5cae5b03501d305b392c6e5ce05b157f219a873b | refs/heads/master | 2021-07-25T01:18:14.789214 | 2016-12-18T14:03:10 | 2016-12-18T14:03:10 | 109,551,291 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 365 | cpp | globalsettings.cpp | #include "globalsettings.h"
GlobalSettings::GlobalSettings() {
}
sockaddr *GlobalSettings::genSockAddr(char *_ip, ushort _port) {
sockaddr_in *myaddr = new sockaddr_in();
myaddr->sin_family = AF_INET;
myaddr->sin_port = htons(_port);
myaddr->sin_addr.s_addr = inet_addr(_ip);
memset(&(myaddr->sin_z... |
05c5037df2774fefa94ef22ac8cbbcf063b858ac | c690bb35e6f0aab50b57737189354281c75cf3a9 | /백준알고리즘/단계별로 풀어보기/15. 동적 계획법1/P_Number_2579.cpp | 48065dc85baf5778f45fbda90fce87d37372bf0f | [] | no_license | lazybones1/Algorithms | e8abf1bb0e3065012fa4b32b2d8794a17833eded | 458ca23761f72cdb7bd5c279f53d3f4e195964a7 | refs/heads/master | 2021-05-23T15:46:41.207332 | 2020-08-20T11:00:10 | 2020-08-20T11:00:10 | 253,366,607 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 707 | cpp | P_Number_2579.cpp | #include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
int n;
int dp[300];
int stairs[300];
int ans() {
for (int i = 0; i < n; i++) {
if (i == 0) {
dp[i] = stairs[i];
}
else if (i == 1) {
dp[i] = max(stairs[i-1] + stairs[i], stairs[i]);
... |
8a583adb5cd90e394f5037ae16562973bd4cded1 | e61a0ebe93280719d9bb34cac52d772f0d814e5f | /BC2016_7_23/A.cpp | f7b0bb38421de1b53ac99c73ceca7bc9d955982a | [] | no_license | zhouwangyiteng/ACM_code | ba5df2215500a1482cf21362160ddbf71be0196d | ca3e888bd4908287dd822471333a38c24b0a05db | refs/heads/master | 2020-04-12T06:35:10.160246 | 2017-04-22T07:44:09 | 2017-04-22T07:44:09 | 61,373,600 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,218 | cpp | A.cpp | /*************************************************************************
> File Name: A.cpp
> Author:
> Mail:
> Blog:
> Created Time: 2016年07月23日 星期六 19时11分09秒
************************************************************************/
#include <iostream>
#include <cstdio>
#include <vector>
#include <map>
#i... |
fae8898b8eb163a32dea3d549a0467ca423d10bf | 97163be23ec46d35737c9e41aa34107479d1e323 | /Dynamic Programming/minimumNumberOfJumps.cpp | 4266ebe86e83f09e2d9fdd156cc94e1412bca2da | [] | no_license | Kamrul-Hasan-1971/Code | 54612faea047f523306158bd936850a2c599ef3e | 7ca4da7b1e23a3c3fef06f598f11ba83054373ae | refs/heads/master | 2023-09-02T09:06:05.462951 | 2021-11-05T06:53:18 | 2021-11-05T06:53:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 872 | cpp | minimumNumberOfJumps.cpp | #include <iostream>
#include <algorithm>
#include <climits>
#include <cstring>
using namespace std;
long int minSteps(int i, long int minimumSteps[], int arr[], int n){
if(minimumSteps[i] != -1) return minimumSteps[i];
if(arr[i] == 0) return minimumSteps[i] = INT_MAX;
long int minimumStep = INT_MAX;
for(int j ... |
ad20e6e0fc73e41fcd71bdf25a878362983b9f45 | 2cdd1bdd1f8e3febe7e0be2efd9a490b3b3cb14e | /Return the longest run of 1s for a given integer n's binary representation.cpp | 7c63bdf783caab723b5cfb3239d2c55d3ad9c692 | [] | no_license | ashiscs/C- | 4a33168e80877d4a1429fa352588b0a9c3dc2fdf | 0e2a1bd15f7ed2b722ec84ced69cc877b51951eb | refs/heads/master | 2020-09-03T16:00:39.949895 | 2020-05-10T15:38:38 | 2020-05-10T15:38:38 | 219,504,612 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 237 | cpp | Return the longest run of 1s for a given integer n's binary representation.cpp | #include<iostream>
using namespace std;
int main()
{
int n,flag=0;
cout<<"Enter a number\n";
cin>>n;
while(n!=0)
{
n=(n&(n<<1));
flag++;
}
cout<<"Result:"<<flag;
return 0;
}
|
88f40dc11db8a9beddcf534d3fd15bde1ab8a9e6 | 8642c2865a417d402f12ff38e417874dac4ed0f5 | /test_factory_2.cpp | b46398b5cc34e9caa12c1bdf64f8ee7a701503c3 | [] | no_license | Neplex/symmetrical-guacamole | 23fcac0b0ce407600a22fc5fd39d5117cc85832f | f5cf165f15ae3897172c78dc2e3fcdeba479cacf | refs/heads/master | 2021-05-01T01:00:27.297999 | 2016-12-02T14:33:18 | 2016-12-02T14:33:18 | 75,391,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 751 | cpp | test_factory_2.cpp | /*!
* \file
* \brief
* This module provides more tests for the factory.
*
* \author PASD
* \date 2016
*/
#include <iostream>
#include "factory_shape.hpp"
#include <assert.h>
#define NDEBUG 1
using namespace std;
int main() {
Factory_Shape &s_f = Factory_Shape::ref();
U_Sh_d_Stack c_s;
c_s.push(s_f.cr... |
37a6e8c875078e6227d8c1d53a483637ac4b7eae | 148b778983b0df3328adb85cdb5e046c8be6a4d6 | /2_math/prime_sum.cpp | 4c336822296818c55e3d19a7fe02bbaffe1132b4 | [] | no_license | mascai/exercise | 9dcbdca7038ca9b02b1bf9abc0ead354f4e06ba1 | c58912261126ae3ed4b44cb466344f4b8c4d8c6c | refs/heads/master | 2023-06-24T12:15:32.170458 | 2023-06-08T18:20:19 | 2023-06-08T18:20:19 | 95,127,196 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 383 | cpp | prime_sum.cpp | bool is_prime(int n) {
if (n < 2) {
return false;
}
for (int i = 2; i * i <= n; i++) {
if (n % i == 0) {
return false;
}
}
return true;
}
vector<int> Solution::primesum(int n) {
for (int i = 2; i <= n / 2; i++) {
if (is_prime(i) && is_prime(n - i)) {
... |
5f84e32003391463e3d982d1f863429ed6aed3d7 | 3927eb7aaa3cfa45ffc57f0a7a6b00417a720fea | /URI/01259-pares_e_impares.cpp | 2b8d54471ac875ccdbeace3ea2f798e96e5b3226 | [] | no_license | jbsilva/Programming_Challenges | c2e5ee12bf3d2f17ce9b907447cd2c27d6198d7f | 889274951b1bbb048e8ea3a4843fac97ce6a95e3 | refs/heads/main | 2021-07-07T06:13:04.748780 | 2021-05-02T20:29:38 | 2021-05-02T20:29:38 | 49,593,340 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,286 | cpp | 01259-pares_e_impares.cpp | // ============================================================================
//
// Filename: 01259-pares_e_impares.cpp
//
// Description: URI 1259 - Pares e Ímpares
//
// Version: 1.0
// Created: 29/Oct/2012 15:11:22
// Revision: none
// Compiler: g++
//
// Author: J... |
a574d02640bc386c99ab7568b787ddfa6e81de1b | 6f689340d42631bcdadcadf0fee78245e427f702 | /Untitled2.cpp | 0f9e104544c2d3927039d9a4fe62e663046aa2d9 | [] | no_license | lythaiho/LapTrinh | 788c6aadb13541d2e14500acc42dec3f4714c075 | 768b3c6ac1cd63eb6ff4a7d442e0fe56169542e5 | refs/heads/master | 2020-05-16T16:33:47.004189 | 2019-07-10T09:41:13 | 2019-07-10T09:41:13 | 183,166,052 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | cpp | Untitled2.cpp | #include<stdio.h>
int isPrime(int a){
if(a<=1){
return 0;
}
else{
int dem=0;
for(int i=1;i<a;i++){
if(a%i==0){
dem++;
}
}
if(dem=1){
return 1;
}else{
return 0;
}
}
}
int main(){
int n,m;
printf("n = ");
scanf("%d",&n);
printf("m = ");
scanf("%d",&m);
... |
ea76e17403b633b3b4b0dd0c8cb694b41d1b017b | cbd5b0ad46993204ac0d04e0338b17c3bebbb1d6 | /ED2_2018-PARTE_2/include/Deputado.h | de090b11bc744029adede230e85d155e0e0409a5 | [] | no_license | avmhdt/Trabalho_ED2_Final | aae21e183d8a5345ca573a3432cb06558ae47dfa | b8d5bb194f6f938ebfbc34c63cbe7437b16d7145 | refs/heads/master | 2020-04-01T08:46:08.014173 | 2018-10-15T03:15:59 | 2018-10-15T03:15:59 | 153,045,952 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,290 | h | Deputado.h | #include <iostream>
#ifndef DEPUTADO_H
#define DEPUTADO_H
using namespace std;
class Deputado
{
public:
Deputado();
Deputado(string nome, int id, string partido, int valor);
~Deputado();
void setNome_deputado(string nome);
void setPartido(string partido);
void setId(int id);
... |
43dc4e6b011aa5af97e0a5df7b3748d0ea2d2994 | 73d5d540041a20ec61a750bd12d1f2644947544d | /2-5-list-1/main.cpp | 35322ed573d49d190f250f006a98db5c65e2f57f | [] | no_license | TuringZhu/opengl-learn | a1492339f6260635aa1c0b77a11f33c063c6cfae | 217ed1e8f1fca701c30b9f824ba9172b6510f3e2 | refs/heads/main | 2023-07-14T15:19:27.543642 | 2021-08-20T14:03:09 | 2021-08-20T14:03:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,257 | cpp | main.cpp | #include <GLUT/glut.h> // (or others, depending on the system in use)
void init ()
{
glClearColor (1.0, 1.0, 1.0, 0.0); // Set display-window color to white.
glMatrixMode (GL_PROJECTION); // Set projection parameters.
gluOrtho2D (0.0, 200.0, 0.0, 150.0);
}
void lineSegment ()
{
glClear (GL... |
03e80e637b46873a6ea6a0e664b9c3222b557c95 | 82bad6410ff283be97c7d39510eb9ca7b10715b6 | /src/RA_AchievementSet.cpp | 5fd6c0c2e2f3ea1092f1da308a855fc109e847b3 | [
"MIT"
] | permissive | gdeOo/RAIntegration | 09cd88c92ad48da04363590777468a37b9738b97 | 19c2e4b98941b2800f65635c357b45d82b51da3d | refs/heads/master | 2020-06-08T05:34:57.908923 | 2019-06-19T02:37:18 | 2019-06-19T02:37:18 | 193,168,478 | 0 | 0 | null | 2019-06-21T22:53:32 | 2019-06-21T22:53:31 | null | UTF-8 | C++ | false | false | 3,344 | cpp | RA_AchievementSet.cpp | #include "RA_AchievementSet.h"
#include "RA_Core.h"
#include "RA_Dlg_Achievement.h" // RA_httpthread.h
#include "RA_Dlg_AchEditor.h" // RA_httpthread.h
#include "RA_md5factory.h"
#include "data\GameContext.hh"
#include "data\UserContext.hh"
#include "services\AchievementRuntime.hh"
#include "services\IAudioSystem.hh... |
906e8452da42f643f13ea5e3215599285ca1725c | b5715c5b480271bfd798b731003b3b4a99b92a60 | /Source/helper.h | 847b09b6e5d6236adcabc664cef6245ee7bae443 | [] | no_license | EmilyLijm2009/TheHolograms | a30e6fbc3f36c8160af7279526b7da101024a181 | be86e9a201e0a9911a5602948a54b0be5a8879ac | refs/heads/master | 2021-07-12T01:30:02.770536 | 2017-10-11T13:37:15 | 2017-10-11T13:37:15 | 106,540,518 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 133 | h | helper.h | #pragma once
typedef int ActorId;
class Vec3
{
private:
float m_x, m_y, m_z;
public:
Vec3();
Vec3(float x, float y, float z);
}; |
53f972a6ac91b7e0ea32d4a87e13e8cce524c8ee | 97c82dabd88d00ecf2107002e1867bd684d2ed6d | /backend.cpp | eedce9dbf9d41863dce7fc079a473c3474ced847 | [] | no_license | IvanVasilyev/InTime | d643d3ac5f2de5a0faf581a790047515d387f8d6 | 296a3596b6e85203ea1fbaade0e24ae0a6ae51cc | refs/heads/master | 2020-04-22T04:31:26.827160 | 2019-04-14T21:33:25 | 2019-04-14T21:33:25 | 170,126,097 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 295 | cpp | backend.cpp | #include "backend.h"
BackEnd::BackEnd(QObject *parent) : QObject (parent)
{
}
QString BackEnd::userName() {
return m_userName;
}
void BackEnd::setUserName(const QString &userName) {
if(userName == m_userName)
return;
m_userName = userName;
emit userNameChanged();
}
|
e4f17c318a15ba5a892679b295ec595880319393 | d62d179f9ad43ed22cee561a97c589c90c178cec | /modules/boost/simd/sdk/include/boost/simd/sdk/simd/io.hpp | 6e80db604c48cea72ac311f6a9905d71a39a6d65 | [
"BSL-1.0"
] | permissive | timblechmann/nt2 | 89385373c14add7e2df48c9114a93e37a8e6e0cf | 6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce | refs/heads/master | 2021-01-16T23:49:00.220699 | 2013-03-11T09:31:23 | 2013-03-11T09:31:23 | 8,702,183 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,100 | hpp | io.hpp | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
c4f8e9de517bbd27cc61495008f522d55b4bab64 | 1ddb37f8e6d2be48d893d9285f426c1e90c33566 | /tracker/capture/KinectDisparityCompressor.cpp | 8276759ae8b7196e10533f90d6ee3c80097b8799 | [
"Apache-2.0"
] | permissive | ttykkala/recon | bd0ce04c78c637648cdceed594661b5059ffaf62 | fe73b0f1023ff177e6870ed1426604e380e078b7 | refs/heads/master | 2021-01-13T09:03:55.094792 | 2017-06-24T13:46:41 | 2017-06-24T13:46:41 | 70,162,184 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,317 | cpp | KinectDisparityCompressor.cpp | /*
Copyright 2016 Tommi M. Tykkälä
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 agreed to in writing... |
3d57c0fcb1accefcd60fce33cb4bff81ba3e23e0 | fde3cc872adfe3fe3383e16e3897125f2c2be8b7 | /motorController.ino | 6852ef3ae90b44a312f6729aebbec514c651fa80 | [] | no_license | rafiqul713/Ardunio-Code | f806ad2ed2ca1f7fd454b5104e88fd708219fa3f | 9b7e3df8eaed486ad2fb52d82218643e383e43b1 | refs/heads/master | 2020-04-09T06:10:45.179745 | 2018-12-02T22:28:37 | 2018-12-02T22:28:37 | 160,101,485 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 495 | ino | motorController.ino | #include <AFMotor.h> //import your motor shield library
AF_DCMotor motor1(1,MOTOR12_64KHZ); // set up motors.
AF_DCMotor motor2(2, MOTOR12_8KHZ);
void setup()
{
Serial.begin(9600); // begin serial communitication
Serial.println("Motor test!");
motor1.setSpeed(255); //set the speed of the motors, between 0-2... |
cf4891001595b963a647475dc350dde7b5ea47ee | e7c2a4498c511740b173a3cfeaf0509e55f45114 | /Underworld2d/Underworld2d/MapHandler.h | 7aa5c89e7b300ab79c4bafbe95b76595f104cbd6 | [] | no_license | CrimsonNynja/UnderWorld2d-Engine | 29a3fceb5d501dc8024946623896191421847c52 | 3b39a6eae30b3fcdc8b8878a19f5d8932973c9cd | refs/heads/master | 2020-04-21T17:28:55.684220 | 2019-12-17T11:39:38 | 2019-12-17T11:39:38 | 169,736,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,408 | h | MapHandler.h | #pragma once
#include <string>
#include <map>
#include <vector>
#include <tmxlite/TileLayer.hpp>
#include <tmxlite/Map.hpp>
#include <tmxlite/Layer.hpp>
#include <SFML/Graphics.hpp>
#include "TextureHandler.h"
//TODO this should load the map, anddisplay it in chunks to save on runtime memory
class MapHandler
{
pub... |
ddaea66915db2d74d29d2db287496da4e89547e1 | 202b96b76fc7e3270b7a4eec77d6e1fd7d080b12 | /platforms/posix/try/LowLevelFile.ot | c18df1533225fc294a58054f784f7a39879df468 | [] | no_license | prestocore/browser | 4a28dc7521137475a1be72a6fbb19bbe15ca9763 | 8c5977d18f4ed8aea10547829127d52bc612a725 | refs/heads/master | 2016-08-09T12:55:21.058966 | 1995-06-22T00:00:00 | 1995-06-22T00:00:00 | 51,481,663 | 98 | 66 | null | null | null | null | UTF-8 | C++ | false | false | 780 | ot | LowLevelFile.ot | /* -*- Mode: c++; tab-width: 4; c-basic-offset: 4 -*-
*
* Copyright (C) 2011 Opera Software AS. All rights reserved.
*
* This file is part of the Opera web browser.
* It may not be distributed under any circumstances.
*/
group "posix.pi.lowlevelfile";
require POSIX_OK_FILE;
import "pi.oplowlevelfile";
import "pi... |
07565a0d395567a453e6cea011aa455b153251fc | 56345c289644498f96d79dcdbee0476ea4342daa | /lc238.cpp | b1fb0c6476f9f49c95177503923bf0170a5ce7b9 | [] | no_license | boyima/Leetcode | 8023dd39d06bcb3ebb4c35c45daa193c78ce2bfe | 0802822e1cbf2ab45931d31017dbd8167f3466cc | refs/heads/master | 2020-12-13T06:35:00.834628 | 2019-11-05T22:27:50 | 2019-11-05T22:27:50 | 47,539,183 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 565 | cpp | lc238.cpp | class Solution {
public:
vector<int> productExceptSelf(vector<int>& nums) {
int n = nums.size();
vector<int> res(n, 1);
if(n == 1) return res;
//products before res[i];
for(int i = 1; i < nums.size(); i++){
res[i] = res[i - 1] * nums[i - 1];
}
int ... |
e59734984b0a86dfad4dbd40a63ab022e6321a31 | badcf1716456393f144ff123ebab3ab6ceb36e0e | /src/RCube/Core/Graphics/MeshGen/Sphere.cpp | cd7e12449781cd75f206d34b799faac287002a1b | [
"BSD-3-Clause"
] | permissive | Ahdhn/RCube | 35507ea8f0789bd01ae0f065c35ae4cfca50f240 | e64ecfdae7154587e89806c23a11a6f0164e3167 | refs/heads/master | 2021-08-28T07:28:36.104407 | 2020-07-27T01:43:35 | 2020-07-27T01:43:35 | 220,858,987 | 0 | 0 | BSD-3-Clause | 2019-11-10T22:20:27 | 2019-11-10T22:20:26 | null | UTF-8 | C++ | false | false | 2,801 | cpp | Sphere.cpp | #include "RCube/Core/Graphics/MeshGen/Sphere.h"
#include "RCube/Core/Graphics/MeshGen/Box.h"
#include "glm/gtc/constants.hpp"
namespace rcube
{
TriangleMeshData icoSphere(float radius, unsigned int subdivisions)
{
// Golden ratio
const float t = (1.0f + std::sqrt(5.0f)) / 2.0f;
// Vertices of a icosahedr... |
53f96e15f3e54ca24812f327b770324ec667fd7f | 7e309f67cafe5528eaab8757fa34dd9c59355195 | /Algorithms/PopulatingNextRightPointersInEachNodeII/populatingNextRightPointersInEachNodeII.cc | a65a65980399650a9a108123418c4708c5be99b8 | [] | no_license | xusiwei/leetcode | 56cc827020ab5a9373d7b4221e8ae82734b01e7e | 80f0c2b2a89843df2ea3adb12828991ad8534373 | refs/heads/master | 2021-04-22T13:26:46.577996 | 2020-05-24T17:06:12 | 2020-05-24T17:06:12 | 36,977,056 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,663 | cc | populatingNextRightPointersInEachNodeII.cc | /*
copyright xu(xusiwei1236@163.com), all right reserved.
Populating Next Right Pointers in Each Node II
===============================================
Follow up for problem "Populating Next Right Pointers in Each Node".
What if the given tree could be any binary tree? Would your previous solution still work?
Note... |
c2c9edad2857c4708d36d6842f32cf798efc3d5d | 559a00d4367374b367d4999167743ec6d7387640 | /structures/Graph/Weighted Graph/Multigraph (for Chinese Postman Problem)/WeightedMultigraph.h | b95e7f7d6aea9ed3ad9e00b97253045c5e359b70 | [] | no_license | michal367/Algorithms-and-Data-Structures | 0cd0787393ebefaef19d5d1056b6d9de321e05d7 | 4aee40daac9c3292f3e5ac36010cf789354c26c7 | refs/heads/master | 2023-01-02T18:46:24.144935 | 2020-10-28T10:42:06 | 2020-10-28T10:42:06 | 307,850,924 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33,042 | h | WeightedMultigraph.h | #pragma once
#include <vector>
#include <list>
#include <map>
#include <stack>
#include <queue>
#include <algorithm>
#include "IndexedPQ.h"
#include <iostream>
template<class T, class W = int>
class WeightedMultigraph{
// undirected/directed weighted multigraph with loops (pseudograph)
struct Edges{
... |
42c5b94ea0c06bdd17ef94fa73e78c64c2ffe586 | 34a9bba379f2bdb1a156d35ada8ef7eae1937373 | /projeto_final_mp.cpp | 70766de6f2ce78267af594cfa41552e8235385d8 | [] | no_license | satoru27/projeto_mp_unb_2_2016 | e23b493748285ff272928ca795e785e161777157 | 06df1c875c0f80155910ea517d127a8627d2e8aa | refs/heads/master | 2020-06-14T22:28:29.307271 | 2016-12-04T18:09:39 | 2016-12-04T18:09:39 | 75,403,548 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,942 | cpp | projeto_final_mp.cpp | // projeto_final_mp.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "social.h"
#include <gtest/gtest.h>
/**
* Testando se a criacao de novos usuarios funciona
* Testa constructor e getters
*/
TEST(Usuario_test, criar)
{
std::vector<int> coisas = { 1,3,5,6,4... |
d03da3e67df051f7bc270357e6e0c35db1f74df8 | 73a2207fd227d4c6bfade73cc0c65583fa412667 | /Pacman/Pacman/speedy.h | 2c43580f78e17773cb8ae91aee5cbbf7c7e84d25 | [] | no_license | Tabbers/Ki_Pacman | e4f8582ef8ae3a3d84bc05ffa7273fc35f4ac75d | 8f372b7a04aa8d54c93ceb10025c1392486eca3e | refs/heads/master | 2016-08-12T11:33:59.961341 | 2015-10-18T14:22:36 | 2015-10-18T14:22:36 | 43,760,131 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 198 | h | speedy.h | #pragma once
#include "statemachine.h"
class Speedy: public StateMachine
{
public:
Speedy();
~Speedy();
virtual void calculateNewDestination(Vector2, Vector2, char);
private:
Vector2 home;
};
|
47b823ec7e37c15e0690b341f4432a6b58857988 | 5521a03064928d63cc199e8034e4ea76264f76da | /fboss/agent/platforms/tests/utils/BcmTestWedge100Platform.cpp | b272c4970215f2bb4ae1544c91de98e86dc034de | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | facebook/fboss | df190fd304e0bf5bfe4b00af29f36b55fa00efad | 81e02db57903b4369200eec7ef22d882da93c311 | refs/heads/main | 2023-09-01T18:21:22.565059 | 2023-09-01T15:53:39 | 2023-09-01T15:53:39 | 31,927,407 | 925 | 353 | NOASSERTION | 2023-09-14T05:44:49 | 2015-03-09T23:04:15 | C++ | UTF-8 | C++ | false | false | 1,703 | cpp | BcmTestWedge100Platform.cpp | /*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... |
63f821ec8147cf4bcbcb9bb56aec9d846f4439b6 | 183d30ccc4bb09cc89aaacbce9258a73c96d838f | /AveDesk 2.1/AveDeskletFile.h | 32936ef5991c8a2fa1919633976ba9381e1542f7 | [] | no_license | jackiejohn/AveDesk | 6efaa73d6ccd67845eb6f6954a63f412993edbef | 8f201dc1e14f65ddcfd1f9d281379f347ed22469 | refs/heads/master | 2021-05-27T17:50:41.693612 | 2015-02-21T15:35:43 | 2015-02-21T15:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,655 | h | AveDeskletFile.h | // AveDeskletFile.h: Definition of the CAveDeskletFile class
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_AVEDESKLETFILE_H__34C97302_1144_40F0_8D9D_DD05AC7B7017__INCLUDED_)
#define AFX_AVEDESKLETFILE_H__34C97302_1144_40F0_8D9D_DD05AC7B7017__INCLUDED_
#if _MSC_VER > 1000
#... |
7315c46bc1aea5a268127f890ea3ac898f767c94 | afddc057da76a26f489d81baccf3e1e4e043202c | /udc/ast/ReadInteger.cpp | bf2bd16f4162aa630318b08cac8c9a69e12ea23c | [] | no_license | EAirPeter/udc | d2a6df637585da36b617982b4f63d7e20b39319d | 8bdff28f44e514ea6456981cb2c31759410ba4b9 | refs/heads/master | 2020-03-16T09:02:37.240218 | 2018-07-02T10:48:35 | 2018-07-02T10:48:35 | 132,607,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 312 | cpp | ReadInteger.cpp | #include "../IndentHelper.hpp"
#include "ReadInteger.hpp"
namespace udc::ast {
ReadInteger::ReadInteger(const location &loc) noexcept : ExprBase(loc) {}
ReadInteger::~ReadInteger() {}
void ReadInteger::Print(std::ostream &os, std::uint32_t cIndent) const {
os << Indent(cIndent) << "ReadInteger()";
}
}
|
3b3123a8ccba8371854fc30d7987a676e20697d1 | 5386915da1b8e7559a8ef726722445d815497a37 | /MS_Wissenschaft/MS_Wissenschaft.ino | ff6601b47f27ea4276d9a371b906ae7e9c9fd129 | [] | no_license | BaKaRoS/Projekt_BaKaRoS | 60089c4951b1052e24cefd1b6789743ff879f27b | 1ab7154b466a1134faf74e09f913b6ae8e7aac09 | refs/heads/master | 2020-03-08T10:29:40.945789 | 2018-09-10T10:44:15 | 2018-09-10T10:44:15 | 128,074,567 | 1 | 0 | null | 2018-04-04T14:31:17 | 2018-04-04T14:31:17 | null | UTF-8 | C++ | false | false | 2,253 | ino | MS_Wissenschaft.ino | #include "BLEsimple.h"
#include "AccGyro.h"
#define FS 10 //sampling rate
#define LED_R_PIN 9
#define LED_G_PIN 11
#define LED_B_PIN 10
BLEsimple *ble;
String receive_str = "";
//accelerometer
AccGyro *accgyro;
const uint8_t nrOfDataBytes = 6;
byte dataBytes[nrOfDataBytes] = {0, 0, 0, 0, 0, 0};
//tim... |
95d81c24d5fdebe29d4482b98eca09c8833e9cba | 3f675146f8244f493409841633d6841380bc1639 | /Project1/Bucket.cpp | def3667b66ae399ba07908d73b6628b4f318e477 | [] | no_license | Fu4i/Dictionary | 05eb39553a28f15489ef4997803beaca33faeb97 | 1820a92922e81ea1ba92c53627b0cdaf1faef8f9 | refs/heads/master | 2022-12-17T05:29:03.126680 | 2020-09-17T11:56:54 | 2020-09-17T11:56:54 | 296,312,179 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 68 | cpp | Bucket.cpp | #include "Bucket.h"
Bucket::Bucket()
{
}
Bucket::~Bucket()
{
}
|
998de8d4cfc8306ce34d02ccb934dc7a52b33404 | 091b59690f8916b494de20f6354bab09b5bdbb4a | /Find_All_Substr.cpp | c14ee3a678b99059be1ce7d93fbb45f7736d39ad | [] | no_license | IRON-HAN/hanhan | e1203f9ab537c076f86150322d6e751c9c1555d9 | 3657b843134aad0b4e8be4ecdded89739b7c51b5 | refs/heads/master | 2020-08-24T09:11:15.396344 | 2020-06-17T07:09:32 | 2020-06-17T07:09:32 | 216,800,871 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,460 | cpp | Find_All_Substr.cpp | // 查找子串
// 得到所有子串起始处的下标
// 且子串的区间彼此不会重叠
#include <stdio.h>
#include <string.h>
#define N 30
void Find_All_Index(char *str, char *sub, int *num, int *pos)
{
int flag = 0;
for (int i = 0; i < strlen(str); i++)
{
if (str[i] == sub[0])
{
flag = 1;
for (int j = 0; j < st... |
c23e2bae0849af5db1d849274d86b25c33c814d5 | 8a25b79aa8f279cb9ec84ae875404bd638bea0e7 | /src/FontManager.h | 0751fceee8746913e8aec45c7042c8974b62192c | [] | no_license | azhariitd/MyUI | 0cb9e20266cfb0a2f81be4ca628d9e9561a0f96c | 3a722fa6af458d4a9389aa031d304dae37f05b20 | refs/heads/master | 2021-01-01T19:15:36.291473 | 2015-05-25T09:44:16 | 2015-05-25T09:44:16 | 29,969,213 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 925 | h | FontManager.h |
#include <vector>
#include<GL/glut.h>
#include<GL/gl.h>
#include<GL/glu.h>
#include <ft2build.h>
#include <freetype/freetype.h>
#include <freetype/ftglyph.h>
#include <freetype/ftoutln.h>
#include <freetype/fttrigon.h>
#include FT_FREETYPE_H
#ifndef FONTMGR_INCLUDE__
#define FONTMGR_INCLUDE__
class FontInfo{
privat... |
7a501114d2cc25b42d942414c6e23d2098923cd4 | d9921b68e2eaf57c857d2d1f7a0e97da69df3b23 | /src/db/RsynService.h | 8a1769729c8e40d2f7197cce9ecc33f555204169 | [
"BSD-3-Clause"
] | permissive | cuhk-eda/cu-gr | 111217ea04816d82d8e21a57110ba0d0b414790c | 7c6428ad759d4de63be7c5ade97cc0d36f0df0d0 | refs/heads/master | 2023-03-06T11:39:49.671750 | 2022-09-22T16:43:01 | 2022-09-22T16:43:01 | 224,609,852 | 103 | 34 | NOASSERTION | 2020-11-11T14:39:27 | 2019-11-28T08:52:13 | C++ | UTF-8 | C++ | false | false | 599 | h | RsynService.h | #pragma once
#include "global.h"
namespace db {
class RsynService {
public:
Rsyn::PhysicalService* physicalService;
// Rsyn::RoutingGuide* routeGuideService;
Rsyn::PhysicalDesign physicalDesign;
Rsyn::Design design;
Rsyn::Module module;
void init() {
Rsyn::Session session;
p... |
95031fac5d6a334895599025e4f3b8d710695efb | 033ea075704396e3be4b31f27d57e77468e55181 | /test/OpenSpaceToolkit/Physics/Environment/Objects/Celestial.test.cpp | 38b9ea2ddbb779ef2645943f70f0a8ce2c14e624 | [
"Apache-2.0",
"MPL-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | open-space-collective/open-space-toolkit-physics | 195163d94389c02fa10b2ee5db16660f6742dffa | ea6316e45a1bffb1d22bc124a1f72f5eb3f18456 | refs/heads/main | 2023-08-11T07:42:09.705555 | 2023-08-10T17:14:33 | 2023-08-10T17:14:33 | 136,835,583 | 15 | 3 | Apache-2.0 | 2023-09-14T15:01:46 | 2018-06-10T18:44:58 | C++ | UTF-8 | C++ | false | false | 21,669 | cpp | Celestial.test.cpp | /// Apache License 2.0
#include <OpenSpaceToolkit/Core/Containers/Map.hpp>
#include <OpenSpaceToolkit/Core/Types/Shared.hpp>
#include <OpenSpaceToolkit/Core/Types/String.hpp>
#include <OpenSpaceToolkit/Core/Types/Weak.hpp>
#include <OpenSpaceToolkit/Mathematics/Geometry/2D/Objects/Point.hpp>
#include <OpenSpaceToolki... |
870fde2f819992bb9ec18154e66cc3e8b6894028 | 012f0800c635f23d069f0c400768bc58cc1a0574 | /hhvm/hhvm-3.17/third-party/thrift/src/thrift/compiler/test/fixtures/refs/gen-cpp/module_types.cpp | 16c2632030f175b032dbfff4a6d6580cba101abf | [
"Apache-2.0",
"Zend-2.0",
"BSD-3-Clause",
"PHP-3.01"
] | permissive | chrispcx/es-hhvm | c127840387ee17789840ea788e308b711d3986a1 | 220fd9627b1b168271112d33747a233a91e8a268 | refs/heads/master | 2021-01-11T18:13:42.713724 | 2017-02-07T02:02:10 | 2017-02-07T02:02:10 | 79,519,670 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 51,450 | cpp | module_types.cpp | /**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include "thrift/compiler/test/fixtures/refs/gen-cpp/module_types.h"
#include "thrift/compiler/test/fixtures/refs/gen-cpp/module_reflection.h"
#include <algorithm>
#include <string.h>
const type... |
e71be969331dbc69c06a3235f02c84f68a299d54 | 5d3ee8d02dc363bce1602bda3dce9b5092956ce7 | /Interface/UserAskWhetherHosterWindow/UserAskWhetherHosterWindow.hpp | bf3535f6e3ea1274eff436586ae9740889b756ea | [] | no_license | EMCJava/EMCMeeting | b8fbb4aa51404fc4a6f387c54d92b77d55a75b5a | 8e8b41bbb155f999f6b89707c4ba11b41b69ce6b | refs/heads/master | 2023-06-10T12:21:19.641472 | 2020-09-03T14:31:29 | 2020-09-03T14:31:29 | 270,252,972 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 871 | hpp | UserAskWhetherHosterWindow.hpp | //
// Created by loyusum on 9/6/2020.
//
#ifndef EMCMEETING_USERASKWHETHERHOSTERWINDOW_HPP
#define EMCMEETING_USERASKWHETHERHOSTERWINDOW_HPP
#include <string>
#include <vector>
#include <memory>
#include "../../ToolBox/ToolBox.hpp"
#include "../Window/WindowBase.hpp"
#include "../UI/Button/Button.hpp"
class UserAs... |
a80b9ef4afad2a8d273aff6cf902472ff2d93743 | 10ecbc5cdc572eab75b33f026ff1602c8adbe24b | /rshwub_robot.ino | 9d5ebac94874ff9d3527793f5a4e463abf7e4608 | [] | no_license | tlillis/rshwub_robot | c8e66c521907a0305f4aea11254edfac5e8da4a4 | 3888831102d70de4acc26ca60eea49783612f688 | refs/heads/main | 2023-06-22T16:48:30.956626 | 2021-07-21T06:03:16 | 2021-07-21T06:03:16 | 387,987,352 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,288 | ino | rshwub_robot.ino | #include <AccelStepper.h>
#define INTERFACE_TYPE 1
#define NUM_MOTORS 2
#define NUM_ROUTINES 3
// Robot head
#define MOTOR1 0
#define DIR_PIN_MOTOR1 2
#define STEP_PIN_MOTOR1 3
// Robot body
#define MOTOR2 1
#define DIR_PIN_MOTOR2 4
#define STEP_PIN_MOTOR2 5
// Define motors
AccelStepper stepper[NUM_MOTORS];
// Ar... |
0534aa409088e2da685254ddf3ac5ec9968e9ada | 955129b4b7bcb4264be57cedc0c8898aeccae1ca | /python/mof/cpp/req_get_petcamp_data.h | 850d61f70ddd65f538bc4b53bf825e76991f6882 | [] | no_license | PenpenLi/Demos | cf270b92c7cbd1e5db204f5915a4365a08d65c44 | ec90ebea62861850c087f32944786657bd4bf3c2 | refs/heads/master | 2022-03-27T07:33:10.945741 | 2019-12-12T08:19:15 | 2019-12-12T08:19:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | h | req_get_petcamp_data.h | #ifndef MOF_REQ_GET_PETCAMP_DATA_H
#define MOF_REQ_GET_PETCAMP_DATA_H
class req_get_petcamp_data{
public:
void req_get_petcamp_data(void);
void decode(ByteArray &);
void PacketName(void);
void ~req_get_petcamp_data();
void build(ByteArray &);
void encode(ByteArray &);
}
#endif |
9e5cc2d8f23d429474470bd3d2f1c1b9f7abccd0 | 0569a04ed085bbdec4228270e3cfed79684f6494 | /Classes/ProgressLayer.cpp | 9c1f90329184a63e008062cc304974862f4a2b43 | [] | no_license | ZhouC125/cocos2d | 6d9e31fe82c7fbcd1be8ab1fae5587ad307f8856 | 55c769fca989487ff5f46016e200c0080113b850 | refs/heads/master | 2020-04-27T23:56:18.773969 | 2019-03-10T09:40:48 | 2019-03-10T09:40:48 | 174,797,396 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,505 | cpp | ProgressLayer.cpp | #include "constart.h"
#include "ProgressLayer.h"
#include "DengluScene.h"
#include"ui/CocosGUI.h"
#include "GameScene.h"
#include "GameHall.h"
#pragma execution_character_set("utf-8")
USING_NS_CC;
ProgressLayer * ProgressLayer::scene()
{
return ProgressLayer::create();
}
bool ProgressLayer::init()
{
if (!Scene::ini... |
a136d0e8f3cb7461ececc30dd49ba37663fdf7c3 | e2c3ad5709359f13f9d93378fadbc0f0116d595f | /GTT/EnemyAim.h | 57e514e4b878e63c3094c5a3ea02c84850f614ac | [] | no_license | dagil02/TaxiRevengeDLC | b2bb7ea69bf146ec5f4251ed80ab02acd43e2e9a | b785dd652c435b7495e9aaed2b4a3d1bc4900af7 | refs/heads/master | 2020-06-02T01:01:49.305137 | 2019-07-01T17:06:11 | 2019-07-01T17:06:11 | 190,985,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 181 | h | EnemyAim.h | #pragma once
#include "AimComponent.h"
class EnemyAim :
public AimComponent
{
public:
EnemyAim();
virtual void update(GameObject* o, Uint32 deltaTime);
virtual ~EnemyAim();
};
|
ef7f0cb2c9d70a548453353e8a98615e07562ac3 | 011d7ba6ba4730a1c95d1af25a00d1322902f3f1 | /InboundMessageDispatcher.cpp | 13a1a7eefd9326534a5d39f0053bc84d8d670b22 | [] | no_license | gjn/i2pcpp | 6c76f4a2dbb377ab8c84dde9d8fd4dd81a65c0e8 | 22c6845146bbb83cea83a598fdebe9c778667b0f | refs/heads/master | 2021-01-16T20:37:34.747884 | 2013-09-22T13:28:16 | 2013-09-22T13:28:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,763 | cpp | InboundMessageDispatcher.cpp | #include "InboundMessageDispatcher.h"
#include <iomanip>
#include <boost/bind.hpp>
#include <botan/auto_rng.h>
#include <botan/zlib.h>
#include "i2np/DeliveryStatus.h"
#include "i2np/DatabaseStore.h"
#include "RouterContext.h"
namespace i2pcpp {
InboundMessageDispatcher::InboundMessageDispatcher(boost::asio::io_... |
d9fd398ff658edab585b6a744ce0c055107bf6fb | e90671c6b1cb69eaf57bd0ab4bbd1bd92ba9aea9 | /android/vendored/sdk49/@shopify/react-native-skia/cpp/rnskia/dom/nodes/JsiLineNode.h | 2fd74466574535296518e6ef3869412b6eb73bd8 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | expo/expo | 72fc802e3b6806789225bdd856031a8d150dd6f5 | 40f087fc0c0ab22270cfef2673bced44af170c34 | refs/heads/main | 2023-08-17T01:38:28.442098 | 2023-08-16T21:43:11 | 2023-08-16T21:43:11 | 65,750,241 | 23,742 | 5,421 | MIT | 2023-09-14T21:37:37 | 2016-08-15T17:14:25 | TypeScript | UTF-8 | C++ | false | false | 983 | h | JsiLineNode.h | #pragma once
#include "JsiDomDrawingNode.h"
#include "PointProp.h"
#include <memory>
namespace RNSkia {
class JsiLineNode : public JsiDomDrawingNode,
public JsiDomNodeCtor<JsiLineNode> {
public:
explicit JsiLineNode(std::shared_ptr<RNSkPlatformContext> context)
: JsiDomDrawingNode(contex... |
248ede9fa746cc06ba31795f9564c73a33fc0559 | 5e9a30fc5faf29d1244fd66ed793cce30b5672e7 | /copy_ctor_for_array_class.cpp | a83d4572fb2e3c01828d09afc5821fbe2d6d3171 | [] | no_license | surajombale/c- | 8157f6ffd7b28d5615bdcc3f796dd820c7dad7cb | 54d883f273e8e74e2fe7399b5fc1fdd259645835 | refs/heads/master | 2020-04-08T20:19:42.247636 | 2018-11-29T16:20:48 | 2018-11-29T16:20:48 | 159,694,444 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,559 | cpp | copy_ctor_for_array_class.cpp | #include<iostream>
using namespace std;
namespace Narray
{
class Array
{ private:
int size;
int *arr;
public:
Array(int size=5)
{
this->size=size;
this->arr=new int(this->size);
for(int i=0;i<this->size;i++)
{
this->arr[i]=0;
}
cout<<"inside ctor of array class"<<endl... |
7ab27be2ffbebe42884034513d75a1daef286862 | 70cda06a2aa4f826e8eb755c2acbd6107ff629eb | /basic exercise/uppgift4.1/uppgift4.1/uppgift4.1.cpp | 01663a3172b979b6ff3606b31e1d11def93f9eaa | [] | no_license | UlrikJonasLove/Cpp-Playground | bd05e2f003f78dbc0b42a026099eefc8e5fb8ace | 79b31facdee2f970922572868533355944f47c20 | refs/heads/master | 2023-01-13T12:51:02.968440 | 2020-11-15T09:01:03 | 2020-11-15T09:01:03 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 870 | cpp | uppgift4.1.cpp | #include <iostream>
#include <climits>
using namespace std;
int main(int argc, const char* argv[])
{
cout << "Skriv ett nummer, enter, ett nummer till OSV. Avsluta med att skriva in 0" << endl;
cout << "" << endl;
int max = INT_MIN;
int nMax = INT_MIN;
int min = INT_MAX;
int sum = 0;
int antal = 0;
int inp = ... |
0d9866aee1b546563625bb29c33664527a403d4f | 41fda566921957dfeb6e244e67c9802980ec051f | /lobby.cpp | e32994bb4fb243eaae8b2f81189370e1fbe4f864 | [] | no_license | blockspacer/Black-Comrade | 7f208bfdb978909bf95b51d5256d435b6d541e56 | c110b753ab5481f5ea35026427affbcfd0c6fe21 | refs/heads/master | 2021-04-01T03:01:36.434513 | 2010-05-12T09:24:20 | 2010-05-12T09:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,112 | cpp | lobby.cpp | #include "lobby.h"
#include "Kbhit.h"
using namespace std;
using namespace RakNet;
Lobby::Lobby(RakPeerInterface *rp, DiscoveryAgent *da, NetworkRole nr,
std::string nick)
: pilotTaken(false)
, navTaken(false)
, engTaken(false)
, roleOptionsChanged(true)
, nick(nick)
, rakPeer(rp... |
89db9c7c125f6273671abf5ef96c7a0cc13ca89d | ec513f6b39e45f53dde25fa4c42348eb63ff957c | /smf2js/include/smf-2.11/ResponseStampedLogEntry.h | 84ba1eba30fe0d9d90dd60cd4b36e2dc7e2aa0f0 | [] | no_license | johnwclemens/test-refator | 0b90e4a1c51419f91b00d96869910b4bbef1e766 | 9fcc2cafe198290f44df4660dbdd55007ef786b0 | refs/heads/master | 2021-08-14T07:13:42.467804 | 2017-11-14T22:43:01 | 2017-11-14T22:43:01 | 110,752,941 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,674 | h | ResponseStampedLogEntry.h |
#ifndef RESPONSESTAMPEDLOGENTRY_H
#define RESPONSESTAMPEDLOGENTRY_H
#include "StampedLogEntry.h"
namespace smf{
//! The ResponseLogEntry class is not thread safe.
class ResponseStampedLogEntry
{
public:
ResponseStampedLogEntry(const StampedLogEntry &logEntry);
unsigned int SeqNo() const;
//! \return Retu... |
ab81989fd210dd0e474f67a85ce712b95efdb7b8 | 6126d833bd4522fc2ec6863af045826a72706a28 | /maximum-subarray.cpp | c6c090bd3510a27c22e747a13165b76316a6dc02 | [] | no_license | naivechen/Lintcode | c21e9cbd542abb9a070fd56173d87a0ca17b04a4 | 34cf4064a158086f56e5bfab97f763750b17594e | refs/heads/master | 2020-07-02T20:47:40.377617 | 2015-03-06T11:57:39 | 2015-03-06T11:57:39 | 30,635,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | cpp | maximum-subarray.cpp | // http://lintcode.com/zh-cn/problem/maximum-subarray/
class Solution {
public:
/**
* @param nums: A list of integers
* @return: A integer indicate the sum of max subarray
*/
int maxSubArray(vector<int> nums) {
// write your code here
int len=nums.size();
if(len==0) ... |
63fff407cb82a69efe614a12036ccf1a2b6041f6 | 38ef8b587a72b69593cc71de89e8a53997994c70 | /MonsterGame/SourceFile/MsgSocketServer.cpp | ed3ca54d731d088217a4621c91ab48b2b26f036f | [] | no_license | Resurgam-Akane/MonsterGame | c2bd449176de272f9ffb57d08fb4cf82741baaa4 | 83e3c23a555c921404cec49129e168a4b44b7627 | refs/heads/master | 2021-01-12T09:07:13.050620 | 2016-12-18T06:52:43 | 2016-12-18T06:52:43 | 76,766,397 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,604 | cpp | MsgSocketServer.cpp | #include "MsgSocket.h"
#include "Driver.h"
#include <iostream>
#include <exception>
#include <thread>
MsgSocket::MsgSocketInit::MsgSocketInit()
{
WSADATA Ws;
if (WSAStartup(MAKEWORD(2, 2), &Ws) != 0) {
std::cout << "Init Windows Socket Failed::" << GetLastError() << std::endl;
throw std::runtime_error("");
}... |
5a79da8739e0fbc811132014ec2f8e0355bff63b | 1b7a5437932b5d1a01788d5ce829f9c8706c81fa | /cusp/precond/aggregation/system/detail/generic/evolution_strength.h | ff096bd69c80f685db29f602c48eed239c1cbf3b | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | cusplibrary/cusplibrary | dc8cac129f7fffb8690933c19991dbce55a42deb | dc77579004a5d79a79c9463d7a9621834e73d089 | refs/heads/develop | 2022-08-16T00:30:16.420240 | 2018-03-14T07:27:31 | 2018-03-14T07:27:31 | 5,534,514 | 311 | 119 | Apache-2.0 | 2023-06-25T11:03:21 | 2012-08-24T01:13:26 | C++ | UTF-8 | C++ | false | false | 15,617 | h | evolution_strength.h | /*
* Copyright 2008-2014 NVIDIA Corporation
*
* 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... |
04d5ce67fcad0145f23f7e21ce8aac108cd4c607 | b3931bc2e18fe54799b805edc1b8934e28606b33 | /2013-2014/2term/HomeTask_1/Task_2/arraystack.h | 672538aa4cdfe86196216e9979c1d5c56cfc1f82 | [] | no_license | maxim-yakupov/University | 0830cfa36038bef8932c134a6a035bea76471e90 | bcc0f5ed6bf28430f7d740a43867e7cd47271731 | refs/heads/master | 2021-01-17T13:03:30.068669 | 2017-01-30T21:55:23 | 2017-01-30T21:55:23 | 58,821,128 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,063 | h | arraystack.h | #pragma once
#include "stack.h"
template <class Type>
class ArrayStack:public Stack<Type>
{
public:
ArrayStack<Type>();
~ArrayStack<Type>();
void push(Type value);
Type top() const;
void pop();
bool isEmpty() const;
void clear();
private:
Type array[1000];
unsigned int head;
};
/*
... |
3ca1d319fe10d022ce8e9925e7c53d73ca9e00be | eb2fc2a30ef1a6ea62c0438ec203a2405c5652c8 | /src/common/utils.h | c2143b8ad1b048db72a6c5af97e21fbc1e441f41 | [] | no_license | mincore/face_core | 0e302a202704f738c1a05016f08c08f82dcdbaa0 | 5b15c3c9c78659bb448461547b6224a9fe522f58 | refs/heads/master | 2021-08-07T05:41:56.630294 | 2017-11-07T16:17:49 | 2017-11-07T16:17:49 | 109,857,621 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,558 | h | utils.h | /* ===================================================
* Copyright (C) 2017 chenshangping All Right Reserved.
* Author: chenshuangping(mincore@163.com)
* Filename: utils.h
* Created: 2017-06-02 15:24
* Description:
* ===================================================
*/
#ifndef _UTILS_H
#define _UTI... |
34166d5911af0bfff66c35c2fd5189591295c674 | cf538d1073bb1b9a2449e9e1996f58e74f09fe4b | /fwk4gps 2011/fwk4gps 2011/Design.cpp | fce86c7e54201ae14466a39aa77c0850a1af579d | [] | no_license | ScottDowne/Mesocricetus | 5067527dd20c7327591f086e9d0947b03e0818e4 | c5360965eda35ec9bb7384717714c232bbd7048f | refs/heads/master | 2016-09-10T22:35:44.128648 | 2011-12-15T19:12:39 | 2011-12-15T19:12:39 | 2,526,188 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,183 | cpp | Design.cpp | /* Design Implementation - Model Branch
*
* Design.cpp
* fwk4gps version 2.0
* gam666/dps901
* October 4 2011
* copyright (c) 2011 Chris Szalwinski
* distributed under TPL - see ../Licenses.txt
*/
#include "iContext.h" // for the Context Interface
#include "iText.h" // for the Text I... |
c895460b62bb832e711e8e5cf7e00b84707ad168 | b837b59bb5dd90dccea3b58acaf8dc7afac105a3 | /Code/gpDragAndDrop/DragAndDropApp.cpp | 8358cfdd8f856dc72f38562862592d14286a0247 | [
"MIT"
] | permissive | Manuzor/GamePhysics | b59d5cc0c9cd8f76181f451041cf3e64f79b9d71 | 59c7ff68c6bb72a4b3503752debd35c8b98893ce | refs/heads/master | 2020-04-10T03:31:11.496973 | 2015-01-23T20:04:49 | 2015-01-23T20:04:49 | 24,562,659 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,296 | cpp | DragAndDropApp.cpp | #include "gpDragAndDrop/PCH.h"
#include <Core/Input/InputManager.h>
#include "gpDragAndDrop/DragAndDropApp.h"
#include "gpCore/Rendering/Rendering.h"
#include "gpCore/Rendering/RenderExtractor.h"
#include "gpCore/World/World.h"
#include "gpCore/Shapes.h"
#include "gpCore/Utilities/RandomNumbers.h"
static gpWorld*... |
7389953a7755412cc604014821ba81c9090b8ec9 | 58fa075d43d718bfffed89deda9af9ec01a31e34 | /libldpc.h | 27643db074b84cc74bf1ae0c528bb8245940271c | [] | no_license | pspuser/qldpc | 9af0fd1c8b8708e0a1b463704cc25f0ee2f90a89 | e3d548725520330e4fdb0de76f157e5a8dfe24d2 | refs/heads/master | 2021-09-14T13:40:02.669680 | 2017-11-09T16:28:33 | 2017-11-09T16:28:33 | 123,130,682 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,936 | h | libldpc.h | #ifndef LIBLDPC_H
#define LIBLDPC_H
#include "LDPC-4Qt/ldpc4qt.h"
#include <fstream>
#include <QByteArray>
#include <vector>
#include <QCoreApplication>
#include <QtWidgets/QApplication>
namespace LibLDPC
{
//!!! Размер ключа должен быть постоянным и быть равен 1000 (одной тысяче)
//!!! QBER не д... |
e0afae6ff4a008c1d33e1fbddfba3168a218ee43 | b21894539d927e811f20f3ad93e54ce3f533f781 | /main.cpp | 3b3250aeb21205b8b79f43d2ae446d12b3213d3b | [
"MIT"
] | permissive | 6rayWa1cher/codename-piratelands | 93b156d81cca283800c0012ca6424a069809db4f | 092850162879aa2fdfba8c78166311657c67bcf6 | refs/heads/master | 2022-11-17T11:12:27.066657 | 2020-06-28T11:10:11 | 2020-06-28T11:10:11 | 273,352,896 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 640 | cpp | main.cpp | #include "mainwindow.h"
#include <QApplication>
#include <QInputDialog>
int main(int argc, char *argv[]) {
QApplication a(argc, argv);
auto playerName = QInputDialog::getText(nullptr, "PirateLands", "Enter your name");
std::shared_ptr<Game> game = std::make_shared<Game>(playerName);
ShopWindow s(nullp... |
63c63e74f22553dee039cdcbdbf027630c1a9d3c | 5008099a73040154d32b77df70063076e2dc612d | /include/GameLevel.h | b7eec673ba8875b209442399d12e6c70a5169e77 | [] | no_license | JorgeLasaosa/Pengo | bdce4f7f04f89203309725baebe3da59675b4c9f | 9083448d0cd78c1f15e5a015f1ec30e45cc4af6e | refs/heads/master | 2021-01-20T01:41:36.394710 | 2017-05-03T10:51:49 | 2017-05-03T10:51:49 | 81,827,738 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,485 | h | GameLevel.h | #ifndef GAMELEVEL_H
#define GAMELEVEL_H
#define GLEW_STATIC
#include <GL/glew.h>
#include <vector>
#include <queue>
#include <string>
#include "GameObject.h"
#include "Player.h"
#include "SpriteRenderer.h"
#include "Wallblock.h"
#include "Iceblock.h"
#include "Diamondblock.h"
#include "Snobee.h"
#include "SnobeeEgg.h"... |
7856e04954c1f6ff324c910ab806b0b89f4ad123 | 9dc7f37e290c03d27172ef211fac548d08ec83c6 | /Devices/igtlioStatusDevice.cxx | 7e54781c40960bac9914bcda75071d8f5d35ba4e | [
"Apache-2.0"
] | permissive | Sunderlandkyl/OpenIGTLinkIO | cd8414ae08add54372e0c6e0facba5984ca3ec48 | 4b792865f07e0dbc812c328176d74c94a5e5983c | refs/heads/master | 2022-11-01T01:09:22.149398 | 2018-01-12T04:03:04 | 2018-01-24T03:08:33 | 120,339,747 | 0 | 0 | null | 2018-02-05T17:45:29 | 2018-02-05T17:45:28 | null | UTF-8 | C++ | false | false | 3,723 | cxx | igtlioStatusDevice.cxx |
#include "igtlioStatusDevice.h"
#include <vtkObjectFactory.h>
namespace igtlio
{
//---------------------------------------------------------------------------
DevicePointer StatusDeviceCreator::Create(std::string device_name)
{
StatusDevicePointer retval = StatusDevicePointer::New();
retval->SetDeviceName(device_n... |
bb6d478fccb94f7f276dc5a3f92b2705092fd0b1 | 69c340aed4412535dd6e185ade0d3e2b6147418e | /Graphs/All_possible_paths_of_len_k_from_u_to_v.cpp | ac866afd3197415fb42859214f3c2ca4052c5d9f | [] | no_license | Meaha7/DSA-Marathon | 656f1c1505adf24d2a3501a1f216e2fcb9aa3e32 | 9fb5c4d16a0192cb35f3da5c0a09b67ea2906dbd | refs/heads/main | 2023-07-11T07:14:01.912316 | 2021-08-21T21:25:05 | 2021-08-21T21:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,520 | cpp | All_possible_paths_of_len_k_from_u_to_v.cpp | #include <iostream>
#include <string>
#include <vector>
#include <climits>
#include <queue>
#include <stack>
#include <map>
#include <set>
using namespace std;
//Dp solution
int MinimumWalk(vector<vector<int>> &graph, int u, int v, int k)
{
// Code here
int i, j, e, a;
int V = graph.si... |
08e6b4e62a30646dbcb3ed05b04cdad76142743d | 1bcc75d266ba8416563727ff19ead5976b2deb18 | /Classes/widgets/Slider.cpp | 9d787ad40c433f1b321f61fcf1155b66ae19cd27 | [
"MIT"
] | permissive | Pisces000221/thats-unnatural | 3aaab0517b0577310073b36c50e3fa09e52d4dde | b84575b19c86e7de878078198a40383f5e16d30d | refs/heads/master | 2020-12-24T14:26:59.709765 | 2014-08-27T11:02:41 | 2014-08-27T11:02:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,633 | cpp | Slider.cpp | #include "Slider.h"
#include "cocos2d.h"
using namespace cocos2d;
Slider *Slider::create(float min, float max, float increment, callback_type callback)
{
Slider *ret = new Slider();
if (ret && ret->init(min, max, increment, callback)) return ret;
else { CC_SAFE_DELETE(ret); ret = nullptr; return nullptr; ... |
3ea9ccf4a28c2a53dd73692b8dce54547700d124 | e67259f518e61f2b15dda1eb767f012a5f3a6958 | /src/storage/table/chunk_info.cpp | 91c0040b5992497f84baa11022a129e248751383 | [
"MIT"
] | permissive | AdrianRiedl/duckdb | e0151d883d9ef2fa1b84296c57e9d5d11210e9e3 | 60c06c55973947c37fcf8feb357da802e39da3f1 | refs/heads/master | 2020-11-26T13:14:07.776404 | 2020-01-31T11:44:23 | 2020-01-31T11:44:23 | 229,081,391 | 2 | 0 | MIT | 2019-12-19T15:17:41 | 2019-12-19T15:17:40 | null | UTF-8 | C++ | false | false | 3,048 | cpp | chunk_info.cpp | #include "duckdb/storage/table/chunk_info.hpp"
#include "duckdb/transaction/transaction.hpp"
using namespace duckdb;
using namespace std;
static bool UseVersion(Transaction &transaction, transaction_t id) {
return id < transaction.start_time || id == transaction.transaction_id;
}
//===------------------------------... |
e007b8b52371463812e28fd17d02d2d5458af730 | 9d854d6314a444d3e1c63730104ba7357916ba8d | /c++_course_version/1/2_prim.cpp | 1384ee6ed2fe5d02d3d8a09ab5c1c6e6d8f954b3 | [] | no_license | MikeShah/C-SoftwareEngineering | b0c0289e0a2969207e10d221dd5b281f9758b9ce | 63ba44f1b8b039534aea7dbadb5401fb7b3c011e | refs/heads/master | 2023-05-02T16:25:36.769839 | 2023-04-13T21:37:31 | 2023-04-13T21:37:31 | 233,117,843 | 14 | 12 | null | 2023-02-02T01:08:41 | 2020-01-10T19:38:05 | C++ | UTF-8 | C++ | false | false | 680 | cpp | 2_prim.cpp | // clang++ -std=c++11 2_prim.cpp -o prim
#include <iostream>
// Declare variable ahead of use
// This variable is outside scope of any
// function, so it is also 'global'
// (i.e. available anywhere)
const float PI = 3.1415;
// ('const' means PI will not change)
// Define a primitive char
char status;
int main(){
... |
3d0242801a2f4224acc90c0fc1eebabb0d9a5f2d | 730aa55f95f63b5c457093b805ed55c2f6d703db | /src/scena.cpp | 9621b3579324930c67aecc2daa4567ca01bc4d24 | [
"Unlicense"
] | permissive | KPO-2020-2021/zad5_1-michalpiaskowski15 | 7bb39d14119cfc0d07bb6f6109bd3cb1fdf5cbab | 4424dd047f9bfedb83d952a1439e58f38622732b | refs/heads/master | 2023-06-07T02:18:38.970682 | 2021-06-27T20:10:06 | 2021-06-27T20:10:06 | 371,340,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,586 | cpp | scena.cpp | #include "scena.h"
#include "przeszkoda1.h"
#include "graniastoslup.hh"
scena::scena(){
this->promien_drona = 6.4;
this->rozmiar_przeszkody = 6;
this->index_drona = 0;
matrix3d orient = matrix3d();
vector3d pozycja_drona1 = vector3d(20, 20, 1);
vector3d pozycja_drona2 = vector3d(100, 20, 1);
... |
8bc7810299a6685f0367fd993e157f02184a8501 | 6ddba6f24428e5639e4079daae7507deb763aab6 | /getImage.h | d21b8a4e7b2f5c496a086e62de44684a0c3d33b4 | [] | no_license | malreddysid/sudoku | dfe9a30e202ebcb67de02dee51a2fd659b6febe9 | d0a9feb4f8249c391a1af222d9768d1b5281a8a3 | refs/heads/master | 2021-01-20T18:57:48.525799 | 2016-07-22T18:25:46 | 2016-07-22T18:25:46 | 63,436,409 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 393 | h | getImage.h | #include <stdio.h>
#include <vector>
#include <stdlib.h>
#include <opencv2/opencv.hpp>
#include <opencv/cv.hpp>
#include <opencv/highgui.h>
using namespace std;
using namespace cv;
const int NUMRECT_DIM = 20;
const int NUMRECT_PIX = NUMRECT_DIM * NUMRECT_DIM;
// images for number overlay
const int OVERLAY_ROWS = 30... |
246213b19dcb2462055b2cbeb1b3739233d51162 | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/git/new_hunk_4390.cpp | 089ab9de2cfd6bce69d87f0e2599a83b0f19668b | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 227 | cpp | new_hunk_4390.cpp | graph_show_commit(opt->graph);
if (!opt->graph)
put_revision_mark(opt, commit);
fputs(find_unique_abbrev(commit->object.sha1, abbrev_commit), stdout);
if (opt->print_parents)
show_parents(commit, abbrev_commit);
|
ca1eaead8975082b7dd910b926f0a02b25aa8224 | 9cd1657460a405cd3f356e73c70d2d6e95616bc9 | /algolab2018-master/week5/punch/punch2.cc | 93d4d04620d96a2bf92ce6c74ed839f6bb3698c8 | [] | no_license | Alchemille/Algolab | 42663a5b9cf5e1d72d62828da7ef6143b5df063f | abd6efecf1dd0b7a762db07c82efc660525d259e | refs/heads/master | 2022-04-06T23:11:21.885451 | 2020-02-03T22:34:27 | 2020-02-03T22:34:27 | 216,910,855 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,587 | cc | punch2.cc | #include <bits/stdc++.h>
void testcase(){
int n, k; std::cin >> n >> k;
std::vector<int> prices(n), volumes(n);
for(int i=0; i<n; i++)
std::cin >> prices[i] >> volumes[i];
std::vector<std::vector<int>> mem_table(k+1, std::vector<int>(n, 0));
std::vector<std::vector<int>> na(k+1, std::vector<int>(n, 0));
// se... |
dd0667a157a310d47ad4709d502eabcde7c63f6a | 14bf8412b344fca2611eddcb5a8240b1166d5687 | /main/main.cpp | bd886cdb369b57169c693eb0f2b670a645eea434 | [
"MIT"
] | permissive | am1ko/nes | 57a5edfc15b68a23f3fb86f6aa3f7ce9847db334 | 4c1addaa6331733ccde90a3d9a0eed74968e859e | refs/heads/master | 2018-09-23T06:44:04.717027 | 2018-06-28T18:08:43 | 2018-06-28T18:08:43 | 104,556,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,225 | cpp | main.cpp | #include <array>
#include <cassert>
#include <iostream>
#include <iomanip>
#include <boost/format.hpp>
#include "ram.h"
#include "rom.h"
#include "ines_parser_ifstream.h"
#include "io_registers.h"
#include "bus.h"
#include "cpu.h"
#include "ppu.h"
#include "emu.h"
#include "bus_ppu.h"
#include "renderer.h"
#include "S... |
6c1fbaa2c8d78a9180e71312937c319af747724e | e7538e19b16768c34f0c7321a6fb969cbadd22a5 | /include/Screens/LevelScreen.h | c351c4ce411281a6fefc4d25c0a64154987e379f | [] | no_license | MORTAL2000/Cendric2 | 725d1b94da8a61898378b633571bac787c3c7392 | 8b5d6528e65c69eefa0539b44d450039c3142534 | refs/heads/master | 2021-01-21T23:45:42.444644 | 2016-03-25T20:41:15 | 2016-03-25T20:41:15 | 54,257,324 | 0 | 0 | null | 2016-03-19T09:12:32 | 2016-03-19T09:12:32 | null | UTF-8 | C++ | false | false | 2,514 | h | LevelScreen.h | #pragma once
#include "global.h"
#include "Level/Level.h"
#include "Level/LevelMainCharacter.h"
#include "WorldScreen.h"
#include "ResourceManager.h"
#include "Level/LevelMainCharacterLoader.h"
#include "Level/LevelInterface.h"
#include "GUI/Button.h"
#include "GUI/YesOrNoForm.h"
#include "GUI/ProgressLog.h"
class L... |
32b42d53384d005d5092a7182f1b5f4e27282056 | c3ba02d86f982ef237876c487f64002246a05eb7 | /src/qchem/libqchem.cpp | 32f1558b5f3e5fc5db5648e268e7b43a56121ff6 | [] | no_license | scottmcguire/libra-code | 69fc5f2a9bc865378c92af4ab0fe984017a5697c | 5621ce1d5c569593714b2dbd854fc0ddcc4f44ad | refs/heads/master | 2020-07-06T05:08:43.023198 | 2016-11-08T13:42:22 | 2016-11-08T13:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,458 | cpp | libqchem.cpp | /*********************************************************************************
* Copyright (C) 2015 Alexey V. Akimov
*
* This file is distributed under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 2 of
* the License, or (at your option) any later ve... |
f07f6b40daa79be9dc456be215c358b8a404b7cc | a2c29e0df5af75554e2f86c5c023d48b0d0a773c | /0013.罗马数字转成整数.cpp | 07109a540348a78bc844bcf74e73343889064791 | [] | no_license | havoc-sheep/LeetCode | 8e82e302ae4cef271da71ea0151a323e54f19132 | d8f3f74a8a2a87a2e5ac2efc6d2a6d61efdebd29 | refs/heads/master | 2020-05-30T13:26:19.125484 | 2019-06-03T16:02:30 | 2019-06-03T16:02:30 | 189,761,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,613 | cpp | 0013.罗马数字转成整数.cpp | class Solution {
public:
int romanToInt(string s) {
int size = s.size();
int ans = 0;
for(int i = 0; i < size; i++){
//1,4,9
if(s[i] == 'I'){
if(s[i+1] == 'V' || s[i+1] == 'X') ans -= 1;
else ans += 1;
}
//5
... |
0acb7b47331ea5e7dc876a5403c58b63688805af | 303b48eb9354338542e0a4ca68df1978dd8d038b | /include/fox/FXQuat.h | a91e6c376cbf520071a0021710e22c37192bb3b5 | [
"BSD-3-Clause"
] | permissive | ldematte/beppe | fa98a212bbe4a27c5d63defaf386898a48d72deb | 53369e0635d37d2dc58aa0b6317e664b3cf67547 | refs/heads/master | 2020-06-04T00:05:39.688233 | 2013-01-06T16:37:03 | 2013-01-06T16:37:03 | 7,469,184 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,236 | h | FXQuat.h | /********************************************************************************
* *
* Q u a t e r n i o n F u n c t i o n s *
* ... |
1d4f764ea64788e4512fb1bc23ef0ffd3aaf88e6 | a5da02227cbbc30effaf43d52bdca26223daf98e | /Codeforces/462/C.cpp | ba87ef6272f538e0423385db23449f5b489b6306 | [
"MIT"
] | permissive | zzh8829/CompetitiveProgramming | 853edabdfc728504abaa27333bd4900a7f97c8c9 | 36f36b10269b4648ca8be0b08c2c49e96abede25 | refs/heads/master | 2021-01-01T15:41:08.984386 | 2018-03-25T17:32:39 | 2018-03-25T17:32:39 | 35,587,680 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 605 | cpp | C.cpp | #include <algorithm>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <string>
#include <vector>
#include <cmath>
#include <queue>
#include <map>
#include <set>
using namespace std;
typedef long long LL;
LL tot;
LL cur;
int n;
LL num[300001];... |
554f6f40fe809f1485adfa35422d8ab8da43e0c8 | 83b010956550bceb6f2bd3ea3717729994da6c3a | /EsSystem/EEsystemAppConfig.cpp | df46c3d3dad617fbd1e24b40a927817c53be0cac | [
"MIT"
] | permissive | bvchirkov/OpenMovingHumanFlow | ec32bc50246f778877d24d24320b7597be17e12e | 5ebb0db03d0cf75902eee19a70d407ca346bd9d5 | refs/heads/master | 2023-03-06T03:47:27.017292 | 2021-02-10T08:03:33 | 2021-02-10T08:03:33 | 322,227,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 540 | cpp | EEsystemAppConfig.cpp | #include "EEsystemAppConfig.hpp"
GP_IMPL_REFLECTABLE(EEsystemAppConfig,
"d3ed9a2e-d681-4721-b54b-92a8983d9a4b"_sv,
GpReflectInheritanceState::HERITABLE,
1);
EEsystemAppConfig::EEsystemAppConfig (void)
{
}
EEsystemAppConfig::~EEsystemAppConfig (void)
{
}
vo... |
ad0ad9853f44de91e3f60d83784a5ea164ed9f5a | af0ecafb5428bd556d49575da2a72f6f80d3d14b | /CodeJamCrawler/dataset/10_3825_66.cpp | 2230af59ae5172bb1154a3272c03704cac3f75a7 | [] | no_license | gbrlas/AVSP | 0a2a08be5661c1b4a2238e875b6cdc88b4ee0997 | e259090bf282694676b2568023745f9ffb6d73fd | refs/heads/master | 2021-06-16T22:25:41.585830 | 2017-06-09T06:32:01 | 2017-06-09T06:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 434 | cpp | 10_3825_66.cpp | #include <stdio.h>
#include <math.h>
int main()
{
int p,i,n,k,T;
freopen("1.in","r",stdin);
freopen("1.out","w",stdout);
scanf("%d",&T);
for(i=1;i<=T;i++)
{
scanf("%d%d",&n,&k);
p = (int)pow(2.0,(double)n);
if(k==p-1 || (k-p+1)%p==0)
{
... |
043b9ec63769ea9611ad2fbe6e0eaecc436dca47 | 48102b2556a4e17997416770451a4fefe2b7100d | /src/decoder.hpp | 1378279d9c1c6f0ce2bcc2ad9414067d297ffdbe | [
"Apache-2.0"
] | permissive | ignatenkobrain/libprocess | 685354f8d97cb0f4736b99b2c608155352fe9625 | d283d260937c8e7fc3a5fb4ffdbdef9f21688a50 | refs/heads/master | 2021-01-18T05:46:08.883178 | 2013-10-01T20:54:58 | 2013-10-01T20:54:58 | 11,611,009 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 11,593 | hpp | decoder.hpp | #ifndef __DECODER_HPP__
#define __DECODER_HPP__
#include <http_parser.h>
#include <deque>
#include <string>
#include <vector>
#include <libprocess/http.hpp>
#include <libprocess/socket.hpp>
#include <stout/foreach.hpp>
#include <stout/gzip.hpp>
#include <stout/try.hpp>
// TODO(bmahler): Upgrade our http_parser to... |
79d47f8d5d84770f85ad8472e56fc05931ec5295 | b8ce08a0032f467a2d14d3ee3105c1a6418e1f0c | /src/python/PyImath/PyImathColor.h | 767b9b1ea35bd7026eb8e4c0d72eed9d0c344992 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | AcademySoftwareFoundation/Imath | a78c4ba015c0a465c1e35291094a78f59688a8a9 | 4d4e01c8c9fb9b9dbbefa2e135b21778c9cd331e | refs/heads/main | 2023-08-31T05:09:54.756260 | 2023-08-13T23:40:57 | 2023-08-13T23:40:57 | 271,841,243 | 300 | 96 | BSD-3-Clause | 2023-09-09T04:51:00 | 2020-06-12T16:18:26 | C++ | UTF-8 | C++ | false | false | 7,499 | h | PyImathColor.h | //
// SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenEXR Project.
//
// clang-format off
#ifndef _PyImathColor3_h_
#define _PyImathColor3_h_
#include <Python.h>
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <boost/python.hpp>
#include <ImathColor.h>
#include "PyImath.h"
namespace PyIma... |
12fcfd0ca41b542db51ee9a8d3a84602160761b5 | 37810fcdbb7c21d18d2b480535f4e067b99d0e7c | /app/main.cpp | 3284af44a602e128bf0ada20a3ab2f2ff3cf6ab6 | [] | no_license | mtupikov42/Computor | 7a18712884c22a1f04689a8287190b421066cf8a | 27c28dd4555c0cf7c06851f4546a5ad567717452 | refs/heads/master | 2020-07-03T02:56:36.143803 | 2020-05-13T15:43:16 | 2020-05-13T15:43:16 | 201,762,910 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,554 | cpp | main.cpp | #include <QSettings>
#include <QDir>
#include <QQuickWindow>
#include <QGuiApplication>
#include <QDirIterator>
#include <QFontDatabase>
#include <QLoggingCategory>
#include <app_config.h>
#include <StandardPaths.h>
#include "EBST.h"
#include "ExpressionException.h"
#include "Core/UIManager.h"
#include "Core/Logger.... |
a7536ea0fdd09a3125c507ba5d219b646680d730 | ce7011ef94e4cf393f249a54e2b7d7d39d70b577 | /FunctionGraph/FunctionGraph_itog2.cpp | e65337ff2420ed0607be10bb50c5aff9727db873 | [] | no_license | alanpa2020/KPK | f2762cf1ba478f46016d8af4951cc3c502eaf49b | 84fff21133b21225a5fdab20b68828f3ee9ef550 | refs/heads/master | 2021-02-01T11:03:04.924212 | 2020-03-05T07:26:44 | 2020-03-05T07:26:44 | 243,521,276 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 2,756 | cpp | FunctionGraph_itog2.cpp | #include "TXLib.h"
const int Scale = 50;
//прототипы
void DrawGraphic(double (*func) (double x, double a, double b, double c), double a, double b, double c,COLORREF color);
void DrawDecartSystem ();
void Live_graphic();
double Sqr_abc (double x, double a, double b, double c);
double SinX_abc (double x, dou... |
54ae086990072ab23e87def34d8bfea1aa94876c | c8e40fc06049b74d74d22cb05459d4d22dec59f8 | /cpp_and_gramatics/3/main.cpp | 32ac2cc340299f01b87b9c7f3c926bc72545ce5e | [] | no_license | DoubleDi/cmc-msu-tasks | d33af4209013294f2cb28fa596b4550637e30ccd | 97c490283fa1fc40ce3abed9ace1cfedf8ffa671 | refs/heads/master | 2021-01-20T19:05:21.910671 | 2018-09-06T13:23:17 | 2018-09-06T13:23:17 | 61,066,958 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 749 | cpp | main.cpp | #include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
using namespace std;
class Sum {
double sm;
public:
Sum() { sm = 0; }
void operator()(double n) { sm += n; }
double get() { return sm; }
};
int main()
{
vector<double> v;
double tmp;
while (cin >> tmp) {
... |
ab9117975c0b3a2e8539480e10d5978be3325e95 | d013cc33cd7067159d223c1eca2304f4040bc26a | /glutVS/src/Vector3.h | cd7224d76341af9369482b03a17b54e2a0453ae0 | [] | no_license | rw10/cgavr | c90aa4d6e541be89dc3773283220960e9423847f | e8cc3f070765267ff148ebb0ae311283054706d4 | refs/heads/master | 2020-04-01T04:27:52.309186 | 2019-01-23T16:52:58 | 2019-01-23T16:52:58 | 152,864,765 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,559 | h | Vector3.h | #pragma once
#include <GL/glut.h>
class Vector3
{
public:
Vector3();
Vector3(double x, double y, double z);
~Vector3();
double x;
double y;
double z;
GLfloat gl_x() const {
return (GLfloat)x;
}
GLfloat gl_y() const {
return (GLfloat)y;
}
GLfloat gl_z() const {
return (GLfloat)z;
}
// compare ope... |
069c43b839632d83bfa8e0ac2a9770292215df83 | f386a4d9dea36518fb20a3d353c3548c1dc085d8 | /Simulate3D/Simulate3D.cpp | ca3fdabe65ca48b1468e25ed1c9be8f0d8d0722f | [
"BSD-2-Clause"
] | permissive | fbergmann/3DSimulate | a63d7fce06b485927bfd27e0e122a0c5e861d6ef | 12215ce4d29d75c1a86317100a35d7cad222540d | refs/heads/master | 2021-01-20T12:49:41.653058 | 2017-05-07T08:48:13 | 2017-05-07T08:48:13 | 90,414,662 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 47,231 | cpp | Simulate3D.cpp |
#include "Simulate3D.h"
#include "PickEventHandler.h"
#include "RotateHandler.h"
#include "UpdateGeodeCallback.h"
#include "Simulate3DArgumentParser.h"
#include "Configuration.h"
#include "Util.h"
#include "SBWSimulatorData.h"
#include "TimeSeriesData.h"
#include "NOMData.h"
#include <sstream>
#include <fstream>
#in... |
a3574945fe8f6214c06298b74f029143cd77ed96 | e376a236d0e07848357a7189e1aa8449e1e6c828 | /src/panes/DrawablePane.cpp | 2c3b4e2abe25c0f506b5a2a13a4ee19bf643d07c | [] | no_license | vencho/arkanoid | 2f6032c46d46ef7672de990aac288a683faa1dff | 5ba8c5e5dff193f941b9b7c22e0ffc77cf28397e | refs/heads/master | 2021-01-23T20:01:11.397989 | 2019-06-02T23:03:36 | 2019-06-02T23:03:36 | 102,844,911 | 0 | 1 | null | 2019-06-02T23:03:38 | 2017-09-08T09:34:42 | C++ | UTF-8 | C++ | false | false | 465 | cpp | DrawablePane.cpp | #include<panes/DrawablePane.h>
DrawablePane::DrawablePane() : FloatingRectangle(0, 0) { }
void DrawablePane::reset() { }
void DrawablePane::draw(SDL_Surface *target, int baseX, int baseY) {
setClip(target, baseX, baseY);
drawYourself(target, baseX, baseY);
}
void DrawablePane::setClip(SDL_Surface *target, int ba... |
87e70a09f034fffc691189116a8a7994f5486adf | caa560f573580080b8f372043dd80442382a6c32 | /project_state/PerspectiveTransform.cpp | 891c95ef1b4435b34458e58d5fbd4360eb67db2b | [] | no_license | shainaloria/ph-plate-recognition | 80b2304c7de02c3cd36423a0f27b6f02f588e156 | 8781c11f6b0e38fafd9972637a0afa891721f05b | refs/heads/master | 2021-02-27T04:40:10.034810 | 2020-03-07T07:45:49 | 2020-03-07T07:45:49 | 245,579,823 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 15,279 | cpp | PerspectiveTransform.cpp | //---------------------------------------------------------------------------
//
// Name: PerspectiveTransform.cpp
// Author: John Benedict Du
// Created: 14/02/2018 2:07:33 PM
// Description:
//
//---------------------------------------------------------------------------
#include <vector>
... |
20836ea83650b5412b76e418b5fcf599ccc5776d | d46b808a40fd16ce501cd83287f8129934da74ad | /48.cpp | 13e39c0e836cd858aa796cd72340fc7639c21bf9 | [] | no_license | Luisa158/NuevoLenguaje | 418813b5b3cbb463d1b853706486a5d73217fe42 | c4c02006c8cdcf93986115594302352bf1e9204b | refs/heads/master | 2020-05-24T18:28:21.155719 | 2019-05-19T04:14:39 | 2019-05-19T04:14:39 | 187,411,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | cpp | 48.cpp | #include <iostream>
using namespace std;
int main()
{
string palabra;
string pinvertida="";
cout<<"Escribe una palabra:"<<std::endl;
cin>>palabra;
for (int i = palabra.size(); i >=0 ; i--)
pinvertida += palabra[i];
cout<<"La palabra ingresada es: "<<palabra<<std::endl;... |
d847a73d48dd7785df8e6dd8a79a657c925e427e | b42335bbd64ad987a883f3a3bf1a76aa5d154d2e | /pcl/sem.hpp | 30d12605e2a91a87b77d3ef7c3b4add8e63abac5 | [
"MIT"
] | permissive | johnp41/Compiler-Uni | 2af3e806ad965ea9b81e23642f6b1acdad3ab508 | 4f653180d4f3f98316b15e566e57443041ef6faa | refs/heads/master | 2020-04-30T01:26:08.596689 | 2019-10-15T09:17:47 | 2019-10-15T09:17:47 | 176,528,712 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 613 | hpp | sem.hpp | #ifndef _semh
#define _semh
extern "C"{
#include "symbol.h"
#include "error.h"
}
#include "my-ast.hpp"
#include "stack"
extern stack<SymbolEntry* > func_stack ;
extern SymbolEntry* dummy ;
void sem_rvalue(Rval* r);
void sem_if(Stmt* s);
void sem_expr(Expr* e);
void sem_call(Call* call);
void sem_lvalue(Lval* p);
voi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.