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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6115b79027475f0484b74c45e737b610f1ae3216 | 27c917a12edbfd2dba4f6ce3b09aa2e3664d3bb1 | /Graph/flood_fill.cpp | 2315cf2991835bbffc4f6d9efba0b8a05575b09b | [] | no_license | Spetsnaz-Dev/CPP | 681ba9be0968400e00b5b2cb9b52713f947c66f8 | 88991e3b7164dd943c4c92784d6d98a3c9689653 | refs/heads/master | 2023-06-24T05:32:30.087866 | 2021-07-15T19:33:02 | 2021-07-15T19:33:02 | 193,662,717 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,052 | cpp | flood_fill.cpp | #include<bits/stdc++.h>
using namespace std;
int arr[100][100];
void printPixels(int n, int m)
{
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
cout<<arr[i][j]<<" ";
}
}
}
void floodFill(int n, int m, int x, int y, int newColor, int curr)
{
if(x < 0 or x >= n or y ... |
09f2ca0ca5c988116f945fef4f540667037bb275 | d9c455e5069ada17fc4b5c04d1956126d3990a8e | /OpenMEEG/include/sensors.h | 1d13b73d33b56940b9db68ed9e7307d73c667a5e | [] | no_license | massich/findmkl_openmeeg | 74f08f4d822067c2488843ec690299d3109ac2c1 | 85c280a8fa20333e26efd473761d270d0e75583d | refs/heads/master | 2021-05-05T14:20:03.643384 | 2018-03-15T09:26:01 | 2018-03-15T15:21:27 | 118,476,151 | 1 | 0 | null | 2018-03-15T10:14:58 | 2018-01-22T15:32:16 | C++ | UTF-8 | C++ | false | false | 8,700 | h | sensors.h | /*
Project Name : OpenMEEG
© INRIA and ENPC (contributors: Geoffray ADDE, Maureen CLERC, Alexandre
GRAMFORT, Renaud KERIVEN, Jan KYBIC, Perrine LANDREAU, Théodore PAPADOPOULO,
Emmanuel OLIVI
Maureen.Clerc.AT.inria.fr, keriven.AT.certis.enpc.fr,
kybic.AT.fel.cvut.cz, papadop.AT.inria.fr)
The OpenMEEG software is a C++... |
f30d9172da413950dd1eb31115383920861f68d3 | b40f33f7af6858c1d87ce0fb19cdf917c38a36aa | /ConnectionHandler.cpp | 737aff6e91b293b415728cbfd8fd158d44c44b33 | [] | no_license | Fantomas4/EzRemote_Project_Computer_Server | 92b056532424b725cf4ca50892a5155b309a3610 | 4df1f1a258d6bcbb0bd3cedfe50f7e8c130e8e53 | refs/heads/master | 2020-03-21T20:13:14.733715 | 2019-10-12T21:06:58 | 2019-10-12T21:06:58 | 138,994,228 | 0 | 0 | null | 2019-10-12T21:06:59 | 2018-06-28T09:07:49 | C++ | UTF-8 | C++ | false | false | 2,669 | cpp | ConnectionHandler.cpp | //
// Created by Sierra Kilo on 31-Aug-19.
//
#include "ConnectionHandler.h"
#include <string>
#include <iostream>
#include <cstring>
int ConnectionHandler::recvMsg(SOCKET recvSocket, char *recv_buf) {
// empty the recv_buf buffer by filling it with 0 (null)
*recv_buf = {0};
// For the client - server ... |
b6eadb1dde7703b4b31f40a2cc5b26d97a85fe7c | 439d28f761c1774f759fdf720c14ab2108bb93b8 | /FbCup/2016/qround/fb01.cpp | efadca914e3e3d45ea866738279e7b6710fbefa5 | [] | no_license | Chomtana/cptraining | 19fec94cd489c6117f49bd6d80642d60079276f1 | df380badd952dceb335525f03373738c35aa0b3a | refs/heads/master | 2021-01-09T20:53:24.758998 | 2020-04-11T04:10:48 | 2020-04-11T04:10:48 | 56,289,132 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,355 | cpp | fb01.cpp | #include <bits/stdc++.h>
using namespace std;
typedef pair<long long,long long> star;
long long dist(long long x1,long long y1,long long x2,long long y2) {
return (x2-x1)*(x2-x1)+(y2-y1)*(y2-y1);
}
long long dist(star a,star b) {
return dist(a.first,a.second,b.first,b.second);
}
int main() {
ifstream f... |
210542adddea6571dd97e49d375f392cb09c7366 | 6b68a9353da47027d8d57abed70d77a36e5422ea | /filemanager.h | fad6fe135c898ff2958abac31322517280b5e4ae | [] | no_license | eustaceb/conversational-audio-browser | 642b28382d61c0f733c1ce2bebfa3bb2b2f29068 | 3f1c7972151e3e29f142db842ac66d25d847bdfc | refs/heads/master | 2022-02-13T08:19:28.687680 | 2022-01-30T15:23:09 | 2022-01-30T15:23:09 | 74,995,270 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | h | filemanager.h | #ifndef PARTICIPANTMANAGER_H
#define PARTICIPANTMANAGER_H
#include <QDialog>
namespace Ui {
class FileManager;
}
class FileManager : public QDialog
{
Q_OBJECT
public:
explicit FileManager(QWidget *parent = 0);
~FileManager();
private slots:
void on_annotationFileLookupButton_clicked();
void on... |
44d0c20979f2f7ef1d98df15ebcdd18ffe82815b | 350167ad671cea6e40222db4b15d632db06a51b2 | /ObjectOrientedProgramming/Person.cpp | 89e4902ce3483bca5260b751310fdcd856af1a9b | [] | no_license | michaelfordbrown/AcceleratedIntroductionToCPP | 35d15c8631ab28ded6143ac10a73fe7c2f99a482 | 2617e86c36c6dc9ed59fdefb9dc1523d08f6edf3 | refs/heads/master | 2021-08-30T00:38:48.079928 | 2017-12-15T11:43:18 | 2017-12-15T11:43:18 | 112,620,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,792 | cpp | Person.cpp | #include "stdafx.h"
#include "Address.h"
#include "Person.h"
// Initial constructor
Person::Person(int age, string name, int sex)
// Set base member variables
: age(age), name(name), sex(sex)
{
// Assume that address (new additional member field) field not set
address = nullptr;
}
// Second constructor that include... |
aed16b4f77e3d3314f603783fdafb3eb6e231f16 | 7a1b2614987dbc456d793a19f0e85eac6ddd027a | /augustChallange/ks2.cpp | 993ae76c4046326c7857fb9cbb9b9c57af349acb | [] | no_license | javasucks69/sharedrepo | 7f7dce8ef36c8156685571447b1739d21e0c08d3 | 2eefe287b8bd539bf0b41c0eb818f9b05e84002b | refs/heads/master | 2020-07-01T19:17:05.886022 | 2019-08-08T17:54:43 | 2019-08-08T17:54:43 | 201,270,222 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,126 | cpp | ks2.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int t;
#ifndef ONLINE_JUDGE
freopen("in.txt","r",stdin);
#endif
cin>>t;
while(t--){
long n;
cin>>n;
vector<vector<long>> temp;
vector<unordered_set<long>> arr2;
vector<long> arr;
... |
709b4baee164885206472d745d30de9bbd1de9d0 | c3fae616f99e8ee21397d730583d15b9545ee566 | /problem/001-050/27.cpp | 9cccffc70e60623ca0a878ea1dd49c93d62b64c1 | [] | no_license | kavin23923/Leetcode | 1de5a664b591d7dc0ccb6484466d9a4ff87e30bd | b4b5e08259073f99d02f43736708adaf4e65e021 | refs/heads/master | 2020-08-22T03:07:01.228602 | 2020-07-29T14:20:51 | 2020-07-29T14:20:51 | 216,304,311 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | cpp | 27.cpp | class Solution {
public:
int removeElement(vector<int>& nums, int val) {
int now = 0;
int i, size = nums.size();
for (i = 0; i < size; i++) {
if (nums[i] != val) {
nums[now++] = nums[i];
}
}
return now;
}
};
|
21ea54e0fb36f326dc4e91c3ae9e096d3365c473 | f5397c3b7ed27ca58988fc9d431f6ea28691388e | /Maze_v6/main.cpp | 5d2ebfaaaac2dc51ad1580943b4c2afb340d9369 | [] | no_license | choooooow/Meadow-maze | f3642c0710340f7063a5c0b5de36087c98a30eeb | a5429d6842ef9b1794aa816b897a0dbaf1825467 | refs/heads/master | 2021-10-27T07:07:05.454297 | 2021-10-21T07:07:38 | 2021-10-21T07:07:38 | 138,808,913 | 0 | 0 | null | 2018-06-27T00:32:04 | 2018-06-27T00:32:04 | null | UTF-8 | C++ | false | false | 26,625 | cpp | main.cpp | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <vector>
#include "stb/stb_image.h"
#include "imgui/imgui.h"
#include "imgui/imgui_impl_glfw_gl3.h"
#include "maze/camera.h"
#include "maze/shader.h"
#include "maze/m... |
7628501eaac1833d509fcae7745d1bd326866086 | 27af56a543eb6d596cf6823529b9889c6646856d | /common/log/log.cpp | e3f387c9e7507d3ed3bd28f732896bec73e9b472 | [] | no_license | LaffRM/client_server | 30045a779cbf0dedf850e10607e48d651855fd7b | de72e02b0d9b76892ddc33fade0a7404006ef67d | refs/heads/master | 2020-04-19T05:29:59.972809 | 2019-01-28T15:54:14 | 2019-01-28T15:54:14 | 167,989,444 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,902 | cpp | log.cpp | #include "log.h"
using namespace std;
log::log(unsigned int n_, bool c_, char const *f_, char const *fp_)
{
file__ = f_;
file_prefix__ = fp_;
max_size__ = n_;
close__ = c_;
name_create();
file_ptr__ = fopen(file_name__, "a+");
if(!file_ptr__)
{
printf("ERROR! File wasn't open... |
2572875caef674a332a43a407e01e2f6754b7392 | 35003442901ecf5dcfbc65a6cbe2b978c3bfb367 | /Homework5/vector.cpp | ec8201c908ef66b4f0d1d96741ed4ffac3b4b705 | [] | no_license | Lebron-WEI/OpenGL | 71b227b1097770c0d94f5e8ac7a78ae9e6229c61 | 99cb80cbe84f3ca44c24c3e2c026d0fd0b5ea1c4 | refs/heads/master | 2022-03-05T22:55:00.949069 | 2019-11-17T12:38:32 | 2019-11-17T12:38:32 | 217,489,872 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,510 | cpp | vector.cpp | #include "vector.h"
Vector::Vector()
{
}
Vector::~Vector()
{
}
Vector::Vector(float posX, float posY, float posZ)
{
x = posX;
y = posY;
z = posZ;
}
Vector Vector::operator+(Vector v)
{
return Vector(x + v.x, v.y + y, v.z + z);
}
Vector Vector::operator-(Vector v)
{
return Vector(x - v.x, y - v.y, z - v.z);
}
Vec... |
84531d294b99a5c62930b1f32894b26454211418 | 6930cbc7f72d4086352b17b2895c1c7c0effc8c0 | /Hmwk/Assignment_5/Savitch_9thEd_Chap5_Prob04_FtMConvChoice/main.cpp | dd1ce821babae271506d66c5c580d53b5df684d0 | [] | no_license | javierborja95/JB_CSC5 | 863a6366d7a2b67fd892f631dc282fab802ca862 | 29d5e8a6a5e750cb8b923b010b3ebccec3f189fb | refs/heads/master | 2021-04-12T12:03:05.969346 | 2016-07-29T17:43:40 | 2016-07-29T17:43:40 | 61,830,852 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,543 | cpp | main.cpp | /*
* File: main.cpp
* Author: Javier Borja
* Created on July 19, 2016, 4:40 PM
* Purpose: Converts ft to m or vice versa, depending on choice.
*/
//System Libraries
#include <iostream> //Input/ Output Stream Library
#include <iomanip> //Format Output
using namespace std; //Namespace of the System Librari... |
2873c55ef2396f50bc3ad5443f09683cd8413ed9 | 711b05c35211a6f733b825c413bf05ede7581821 | /ZF/ZFCore/zfsrc/ZFCore/ZFFileDescriptor.cpp | 17ede5acb1f6b5a43aae4ec9b30323c411f94bc0 | [
"MIT"
] | permissive | chmodawk/ZFFramework | 67a5232f8853febe72eae5f314a8f78a51f0c637 | cfac6ca5e71662ad2ebfc5d681f3877fe56742cd | refs/heads/master | 2021-07-18T13:10:24.849114 | 2017-10-20T09:27:20 | 2017-10-20T09:27:20 | 108,427,246 | 1 | 0 | null | 2017-10-26T15:05:18 | 2017-10-26T15:05:18 | null | UTF-8 | C++ | false | false | 12,907 | cpp | ZFFileDescriptor.cpp | /* ====================================================================== *
* Copyright (c) 2010-2016 ZFFramework
* home page: http://ZFFramework.com
* blog: http://zsaber.com
* contact: master@zsaber.com (Chinese and English only)
* Distributed under MIT license:
* https://github.com/ZFFramework/ZFFramework/bl... |
2c3456446efdde3ab261111689ea83aca81f454b | 5162cca172a82e746f19132d860dd60a56d307d6 | /AccIIIDriver/tests/AccIIIDriverMock.h | 90decee337ae25a6d107b2f9fb56a78c84ce8210 | [] | no_license | maxwellre/AccIII | 45448bdac8b44b29efbdf945e470af6f1f5834df | 3f7b9f111d97d03adda3e4a65bbcd96c0d12823d | refs/heads/master | 2021-03-27T10:04:58.160766 | 2020-09-03T16:58:38 | 2020-09-03T16:58:38 | 116,180,437 | 1 | 4 | null | 2020-09-03T16:58:40 | 2018-01-03T20:45:51 | VHDL | UTF-8 | C++ | false | false | 1,569 | h | AccIIIDriverMock.h | /*
* AccIIIDriverMock.h
*
* Inherits from AccIIIDriver.
* Mock class to access protected content during Unit Tests.
*
* Created on: Aug 25, 2020
* Author: Basil Duvernoy
*/
#ifndef ACCIIIDRIVERMOCK_H_
#define ACCIIIDRIVERMOCK_H_
#include "AccIIIDriver/AccIIIDriver.h"
class AccIIIDriverMock : public A... |
a3bc86b9db3c9392c4f9aa91cf43696d023fdc66 | 060bf587ae7b4d9188d5b14e6e46de442100f9ff | /encoderdecoder.h | 53e7016444165267667a9d1c146c3ed17746248f | [] | no_license | guysarusi2/spl3client | f32b939cb3e6c77c166f308fa597a002e34d177a | f6e395cd403393588975eb98fc6bd02b23f4adbb | refs/heads/master | 2023-02-09T16:22:47.827636 | 2021-01-06T17:15:59 | 2021-01-06T17:15:59 | 326,487,371 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 511 | h | encoderdecoder.h | //
// Created by guy on 29/12/2020.
//
#ifndef ASSIGNMENT4_ENCODERDECODER_H
#define ASSIGNMENT4_ENCODERDECODER_H
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
class encoderdecoder {
private:
//const int size;
char bytes[1024];
int len;
unordered_map<string, short>... |
9e270f114bba55bb0c71d5dcd9140692032e1db7 | b9f6b0998ee5d26e4d7ec7a67b247ad9e51b163f | /tags/5.0/thread/idleapp.cc | 736d886ce11b9ab29d5469ff003c657fcaa27d67 | [] | no_license | rbsn/FAU-BST | a7ab5255e2586d27a5979fed80e9d4726b84dfb3 | 0750fdddc8163c0fbf1a60de44dd503cf309f50f | refs/heads/master | 2021-01-25T03:48:09.815420 | 2011-07-27T10:54:20 | 2011-07-27T10:54:20 | 1,701,311 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 351 | cc | idleapp.cc | #include "idleapp.h"
// Konstruktor
void IdleApp::action () {
O_Stream idlestream;
int counter = 0;
while(1) {
idlestream << /*gotoxy(cid * 2, 100) << color(color::FG_BLACK + cid, color::BG_WHITE - cid, color::OFF) <<*/ "Idle " << cid << " on CPU " << cpu << ": "<< counter++ << endl;
for(volatile int i = 0; i... |
8f2ef2689725eb544d4edd1c77331c8c6aec43e4 | 305b9d7e4bc8ba731164fb10e53fb1e0a8d53775 | /libspindle/io/TextDataFile.h | 742153fc72e8f855073b46d15171b550351ee044 | [
"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 | 2,290 | h | TextDataFile.h | //
// TextDataFile.h
//
// $Id: TextDataFile.h,v 1.2 2000/02/18 01:31:52 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 software and
// its documentation for any purpose ... |
dd2d86c4fe9a24f45e7c05f8048b39a6ae130cc1 | a97ea4a3dd636ae1beceba387228919e609ffb5c | /Clase_prietene_si_imbricate/Clase_prietene_si_imbricate/main.cpp | 5fa2f1f3c880d9e880505ba71554dd32b1c51612 | [] | no_license | RobuRaluca/Clase-prietene-si-imbricate | 90f425daa368c9571578b3976e7d9131dc0f1bbc | 47e77dd24b669eb29e96dfcc6dbf9be05a2e625e | refs/heads/master | 2023-08-27T23:33:44.178776 | 2021-10-13T19:40:58 | 2021-10-13T19:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,657 | cpp | main.cpp | #include"Clista.h"
#include<iostream>
using namespace std;
int optiune, numar;
int main() {
Clista list;
cout << "Meniu" << endl << endl;
cout << "Introduce 1 pentru a adauga un element in lista" << endl;
cout << "Introduce 2 pentru a sterge un element din lista" << endl;
cout << "Introduce 3 pentru a elimina di... |
0af92b148aa404fce73e3da2a1b4b2fec00ee397 | 819843deb59ed8eb94738e5946a6649cc9f9e59a | /Duilib/Layout/DuiTabLayout.cpp | 0659be24dcef82d014500bae37d0a454535b4b22 | [] | no_license | guifumo/DuiLib_White | dc7fa1c96723e2056171b8adf62a688117772a17 | 62f00cfde1e8a72fd32ea712a44447006cda1297 | refs/heads/master | 2022-01-10T06:07:12.523155 | 2018-12-27T09:24:54 | 2018-12-27T09:24:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,986 | cpp | DuiTabLayout.cpp | #include "StdAfx.h"
#include "DuiTabLayout.h"
namespace DuiLib
{
IMPLEMENT_DUICONTROL(CDuiTabLayout)
CDuiTabLayout::CDuiTabLayout(void)
: m_iCurSel(-1)
{
}
CDuiTabLayout::~CDuiTabLayout(void)
{
}
CDuiString CDuiTabLayout::GetClass() const
{
return DUI_CTR_TABLAYO... |
877cfa48bc16d90b79d1ef90d0b6f69dbf8c7a04 | bc7d06038df1275710de064999c5e0a2aa4f81a7 | /July/29 July/twoNonRepeatingNumbersInAnArray.cpp | dd7cbcb17f363235762e35c7e8bc030f444464ab | [] | no_license | almas-ashruff/DSASolutions | 0da67313658239e2355a13bc14d6f3c7aad4478e | 649c536826c67fc0a0b658603b92463eb51e8d89 | refs/heads/main | 2023-07-20T00:54:00.888617 | 2021-08-12T14:26:55 | 2021-08-12T14:26:55 | 376,128,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,378 | cpp | twoNonRepeatingNumbersInAnArray.cpp | // Given an array A containing 2*N+2 positive numbers, out of which
// 2*N numbers exist in pairs whereas the other two number occur exactly once
// and are distinct. Find the other two numbers.
// https://practice.geeksforgeeks.org/problems/finding-the-numbers0215/1#
// https://www.youtube.com/watch?v=pnx5JA9LNM4
... |
1eb50d99c6715fa490895698de959b85828e1abe | 2528bec40987c7643bee32a78b1f2d2b11fb4888 | /src/morphogens/Maxwell.cpp | 712b853aef7f4cb1e0fbc9d8244ba8a85cec038a | [] | no_license | portegys/Maxwell | 7aaf9497cda49ecf8451d867918fb7dec2cd9ed1 | 254ef12f95225a76209661fcd53a0e66d10bf57d | refs/heads/master | 2020-07-15T15:06:50.169482 | 2019-08-31T20:02:03 | 2019-08-31T20:02:03 | 205,590,214 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,128 | cpp | Maxwell.cpp | /*
* This software is provided under the terms of the GNU General
* Public License as published by the Free Software Foundation.
*
* Copyright (c) 2003 Tom Portegys, All Rights Reserved.
* Permission to use, copy, modify, and distribute this software
* and its documentation for NON-COMMERCIAL purposes and without... |
ed3b5fd5c7f545e128578ce19378f6d26c518b76 | f5dc059a4311bc542af480aa8e8784965d78c6e7 | /lattices/Lattices/TiledCollapser.h | fe1e7035352401b821d95d72c5b83f77dad197fb | [] | no_license | astro-informatics/casacore-1.7.0_patched | ec166dc4a13a34ed433dd799393e407d077a8599 | 8a7cbf4aa79937fba132cf36fea98f448cc230ea | refs/heads/master | 2021-01-17T05:26:35.733411 | 2015-03-24T11:08:55 | 2015-03-24T11:08:55 | 32,793,738 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,348 | h | TiledCollapser.h | //# TiledCollapser.h: Abstract base class to collapse chunks for LatticeApply
//# Copyright (C) 1996,1997,1998
//# Associated Universities, Inc. Washington DC, USA.
//#
//# This library is free software; you can redistribute it and/or modify it
//# under the terms of the GNU Library General Public License as published ... |
074012a4c4d3c48402cabff33dfa7ab121b4aa25 | c469979c93eed823ee544fb62e3928ea2ac2f686 | /project/Unit1.cpp | 042efef380e652efdccd26669de5044a0d45aaeb | [] | no_license | lnik801l/lab6 | e241b5dde6f6573a5948872c07cdba5a86680280 | c5f5818202cdb8923ccb05cba1c13c9212d836b8 | refs/heads/master | 2023-01-29T23:35:41.319298 | 2020-12-15T19:28:29 | 2020-12-15T19:28:29 | 321,768,899 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,635 | cpp | Unit1.cpp | //---------------------------------------------------------------------------
#include <vcl.h>
#include <iostream>
#include <string>
#include <cmath>
#include "Unit1.h"
#pragma hdrstop
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resour... |
94465e3b80e896a86e0d14fe7be2b012c910f362 | 9b5acc90f8d4bad27bf618bf8605ed68d8e907f9 | /win/task_dialog.h | 51501b08cf55594747a884e5321cd628d08c46dc | [
"MIT"
] | permissive | BluTree/windows | 2847495ac58ed4fd1b703ada50d400045d8cad52 | 01dbb9cd5098f036771d79c2ed1ea5921f69f759 | refs/heads/master | 2023-03-10T07:41:42.467743 | 2021-02-17T16:09:06 | 2021-02-17T16:09:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,546 | h | task_dialog.h | /*
MIT License
Copyright (c) 2010-2016 Eren Okka
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, publish,... |
eacdb24ea25cdda40df288d886d3b6f56fa59348 | 8fe04c79865999441e65d22fe57a02383d222a00 | /PCLModeling/QResampling.cpp | 06875228292f632e901866865a6b1c9a2f567578 | [] | no_license | eglrp/oldpct | b32c8e447b8e2c131dfc67fee86f246b7d53d179 | 79e40f8fd4f355b4dfce7a87b1894371d7b1515a | refs/heads/master | 2020-04-17T13:37:33.541545 | 2018-11-01T06:22:42 | 2018-11-01T06:22:42 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,753 | cpp | QResampling.cpp | #include "QResampling.h"
#include <pcl/surface/mls.h> //最小二乘法平滑处理类定义头文件
//点的类型的头文件
#include <pcl/point_types.h>
//点云文件IO(pcd文件和ply文件)
#include <pcl/io/pcd_io.h>
#include <pcl/io/ply_io.h>
//kd树
#include <pcl/kdtree/kdtree_flann.h>
//特征提取
#include <pcl/features/normal_3d_omp.h>
#include <pcl/features/normal_3d.h>... |
dab891ee94ea6956af8af08396ffee7e12928704 | 3df39118dcdbdb479720ccefc1e0ad84999fa544 | /src/client/include/BigInteger.h | 765a9184bf2bf3ad10d4ddd3ca850faeb3695933 | [] | no_license | ajcj151/ecdl | 1b9d2aca171e44222509bbf40b373e7b02aa8b33 | 974f0674acd71d81685c2aa5dbf1b62e31b81e79 | refs/heads/master | 2020-03-28T15:22:04.766104 | 2017-07-08T20:34:13 | 2017-07-08T20:34:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,436 | h | BigInteger.h | #ifndef _BIG_INTEGER_H
#define _BIG_INTEGER_H
#include <string>
#ifdef _WIN32
#include "mpirxx.h"
#else
#include "gmpxx.h"
#endif
#define GMP_BYTE_ORDER_MSB 1
#define GMP_BYTE_ORDER_LSB -1
#define GMP_ENDIAN_BIG 1
#define GMP_ENDIAN_LITTLE -1
#define GMP_ENDIAN_NATIVE 0
class BigInteger {
priv... |
a046a367bcec923f3dd26b88842d38a5baf7b6e9 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch.alternative.numerics/eulerVortex.cyclic.twitch.moving/1.86/T | 03ddb00e0d52ec25ee9f365d1a0961e80be0e010 | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 75,631 | T | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
a31256056405370c0fc6e6e231faf1dea964d9ed | 1956af138784d983b812ef71b683a0c54c7f4a63 | /集合运算/集合运算.cpp | 118d79032de97d748b315a8749aca1331aefa251 | [] | no_license | wangzilong2019/lan-qiao | e46e6668ba1e7ef3a0b8ef69cb1bda41ac704642 | d742a5cac56413ce46b0206edfb4422f35b33276 | refs/heads/master | 2020-09-09T15:26:39.297956 | 2020-01-13T13:30:22 | 2020-01-13T13:30:22 | 221,482,997 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 838 | cpp | 集合运算.cpp | #include<stdio.h>
#define MAX 1000
int main(){
int a[MAX],b[MAX],n_temp[MAX],c_temp[MAX];
int n,m,i,j,k,temp;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
scanf("%d",&m);
for(i=0;i<m;i++){
scanf("%d",&b[i]);
}
int p=0;
int q=0;
int flag;
for(i=0;i<n;i++){
flag=0;
for(j=0;j<m;j++){
if(a[... |
f52270444ac702d9c92fbbe6c0cdda2b89584d99 | 2e6487397358d85e6f317ef320cd37a075bea06d | /unittest/main.cpp | a80e6ffe292a42f8af4904c42cf7b32fb9d99376 | [
"Apache-2.0"
] | permissive | ericyeungcode/huobi_swap_Cpp | 26aa617707d9d3415bfb30bcbac9366aade1e561 | f316cc1cfa349752f95e9289950a9d3c804d57b2 | refs/heads/master | 2022-12-08T17:45:10.556775 | 2020-08-27T10:45:44 | 2020-08-27T10:45:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 448 | cpp | main.cpp | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
#include <gtest/gtest.h>
#include "TestGetAccount.h"
#include "TestErrorResponse.h"
#include "TestDecimal.h"
#include "TestSubscribeO... |
a23cc1e072a821a712e8729362d3b54c2d8dc0a1 | 44289ecb892b6f3df043bab40142cf8530ac2ba4 | /Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/inputmethodservice/CExtractButton.cpp | 43a8deb3efb4d3d3b10ac1f67bcdf6ad8cdd27b4 | [
"Apache-2.0"
] | permissive | warrenween/Elastos | a6ef68d8fb699fd67234f376b171c1b57235ed02 | 5618eede26d464bdf739f9244344e3e87118d7fe | refs/heads/master | 2021-01-01T04:07:12.833674 | 2017-06-17T15:34:33 | 2017-06-17T15:34:33 | 97,120,576 | 2 | 1 | null | 2017-07-13T12:33:20 | 2017-07-13T12:33:20 | null | UTF-8 | C++ | false | false | 2,041 | cpp | CExtractButton.cpp | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// 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
//
// ... |
6abd2b0ba9e5bee002d87ec9bfc37382ec464cea | 8a632e4647c7b882f1aa795791d35d1ae4a29714 | /Textbook/Chapter7/二维指针.cpp | 2f201a643bff305d2a67544ba375b13e13be94b1 | [] | no_license | david990917/CPP-PROGRAMMING | f392fdd18d67559a99fb2265531dd66871a3597b | ec6a0a645cd22f8cbcbec1a8329f0da663d141ef | refs/heads/main | 2023-01-04T06:43:47.351981 | 2020-10-30T22:45:45 | 2020-10-30T22:45:45 | 308,758,402 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 280 | cpp | 二维指针.cpp | #include <iostream>
using namespace std;
int main() {
int x = 15;
int* p = &x;
int** q = &p;
const char* city[] = { "aaa","bbb","ccc" };
const char** pointer;
for (pointer = city; pointer < city + 3; ++pointer) { cout << *pointer << endl; }
return 0;
}
|
efd7acc3c45f5095b7a64a1e02ba400b8043f900 | 2d483bdb041c3e0f9ebecbf826bdf195274d8b1c | /smash.cpp | 93c566518256c2c0bdc4b2194fe0d288c8fbfd8a | [] | no_license | Ofir-Shechtman/234123-Operating_Systems-Smash_Project | 677f13b617c814df689b5e51f9620cd7725bccde | 2416e577eefd0711c055dcc63a2042df96747562 | refs/heads/master | 2023-05-26T00:51:49.744762 | 2020-05-05T17:15:08 | 2020-05-05T17:15:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,503 | cpp | smash.cpp | #include <iostream>
#include <csignal>
#include "Commands.h"
#include "signals.h"
#include "system_functions.h"
int main(int argc, char *argv[]) {
setbuf(stdout, nullptr); //TODO remove
struct sigaction alarm = {{alarmHandler}};
alarm.sa_flags = SA_RESTART;
alarm.sa_handler = alarmHandler;
if (sig... |
8af8c4e33371b67aa262bd32e6610f09592314b5 | 64ba6948ef57f16a511a6ec1bea21a3f24aea2df | /include/app_utils/type_name.hpp | 6a10d4517bdcd3a60848820efcd4b23c2e612d88 | [] | no_license | Guillaume227/app_utils | aad0b1494f2d49ca73c84fff3e9dcbca60d7e6cc | 51fc252632894fde188b58ac2c9bbb8a77f61165 | refs/heads/master | 2023-08-23T14:46:52.427902 | 2023-07-24T10:12:16 | 2023-07-24T10:12:16 | 168,242,234 | 0 | 2 | null | 2022-06-23T14:29:51 | 2019-01-29T22:51:01 | C++ | UTF-8 | C++ | false | false | 1,895 | hpp | type_name.hpp | #pragma once
#include <string_view>
#include <string>
#include <typeinfo>
#include <array>
namespace app_utils {
std::string_view parseTypeName(std::string_view paramName, bool minimal = false);
template<typename T>
std::string_view typeName(bool minimal = false) {
return parseTypeName(typeid(T).name(), minimal);
... |
74b4671379dd197b2f055b6a25a8b1669741bedb | 530b659f67a287b5fd47d8f862df9479f204630a | /2.12/2.12/2.12.cpp | fd58100291106eb81cb293aca4fdca4be326c334 | [] | no_license | senpao51/promising | 8e1d3f7f82c4c6910acc4fddae480074219ee020 | 9f1e41e36193da8f0e59af39f15c32b55a4835d6 | refs/heads/master | 2021-07-10T09:28:32.631575 | 2020-09-29T13:26:25 | 2020-09-29T13:26:25 | 201,902,814 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,055 | cpp | 2.12.cpp | #define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <stdlib.h>
using namespace std;
//int main()
//{
// int i = 0, a = 0;
// while (i < 20)
// {
// for (;;)
// {
// if ((i % 10) == 0)
// break;
// else
// i--;
// }
// i += 11; a += i;
// }
// cout << a << endl;
// return 0;
//}
typedef struct s... |
8f0cfd75e09c4e8186ec1fab1b3e9cfc3f3dca99 | 9e99fd66b5b7bff602b30ca937e929627dcc366e | /uWater_MBED/mbedConnectorInterface/api/TickerResourceObserver.h | 3d548476a55daf549f317538ddde6246effe8d31 | [] | no_license | jiwu14/uWater | acdd9a2eb5e7476028efa3c8a6f4372777867404 | e8c33d8cb4acd6dc397afab031dee9bc4f08fc82 | refs/heads/master | 2021-01-22T17:57:43.597980 | 2015-06-10T18:23:42 | 2015-06-10T18:23:42 | 37,214,530 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,303 | h | TickerResourceObserver.h | /**
* @file TickerResourceObserver.h
* @brief mbed CoAP DynamicResource Ticker-based observer (header)
* @author Doug Anson/Chris Paola
* @version 1.0
* @see
*
* Copyright (c) 2014
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... |
5833a3452671db8194b4db45d32cb904b4b62b67 | ea7a0fdea3872e70412b971ef12b5b58dc093302 | /TitleProject_Cpp/0520_检测大写字母.cpp | 972cbf42bbeea37f6601bf87b2468b46b99b4214 | [] | no_license | Xnco/Data-Structures-and-Algorithms | 3328e364c3edf71b62a8fc52bff9d34807059a71 | e2c370c4d94ee0231ae9af1172b06ada7543452c | refs/heads/master | 2021-06-28T02:21:52.443892 | 2020-10-01T06:23:41 | 2020-10-01T06:23:41 | 155,956,604 | 12 | 2 | null | null | null | null | GB18030 | C++ | false | false | 1,325 | cpp | 0520_检测大写字母.cpp |
#include "pch.h"
#include "DataStructure.h"
#include <iostream>
#include <string>
#include <stack>
#include <vector>
#include <algorithm>
#include <map>
using namespace std;
#pragma region 520_检测大写字母
/*
给定一个单词,你需要判断单词的大写使用是否正确。
我们定义,在以下情况时,单词的大写用法是正确的:
全部字母都是大写,比如"USA"。
单词中所有字母都不是大写,比如"leetcode"。
如果单词不只含有一个字母,只有首字母大... |
a043ce58c71143028d1496288d0476767aa63f50 | 47247c8cf74b5c833dc55e3e62b11da7b6cc9a8d | /EnemyClass.cpp | df03041626f9583ddf7f342883ca6177fbaacecc | [] | no_license | BenAbdul/tripping-octo-dangerzone | 5eaa5b8a465eaab00f594d79d2f3ee5c612cb0ee | e3c3165a836d3e21dcf74fc3fffddc930d69ad80 | refs/heads/master | 2016-09-06T12:21:40.691379 | 2014-04-13T13:47:48 | 2014-04-13T13:47:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,370 | cpp | EnemyClass.cpp | #include"EnemyClass.h"
#include"Declarations.h"
int CurrentID = 0;
Enemy::Enemy()
{
xPos = rand () % 5500 + 500;
yPos = rand () % 5500 + 500;
CurrentID++;
ID = CurrentID;
Random = (rand () % 80 + 20) / 10;
if ( PlayerXVel > 19 && PlayerX < 4400 && LazyFlag2 == false)
{
xPos = PlayerX + 900;
yPos = PlayerY;... |
f8a08c5efe7e607b12ea6a2b25755e85776e4af8 | 1ff891783726d340433cbcfe2a3139ae935de6bf | /NAudio/Source/NAudio/ControlChangeNotifier.cpp | 72ee2931dc1a9009980aad9c677077299846e0f6 | [] | no_license | ctmartinez1992/NAudio | 133336236b5a71345274d5414b5073b0b2855d21 | cb4f446d66c5c606331c05a2fa090b74c1a8caba | refs/heads/master | 2021-01-20T04:02:04.640469 | 2017-04-27T17:47:32 | 2017-04-27T17:47:32 | 89,624,822 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,293 | cpp | ControlChangeNotifier.cpp | #include "ControlChangeNotifier.h"
namespace NAudio {
namespace NAudio_DSP {
ControlChangeNotifier_::ControlChangeNotifier_() :
outputReadyToBeSentToUI(false)
{
}
ControlChangeNotifier_::~ControlChangeNotifier_() {
}
void
ControlChangeNotifier_::computeOutput(const SynthesisContext_& context) {
... |
0d8e37f0e57f7c0fdb7e436b9eb9af0925cef190 | 2ecd4792f9a76ed3b0aa8bbbe568a881d6f675e1 | /01 - naveGL/src/inimigo.cpp | 5c63720ae9db5a3fa46cf1c96e00bfe39e5fe67d | [] | no_license | andersori/Computacao-Grafica | 1daa33811f6bbe0ce91c18598ae166df8fea454c | 4c6c3c22c60445e0d7d8466cdffc9c865d2c82ac | refs/heads/master | 2020-03-14T04:12:52.398424 | 2018-04-28T23:06:40 | 2018-04-28T23:06:40 | 131,437,216 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,109 | cpp | inimigo.cpp | #include "inimigo.h"
#include <QtOpenGL>
Inimigo::Inimigo()
{
this->vertices = new float*[4];
for(int i=0; i < 4;i++)
this->vertices[i] = new float[3];
set_vertice_1(-0.08, 0.0, 0.0);
set_vertice_2(0.08, 0.0, 0.0);
set_vertice_3(0.08, 0.1, 0.0);
set_vertice_4(-0.08, 0.1, 0.0);
set... |
4f8c99ccaec7a8c6cc2cf6f8ee6054d020bc1acd | 5c925f3600b26707cf653c4add72e6cc80082be2 | /filezillaclient/clien/src/interface/verifycertdialog.h | 732de4ed76d1cf5a00b123fb1893e3b13435158a | [] | no_license | ljx0305/fileZilla | 52100ad9b41882d78372232de3801ed449db9408 | d88d83c8b8bd39c0636166ba9a2911435c8fab63 | refs/heads/main | 2023-06-18T01:16:35.811661 | 2021-07-12T17:15:03 | 2021-07-12T17:15:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,730 | h | verifycertdialog.h | #ifndef __VERIFYCERTDIALOG_H__
#define __VERIFYCERTDIALOG_H__
#include "xmlfunctions.h"
class wxDialogEx;
class CVerifyCertDialog : protected wxEvtHandler
{
public:
CVerifyCertDialog();
virtual ~CVerifyCertDialog();
bool IsTrusted(CCertificateNotification const& notification);
void ShowVerificationD... |
67b24a30c4caa2120ae9db9eab1d92270c780c9b | 80cacc31954b7d44f1485913fbcf8259460bd01b | /Codeforces/CF 781C.cpp | 106bd46e69e70a55f34e4eb314fe0adecc07719f | [] | no_license | ConnorZhong/ACM | 67918b881bafb13fe1b733b0b157365f23d40f1e | d3588b3a5241465e9ac132f9efab655424e06ad1 | refs/heads/master | 2021-04-28T23:33:07.400120 | 2020-02-24T16:57:50 | 2020-02-24T16:57:50 | 77,731,351 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,387 | cpp | CF 781C.cpp | #include <iostream>
#include <cstdio>
#include <vector>
#include <cstring>
#include <map>
#include <cstdlib>
#include <cmath>
#include <string>
#include <algorithm>
#include <set>
#include <stack>
#include <queue>
#include <utility>
#include <bitset>
#define fi first
#define se second
#define rep(i,a,b) for (int i=(a);... |
32f307117d9523d326db5fa3fa91c2def691ea8f | 64a53394a163316e429d41fe4590fba24fbd1817 | /Silence.cc | 0363506f4364e25502414b5298f61007fe179f16 | [] | no_license | stephaniewhoo/Sorcery-game | 623ea3015eacfc967f1108301c009aa1dc770906 | dca235bddfdca416dc0c78a341e00a03e8b26430 | refs/heads/master | 2021-05-12T17:10:34.971974 | 2018-01-11T02:25:00 | 2018-01-11T02:25:00 | 117,038,250 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 365 | cc | Silence.cc | #include "Silence.h"
#include <iostream>
using namespace std;
Silence::Silence(Player *owner): Enchantment{ "Silence", "Enchantment", "Enchanted minion cannot use abilities", 1, owner, 0, 0 } {}
Silence::~Silence() {}
void Silence::activate(shared_ptr<Card> c) {
cout<<"using silence"<<endl;
c->silence();
}
void... |
b6bd3a723c65c7fca7dfc0dd1a4ccd20baaa3797 | d5b3aae4177c1dcb58a18eebe56dd3fe59bda0ff | /BridgePattern/BridgePattern.h | 4720231eb5c8b56eb1b2cbac058df6eefa2eddc3 | [] | no_license | xfc1939/DesignPatterns | 3c2058e485b74faa513793e20bd30e81015dbf4a | e7b872b9a0f1c9ee762a0e6032cf9faa0338c5e2 | refs/heads/master | 2020-03-20T13:58:59.093903 | 2018-08-26T04:15:13 | 2018-08-26T04:15:13 | 137,472,136 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,322 | h | BridgePattern.h | //
// Created by xfc on 2018/8/3.
//
#ifndef DESIGNPATTERNS_BRIDGEPATTERN_H
#define DESIGNPATTERNS_BRIDGEPATTERN_H
/*
* 桥接模式
*/
#include <iostream>
class Implementor {
public:
Implementor() = default;
virtual ~Implementor() = default;
virtual void oper() = 0;
};
class ImplementorA :public Implementor {... |
5151e08e6ab2d263f67d341553eeca925f452099 | f7f5564041e9a7e700ccfd53ffbc3f5fa7d2e35c | /src/scanner/src/ModelPlaque.cpp | 02e60b3a9fa6f6e68804a9658a256ac5a3275894 | [] | no_license | rishihahs/3d_scanner | 34e0a51cd4fca616825c67a40cbbfdff189ee9af | ec20e2f474298f6bc3746c4d27ed95dff9a03491 | refs/heads/master | 2020-03-22T16:46:25.923916 | 2018-05-19T06:56:31 | 2018-05-19T06:56:31 | 140,350,281 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 925 | cpp | ModelPlaque.cpp | #include "ModelPlaque.h"
#include "mapping_calibration/HomCartShortcuts.h"
using namespace Eigen;
ModelPlaque::ModelPlaque(double width, double height)
: _modelPC2D(createModelPlaque(width, height)),
_modelPH2D(addARowOfConst(_modelPC2D, 1.0)),
_modelPC3D(addARowOfConst(_modelPC2D, 0.0)),
_model... |
2b73037f1ff0bd4a73102fb6bea4e409dafa90ff | 2e6bb5ab6f8ad09f30785c386ce5ac66258df252 | /project/HappyHunter/Core/SceneNode.cpp | e454bdc6bcc2d93d48a1782b4fe49916b00910f7 | [] | no_license | linfuqing/happyhunter | 961061f84947a91256980708357b583c6ad2c492 | df38d8a0872b3fd2ea0e1545de3ed98434c12c5e | refs/heads/master | 2016-09-06T04:00:30.779303 | 2010-08-26T15:41:09 | 2010-08-26T15:41:09 | 34,051,578 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,148 | cpp | SceneNode.cpp | #include "StdAfx.h"
#include "SceneNode.h"
using namespace zerO;
CSceneNode::CSceneNode(void) :
m_pParent(NULL),
m_bIsTransformDirty(false)
{
D3DXMatrixIdentity(&m_LocalMatrix);
D3DXMatrixIdentity(&m_WorldMatrix);
if( GAMEHOST.GetScene() )
GAMEHOST.GetScene()->AddChild(this);
}
CSceneNode::~CS... |
163d6204e675d0042938a0038686585173de892f | 9a1e18c88790eb05dfcf4a8f6ef50ade8ff4f731 | /objcLib/test/testMany/tmp/byYear2.cpp | be6705884a2a06456ae771fb4de8d2ee6e8f880b | [] | no_license | CodeFarmsInc/QSP | 25d6af4d5bfc064f115ade014a39290f7cc02149 | 031c9fe2ee4008fce3837ed08bff1f6511c26b15 | refs/heads/master | 2021-01-25T14:58:32.496669 | 2018-03-04T01:13:45 | 2018-03-04T01:13:45 | 123,725,986 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,970 | cpp | byYear2.cpp | class Student;
class Took;
void byYear_Aggregate2::addHead(Student *p, Took *c){
if(c->ZZds.ZZbyYear.parent){
printf("byYear.addHead() error: Child=%d already in byYear_Aggregate2\n",c);
return;
}
c->ZZds.ZZbyYear.parent=p;
byYear_LinkedList2::addHead(p,c);
}
... |
f2898dccb76162d786cf6abaafab5e2f7f0e454b | 235e80327fdc5b25b6474c2e6a4427e83751a4a6 | /bomb.cpp | fe9857c1b5bdd3df9ff3a7c50f148cf380c9341f | [] | no_license | NeeXxx/noUI | 4026ede9f2ccff3e4c100f21f25c241fc4c33279 | b94813e229497d26e0eeed424e40b864032c1103 | refs/heads/master | 2020-12-02T17:39:11.771676 | 2017-07-10T07:31:48 | 2017-07-10T07:31:48 | 96,405,063 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 521 | cpp | bomb.cpp | #include "bomb.h"
bomb::bomb(QFrame* parent,int tx,int ty,int tp,player* str):
QFrame(parent),x(tx),y(ty),power(tp),setter(str)
{
timer.start(1500,this);
}
void bomb::timerEvent(QTimerEvent* event)
{
if(event->timerId()==timer.timerId())
{
tryExplode();
}
}
//<<<<<<< HEAD
void bomb::setE... |
33eb69fd914fd992bb3eb67938d8a26459aaa46e | 654d82abbe33802ed5ef65990ac05d22b4e1aab3 | /tests/benchmark.cc | d76b145e2611d2b041e73bb6d2de3ec5433702f1 | [] | no_license | walac/split-rectangle-cpp | 41de705f2fa5388a7e64da25161a29991c859468 | 6052d013de0f767736259ccbc81b3230bf8ed157 | refs/heads/master | 2023-02-21T20:47:55.586448 | 2021-01-17T14:50:10 | 2021-01-18T15:46:06 | 328,672,118 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 924 | cc | benchmark.cc | #include <random>
#include <vector>
#include <algorithm>
#define CATCH_CONFIG_MAIN
#define CATCH_CONFIG_ENABLE_BENCHMARKING
#include <catch2/catch.hpp>
#include "split_rect.h"
constexpr auto SEED = 13607;
constexpr auto N = 500;
template<typename T>
std::vector<Rect<T>> gen_data() {
using rect_t = Rect<T>;
... |
d0b8cda68e40a3155996f791195aafa7f2cf5156 | c696a3030c9ed5d2c62909d0b83f34758f1d2b44 | /game/screen_audiodevices.cc | 0f6abf202e0893ab5bff4c2e9b4cec4c2e6b719b | [] | no_license | ycaihua/performous | 26209baea1e3e52241212fcd86674d3bd0f6961e | 3d5f01392b15ae5c9686ea357c7ad6fa81c1faed | refs/heads/master | 2020-12-29T00:01:10.133960 | 2015-06-25T13:47:37 | 2015-06-25T13:47:37 | 39,230,284 | 1 | 0 | null | 2015-07-17T02:12:22 | 2015-07-17T02:12:21 | null | UTF-8 | C++ | false | false | 9,074 | cc | screen_audiodevices.cc | #include "screen_audiodevices.hh"
#include "configuration.hh"
#include "controllers.hh"
#include "theme.hh"
#include "audio.hh"
#include "i18n.hh"
#include <boost/thread.hpp>
#include <boost/bind.hpp>
namespace {
static const int unassigned_id = -1; // mic.dev value for unassigned
static const float yoff = 0.18; /... |
8070f32b84e3286be690d1c5da4c3b75cc6eb3a9 | c27d0b92516043a57fe53f79ef64505541c3b54c | /Project1/Project1/Craft.cpp | cc6675a3bdee675fcc3206131af03324edebde2e | [] | no_license | hhhJG/metallurgy | 11843f8682465d25c48b4f3c203ee368fa209669 | d8a188555735248dd86076c03720033000a6f96c | refs/heads/master | 2021-01-10T10:40:59.328301 | 2015-12-19T06:18:56 | 2015-12-19T06:18:56 | 46,651,017 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,320 | cpp | Craft.cpp | #include "Craft.h"
#include "DataOperation.h"
#include "Solution.h"
#include "PriOperationData.h"
#include "MySqlDeal.h"
#include <string>
#include <list>
#include <vector>
#include <iostream>
#include <math.h>
#include <fstream>
Craft::Craft()
{
gCraftInfor.gGrayStand = 10;
gCraftInfor.gKeepWarm = 1;
gCraftInfo... |
99e35dee6553a8ea000f02f93924a844da0da9dc | 1bef9dbb11d31415d5e86c440f7dcbd79bbca363 | /IR_Switch_4_Relays_on_PCB_001a.ino | 7842481b3c9d052b73d13a68dc37b3b4666ce955 | [] | no_license | ErneyBob/4-relays-IR-control | 6c6dbc48a63ab9a4938625a3a89c5ac4a693bb50 | ff1c44f914b2211b685de6f9601512c92b1233d0 | refs/heads/master | 2020-06-15T23:11:10.443354 | 2019-07-05T13:54:25 | 2019-07-05T13:54:25 | 195,417,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,836 | ino | IR_Switch_4_Relays_on_PCB_001a.ino | // P02 Infrared remote control 4 relays on PCB board
#include <IRremote.h>
IRrecv irrecv(9);
decode_results results;
uint32_t val, irkey[17] =
{
16580863, 16613503, 16597183, 16589023, 16621663, 16605343, 16584943, 16617583, 16601263,
16593103, 16625743, 16609423, 16615543, 16591063, 16623703, 16607383,... |
041e5ebc0cbb7736a714a015c4712cafda24c2c3 | b457e46523b344a1d3863bd28c1b742729765510 | /finddup.cpp | 7a85a958973afb93e6d0bea021989db5f04700a1 | [] | no_license | Novicei/pfa | a31068becb1299309198d51b863d2bbd91d10a7b | 5505a0c92c163b3a561544a169809f3bf20b332a | refs/heads/master | 2023-08-14T23:51:24.730004 | 2021-09-24T07:54:13 | 2021-09-24T07:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,507 | cpp | finddup.cpp | // cl /EHsc /O2 /openmp matcher.cpp Landmark.cpp Database.cpp lib/WavReader.cpp lib/Timing.cpp lib/ReadAudio.cpp lib/BmpReader.cpp lib/Signal.cpp lib/utils.cpp lib/Sound.cpp .\PeakFinder.cpp .\PeakFinderDejavu.cpp Analyzer.cpp
#include <stdio.h>
#include <cstdint>
#include <algorithm>
#include <string>
#include <stdexc... |
96862f070e09ab56c53e977a770b33af83ea0f63 | c301b797d4d8e3dcc967648da460ab07bcbb66ab | /Source/Bomb.h | 1051b338239a9b173826eb9784d9831afaf0b466 | [] | no_license | guillaumep-nvizzio/DiceInvaders | feb179868c34b409470495af9d59fb61f094cc56 | ad99dfcfab4459e7ca899d9e9b0b8db673eccaa5 | refs/heads/master | 2020-12-02T18:06:47.747126 | 2018-11-19T14:26:02 | 2018-11-19T14:27:21 | 96,476,415 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 540 | h | Bomb.h | #ifndef __BOMB_H__
#define __BOMB_H__
#include "resource.h"
#include "DiceInvaders.h"
#include "GameObject.h"
/**
* Bomb: The projectile from aliens
*
**/
class Bomb : public GameObject
{
public:
Bomb(class Game* the_game);
~Bomb();
virtual bool Create(int pos_x, int pos_y);
virtual void Destroy();
virtu... |
dcc82f08fe4b90852bc34fd1b7a9d344774dc9a3 | d3390faaf4a661412b6d173b8964566d97fc81a8 | /addons/taser/configs/CfgAmmo.hpp | 10c2fafdae5a9880f2f00e611314881d53c0dacb | [
"MIT"
] | permissive | TacticalBaconDevs/TBMod | ce6b6dcdbc887fa642db93ce63433ba14e94f88c | acc54a6014758f2fcff7d305a816b3cb95c4180b | refs/heads/master | 2022-11-03T10:14:12.769187 | 2022-10-28T14:01:56 | 2022-10-28T14:01:56 | 142,904,755 | 11 | 2 | MIT | 2022-10-28T14:01:58 | 2018-07-30T17:05:47 | C++ | UTF-8 | C++ | false | false | 254 | hpp | CfgAmmo.hpp | /*
Part of the TBMod ( https://github.com/TacticalBaconDevs/TBMod )
Developed by http://tacticalbacon.de
Author: Eric Ruhland
*/
class CfgAmmo
{
class B_45ACP_Ball;
class TB_ammo_taser : B_45ACP_Ball
{
hit = 0;
};
};
|
090e161d3f80207fbe11e72700d8789de3b4e22c | e3322a1a988228884de6893c5806bf32f5ae921b | /Threading/Threading/Threading.cpp | 0c7578a77b6e9c51117f9ff02cbfffac64faa1ab | [] | no_license | Cornelius27584046/ITRW316-Projects | 9720db3baa753a3dc09478a9ba2a1bdb5c807be0 | 67b0c30cd2e1737461361629cdc517438f85d634 | refs/heads/master | 2020-05-28T00:41:42.851958 | 2019-05-27T12:09:59 | 2019-05-27T12:09:59 | 188,834,528 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | cpp | Threading.cpp | // Threading.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <thread>
#include <iostream>
#include <chrono>
using namespace std;
void t1()
{
for (int i = 1; i <= 10; i++)
{
cout << "A" << i << endl;
}
}
void t2()
{
for (int i = 1; i <= 10; i++)
... |
4108cba6e18880a70db9f49be757c80cd3474f84 | a81c4b073e27e54041e9e86485b415fdf45d7960 | /src/loader/functionloader.h | a721b5bf18e1c717625c3b88b28159cf7943a0a6 | [
"MIT"
] | permissive | svenslaggare/StackJIT | eaf2905ee8dad95b70769b64353a0069c8be6ee9 | 7702bd016e4daa9f6999d0e26120e1e7555cc45c | refs/heads/master | 2020-04-06T06:20:02.888369 | 2017-10-15T19:48:50 | 2017-10-15T19:48:50 | 21,389,165 | 21 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,366 | h | functionloader.h | #pragma once
#include <string>
#include <vector>
#include "loader.h"
namespace stackjit {
class VMState;
class FunctionDefinition;
class ManagedFunction;
class ImageContainer;
////Represents a function loader
//namespace FunctionLoader {
// //Generates a definition for the given function
// void generateDefin... |
4d984499df619055e9c602b5ed818398585fe926 | 01c2c11843b6adc0e54c6403ac8de41013bfdacc | /include/block-maker/Physic/FixtureFactory/IBlock.hpp | 545d25f6788ccf767e48ffe8a930fca687e0f95a | [] | no_license | adrian19lb/block-maker | b7271cef3e1bc919e9b788c2d275bb60b505d2fd | 97a7990fc8f02c8c3a8f3a869892b01dc697da60 | refs/heads/master | 2020-08-31T07:53:48.864229 | 2019-10-31T12:55:25 | 2019-10-31T12:55:25 | 218,640,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 458 | hpp | IBlock.hpp | #ifndef IBLOCK_HPP_INCLUDED
#define IBLOCK_HPP_INCLUDED
#include <block-maker/Physic/FixtureFactory/FileFixtureFactory.hpp>
#include <block-maker/Loader/Xml/Xml.hpp>
#include <block-maker/Resource/Binder/XmlResource.hpp>
namespace bm::physic {
class IBlock : public FileFixtureFactory<std::vector, float> {
pu... |
a3079ef89eff6418a5277aae61e8f85d697d6b17 | e5b98edd817712e1dbcabd927cc1fee62c664fd7 | /Classes/message/Decoding/task/RequestTaskList.cpp | ef675f55dc4236891ec701f21700874a16e2a908 | [] | no_license | yuangu/project | 1a49092221e502bd5f070d7de634e4415c6a2314 | cc0b354aaa994c0ee2d20d1e3d74da492063945f | refs/heads/master | 2020-05-02T20:09:06.234554 | 2018-12-18T01:56:36 | 2018-12-18T01:56:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | cpp | RequestTaskList.cpp | //
// RequestTaskList.cpp
// FightPass
//
// Created by zhangxiaobin on 15/9/28.
//
//
#include "RequestTaskList.h"
RequestTaskList::RequestTaskList()
{
}
RequestTaskList::~RequestTaskList()
{
}
ByteStream* RequestTaskList::encodingData()
{
MessageSendI::encodingData(SCENSE_CLIENT_TASK_TaskCommonPageR... |
4b9a713f9c2f65f18c5e098b2451719fa9d9ffe5 | 065852abb89ebd78660b784030ea2fa175ba00d7 | /Functions/RoundingTest.cpp | 4045ee6419a61d9a15a869d7c84d65a3067f9714 | [] | no_license | Raj6713/BasicCpp | ed2c7858c0af31807cef0937f9ff3a964ad08264 | 47ada849826faf08b4e8668deb6cafbfa0e9c643 | refs/heads/master | 2021-07-05T13:09:52.729329 | 2017-09-29T21:48:11 | 2017-09-29T21:48:11 | 103,849,456 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 910 | cpp | RoundingTest.cpp | //This class will show the working of the rounding class
#include<iostream>
using namespace std;
#include "Rounding.h"
int main()
{
Rounding rp;
float num;
int choice;
char ch;
do
{
cout<<"Enter number: ";
cin>>num;
rp.setNumber(num);
cout<<"1>To Integer"<<endl;
cout<<"2>To tenth"<<endl;
... |
dda3427b20f508d3351789451f718fee1e3d8729 | c43b0d1e041d004d1fa8e1469f57b62d4d4bea88 | /garnet/lib/vulkan/tests/vkprimer/common/vulkan_shader.cc | dbd5f7054b01c7b5968786772d4449da0ab57b56 | [
"BSD-3-Clause"
] | permissive | ZVNexus/fuchsia | 75122894e09c79f26af828d6132202796febf3f3 | c5610ad15208208c98693618a79c705af935270c | refs/heads/master | 2023-01-12T10:48:06.597690 | 2019-07-04T05:09:11 | 2019-07-04T05:09:11 | 195,169,207 | 0 | 0 | BSD-3-Clause | 2023-01-05T20:35:36 | 2019-07-04T04:34:33 | C++ | UTF-8 | C++ | false | false | 1,305 | cc | vulkan_shader.cc | // Copyright 2018 The Fuchsia 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 "vulkan_shader.h"
#include <fstream>
#include "utils.h"
bool VulkanShader::ReadFile(const std::string& file_name,
s... |
203dfacc12953d30c63f712bf1c427ddaf36bc4f | 2056302cc35c8d73eaa1518d49715ef1695b9162 | /interfaces.h | f2d518b3d04b0a8d9a202384b32e9fd5c8448a54 | [] | no_license | adamb924/AcousticWorkspace | e3624b5703eba5ee66327f70d6d8fc8e1464a36f | 99dc981e9a34162a9795f8ae9434dc668ea35403 | refs/heads/master | 2020-03-25T06:32:44.263138 | 2014-07-24T21:09:42 | 2014-07-24T21:09:42 | 13,478,639 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,647 | h | interfaces.h | #ifndef INTERFACES_H
#define INTERFACES_H
#include <QtPlugin>
#include <QList>
#include <QStringList>
#include <QVariant>
#include <qwt_series_data.h>
class WaveformData;
class SpectrogramData;
/*! \class AbstractMeasurement
\ingroup Plugin
\brief Base class for other abstract measurement classes
This ... |
817a95575923ce36bb9a1b69812e9f32e9658b01 | eb1315ed71378aef035e7f20f14703aa7c0c85fd | /LiveRange.h | ab2dc611dffa869c606655fd141df1a3db0f50c9 | [] | no_license | yuzhenyang/llc-olive | 8036712eb797e256a8a4897ebdba5a717c668430 | 48d2a575a6d7913604e7bde5d51085443d8b1982 | refs/heads/master | 2021-01-19T04:33:14.322166 | 2016-04-13T00:28:31 | 2016-04-13T00:28:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,346 | h | LiveRange.h | #ifndef LIVERANGE_H
#define LIVERANGE_H
#include <string>
#include <vector>
#include <climits>
#include "assert.h"
class LiveRange {
public:
// these used by simple register allocator
int startpoint;
int endpoint;
std::vector<int> innerpoints;
// these below used by register allocator
int pos... |
c97e9b44f7fd17f89ade3c0bdb3f8a72c2114a66 | 924f21b8066b0167d28f6545ba4f3729b084602a | /src/yds_render_geometry_channel.cpp | 3c1c976e0ee37c1dc37e12b26a110bd003181520 | [
"MIT"
] | permissive | ArwinSaleh/delta-studio | 34a3bd24b07679d3f105430f113f489d4532ffdf | a06675cfa7c8981093bb7da6cec204c2216a4371 | refs/heads/master | 2023-03-04T09:10:35.447322 | 2021-01-30T21:55:18 | 2021-01-30T21:55:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 299 | cpp | yds_render_geometry_channel.cpp | #include "../include/yds_render_geometry_channel.h"
ysRenderGeometryChannel::ysRenderGeometryChannel() : ysObject("RENDER_GEOMETRY_CHANNEL") {
m_name[0] = '\0';
m_offset = 0;
m_format = ChannelFormat::Undefined;
}
ysRenderGeometryChannel::~ysRenderGeometryChannel() {
/* void */
}
|
8ca64d6821a00a7ca4020b4af15abc5bc3b93917 | 37137e3e5b5d739f911e1beb4d4cd6c485874256 | /codes/CppPrimer/ch03_Strings_Vectors_and_Arrays/exercise_3_19.cpp | a38de27cf3a4f76da992a900216b5a740e49f885 | [] | no_license | demon90s/CppStudy | 3710f6188d880ec1633df8be79f8025453103c94 | f3dc951b77bd031e7ffdef60218fe13fe34b7145 | refs/heads/master | 2021-12-01T14:42:34.162240 | 2021-11-27T16:10:21 | 2021-11-27T16:10:21 | 104,697,460 | 157 | 63 | null | null | null | null | UTF-8 | C++ | false | false | 498 | cpp | exercise_3_19.cpp | /*
* 练习3.19:如果想定义一个含有10个元素的vector对象,所有元素的值都是42,请列举三种不同的实现方法。哪种方法更好呢?为什么?
*/
/*
* 如下,第一种更好。因为10个元素都一样。参见书本p91。
*/
#include <vector>
using std::vector;
int main()
{
vector<int> ivec1(10, 42);
vector<int> ivec2{42, 42, 42, 42, 42, 42, 42, 42, 42, 42};
vector<int> ivec3;
for (int i = 0; i < 10; ++i)
ivec3.pus... |
5e1837866b5e9eb2695171cdee135d219a24cd7e | 3907daeec7e645284133c5f286bd5b6f8c456de9 | /project3/jinn/heap.cpp | 643a93d68ff1054eb9c515ab4e7aa5faeec8429f | [] | no_license | nanxinjin/CS251 | bc45c3906d4af5ca6dc2854c3febc66e09ceb4e8 | 3f68cc47529d51e7534df9a9128e518ef5e0ccfa | refs/heads/master | 2021-01-22T01:55:40.491840 | 2016-09-20T20:27:22 | 2016-09-20T20:27:22 | 68,748,655 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,309 | cpp | heap.cpp | #include <iostream>
#include <cstdlib>
#include "heap.h"
using namespace std;
bool TreeNode::operator < (const TreeNode& anotherNode) {
// TODO : add your logic here.
return false;
}
bool TreeNode::operator > (const TreeNode& anotherNode) {
// TODO : add your logic here.
... |
1bd2c6220d426ed39d2a59836e2d3797512da224 | 8c8a8af67076b2b7ac9808d614be8e40728d7854 | /jni/Graphics/Sprite/SpriteBatcher.cpp | ec7e3664c7b4946621baf0a820ba8db27644bb7f | [] | no_license | MihaiBabiac/Framework | 694d5185c6a394c0a453f9812db327550612eb67 | ad97160286a7fb69d9f3667e2ed736c0a2a0dbfe | refs/heads/master | 2021-05-28T10:14:12.218635 | 2013-07-25T09:51:31 | 2013-07-25T09:51:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,459 | cpp | SpriteBatcher.cpp | /*
This file is owned by Murtaza Alexandru and may not be distributed, edited or used without written permission of the owner
When using this work you accept to keep this header
E-mails from murtaza_alexandru73@yahoo.com with permissions can be seen as valid.
*/
#include "SpriteBatcher.hpp"
#include "G... |
20428e0bd49a1c1f9686a15beb166fd810fbae8e | 2688dd4eca965e1d1d90e0e795f0835bbd286366 | /celsius to fahrenhiet.cpp | fa93a99967a3ff9d217a7de3b0d19592ec9b289f | [] | no_license | Shihab90-ad/Convert-celcius-to-fahrenhiet | 5e086e009cee52d8e45dfc698c7e5bb7fc2cd936 | e1f4a83c989397d16669bcdb4511221ee30c5bfa | refs/heads/master | 2021-02-15T15:21:10.017924 | 2020-07-18T12:37:56 | 2020-07-18T12:37:56 | 244,910,796 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 355 | cpp | celsius to fahrenhiet.cpp | /*@Shihab Sadekatul
Matric no:1821581
lab #1 Section #3*/
#include<iostream>
using namespace std;
int main()
{
int a=32;
double celsius,fahrenhiet,x=9,y=5;
cout<<"Enter a degree in Celsius: ";
cin>>celsius;
fahrenhiet=(x/y)*celsius+32;
cout<<celsius<<" Celsius is "<<fahrenhiet<<" Fahrenhiet"<<endl;
... |
eadabc77f83490929cb6c9ae9558eda578589b76 | fe02127ac0573368ccff190a43925154ce115d73 | /mergeintervals.cpp | 965c968588f1faca1e2a642ac4395bed8c7cec56 | [] | no_license | tariyal/vector-codes | 00405413dd9c64411727251e7ae68a56bce7ee52 | ec617c9c2d03bac41ed16c2891bfbda9e26e4630 | refs/heads/master | 2021-01-19T10:58:43.351134 | 2015-05-12T00:31:15 | 2015-05-12T00:31:15 | 27,711,545 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | cpp | mergeintervals.cpp | class Solution {
public:
static bool comp(const Interval a,const Interval b )
{
return a.start < b.start;
}
vector<Interval> merge(vector<Interval> &val) {
std::sort(val.begin(),val.end(),comp);
vector<Interval> ans;
if(val.size()==0)
return ans;
ans.p... |
0538954c7143ebac120b89c850c00c53068b0add | ac423c5206dfd0281418897cbebb2b2191e43684 | /WarzoneGame/GameObservers.cpp | a3543306d150c4fed9c40e8a1265186ed5d034a5 | [] | no_license | lisa7012/Warzone_Game | 7cf58d5546b2e75d5cce21217232053730ef5b1e | 2729791044e1501f22504a5f977dea4a004a0358 | refs/heads/main | 2023-08-16T00:54:37.307056 | 2021-10-08T18:23:29 | 2021-10-08T18:23:29 | 415,085,298 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,642 | cpp | GameObservers.cpp | #pragma once
#include <stdio.h>
#include <string>
#include "GameObservers.h"
#include "Map.h"
#include "GameEngine.h"
#include "Player.h"
/*--------------------
* ---Phase Observer---
* --------------------
* PhaseObserver Class
*/
//Default Constructor
PhaseObserver::PhaseObserver() {
}
//Destructor
... |
27667295ff3ea350ab0f58e1baf187a9695e6f41 | aa5881562b8fd6d9bb59ba7e186cc9e385686bf8 | /python_engine/source_code.hpp | 08da33dfe6e20e52f08ccdff0ad23203e599cc78 | [] | no_license | engineerkatie/infra-ml2 | 0f6fb643f92743cf2f1763fb543f48717ebca50b | d5fcf191025dfa6ee36b5dec654fcd5e97eed3db | refs/heads/master | 2021-01-06T13:48:43.092534 | 2020-02-18T15:57:06 | 2020-02-18T15:57:06 | 241,347,645 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,867 | hpp | source_code.hpp | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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 Licen... |
6921130145100dab021bea66381c96da2f5d96c3 | 2269bb3201ad683fd99b1a799b28d0cf2c59f1af | /LintCode/Wood Cut.cc | bb311ac16f705538f74995b5969980be13f85bfe | [] | no_license | TissueFluid/Algorithm | 1353ad7133c1f5482abc002ae6d81a1d4d32905a | befcc8e2014d0c83520f0250497e4f3828ac3120 | refs/heads/master | 2021-01-10T15:13:17.822059 | 2017-02-27T06:58:09 | 2017-02-27T06:58:09 | 43,377,990 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 919 | cc | Wood Cut.cc | /*
* Wood Cut
* Binary Search
*/
#include <iostream>
#include <vector>
using namespace std;
int woodCut(vector<int> L, int k) {
int L_size = L.size();
if (L_size < 1) {
return 0;
}
long long max = L[0];
for (auto i = 1; i < L_size; ++i) {
if (L[i] > max) {
max = L[i];
}
}
long... |
bdbbf96cdca8e9e2ac68f995d03d242a53788697 | c98a75a0441994ab11195bf4d5cb068fd9e94026 | /examples/physics/FullCMS/Geant4/include/MyDetectorConstruction.hh | 229756358ebc23e65d7cd838c6c7be3c6e04caaf | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | amadio/geant | 7d7237c8c48855cdf9225eb864366a4bdad6e125 | a46790aa9eb3663f8324320a71e993d73ca443da | refs/heads/master | 2020-04-06T04:35:44.331502 | 2019-08-27T15:23:58 | 2019-08-27T15:23:58 | 59,431,197 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,637 | hh | MyDetectorConstruction.hh |
#ifndef MyDetectorConstruction_h
#define MyDetectorConstruction_h 1
#include "G4VUserDetectorConstruction.hh"
#include "G4GDMLParser.hh"
#include "G4String.hh"
class G4VPhysicalVolume;
class G4FieldManager;
class G4UniformMagField;
class MyDetectorMessenger;
class G4ScalarRZMagFieldFromMap;
class MyDetectorConstr... |
3b8dc1991892d7aa79e33794922ff21fa601bc3e | 098406f61bce623021c94c3a5d779e90041ec34e | /Trees/charTester.cpp | 4e1873185167385147f1bcade6962afc631821e8 | [] | no_license | mirob2005/CPP_Data_Structures | 730d45f04503f200472f00db95f40192a90c9457 | 118db02848afd190f5e8a1eacbc55429cb9a5c42 | refs/heads/master | 2020-05-30T19:22:39.072901 | 2013-07-24T22:38:31 | 2013-07-24T22:38:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,550 | cpp | charTester.cpp | /*
* Michael Robertson
* mirob2005@gmail.com
* Completed: 7/17/13
*
* File: charTester.cpp
* Tests the basic operations of BST.h using chars
*
*/
#include <iostream>
#include "BST.h"
using namespace std;
template<class T>
void testCopyConstructor(BST<T> copyBST){
cout << "Adding d to BST in function: \... |
fd31be36bfad4d79e00648b7fafb5de9c2806176 | abb1767094fc3e91787a08a96544ac6656049ccb | /MFCTool/MonsterTool.h | 86dae7988706abeee4de667ccad1138bbb6e92bc | [] | no_license | cjy5595/JusinMapToolTeamHomeWork | 53d0b09aa4169123f75d8bd7a0981fbca56ae3ed | 5c961fec21fbffe335b8021b8923341d37deec0f | refs/heads/main | 2023-01-21T18:37:26.874963 | 2020-12-04T05:49:43 | 2020-12-04T05:49:43 | 317,226,750 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 450 | h | MonsterTool.h | #pragma once
// CMonsterTool 대화 상자입니다.
class CMonsterTool : public CDialog
{
DECLARE_DYNAMIC(CMonsterTool)
public:
CMonsterTool(CWnd* pParent = NULL); // 표준 생성자입니다.
virtual ~CMonsterTool();
// 대화 상자 데이터입니다.
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_MONSTERTOOL };
#endif
protected:
virtual void DoDataExchange... |
9f091e2eb6c0db4246f574ec41fe47a73a487daf | dff5aa031a90e93f7ca7aed4ec589b251c053893 | /Server/extensions/buffer_lazy/buffer_lazy.cpp | 156f685727a5f5681a1aa50541c2e177435c9334 | [] | no_license | rotators/fo2238 | a614912db85ea66801020fe70c3e36bc27c0aa66 | 5d15427e9470fc22fa031529bebc53bddf7c0f88 | refs/heads/master | 2023-05-11T11:16:12.546327 | 2021-02-23T21:25:55 | 2021-02-23T21:25:55 | 11,121,442 | 22 | 27 | null | 2023-04-26T10:56:14 | 2013-07-02T09:27:11 | AngelScript | UTF-8 | C++ | false | false | 2,651 | cpp | buffer_lazy.cpp | /*
*
* WHINE TEAM
* We Had Ini, Now Engine
*
*/
#ifndef __BUFFER_LAZY__
#define __BUFFER_LAZY__
#define SKIP_PRAGMAS
#define FO2238
#ifdef FO2238
#include "../fonline2238.h"
#else
#include "../fonline_tla.h"
#endif
#ifdef __MAPPER
#error "This is NOT mapper dll"
#endif
#include <string>
using namespace st... |
c17b71319df1bfb393625f335c2f55a2851dc6a4 | 354f4ce35b000236210e00345782891919a8d07a | /CTALK/Exercise1Solutions.cpp | 47c3ff23428d0bf28fe68f92bd2b4a1abd9b4c34 | [] | no_license | slipschutz/CPPTalk2015 | 24c0cb214be6604c4f4cef4a6257c7891f082879 | 11d7f798337c1baf02a36d3342c6cc5ab665002d | refs/heads/master | 2021-05-30T02:09:15.611222 | 2015-11-13T15:51:52 | 2015-11-13T15:51:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,945 | cpp | Exercise1Solutions.cpp |
#include <iostream>
#include <stdio.h>
using namespace std;
void PrintSpacerLine(char c){
for (int i=0;i<60;i++){
printf("%c",c);
}
printf("\n");
}
int main(){
cout<<endl<<endl;
int MyEasierArray[]={1,6,3,8};
for (int i=0;i<4;i++){
cout<<"MyEasierArray["<<i<<"] = "<<MyEas... |
83b442a199f6e7160878fc14b7787b775ae2d2b2 | 299adc750db8d36bacdaa0ba49eedd507301459a | /ESPAlarmController/test/AlarmPersistentState_unittest.cpp | 40fb18e5b6d31d86f09cc74a05dd1708f5724406 | [] | no_license | jludwig75/ESPAlarmSystem | c5db08a14fd93e8d114c56730bb9c91ad9f01601 | 7b51fb5371b60713af393618e6d43b448130ac52 | refs/heads/master | 2023-03-22T11:02:29.101574 | 2021-03-20T16:54:40 | 2021-03-20T16:54:40 | 338,482,844 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,427 | cpp | AlarmPersistentState_unittest.cpp | #include <catch.hpp>
#include "AlarmPersistentState.h"
#include <SPIFFS.h>
SCENARIO( "Test AlarmPersistentState", "" )
{
REQUIRE(SPIFFS.format());
AlarmPersistentState persistState;
REQUIRE(persistState.begin());
REQUIRE(persistState.get() == AlarmPersistentState::AlarmState::Disarmed); // Default ... |
fcc0018e44900a1cdcb41379e063aa32d8b9f548 | f1a65cb6b467b6852b043945f25249387df70630 | /gldcore/fsm.cpp | 1001451469deee6a3798ecea08c71d0f9e06d4b6 | [
"BSD-3-Clause"
] | permissive | aivanova5/gridlabd_891 | 73e815c2de94ae025840916a12782a548eefa1b4 | d16870f70678383d3cde43905f57ac53bae0a280 | refs/heads/master | 2020-03-22T06:13:49.074615 | 2018-10-24T17:46:08 | 2018-10-24T17:46:08 | 139,619,366 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,162 | cpp | fsm.cpp | // $Id: fsm.cpp 4984 2014-12-19 22:05:13Z dchassin $
// Finite State Machine
//
#include <ctype.h>
#include "module.h"
#include "output.h"
#include "fsm.h"
#define MAXSTATES 256
static statemachine *first_machine = NULL;
static unsigned int n_machines = 0;
double cast_double(PROPERTYTYPE ptype, void *addr, size_t in... |
d8d0a8296defcd23c17e65653cae42f1b2556829 | 05e1f94ae1a5513a222d38dfe4c3c6737cb84251 | /Mulberry/branches/users/shared/externals/v4.1d1/XMLLib/Source/XMLSAXlibxml2.cp | da445e9cd39d8866dcfcbb22befe824a7a38b2e1 | [
"Apache-2.0"
] | permissive | eskilblomfeldt/mulberry-svn | 16ca9d4d6ec05cbbbd18045c7b59943b0aca9335 | 7ed26b61244e47d4d4d50a1c7cc2d31efa548ad7 | refs/heads/master | 2020-05-20T12:35:42.340160 | 2014-12-24T18:03:50 | 2014-12-24T18:03:50 | 29,127,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,433 | cp | XMLSAXlibxml2.cp | /*
Copyright (c) 2007 Cyrus Daboo. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless re... |
700d6fd3a327353833a045e0f4ee625147e33243 | 0cc681e190afaf1d3055c3f7fa9327d2ae6632ae | /Templates/template-list.cpp | 7be7f31f119fe5c57bf5e3c37b991c1b13519af4 | [] | no_license | rtspeaks360/dsa-implementations | 06ffb7cede0b62ac3ed70a3af2b5e7881f19e2e4 | 437d0035adaaea58cd071c07f85923acc97dba9f | refs/heads/master | 2021-09-16T05:36:10.358330 | 2018-06-17T07:41:25 | 2018-06-17T07:41:25 | 103,792,527 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 887 | cpp | template-list.cpp | /*
* @Author: sherlock
* @Date: 2017-08-04 19:22:08
* @Last Modified by: sherlock
* @Last Modified time: 2017-09-14 11:32:16
*/
#include <iostream>
#include <list>
#include <algorithm>
using namespace std;
int main(){
list<int> l;
l.push_back(0);
for(int i = 0; i< 10; i++){
l.push_back(i + 1);
}
for(l... |
db2a2e6d517c693b6fe35a31dba353ba4e0ea8e1 | 9b5116e70ae1cbc10a058747bc2c36bc4159158d | /filterdoubleFcb/Data.cpp | b0ee5c2754e0bc659a82e6aa5b6ee3fdd7836d33 | [] | no_license | wjcsharp/SfilterdoubleFcb | 37da44edff73fc453cded1af1cb7e8458c8706dd | 0257b1b22ba302fa3150dae9148acaee95dac018 | refs/heads/master | 2020-06-05T03:20:22.594044 | 2019-06-09T17:02:32 | 2019-06-09T17:02:32 | 192,295,926 | 1 | 0 | null | 2019-06-17T07:25:12 | 2019-06-17T07:25:11 | null | GB18030 | C++ | false | false | 21,431 | cpp | Data.cpp | #include "Data.h"
#include "Utils.h"
#include "Common.h"
#include "WDK.h"
#include "Data_Extern_C.h"
//#include "Log.h"
PCHAR ImportFunName = "StartGuard";//"InitDll";
CHAR DllNameStr[MAX_PATH] = { 0 };// = "Guard.dll";
CHAR DllNameStr64[MAX_PATH] = { 0 };// = "Guard64.dll";
//CHAR DllNameStr[MAX_PATH] = "C:\\G... |
b08f51cdc50bef1706919c64444311334a1d177c | 9ffbb822643b959ec0e3f56669e29c582c76b266 | /OOP WORKSHOPS/Workshop 7/in_lab/Hero.cpp | b7c63f09caaa08532063925ed7fc8160257b7c20 | [] | no_license | ihalemi/Object-Oriented-Software-Development-C- | c1d7410c5312ab254f5173de9755c7b4a2b9e5aa | b74a1a0eb01f76e181848f2182e44020958ed863 | refs/heads/master | 2021-07-13T03:49:05.791288 | 2020-06-22T01:53:55 | 2020-06-22T01:53:55 | 134,783,380 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,921 | cpp | Hero.cpp | #include <iostream>
#include <iomanip>
#include "Hero.h"
using namespace std;
namespace sict {
Hero::Hero()
{
m_name[0] = '\0';
m_health = 0;
m_attack = 0;
}
Hero::Hero(const char* name, int health, int attack)
{
if (name[0] != '\0' && health > 0 && attack > 0) {
strncpy(m_name, name... |
176b227b30e7161d98ac502b150c69aec3eefcb6 | 33d1a04576a111496076f2295a977f28df3ea86e | /include/hera/metafunction.hpp | 4ec4b2d9db0ebb1f0a05ee1b900f7be960b02b20 | [
"MIT"
] | permissive | frengels/hera | 5f6bf60427eb956c94e05a9d2833a2373cca5b67 | c043df47bd0c8315cfdfc39a41ede8f3785b1a5d | refs/heads/master | 2022-12-09T23:30:07.893461 | 2020-09-01T01:27:48 | 2020-09-01T01:27:48 | 203,093,555 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 174 | hpp | metafunction.hpp | #pragma once
namespace hera
{
template<typename T>
concept metafunction = requires
{
typename T::type;
}
&&std::is_trivial_v<T>&& std::is_empty_v<T>;
} // namespace hera |
bb3e690554ca52a8eda0d257d6ec7ce3e4a69fba | bf66a97682a10e020e311538b2be16978761db57 | /BSTree.h | d25767f393157f5eb0299cc88d42e6a71d76036e | [] | no_license | Luis-Lamat/Integer-Binary-Search-Tree | 5b0e90435260185545d83e17451f20fc9ddbcd29 | 477ca9d897568743c732071cf39eddca6e960fd8 | refs/heads/master | 2021-01-10T18:25:39.133599 | 2014-04-02T06:04:07 | 2014-04-02T06:04:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,768 | h | BSTree.h | #include <iostream>
#include <queue>
#include <stack>
using namespace std;
#include "tnode.h"
class BSTree //integer Binary Search Tree
{
private:
tnode *root;
void preorden(tnode *r);
void inorden(tnode *r);
void postorden(tnode *r);
void print_Leaf(tnode *r); //recursive leaf printing method
void dest(... |
a93673e2a8a16b1c88526475194673ec630c131b | 4b18667dc583b6fb07abbca596bb44586219b80e | /src/TopicModel/SLDAModel.hpp | b3e749e585eb4b12a6150f283004cb6325fa5ca6 | [
"MIT",
"BSD-3-Clause",
"MPL-2.0"
] | permissive | bab2min/tomotopy | 720e5a242773104d364a94d645ce8fa97f16a627 | 6ef712c63bad504801a981a4a52aa938c80f0bda | refs/heads/main | 2023-08-17T08:21:38.380731 | 2023-07-16T12:17:14 | 2023-07-16T12:17:14 | 186,155,463 | 512 | 71 | MIT | 2023-03-29T19:29:06 | 2019-05-11T16:19:29 | C++ | UTF-8 | C++ | false | false | 15,530 | hpp | SLDAModel.hpp | #pragma once
#include "LDAModel.hpp"
#include "../Utils/PolyaGamma.hpp"
#include "SLDA.h"
/*
Implementation of sLDA using Gibbs sampling by bab2min
* Mcauliffe, J. D., & Blei, D. M. (2008). Supervised topic models. In Advances in neural information processing systems (pp. 121-128).
* Python version implementation usin... |
1dc7cb402e3807e38bc0508783d5759d36c7f435 | 93e058780c3fd4d7f40dbcac263fb58f63b51b6f | /libmuscle/cpp/src/libmuscle/close_port.cpp | 06516efeefaa42fb2ed39c6d9cce39c685246460 | [
"Apache-2.0"
] | permissive | multiscale/muscle3 | 2b6ffc34240b92bb2ade3e28e4dde1b6d3f8e3e7 | be8b21cfe97218d2a941b63d5762387716a9b3f8 | refs/heads/develop | 2023-07-12T06:12:03.510684 | 2023-07-06T20:11:41 | 2023-07-06T20:11:41 | 122,876,985 | 24 | 15 | Apache-2.0 | 2023-09-01T19:47:16 | 2018-02-25T21:07:17 | Fortran | UTF-8 | C++ | false | false | 600 | cpp | close_port.cpp | #include <libmuscle/close_port.hpp>
#include <libmuscle/mcp/ext_types.hpp>
using libmuscle::_MUSCLE_IMPL_NS::mcp::ExtTypeId;
namespace libmuscle { namespace _MUSCLE_IMPL_NS {
ClosePort::ClosePort()
: Data()
{
char * zoned_mem = zone_alloc_<char>(1);
zoned_mem[0] = static_cast<char>(ExtTypeId::close_p... |
a83836dcb5c4d7e536bb772a143ba7e3f3b22c3c | bbe148281c401589bc0cb07a22287fc8c7fc8bc7 | /BrainApp/BrainApp/Image.cpp | 36eb1a381d3693d309c2fb635c894883a41c44cf | [] | no_license | EdwardSeley/BrainApp | 1d4e3014f8923f4581e96c63cc67186beb22637d | fd5b92c96db446e5d8bed9ab5c49c1860b58e443 | refs/heads/master | 2021-01-19T14:50:26.173612 | 2017-05-07T21:14:03 | 2017-05-07T21:14:03 | 88,190,328 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,055 | cpp | Image.cpp | #include <BrainApp\Image.h>
#include <SDL\SDL.h>
#include <SDL\SDL_image.h>
#include <iostream>
#include <string>
using namespace std;
void Image::load(char * fileLocation, SDL_Renderer * pRen, int x, int y, int numOfFrames)
{
coordinates = make_pair(x, y);
SDL_Surface * pSurface = IMG_Load(fileLocation);
pRender... |
ec80ecb6cd4e1b3e6873f81d00e054a6d08b09bd | ff12aeb63a73fe48b8fcf94f33287db251f31fc1 | /git_hub_test/git_hub_test/bbb.hpp | 2a9be36a55cefd086ba33ae3abb579dc5ddd4dbb | [] | no_license | JIN-EX/git_hub_test | 68bc4ecb4e714231367f4f53750c145165caa3e0 | 8d92157bf22ca1d94bfe03a19b5be801c02cfebf | refs/heads/master | 2021-01-10T17:55:17.155755 | 2015-12-03T01:57:54 | 2015-12-03T01:57:54 | 47,298,831 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | hpp | bbb.hpp | //
// bbb.hpp
// git_hub_test
//
// Created by jin on 2015. 12. 3..
// Copyright © 2015년 test. All rights reserved.
//
#ifndef bbb_hpp
#define bbb_hpp
#include <stdio.h>
#include <iostream>
class bbb{
public:
bbb();
virtual ~bbb();
private:
void func_B();
protected:
};
#endif /* bb... |
67ae4865763f36d5da46ae312ffada4c8a167df0 | 3a1613edc9921e28780a0f6297b1b248009e7147 | /MNUM_Codes/bisection.cpp | 5805ee54cc9598d0d43efc9db841966ac65565b7 | [] | no_license | diogoabnunes/MNUM | f1db744f809a5a1649653b3b3d39de07c5a18630 | 26ed9ff00c28453b4ab6ef55194d633ded4be58a | refs/heads/master | 2020-12-08T07:48:46.775575 | 2020-03-04T15:27:41 | 2020-03-04T15:27:41 | 244,935,663 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 849 | cpp | bisection.cpp | // Bisection
#include <iostream>
using namespace std;
#define ERROR 0.00001
void abs_error(double exato, double aproximado) { cout << (exato - aproximado) * 100 << " %" << endl; }
void rel_error(double exato, double aproximado) { cout << (exato - aproximado) / exato * 100; }
double f(double x) { return x * x * x * ... |
cb959f5441186217062215f543502dfcdd2a080b | f843cdc661a3cfbe0d2abac25ae5175bd1049bf4 | /Test.cpp | 89142b8e85502d4f870056b7a333ff5466c89893 | [
"MIT"
] | permissive | miniprime1/bit | 14ff15ca044a7442b19853d340ad9360e6a6da82 | 147432a55ade5a68d060b96f3d39c14c3a05aa21 | refs/heads/main | 2023-09-01T20:17:55.744198 | 2021-10-25T07:03:55 | 2021-10-25T07:03:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | cpp | Test.cpp | #include <cstdio>
#include "Bit.h"
int main() {
Bit bit1 = 2;
Bit bit2 = bit1.GetFlipBit();
printf("%d %d\n", bit1, bit2);
if (bit1 != bit2) {
printf("not equal\n");
}
else if (bit1 == bit2) {
printf("equal\n");
}
return 0;
} |
15ad502a22cc5f5e8536126f86ff1e8b5b61bd44 | 5ca4a482d1dcd4d0feb17dea5da072d37b5f571b | /Dungeon/Dungeon/cPlayer.h | bb2ac45e0249c2c7f3d5f28eac7601ae2652089c | [] | no_license | Dave-SSU/UnitProjects | 3e628c86dd2fd309bf907561077b664c32fa2600 | 3811fc7ce7bf307f3468ce1c72bfa488bcb214b5 | refs/heads/master | 2021-01-11T00:02:05.060707 | 2017-04-05T20:10:02 | 2017-04-05T20:10:02 | 70,743,851 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 352 | h | cPlayer.h | #pragma once
#include "cInput.h"
#include "cGameObj.h"
class cPlayer : public cInputHandler, public cGameObj
{
public:
cPlayer();
virtual ~cPlayer();
virtual bool handler(const INPUT_RECORD& event);
void init();
void resetPos(const cPos& newPos);
private:
int nFood = 0;
... |
45bac6459f9887a574088101adf067332f10c682 | 16eb53173ece55d5c35c511ee9f7140a4c3fcb61 | /maopaoSort.cpp | dd5ccd02bc188b617106e4d0eae22391dd3204db | [] | no_license | Iyiren/SortStudy | 4103ccf2bb0e90c7c205dfb3c08a316bb5162696 | d41d2ede9e03b1bc2f490944a40d484a9bdd3f13 | refs/heads/master | 2020-03-27T07:51:28.436144 | 2018-08-27T13:22:21 | 2018-08-27T13:22:21 | 146,197,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 366 | cpp | maopaoSort.cpp | void maopaoSort(unsigned int array[], unsigned int size)
{
int i, j;
i = j = 0;
for (i = 0; i< size; i++)
{
for (j = size - 1; j > i; j--)
{
unsigned int temp = array[j-1];
if (array[j-1] >= array[j])
{
array[j-1] = array[j];
array[j] = temp;
}
}
}
i = 0;
while (i < size)
{
cout << ... |
35f60e086d3be1d53b5585e217217906e7d4df32 | f5055330eb2a66958e9c6a88e1c981cf5373bc87 | /src/channel/hdr/codec_int.hpp | 7afe3a675d6c29f5d0b762e4d1b8c6648d738586 | [] | no_license | snikulov/vidstream | 4c671c476c2b2478c78bd088a54e899cd665f6ab | 76689e96d0201056092f937221ef66b1c997aa9f | refs/heads/master | 2022-08-02T15:30:07.984508 | 2020-05-29T10:06:26 | 2020-05-29T10:06:26 | 262,551,939 | 0 | 0 | null | 2020-05-29T06:54:46 | 2020-05-09T11:03:43 | BitBake | UTF-8 | C++ | false | false | 356 | hpp | codec_int.hpp | #ifndef CODEC_INT_HPP__
#define CODEC_INT_HPP__
#include <boost/shared_ptr.hpp>
namespace itpp
{
class Channel_Code;
}
class itpp_codec
{
public:
itpp_codec(int n_=7, int t = 3);
std::string encode(uint8_t src);
uint8_t decode(std::string src);
private:
int n_;
int t_;
boost::shared_ptr<itpp:... |
30d9a9b716f3f5f74f477606c1147071b416db3c | 6b77b97fdc3383d0d24715393deb107a122aa333 | /DS/DS/Employee.cpp | d003412920c9033e46d025225028984329c742b2 | [] | no_license | eslamabdelbasset1/Bank-Management-System- | ac65ef76d4e13f7462346419dc2995bcd6167193 | b399d1b1bbf50a51569d46aa05263b02414662bb | refs/heads/master | 2023-01-06T20:14:17.696418 | 2020-11-08T00:29:03 | 2020-11-08T00:29:03 | 310,954,793 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,918 | cpp | Employee.cpp | #include "Employee.h"
#include "users.h"
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
#include <Windows.h>
using namespace std;
void Employee::clrscr()
{
cout << string(100, '\n');
}
void Employee::createAccount()
{
system("color 3");
cout << "\n\tEnter your First name: ";
cin >> fna... |
df209a18e411a8bfb4d50ee2f2950aee108c0a8a | 0d094ff96f957ad70882b5206eeedce7400a1980 | /Host_client/Player.cpp | 0749c44f6d4bf3dd1c0de28d2197de92213231ba | [] | no_license | Glowny/Korttipelimoottori | 28bc6c75e707fbe98004c68a597dc8b93bde60f0 | eb0945bb40a40f8bb91b1b034d4f559dd4f0e46c | refs/heads/master | 2021-01-20T07:50:58.371432 | 2014-07-28T04:42:55 | 2014-07-28T04:42:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 286 | cpp | Player.cpp | #include "Player.h"
Player::Player(int n, std::string na)
{
playerNumber = n;
name = na;
}
Player::~Player(void)
{
}
void Player::addCard(Kortti k)
{
deck.push_back(k);
}
std::vector<Kortti> Player::getDeck()
{
return deck;
}
int Player::getPNumber()
{
return playerNumber;
} |
a62b9d8f515032ed12f2db167c9fc6f2a60279b0 | a5f3b0001cdb692aeffc444a16f79a0c4422b9d0 | /main/chart2/source/tools/LineProperties.cxx | 5c36d75338d3fa5fe5738b6666f61d60d21c00cc | [
"Apache-2.0",
"CPL-1.0",
"bzip2-1.0.6",
"LicenseRef-scancode-other-permissive",
"Zlib",
"LZMA-exception",
"LGPL-2.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-philippe-de-muyter",
"OFL-1.1",
"LGPL-2.1-only",
"MPL-1.1",
"X11",
"LGPL-2.1-or-later",
"GPL-2.0-only",
... | permissive | apache/openoffice | b9518e36d784898c6c2ea3ebd44458a5e47825bb | 681286523c50f34f13f05f7b87ce0c70e28295de | refs/heads/trunk | 2023-08-30T15:25:48.357535 | 2023-08-28T19:50:26 | 2023-08-28T19:50:26 | 14,357,669 | 907 | 379 | Apache-2.0 | 2023-08-16T20:49:37 | 2013-11-13T08:00:13 | C++ | UTF-8 | C++ | false | false | 6,791 | cxx | LineProperties.cxx | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
e03179ed51dcd395bd70424254fc59cf932ced70 | 6e1e0c0c5ae109c6f115045a0cd5b269b84dc816 | /Wstep_Do_Informatyki/binaryring3/main.cpp | 781213c9d045f240c9a43ebacccf718d4d33f2b6 | [] | no_license | aleqsio/Studies | 8100b79e3ec3ba3c31fbc0b5e6d389b5e0e851ce | 15baea38daee1654b829a9d036c61855e4b139dd | refs/heads/master | 2021-01-19T18:40:03.409534 | 2018-04-05T10:54:56 | 2018-04-05T10:54:56 | 88,372,880 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 692 | cpp | main.cpp | using namespace std;
#include <stdio.h>
#include <iostream>
int main()
{
while(true)
{
long n;
cin>>n;
long num[n];
long currstart;
long currend;
long middleindex;
for(long i=0;i<n;i++)
{
cin>>num[i];
}
currend=n-1;
currstart=1;
while(true)
{
middleindex=(currend+currstart)/2;
if(cur... |
c213dad5dcfd6d2eb9a1d1dcca8e81274bb3569c | c7162e7c6347372d0757de4d94e99ef1badf7bd7 | /MPI_RemovePolyLineEvent.cpp | bfbf2b5fd5044de091e24de9efd360ee19519c1d | [] | no_license | johnty/different_strokes | f2a02c5f8646b05633c33851133aa9765c6390e0 | 52679d32097579686b76fe89ef014ce377c15b13 | refs/heads/master | 2021-01-10T09:57:45.527340 | 2016-02-16T06:18:08 | 2016-02-16T06:18:08 | 51,811,076 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 407 | cpp | MPI_RemovePolyLineEvent.cpp |
//
// MPI_RemovePolyLineEvent.cpp
//
#include "MPI_RemovePolyLineEvent.h"
#include "MPI_Workspace.h"
MPI_RemovePolyLineEvent::MPI_RemovePolyLineEvent( MPI_Workspace &workspace, MPI_PolyLine const &polyline ) :
workspace_( workspace ),
polyline_( polyline )
{
// empty
}
void MPI_RemovePolyLineEvent::exe... |
7bf09a24da42c58d187b10a547a181e8a77e0613 | 13bc1bef1e25f84cb240677f0fbf5d4b1b6f8463 | /thirdparty/fast_noise_2/include/FastSIMD/SIMDTypeList.h | bb624b2d03796ec3b5296446d1b88c779c0c134c | [
"MIT"
] | permissive | Zylann/godot_voxel | 8486e8de2e36c48b94f254927c09b16e5ddb5829 | 5be2ec8243bf26b1efc2cb2488c7a4617126fad4 | refs/heads/master | 2023-08-17T04:27:37.356056 | 2023-08-11T20:42:51 | 2023-08-11T20:42:51 | 57,851,492 | 1,935 | 243 | NOASSERTION | 2023-08-02T19:08:34 | 2016-05-01T21:44:28 | C++ | UTF-8 | C++ | false | false | 999 | h | SIMDTypeList.h | #pragma once
#include "FastSIMD.h"
namespace FastSIMD
{
template<eLevel... T>
struct SIMDTypeContainer
{
static constexpr eLevel MinimumCompiled = Level_Null;
template<eLevel L>
static constexpr eLevel GetNextCompiledAfter = Level_Null;
};
template<eLevel HEAD, eLevel... ... |
3696f5af3bd6f6ddf44a9a0aef0cf690ada4fd50 | a3ae0fe9f11ad29e0b0fd4e061482f29258c7299 | /毕设/张宇轩/_74HC595/_74HC595_Arduino_Uno.cpp | 19fe93d3cec4f4cf26d142f439291460a5f49209 | [] | no_license | zyx0129/hello-world | fdc11e5ef5abff47d00b64f1807d669d69029235 | 9b9a52306c84fe5b18975cf3aa670a860b7efb9e | refs/heads/master | 2021-09-15T11:25:01.430920 | 2018-05-31T11:20:55 | 2018-05-31T11:20:55 | 110,202,860 | 0 | 0 | null | 2018-05-31T11:16:05 | 2017-11-10T04:34:13 | PHP | GB18030 | C++ | false | false | 762 | cpp | _74HC595_Arduino_Uno.cpp | #include <Arduino.h>
#include "TL_Config.h"
#include "_74HC595_Arduino_Uno.h"
_74HC595_SERIAL_TO_PARALLEL::_74HC595_SERIAL_TO_PARALLEL(){
pinMode(_74HC595_DATA_DIGITAL_OUTPUT, OUTPUT); //74HC595的14脚 数据输入引脚SI
pinMode(_74HC595_LATCH_DIGITAL_OUTPUT, OUTPUT); //74hc595的12脚 输出存储器锁存线RCK
pinMode(_74HC595_CLOCK_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.