text
stringlengths
9
5.83M
/* **************************************************************** * * * mount.c * * * * Monta um sistema de arquivos * * * * Versão 1.1.0, de 15.05.87 * * 4.8.0, de 30.09.05 * * * * Módulo: mount * * Utilitários Básicos * * Categoria B * * ...
#include "8583.h" int main(int argc, char const *argv[]) { BYTE buf[2000]; memset( buf , 0x00 , sizeof(buf)); char errmsg[200]; FILE *fp = fopen( "message.txt" , "r"); int i = 0; int byte = 0; while( fscanf( fp , "%02X" , &byte) != EOF ) { buf[i] = (BYTE)byte; i++; } fclose(fp); fp = fopen("2100...
#include <stdlib.h> // Malloc, NULL, ... #include <assert.h> #include <stdio.h> // printf, ... #include <event.h> #include <pdu.h> struct eventFile_t { int nombre; struct event_t * premier; struct event_t * dernier; }; struct eventFile_t * eventFile_create() { struct eventFile_t * result = (struc...
/* ** EPITECH PROJECT, 2018 ** linked_list ** File description: ** Functions to add elements or linked lists */ #include "linked_lists.h" linked_list_t *add_lkl_element(linked_list_t *ptr, int value) { linked_list_t *ptr_new_element = malloc(sizeof(linked_list_t)); if (!ptr_new_element) return (NULL)...
// // main.c // numbers // // Created by Merck Hung on 10/1/15. // Copyright © 2015 Merck Hung. All rights reserved. // #include <stdio.h> #include <sys/types.h> #include <sys/uio.h> #include <unistd.h> #include <stdlib.h> #include <math.h> void test() { #if 0 char buf[256]; char* p = buf; size_t idx; siz...
/* acc.c Purpose: An integer accumulation program. Allows for the user to enter any integer in octal, hexadecimal, or decimal mode, and have that integer displayed in octal, hex, and decimal bases. @author Jeremy Elkayam */ #include <stdio.h> #include <string.h> /* The below include statement is ...
/* * File: Tone.c * Author: Idris, Cytron Technologies * Software: MPLAB X IDE V2.26 * Compiler: XC16 V1.21 * Created on Jan 28, 2015 */ #include "Arduino.h" volatile long timer3_toggle_count; volatile UINT8 *timer3_pin_port; volatile UINT8 timer3_pin_mask; volatile UINT16 ocr = 0; UINT8 _pin; void __attribute...
#ifndef COMPILE_WRITE #define COMPILE_WRITE //输出yuv文件 int WriteYUV(unsigned char* Y, unsigned char* U, unsigned char* V, unsigned long size, FILE* outFile); //输出rgb文件 int WriteRGB(unsigned char* Y, unsigned char* U, unsigned char* V, unsigned long size, FILE* outFile); #endif // !COMPILE_WRITE
/******************************************************************************* * В этом файле описываются инициализация PLL для нормального и спящего режима *******************************************************************************/ #include <ccblkfn.h> #include <bfrom.h> #include "pll.h" /* Инициал...
#include <stdio.h> #include <string.h> typedef long long int LLI; int main() { while (1) { int n; if (scanf("%d", &n) != 1) { break; } LLI x[51]; memset(x, 0, sizeof(x)); x[0] = x[1] = 1; for (int i = 2; i < 26; ++i) { for (int j = ...
#ifndef __UTIL_H__ #define __UTIL_H__ void sleep_ms(long ms); #endif
/* License information: * - Serialnumber: CBD1100132 * - Date of license: 2011-05-06 * ************************************************************** * Software is licensed for: * BEIQI Foton Motor Co., Ltd. * Foton * Microcontroller: Infineon TriCore TC1767 * Compiler: Tasking V3.3r1 */ #if...
#include <encrypt.h> /** * THIS IS NOT A VALID ENCRYPTION SCHEME! NEVER NEVER EVER EVER EVER DO THIS!!! * THIS IS BAD ON SO MANY LEVELS!!!!!!!!!!!!!!!!!!!! */ static char secret_key = 'a'; char* encrypt_msg(char msg[], unsigned int len) { char temp; for (int i = 0; i < len; i++) { temp = msg[i] ^ ...
// Coded by a Nutcase // Treasury for guilds #include <std.h> #include <guild.h> #include <daemons.h> #include <money.h> #include <treasury.h> inherit TREASURY; void create() { ::create(); set_guild("acheron"); set_name("Acheron's Treasury"); set_short("Acheron's Treasury"); set_long("%^BOLD%^%^...
//Definition for binary tree typedef struct { int val; struct TreeNode *left; struct TreeNode *right; }TreeNode; void InitTreeNode(int x);
/* Copyright (c) 2013 The F9 Microkernel Project. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef PLATFORM_DEBUG_UART_H_ #define PLATFORM_DEBUG_UART_H_ #include <os/types.h> #include <os/lib/queue.h> #define IER_RBR 0x01 #defin...
// Copyright 2015-16 Stefan Heule // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
void fit_mjj_Full_PFNo10Dijet2016bbCSVv22b700() { //=========Macro generated from canvas: c/c //========= (Fri Dec 14 00:41:43 2018) by ROOT version6.02/05 TCanvas *c = new TCanvas("c", "c",0,0,600,700); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c->SetHighLightColor(2); c->Range(0,0,1,1); c->Set...
#include <stdlib.h> #include "unity.h" #include "b64.h" static char B64_DIG[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; void test_b64_from(void) { for (int i = 0; i < 64; i++) TEST_ASSERT_EQUAL_INT(i, from_b64(B64_DIG[i])); TEST_ASSERT_EQUAL_INT(-1, from_b64('\n')); } void test_b64_...
/* * @file config.h * @author Lukas Zronek * @date 21.03.2017 * @brief Shared Memory and Semaphores Training Task * @version 1.0 * */ #ifndef _lz_config_ #define _lz_config_ #define SEM_COUNT 2 #define SEM_CLIENT 0 #define SEM_SERVER 1 #define SHM_KEY 10001L #define SEM_KEY 10001L #define RANDOM_MIN -20 #def...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <locale.h> #include <windows.h> void abriraplicativo(char *fala); void procurarnawiki (); void escolha(); void pedirordem(); int main (){ printf ("Celebi: Bom dia, Sr. David.\n"); escolha(); return 0; } void escolha(){ char f...
/***************************************************************************** * Header Files ******************************************************************************/ #include "header.h" /****************************************************************************** * * Function Nam...
#include <stdlib.h> /* *并查集 */ int getRoot(int* parent, int len, int loc) { if (parent && len && loc > -1) { while (parent[loc] != loc) { parent[loc] = parent[parent[loc]];//路径压缩 对于并查集提高效率非常有效 loc = parent[loc]; } return loc; } return -1; } void quickUion(int* rank, int* parent, int len, int p, int q...
/* * Author: Walter * Student ID: 1930006025 * inclasstest_2 * one2thirty.cpp */ #include <stdio.h> int main() { /* value to print */ int value; /* half */ value = 2; /* loop for 5 row */ for (int row=0; row<5; row++) { /* loop for each column */ for (int col=0; col<row+1; col++) { printf("%d,", v...
/* * This file is part of the coreboot project. * * Copyright (C) 2014 Google Inc * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distrib...
void wave(char *y, char **target) { int count = 0; for(int i = 0; i<strlen(y); i++){ if(y[i] != ' '){ target[count] = strcpy(target[count], y); *(target[count]+i) = toupper(y[i]); count++; } } }
/* * Copyright (C) 2019 GreenWaves Technologies * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
/** * Iteration min: -124339 * Iteration max: 440 * Iteration gain: 433 */ #include <stdio.h> #include <stdlib.h> typedef struct _Node { int value; struct _Node *next; } Node; Node *new_node(int value) { Node *node = malloc(sizeof(node)); node->value = value; node->next = NULL; return node; } int main() {...
void error_handler(mapping map, int flag) { object ob; string str, name="", pname=""; int i, x; string *k, uid=""; ob = this_interactive() || this_player(); if (flag) str = "*Error caught\n"; else str = ""; if(map["object"]) if(map["object"]->is_player()) name = ""+map["object"]->query_name(); if(o...
//数据 #define _CRT_SECURE_NO_WARNINGS 1 #include "DataManager.h" #include <assert.h> void SqliteManager::Open(const string& path) { int ret = sqlite3_open(path.c_str(), &_db); if (ret != SQLITE_OK) { ERROE_LOG("sqlite3_open\n"); } else { TRACE_LOG("sqlite3_open success"); } } void SqliteManager::Close() { in...
#include <stdio.h> #include <stdlib.h> #include <string.h> extern char **environ; int main(int argc, char **argv) { int i; char **p = environ; for(i = 0; i < argc; i++) { fprintf(stdout, "%s\n", argv[i]); } while(*p) { fprintf(stdout, "%s\n", *p++); } return 0; }
#include <stdio.h> #include <stdlib.h> typedef struct media Media; typedef struct media{ int ra; float n1; float n2; Media * prox; }; Media * inicializa(void) { return NULL; //inicializando a lista como vazia, não aponta pra nimguém } Media * insere (Media * l, int i, float n1, float n2) { Media * novo...
void fit_mjj_Full_PFDijetAug2017bbdeeple1b250() { //=========Macro generated from canvas: c/c //========= (Fri Aug 10 13:14:26 2018) by ROOT version6.02/05 TCanvas *c = new TCanvas("c", "c",0,0,600,700); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c->SetHighLightColor(2); c->Range(0,0,1,1); c->Set...
#pragma once //Include directories for applications using the chroma engine #include "Chroma/Core/Application.h" #include "Chroma/Core/Log.h" #include "Chroma/Core/Time.h" #include "Chroma/Profiler/Instrumentor.h" #include "Chroma/Core/Input.h" #include "Chroma/Core/KeyCodes.h" #include "Chroma/Core/MouseButtonCo...
#include <stdlib.h> #include <stdint.h> #include "../memory/instruction.h" #define INST_LEN 100 inst_t programme[INST_LEN];
// print word length. #include <stdio.h> //#define MAXLENGTH 10 #define IN 1 #define OUT 0 main() { int c, nc = 0; int i, state = OUT; int len[10]; for (i = 1; i <= 10; ++i) { len[i] = 0; } while ((c = getchar()) != EOF) { if (c == ' ' || c == '\n' || c == '\t') { state = OUT; if (nc > 0) { if ...
// Copyright 2004-present Facebook. All Rights Reserved. #pragma once bool metal_sync_op();
#include <stdio.h> int main() { char s[101] = "\0"; int cnt = 0; scanf("%s", s); for(int i=0; i<101; i++) { if(s[i] == '\0') { return 0; } if(cnt == 10) { cnt = 0; putchar('\n'); } putchar(s[i]); cnt++; } }
#include "metaob.h" // #define OBJE_ATTRIB "obje_attri.sdo" // struct obje_attri { char clasn[CLASS_LENGTH]; char mepan[HAND_LENGTH]; char library[MAX_PATH]; union { unsigned int sibling; unsigned int recycle; }; }; #define INIT_OBJE_ATTR(oattr) \ memset(&oattr, '...
// OPTIMIZED // // - Runs 4 multiplications at once (Aka unrolling - 40pts) // ^ Unrolling by 4 seems to be optimal (vs 2, 3, 5, 8, 16) // - Switched i and j to optimize the memory fetching (Aka reordering - 40pts) // ^ this takes advantage of the locality (A[i+j*m] is c...
#include <stdio.h> int linearsearch(int x[],int n,int key); int main() { int x[10],i,n,key,pos; printf("\nHow many values "); scanf("%d",&n); printf("\nEnter actual values "); for(i=0;i<n;i++) scanf("%d",&x[i]); for(i=0;i<n;i++) printf("\t%d",x[i]); printf("\nEnter the value to search "); scanf("%d",&key); l...
// Buddy List by Nightshade #include <std.h> inherit DAEMON; int cmd_enemylist(string str) { string *list, total; if(!str) { list = this_player()->query_full_enemy(); if(sizeof(list) > 400) { for(int i=1; i < sizeof(list); i++) this_player()->remove_enemy(list[i]); list = ({}); } ...
#pragma once #include "sliding-window.h" #include "tree.h" #include "greedy/greedy.h" #include "bitwise/bitwise.h" #include "backtracking/backtracking.h" #include "array/arr.h" #include "string/str.h" #include "dp.h" #include "heap.h" #include "design/design.h" #include "maths.h" #include "graph.h" #include "binary-se...
/* $Header$ */ /* * Author: Peter J. Nicklin */ #include "slist.h" /* * slsplice() splices slist2 to the tail of slist1. */ void slsplice(slist1, slist2) SLIST *slist1; /* receiving list */ SLIST *slist2; /* list to be spliced */ { if (SLNUM(slist2) > 0) if (SLNUM(slist1) == 0) { SLNUM(slist1) = SL...
#ifndef _ITEMS_MENU_H_ #define _ITEMS_MENU_H_ int create_rssitems_menu(void); #endif
#include <std.h> #include <daemons.h> #include <guild.h> inherit ROOM; void create() { ::create(); set_name("Entrance to the Illuminati Guild"); set_long("A large marble room. A larger wrought iron gate with spikes adorning the top " "blocks entrance to a staircase leading up, it is the entrance to th...
#include <klingklang/frame.h> #include <klingklang/util.h> static size_t frame_get_planes (kk_frame_t *frame) { if (frame->planes < KK_FRAME_MAX_PLANES) return frame->planes; else return KK_FRAME_MAX_PLANES; } static void frame_free_planes (kk_frame_t *frame) { size_t i; if (frame == NULL) return...
#include "memory_segments.h" #define SEGMENT_DESCRIPTOR_COUNT 3 #define SEGMENT_BASE 0 #define SEGMENT_LIMIT 0xFFFFF #define SEGMENT_CODE_TYPE 0x9A #define SEGMENT_DATA_TYPE 0x92 /* * Flags part of `limit_and_flags`. * 1100 * 0 - Available for system use * 0 - Long mode * 1 - Size (0 for 16-bit, 1 for 32) * 1...
/********************************************************************************************************* ** ** 中国软件开源组织 ** ** 嵌入式实时操作系统 ** ** SylixOS(TM) LW : long wing ** ** Copyright Al...
// Copyright 2017-2023 Closed Sum Games, LLC. All Rights Reserved. #ifndef __CSPRJ_H__ #define __CSPRJ_H__ #include "CoreMinimal.h" DECLARE_LOG_CATEGORY_EXTERN(LogCsPrj, Log, All); #endif
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * SPDX-FileCopyrightText: Copyright (c) 2013-2019 Damien P. George * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "S...
#include <std.h> inherit ARMOUR; void create() { ::create(); set_name("helm"); set_short("iron helmet"); set_id(({ "iron helmet", "helmet", "helm" })); set_long("A well-made iron helmet."); set_weight(5); set_curr_value("gold", 20); set_type("helmet"); set_limbs(({ "head" })); set_ac(1); }...
#ifndef AUX_STRINGS_H #define AUX_STRINGS_H char *int2str(int n); void cats(char **str, const char *str2); #endif
#ifndef MAPOBSTACLESTATEENUM_H #define MAPOBSTACLESTATEENUM_H enum class MapObstacleStateEnum { OBSTACLE_OPENED = 1, OBSTACLE_CLOSED = 2 }; #endif // MAPOBSTACLESTATEENUM_H
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/time.h> #define NB_MESURES 30 int main(int argc, char **argv) { struct timeval tv[NB_MESURES]; int i; for (i = 0; i < NB_MESURES; ++i) { gettimeofday(tv+i, NULL); } for(i = 0; i < NB_MESURES;++i){ printf("%...
#include<stdio.h> #include<unistd.h> #include<stdlib.h> #include<fcntl.h> #include<string.h> #include<sys/stat.h> main() { int fd1,n; char *data ="100"; fd1=open("file2",O_WRONLY|O_CREAT|O_TRUNC,S_IRWXU); /*Check the return value of functions for success/failure*/ if (fd1 < 0) { printf("File opening Failed\n");...
/* * Copyright (C) 2017 spreadtrum */ #include <assert.h> #include <err.h> #include <stdio.h> #include <string.h> #include <malloc.h> #include <stdlib.h> #include <trusty_std.h> #include "log.h" #include "client_handle.h" #include "rpmbproxy_ipc.h" #include "rpmbproxy.h" static int send_resp(struct event_contex...
/* * Kmyth Unsealing Interface - TPM 2.0 */ #include "tpm2_kmyth_global.h" #include "tpm2_kmyth_seal.h" #include "kmyth_cipher.h" #include "tpm2_kmyth_misc.h" #include "tpm2_kmyth_io.h" #include <stdio.h> #include <stdint.h> #include <string.h> #include <getopt.h> #include <stdbool.h> #include <sys/stat.h> #includ...
/***************************************************** * * @author Turgut Mehdiyev * @date 24/07/2012 * * Copyright (c) Idrak Technology Transfer LLC 2012 * *****************************************************/ #ifndef MS_MEDIA_PLAYER_GLOBAL_H #define MS_MEDIA_PLAYER_GLOBAL_H #include <QtCore/q...
void fit_mjj_Full_PFNo13Dijet2016bbCSVv2le1bL() { //=========Macro generated from canvas: c/c //========= (Wed Jan 23 12:11:10 2019) by ROOT version6.02/05 TCanvas *c = new TCanvas("c", "c",0,0,600,700); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c->SetHighLightColor(2); c->Range(0,0,1,1); c->Set...
/* * pipeopen, pipeclose * kludged from popen.c for notes * * Lou Salkind, NYU */ #include "parms.h" #include "structs.h" #include <stdio.h> #include <signal.h> #define tst(a,b) (*mode == 'r'? (b) : (a)) #define RDR 0 #define WTR 1 static int p_pid; static FILE *fptr; extern char *myshell; static int (*hstat)(), ...
/************************************************************* * ______ * * / /\ TinyFugue was derived from a client initially * * / __/ \ written by Anton Rang (Tarrant) and later * * | / /\ | modified by Leo Plotkin (Grod). The early * * |...
#define _OZ000100000200011bP_H_ #define OZClassPart0001000002fffffd_0_in_000100000200011a 1 #define OZClassPart0001000002fffffe_0_in_000100000200011a 1 #define OZClassPart0001000002000187_0_in_000100000200011a -1 #define OZClassPart0001000002000188_0_in_000100000200011a -1 #define OZClassPart000100000200011a_0_in_000...
#include <windows.h> #include <stdio.h> int main(){ int var1; POINT pt; //マウスの現在の座標を取得する GetCursorPos(&pt); printf("%d %d",pt.x,pt.y); return 0; }
#include "xparameters.h" #include "xio.h" #include "evoBlock.h" #define POP_SIZE 128 // The Population size #define SET_SIZE 16 // The number of sets, always POP_SIZE / 8 #define TOURNAMENT_SIZE 5 // The number of individuals used in tournament selection #define MUTATION_RATE 2 // Mutate MUTATION_RATE out ...
Initial code () { }
#include "node.h" Node *new_node(void *cur_node, ASTType type) { Node *result = calloc(1, sizeof(Node)); result->type = type; switch(type) { case unaryNode: result->node.unary_node = cur_node; break; case binaryNode: result->node.binary_node = cur_node; ...
/* * main.c * * Created on: Sep 8, 2019 * Author: aishwarya */ // pre processor compiler header files #include <stdio.h> // printf #include <stdlib.h> // main part of #include <string.h> // perform different functionality with strings int student_print_structure(); // this tells the compiler that there is ...
#pragma once //Data Types typedef unsigned char byte; typedef unsigned short ushort; //Function Prototypes void Copy_Banks(int Destination, int Source, int Count); void Bank_Switch(int Destination, int Source, int Count); byte Mask_Bank_Address(byte bank); void MMC_Reset(); void Setup_Banks(); void Select8KVROM(byte ...
#include<stdio.h> #include<stdlib.h> int main() { double n; double p, p1=1.0, p2, temp=365, temp2=365, temp3=1; printf("Birthday Problem using 1st Way :\n\n"); printf("Enter the Number of Students in the class :"); scanf("%lf",&n); while(n>0) { p2=temp/temp2; p1=p1*p2; ...
/* * Copyright 2017-2019 Nippon Telegraph and Telephone Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
// // Created by User on 29/09/2021. // #include "stdio.h" #include "exercices.h" #include "fonctions.h" void Exercice1(){ int entier1; int entier2; printf("Saisissez vos deux valeurs.\n"); scanf("%d %d",&entier1, &entier2); getMax(entier1 , entier2); printf("Le maximum est %d.\n",ge...
/* print_pe - Copyright 2005-2023 by Michael Kohn Webpage: https://www.mikekohn.net/ Email: mike@mikekohn.net This code falls under the LGPL license. */ #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #include "fileio.h" #include "pe.h" int rip_binary(FILE *in, char *filename, int ad...
void fit_mjj_Full_SeptDijet2016bgDeep1b150() { //=========Macro generated from canvas: c/c //========= (Thu Sep 13 05:50:55 2018) by ROOT version6.02/05 TCanvas *c = new TCanvas("c", "c",0,0,600,700); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c->SetHighLightColor(2); c->Range(0,0,1,1); c->SetFil...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c)...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "parser.h" #include "linked_list.h" void read(hash_table_t* table, const char* filename) { FILE* f = fopen(filename,"r"); if(f == NULL){ printf("Could not find %s\nCreating file...\n",filename); f = fopen(filename,"w"); fclose(f); return...
#include <stdio.h> #include <ctype.h> int main(void) { char c, initial; printf("Enter a first and last name: "); scanf(" %c", &initial); while((c = getchar()) != ' '); // Skip chars until whitespace while((c = getchar()) == ' '); // Skip whitespace putchar(toupper(c)); c = getchar()...
#include <std.h> inherit ROOM; void create() { ::create(); set_smell("default", "A wood smell fills the air."); set_listen("default", "Few things can be heard outside of the shelter."); set_properties((["shelter":1, "light":2, "no attack":1, "no bump":1, "no steal":1, "indoors":1])); set_short("St...
/* * rlc.c * * Created on: 04-Apr-2013 * Author: aswin */ #include "main_declarations.h" #include "rlc.h" #include "lte_component_provider.h" /* * This is the rlc function which receives as input a packet * and the total number of packets together * in a structure. It decomposes them and uses them * i...
#ifndef __TX_RX_WITH_ANDROID_H__ #define __TX_RX_WITH_ANDROID_H__ #include "pmsis.h" int initHandler(); void closeHandler(); #endif
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* get_next_line.c :+: :+: :+: ...
#include <stdio.h> #include <string.h> #include "fstring.c" void delchar (char s [100],char c); void strreverse (char s [100]); int main (void) { int choose; char str; char array [100]; while (1) { printf ("1. Reverse a string.\n2. Delete a character in a string.\n"); printf ("Please input your choice: ");...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <omp.h> int main(int argc, char* argv[]){ int thread_count,n,i,j,k=1,l=1; thread_count = strtol(argv[1], NULL, 10); printf("Ingrese n\n"); scanf("%d", &n); int a[n]; a[0]=0; # pragma omp parallel num_threads(thread_count) #pragma...
void fit_mjj_Full_PFNo3Dijet2016bgdeeple1b300() { //=========Macro generated from canvas: c/c //========= (Wed Sep 19 22:42:40 2018) by ROOT version6.02/05 TCanvas *c = new TCanvas("c", "c",0,0,600,700); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c->SetHighLightColor(2); c->Range(0,0,1,1); c->Set...
/*++ Copyright (c) Microsoft Corporation Module Name: crashdumpendpoint.c Abstract: USB XHCI Crashdump write module. --*/ #include "pch.h" _Must_inspect_result_ __drv_requiresIRQL(PASSIVE_LEVEL) NTSTATUS Crashdump_Endpoint_Initialize( __inout PCRASHDUMP_ENDPOINT_DATA En...
/* SPDX-License-Identifier: BSD-2-Clause */ /******************************************************************************* * Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG * All rights reserved. *******************************************************************************/ #ifdef HAVE...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* libft.h :+: :+: :+: ...
/* * The MIT License (MIT) * Copyright (c) 2018 Novel Bits * * 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...
#ifndef __ACTOR_H__ #define __ACTOR_H__ #define MAX_IO 8 typedef struct actor_io_t { int in[MAX_IO]; int out[MAX_IO]; } actor_io_t; #endif /* __ACTOR_H__ */
/********************************************************************************************************* ** ** 中国软件开源组织 ** ** 嵌入式实时操作系统 ** ** SylixOS(TM) LW : long wing ** ** Copyright Al...
// GFleet Demo Clips //#define HIGHCOLOR //#define GRAPH //#define UNPACK // Распаковка архивов //#define NOZIP // Кроме zip //#define NORAR // Кроме rar //#define NOLOAD #include "..\swilib.h" extern short *screen; // Экран 132*176*2 extern void DrawScreen(); // Функция перерисовки экрана void onred...
#include <stdio.h> #include <signal.h> #include <stdlib.h> #include <unistd.h> int main(){ int descriptors[2]; int wr_PID,re_PID; int child1, child2; int status; child1 = fork(); printf("First fork is executed!\n"); if (child1 != 0){ child2 = fork(); pipe(descrip...
/* Copyright 2001-2010 Citrix Systems, Inc. */ /************************************************************************ * ctxsmcapi.h * * Header file for SMC API DLL. ***********************************************************************/ #ifndef CTXSMCAPI_H #define CTXSMCAPI_H /******************************...
#include "common.h" #include "orbit_parser.h"
/*Realizar un programa que tras ingresar un carácter haga lo siguiente: a). Si es mayúscula muestre un mensaje en pantalla que diga "Mayúscula", y si además es 'A' muestre le mensaje "Carácter correcto". b). Si es minúscula, lo transformará a mayúscula y mostrara el mensaje "Era minúscula", y si además es 'B' mostrara ...
#include <stdio.h> #include <stdlib.h> struct yogesh { int value; struct yogesh *previous; struct yogesh *next; }; void traverse_list_forward(struct yogesh *head) { struct yogesh *f = head; while (f != NULL) { printf("%d", f->value); f = f->next; } } void deleteEnd(struct y...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* setting.c :+: :+: :+: ...
/* ** Kinkaku - Text Mining Analysis Tools ** ** Copyright (c) 2013, stnmrshx (stnmrshx@gmail.com) ** 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 ...
#ifndef KAREN_IO_H_ #define KAREN_IO_H_ /** * \brief Solicita un caracter al usuario y devuelve el resultado * \param mensaje Es el mensaje a ser mostrado * \return El caracter ingresado por el usuario */ char getChar(char mensaje[]); /** * \brief Solicita un numero entero al usuario y devuelve el resultado * ...
#pragma once #define TID_LOGIN 50001 #define TID_LOGOUT 50002 #define TID_HEART 50003 #define TID_DISCONNECT 50004 #define TID_CLOSE 50012 #define TID_GETORDERCONFIG 10000 #define TID_OPENMARKETORDER 10001 #define TID_CLOSEMARKETORDER 10002 #define TID_CLOSEMARKETORDERMANY 10003 #defi...