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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c4c6008a2042da56baa6d95df5fa2b043e8bfe39 | 5ee245f619ab0a8eda1bf7033340879c619808c4 | /ALL/Camera.cpp | 87b3de11e9191f14e03ba96b62ae1497df0d8144 | [] | no_license | Tekh-ops/opengl-3d-engine | a55a9debd556cb469cf13b57d5dd342a9d48e4a0 | 9d3d3125630300c12da9dc3b5ec6500b473e715f | refs/heads/master | 2021-12-06T06:02:55.241551 | 2015-10-04T20:42:39 | 2015-10-04T20:42:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,169 | cpp | Camera.cpp | #include "Camera.h"
Camera::Camera(glm::vec3 position, glm::vec3 direction) {
//Create the camera direction and position
this->direction = direction;
this->position = position;
//Create the mouse x and y
xPos = 0;
yPos = 0;
//Create the viewing angles
EulerAngle angles = EulerAngle();
angles.toAngles(this->... |
ffd9d54ce9e366ce52bbc475db514ed90b78ec08 | 4f3f59031a782e7a9c2a9e95ab39890b234968a2 | /source/mutableSources32/warps/dsp/oscillator.cc | 2278e62f1d67d7dceda4f532c19faaa587218b74 | [
"MIT"
] | permissive | joelyoungblood/vb.mi-dev | 23c3ec81fb1dbd22e92af8cee3833835862b4949 | af141104699fba2aa35938f33300f5e3b42dffb4 | refs/heads/master | 2023-07-13T12:24:34.106004 | 2021-08-22T18:06:01 | 2021-08-22T18:06:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,862 | cc | oscillator.cc | // Copyright 2014 Emilie Gillet.
//
// Author: Emilie Gillet (emilie.o.gillet@gmail.com)
//
// 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 limitatio... |
549c9c66671ec5efc5afdedf84a8c287ce590436 | 11e97f87deb25babb4a32c80941e7ff4e476c92a | /HVT/HRT_430T/LotUnit.cpp | f96bd4b8ef6fcf1198a95a390de730c83d75f7d6 | [] | no_license | xhyangxianjun/Builder6-program | b9d03d98658db5a5a8cf1586210a373bc391dc48 | a12d811d7a5fa3dba6d3e8c05989a41cb89783de | refs/heads/master | 2022-04-03T00:25:47.274355 | 2019-09-19T08:26:56 | 2019-09-19T08:26:56 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 45,366 | cpp | LotUnit.cpp | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
#include <stdio.h>
#include "LotUnit.h"
#include "SLogUnit.h"
#include "UserIni.h"
#include "UserFile.h"
#include "OptionMan.h"
... |
fe2246cdd6637f119f0860cf6c02920597835670 | 16c26427f96e466ca831cfa6ac1dfb4c10ea5ca9 | /Old/ArduinoLibraries_021319/libraries/BeckI2cLib/BeckI2cLib.cpp | eaff52a1f471440d5f885d0c4cd316cc195ec67e | [] | no_license | lbeck37/Arduino | 7f43fa593a83d0e8b3383376b5195ec87d9e162b | de350beb32943a56ff5ea80ae52f9868abc918a8 | refs/heads/master | 2021-10-11T23:03:50.471548 | 2021-10-09T13:00:30 | 2021-10-09T13:00:30 | 35,703,269 | 1 | 0 | null | 2020-08-31T23:34:16 | 2015-05-16T00:29:26 | G-code | UTF-8 | C++ | false | false | 6,689 | cpp | BeckI2cLib.cpp | //BeckI2cLib.cpp
#include <BeckI2cLib.h>
#include <Wire.h>
/*
//******* MPU-6050 6-axis accelerometer and gyro
const int MPU= 0x68; // I2C address of the MPU-6050
int16_t AcX, AcY, AcZ, Tmp, GyX, GyY, GyZ;
//Gyro defines
const int sXAxis = 0;
const int sYAxis = 1;
const int ... |
afc1f85a617653672412adea527952b80fe596c4 | cee50b83750498fe360fd8f30392856dbdc697ef | /삼성_SW역량테스트_기출/SM_BOJ20056_마법사_상어와_파이어볼.cpp | 179a5616034bca5159096ac31779604ed2f32a98 | [] | no_license | NanyoungKim/Coding_Test_Practice | f4c95a2e5f608d1747c59864e46e18ecaf54dde9 | e9e9c20117ccebf06ea0a300e1db8d8badecb522 | refs/heads/master | 2023-06-10T10:37:24.049012 | 2021-07-05T14:08:29 | 2021-07-05T14:08:29 | 265,776,499 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,377 | cpp | SM_BOJ20056_마법사_상어와_파이어볼.cpp | //
// SM_BOJ20056_마법사_상어와_파이어볼.cpp
// Coding_Test_Practice
//
// Created by 김난영 on 2021/04/05.
// Copyright © 2021 KimNanyoung. All rights reserved.
//
#include <iostream>
#include <vector>
#include <string.h>
#include <queue>
using namespace std;
class Ball{
public:
int r,c,m, s, d;
Ball();... |
bbad45fc74447e80d61a3c4eb742e734e334ae24 | 727a4f69396018f8db516c214fabe92e046f80ba | /Code/11028233_MeshDeformation/System.cpp | 1e372b6688eafcff143db024c03be3e455059340 | [] | no_license | aleksejleskin/MeshlessDeformation | 7aa075d5998222cc204b40a10f74cbe74e1b74c4 | 909634bcf2488f973937afc400246f2282019279 | refs/heads/master | 2021-01-02T08:14:06.464541 | 2014-08-20T00:30:05 | 2014-08-20T00:30:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,096 | cpp | System.cpp | #include "System.h"
namespace
{
System* tmpSystem = 0;
}
//Call the windows procedure before the initalise has been called
// this needs to be done so we can have the window proc private
LRESULT CALLBACK ForwardProc(HWND hwnd, UINT message, WPARAM wParam,
LPARAM lParam)
{
return tmpSystem->WndProc(hwnd, message, w... |
5e84554349fda58800977b50248336093564404d | 04d6e7e9aa214bc31399f0a5c9f45a827a73e119 | /Arduino/Sketches/waterLevelRF/waterLevelRF_RX/waterLevelRF_RX.ino | 815c388773b5c541f4b1d3c5e6b3d53e84eb9843 | [] | no_license | cbrekkeseter/workspace | 5ec7e63030b10209926abbbd0774699ac9bc3cbc | 289e193fcb62335535a016f31b81767e24ce5dbc | refs/heads/master | 2020-04-02T02:12:27.440589 | 2018-10-20T11:18:56 | 2018-10-20T11:18:56 | 153,897,257 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,328 | ino | waterLevelRF_RX.ino | //RX module on water level system
//Written By : Christoffer Brekkeseter
// 1buzzer.03.201blueLed
#include <VirtualWire.h>
/************Defines***************/
#define ledPin 13
#define buzzer 7
#define blueLed 6
#define loSensor 5
#define midSensor 4
#define highSensor ... |
1445eb60dbeaaa805168a769600f54eab8642919 | 09a74a6a65f74f8602a36982f5a52903857944cf | /threadpool.h | 692669075e6fc6392d23391c17fb9be847c911d2 | [] | no_license | YJYandHCX/cpp-static-http-server | 76d2996669d7841a3845e042350b3e553bf680ae | f6ab5542eca3e972624ca24e2651a0daed65043b | refs/heads/master | 2020-11-29T08:08:54.386626 | 2019-12-25T08:50:23 | 2019-12-25T08:50:23 | 230,066,084 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,846 | h | threadpool.h | #pragma once
#include <vector>
#include <thread>
#include <condition_variable>
#include <mutex>
#include <deque>
#include <atomic>
//#include <windows.h>
#include <iostream>
#include <unistd.h>
#include "http_req.h"
#define T HTTP_R*
using namespace std;
class ThreadPool {
public:
//ThreadPool();
... |
e40f228f815f2281579bc772576a4577570a857d | a600f7f7833a549996dc14b051e4ec56e540b7bf | /src/dashboard.h | f8948ba603b388754654a7cef2b97a0595195212 | [] | no_license | Alex-Canales/Topology-Taker | aeb2413edf398b7f84f81da516f2950d061aff50 | 49861854d2dff473c3e947fbe996ac1bcb7fd389 | refs/heads/master | 2016-09-01T14:46:59.308389 | 2016-01-08T16:38:57 | 2016-01-08T16:38:57 | 45,270,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,418 | h | dashboard.h | #ifndef _DASHBOARD_H_
#define _DASHBOARD_H_
#include <string>
#include <curl/curl.h>
// Defining error code
#define DASHBOARD_CONNECTION_ERROR -1
#define DASHBOARD_FALSE 0
#define DASHBOARD_TRUE 1
//TODO: implement error code for each function
/**
* Used to communicate to the machine.
* Because of the callback fu... |
600594bcb1daa7713205748defc87b16a59935a8 | 38a03ad3621a3b276f8e9782f6970caed438074d | /src/raytrace.cpp | 3566332d6a87c743d10296dc2249ef4f15ee30a0 | [] | no_license | bmatejek/Graphics | 8f181062b433a4d5e857aee4227aaecaecaa4092 | f84062362ff0839bd5d0f6342ca32543a94a6bfa | refs/heads/master | 2021-05-29T19:20:57.459996 | 2013-05-14T05:12:08 | 2013-05-14T05:12:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,732 | cpp | raytrace.cpp | // Source file for raytracing code
// Include files
#include "R2/R2.h"
#include "R3/R3.h"
#include "R3Scene.h"
#include "raytrace.h"
#include <limits>
using namespace std;
////////////////////////////////////////////////////////////////////////
// Create image from scene
//
// This is the main r... |
4daa2ec50b359d730282a46ebf645ced77a3cef6 | e44bbf8b00b060f30043e00f5394aa075d81ae73 | /src/DisplayBoard.cpp | 1e106ee87f23e0c7409be6d11ac7218d790055e3 | [] | no_license | jzych/LogicalImages | ddec86b73435ae58e57f5a415d0001212526239a | bd791102dcb0ebecaac0d3cc0045ee40bf3a09d1 | refs/heads/master | 2021-06-14T22:33:38.961057 | 2021-04-07T15:00:49 | 2021-04-07T15:00:49 | 182,974,596 | 0 | 0 | null | 2021-04-07T15:00:50 | 2019-04-23T08:53:52 | C++ | UTF-8 | C++ | false | false | 5,290 | cpp | DisplayBoard.cpp | #include "DisplayBoard.hpp"
#include <algorithm>
namespace
{
const char HORIZONTAL = '-';
const char VERTICAL = '|';
const char INTERSECTION = '+';
const char PADDING = ' ';
std::string drawPadding(const unsigned int width,
const char sign = PADDING);
std::string d... |
21006cd02a9d41d37be3b6ba0b70f69798935716 | 3e410c5ef45cf03f979845d69207f0d11076350c | /Gen1.hpp | fd0a7ba497ec598adf331d96a282f8b6c7fc33df | [] | no_license | TheSpiritXIII/PokeCPP | dbb737e4871b98ba3ab0886e69b07fa3283516e0 | eacbcac4f8f3bcea2832236f4151569086cc8b55 | refs/heads/master | 2016-09-03T06:22:29.551106 | 2014-11-22T01:36:37 | 2014-11-22T01:36:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,250 | hpp | Gen1.hpp | /*
* Copyright (c) 2014 Daniel Hrabovcak
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* This prog... |
9924ffd7a0d3d6a2ab2f12203b4a9a670e826db3 | 22f57701df31b3182f3bcb83da729ecc584f8fb6 | /December-21/c++_MaddyDinesh_currencyconvertor.cpp | 3a9c3014f3d8695d4ecab4ee8a6beb9056e88591 | [] | no_license | Prashant-Bharaj/A-December-of-Algorithms | e88640c711abbe2e6cac71cb4652dac243984484 | 7bbd56572f4ddc9648e90615ee810765544c56e4 | refs/heads/master | 2023-08-05T15:37:20.362561 | 2021-09-19T05:51:53 | 2021-09-19T05:51:53 | 287,055,360 | 0 | 0 | null | 2020-08-12T15:53:05 | 2020-08-12T15:53:04 | null | UTF-8 | C++ | false | false | 835 | cpp | c++_MaddyDinesh_currencyconvertor.cpp | #include <iostream>
using namespace std;
int main()
{
// 1$ =.72 euro, 1$=0.60gbp, 1$ = 102.15 yen, 1$ = 1.10 CAD
float AMOUNT;
cout<<"Enter the amount in Dollar($):- ";
cin>>AMOUNT;
int select;
cout<<" Enter 1 to convert the amount to EURO \n Enter 2 to convert the amount to GBP \n ... |
f9ba9404ddf63354ab4935c22b14b7f23f97dddf | fa594a758b73fd036ba0d047c91907d07c7b06b4 | /ESP32_LCD_screen/ESP32_LCD_screen.ino | 9d5442ba4425a704e1843a5c5ac3e17f64d6ac21 | [] | no_license | RiverSchenck/Development | 029e87b526ec17958bad351e246663326987bb12 | 0a84c9edec508ce58a376673ad0cb0b0738aaf71 | refs/heads/master | 2021-12-10T22:04:05.645131 | 2021-12-01T18:18:34 | 2021-12-01T18:18:34 | 143,210,081 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 396 | ino | ESP32_LCD_screen.ino | #include<LiquidCrystal.h>
//VSS GRND
//VDD +
//V0 variable resistor (contrast)
//RS pin 22
//RW GRND
//Enable pin 23
//D4 pin 5
//D5 pin 18
//D6 pin 19
//D7 pin 21
//A 220 resistor (led)
//K led GRND
LiquidCrystal lcd(22, 23, 5, 18, 19, 21);
void setup() {
lcd.begin(16, 2);
lcd.clear();
lcd.print("2x16 LCD Dis... |
5b2d9313dd368ab86d22e7ddac5a26d26cdbee10 | 5bef53b0dc9539a4953919f75fde1f0ebd20e9fb | /CF/4D.cpp | 1591fcf1b831bcc50a156da4a3c941fa81539550 | [] | no_license | atrin-hojjat/CompetetiveProgramingCodes | 54c8b94092f7acf40d379e42e1f2c0fe8dab9b32 | 6a02071c3869b8e7cd873ddf7a3a2d678aec6d91 | refs/heads/master | 2020-11-25T10:51:23.200000 | 2020-10-08T11:12:09 | 2020-10-08T11:12:09 | 228,626,397 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,971 | cpp | 4D.cpp | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 5000 + 500 + 50 + 5;
struct Envs {
int h, w;
int I;
bool ok = true;
} envs[MAXN];
const int Max = 1e6 + 6.66;
queue<pair<int, pair<int, int>>> seg_queue;
pair<int, int> seg[Max << 1];
int prv[Max];
void init_segment() {
for(int i = 0; i < (Max <<... |
549593a26bc1f88746ee5164acc80821e8258924 | abda34c1a06cde902690b463933cd78613590b31 | /erp_Hotel_GFP/ajouter_entretien_mach.h | 283934d0e0028b2530586ef86da9c85e85bfb46b | [] | no_license | awfeequdng/erp_Hotel_GFP | ed01926269515d158040f24d8b19c32faf1d515b | e6fa2644f58d5e114d82a7b13395ffec04189eeb | refs/heads/master | 2021-01-23T06:01:38.312101 | 2016-10-24T16:43:05 | 2016-10-24T16:43:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 740 | h | ajouter_entretien_mach.h | #ifndef AJOUTER_ENTRETIEN_MACH_H
#define AJOUTER_ENTRETIEN_MACH_H
#include <QDialog>
namespace Ui {
class ajouter_entretien_mach;
}
class ajouter_entretien_mach : public QDialog
{
Q_OBJECT
public:
virtual void combomachines();
virtual void combotech();
explicit ajouter_entretien_mach(QWidget *pare... |
5d88c83310f041de901b606113feb978616692b1 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5688567749672960_0/C++/jumpwmk/counterculture.cpp | b85dedebae3b867f1ddbffd777305a6087dade6d | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 674 | cpp | counterculture.cpp | #include <stdio.h>
#include <string.h>
#include <algorithm>
using namespace std;
char x[100];
int mic[1000100];
int main()
{
int q,j,k,len,cnt;
long long i,n,tmp=0;
// freopen("test.in","r",stdin);
// freopen("test.out","w",stdout);
scanf("%d",&q);
for(k=1;k<=q;k++)
{
cnt=0;
scanf("%ll... |
1492d14af9ffe1c93b240e570709a2316ae056fe | ef5ee8466039bc7ba05633e4d3b2b00d8e96e6d5 | /final/final_final_year_project_common1.ino | 0598a79c40d4c3903c0ed600b879602f3bc035da | [] | no_license | noxiddd/Sound_Burst_Detection | 95d82ace515d2b50cf81f6f464a77aa70c58453e | fc68cfc3e62cc429d689881d15c223ee632676c9 | refs/heads/master | 2020-06-29T12:20:48.665865 | 2017-04-26T08:59:37 | 2017-04-26T08:59:37 | 74,427,689 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,065 | ino | final_final_year_project_common1.ino | #define LIN_OUT8 1//use the lin out function
#define FHT_N 32 // set to 32 point fht///define before fht.h
#include <FHT.h>
/*
This code runs on the common devices(ones with only nrf24l01+)
It sends data to main module via nrf with distance info
for now it will only detect impulse sounds(clap)
*/
//#include <fhtC... |
15bef9aa24cb6bf39ba8d1e389524f62acf411f0 | 14cd82ceb0ed01235ac8c7208219fc4df7a7b1d2 | /Introduction to Progamming/Lab Projects/lab12/secondDigit.cpp | 9563d54a64d1fd4588ec8e23b8d61eaa4848e8fd | [] | no_license | OliverAkhtar/Projects | 947000000e1ce1d653c58b705143b6cbe1cf4a3b | c2bcfa51886de155843aa79a4d6968d6ad0bf641 | refs/heads/master | 2021-01-10T15:55:45.933009 | 2017-11-15T21:12:22 | 2017-11-15T21:12:22 | 49,913,736 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 363 | cpp | secondDigit.cpp | /*This program prints the 2 digit of a user inputted postive integer of at least 3 digits.*/
#include <iostream>
using namespace std;
int main()
{
int n;
cout << "Enter a positive integer with at least 3 digits: ";
cin >> n;
if (n < 1) return 0;
if (n <100) return 0;
while (n > 100)
n = n/10;
n = n%10;
cout << ... |
cb1c929f2519a63e5808026bebfb4189076a0991 | 41a958a3a0c14646b4a9a5c5187f96aadd61ff2b | /src/main.cpp | 1b8493fc69fc327b48b7ed5351c157939454ebab | [] | no_license | ashrasmun/vector-vs-list | fb933c4d5cdf9ef0a79f45cc606e6cce2de2fde0 | 8d93de632513f7c46cc42213d519a23366dc821c | refs/heads/master | 2020-06-04T15:25:48.981226 | 2019-06-29T20:38:12 | 2019-06-29T20:38:12 | 192,081,150 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,347 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <list>
#include <chrono>
#include <map>
// Complex class definition
class SomeComplexClass;
class Something
{
public:
Something() {}
private:
std::string complexStr;
std::map<
std::pair<
std::string,
int>,
std::map<
... |
f6f41e6b4136059aad1fa9aa8215278ccf4d3587 | 1627fcbfee56cf762b4d5d0a275e74e5eba93560 | /lunarlady/SoundSystem.cpp | d18fbf6629784b3f080d2ad36836e3efe9ed82f3 | [
"Zlib",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | madeso/infection-survivors | c47ff50092d4cdd7b0c2976bb0d49a8aee2a128a | 654fc5405dcecccaa7e54f1fdbfec379e0c185da | refs/heads/master | 2021-01-18T13:58:45.692267 | 2014-09-22T17:38:12 | 2014-09-22T17:38:12 | 24,337,330 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,123 | cpp | SoundSystem.cpp | #include "fmod.hpp"
#include "fmod_errors.h"
#include "sgl/sgl_Assert.hpp"
#include "lunarlady/System.hpp"
#include "lunarlady/Game.hpp"
#include "lunarlady/Log.hpp"
#include "lunarlady/Script.hpp"
#include "lunarlady/File.hpp"
#include "lunarlady/Xml.hpp"
#include "lunarlady/StringUtils.hpp"
#include "lunarlady/Disp... |
3fc3e363beda1aadcd13e4d94eae15f7548c231e | 37c7b76656aa90b23b7ce643d985ad5c4cef30ab | /Arrays/Group multiple occurrence of array elements ordered by first occurrence.cpp | 318ccca5baadb9d7cdca80ea3ffcb0c259ceca42 | [] | no_license | abhiramdapke/Independent-projects | 82695397344aa8f0098ec1682abdb667d314c8a1 | 6e8f36e1b9dc8dfbea12c38c3ab85a7d961d3c0a | refs/heads/master | 2020-12-19T08:42:54.904218 | 2020-08-12T20:50:09 | 2020-08-12T20:50:09 | 235,684,714 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 684 | cpp | Group multiple occurrence of array elements ordered by first occurrence.cpp | #include <iostream>
#include <vector>
using namespace std;
int main()
{
int arr[] = {1,1,2,5,3,5,6,1,2,3,4,4};
int n = sizeof(arr)/sizeof(arr[0]);
bool *visited = new bool[n];
for (int i=0; i<n; i++)
visited[i] = false;
for (int i=0; i<n; i++)
{
... |
f1712ce20f86c7f9c9e46ad345614e9d1054c308 | 4649fba2cf0ca2834eba97a84ee40e67f97f4b4c | /examples/mbew-example-video-osg.cpp | d027893da221fd7b4b157038aaa35723f702f531 | [] | no_license | AlphaPixel/mbew | 90adb911cf729ed8c852f3cdf81e546dc6283c34 | aaf054c1dd0a2571156549753727605a5a60baaf | refs/heads/master | 2021-01-12T04:19:10.698489 | 2016-12-28T22:58:39 | 2016-12-28T22:58:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,022 | cpp | mbew-example-video-osg.cpp | #include "mbew.h"
#include <osg/Math>
#include <osg/Geometry>
#include <osg/TextureRectangle>
#include <osg/Geode>
#include <osg/BlendFunc>
#include <osgViewer/Viewer>
#include <osgViewer/ViewerEventHandlers>
#include <iostream>
class MBEWUpdateCallback: public osg::Drawable::UpdateCallback {
public:
MBEWUpdateCall... |
5d672cf76c2539463eb4d732a571bfbd4d922928 | 3d4776f1f1f44420a4deeaed408a6495fae6af13 | /src/window.cpp | 574220743ad1f3ba1602debab546107920fe3e32 | [] | no_license | QuantScientist3/RT-Raytracing | 8785ba6f82295484a7328e5b1356e9609aad9492 | e6287fb7f15b3b79186150b2687eeadfe3c69a8d | refs/heads/master | 2021-01-20T21:46:19.370282 | 2014-08-07T20:17:29 | 2014-08-07T20:17:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,037 | cpp | window.cpp | #include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <unistd.h>
#ifdef CUDA_FOUND
#include "devices/cudadevice.h"
#endif /* CUDA_FOUND */
#include "devices/cpudevice.h"
#include "devices/opencl.h"
#include "util/camera.h"
#include "scene.h"
#include "session.h"
#define WIDTH 640
#define HEIGHT 480
namespace {
GLF... |
c7c2e3b453cfffa40a5fa55de660e8de54de1312 | f2cce248057bb2f78ff53c47aaca74da04dd04bb | /ProjAlocaDinamicaMem/AlocaDinamicaMem.cpp | e25e5dd7eb835b67c07b81aeeddc931296b6b750 | [] | no_license | DEVanderAJR/dev-c | 69864c9e5da5baa05a2b435d4bfbc227e5303ca8 | 2a6c8e041e00effd856a6697c15a2acee507484a | refs/heads/master | 2020-05-18T04:01:39.147651 | 2019-04-30T00:19:48 | 2019-04-30T00:19:48 | 184,162,565 | 1 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,426 | cpp | AlocaDinamicaMem.cpp | /* Exemplo de Alocação dinâmica de Memória - Escrever um program para o conjunto de númros inteiros( o nº 0 indica fim
de entradfa de dados e não deve ser considerado). Ao final , imprimir todos
os números lidos.*/
#include <stdlib.h>
#include <iostream>
#include <windows.h>
using namespace std;
void step(){
Sleep(5... |
1776288a4d1522df209cca254d948e68e788234d | c4603dd6010b0f1121f2eefcb6318e6acf35e659 | /Server/RefreshWalkableTilesAction.cpp | 0c9865c7ccc8c116a0ec7d179cfb23438b989311 | [
"MIT"
] | permissive | nandos13/NetworkingGame | 8aef7ddf62844ffb13081c70726a3a68462d76c3 | d15a307be4e48e84d9466ab2300f659f940df08e | refs/heads/master | 2021-01-18T15:27:20.746898 | 2017-06-07T02:53:31 | 2017-06-07T02:53:31 | 86,654,883 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,037 | cpp | RefreshWalkableTilesAction.cpp | #include "RefreshWalkableTilesAction.h"
#include "Character.h"
#include "Game.h"
void RefreshWalkableTilesAction::_Execute(float dTime)
{
m_owner->Set1PointWalkableTiles(m_1PTileList);
m_owner->Set2PointWalkableTiles(m_2PTileList);
// Complete action
CompleteSelf();
}
RefreshWalkableTilesAction::RefreshWalkabl... |
c073656c73cbc2e6bd0ffc083549c6a24c76eca5 | 5e9fcc3cef85371d2dffe7de1a5d115efce0a817 | /Coursera c++/course 3/Macros Update field.hpp | a5be7425a904c17420d4239f74c0051115b9a549 | [] | no_license | ekaterin17/Coursera-cpp | 8b754077109b931376afced3371fecf1dd12f444 | 1cf98a7ee58f3c9a434cc87369fc0e1e3e8f2eb2 | refs/heads/master | 2023-02-08T17:10:17.534093 | 2020-01-26T13:14:53 | 2020-01-26T13:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | hpp | Macros Update field.hpp | //
// Macros Update field.hpp
// Coursera c++
//
// Created by Екатерина Кузина on 24/07/2019.
// Copyright © 2019 Екатерина Кузина. All rights reserved.
//
#ifndef Macros_Update_field_hpp
#define Macros_Update_field_hpp
#include <stdio.h>
#endif /* Macros_Update_field_hpp */
|
6a4a2f79a1a0443c0021c461cab3c3225ebe709d | 5dc4d4d3bd209b0d7e54c383b83f725ab2ca97fd | /Codeforces/1325/D.cpp | daa1c4bd22c307d9728a52df04ae11f495addd48 | [
"MIT"
] | permissive | mohit200008/CodeBank | 3f599e0d0be4d472666a4e754c4578d440251677 | 061f3c1c7c61370fd2c41fc1d76262d403d16f34 | refs/heads/main | 2023-09-03T02:38:21.935473 | 2021-10-22T08:32:43 | 2021-10-22T08:32:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,442 | cpp | D.cpp | /*
"Won't stop until I'm phenomenal."
- Phenomenal, Eminem
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define ff first
#define Shazam ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define ss second
#define all(c) c.begin(),c.end()
#define endl "\n"
#define test() int... |
91b1bda92ba24062d45d12c7c325ff79f40dd5ff | c8db8e55473f2622d81bdd6449c033638014197a | /ElementalStats.cpp | 9ceb849fa43ca33d5b4446808b35fc9eccd492f0 | [] | no_license | rjlacanlaled/Elemental-Battle | 4fba19d6a6fb4d002839ed37db1840a1d1cdea96 | 41eb72186a9c2967e704c31c803e2391b9e83d11 | refs/heads/main | 2023-03-27T10:48:24.524668 | 2021-03-26T12:02:37 | 2021-03-26T12:02:37 | 351,767,660 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,816 | cpp | ElementalStats.cpp | //
// ElementalStats.cpp
// Phase 1 - Practical - ElementalApp
//
// Created by RJ Lacanlale on 11/28/20.
// Copyright © 2020 RJ Lacanlale. All rights reserved.
//
#include "ElementalStats.h"
#include "Random.h"
#include <string>
using namespace std;
// Global variables needed by some methods
int hpLimit = 999;
... |
339a8015702ded62eb4c3e30dcbe9273bc246b9d | 85fb629bca868126c7583947516f56aa13124cfc | /inclassdef.cpp | 682d563930a4412f0db0ad058e5228ad11164497 | [] | no_license | yin8086/cpp11 | 207e64e7e6dceddb7fbecd3b0a272c075969e2b7 | a5e9175e41b09b2db672cc37ac9ee3daefbc17a1 | refs/heads/master | 2021-01-22T04:40:28.748070 | 2013-02-26T03:47:30 | 2013-02-26T03:47:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | cpp | inclassdef.cpp | #include<iostream>
using namespace std;
struct Sales_data
{
int mema=4;
float memb{4.34};
Sales_data()=default;
Sales_data(int a, float b):mema(a),memb(b){}
};
int main()
{
Sales_data sa;
Sales_data sb(5,3.55);
cout<<sa.mema<<' '<<sa.memb<<endl;
cout<<sb.mema<<' '<<sb.memb<<endl;
} |
c5690ce28c7dd759342228359c42f6ed8297781a | 45bf672454afe49b3a370e2a10f6f263837f61fd | /LED8/LED8.ino | 70d2f6c7c2a772e0af807162e3b9410e169e877a | [] | no_license | BCRCO/arduino-projects-collection-a | 14665c98cb932f85f221e46f67a66dcc0627ad17 | 1cb197a6b5045a0e379ef1fced308da5e4d99611 | refs/heads/main | 2023-04-19T11:55:40.011335 | 2021-05-07T21:47:20 | 2021-05-07T21:47:20 | 365,358,996 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 393 | ino | LED8.ino | //BCR
int LP[] = {2, 3, 4, 5, 6, 7, 8, 9};
int OL = 7;
void setup() {
for (int i = 0; i < 8; i++) {
pinMode(LP[i], OUTPUT);
}
}
void loop() {
OAT();
}
void OAT() {
int DT = 100;
for (int i = 0; i <= 7; i ++ ) {
int OL = i - 1;
if (i == 0) {
OL = 7;
}
digitalWrite(... |
31ec033f402554633c1309196570afeaa63f0367 | 0d906075ab29e3e0d48f985007db6d1d2e78caf9 | /Test/testupnp/UPNPDevInfo.cpp | 561521c33bd6ca706f18619c71563e83a78b1e36 | [] | no_license | chenyue0102/mytestchenyue | b3010bf84f46f8b285c3a4bfe926b63bcf5ecb51 | ce4dc403dcbbaee513150c823f3a26501ef1ff55 | refs/heads/master | 2023-08-30T23:31:33.419958 | 2023-08-25T09:53:05 | 2023-08-25T09:53:05 | 32,462,298 | 0 | 0 | null | 2023-07-20T12:15:34 | 2015-03-18T14:03:46 | C++ | UTF-8 | C++ | false | false | 6,899 | cpp | UPNPDevInfo.cpp | #include "UPNPDevInfo.h"
#include <regex>
#include <assert.h>
extern "C" {
#include "miniupnpc.h"
#include "miniwget.h"
}
#include "UPNPProtocolSerialize.h"
#include "UPNPServiceAVTransport.h"
#include "UPNPServiceConnectionManager.h"
#include "UPNPServiceRenderingControl.h"
#include "UPNPServiceKaiShu.h"
UPNPDevInfo... |
78470e05d8828de43aa62509f1ba88b2465e06a1 | 6c66f928a42f891a8b585015b2f71e44ac7b9f8d | /TutIntV30/Act1DosBB.h | c0e3dc32907ca380a9d80ab4197fdfbc68fc6c02 | [] | no_license | FelipeSegovia/TutInt | 5857e20d3aa0b5c10a61a788c2f73d3bde888c75 | 7b30644d2f9b0ca0f8901da4e70d7b2ff607c53a | refs/heads/master | 2020-03-17T19:10:19.103492 | 2018-05-17T17:53:22 | 2018-05-17T17:53:22 | 133,848,477 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 37,227 | h | Act1DosBB.h | #pragma once
#include "BaseDeDatos.h"
#include "AgenteControlador.h"
#include "TiempoMI.h"
#include "TiempoGUI.h"
namespace TutIntV30 {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using... |
d65a66bbb29854bee78db62512f7f8e9215f7194 | 4f28872d770b538d0d592ef350f31dedf446491e | /@HC_DAYZ/addons/dayz_code/Configs/CfgVehicles.hpp | 1024df1af358edc103a98755661d30b0abae6662 | [] | no_license | SurvivalOperations/HardCorps | 5e28f62f395df07ef960d9bae323f7ccea8f00bf | 2237cec52003060599331f846849434be8d4d1b0 | refs/heads/master | 2021-01-10T22:22:33.298171 | 2013-12-11T19:50:27 | 2013-12-11T19:50:27 | 13,457,768 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,912 | hpp | CfgVehicles.hpp | class CfgVehicles {
class AllVehicles;
class Air : AllVehicles
{
class NewTurret;
class ViewPilot;
class AnimationSources;
};
class Helicopter : Air
{
class HitPoints;
class Turrets
{
class MainTurret: NewTurret
{
class Turrets;
class ViewOptics;
... |
f3895bd91af038643c6fa6c0c7f0835270a7a549 | dc7efcff1991aa6a0e18bfa61dd600998b1e8ffe | /src/renderer/GameTexture.cpp | c8e6a5679af8f26df40cde86021f02339e0557b9 | [
"MIT"
] | permissive | suijingfeng/bsp_vulkan | ce0ea68ec5dd2eef18ce512a226d4c8d1c80f344 | 8f96b164b30d6860e2a2861e1809bf693f0c8de0 | refs/heads/master | 2020-03-18T04:19:26.149795 | 2018-05-21T21:47:27 | 2018-05-21T21:47:27 | 134,281,827 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,476 | cpp | GameTexture.cpp | #include "RenderContext.hpp"
#include "GameTexture.hpp"
#include "stb_image.h"
extern RenderContext g_renderContext;
GameTexture::GameTexture(const char *filename)
{
VkFormatProperties fp = {};
vkGetPhysicalDeviceFormatProperties(g_renderContext.device.physical, VK_FORMAT_R8G8B8_UNORM, &fp);
... |
9eacf9ab565752bb289d42ae76f8cff341057af3 | f48e59cf18c2aa9d4db664e2db1617b8026ab7cb | /DemxEngine/Entity.cpp | 98f2663f586a27d9c44280da7fd13dd432df1c62 | [] | no_license | demian-floreani/DemxEngine | cade252fec9aabc4fbc56f5606aea3668ea5012c | 4799e87427ac9148f97d84d9b4b36ea54289c610 | refs/heads/master | 2020-05-17T01:22:24.615089 | 2019-05-18T10:08:16 | 2019-05-18T10:08:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,568 | cpp | Entity.cpp | #include "stdafx.h"
#include "Shader.h"
#include "Entity.h"
/**
* @brief Constructor for entity
*
* @author Demian Floreani
*
* @param[in] drawType How to draw the entity. GL_TRIANGLES is the default method.
*
* @return None
*/
Demx::Entity::Entity( GLuint drawType )
{
VAO = 0;
IB = 0;
distance = 0.0f;
hasTrans... |
4253f56ac8b2c3c54960e915715844a52cdc931e | c91125a66de73a62994e371c5fc65c0e4890349a | /Week_14/6-5/boolean_retrieval/BoolRe.hpp | 67a014bd25ec4a368a137d782c044ba93c88157e | [] | no_license | darthvade/PersonalExerciseNew | f65a4188a61ac1ce14ed79a3fcfb798e3228ee19 | 44b04e032afa0a66664154c8abdb9d73ee19791a | refs/heads/master | 2016-08-05T03:54:56.991079 | 2014-12-22T14:12:39 | 2014-12-22T14:12:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,753 | hpp | BoolRe.hpp | /*
* 实现布尔检索查询(AND、OR、AND_NOT)
*/
#include <vector>
namespace BoolRe {
//AND运算
std::vector<int> Merge_And(const std::vector<int> &va, const std::vector<int> &vb) {
std::vector<int> result;
auto itera = va.begin();
auto iterb = vb.begin();
while(itera != va.end() && iterb != vb.end()) {
if(*itera == *ite... |
126ffb86ef71116f114ed4b8b043bb145288b1b7 | d770cb8c7ebf61c034414a16c0db69b017541dcd | /A. Colorful Stones (Simplified Edition)/main.cpp | 84877ca061909e9a67a2ff6f67a6659cd4ea0d6d | [] | no_license | omarsaidkamel/Problem-Solving | f2ceca69b2b3e47dc13227670b5262a2af19bcc1 | ac09c0d18f057de55a3218d33f6743bf5d33ad58 | refs/heads/main | 2023-06-21T18:43:06.741935 | 2021-07-21T09:04:02 | 2021-07-21T09:04:02 | 386,615,312 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 218 | cpp | main.cpp | #include <iostream>
using namespace std;
string s,m;int x;
int main()
{
cin>>s>>m;
for(int i=0;i<m.size();i++)
{
if(s[x]==m[i])
{x++;}
}
cout<<x+1;
return 0;
}
|
c53f3eedbd2dcd7c0da6034fb4aa7945553f8d33 | 8d3753fb220a49ef19c8f4448ffdfbcd3dbdfe4f | /Andromeda/Graphics/Camera3d.cpp | cf602afb8c37f552af81d05c9e639d1a5a4e95ee | [
"MIT"
] | permissive | DrakonPL/Andromeda-Lib | b504b8016351eab20ac06d00bd8a6d1bcbbe690f | 47cd3b74a736b21050222ef57c45e326304e85a6 | refs/heads/master | 2023-07-10T16:43:09.807545 | 2021-08-24T12:23:49 | 2021-08-24T12:23:49 | 164,689,145 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,625 | cpp | Camera3d.cpp | #include <Andromeda/Graphics/Camera3d.h>
namespace Andromeda
{
namespace Graphics
{
Camera3d::Camera3d(glm::vec3 position = glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3 up = glm::vec3(0.0f, 1.0f, 0.0f), float yaw = -90.0f, float pitch = 0.0f) : Front(glm::vec3(0.0f, 0.0f, -1.0f)), MovementSpeed(3.0f), MouseSensitivity(0... |
a7a30697b36539efb539c55e583847de962c7c18 | 4e6d31fa86b4ac8dc95a1de8eb590aeedff46745 | /Binary Trees/preorder_traversal_recursive.cpp | f6021d34d20f4e44d590d36cae862a20dfa7beba | [] | no_license | nikitagalayda/cpp-practice | a160ac9055c7a570c25081857fa775c0131211f8 | b84d79b87ab9f648532a6c7cc2abeea8a4b8020e | refs/heads/master | 2020-04-20T19:56:22.926809 | 2019-04-14T11:15:58 | 2019-04-14T11:15:58 | 169,062,747 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 776 | cpp | preorder_traversal_recursive.cpp | /*
Description:
Pre-order traversal of a binary tree.
Time Complexity:
O(N), where N is the number of nodes in the tree, and each node of the tree is visited once.
*/
/*
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int... |
51a5c38a6e8c6d09cd6b38fa357dfd23a244ee62 | 9ce6d8295e8e5d09c14f6dc44c926137aabd9cf9 | /mbed/mbed_I2C_modules communication/main.cpp | 222d2b0d03b80e1fc52337e5c6d263efcbc60dd0 | [] | no_license | anwar-hegazy/ARM | 9be11c81e1f2c751540e4e618f39f1d867067708 | c8708a92b2650ceb22a1e537ee6840509066b74e | refs/heads/master | 2021-01-20T04:54:22.090740 | 2016-02-28T19:53:13 | 2016-02-28T19:53:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,710 | cpp | main.cpp | #include "mbed.h"
//#include <math.h>
#include "DRV8830.h" // Include the MiniMoto library
#include "TMP102.h" // Include Temperature Sensor library
#include "PCF8574.h" // Include I/O Expander library
#include "PCF8591.h" // Include 8-bit A/D Converter library (4 channel)
// SDA, SCL for LPC1768
#define SDA1 ... |
fcee47dd842675380f8ce7cca004e60262e08c20 | 0ad1e75df68fb14976c79c8921249dcd6e74f967 | /sadfsdfsdfsf.cpp | d9383ad29a497bc76d0557466d32e16ae817545e | [] | no_license | variablemayank/competetive-programming-codes | 9010d215832f4937735d6b35b1df35df0f8a59e6 | 71bbc70049089fcc24444471dd4504b1d29c371f | refs/heads/master | 2021-09-06T04:17:29.052221 | 2018-02-02T08:57:56 | 2018-02-02T08:57:56 | 119,955,414 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,773 | cpp | sadfsdfsdfsf.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
string s;
cin>>s;
int flag ;
if(s=="Even") flag =1;
else flag =2;
int n;
cin>>n;
int arr[17];
for(int i=1;i<=n;i++) cin>>arr[i];
... |
5ba16b9978f87f998a7638b96cf15765abbe8cb2 | 97ada4553a0e32f7920031591da9d9b2c49fec17 | /BullCowGame/FBullCowGame.cpp | d49a468d6538ac1dbe29b6383ceb295b9a968b9b | [] | no_license | andreyfaraponov/BullsAndCowsGame | e83d1d6bff2543db0f854f304f1cc2048fe0a8d2 | 6454b615cee64591b77b109bc13d9f8b328221bc | refs/heads/master | 2020-12-15T00:04:05.303905 | 2020-01-20T20:12:20 | 2020-01-20T20:12:20 | 234,919,893 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,301 | cpp | FBullCowGame.cpp | #include "FBullCowGame.h"
#include <map>
#define TMap std::map
int32 FBullCowGame::GetMaxTries() const { return _maxTries; }
int32 FBullCowGame::GetCurrentTry() const { return _currentTry; }
int32 FBullCowGame::GetHiddenWordLength() const {return hiddenWord.length();}
bool FBullCowGame::IsGameWon() const { re... |
79d6a5b358ccbf6b162f707cd8fad7f1cbe773b0 | 119c1dd2b61764210064511d8ab5be252b8b7c8f | /450 DSA Questions/06 Binary Trees/3CheckForBalancedTree.cpp | 35ef2e2c9551ed7914c3b518e71f84282b6b8dd1 | [] | no_license | jasveen18/CP-krle-placement-lag-jayegi | 2557309a9dfc4feb01dbdc867a67f1ccc4f10868 | 8db92e5c3a7d08edfc34d8223af6c080aa3e4721 | refs/heads/main | 2023-07-29T09:39:36.270193 | 2021-09-03T15:19:22 | 2021-09-03T15:19:22 | 430,816,168 | 1 | 1 | null | 2021-11-22T18:10:13 | 2021-11-22T18:10:13 | null | UTF-8 | C++ | false | false | 675 | cpp | 3CheckForBalancedTree.cpp | /******************************************
* AUTHOR : ARPIT *
* NICK : arpitfalcon *
* INSTITUTION : BIT MESRA *
******************************************/
// Problem Statement - Function to check whether a binary tree is balanced or not.
int heightOfTree(Node* root, bool &balance) {
if (root == NULL)
re... |
9947a8ef432b0711567b255f5696fcef340c069d | b6d5ff41a3d642b98f4062cd5304f4ac1c646a9e | /tree.cpp | bea344dac8398c0fc0fc25b28c5571d94a438cf2 | [] | no_license | tyralyn/cloaked-wookie | f7ee13d9ce8e2f1b1b1cdea20906e1b5666ace80 | dd0f9a1f58fc3e1aa8869db4db5f7d01534d9940 | refs/heads/master | 2021-01-10T19:48:46.266335 | 2014-02-09T08:23:30 | 2014-02-09T08:23:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,754 | cpp | tree.cpp | #include "tree.h"
tree::tree(int n) {
numEdges = n-1;
edgeCount = 0;
edges = new edge*[numEdges];
}
tree::~tree() {
for (int i = 0; i<numEdges-1; i++)
delete edges[i];
}
void tree::addEdge(edge* e) {
edges[edgeCount]=e;
e->v1->inTree = true;//!e->v1->inTree;
e->v2->inTree = true;//!e->v2->inTree;
edgeCoun... |
3658a422883589f32cc66a088d7c0a07d0cefecd | bdbe2f10d1148db97143d2dedefff177666d36d9 | /sipXsqa/include/sqa/sqaclient.h | 77d3ea16bef5b8588c78078c96b0813f1274239e | [] | no_license | sipXcom/sipxecs | 8af5dabc8814d977b9608329942f68f6ea92ff8a | fa1a46c0ec298cbc198d71e18592a0f8386019d6 | refs/heads/release-21.04-centos7 | 2023-01-28T21:07:21.293495 | 2021-10-14T12:54:41 | 2021-10-14T12:54:41 | 30,837,643 | 36 | 114 | null | 2023-01-10T10:33:38 | 2015-02-15T18:48:43 | C++ | UTF-8 | C++ | false | false | 28,161 | h | sqaclient.h | /*
* Copyright (c) eZuce, Inc. All rights reserved.
* Contributed to SIPfoundry under a Contributor Agreement
*
* This software is free software; you can redistribute it and/or modify it under
* the terms of the Affero General Public License (AGPL) as published by the
* Free Software Foundation; either version 3 ... |
57ef75a9d53e5f5a1b52e21fc9e9f6474fd2cdb8 | 9f48878caa37ac5f2ccf938fc476efa47c89c644 | /tests/Unit/Framework/SetupLocalPythonEnvironment.cpp | 33b81a002f3c85c3e280d0a71be08091ad6acb51 | [
"MIT"
] | permissive | sxs-collaboration/spectre | 34f7733ab4c75dbca2f432028145fed110c9ef24 | 96f573cf158201f712da2bfb3378edf497a35a0d | refs/heads/develop | 2023-08-19T11:18:18.465609 | 2023-08-19T04:24:25 | 2023-08-19T04:24:25 | 87,570,510 | 149 | 190 | NOASSERTION | 2023-09-14T20:10:35 | 2017-04-07T17:28:20 | C++ | UTF-8 | C++ | false | false | 3,215 | cpp | SetupLocalPythonEnvironment.cpp | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include <boost/preprocessor.hpp>
#include <codecvt> // IWYU pragma: keep
#include <locale> // IWYU pragma: keep
#include <string>
#include <vector>
#ifndef PY_ARRAY_UNIQUE_SYMBOL
#define PY_ARRAY_UNIQUE_SYMBOL SPECTRE_PY_API
#endif
#define NPY... |
6e249c63532cd21644f747d5cf896e50d293342f | 88ee3a44b4977d67dfb0699471bfbcf8c1213356 | /tp2/src/backend-multi/RWLock.cpp | 522958295a5331204d0e2825409d6e8db98f0424 | [] | no_license | fbeuter/os | 12918856c3d1e94a4fcb9c898bc3e43d6ffd0744 | 4b75a80949a103bd8c9ebee1108da43abfc5c23c | refs/heads/master | 2021-05-31T09:31:08.728417 | 2015-11-05T23:52:47 | 2015-11-05T23:52:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,878 | cpp | RWLock.cpp | #include "RWLock.h"
/* IMPORTANTE: Se brinda una implementación básica del Read-Write Locks
que hace uso de la implementación provista por pthreads. Está dada para
que puedan utilizarla durante la adaptación del backend de mono a multi
jugador de modo de poder concentrarse en la resolución de un problema
a la vez. Una... |
4c3e7fba6beea2788d15b02859c2f4c47c8521de | 6ff16eb5530dfbf1828fa5905c448d913336d895 | /CIS17AFinal/CSC17A_Final/final1/main.cpp | db84b84f15ab99a8257caa75b2e3bc16cae2275a | [] | no_license | dharo/HaroDavid_CSC17A_48130 | 067b08a4560fd808967fec8667a2a27d57bd642e | dbd8beb1e8f5f26a80b36ded26570f64c6336364 | refs/heads/master | 2016-09-10T17:58:42.957506 | 2014-12-13T01:00:24 | 2014-12-13T01:00:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 626 | cpp | main.cpp | /* main.cpp
Author: davidharo
Final_Prob1
*/
//Libraries
#include <iostream>
#include "Prob1Random.h"
using namespace std;
//Function Prototypes
//execute main
int main () {
unsigned char n=5;
unsigned char rndseq[]={16,34,57,79,144};
Prob1Random a(n,rndseq);
int ntimes=100000;
srand(time(0))... |
cd3897d362dbb89919db416bf1e9728e82c59ef0 | 872770c5323aa17120f2f708a1f0be09e663c9a8 | /Elastos/Framework/Droid/eco/inc/core/appwidget/CAppWidgetManager.h | be790c63f360b10345a48ab2ddf127be8b91fea0 | [] | no_license | xianjimli/Elastos | 76a12b58db23dbf32ecbcefdaf6179510362dd21 | f9f019d266a7e685544596b365cfbc05bda9cb70 | refs/heads/master | 2021-01-11T08:26:17.180908 | 2013-08-21T02:31:17 | 2013-08-21T02:31:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,592 | h | CAppWidgetManager.h |
#ifndef __CAPPWIDGETMANAGER_H__
#define __CAPPWIDGETMANAGER_H__
#include "_CAppWidgetManager.h"
#include "ext/frameworkdef.h"
#include <elastos/AutoPtr.h>
#include <elastos/Mutex.h>
#include <elastos/HashMap.h>
_ELASTOS_NAMESPACE_BEGIN
template<> struct Hash<AutoPtr<IContext> >
{
size_t operator()(AutoPtr<ICont... |
18dbfd6a068b1b599172862fcef8d5bab159c49f | 9df24e9110f06ea1004588c87a908c68497b22c0 | /vijos/P1142.cpp | cdae7c8deff1811fc042ea9df04a270b42921d28 | [] | no_license | zhangz5434/code | b98f9df50f9ec687342737a4a2eaa9ef5bbf5579 | def5fdcdc19c01f34ab08c5f27fe9d1b7253ba4f | refs/heads/master | 2020-07-02T17:24:14.355545 | 2019-03-13T12:39:45 | 2019-03-13T12:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,568 | cpp | P1142.cpp | /*
两种做法 Orz反正我不会
第一
建棵树直接模拟即可,每次找花费最小的位置插入,结果是正确的
第二
动态规划
f[i][j]表示i个物品,使用j个指针的最小费用
f[i][j]=min{f[j-1]+g[t][j]}
g[i][j]表示当前指针为j,使用了i个物品
g[i][j]=min{f[i][l]+p[j]*i*i)
初值f[1][1],g[1][x]
做到i时给f[1]赋值
于是复杂度就是O(n^2*k)
*/
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <memory.h>
#includ... |
8ea2b517aa518d24983813000560688648277e93 | a3ae44249dc9ac07d03ac1d546024cef920507c3 | /SDK/IViewRender.h | 7500cac318ac6f17e3718d48f616a010b779a762 | [] | no_license | zanzo420/spaghettos.cc | 81005fb5ad21faf7345b406bacebf4cddd654df1 | 9dc8fc1cb6a13e6e3abe443b8f14dc840c748934 | refs/heads/master | 2021-09-02T08:16:10.866015 | 2017-12-31T21:16:18 | 2017-12-31T21:16:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36 | h | IViewRender.h | #pragma once
class IViewRender
{
};
|
4d905b2dd4a5617c4f18bea6c820c02442c915f8 | e8c6fb88dd50c93171f3eca1f37cc438fd2af575 | /source/dialog.cpp | 2ba882faf7bfcea56d24c5b04c4e6a3af2781376 | [] | no_license | QianG0104/Chinese_Chess_Player | 3c8340006007b76b57c5d9fc50c82792cceeb100 | fade6e8248ebba9c8b0f3de996eb1261cb3893af | refs/heads/master | 2022-07-08T16:49:43.247263 | 2020-05-20T05:34:57 | 2020-05-20T05:34:57 | 265,457,847 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 421 | cpp | dialog.cpp | #include "dialog.h"
#include "ui_dialog.h"
Dialog::Dialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::Dialog)
{
ui->setupUi(this);
}
Dialog::~Dialog()
{
delete ui;
}
void Dialog::on_buttonBox_accepted()
{
in[0]=ui->lineEdit_4->text();
in[1]=ui->lineEdit_5->text();
out[0]=ui->lineEdit->... |
760dd9cc45d19cf3728954797a67042abc0307d3 | 984d5ce2898360bff1a1c805f026a3de68f9ea7b | /07. Functions/04. function_template.cpp | 7b1530b3613b3cfc3db96f1736d4b32fb295793a | [
"MIT"
] | permissive | AnmolTomer/cpp_deep_dive | f7e57a0fe28c6e13d0bf44c0f087baa70052c6d5 | 8b534ce48cf80e5012caec76bef6ad210ac4594f | refs/heads/master | 2021-12-09T16:04:52.933459 | 2021-10-31T22:54:12 | 2021-10-31T22:54:12 | 193,171,362 | 139 | 69 | MIT | 2021-10-31T22:54:13 | 2019-06-21T23:40:31 | C++ | UTF-8 | C++ | false | false | 2,293 | cpp | 04. function_template.cpp | /*
author : Anmol Tomer
email : anmol3540@gmail.com
*/
#include <iostream>
using namespace std;
/*
// Doing things overloaded way.
int max(int x, int y)
{
return x > y ? x : y; // If x > y ? return x : else return y
}
float max(float x, float y)
{
return x > y ? x : y;
}
*/
// ---------------------------------... |
e6b53fc800ad18109b8f87edec335bd89957502f | d8b1d2e70c0deacf6029b181891aa329abe78f1e | /Prob 2 &4/bankAccountImp.cpp | a1647bb6c221a07ee8f38ed149c9cee33b28672f | [] | no_license | Mistah-Skipp/Prog-2 | 954c340f7218325462ca55ce4613a8c49502ad43 | 668c0379bfb4e4ca9162f371c0663afd1c92f2c3 | refs/heads/master | 2022-07-30T16:35:05.258342 | 2020-05-08T20:59:44 | 2020-05-08T20:59:44 | 262,416,516 | 0 | 0 | null | 2020-05-08T20:14:41 | 2020-05-08T19:57:26 | C++ | UTF-8 | C++ | false | false | 1,401 | cpp | bankAccountImp.cpp | //bankAccountImp.cpp
#include <string>
#include <iostream>
#include <iomanip>
#include "bankAccount.h"
using namespace std;
//Name
void bankAccount::setActName(std::string firstName, std::string lastName) {
actFName = firstName;
actLName = lastName;
actName = firstName + " " + lastName;
}
std::string bankAccount::... |
2b9a553191c16d13c727c5f4800fd62b6ef38811 | 6997ee24091019043fb4cc54b1b2f7119a40d426 | /src/include/xmppclient.h | c63c35c0151764122115778e498fa318703b5093 | [
"MIT"
] | permissive | WST/mawar | eff4311bd25232b07f4611b3094b3d13746e558c | 8a603f31869d8b31f60b782e5aa0342082874f9e | refs/heads/master | 2020-05-17T03:32:53.740927 | 2013-09-03T22:38:36 | 2013-09-03T22:38:36 | 12,523,582 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,528 | h | xmppclient.h | #ifndef MAWAR_XMPPCLIENT_H
#define MAWAR_XMPPCLIENT_H
#include <xmppstream.h>
#include <nanosoft/gsaslserver.h>
#include <xml-types.h>
#include <stanza.h>
#include <presence.h>
/**
* Класс XMPP-поток (c2s)
*/
class XMPPClient: public XMPPStream
{
protected:
/**
* Виртуальный хост
*/
class VirtualHost *vhost;
/... |
deef0733a6bee505f2ef79b6373de519010e50f5 | 4f4c2cd4e711f2197e03c99f0a0d16f28c69a9da | /Classes/GameConfig.cpp | 02acc7b2fb653a6ad933223ba3df94bda4ff57b1 | [] | no_license | Anti-Magic/EvolandPocket | 9e8d26c3ef76b3ee7281f481312f6692f69cc719 | 045385a0d69a1c062dc26aa39a1a870508240794 | refs/heads/master | 2021-01-19T00:24:28.228379 | 2015-03-15T05:03:16 | 2015-03-15T05:03:16 | 31,943,418 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,114 | cpp | GameConfig.cpp | #include "GameConfig.h"
using std::string;
GameConfig GameConfig::_instance;
GameConfig::GameConfig()
{
timePerMove = 0.3f;
timePerAttack = 0.3f;
_playerMoveName2 = "playerMove";
_playerFacetoName2 = "playerFaceto";
_playerAttackName2 = "playerAttack";
_enemyMoveName2 = "enemyMove";
GID_Box_Open... |
69ae9eeabd70eb1bdd8197b4c4f5d3279b126b44 | 0509e367ee369133f0c57f2cbd6cb6fd959da1d5 | /chapter14/rei14.5_1.cpp | b8eaced1bc73d96dbb945a1fd3afbc9069192555 | [] | no_license | Hiroaki-K4/cpp_learn | 5a1e6916d504027c18c64a16c353ee72429ed383 | 69d38f317f9c144b4e092361936d61b62d3bed3b | refs/heads/main | 2023-02-25T12:40:56.497944 | 2021-01-30T13:27:00 | 2021-01-30T13:27:00 | 317,693,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 606 | cpp | rei14.5_1.cpp | #include <iostream>
#include <fstream>
#include <iomanip>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
#include <strstream>
#include <vector>
#include <list>
#include <map>
using namespace std;
int main()
{
map<char, int> m;
int i;
for (i = 0; i < 10; i++) {
m.insert(pa... |
10d23f3ac1638f3a51fb249aa3075f314ab013c7 | 8f37e02e657ea05ed050c26ba7ca7158b1b8f501 | /src/Field.cpp | d1a5150f83e25bf05a31099489559813b8c523a1 | [] | no_license | Asmageddon/r1 | 8178a49fd4626c11ed1c694b5a26a98a0e199372 | 9d0b2b5b3b9dc505e44b82312e3fe93d12fb0a1d | refs/heads/master | 2020-05-14T22:48:43.463521 | 2013-01-21T19:28:37 | 2013-01-21T19:28:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,384 | cpp | Field.cpp | #include "Field.hpp"
#include "Level.hpp"
#include <SFML/Graphics.hpp>
#define _USE_MATH_DEFINES
#include <cmath>
Field::Field() {
radius = 1;
width = 3;
intensity = new float[3*3];
center = sf::Vector2i(1,1);
current_level = NULL;
}
void Field::SetRadius(const short& radius) {
this->radiu... |
96ab73c42110657363a76b495fd75f20da413e7b | a9921bd48da8870a589fe8f0e2a1a023991b6c12 | /makingchange.cpp | 5979ab702bbe66a5cef147072e8d609c954924f8 | [] | no_license | atyamsriharsha/My-Uva-solutions- | 36b89d88c2c62db8431918b5cbcb1819a9b0052c | e36942e48203594ec895502ff2affe9d7d3620e2 | refs/heads/master | 2021-01-15T16:17:31.091882 | 2015-07-22T21:05:57 | 2015-07-22T21:05:57 | 38,688,856 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,301 | cpp | makingchange.cpp | /************************************************************
Author : atyam
************************************************************/
#include <bits/stdc++.h>
using namespace std ;
typedef long long ll ;
typedef pair<int,int> pii ;
typedef vector<pii> vii ;
#define inf 100000
int change[]={5,10,20,50,100,200... |
33a67865ffc10be843f809a5db2ea7f94eeff693 | 3a1c247285021d7dfb62e650382186bfcd22b0a8 | /src/base/timer.hpp | 40a02b9bea003ad26e7fba72efb3f55ec6fd483a | [] | no_license | wytjws/iqt | 156f87b94417d030751107685375ed4b8a6e409a | fc74992c046dd8d4d126298a936286543fd189b4 | refs/heads/master | 2022-10-30T04:43:31.394573 | 2020-06-15T06:05:36 | 2020-06-15T06:05:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,210 | hpp | timer.hpp | #ifndef _BASE_TIMER_HPP_
#define _BASE_TIMER_HPP_
#include <functional>
#include <thread>
#include <mutex>
#include <atomic>
#include <condition_variable>
#include <vector>
#include <queue>
#include <chrono>
#include <cassert>
#include <iostream>
#include "base/macro.hpp"
namespace base {
class Timer {
publi... |
6a3a9843befbe575776e9d02d2ece2601903467f | bcb1b8453096699f944e8e3a0dc5b36178d385a3 | /include/html/ul.hpp | bbb6efc7a0b2d98dd4e24db2671ab470f03ee8b5 | [
"MIT"
] | permissive | nathanmullenax83/rhizome | 0d490bafc40251ccf014b47aeb7e21fdb25fec36 | e7410341fdc4d38ab5aaecc55c94d3ac6efd51da | refs/heads/master | 2020-12-15T01:21:24.799354 | 2020-07-11T14:46:08 | 2020-07-11T14:46:08 | 234,942,360 | 1 | 0 | MIT | 2020-07-05T00:46:50 | 2020-01-19T18:04:15 | C++ | UTF-8 | C++ | false | false | 1,110 | hpp | ul.hpp | #ifndef RHIZOME_HTML_UL
#define RHIZOME_HTML_UL
#include <vector>
#include <iostream>
#include "pattern.hpp"
#include "element.hpp"
#include "li.hpp"
using std::ostream;
using std::vector;
using rhizome::pattern::Pattern;
namespace rhizome {
namespace html {
/// Represents an unordered list.
cla... |
f5d491ccd7df9d1633177e573d05c6329fbcc214 | cd39fc7e02cddb2900959b263e98e6b6618a1f7c | /PokerOdds.cpp | 35fb022d39d4fcb9098a3dc016d3e4ead84818d0 | [] | no_license | SilkExpress/PokerFun | f32ced82f529114b502e4c9f99722b1f86c61d98 | 8a811c92ecc6043f789474feb798db287fbf58d5 | refs/heads/master | 2021-01-10T15:39:42.524565 | 2020-04-24T01:45:48 | 2020-04-24T01:45:48 | 55,113,268 | 0 | 0 | null | 2020-04-24T01:45:50 | 2016-03-31T02:20:18 | C++ | UTF-8 | C++ | false | false | 9,575 | cpp | PokerOdds.cpp | // PokerOdds.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "Deck.h"
#include "Hand.h"
#include "Odds.h"
#include "HandType.h"
using std::cout;
using std::endl;
using std::cin;
using std::getline;
using std::string;
int main()
{
Deck deck;
Hand hand;
... |
69222114cf67977795bf3d0bbedd4c8ed67cd08f | eaebaf1f70e29201fcceb9d37ab758abad09e18f | /src/mainWindow.cpp | 6bf58f24164c3236d34b300d3d4b15a8b7b03155 | [
"MIT"
] | permissive | zloop1982/TizFbExample | fd86f7c80b8e9086fa78f823217cf9617002bfde | a346f2a68fdd2418292fee7a285b71be1f42c6ac | refs/heads/master | 2021-01-14T11:11:34.649794 | 2014-09-02T15:53:17 | 2014-09-02T15:53:17 | 33,650,489 | 0 | 1 | null | 2015-04-09T05:37:11 | 2015-04-09T05:37:11 | null | UTF-8 | C++ | false | false | 2,698 | cpp | mainWindow.cpp | /*
* Copyright (c) 2014 Christian Schabesberger
*
* 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 limitation the rights
* to use, copy, modify, merge, p... |
e0fbb70374a94c2bf7321e979f084f6a5384e53d | 6e2f8b62a9977ae6c51c6bcbe41daccc92a87677 | /ParabellumEngine/ParabellumEngine/DirectionalLight.h | 5e751c5bdd9e35395c32d533a83a34703c986bab | [
"MIT"
] | permissive | Qazwar/ParabellumFramework | 8a455ea5e1ac0dab9c466604d2f443317e2a57bd | 7b55003bb04e696a68f436b9ec98a05e026526fd | refs/heads/master | 2022-01-26T06:28:53.040419 | 2019-06-29T11:05:34 | 2019-06-29T11:05:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,731 | h | DirectionalLight.h | #ifndef _DIRECTIONALLIGHT_H_
#define _DIRECTIONALLIGHT_H_
#include <string>
#include <memory>
#include "../ParabellumFramework/GraphicsDevice.h"
#include "../ParabellumFramework/ResourceManager.h"
#include "../ParabellumFramework/BoundingVolumes.h"
#include "../ParabellumFramework/BoundingFrustum.h"
#include "../Par... |
d82900de81a2873d3a3a87b07c084763e220f259 | 055844a18dbd26dbea054a003ab12e254c78b891 | /aleph/generate_df_tree.H | 2e54fa08bbedaf9e388a3306621e39afc3703a7a | [
"BSD-2-Clause"
] | permissive | AlbertDenn/Aleph-AutoInstall | daa045de598b51d6e2b890c1a448344799ac4ae9 | 011848abd960d0528daaedefba3cfb85e62589df | refs/heads/master | 2021-01-13T00:46:32.935788 | 2015-12-09T20:40:29 | 2015-12-09T20:40:29 | 46,997,943 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 5,071 | h | generate_df_tree.H |
/*
This file is part of Aleph-w system
Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2011, 2012, 2013, 2014
Leandro Rabindranath León
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... |
9655173dabeaf3ffc3c714842ae2241cc60ddfbb | 690c977dd2a8fe222789bc6cdc87b7f87a0ad0ea | /CodeShala/Trees/Assignment questions/LCA BST.cpp | b956e99f50c3f1073bf16f1f211c24fbf11df3cf | [] | no_license | mohityadav7/CP-Code | 54bd29ff5f62c868a9c4b50a86f509c9e665d5ef | 86fbb4d18600b269a351cc9943a7c8c47c9ea907 | refs/heads/master | 2021-03-27T19:39:52.692005 | 2018-11-15T16:33:14 | 2018-11-15T16:33:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,296 | cpp | LCA BST.cpp | #include <iostream>
#include <algorithm>
using namespace std;
struct node {
int data;
struct node * left;
struct node * right;
} * root = NULL;
struct node * insertNode(struct node * tNode, int value) {
if(tNode == NULL) {
struct node * newNode = (struct node *)malloc(sizeof(struct node));
newNode->data = val... |
bbf06db391371207e9483e237ef2a421f4b9491d | 495e7343fd2a82c4fc78a9f26ccbc7fb75ebe992 | /test/testcommon/TestFilesystem.cpp | 1870cf59148f3ef6ea439e6c09f1c9b7646d210f | [] | no_license | matthewcpp/recondite | fd12bd36f25113cad485aea3baf4cd5b60eae49d | 2a10964dd6c6f9ae8bc61b90df459bbcd2d4f740 | refs/heads/master | 2021-04-12T04:29:47.611629 | 2017-03-07T14:15:11 | 2017-03-07T14:15:11 | 5,922,213 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,519 | cpp | TestFilesystem.cpp | #include "TestFilesystem.hpp"
rIStream* TestFilesystem::OpenReadFileRef(const rString& path) {
rIStringStream* stream = nullptr;
if (savedData.count(path)) {
stream = new rIStringStream(savedData[path]);
}
else {
stream = new rIStringStream();
}
return stream;
}
void TestFilesystem::CloseRe... |
0a71d576558f20eb0297984e03a94037561b773a | 6a59a44410937dd10619c2ac016a3302670b7353 | /tusa9/chatserver/user_profile.h | 9f0bac58ebdc1cfa9ca5d3eb974e6d923ed4ea70 | [
"MIT"
] | permissive | akakist/tusa-chat | 0dbf26674eb94deec56021085a9a7bcdb0239d5a | 1dfedb4a15ad86727a0133f06b87a567114afe0d | refs/heads/master | 2021-07-10T00:37:29.415885 | 2021-03-30T07:19:47 | 2021-03-30T07:19:47 | 235,997,118 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,329 | h | user_profile.h | #ifndef USER_PROFILE___H
#define USER_PROFILE___H
#include <string>
#include <map>
using namespace std;
class user_profile: public db_row
{
public:
unsigned int id;
const char* getclassname()const {
return "user_profile";
}
int load_from_db(const string & table_name) ;
user_profile();
... |
97dfbda9b8abfdadc1d65a958a3f86ff8cd92029 | 7dd516a2d6f29f3b0eefd8a638155d8010cc1dc2 | /image.h | 254570a964da9a22c7e8d18f9820f910d560086e | [] | no_license | rshest/algomap | 8e826a5f46b57d673f1565ab98ee4a3a19716343 | 7d1660000eff4a8f36162de4a4ed2c2b8d90a3ec | refs/heads/master | 2021-05-26T14:29:04.238281 | 2012-11-12T10:19:03 | 2012-11-12T10:19:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 322 | h | image.h | #ifndef __IMAGE_H__
#define __IMAGE_H__
#include <vector>
struct Image
{
std::vector<unsigned int> rgba; // rgba pixel array
int width;
int height;
};
// Loads image from TGA file
bool LoadTGA(const char* fileName, Image& image);
#endif // __IMAGE_H_... |
53f367d515496353260ed9f4a989ecd0cf12dc1c | 76b40fb08675511e17131664033b3a42451b83c1 | /Temp/StagingArea/il2cppOutput/AssemblyU2DCSharp_nn_hid_ControllerSupportArg1887899189.h | fc06a12d309cc366c970af3a9feb1da548bea660 | [] | no_license | Jim3878/SwitchTool | 7b460214c9b31169a50090dc65cc62f035a59dae | ef2d9f389aeb4e8dc0960a455729d41cd8fa3047 | refs/heads/master | 2021-09-08T17:49:46.788937 | 2018-03-11T14:22:01 | 2018-03-11T14:22:01 | 109,232,011 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,234 | h | AssemblyU2DCSharp_nn_hid_ControllerSupportArg1887899189.h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "mscorlib_System_ValueType3507792607.h"
#include "AssemblyU2DCSharp_nn_util_Color4u81633930318.h"
#include "mscorlib_System_Byte3683104436.h"
// nn.util.Color4u8[]
struct Co... |
9f18e005466a6058b81b0beb4f7e23eba18a3bcd | edfd12506922f269d718faa0d60730f1d30b8e52 | /misc/fpsmc.cpp | 74cbbac911a1ab9a40cc2ed510ee2c79a05cef55 | [] | no_license | simomounir/angsd-1 | 09794c895a7aee725bff7e53ef7186b0c6ae9e07 | 6cc8b4e56205ae83a1bbeaaded10329b05bdf9f0 | refs/heads/master | 2021-01-13T10:02:21.884073 | 2016-12-09T07:40:55 | 2016-12-09T07:40:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,372 | cpp | fpsmc.cpp | #include <vector>
#include <cassert>
#include <cmath>
#include "psmcreader.h"
#include "main_psmc.h"
using namespace std;
struct Site{
double g0, g1;
};
struct wins{
int from;//inclusive
int to;//inclusive
};
class fastPSMC {
unsigned maxTime; //number of time intervals
double rho;
std::vector<double> t... |
c5bade7445819d1e9154755181c3cdd761bc79e0 | 1aa205cb391b8924568fd7c8159fcad01d492972 | /lab_11/lab11part2.cpp | bf51746984a23ff08ac6d179cab921437589c7f5 | [
"MIT"
] | permissive | pwestrich/csc_2100 | 610832d41a5abe3363ad7cfb16d074b3f32ee28d | baa2326ac0015772b19262337886e5f1d7e0b66c | refs/heads/master | 2020-07-04T12:11:48.591455 | 2016-11-17T20:49:57 | 2016-11-17T20:49:57 | 74,065,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,087 | cpp | lab11part2.cpp | //Lab 11 Part 2
//by Philip Westrich
//Tuesday, November 20, 2012
#include <iostream>
int main(){
int array[10], *arrayPtr = array, input = 0, sum = 0;
std::cout << "Please enter 10 integers." << std::endl;
for (int i = 0; i < 10; i++){
do{
... |
e30d416c48069ce4c3574283b0b459a6a9058b49 | 01b1f86aa05da3543a2399ffc34a8ba91183e896 | /modules/boost/dispatch/include/boost/dispatch/meta/lambda_terminal.hpp | 189e1a62bcfbad29bf0784e1fc2dfbad8c3f7766 | [
"BSL-1.0"
] | permissive | jtlap/nt2 | 8070b7b3c4b2f47c73fdc7006b0b0eb8bfc8306a | 1b97350249a4e50804c2f33e4422d401d930eccc | refs/heads/master | 2020-12-25T00:49:56.954908 | 2015-05-04T12:09:18 | 2015-05-04T12:09:18 | 1,045,122 | 35 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 1,180 | hpp | lambda_terminal.hpp | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
ef9d48cc344a4cb895e4f0d45e7534ade54bedec | 9f19bb2cf94e37f25a7a3c1550cac872e8fda4da | /Tree Pruning.cpp | 3f36617bb69c92bcd4954322982cbb969b4db1dc | [] | no_license | cxz66666/PEG-DMOJ-Solutions | bf7987112f2fb7d1b3d7a7ce43caa03e5b981024 | 8c1beccc7d6e768f903dac827fd47eb7d739069c | refs/heads/master | 2021-09-05T02:55:07.873534 | 2018-01-23T18:55:04 | 2018-01-23T18:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,998 | cpp | Tree Pruning.cpp | #include <bits/stdc++.h>
#define INF 0x3f3f3f3f
#define B 300
using namespace std;
int N, D;
struct node
{
int color = 0;
int left = -1;
int right = -1;
int nw = 0;
int nb = 0;
}nn;
node alln[310];
int dp[310][310+B];
void dfs(int u)
{
if (alln[u].color)
alln[u].nw++;
else
al... |
b41b8f7bb462d28f86517217afde4fe9c74cd260 | 0ab72b7740337ec0bcfec102aa7c740ce3e60ca3 | /include/functional/corelj612/parameter/name.h | 253391cbfbdd92e66ea7bc648c47f74ad8d9f470 | [] | no_license | junwang-nju/mysimulator | 1d1af4ad7ddbe114433ebdadd92de8bb3a45c04f | 9c99970173ce87c249d2a2ca6e6df3a29dfc9b86 | refs/heads/master | 2021-01-10T21:43:01.198526 | 2012-12-15T23:22:56 | 2012-12-15T23:22:56 | 3,367,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | h | name.h |
#ifndef _Functional_CoreLJ612_Parameter_Name_H_
#define _Functional_CoreLJ612_Parameter_Name_H_
#include "functional/lj612/parameter/name.h"
namespace mysimulator {
enum CoreLJ612ParameterName {
CoreLJ612Radius=LJ612EqRadius,
CoreLJ612EnergyDepth=LJ612EqEnergyDepth,
CoreLJ612RadiusSq=LJ612EqRadiusSq,
... |
cc7005cb4445d528615e063fe41d79b92cc402d6 | 2ce251519cc9fda67441e887b1856a3eb6809550 | /common/colibri.cpp | cb8c2e6755670f6809926c50888230cd5a3c2d9d | [] | no_license | xbeowolf/colibrichat | c28ec39bb43c0bb6084410a36d4c8fbede2622c1 | a72d6cb915bd025bf8d1a2e98c56770a960de3b5 | refs/heads/master | 2021-04-28T19:38:10.360351 | 2018-03-03T23:58:44 | 2018-03-03T23:58:44 | 121,901,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,953 | cpp | colibri.cpp |
//-----------------------------------------------------------------------------
//
// Includes
//
#pragma region Includes
#include "stdafx.h"
// Windows API
#include <strsafe.h>
// Project
#include "colibri.h"
#pragma endregion
using namespace colibrichat;
//----------------------------------------------------... |
81bd582f961aa58fd8efc54704544245e8c759da | e8dceb2f4f6dd1149c798be4312a4f480a66859b | /Source.cpp | 9fbadc4440be2d9074b7fbc38a2bcf1f56feb5c8 | [] | no_license | JoCoKo/OOP_lab_5 | 866365fee28ca2983818babc32885393a021e35d | 352f8c9a7c64ab3fca523b224d724a0fefb1371d | refs/heads/master | 2021-08-30T22:52:33.374508 | 2017-12-19T18:23:47 | 2017-12-19T18:23:47 | 114,767,596 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 751 | cpp | Source.cpp | #include <iostream>
#include <fstream>
#include <thread>
#include "Number.h"
#include "Numbers.h"
#include "Windows.h"
using namespace std;
int main(int argc, char* argv[])
{
/* Number* t1 = new Number(12);
cout << "RESULT:" << t1->getDecomposition() << "#" << endl;
if (argc >= 3)
{
uint64 curNum;
ofstream fou... |
561c959ba2e29221f85d9ce1f9c7be776e803a2c | 3d8254cdec23ce1bf8fb8ade5527732fa86a477c | /src/srci2src.cpp | cfde2adad41aabffb7d7633704fabf1d9fb04a42 | [
"BSD-3-Clause"
] | permissive | zcy618/openVOICE | 8cb2cc60e3aa73b40a438beed38282c343688a97 | ee7cff99cfd1bd21265138b4407cfd685c1c0ce7 | refs/heads/master | 2022-08-27T20:26:34.537356 | 2020-05-29T21:29:13 | 2020-05-29T21:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 42,669 | cpp | srci2src.cpp | //@author Erik Edwards
//@date 2019
#include <iostream>
#include <fstream>
#include <unistd.h>
#include <string>
#include <cstring>
#include <argtable2.h>
#include <valarray>
#include <vector>
#include <unordered_map>
#include <cctype>
int main(int argc, char *argv[])
{
using namespace std;
//timespec tic, toc... |
b061f8137dbc212156df5b592ce9b676121f27d2 | e4f8c1b113ecf1ccfb8c0218cffe07bc81d79440 | /components/inversekinematics/src/bodypart.h | 39837a93a6e3e403b6b45aae688889dff8ae3a30 | [] | no_license | robocomp/robocomp-shelly | a5e3a9e9ef71401b63749310eb15a5c1dfdbcef4 | b23d5e19336521232386fe52a7a9f11d81a9f02e | refs/heads/master | 2020-12-11T05:23:50.447797 | 2020-01-22T16:22:01 | 2020-01-22T16:22:01 | 19,778,519 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,298 | h | bodypart.h | /* ------------------------------------------------------------------
* CLASS BODY PART
* IT REPRESETS ONE PART OF THE ROBOT. WE DIVIDE THE ROBOT IN THREE
* DIFERENT PARTS:
* -----> RIGHT ARM: IT'S COMPOSED BY ALL THE MOTORS OF THE RIGHT ARM
* -----> LEFT ARM: IT'S COMPOSED BY ALL THE MOTORS OF THE LEFT ARM
* --... |
caccca9a123f49eebcc90cdaf6625920ad99f7cc | fa8a54ca27416ade31ca121cfe573f58502b6048 | /client/client/gui/ContinueOptionsBackButtonBar.h | 78b77dba1d08a4ffebe044d786fc8b18736722d2 | [] | no_license | DasElias/MauMau | f2c1d244fadaa145b6f7e212fb2829d90f25cadf | b91d0a29978c80d2411f9dfcfab244864b91cfe8 | refs/heads/master | 2022-05-29T09:42:33.664885 | 2020-04-26T15:38:18 | 2020-04-26T15:38:18 | 234,632,251 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,506 | h | ContinueOptionsBackButtonBar.h | #pragma once
#include <egui/model/nodes/HBox.h>
#include "ColoredButton.h"
namespace card {
class ContinueOptionsBackButtonBar : public egui::HBox {
// ----------------------------------------------------------------------
// --------------------------------FIELDS--------------------------------
... |
6d7372bde6cd9ce0cc38ebd634cd63f6e5029d22 | c296c81507494483c278e50c8c88dd1b36c5bdc4 | /Datas/CEpargne.h | 2cd3f1b7b952e3d947a5457fb5cfb759882e6439 | [] | no_license | Stroff/Amonsoft | 4278839f932032b6b90455ec241444e7cb00768f | 5a8e464951aeafb9e04c990845abc4e83ed5d240 | refs/heads/master | 2021-01-25T04:01:59.383581 | 2012-03-31T10:06:22 | 2012-03-31T10:06:22 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 7,346 | h | CEpargne.h | /*
* This software is a part to the amonsoft solution
*
* Copyright Amon & Sesam Micro
* Developper contact pascal.bart@sesam-micro.Fr
*
* $Id: CEpargne.h,v 1.10 2006/04/29 16:29:28 pascal Exp $
* $Log: CEpargne.h,v $
* Revision 1.10 2006/04/29 16:29:28 pascal
* Version 0.1 build 13
* - Correction d'un bug avec les ... |
a13b82682696411f25665e9acf00341ccc39846e | 52ca17dca8c628bbabb0f04504332c8fdac8e7ea | /boost/python/detail/force_instantiate.hpp | 77a69a115ae70e4a8fdb849223d1c4d095a768b2 | [] | no_license | qinzuoyan/thirdparty | f610d43fe57133c832579e65ca46e71f1454f5c4 | bba9e68347ad0dbffb6fa350948672babc0fcb50 | refs/heads/master | 2021-01-16T17:47:57.121882 | 2015-04-21T06:59:19 | 2015-04-21T06:59:19 | 33,612,579 | 0 | 0 | null | 2015-04-08T14:39:51 | 2015-04-08T14:39:51 | null | UTF-8 | C++ | false | false | 77 | hpp | force_instantiate.hpp | #include "thirdparty/boost_1_58_0/boost/python/detail/force_instantiate.hpp"
|
7990522b0387c257a97cd7d0646fb15179a90030 | b0069cfa317b9281f064a7fbd9d1463c33ee1ac4 | /Firestore/core/src/local/remote_document_cache.h | bfe84648c9310882f5ed31deb90ef9e46e1c955a | [
"Swift-exception",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | firebase/firebase-ios-sdk | 5bb2b5ef2be28c993e993517059452ddb8bee1e6 | 1dc90cdd619c5e8493df4a01138e2d87e61bc027 | refs/heads/master | 2023-08-29T23:15:28.905909 | 2023-08-29T21:49:41 | 2023-08-29T21:49:41 | 89,033,556 | 5,048 | 1,594 | Apache-2.0 | 2023-09-14T21:11:30 | 2017-04-22T00:26:50 | Objective-C | UTF-8 | C++ | false | false | 5,922 | h | remote_document_cache.h | /*
* Copyright 2018 Google
*
* 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 w... |
f99b27fd99d73da7febc865a674b464e3add34cd | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /Trigger/TrigHypothesis/TrigHLTJetHypo/src/TrigJetHypoToolConfig_partgen.h | d814d785adacf868c27913695a190accc8d8d581 | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,034 | h | TrigJetHypoToolConfig_partgen.h | /*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TRIGJETHYPOTOOLConfig_PARTGEN_H
#define TRIGJETHYPOTOOLConfig_PARTGEN_H
/********************************************************************
*
* NAME: TrigJetHypoToolConfig_partgen.h
* PACKAGE: Trigger/TrigHypothesis/Trig... |
b1489392727399151bc416c679e8804a001c6bc0 | 0f4bd413d54f58f1d50479f554a978b06063d4de | /Project1/ItemPlatform.cpp | 93bd56f9d1dcc9bedc241c252d58963f56a2f60c | [] | no_license | Mucchan-ko/Sparty-Gnome | 4506e70de3ca3692c623032ced4d365c9041a03c | f890cf1d6c47c7a72549dda6b4916d9b76c5e11e | refs/heads/main | 2023-06-26T21:39:21.496176 | 2021-07-06T22:26:50 | 2021-07-06T22:26:50 | 383,610,472 | 0 | 0 | null | 2021-07-06T22:26:50 | 2021-07-06T22:18:29 | null | UTF-8 | C++ | false | false | 1,906 | cpp | ItemPlatform.cpp | /**
* \file ItemPlatform.cpp
*
* \author Trent Belanger
*/
#include "pch.h"
#include <string>
#include "ItemPlatform.h"
using namespace Gdiplus;
using namespace std;
/** Constructor
* \param game game this object is a part of
* \param declarations vector of wstring image files
* \param width w... |
51a455a89e4c067e906e871162e3b0804ff41ce2 | ce778fa316bfbdb4ee5ee8b0c4f4a8d885e3213e | /sem2/AsmStart/AsmStart/AsmStart.cpp | 2f897c986d3e68f72703ca3b7c734056da9adf7a | [] | no_license | Bakhar17/Artem | 1dc6ff5970db41630937712deda184eba0d54d28 | 121a84ea94fc798c4e68b0f54c8b3a6df3056570 | refs/heads/master | 2023-02-01T19:27:55.348219 | 2020-12-22T20:25:53 | 2020-12-22T20:25:53 | 203,357,473 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 949 | cpp | AsmStart.cpp | #include <iostream>
int main()
{
//int a, b,res;
//std::cout << "Put a: ";
//std::cin >> a;
//std::cout << "Put b: ";
//std::cin >> b;
//__asm {
// mov eax, b
// neg eax
// cdq
// idiv a
// mov res,eax
//}
//std::cout << "x= " << res;
//int s, x, z,res;
//std::cout << "Put s: ";
//std::cin >> s;
//s... |
394eab045d821939c02576482d6f2a34b9d351fa | f1ee65fbe1ffc43c2aac45e41515f1987eb534a4 | /src/net/third_party/quiche/src/quiche/quic/core/quic_flow_controller.cc | 4acdd513f3f7ea37a5a4e7f409022abdba59b35e | [
"BSD-3-Clause"
] | permissive | klzgrad/naiveproxy | 6e0d206b6f065b9311d1e12b363109f2d35cc058 | 8ef1cecadfd4e2b5d57e7ea2fa42d05717e51c2e | refs/heads/master | 2023-08-20T22:42:12.511091 | 2023-06-04T03:54:34 | 2023-08-16T23:30:19 | 119,178,893 | 5,710 | 976 | BSD-3-Clause | 2023-08-05T10:59:59 | 2018-01-27T16:02:33 | C++ | UTF-8 | C++ | false | false | 11,867 | cc | quic_flow_controller.cc | // Copyright 2014 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.
#include "quiche/quic/core/quic_flow_controller.h"
#include <cstdint>
#include "absl/strings/str_cat.h"
#include "quiche/quic/core/quic_connection.h"
#i... |
fd02d4691c5461871f3ed08a3741be9bae32a432 | 879681c994f1ca9c8d2c905a4e5064997ad25a27 | /root-2.3.0/run/MicroChannelFOAM/TurbulenceMicroChannel/0.004/p_rgh | 476e0305a2b45d79d71eba89b7bc20543b5076eb | [] | no_license | MizuhaWatanabe/OpenFOAM-2.3.0-with-Ubuntu | 3828272d989d45fb020e83f8426b849e75560c62 | daeb870be81275e8a81f5cbac4ca1906a9bc69c0 | refs/heads/master | 2020-05-17T16:36:41.848261 | 2015-04-18T09:29:48 | 2015-04-18T09:29:48 | 34,159,882 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,728 | p_rgh | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
... | |
0f935a43d679c5d195b31b87be64ce1f67e6545d | 305b9d7e4bc8ba731164fb10e53fb1e0a8d53775 | /libspindle/adt/Map/ScatterMap.cc | dce1c2affcc48aec97bc790c4117eb24a6d22a49 | [
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-mit-old-style"
] | permissive | skn123/Spindle | 33b2bed84de866bb87e69bbfb2eca06e780b3dcb | d5f2cab92c86c547efbf09fb30be9d478da04332 | refs/heads/master | 2021-05-26T12:50:00.410427 | 2012-11-14T01:23:01 | 2012-11-14T01:23:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,447 | cc | ScatterMap.cc | //
// ScatterMap.cc -- an abstraction of a loc2glob | glob2loc mapping.
//
// $Id: ScatterMap.cc,v 1.2 2000/02/18 01:31:49 kumfert Exp $
//
// Gary Kumfert, Old Dominion University
// Copyright(c) 1998, Old Dominion University. All rights reserved.
//
// Permission to use, copy, modify, distribute and sell this ... |
85aa7a8f61e4c0bb98c9e7473e667bb1c9f59c0f | 19e5c3407466691aa0b42b2fc9a6790baafc5343 | /fix_print.cpp | 0684dc3e0498ca54e59278120be3253a26c9b665 | [] | no_license | 8cH9azbsFifZ/lammps-CSI | 168101d48f4ba2af5d1d8235ac7c969a74b283ff | ac4b39f405463aa6329e2bf0f72532248b028562 | refs/heads/master | 2021-06-02T23:40:27.967156 | 2019-11-05T00:46:52 | 2019-11-05T00:46:52 | 6,374,089 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,017 | cpp | fix_print.cpp | /* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04... |
9d02fed831e02c12f1c87cd0e913f56492165345 | 893b5f0c62c33521645cf4c2036791c61c7d3bbe | /main.cpp | 05b29705ed0db27a1bc0f50f20fa2a39a027fece | [] | no_license | Nirmaldahal25/AdjancencyList | 41382d260331a5826412b241981eaa20e10fa745 | c64d2f7c9ff3f104b06fde08dfef83953b838ea0 | refs/heads/master | 2023-07-02T09:11:16.760403 | 2021-07-29T07:30:40 | 2021-07-29T07:30:40 | 390,629,784 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 870 | cpp | main.cpp | // CMAKENEW generated file: Sample main file
#include <iostream>
#include "graphs.hpp"
#include <string>
int main(){
Graph<char> graph{'A', 'B'};
std::set<char> se;
graph.addVertex('C');
graph.addVertex('D');
graph.addVertex('E');
graph.addEdge('A', 'B');
graph.addEdge('A', 'C');
graph.... |
92ad7ebeb02919f2823c374bba85688d28e52c87 | 77a88451e9816de8dcafd76b7d70d6110c8a459f | /starbuzz/beverages/house_blend.hpp | 27345da25b130cd9b3b21c978d303e3f90eca866 | [] | no_license | jsxft/learn-oop | 847dad41823cb7254cbcd28e03d6909ba58cbbf6 | 58b1f79087ead639a812387b8a56be40bf42d07a | refs/heads/main | 2023-04-30T03:23:31.604874 | 2021-05-13T17:41:59 | 2021-05-13T17:41:59 | 363,584,863 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 125 | hpp | house_blend.hpp | #pragma once
#include "beverage.hpp"
class HouseBlend : public Beverage
{
public:
HouseBlend();
double cost() const;
};
|
d8faff10d2435891f2de13691e14f36bfe5f74a2 | 2b2da3c294d188fa7c2795364ab26859e29ffb87 | /OFSample-Windows/depends/dwinternal/framework2015/dwutility/app/environmentpath.h | aa5df64bfcb4a0a8b14d95c60f7a17ba33ad6d21 | [] | no_license | JocloudSDK/OFSample | 1de97d416402b91276f9992197bc0c64961fb9bd | fa678d674b3886fa8e6a1c4a0ba6b712124e671a | refs/heads/master | 2022-12-28T05:03:05.563734 | 2020-10-19T07:11:55 | 2020-10-19T07:11:55 | 294,078,053 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 151 | h | environmentpath.h | #pragma once
#include <string>
#include "dwglobal.h"
namespace DwUtility
{
namespace app
{
std::wstring DW_DWUTILITY_EXPORT appRootPath();
}
}
|
c3e104192f12608408a3ff61487eca6314370e1e | c2915484a4fe848b9bfee6bfb65f824993dde59b | /Case/case2/500/phi | d166a001b33359501545d5b2d6b5c632e78afc09 | [] | no_license | mamitsu2/aircond5_play3 | 835b937da2d60771b8a7b81e13631a8a1271e8f4 | 8eee217855014d562013e0dbe0024208a4633db3 | refs/heads/master | 2020-05-24T21:54:50.022678 | 2019-05-19T13:31:37 | 2019-05-19T13:31:37 | 187,480,539 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,508 | phi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
a45b2ace926da8ec64587ba11496d525fe9f1128 | 91c56a7aed55baca57909c94ac0b895b624d9184 | /Strategy/Strategy.cpp | dcdbed0b13f341d88e2e76a4635234f92c89090c | [] | no_license | EvenQAQ/4chess | d134232a61f8f28acae727d74f0840190d49cb20 | 4bd90a4c91a30ec8a0f6bf3aac2279bbcd46f1b7 | refs/heads/main | 2023-02-11T03:33:40.822771 | 2021-01-02T10:43:09 | 2021-01-02T10:43:09 | 326,160,562 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,715 | cpp | Strategy.cpp | #include <iostream>
#include <unistd.h>
#include <ctime>
#include <cmath>
#include "Point.h"
#include "Judge.h"
#include "Strategy.h"
using namespace std;
class Status{
private:
int n, m, noX, noY, lastX, lastY, player;
int **board;
int *top;
int limits;
Status **children;
Status *parent;
int ex... |
50a14dd433f7ddcef0e5247141588a9049bf763c | c6619ae71fe9f14dda24beb0670b3db32e467ddc | /twel2twen.cpp | 2e667137824c644b3ca31a1de0436049b9f59bcd | [] | no_license | icarus18/12-to-24-Hour-Format | 48ace986ae4fab4fab71a040e3bfb1f0f9a859df | ce33c42fce1354ebb13d91fefe12993e0c3e86fc | refs/heads/main | 2023-02-24T19:43:46.528789 | 2021-01-24T21:21:18 | 2021-01-24T21:21:18 | 332,551,375 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,171 | cpp | twel2twen.cpp |
#include <iostream>
#include <cstdio>
#include <vector>
#include <string>
using namespace std;
int main() {
printf("Enter a time in 12hr-Format(ex. 02:03:45AM)\n");
printf("-->");
string s;// = "12:46:05AM";
cin >> s;
do {
//string s;
vector <c... |
5dc73760ffe1bca0b5d9323be2f2e687ed6fab73 | 74450d2e5c5d737ab8eb3f3f2e8b7d2e8b40bb5e | /github_cpp/13/120.cpp | 402dd62bbaf63b744300a279dab1fbf5c7fb7525 | [] | no_license | ulinka/tbcnn-attention | 10466b0925987263f722fbc53de4868812c50da7 | 55990524ce3724d5bfbcbc7fd2757abd3a3fd2de | refs/heads/master | 2020-08-28T13:59:25.013068 | 2019-05-10T08:05:37 | 2019-05-10T08:05:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | cpp | 120.cpp | #include <iostream>
#include <vector>
using namespace std;
class Solution
{
public:
void bubbleSort(vector<int> &arr) {
int n =arr.size();
bool swapped = true;
int j = 0;
while (swapped) {
swapped = false;
j++;
for (int i = 0; i < n - j; i++) {
... |
79fd2a4b86d54e6c6a631f73205ef6f8bba8568e | 9b1639af63f7fc82f0e488b452dee0cb7ae22a3b | /Consumer/r12.0.6/src/UI/NavShellExtHelper/IEToolBandHelper.h | 5beafacf047733aef595e901f0cb143e702f6a13 | [] | no_license | ExpLife/Norton_AntiVirus_SourceCode | af7cd446efb2f3a10bba04db8e7438092c7299c0 | b90225233fa7930d2ef7922080ed975b7abfae8c | refs/heads/master | 2017-12-19T09:15:25.150463 | 2016-10-03T02:33:34 | 2016-10-03T02:33:34 | 76,859,815 | 2 | 4 | null | 2016-12-19T12:21:02 | 2016-12-19T12:21:01 | null | UTF-8 | C++ | false | false | 1,261 | h | IEToolBandHelper.h | // IEToolBandHelper.h : Declaration of the CIEToolBandHelper
#pragma once
#include "resource.h" // main symbols
#include "NavShellExtHelper.h"
#include "avresbranding.h"
// CIEToolBandHelper
class ATL_NO_VTABLE CIEToolBandHelper :
public CComObjectRootEx<CComMultiThreadModel>,
public CComCoClass<... |
05710df1fbdcbda17fbb9a5d90d30584b67cdf2c | a57d8437088ac1eb627169ed82c4bbc8e8f3447a | /Kernel_Linux/ss/src/core/client_thread_pool.cc | b2cc974257a43c14c41e69ff952ce6d0c7c1dd7c | [] | no_license | linchendev/kernel | 7a74ac4ab5fddaede0f7eb94527fd2e60ba147cc | 3f5e76dbb15bef9a57dcbd1e924e38ac3bf1a15b | refs/heads/master | 2021-05-26T17:27:43.499709 | 2013-08-21T09:22:54 | 2013-08-21T09:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cc | client_thread_pool.cc | //
// core - server core source code.
//
// $Rev: 6033 $
// $Author: $
// $Date: 2012-03-16 14:43:23 +0800 (周五, 2012-03-16) $
//
// Define class ClientThreadPool.
//
#include "core/client_thread_pool.h"
#include "core/tcp_client.h"
namespace core {
ClientThreadPool::ClientThreadPool() {}
ClientThreadPool::~ClientT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.