repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
ThallesTorres/Linguagem_C
Pratica_03/ex05.c
<gh_stars>0 // Exercício 05 - Faça um programa (main) que popule o vetor de 5 posições com // 0 ou 1 e chame a função e exiba o resultado (base decimal). # include <stdio.h> int linha(void) { char x = '-'; printf("\n\033[33m"); for (int count = 0; count < 30; count ++) { printf("%c", x); ...
ThallesTorres/Linguagem_C
Pratica_03/ex10.c
<reponame>ThallesTorres/Linguagem_C // Exercício 10 - Suponha um vetor N com 10 elementos e outro vetor M com 10 elementos. // Faça um programa em C que calcule o produto escalar P de A por B. (Isto é, // P = A[1] * B[1] + A[2] * B[2] + ... A[N] + B[N]). # include <stdio.h> int linha(void) { char x = '-'; ...
ThallesTorres/Linguagem_C
Pratica_01/ex01.c
<filename>Pratica_01/ex01.c<gh_stars>0 // Exercício 01 - Dado dois número inteiro positivo n, calcular e imprimir a sua soma. #include <stdio.h> int main(void) { int n1, n2; printf("Digite o 1° número: "); scanf("%d", &n1); printf("Digite o 2° número: "); scanf("%d", &n2); printf("A soma entre %d e %d...
ThallesTorres/Linguagem_C
Pratica_02/ex02.c
// Exercício 02 - Escreva uma função que leia um inteiro não-negativo n e imprima a soma dos n primeiros // números primos. #include <stdio.h> int somaprimo (int A); int primo (int B); int A; int B; int somaprimo (int A) { int contagem = 1; int soma = 2; printf ("A soma eh 2"); int teste = 3; w...
ThallesTorres/Linguagem_C
Pratica_03/ex09.c
// Exercício 09 - Dado dois vetores, A e B, faça um programa em C que imprima // todos os elementos comuns aos dois vetores. # include <stdio.h> int linha(void) { char x = '-'; printf("\n\033[33m"); for (int count = 0; count < 30; count ++) { printf("%c", x); } printf("\033[m\n\n")...
ThallesTorres/Linguagem_C
Pratica_05/ex01.c
// Exercício 01 - Criar um programa que solicita no teclado uma frase com, no máximo, 100 letras. Se o tamanho for maior que 40, exibir uma mensagem e solitar novamente a frase, senão, imprimir a frase na vertical. # include <stdio.h> # include <string.h> int linha(void) { printf("\n\033[33m--------------------...
ThallesTorres/Linguagem_C
Pratica_03/ex03.c
// Exercício 03 - Escreva um programa principal que: // a - Leia 10 números (vetor inteiros) a partir de valores digitados pelo usuário. Apenas armazene no vetor os números pares. // b - Imprima na tela a quantidade de valores armazenados no vetor, o maior valor encontrado e também a média desses valores. # include <s...
ThallesTorres/Linguagem_C
Pratica_01/ex10.c
<reponame>ThallesTorres/Linguagem_C // Exercício 10 - Dada uma sequência de números inteiros não-nulos, começando por 1, imprimir // seus quadrados. #include <stdio.h> int main(void) { int num, count; do { printf("Digite um número (0 para sair): "); scanf("%d", &num); (num > 0...
ThallesTorres/Linguagem_C
Pratica_01/ex06.c
// Exercício 06 - Dados três números, imprimi-los em ordem crescente. #include <stdio.h> int main(void) { int n1, n2, n3; printf("Digite o 1° número: "); scanf("%d", &n1); printf("Digite o 2° número: "); scanf("%d", &n2); printf("Digite o 3° número: "); scanf("%d", &n3); printf("Os números digi...
ThallesTorres/Linguagem_C
Pratica_06/ex01.c
<reponame>ThallesTorres/Linguagem_C // Exercício 01 - Declare uma matriz 5 x 5. Preencha com 1 a diagonal principal e // com 0 os demais elementos. Escreva ao final a matriz obtida. # include <stdio.h> # include <string.h> int linha(void) { printf("\n\033[33m------------------------------\033[m\n\n"); ret...
ThallesTorres/Linguagem_C
Pratica_03/ex13.c
// Exercício 13 - Dada uma sequência de n números reais, determinar o número de vezes que cada um deles ocorre na mesma. # include <stdio.h> int linha(void) { char x = '-'; printf("\n\033[33m"); for (int count = 0; count < 30; count ++) { printf("%c", x); } printf("\033[m\n\n"); ...
ThallesTorres/Linguagem_C
Pratica_03/ex07.c
<gh_stars>0 // Exercício 07 - Leia uma vetor de 8 posições e troque os 4 primeiros valores pelos // 4 últimos e vice e versa. Escreva ao final o vetor obtido. # include <stdio.h> int linha(void) { char x = '-'; printf("\n\033[33m"); for (int count = 0; count < 30; count ++) { printf("%c", x)...
ThallesTorres/Linguagem_C
Pratica_03/ex12.c
<filename>Pratica_03/ex12.c // Exercício 12 - Leia um vetor de 10 posições e elimine as posições com valor zero avançando uma posição, com os valores subsequentes do vetor. Dessa forma todos "zeros" devem ficar para as posições finais do vetor. # include <stdio.h> int linha(void) { char x = '-'; printf("\n...
ThallesTorres/Linguagem_C
Pratica_01/ex08.c
// Exercício 08 - Calcular a tabuada de um número fornecido pelo usuário multiplicado de 0 a 12. #include <stdio.h> int main(void) { int num, count; printf("Digite um número: "); scanf("%d", &num); for (count = 0; count <= 12; count ++) { printf("%d x %d = %d\n", num, count, num * count); } prin...
ThallesTorres/Linguagem_C
Pratica_03/ex04.c
<reponame>ThallesTorres/Linguagem_C // Exercício 04 - Dado um vetor de 5 posições contendo 0 ou 1 (base binária), transformá-lo // para a base decimal. Criar uma função que recebe esse vetor e retorne o número (base decimal). # include <stdio.h> int linha(void) { char x = '-'; printf("\n\033[33m"); f...
ThallesTorres/Linguagem_C
Pratica_05/ex02.c
// Exercício 02 - Faça uma rotina que recebe uma string qualquer e retorna-o invertido. // Por exemplo, se a string passada por parâmetro fosse 'teste', a rotina deve retornar 'etset'. # include <stdio.h> # include <string.h> int linha(void) { printf("\n\033[33m------------------------------\033[m\n\n"); ...
ThallesTorres/Linguagem_C
Pratica_06/ex02.c
// Exercício 02 - Crie uma matriz 4x4 com elementos aleatórios no intervalo [0, 20]: // a - Imprima todos os elementos de uma linha informada pelo usuário. // b - Imprima todos os elementos de uma coluna informada pelo usuário. // c - Imprima a soma dos elementos de uma linha informada pelo usuário. // d - Imprima a s...
ThallesTorres/Linguagem_C
Pratica_01/ex11.c
<filename>Pratica_01/ex11.c // Exercício 11 - Dado um número inteiro positivo n, calcular a soma dos n primeiros números naturais. #include <stdio.h> int main(void) { int num, count, resp; resp = 0; printf("Digite um número: "); scanf("%d", &num); printf("A soma dos primeiros números natura...
ThallesTorres/Linguagem_C
Pratica_05/ex03.c
<filename>Pratica_05/ex03.c // Exercício 03 - Faça uma função que leia uma string de 50 posições digitada por um usuário, // e retorne valor 1 se for um palíndromo ou 0 em caso negativo. # include <stdio.h> # include <string.h> int linha(void) { printf("\n\033[33m------------------------------\033[m\n\n"); ...
ThallesTorres/Linguagem_C
Pratica_01/ex07.c
<reponame>ThallesTorres/Linguagem_C // Exercício 07 - Calcular o fatorial de um número fornecido pelo usuário. A função fatorial de // um número natural n é o produto de todos os n primeiros números naturais. #include <stdio.h> int main(void) { int num, count, resp; resp = 1; printf("Digite um número: "); ...
ThallesTorres/Linguagem_C
Pratica_02/ex08.c
// Exercício 07 - Escreva uma função que recebe um inteiro positivo n e devolve 1 se n é // par e 0 se n é impar. # include <stdio.h> int main(void) { int impar_par(num); int num; printf("Digite um número: "); scanf("%d", &num); printf("O número é %s.\n", (impar_par == 0) ? "PAR" : "ÍMPAR"...
ThallesTorres/Linguagem_C
Pratica_03/ex06.c
<gh_stars>0 // Exercício 06 - Dada uma sequência de n números, imprimi-la na ordem inversa a da leitura. # include <stdio.h> int linha(void) { char x = '-'; printf("\n\033[33m"); for (int count = 0; count < 30; count ++) { printf("%c", x); } printf("\033[m\n\n"); return 0; } ...
ThallesTorres/Linguagem_C
Pratica_01/ex09.c
// Exercício 09 - Crie um programa por meio do qual o usuário irá digitar a operação desejada e // dois valores, ao final deverá ser exibido o resultado da operação. // Opções disponíveis: 1 – Divisão; 2 – resto da divisão; 3 – adição; 4 – multiplicação. #include <stdio.h> int main(void) { int escolha; int n1,...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Common/VHActionSheet.h
<reponame>vhall/VHClass_SDK_iOS // // VHActionSheet.h // VHiPad // // Created by vhall on 2018/5/21. // Copyright © 2018年 vhall. All rights reserved. // #import <UIKit/UIKit.h> @class VHActionSheet; @protocol VHActionSheetDelegate <NSObject> - (void)actionSheet:(VHActionSheet *)actionSheet clickedButtonAtIndex:...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section1/Chat/ChatModel.h
<reponame>vhall/VHClass_SDK_iOS // // ChatModel.h // ChatUIDemo // // Created by vhall on 2018/5/8. // Copyright © 2018年 Morris. All rights reserved. // #import <Foundation/Foundation.h> #import <VHClassSDK/VHCMsg.h> @class ChatFrameModel; typedef NS_ENUM(NSInteger,MSGTypeBy) { MSGTypeByOwn, MSGTypeByOth...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section1/VOD/VHCVODBusinessViewController.h
// // VHCVODBusinessViewController.h // VHClassSDKDemo // // Created by vhall on 2019/4/16. // Copyright © 2019 vhall. All rights reserved. // #import "VHCModularBaseViewController.h" NS_ASSUME_NONNULL_BEGIN ///看回放业务界面 @interface VHCVODBusinessViewController : VHCModularBaseViewController @end NS_ASSUME_NONNUL...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section2/Live & Doc/VHCLiveDocViewController.h
// // VHCLiveDocViewController.h // VHClassSDKDemo // // Created by vhall on 2019/4/8. // Copyright © 2019 vhall. All rights reserved. // #import "VHCModularBaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface VHCLiveDocViewController : VHCModularBaseViewController @end NS_ASSUME_NONNULL_END
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Answer/QuestionViewCell.h
// // QuestionViewCell.h // VHClassSDKDemo // // Created by vhall on 2019/2/15. // Copyright © 2019 vhall. All rights reserved. // #import <UIKit/UIKit.h> #import <VHClassSDK/VHCQuestion.h> NS_ASSUME_NONNULL_BEGIN @interface QuestionViewCell : UITableViewCell @property (nonatomic, strong) VHCQuestion *question;...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Login/VCLoginViewController.h
// // VCLoginViewController.h // VHClassSDK_bu // // Created by vhall on 2019/1/17. // Copyright © 2019年 class. All rights reserved. // #import "BaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface VCLoginViewController : BaseViewController @property (strong, nonatomic) NSString* password;//口令 @end NS_ASS...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Home/VHClassViewController.h
// // VHClassViewController.h // VHClassSDKDemo // // Created by vhall on 2018/9/3. // Copyright © 2018年 vhall. All rights reserved. // #import "BaseViewController.h" @interface VHClassViewController : BaseViewController @end
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHCSign.h
<gh_stars>0 // // VHCSign.h // VHCFoundation // // 点赞 // Created by vhall on 2019/9/25. // Copyright © 2019 vhall. All rights reserved. // #import <Foundation/Foundation.h> #import "VHCError.h" NS_ASSUME_NONNULL_BEGIN @interface VHCSign : NSObject //签到 + (void)signWithId:(NSString*)signId sucessed:(voi...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section2/Live & Interactive/interactive/VCInteractiveModel.h
// // VCInteractiveModel.h // VHClassSDK_bu // // Created by vhall on 2019/2/20. // Copyright © 2019 class. All rights reserved. // #import <Foundation/Foundation.h> #import <VHClassSDK/VHCLiveUser.h> #import "VCInteractiveMaskView.h" #import <VHClassSDK/VHRenderView.h> @class VHRenderView; NS_ASSUME_NONNULL_BEG...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section1/VOD/PlayerView/VodPlayerView.h
// // VodPlayerView.h // VHClassSDKDemo // // Created by vhall on 2018/9/19. // Copyright © 2018年 vhall. All rights reserved. // #import <UIKit/UIKit.h> @class VodPlayerView; @protocol VodPlayerViewDelegate <NSObject> //play and puss button action - (void)playerView:(VodPlayerView *)view playButtonClick:(UIButt...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section1/Live/VHLivePlayerController.h
<gh_stars>0 // // VHLivePlayerController.h // VHClassSDKDemo // // Created by vhall on 2019/4/16. // Copyright © 2019 vhall. All rights reserved. // #import "VHCModularBaseViewController.h" #import <VHClassSDK/VHCLivePlayer.h> @class VHLivePlayerController; NS_ASSUME_NONNULL_BEGIN @protocol VHLivePlayerControl...
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHCError.h
// // VHCError.h // VHClassSDK // // Created by vhall on 2018/8/27. // Copyright © 2018年 Morris. All rights reserved. // #import <Foundation/Foundation.h> /** * 错误类型枚举值 */ typedef NS_ENUM(NSInteger,VHCErrorType) { /** 成功,无错误 */ VHCErrorType_NoError = 200, /** 参数错误 */ VHCErrorType_InvalidPar...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Tool/UIViewController+Rotation.h
// // UIViewController+Rotation.h // xxx // // Created by vhall on 2019/4/11. // Copyright © 2019 vhall. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIViewController (Rotation) //是否支持重力感应 注意不要和系统的shouldAutorotate属性重名,以免覆盖系统提供的功能 @property (nonatomic) BOOL autoRotate; //方向...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section2/Live & Interactive/interactive/VCInteractor.h
<reponame>vhall/VHClass_SDK_iOS // // VCInteractor.h // VHClassSDK_bu // // Created by vhall on 2019/2/19. // Copyright © 2019 class. All rights reserved. // #import <VHClassSDK/VHCLiveUser.h> NS_ASSUME_NONNULL_BEGIN @interface VCInteractor : VHCLiveUser //@property (nonatomic, copy) NSString *userId; @propert...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section2/Live & Interactive/interactive/UserAlert/VHVideoAlert.h
// // VHVideoAlert.h // VHiPad // // Created by vhall on 2018/6/8. // Copyright © 2018年 vhall. All rights reserved. // #import <UIKit/UIKit.h> @class VHVideoAlert; @class VCInteractiveMaskView; @protocol VHVideoAlertDelegate <NSObject> - (void)vedioAlert:(VHVideoAlert *)alert clickedButton:(UIButton *)sender in...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section2/VOD & Doc/VHCVODDocViewController.h
// // VHCVODDocViewController.h // VHClassSDKDemo // // Created by vhall on 2019/4/8. // Copyright © 2019 vhall. All rights reserved. // #import "VHCModularBaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface VHCVODDocViewController : VHCModularBaseViewController @end NS_ASSUME_NONNULL_END
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/BaseViewController.h
<reponame>vhall/VHClass_SDK_iOS<gh_stars>0 // // BaseViewController.h // VHClassSDKDemo // // Created by vhall on 2018/9/4. // Copyright © 2018年 vhall. All rights reserved. // #import <UIKit/UIKit.h> @interface BaseViewController : UIViewController @property(nonatomic,assign)UIInterfaceOrientation interfaceOrien...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section1/Chat/MMKeyBoard/MMKeyBoardView.h
<reponame>vhall/VHClass_SDK_iOS // // MMKeyBoardView.h // MMKeyBoard // // Created by vhall on 2018/10/12. // Copyright © 2018年 vhall. All rights reserved. // // #import <UIKit/UIKit.h> #import "MMTextFiled.h" #define kMMChatKeyBoardSendButtonWidth 56 @class MMKeyBoardView; @protocol MMKeyBoardViewDelegate <NSO...
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHCLiveHeader.h
// // VHWatchHeader.h // VHWatchLiveDemo // // Created by vhall on 2018/8/23. // Copyright © 2018年 Morris. All rights reserved. // // 看直播、看回放、播放调度使用此文件 // #ifndef VHWatchHeader_h #define VHWatchHeader_h // 视频分辨率 typedef NS_ENUM(NSInteger,VHCDefinition) { VHCDefinitionDefault = 0, //默认原画 VH...
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHCInteractiveRoom.h
<gh_stars>0 // // VHCInteractiveRoom.h // VHInteractive // // Created by vhall on 2018/4/18. // Copyright © 2018年 www.vhall.com. All rights reserved. // // 进入房间-->进入房间结果回调 // | // 推流-->推流结果回调 // | // 上麦-->上麦结果回调 // #import <Foundation/Foundation.h> #import "VHCError.h" @protocol VHCInteractiveRoomDelegate;...
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHPlayerTypeDef.h
// // VHPlayerTypeDef.h // VHOpenSDK // // Created by vhall on 2017/12/12. // Copyright © 2017年 www.vhall.com. All rights reserved. // #ifndef VHPlayerTypeDef_h #define VHPlayerTypeDef_h typedef NS_ENUM(NSInteger, VHPlayerStatus) { VHPlayerStatusUnkown, //初始化时指定的状态,播放器初始化 VHPlayerStatusLoading, ...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Login/VCCourseData.h
<reponame>vhall/VHClass_SDK_iOS // // VCCourseData.h // VHClassSDK_bu // // Created by vhall on 2019/1/17. // Copyright © 2019年 class. All rights reserved. // #import <Foundation/Foundation.h> #import <VHClassSDK/VHClassSDK.h> NS_ASSUME_NONNULL_BEGIN @interface VCCourseData : NSObject + (VCCourseData *)shareInst...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Common/VCRecordRightViewController.h
<reponame>vhall/VHClass_SDK_iOS<filename>VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Common/VCRecordRightViewController.h // // VCRecordRightViewController.h // VHClassSDK_bu // // Created by vhall on 2019/3/11. // Copyright © 2019 class. All rights reserved. // #import "BaseViewController.h" NS_ASSUME_NONNULL_...
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHCRecord.h
<filename>VHClassSDK/framework/VHClassSDK.framework/Headers/VHCRecord.h<gh_stars>0 // // VHCRecord.h // VHCFoundation // // Created by vhall on 2019/3/11. // Copyright © 2019 vhall. All rights reserved. // #import "VHClassBaseInfo.h" #import "VHCError.h" NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger,VHCRecor...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section2/Live & Interactive/interactive/UserAlert/VHCameraAlert.h
// // VHCameraAlert.h // VHiPad // // Created by vhall on 2018/6/7. // Copyright © 2018年 vhall. All rights reserved. // #import <UIKit/UIKit.h> @class VCInteractiveMaskView; @class VHCameraAlert; @protocol VHCameraAlertDelegate <NSObject> - (void)cameraAlert:(VHCameraAlert *)alert clickedButton:(UIButton *)send...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/AppDelegate.h
<reponame>vhall/VHClass_SDK_iOS // // AppDelegate.h // VHClassSDKDemo // // Created by vhall on 2018/9/3. // Copyright © 2018年 vhall. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section1/Chat/MMKeyBoard/MMTextFiled.h
<gh_stars>0 // // MMTextFiled.h // MMChatKeyBoard // // Created by vhall on 2018/9/12. // Copyright © 2018年 vhall. All rights reserved. // #import <UIKit/UIKit.h> @interface MMTextFiled : UITextField /** @brief 清空输入内容 @discussion 消息发送成功后清空消息、输入清空等 */ - (void)clearText; @end
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHCVodPlayer.h
<reponame>vhall/VHClass_SDK_iOS // // VHCVodPlayer.h // VHCLive // // Created by vhall on 2019/1/29. // Copyright © 2019 vhall. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "VHCLiveHeader.h" #import "VHCError.h" @class VHCVodPlayer; NS_ASSUME_NONNULL_BEGIN @protocol ...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section2/Live & Interactive/LiveViewController.h
// // LiveViewController.h // VHClassSDKDemo // // Created by vhall on 2019/3/14. // Copyright © 2019 vhall. All rights reserved. // #import "VHCModularBaseViewController.h" @class LiveViewController; NS_ASSUME_NONNULL_BEGIN @protocol LiveViewControllerDelegate <NSObject> @optional //上麦回调 - (void)liveViewCont...
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHCQuestion.h
// // VHCQuestion.h // VHCIM // // Created by vhall on 2019/2/15. // Copyright © 2019 vhall. All rights reserved. // #import "VHCMsg.h" NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger,VHCQuestionState) { VHCQuestionStatePublish, //发布问卷 VHCQuestionStateAnswers, //公布答案 VHCQuestionStateStop, ...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section1/VOD/VHCVODPlayerController.h
// // VHCVODPlayerController.h // VHClassSDKDemo // // Created by vhall on 2019/4/8. // Copyright © 2019 vhall. All rights reserved. // #import "VHCModularBaseViewController.h" #import <VHClassSDK/VHCVodPlayer.h> @class VHCVODPlayerController; NS_ASSUME_NONNULL_BEGIN @protocol VHCVODPlayerControllerDelegate <NS...
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHCMsg.h
// // VHCMsg.h // VHCMessage // // Created by vhall on 2018/9/14. // Copyright © 2018年 vhall. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface VHCMsg : NSObject /** 发消息用户id*/ @property (nonatomic, copy) NSString *joinId; /** 消息id*/ @property (nonatomic, copy) NSString...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section2/Live & Interactive/LiveInteractiveViewController.h
// // LiveInteractiveViewController.h // VHClassSDKDemo // // Created by vhall on 2019/3/14. // Copyright © 2019 vhall. All rights reserved. // #import "VHCModularBaseViewController.h" NS_ASSUME_NONNULL_BEGIN ///直播互动 @interface LiveInteractiveViewController : VHCModularBaseViewController @end NS_ASSUME_NONNULL...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Login/VCHomeViewController.h
<gh_stars>0 // // VCHomeViewController.h // VHClassSDK_bu // // Created by vhall on 2019/1/15. // Copyright © 2019年 class. All rights reserved. // #import "BaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface VCHomeViewController : BaseViewController - (instancetype)initWithAppKey:(NSString *)appKey appSecr...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section2/Live & Interactive/interactive/VCLiveLayoutView.h
<filename>VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section2/Live & Interactive/interactive/VCLiveLayoutView.h<gh_stars>0 // // VCLiveLayoutView.h // VHClassSDK_bu // // Created by vhall on 2019/2/19. // Copyright © 2019 class. All rights reserved. // #import <UIKit/UIKit.h> @class VCInteractiveMaskView; @cla...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section2/Live & Interactive/interactive/VCInteractiveController.h
// // VCInteractiveController.h // VHClassSDK_bu // // Created by vhall on 2019/2/18. // Copyright © 2019 class. All rights reserved. // #import "VHCModularBaseViewController.h" @class VCInteractiveController; NS_ASSUME_NONNULL_BEGIN //上麦方式 typedef NS_ENUM(NSInteger,MicroType) { MicroTypeDefault, //默认为推视频+音...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Common/VHCModularBaseViewController.h
// // VHCModularBaseViewController.h // VHClassSDKDemo // // Created by vhall on 2018/9/13. // Copyright © 2018年 vhall. All rights reserved. // #import "BaseViewController.h" @interface VHCModularBaseViewController : BaseViewController @end
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Common/VHAlertView.h
// // VHAlertView.h // VHiPad // // Created by dry on 2018/5/13. // Copyright © 2018年 vhall. All rights reserved. // #import <UIKit/UIKit.h> @class VHAlertView; @protocol VHAlertViewDelegate <NSObject> - (void)alertView:(VHAlertView *)alertView clickedButtonAtIndex:(NSInteger)index; @end @interface VHAlertVi...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section1/Live/VHLiveLayerView.h
// // VHLiveLayerView.h // VHClassSDKDemo // // Created by vhall on 2019/3/14. // Copyright © 2019 vhall. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @class VHLiveLayerView; @protocol VHLiveLayerViewDelegate <NSObject> @optional //play and puss button action - (void)recordView:(VHL...
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHCDocuments.h
<reponame>vhall/VHClass_SDK_iOS // // VHCDocuments.h // VHCDocuments // // Created by vhall on 2018/9/17. // Copyright © 2018年 vhall. All rights reserved. // #import <Foundation/Foundation.h> @class VHCDocuments; typedef NS_ENUM(NSInteger,VHCDocumentsType) { VHCDocumentsType_Live, VHCDocumentsType_VOD, }...
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHClassSDK.h
// // VHClassSDK.h // VHCFoundation // // Created by vhall on 2018/8/31. // Copyright © 2018年 Morris. All rights reserved. // #import <Foundation/Foundation.h> #import "VHCError.h" #import "VHClassBaseInfo.h" NS_ASSUME_NONNULL_BEGIN //日志等级 typedef NS_ENUM(NSInteger, VHCLogLevel) { VHCLogLevelNone = 0, ...
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHCAnnouncement.h
// // VHCAnnouncement.h // VHCIM // // Created by vhall on 2019/2/15. // Copyright © 2019 vhall. All rights reserved. // #import "VHCMsg.h" NS_ASSUME_NONNULL_BEGIN @interface VHCAnnouncement : VHCMsg @end NS_ASSUME_NONNULL_END
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Answer/AnswerController.h
<gh_stars>0 // // AnswerController.h // VHClassSDKDemo // // Created by vhall on 2018/9/4. // Copyright © 2018年 vhall. All rights reserved. // #import "VHCModularBaseViewController.h" @interface AnswerController : VHCModularBaseViewController @end
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Tool/UIButton+FillBackgorundColor.h
// // UIButton+FillBackgorundColor.h // DingDing // // Created by gaojun on 17/3/28. // Copyright © 2017年 Cstorm. All rights reserved. // #import <UIKit/UIKit.h> @interface UIButton (FillBackgorundColor) - (void)setBackgroundColor:(UIColor *)backgroundColor forState:(UIControlState)state; @end
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section1/Chat/ChatViewCell.h
<reponame>vhall/VHClass_SDK_iOS<filename>VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section1/Chat/ChatViewCell.h // // ChatViewCell.h // ChatUIDemo // // Created by vhall on 2018/5/8. // Copyright © 2018年 Morris. All rights reserved. // #import <UIKit/UIKit.h> @class ChatModel; @interface ChatViewCell : UITabl...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/VCNavigationController.h
<reponame>vhall/VHClass_SDK_iOS // // VCNavigationController.h // VHClassSDKDemo // // Created by vhall on 2019/4/16. // Copyright © 2019 vhall. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface VCNavigationController : UINavigationController @end NS_ASSUME_NONNULL_END
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Common/VCPlaceHolderView.h
<reponame>vhall/VHClass_SDK_iOS // // VCPlaceHolderView.h // VHClassSDK_bu // // Created by vhall on 2019/2/26. // Copyright © 2019 class. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface VCPlaceHolderView : UIView @property (nonatomic, strong) UIImageView *imageView; @property...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section1/VOD/PlayerView/VodPlayerMaskView.h
// // VodPlayerMaskView.h // VHClassSDKDemo // // Created by vhall on 2018/9/20. // Copyright © 2018年 vhall. All rights reserved. // #import <UIKit/UIKit.h> #define kBottomToolBarHeight 40 #define kTimeLabelWidth 60 //default is show typedef NS_ENUM(NSUInteger,BottomToolBarState) { BottomToolBarStateShow, ...
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHCIMClient.h
// // VHCIMClient.h // VHClassSDK // // Created by vhall on 2018/8/28. // Copyright © 2018年 Morris. All rights reserved. // // #import <Foundation/Foundation.h> #import "VHCMsg.h" #import "VHCError.h" #import "VHCQuestion.h" #import "VHCAnnouncement.h" NS_ASSUME_NONNULL_BEGIN @class VHCIMClient; ///VHCIMClientD...
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHCLiveUser.h
// // VHCLiveUser.h // VHCFoundation // // Created by vhall on 2019/2/20. // Copyright © 2019 vhall. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN //用户角色 1:老师 2:学员 3:助教 4:嘉宾 5:监课,如果不关注角色请设为0 typedef NS_ENUM(NSUInteger, VHCLiveUserRole) { VHCLiveUserRoleUser, //普通用户 ...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section1/Doc/VHCDocBusinessViewController.h
<reponame>vhall/VHClass_SDK_iOS<filename>VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section1/Doc/VHCDocBusinessViewController.h // // VHCDocBusinessViewController.h // VHClassSDKDemo // // Created by vhall on 2019/4/16. // Copyright © 2019 vhall. All rights reserved. // #import "VHCModularBaseViewController.h" ...
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHClassBaseInfo.h
// // VHClassBaseInfo.h // VHCFoundation // // Created by vhall on 2018/8/31. // Copyright © 2018年 Morris. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> //课程状态 1:上课中 2:预告 3:回放 4:转播 5:已下课 typedef NS_ENUM(NSUInteger,VHClassState) { VHClassStateUnkown, VHClassStateClassOn,...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Tool/VHCTool.h
// // VHCTool.h // VHClassSDKDemo // // Created by vhall on 2018/9/10. // Copyright © 2018年 vhall. All rights reserved. // #import <Foundation/Foundation.h> @interface VHCTool : NSObject + (void)showAlertWithMessage:(NSString *)message; + (NSString *)urlEncoded:(NSString*)str; +(BOOL)predicateCheck:(NSString *)...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section2/Live & Interactive/interactive/VCInteractiveMaskView.h
<reponame>vhall/VHClass_SDK_iOS // // VCInteractiveMaskView.h // VHClassSDK_bu // // Created by vhall on 2019/2/19. // Copyright © 2019 class. All rights reserved. // #import <UIKit/UIKit.h> #import "VCInteractor.h" NS_ASSUME_NONNULL_BEGIN @interface VCInteractiveMaskView : UIView @property (nonatomic, strong) ...
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHCFavor.h
// // VHCFavor.h // VHCFoundation // // 点赞 // Created by vhall on 2019/9/25. // Copyright © 2019 vhall. All rights reserved. // #import <Foundation/Foundation.h> #import "VHCError.h" NS_ASSUME_NONNULL_BEGIN @interface VHCFavor : NSObject + (void)favorHostSucessed:(void(^)(NSDictionary *result))sucess failed:(voi...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section1/VOD/EpisodeView.h
<reponame>vhall/VHClass_SDK_iOS<gh_stars>0 // // EpisodeView.h // VHClassSDKDemo // // Created by vhall on 2018/9/20. // Copyright © 2018年 vhall. All rights reserved. // #import <UIKit/UIKit.h> @interface EpisodeView : UIView @property (nonatomic, copy) void ((^SelectedIndex)(NSUInteger index)); - (void)resetWi...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Common/VCAudioPlaceholderView.h
// // VCAudioPlaceholderView.h // VHClassSDK_bu // // Created by vhall on 2019/3/13. // Copyright © 2019 class. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN ///音频模式占位图 @interface VCAudioPlaceholderView : UIView @end NS_ASSUME_NONNULL_END
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHCDocumentView.h
<gh_stars>0 // // VHCDocumentView.h // VHCDocuments // // Created by 郭超 on 2020/7/1. // Copyright © 2020 vhall. All rights reserved. // #import <Foundation/Foundation.h> #import "VHCDocuments.h" typedef NS_ENUM(NSInteger,VHCDrawAction) { VHCDrawAction_Add = 1 , //添加画板元素 设置 VHDrawType 时会自动设置为此选项 ...
vhall/VHClass_SDK_iOS
VHClassSDK/framework/VHClassSDK.framework/Headers/VHCLivePlayer.h
// // VHCLivePlayer.h // VHCLive // // Created by vhall on 2019/1/29. // Copyright © 2019 vhall. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "VHCLiveHeader.h" #import "VHCError.h" NS_ASSUME_NONNULL_BEGIN @class VHCLivePlayer; @protocol VHCLivePlayerDelegate <NSObjec...
vhall/VHClass_SDK_iOS
VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section2/Live & Interactive/VCLiveViewModel.h
<reponame>vhall/VHClass_SDK_iOS<filename>VHClassSDKDemo/VHClassSDKDemo/Classes/Modular/Section2/Live & Interactive/VCLiveViewModel.h<gh_stars>0 // // VCLiveViewModel.h // VHClassSDK_bu // // Created by vhall on 2019/2/25. // Copyright © 2019 class. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSU...
CaddyDz/Objective-C
Program/Program/Log.h
// // Log.h // Program // // Created by <NAME> on 6/6/20. // Copyright © 2020 <NAME>. All rights reserved. // #ifndef Log_h #define Log_h #if __has_feature(objc_arc) #define NSLog(format, ...) CFShow((__bridge CFStringRef)[NSString stringWithFormat:format, ## __VA_ARGS__]); #else #define NSLog(format, ...) CFShow...
StructuralNeurobiologyLab/LightConvPoint
lightconvpoint/src/knn.h
# pragma once #include <torch/extension.h> torch::Tensor knn(const torch::Tensor points, const torch::Tensor queries, const size_t K); std::vector<torch::Tensor> random_pick_knn(const torch::Tensor points, const size_t nqueries, const size_t K); std::vector<torch::Tensor> convpoint_pick_knn(const torch::Tensor poi...
joyce3900/hello-world
src/test1.h
#ifndef __TEST_1_H__ #define __TEST_1_H__ void test1(void); #endif
joyce3900/hello-world
src2/test2.c
<gh_stars>0 #include <stdio.h> void test2(void) { printf("test2.\n"); }
joyce3900/hello-world
src2/test2.h
#ifndef __TEST_2_H__ #define __TEST_2_H__ void test2(void); #endif
joyce3900/hello-world
src/test1.c
#include <stdio.h> void test1(void) { printf("test1.\n"); }
tronner/secure-notes-exporter
secure-notes-exporter/main.c
<gh_stars>1-10 // // main.m // secure-notes-exporter // // Created by <NAME> on 5/9/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #include <CoreFoundation/CoreFoundation.h> #include <Security/Security.h> CFStringRef createEscapedString(CFStringRef string) { CFMutableStringRef mutable = CFStringCre...
igoropaniuk/optee_os
core/arch/arm/kernel/wait_queue.c
/* * Copyright (c) 2015-2016, Linaro Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of co...
scrap/assault
game.h
<reponame>scrap/assault #pragma once #include <Windows.h> class Game { private: unsigned int GetProcessId(); public: Game(); unsigned int entity_list; unsigned int player_count; HANDLE handle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, GetProcessId()); };
hieulel/CUPID
utl/commautl.c
#include <string.h> /*------------------------------------------------------------------------ GetValStr() Places characters until a ',' into a dest string and returns the src string after the ',' */ char * GetValStr(char * Src, char * Dest) { char * commaPos; for (;*Src!='\0' && *Src!=',';Src++) { ...
hieulel/CUPID
utl/awserror.h
<filename>utl/awserror.h /* $Id: awserror.h,v 1.2 1995/04/25 04:05:24 murdock Exp $ */ #ifndef __AWSERROR_H #define __AWSERROR_H #include <stdio.h> #ifndef TRUE # define TRUE 1 # define FALSE 0 #endif #define AWS_OK 0 #define AWS_SUCCESS 0 #define AWS_FAIL -1 #define AWS_BADVAL -2 #define AWS_ENDOFSTREAM -...
hieulel/CUPID
utl/awserror.c
static char rcsid[] = "$Header: /home/murdock/prg/src/utl/RCS/awserror.c,v 1.2 1995/04/25 04:04:55 murdock Exp $"; /* $Log: awserror.c,v $ * Revision 1.2 1995/04/25 04:04:55 murdock * Fixed some long standing small bug. * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <awserror.h> cha...
hieulel/CUPID
utl/context.c
<reponame>hieulel/CUPID<filename>utl/context.c static char SCCSid[]="@(#)context.c 1.5 10/21/94"; #include <stdio.h> #include <stdlib.h> #include <string.h> #ifndef TRUE # define FALSE 0 # define TRUE 1 #endif main(argc,argv) int argc; char ** argv; { FILE * srcfh; char buf[255]; char name[40]; char ...
hieulel/CUPID
utl/cupdiff.c
<gh_stars>1-10 static char SCCSid[]="@(#)cupdiff.c 1.3 10/03/94"; #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> void ProcessLine(FILE * fho,char * line1,char * line2,float PcntTol,char * heading,int line) { int len; char strVal1[8]; char strVal2[8]; float val1,val2; ...
hieulel/CUPID
utl/cup2rdb.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <awserror.h> #include <commautl.h> #define MAXFLOAT ((float)3.40282346638528860e+38) #define PROCESS_CONTINUE 1111 #ifndef TRUE # define TRUE 1 # define FALSE 0 #endif #define MAX_RDB_FLD_NAME_LEN 50 #define MAX_CUPID_R...
hieulel/CUPID
utl/commautl.h
/*------------------------------------------------------------------------ GetValStr() Places characters until a ',' into a dest string and returns the src string after the ','. If no ',', returns NULL. */ char * GetValStr(char * Src, char * Dest); /*--------------------------------------------------------...
BruceChen7/libtask-reading
taskimpl.h
<reponame>BruceChen7/libtask-reading /* Copyright (c) 2005-2006 <NAME>, MIT; see COPYRIGHT */ #if defined(__sun__) # define __EXTENSIONS__ 1 /* SunOS */ # if defined(__SunOS5_6__) || defined(__SunOS5_7__) || defined(__SunOS5_8__) /* NOT USING #define __MAKECONTEXT_V2_SOURCE 1 / * SunOS */ # else # define __MAKECONT...