repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
haichainLab/wallet-ios | SamosWallet/Class/Wallet/View/SAMWalletDetailBottomBar.h | //
// SAMWalletDetailBottomBar.h
// SamosWallet
//
// Created by zys on 2018/12/1.
// Copyright © 2018 zys. All rights reserved.
//
/**
钱包详情页bottombar
*/
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface SAMWalletDetailBottomBar : UIView
@property (nonatomic, copy) SAMVoidBlock backupBlock;
@propert... |
haichainLab/wallet-ios | SamosWallet/Class/Root/View/SAMLoadingView.h | //
// SAMLoadingView.h
// SamosWallet
//
// Created by jtt on 2018/12/3.
// Copyright © 2018年 zys. All rights reserved.
//
/**
开屏页
*/
#import "SAMPopupView.h"
NS_ASSUME_NONNULL_BEGIN
@interface SAMLoadingView : SAMPopupView
@end
NS_ASSUME_NONNULL_END
|
haichainLab/wallet-ios | SamosWallet/Class/Me/Controller/SAMManageWalletController.h | //
// SAMManageWalletController.h
// SamosWallet
//
// Created by zys on 2018/8/28.
// Copyright © 2018年 zys. All rights reserved.
//
/**
我的-管理钱包
*/
#import "SAMBaseTableViewController.h"
@interface SAMManageWalletController : SAMBaseTableViewController
@end
|
haichainLab/wallet-ios | SamosWallet/Class/Home/Controller/SAMHomeSideController.h | <reponame>haichainLab/wallet-ios
//
// SAMHomeSideController.h
// SamosWallet
//
// Created by zys on 2018/8/20.
// Copyright © 2018年 zys. All rights reserved.
//
/**
首页-钱包-抽屉vc
*/
#import "LGSideMenuController.h"
@interface SAMHomeSideController : LGSideMenuController
/// 选择钱包
@property (nonatomic, copy) SAM... |
haichainLab/wallet-ios | SamosWallet/Class/Home/Controller/SAMHomeMenuController.h | //
// SAMHomeMenuController.h
// SamosWallet
//
// Created by zys on 2018/8/21.
// Copyright © 2018年 zys. All rights reserved.
//
/**
首页-左侧菜单页
*/
#import "SAMBaseTableViewController.h"
@interface SAMHomeMenuController : SAMBaseTableViewController
/// 选择钱包
@property (nonatomic, copy) SAMVoidBlock selectWalletB... |
haichainLab/wallet-ios | SamosWallet/Util/Token/SAMTokenUtil.h | //
// SAMTokenUtil.h
// SamosWallet
//
// Created by zys on 2018/11/11.
// Copyright © 2018 zys. All rights reserved.
//
/**
token工具类
*/
#import <Foundation/Foundation.h>
@class SAMTokenNode;
@class SAMCoinRateInfo;
NS_ASSUME_NONNULL_BEGIN
@interface SAMTokenUtil : NSObject
/// 获取token数据
+ (void)loadTokenDat... |
haichainLab/wallet-ios | SamosWallet/Class/Wallet/View/SAMWalletNameItem.h | //
// SAMWalletNameItem.h
// SamosWallet
//
// Created by zys on 2018/8/31.
// Copyright © 2018年 zys. All rights reserved.
//
/**
创建钱包-钱包名称item
*/
#import <UIKit/UIKit.h>
@interface SAMWalletNameItem : UICollectionViewCell
/// 钱包名称
@property (nonatomic, copy) NSString *walletName;
+ (void)registerWith:(UICol... |
haichainLab/wallet-ios | SamosWallet/Class/Me/Controller/SAMAboutUsController.h | <reponame>haichainLab/wallet-ios<filename>SamosWallet/Class/Me/Controller/SAMAboutUsController.h
//
// SAMAboutUsController.h
// SamosWallet
//
// Created by zys on 2018/8/24.
// Copyright © 2018年 zys. All rights reserved.
//
/**
我的-关于我们
*/
#import "SAMBaseTableViewController.h"
@interface SAMAboutUsController... |
henryxsong/Morse-Code-Translator | main.c | //--------------------------------------------
//| HEADER DECLARATIONS |
//--------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//--------------------------------------------
//| FUNCTION PROTOTYPES |
//----------------------... |
Ulula369/2022LabSimu-201980021 | C/ejemplovolumendecono.c | /*
Autor: <NAME>
fecha: Thu Apr 14 12:38:47 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o ejemplovolumencono.out ejemplovolumencono.c
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
//definicion de constantes, y funciones de una sola line
#defin... |
Ulula369/2022LabSimu-201980021 | Laboratorio 4/problema6.c | <filename>Laboratorio 4/problema6.c
/*
Autor: <NAME>
fecha: Wed May 11 19:07:42 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o problema6.out problema6.c
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
|
Ulula369/2022LabSimu-201980021 | C/arreglosimple.c | /*
Autor: <NAME>
fecha: Thu Apr 14 22:10:19 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o arreglosimple.out arreglosimple.c
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
//la definicion de una constante para el tamanio
#define NUM 5
int main(... |
Ulula369/2022LabSimu-201980021 | Laboratorio 4/Problema2.c | /*
Autor: <NAME>
fecha: Wed May 11 10:31:37 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o Problema2.out Problema2.c
Librerias: stdio, stdlib
resumen: Este programa solicita al usuario ingresar cinco valores enteros
una vez ingresados los almacen... |
Ulula369/2022LabSimu-201980021 | problemas_programacion/problema6.c | <filename>problemas_programacion/problema6.c
/*
Autor: <NAME>
fecha: Wed May 11 18:37:54 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o problema6.out problema6.c
Librerias: stdio
resumen: Este programa solicita al usuario el número de vértices de un poligono y... |
Ulula369/2022LabSimu-201980021 | C/forywhile.c | <reponame>Ulula369/2022LabSimu-201980021
/*
Autor: <NAME>
fecha: Thu Apr 14 09:12:28 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o forywhile.out forywhile.c
Librerias: stdio
resumen: Ejemplo basico del uso de for y while en C
*/
//librerias
#include <stdio.h... |
Ulula369/2022LabSimu-201980021 | C/holamundo.c | /*
Autor: <NAME>
Fecha: 22/02/22
Compilador: gcc 9.3.0
Compilar: gcc -o holamundo holaMundo.c
Librerias: stdio
Resumen: es un ejemplo simple de el primer programa en C.
*/
//Incluir las librerias
#include <stdio.h>
//1. inicia la funcion main de tipo entero
int main() {
// <<Inicio
//2. utilizo la func... |
Ulula369/2022LabSimu-201980021 | C/arreglo2d.c | <reponame>Ulula369/2022LabSimu-201980021<gh_stars>0
/*
Autor: <NAME>
fecha: Thu Apr 14 22:15:33 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o arreglo2d.out arreglo2d.c
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
//definicion de variables par... |
Ulula369/2022LabSimu-201980021 | C/Ifswitch.c | <reponame>Ulula369/2022LabSimu-201980021<filename>C/Ifswitch.c
/*
Autor: <NAME>
fecha: Thu Apr 14 21:30:04 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o Ifswitch.out Ifswitch.c
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
#include <ctype.h>
... |
Ulula369/2022LabSimu-201980021 | C/TipoVariable.c | <reponame>Ulula369/2022LabSimu-201980021
/*
Autor: <NAME>
Fecha: 22/02/22
Compilador: gcc 9.3.0
Compilar: gcc -o TipoVariable TipoVariable.c
Librerias: stdio
Resumen: es un ejemplo simple de el primer programa en C.
*/
//incluir librerias
#include <stdio.h>
//Variables globales
//definir variables
int ... |
Ulula369/2022LabSimu-201980021 | C/newtonraphson.c | /*
Autor: <NAME>
fecha: Tue Apr 26 18:03:33 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o newtonraphson.out newtonraphson.c -lm
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
//prototipos de funciones
floa... |
Ulula369/2022LabSimu-201980021 | Segundo_parcial/Valordemoneda.c | /*
Autor: <NAME>
fecha: Thu Apr 28 16:53:58 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o Valordemoneda.out Valordemoneda.c -lm
Librerias: stdio, math, stdlib
resumen: gráfica y recta de mejor aproximación del valor del dolar estadounidense
*/
//librerias
#i... |
Ulula369/2022LabSimu-201980021 | problemas_programacion/problema5.c | /*
Autor: <NAME>
fecha: Wed May 11 18:35:39 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o problema5.out problema5.c
Librerias: stdio
resumen: Este programa lee dos números enteros para genera un rango y que
muestra todos los números primos en es... |
Ulula369/2022LabSimu-201980021 | Laboratorio 4/Problema3.c | <filename>Laboratorio 4/Problema3.c
/*
Autor: <NAME>
fecha: Wed May 11 12:25:30 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o Problema3.out Problema3.c -lm
Librerias: stdio, stdlib, math
resumen: Este programa solicita al usuario que ingrese las compoentes d... |
Ulula369/2022LabSimu-201980021 | Laboratorio 4/Problema1.c | <reponame>Ulula369/2022LabSimu-201980021<filename>Laboratorio 4/Problema1.c
/*
Autor: <NAME>
fecha: Mon May 9 23:43:04 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o Problema1.out Problema1.c
Librerias: stdio,
resumen: Se ingresará un vector con diez elemento... |
Ulula369/2022LabSimu-201980021 | EXAMENFINAL/trayectoriaCohetes.c | /*
Autor: <NAME>
fecha: Mon May 16 07:59:07 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o trayectoriaCohetes.out trayectoriaCohetes.c -lm
Librerias: stdio, math, stdlib
resumen: Este programa analiza el comportamiento de la trayectoria vertical del
... |
Ulula369/2022LabSimu-201980021 | Segundo_parcial/metodonumerico.c | /*
Autor: <NAME>
fecha: Sat Apr 30 15:18:15 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o metodonumerico.out metodonumerico.c -lm
Librerias: stdio, stdlib, math
resumen: En este programa se encuntra la raín de la función 0.1*x*x + x*log(x)
*/
//librerias
#i... |
Ulula369/2022LabSimu-201980021 | C/ejemplopuntero.c | /*
Autor: <NAME>
fecha: Tue Apr 19 12:38:44 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o ejemplopuntero.out ejemplopuntero.c
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
void main () {
// Declarar una variable y un lugar
int n = 70... |
Ulula369/2022LabSimu-201980021 | C/minimoscuadrados.c | <gh_stars>0
/*
Autor: <NAME>
fecha: Tue Apr 26 12:20:12 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o minimoscuadrados.out minimoscuadrados.c -lm
Librerias: stdio, math
resumen: Ejemplo básico para aproximación numérica de minimos cuadrados
*/
//librerias
#... |
Ulula369/2022LabSimu-201980021 | Laboratorio 4/problema5.c | /*
Autor: <NAME>
fecha: Wed May 11 19:07:30 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o problema5.out problema5.c
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
|
Ulula369/2022LabSimu-201980021 | C/funcionesbasicas.c | <gh_stars>0
/*
Autor: <NAME>
fecha: Thu Apr 14 12:18:52 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o funcionesbasicas.out funcionesbasicas.c
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
//librerias
#include <stdio.h>
int v1, v2;
//escribir ... |
Ulula369/2022LabSimu-201980021 | C/ejemploredondeodedatos.c | /*
Autor: <NAME>
fecha: Thu Apr 14 12:38:29 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o ejemploredondeodedatos.out ejemploredondeodedatos.c
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
#include <math.h>
int main(){
int exp;
double ... |
Ulula369/2022LabSimu-201980021 | Laboratorio 4/problema4.c | /*
Autor: <NAME>
fecha: Wed May 11 19:07:19 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o problema4.out problema4.c
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
|
Ulula369/2022LabSimu-201980021 | C/recursividadindirecta.c | /*
Autor: <NAME>
fecha: Thu Apr 14 12:53:19 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o recursividadindirecta.out recursividadindirecta.c
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
#include <string.h>
//Declaracion de los prototipos de l... |
Ulula369/2022LabSimu-201980021 | C/ejemploestructura.c | <reponame>Ulula369/2022LabSimu-201980021<filename>C/ejemploestructura.c<gh_stars>0
/*
Autor: <NAME>
fecha: Thu Apr 14 21:50:43 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o ejemploestructura.out ejemploestructura.c
Librerias: stdio
resumen:
*/
//librerias
#... |
Ulula369/2022LabSimu-201980021 | C/ejemploarchivos.c | <filename>C/ejemploarchivos.c<gh_stars>0
/*
Autor: <NAME>
fecha: Tue Apr 19 13:05:18 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o ejemploarchivos.out ejemploarchivos.c
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
int main ()
{
//Declara... |
Ulula369/2022LabSimu-201980021 | problemas_programacion/problema3.c | <reponame>Ulula369/2022LabSimu-201980021
/*
Autor: <NAME>
fecha: Wed May 11 18:26:47 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o problema3.out problema3.c -lm
Librerias: stdio, math
resumen: Este programa calcula la raiz entera de un número positivo N
*/
... |
Ulula369/2022LabSimu-201980021 | problemas_programacion/problema2.c | /*
Autor: <NAME>
fecha: Thu Apr 14 11:48:25 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o problema2.out problema2.c
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
//declaracion e inicializacion de variables
int x=0;
int n=0;
int max=0;
int min... |
Ulula369/2022LabSimu-201980021 | problemas_programacion/problema4.c | /*
Autor: <NAME>
fecha: Wed May 11 18:28:40 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o problema4.out problema4.c
Librerias: stdio
resumen: Este programa lee un número mayor que 1 y determina si es un número primo
*/
//librerias
#include <stdio.h>
//Se de... |
Ulula369/2022LabSimu-201980021 | C/operadores.c | <gh_stars>0
/*
Autor: <NAME>
fecha: Thu Apr 14 20:41:11 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o operadores.out operadores.c
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
//Definicion de constantes enumeradas.
enum Boolean { False, True}... |
memo/ofxMSABPMTapper | example/src/testApp.h | #pragma once
#include "ofMain.h"
#include "MSABPMTapper.h"
class testApp : public ofBaseApp {
public:
void setup();
void update();
void draw();
void keyPressed(int key);
msa::BPMTapper bpmTapper;
};
|
memo/ofxMSABPMTapper | src/MSABPMTapper.h | #pragma once
#include "MSATimer.h"
namespace msa {
class BPMTapper {
public:
BPMTapper();
// these are precalculated, and interpolated for when BPM changes
float sin1;
float sin2;
float sin4;
float sin8;
float sin16;
float cos1;
float cos2;
float cos4;
float cos8;
float cos16;
... |
Zokormazo/OpenWrt-NanoPi-R2S-R4S-Builds | package/uboot-rockchip/src/of-platdata/orangepi-r1-plus-rk3328/dt-plat.c | <reponame>Zokormazo/OpenWrt-NanoPi-R2S-R4S-Builds<gh_stars>1-10
/*
* DO NOT MODIFY
*
* Declares the U_BOOT_DRIVER() records and platform data.
* This was generated by dtoc from a .dtb (device tree binary) file.
*/
/* Allow use of U_BOOT_DRVINFO() in this file */
#define DT_PLAT_C
#include <common.h>
#include <dm... |
Zokormazo/OpenWrt-NanoPi-R2S-R4S-Builds | package/uboot-rockchip/src/board/friendlyarm/nanopi4/nanopi4.c | <reponame>Zokormazo/OpenWrt-NanoPi-R2S-R4S-Builds<gh_stars>1-10
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (c) 2020 FriendlyElec Computer Tech. Co., Ltd.
* (http://www.friendlyarm.com)
*/
#include <common.h>
#include <dm.h>
#include <env.h>
#include <hash.h>
#include <linux/bitops.h>
#include <i2c.h>
#incl... |
Zokormazo/OpenWrt-NanoPi-R2S-R4S-Builds | package/uboot-rockchip/src/include/configs/nanopi4.h | <gh_stars>1-10
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (C) Guangzhou FriendlyELEC Computer Tech. Co., Ltd.
* (http://www.friendlyarm.com)
*
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
*/
#ifndef __CONFIG_NANOPI4_H__
#define __CONFIG_NANOPI4_H__
#define ROCKCHIP_DEVICE_SETTINGS \
"stdin=se... |
Zokormazo/OpenWrt-NanoPi-R2S-R4S-Builds | package/uboot-rockchip/src/board/friendlyarm/nanopi4/hwrev.c | <reponame>Zokormazo/OpenWrt-NanoPi-R2S-R4S-Builds
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (c) 2020 FriendlyElec Computer Tech. Co., Ltd.
* (http://www.friendlyarm.com)
*/
#include <common.h>
#include <dm.h>
#include <linux/delay.h>
#include <log.h>
#include <asm/io.h>
#include <asm/gpio.h>
#include <asm... |
Zokormazo/OpenWrt-NanoPi-R2S-R4S-Builds | package/uboot-rockchip/src/of-platdata/orangepi-r1-plus-rk3328/dt-structs-gen.h | /*
* DO NOT MODIFY
*
* Defines the structs used to hold devicetree data.
* This was generated by dtoc from a .dtb (device tree binary) file.
*/
#include <stdbool.h>
#include <linux/libfdt.h>
struct dtd_ns16550_serial {
fdt32_t clock_frequency;
struct phandle_1_arg clocks[2];
const char * dma_names[2];
fdt32_... |
karan1276/fds | stack implimentation/postfixEval.c | <reponame>karan1276/fds<filename>stack implimentation/postfixEval.c
/*
Stack Header file
-using structures-
Basic function:-
init- initilizes top of empty stack
is_empty- returns 1 if stack is empty
is_full- returns 1 if stack is full
push- insert element in stack
pop- returns element from stack delets the element
dis... |
karan1276/fds | queue/queueAdt.c | <filename>queue/queueAdt.c
#include<conio.h>
#include<stdio.h>
#define MAX 50
typedef struct queue{
int data[MAX];
int front,back;
} queue;
void init(queue *ptr){
ptr->front=-1;
ptr->back=-1;
}
int full(queue *ptr){
if(ptr->back==MAX-1){
return 1;
}
else{
return 0;
}
}
void insert(queue *ptr, int elem){
... |
karan1276/fds | stack implimentation/pallindrome.c | /*
Stack Header file
-using structures-
Basic function:-
init- initilizes top of empty stack
is_empty- returns 1 if stack is empty
is_full- returns 1 if stack is full
push- insert element in stack
pop- returns element from stack
display- display content of stack
*/
#include<stdio.h>
#include<conio.h>
#include<string.h... |
karan1276/fds | sort/quick_sort.c | <reponame>karan1276/fds<filename>sort/quick_sort.c
#include <stdio.h>
#include <conio.h>
void display(int *ptr,int front, int back){
int i;
printf("\n");
for(i=front;i<=back;i++){
printf(" %d ",*(ptr+i));
}
}
int partition(int *ptr,int front, int back){
int pindex,i,temp;
//put pivot logic(start, middle, end),... |
karan1276/fds | stack/stack.h | /*
Stack Header file
-using structures-
Basic function:-
init- initilizes top of empty stack
is_empty- returns 1 if stack is empty
is_full- returns 1 if stack is full
push- insert element in stack
pop- returns element from stack
display- display content of stack
*/
#include<stdio.h>
#include<conio.h>
# define stack_si... |
karan1276/fds | sort/bubble_sort.c | #include<conio.h>
#include<stdio.h>
#include<stdlib.h>
void merge(int *ptr,int *left,int llength,int *right,int rlength){
printf("\nMerge called");
int i=0,j=0,k=0;
while((i<llength)&&(j<rlength)){
printf("\n Condition (i<llength)&&(j<rlength) is true");
if(*(left+i)<=*(right+j)){
*(ptr+k)=*(left+i);
i++... |
karan1276/fds | sort/All_sorts.c | #include<stdio.h>
#include<conio.h>
void display(int *ptr,int front,int back){
int i;
for(i=front;i<back+1;i++){
printf(" %d ",*(ptr+i));
}
printf("\n");
}
void bubbleSort(int *ptr,int front,int back){
int i,j,temp;
for(i=front;i<back+1;i++){
for(j=front;j<back;j++){
if(*(ptr+j)>*(ptr+j+1)){
temp=*(ptr... |
karan1276/fds | stack implimentation/infixToPPostfix.c | /*
Stack Header file
-using structures-
Basic function:-
init- initilizes top of empty stack
is_empty- returns 1 if stack is empty
is_full- returns 1 if stack is full
push- insert element in stack
pop- returns element from stack delets the element
display- display content of stack
top- returns element from stack retai... |
karan1276/fds | sort/Cleaned_quick_sort.c | <reponame>karan1276/fds
#include <stdio.h>
#include <conio.h>
void display(int *ptr,int front, int back){
int i;
//printf("Array:\n");
for(i=front;i<=back;i++){
printf(" %d ",*(ptr+i));
}
}
int partition(int *ptr,int front, int back){
int pindex,i,temp;
//put pivot logic(start, middle, end), this case chooses ... |
karan1276/fds | stack/stack_using_struct.c | /*
Stack Implimentation
-using structures-
Basic function:-
init- initilizes top of empty stack
is_empty- returns 1 if stack is empty
is_full- returns 1 if stack is full
push- insert element in stack
pop- returns element from stack
display- display content of stack
*/
#include<stdio.h>
#include<conio.h>
# define stack... |
zodiac/mushak | data/contests/proto_short/problems/B/ola.c | <gh_stars>1-10
# include <stdio.h>
# include <stdlib.h>
int main() {
printf("Ola mundo\n");
exit(0);
}
|
zodiac/mushak | contrib/soap/test.c | <reponame>zodiac/mushak<filename>contrib/soap/test.c
int main() {
printf("a\n");
exit(0)
}
|
reitermarkus/rsmpi | mpi-sys/src/rsmpi.h | #ifndef RSMPI_INCLUDED
#define RSMPI_INCLUDED
#include "mpi.h"
// OpenMPI uses the preprocessor to define MPI_Fint - explicitly typedef it
// here.
typedef MPI_Fint RSMPI_Fint;
extern const MPI_Datatype RSMPI_C_BOOL;
extern const MPI_Datatype RSMPI_FLOAT;
extern const MPI_Datatype RSMPI_DOUBLE;
extern const MPI_Dat... |
dalbeenet/vee3.0 | vee/io.h | <gh_stars>1-10
#ifndef _VEE_IO_STREAM_H_
#define _VEE_IO_STREAM_H_
#include <vee/io/port_base.h>
#include <vee/io/io_service.h>
namespace vee {
class invalid_stream_exception: public vee::exception
{
public:
using base_t = vee::exception;
invalid_stream_exception():
base_t{ "invalid stream exception"... |
dalbeenet/vee3.0 | vee/lockfree/stack.h | <reponame>dalbeenet/vee3.0<filename>vee/lockfree/stack.h<gh_stars>1-10
#ifndef _VEE_LOCKFREE_STACK_H_
#define _VEE_LOCKFREE_STACK_H_
#include <vee/lockfree/queue.h>
#include <atomic>
#pragma warning(disable:4127)
namespace vee {
namespace lockfree {
template <typename DataTy>
class stack final
{
public:
using thi... |
dalbeenet/vee3.0 | vee/lock.h | #ifndef _VEE_LOCK_H_
#define _VEE_LOCK_H_
#include <mutex>
#include <atomic>
namespace vee {
namespace lock {
class empty_lock
{
public:
inline static void lock()
{
};
inline static bool try_lock()
{
return true;
}
inline static void unlock()
{
}
inline static std::mutex::native_handle_type native_... |
dalbeenet/vee3.0 | vee/test/timerec.h | <reponame>dalbeenet/vee3.0
#ifndef _VEE_TEST_TIMEREC_H_
#define _VEE_TEST_TIMEREC_H_
#include <chrono>
namespace vee {
namespace test {
class timerec
{
public:
timerec();
~timerec();
std::pair<time_t, double> timelab() const;
private:
std::chrono::time_point<std::chrono::system_clock> start;
};
} // !namespac... |
dalbeenet/vee3.0 | vee/lib_base.h | <reponame>dalbeenet/vee3.0
#ifndef _VEE_LIBBASE_H_
#define _VEE_LIBBASE_H_
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&) = delete; \
void operator=(const TypeName&) = delete;
#define DISALLOW_MOVE_AND_ASSIGN(TypeName) \
TypeName(const TypeName&&) = delete; \
void operator=(const TypeName&&) = ... |
dalbeenet/vee3.0 | vee/comm/shared_memory.h | #ifndef _VEE_COMM_SHARED_MEMORY_H_
#define _VEE_COMM_SHARED_MEMORY_H_
#include <memory>
namespace vee {
namespace comm {
namespace interprocess {
class shared_memory
{
public:
using this_t = shared_memory;
using ref_t = this_t&;
using rref_t = this_t&&;
using shared_ptr = std::shared_ptr<this_t>;
... |
dalbeenet/vee3.0 | vee/comm/ip.h | #ifndef _VEE_COMM_IP_H_
#define _VEE_COMM_IP_H_
#include <vee/io.h>
#include <vee/platform.h>
// ReSharper disable CppUnusedIncludeDirective
#include <vee/comm.h>
// ReSharper restore CppUnusedIncludeDirective
namespace vee {
namespace comm {
namespace ip {
using port_t = unsigned short;
#if VEE_PLATFORM_X32
using... |
dalbeenet/vee3.0 | vee/exl.h | <gh_stars>1-10
#ifndef _VEE_EXL_H_
#define _VEE_EXL_H_
#include <vee/exception.h>
namespace vee {
class precondition_violated_exception: public vee::exception
{
public:
using base_t = vee::exception;
precondition_violated_exception():
base_t{ "precondition violated exception" } { }
virtual ~precondition_violat... |
dalbeenet/vee3.0 | vee/core/noncopyable.h | <reponame>dalbeenet/vee3.0<gh_stars>1-10
#ifndef _VEE_CORE_NONCOPYABLE_H_
#define _VEE_CORE_NONCOPYABLE_H_
namespace vee {
class noncopyable
{
protected:
constexpr noncopyable() = default;
~noncopyable() = default;
noncopyable(const noncopyable&) = delete;
noncopyable& operator=(const noncopyable&) = ... |
dalbeenet/vee3.0 | vee/enumeration.h | #ifndef _VEE_ENUMERATION_H_
#define _VEE_ENUMERATION_H_
#include <vee/exl.h>
#include <string>
#include <vector>
#include <map>
#include <vee/helper/strmagic.h>
#define Enumeration(__ENUM_TYPE__, Offset, __ENUMERATION_START__, ...)\
class __ENUM_TYPE__\
{\
public:\
typedef enum\
{\
__ENUMERATION_START... |
dalbeenet/vee3.0 | vee/comm/udp.h | #ifndef _VEE_NET_UDP_H_
#define _VEE_NET_UDP_H_
#include <vee/comm/ip.h>
#ifdef VEE_PLATFORM_WINDOWS
#define _WIN32_WINNT 0x0603
#endif // !VEE_PLATFORM WINDOWS
#include <boost/asio/ip/udp.hpp>
#include <boost/pool/singleton_pool.hpp>
namespace vee {
namespace comm {
namespace ip {
namespace udp {
class udp_strea... |
dalbeenet/vee3.0 | vee/mpl.h | #ifndef _VEE_MPL_H_
#define _VEE_MPL_H_
#include <utility>
#include <type_traits>
#define VEE_DECLARE_TYPE(name) struct name{}
namespace vee {
namespace mpl {
template<int ...>
struct sequence
{
};
template<int N, int ...S>
struct sequence_generator: sequence_generator < N - 1, N - 1, S... >
{
};
template<int ..... |
dalbeenet/vee3.0 | vee/mpmath.h | <reponame>dalbeenet/vee3.0<filename>vee/mpmath.h
#ifndef _VEE_MPMATH_H_
#define _VEE_MPMATH_H_
#include <vee/platform.h>
namespace vee {
namespace mpl {
template <class LHS, class RHS>
constexpr inline auto sum(LHS&& lhs, RHS&& rhs) -> decltype(lhs + rhs)
{
return lhs + rhs;
}
template <class Current, class ..... |
dalbeenet/vee3.0 | vee/io/detail/io_service_kernel.h | #ifndef _VEE_IOPORT_DETAIL_IOPORT_SERVICE_KERNEL_H_
#define _VEE_IOPORT_DETAIL_IOPORT_SERVICE_KERNEL_H_
#include <vee/platform.h>
#ifdef VEE_PLATFORM_WINDOWS
#define _WIN32_WINNT 0x0603
#endif
#include <boost/asio/io_service.hpp>
namespace vee {
namespace io {
class io_service_kernel: public ::boost::asio::io_se... |
dalbeenet/vee3.0 | vee/io/port_base.h | #ifndef _VEE_IOPORT_IOPORT_BASE_H_
#define _VEE_IOPORT_IOPORT_BASE_H_
#include <vee/delegate.h>
#include <vee/io/io_service.h>
namespace vee {
namespace io {
extern FILE* base_in;
extern FILE* base_out;
extern FILE* base_err;
struct buffer
{
uint8_t* ptr = nullptr;
size_t capacity = 0;
buffer() = def... |
dalbeenet/vee3.0 | vee/helper/bitmagic.h | <filename>vee/helper/bitmagic.h
#pragma once
#ifndef _VEE_HELPER_BITMAGIC_H_
#define _VEE_HELPER_BITMAGIC_H_
#include <string>
namespace vee {
template <class T>
inline uint32_t getbit(T x, uint32_t n)
{
return (x & (1 << n)) >> n;
}
template <class T>
std::string to_bit_string(T&& arg)
{
std::string str{};... |
dalbeenet/vee3.0 | vee/random.h | #ifndef _VEE_RANDOM_H_
#define _VEE_RANDOM_H_
#include <random>
#include <chrono>
namespace vee {
template <typename RandomEngine = std::mt19937_64,
typename ResultTy = uint64_t,
typename Distribution = std::uniform_int_distribution<ResultTy> >
class random_engine
{
public:
using engine_t = RandomEngine;... |
dalbeenet/vee3.0 | vee/type/generic/unsigned_integral_comparator.h | <gh_stars>1-10
#ifndef _VEE_TYPE_GENERIC_INTEGRAL_COMPARATOR_H_
#define _VEE_TYPE_GENERIC_INTEGRAL_COMPARATOR_H_
#include <cstdint>
#include <vee/mpl.h>
namespace vee {
namespace detail {
VEE_DECLARE_TYPE(eq_lhs_fundamental);
VEE_DECLARE_TYPE(eq_rhs_fundamental);
VEE_DECLARE_TYPE(eq_all_fundamental);
VEE_DECLARE_TYP... |
dalbeenet/vee3.0 | vee/queue.h | #ifndef _VEE_QUEUE_H_
#define _VEE_QUEUE_H_
#include <vee/lock.h>
namespace vee {
template <class DataTy, class BlockLockTy = lock::spin_lock, class IndexLockTy = lock::spin_lock>
class queue
{
public:
using this_t = queue<DataTy, IndexLockTy>;
using ref_t = this_t&;
using rref_t = this_t&&;
using data_t = Data... |
dalbeenet/vee3.0 | vee/tupleupk.h | <filename>vee/tupleupk.h
#ifndef _VEE_TUPLEUPK_H_
#define _VEE_TUPLEUPK_H_
#include <vee/mpl.h>
#include <tuple>
#include <functional>
namespace vee {
namespace tupleupk_impl {
template <class FTy>
struct function_parser
{
};
template <class RTy, typename ...Args>
struct function_parser < RTy(Args ...) >
{
typ... |
dalbeenet/vee3.0 | vee/lockfree.h | <filename>vee/lockfree.h
#ifndef _VEE_LOCKFREE_H_
#define _VEE_LOCKFREE_H_
namespace vee {
namespace lockfree {
namespace property {
struct SingleCore
{
};
struct MultiCore
{
};
} // !namespace properties
} // !namespace lockfree
} // !namespace vee
#endif // !_VEE_LOCKFREE_H_ |
dalbeenet/vee3.0 | vee/helper/strmagic.h | <reponame>dalbeenet/vee3.0<gh_stars>1-10
#ifndef _VEE_HELPER_STRMAGIC_H_
#define _VEE_HELPER_STRMAGIC_H_
#include <locale>
#include <vector>
#include <algorithm>
namespace vee {
namespace strmagic {
template<typename charT>
struct equal
{
equal(const ::std::locale& loc): loc_(loc)
{
}
bool operator(... |
dalbeenet/vee3.0 | vee/lockfree/queue.h | <filename>vee/lockfree/queue.h
#ifndef _VEE_LOCKFREE_QUEUE_H_
#define _VEE_LOCKFREE_QUEUE_H_
#include <stdexcept>
#include <atomic>
#pragma warning(disable:4127)
namespace vee {
namespace lockfree {
template <typename DataTy>
class atqueue
{
public:
using this_t = atqueue<DataTy>;
using ref_t = this_t&;
using r... |
dalbeenet/vee3.0 | vee/platform.h | #ifndef _VEE_PLATFORM_H_
#define _VEE_PLATFORM_H_
namespace vee {
// Check windows
#if _WIN32 || _WIN64
#define VEE_PLATFORM_WINDOWS 1
#if _WIN64
#define VEE_PLATFORM_X32 0
#define VEE_PLATFORM_X64 1
#else
#define VEE_PLATFORM_X32 1
#define VEE_PLATFORM_X64 0
#endif
#endif
// Check GCC
#if __GNUC__
#define VEE_PLATF... |
dalbeenet/vee3.0 | vee/exception.h | #ifndef _VEE_EXCEPTION_H_
#define _VEE_EXCEPTION_H_
#include <vee/platform.h>
#include <vee/lib_base.h>
#include <array>
#include <exception>
namespace vee {
class exception: public std::exception
{
public:
static const int desc_buffer_size = 256;
std::array<char, desc_buffer_size> desc;
using base_t = std:... |
dalbeenet/vee3.0 | vee/comm.h | #ifndef __VEE_COMM_H__
#define __VEE_COMM_H__
#include <vee/exception.h>
namespace vee {
class protocol_mismatch_exception: public vee::exception
{
public:
using base_t = vee::exception;
protocol_mismatch_exception():
base_t{ "protocol mismatch exception" }
{
}
explicit protocol_mismatch_... |
dalbeenet/vee3.0 | vee/comm/tcp.h | <gh_stars>1-10
#ifndef _VEE_NET_TCP_H_
#define _VEE_NET_TCP_H_
#include <vee/comm/ip.h>
#ifdef VEE_PLATFORM_WINDOWS
#define _WIN32_WINNT 0x0603
#endif
#include <boost/asio/ip/tcp.hpp>
//#include <boost/asio.hpp>
namespace vee {
namespace comm {
namespace ip {
namespace tcp {
class tcp_stream;
class tcp_server... |
dalbeenet/vee3.0 | vee/io/io_service.h | #ifndef _VEE_IOPORT_IOPORT_SERVICE_H_
#define _VEE_IOPORT_IOPORT_SERVICE_H_
#include <vee/core/noncopyable.h>
#include <memory>
namespace vee {
namespace io {
// Forward declaration
class io_service_kernel;
class io_service: noncopyable
{
public:
io_service();
~io_service();
std::size_t run() const;
... |
dalbeenet/vee3.0 | vee/delegate.h | <reponame>dalbeenet/vee3.0
#ifndef _VEE_DELEGATE_H_
#define _VEE_DELEGATE_H_
#include <memory>
#include <map>
#include <vee/exl.h>
#include <vee/tupleupk.h>
#include <vee/lock.h>
namespace vee {
namespace delegate_impl {
template <typename FuncSig, typename _Function>
bool compare_function(const _Function& lhs, con... |
dalbeenet/vee3.0 | vee/helper/term.h | <filename>vee/helper/term.h<gh_stars>1-10
#ifndef _VEE_HELPER_TERM_H_
#define _VEE_HELPER_TERM_H_
#include <cstdint>
#include <cstdio>
#include <vee/helper/bitmagic.h>
namespace vee {
void print_hexa(uint8_t* buffer, size_t size);
template <class T>
void print_bits(T&& value)
{
for (uint32_t i = 0; i < sizeof(T... |
dalbeenet/vee3.0 | vee/worker.h | #ifndef _VEE_WORKER_H_
#define _VEE_WORKER_H_
#include <vee/delegate.h>
#include <vee/lockfree/stack.h>
#include <vee/exception.h>
#include <thread>
#include <future>
#include <list>
namespace vee {
class worker_is_busy: public vee::exception
{
public:
using base_t = vee::exception;
worker_is_busy():
... |
dalbeenet/vee3.0 | vee/test/testobj.h | <reponame>dalbeenet/vee3.0
#ifndef _VEE_TEST_TESTOBJ_H_
#define _VEE_TEST_TESTOBJ_H_
#include <atomic>
namespace vee {
namespace test {
class testobj
{
static std::atomic<int> _counter;
public:
testobj();
explicit testobj(int i);
virtual ~testobj();
testobj(const testobj&);
testobj(testobj&&... |
dalbeenet/vee3.0 | vee/libtest.h | #ifndef _VEE_LIBTEST_H_
#define _VEE_LIBTEST_H_
namespace vee {
namespace libtest {
void test_log(bool result, const char* test_name, const char* detail, ...) noexcept;
void test_success(const char* test_name, const char* detail) noexcept;
void test_failed(const char* test_name, const char* detail) noexcept;
class ... |
luodezhao/RunTimeSwizzLing | RunTimeTEST/RunTimeTEST/ViewController.h | <gh_stars>0
//
// ViewController.h
// RunTimeTEST
//
// Created by YB on 16/1/16.
// Copyright © 2016年 YB. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
- (void)setBackgroundColor:(UIColor *)color;//这个类里面不实现这个方法,但是label里面实现了,所以用来测试
@end
|
luodezhao/RunTimeSwizzLing | RunTimeTEST/RunTimeTEST/UILabel+font.h | //
// UILabel+font.h
// RunTimeTEST
//
// Created by YB on 16/1/16.
// Copyright © 2016年 YB. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <objc/runtime.h>
@interface UILabel (font)
@property (nonatomic,weak) NSString * isSystemColor;
@end
|
gsyhei/GXAlert | GXAlert/GXAlertManager.h | <reponame>gsyhei/GXAlert
//
// GXAlertManager.h
// PTChatDemo
//
// Created by GuoShengyong on 2017/12/26.
// Copyright © 2017年 protruly. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, GXAlertStyle) {
GXAlertStyleSheet = 0, ///< sheet风格
G... |
gsyhei/GXAlert | GXAlertSample/GXAlertSample/ViewController.h | //
// ViewController.h
// GXAlertSample
//
// Created by Gin on 2020/3/24.
// Copyright © 2020 gin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
gsyhei/GXAlert | GXAlertSample/GXAlertSample/MenuView.h | <reponame>gsyhei/GXAlert
//
// MenuView.h
// GXAlertSample
//
// Created by Gin on 2020/3/25.
// Copyright © 2020 gin. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface MenuView : UIView
@end
NS_ASSUME_NONNULL_END
|
gsyhei/GXAlert | GXAlert/UIView+GXAlertView.h | <reponame>gsyhei/GXAlert<filename>GXAlert/UIView+GXAlertView.h
//
// UIView+GXAlertView.h
// PTChatDemo
//
// Created by GuoShengyong on 2017/12/26.
// Copyright © 2017年 protruly. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "GXAlertManager.h"
@interface UIView (GXAlertView)
@property (nonatomic, weak... |
Himeyama/libfromfile | main.c | /*
* (c) 2021 <NAME>
* Licensed under the MIT License.
*/
#include <fromfile.h>
int main(void){
DFloat data;
double d[100];
data.data = d;
data.size = 100;
for(int i = 0; i < 100; i++){
d[i] = i / 10.0;
}
dFloat2file("testDBL.bin", data);
DFloat data2 = dFloatFromFile("t... |
Himeyama/libfromfile | libfromfile.c | <filename>libfromfile.c
/*
* (c) 2021 <NAME>
* Licensed under the MIT License.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include "fromfile.h"
// ファイルサイズを調べる
long fsize(const char* filename){
struct stat s;
if(stat(filename, &s) == 0)
return s.st_size;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.