repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
tollesonpdx/Last_Minute_Camping_With_C | test/test_libcurl.c | // <NAME>
// curl test
// attribution: https://curl.haxx.se/libcurl/c/getinmemory.html
// attribution: https://stackoverflow.com/questions/2329571/c-libcurl-get-output-into-a-string USER <NAME>
// attribution: https://stackoverflow.com/questions/3673226/how-to-print-time-in-format-2009-08-10-181754-811 USER paxdiablo
... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_campTreeLogNode.c | <reponame>tollesonpdx/Last_Minute_Camping_With_C
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_campTreeLogNode.c
#include "headers.h"
int campTreeLogNode(struct campground* node)
{
FILE* f1 = fopen("capstoneResultsLog.txt","a+");
fprintf(f1,"\n\n");
for (int i = 0; i... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_campTreeAdd.c | <reponame>tollesonpdx/Last_Minute_Camping_With_C<filename>code/f_campTreeAdd.c<gh_stars>0
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_campTreeAdd.c
#include "headers.h"
int campTreeAdd(struct campTree* C, double lng, double lat, char*name, char* code, int p)
{
if (p) { pri... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_sqlUsersWOutGeo.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_sqlUsersWOutGeo.c
#include "headers.h"
// static function prototype
// these need to be included in the related implementation file
// versus a universal header file
static int callback(void *L, int argc, char **argv,
... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_curlWeathers.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_curlWeathers.c
#include "headers.h"
buffer* curlWeathers(double cLat, double cLng, int p)
{
if (p) { printf("establishing curl...\n"); }
CURL* curl = curl_easy_init();
CURLcode res;
curl_version_info_data *curl_versio... |
tollesonpdx/Last_Minute_Camping_With_C | code/capstone.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: capstone.c
#include "headers.h"
int main()
{
int p = 0; // flag for verbose printing
if (p) displayCurrentDateTime();
//obtain and display user provided data
struct userData* user = getUserData();
if (p) printUserD... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_campTreeAddNode.c | <reponame>tollesonpdx/Last_Minute_Camping_With_C
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_campTreeAddNode.c
#include "headers.h"
int campTreeAddNode(int c, struct campground* current, struct campground* fresh, int p)
{
if (p)
{
printf("fresh node in... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_campTreeTravProc.c | <filename>code/f_campTreeTravProc.c
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_campTreeTravProc.c
#include "headers.h"
int campTreeTravProc(struct campground* node, struct campTree* C, sqlite3* db, int p)
{
if (p) { printf("inside campTreeTravProc function\n"); }
// ... |
tollesonpdx/Last_Minute_Camping_With_C | test/ll/test_ll.c | // <NAME>
// linked list test
#include "headers.h"
// main
int main()
{
int a = 0;
printf("making user list\n");
struct userList* L = userListMake();
printf("adding 1st user node\n");
a = userListAdd(L, "Portland, OR");
if (a != 0)
{ printf("user list node addition error\n")... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_wrapField.c | <gh_stars>0
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_wrapField.c
#include "headers.h"
void wrapField(char* a)
{
int lena = strlen(a);
int lenb = lena + 3;
char* b = calloc(lenb, sizeof(char));
strcpy(b,tick);
strcat(b, a);
strcat(b,tick);
a = rea... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_doubleToString.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_doubleToString.c
#include "headers.h"
char* doubleToString(double dubs)
{
char* string = calloc(11, sizeof(char));
sprintf(string, "%lf", dubs);
//snprintf(string, 50, "%f", dubs);
//printf("%s\n",string);
return ... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_campTreePrint.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_campTreePrint.c
#include "headers.h"
int campTreePrint(struct campTree* C, int p)
{
if (p) { printf("printing campground tree...\n"); }
if (C->root == NULL)
{
printf("no root, returning...\n");
re... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_sqlUpdateCampDist.c | <gh_stars>0
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_sqlUpdateCampDist.c
#include "headers.h"
// static function prototype
// these need to be included in the related implementation file
// versus a universal header file
static int callback(void *NotUsed, int argc, char **argv,... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_userListPrint.c | <reponame>tollesonpdx/Last_Minute_Camping_With_C<filename>code/f_userListPrint.c
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_printUserList.c
#include "headers.h"
int userListPrint(struct userList* L)
{
printf("printing user list...\n");
if (L->head == NULL)
... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_makeUserList.c | <filename>code/f_makeUserList.c
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_makeUserList.c
#include "headers.h"
struct userData* makeUserList()
{
struct userData* head = malloc(sizeof( userData* ));
strcpy(head->userLocation, "zzz");
head->next = NULL;
return h... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_logEntry.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_logEntry.c
#include "headers.h"
void logEntry(char* filename)
{
// create new log entry in log file
//FILE* f1 = fopen("capstoneResultsLog.txt","a+");
FILE* f1 = fopen(filename,"a+");
fprintf(f1,"\n\n\n\n");
for (... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_getUserData.c | <gh_stars>0
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_getUserData.c
#include "headers.h"
struct userData * getUserData()
{
struct userData * u1 = malloc(sizeof(struct userData));
char l[1000];
int m = -1;
int d = -1;
int y = -1;
double s = -1.0;
... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_campTreeDelete.c | <reponame>tollesonpdx/Last_Minute_Camping_With_C
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_campTreeDelete.c
#include "headers.h"
int campTreeDelete(struct campTree* C, int p)
{
if (p) { printf("deleting campground tree..."); }
if (C->root == NULL)
{
... |
tollesonpdx/Last_Minute_Camping_With_C | test/sqlstmts.h | <gh_stars>0
// filename: sqlstmts.h
#define maketables "\
create table userlocs(\
usercity varchar(100),\
userstate varchar(20),\
userzip int,\
userlat double,\
userlong double);\
\
create table camps(\
campid i... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_sqlClearCampDist.c | <reponame>tollesonpdx/Last_Minute_Camping_With_C
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_sqlClearCampDist.c
#include "headers.h"
// static function prototype
// these need to be included in the related implementation file
// versus a universal header file
static int callback(v... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_bufferInit.c | <gh_stars>0
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_bufferInit.c
#include "headers.h"
buffer* bufferInit()
{
struct buffer* b = malloc(sizeof( struct buffer ));
b->len = 0;
b->info = malloc(b->len+1);
if (b->info == NULL)
{
fprintf(stderr, "... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_parseCoords.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_parseCoords.c
#include "headers.h"
double* parseCoords(char* string, int p)
{
double* coords = calloc(2, sizeof(double));
// create cJSON object
cJSON* json = cJSON_Parse(string);
if (json == NULL)
{
... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_sqlCampsFromDb.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_sqlCampsFromDb.c
#include "headers.h"
// static function prototype
// these need to be included in the related implementation file
// versus a universal header file
static int callback(void *C, int argc, char **argv,
... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_bufferWrite.c | <reponame>tollesonpdx/Last_Minute_Camping_With_C<filename>code/f_bufferWrite.c
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_bufferWrite.c
#include "headers.h"
size_t bufferWrite(void *info, size_t size, size_t nmemb, buffer *buff)
{
size_t new_len = buff->len + size*nmemb;
... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_campTreeTravPrint.c | <reponame>tollesonpdx/Last_Minute_Camping_With_C
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_campTreeTravPrint.c
#include "headers.h"
int campTreeTravPrint(struct campground* node, int p)
{
// go left
if (node->left != NULL)
{ campTreeTravPrint(node->left, p); ... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_sqlMakeTables.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_sqlMakeTables.c
#include "headers.h"
// static function prototype
// these need to be included in the related implementation file
// versus a universal header file
static int callback(void *NotUsed, int argc, char **argv,
... |
tollesonpdx/Last_Minute_Camping_With_C | code/sqlstmts.h | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: sqlstmts.h
#ifndef __SQLSTMTS_H_
#define __SQLSTMTS_H_
// SQL statements to be passed into SQLite functions
#define maketables "\
create table userlocs(\
usercity varchar(100),\
userstate varchar(20),\
... |
tollesonpdx/Last_Minute_Camping_With_C | test/ll/headers.h | <gh_stars>0
#ifndef __HEADERS_H_
#define __HEADERS_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "structs.h"
struct userList* userListMake();
int userListAdd(struct userList* L, char* loc);
int userListPrint(struct userList* L);
int userListDelete(struct userList* L);
#endif
|
tollesonpdx/Last_Minute_Camping_With_C | code/f_sqlUpdateUserFromDb.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_sqlUpdateUserFromDb.c
#include "headers.h"
// static function prototype
// these need to be included in the related implementation file
// versus a universal header file
static int callback(void *user, int argc, char **argv,
... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_sqlInsertUser.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_sqlInsertUser.c
#include "headers.h"
// static function prototype
// these need to be included in the related implementation file
// versus a universal header file
static int callback(void *NotUsed, int argc, char **argv,
... |
tollesonpdx/Last_Minute_Camping_With_C | test/f_wrapField.c | <gh_stars>0
// <NAME> Copyright (c) 2019
// New Beginnings 2018 - Capstone Project
// filename: f_wrapField.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char* wrapField(char* a)
{
printf("in wrap function\n");
int lena = strlen(a);
char* b = calloc(lena+2, sizeof(char));
strcat(b,"... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_sqlSetDb.c | <filename>code/f_sqlSetDb.c
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_sqlSetDb.c
#include "headers.h"
// static function prototype
// these need to be included in the related implementation file
// versus a universal header file
static int callback(void *NotUsed, int argc, char ... |
tollesonpdx/Last_Minute_Camping_With_C | test/test_libxml.c | <gh_stars>0
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: test_libxml.c
// this file is used to test the libxml features before
// incorporating into the main capstone project
// attributions
// http://www.xmlsoft.org
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#includ... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_campTreeDeleteNode.c | <filename>code/f_campTreeDeleteNode.c<gh_stars>0
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_campTreeDeleteNode.c
#include "headers.h"
int campTreeDeleteNode(struct campground* node, int p)
{
if (p) { printf("deleting campground node..."); }
if (node->left != NULL)... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_campTreeMake.c | <reponame>tollesonpdx/Last_Minute_Camping_With_C<gh_stars>0
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_makeCampTree.c
#include "headers.h"
struct campTree* campTreeMake(double uLat, double uLng, double maxDriveD, int p)
{
if (p) { printf("creating tree of campgrounds...")... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_chadcat.c | <filename>code/f_chadcat.c
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_logEntry.c
#include "headers.h"
void chadcat(char* a, char* b)
{
int lena = strlen(a);
int lenb = strlen(b);
int newlen = lena + lenb + 3;
a = realloc(a, (newlen * sizeof(char)));
strcat... |
tollesonpdx/Last_Minute_Camping_With_C | test/test_haversine.c | <filename>test/test_haversine.c<gh_stars>0
// <NAME>
// testing of haversine formula
// filename: test_haversine.c
// attribution: https://en.wikipedia.org/wiki/Haversine_formula#The_haversine_formula
// attribution: https://www.vcalc.com/wiki/vCalc/Haversine+-+Distance
#include <stdio.h>
#include <stdlib.h>
#includ... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_campTreeProcess.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_campTreeProcess.c
#include "headers.h"
int campTreeProcess(struct campTree* C, sqlite3* db, int p)
{
if (p) { printf("traversing campground tree to update db "
"distances from user and pull additional "
... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_printUserData.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_printUserData.c
#include "headers.h"
void printUserData(struct userData * u1)
{
printf("Location: %s\n", u1->userLocation);
printf("latitude & longitude: %lf, %lf\n",
u1->u_lat, u1->u_long);
printf("date... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_geocodeUser.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_geocodeUser.c
#include "headers.h"
// function definition
void geocodeUser(userData* user, int p)
{
if (p) { printf("geocoding user location...\n"); }
char* add = convertAddress2G(user->userLocation);
buffer* buff =... |
tollesonpdx/Last_Minute_Camping_With_C | test/ll/f_userListPrint.c | // <NAME> Copyright (c) 2019
// New Beginnings 2018 - Capstone Project
// filename: f_printUserList.c
#include "headers.h"
int userListPrint(struct userList* L)
{
printf("printing user linked list\n");
if (L->head == NULL)
{
printf("no head, returning to main\n");
return 0;
... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_campTreePrintNode.c | <reponame>tollesonpdx/Last_Minute_Camping_With_C
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_campTreePrintNode.c
#include "headers.h"
int campTreePrintNode(struct campground* node)
{
//printf("\n\n");
for (int i = 0; i < 65; i++)
{ printf("="); }
printf("\n... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_sqlUpdateUsrCoords.c | <reponame>tollesonpdx/Last_Minute_Camping_With_C<filename>code/f_sqlUpdateUsrCoords.c
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_sqlUpdateUsrCoords.c
#include "headers.h"
// static function prototype
// these need to be included in the related implementation file
// versus a univ... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_userListAdd.c | <reponame>tollesonpdx/Last_Minute_Camping_With_C<filename>code/f_userListAdd.c
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_userListAdd.c
#include "headers.h"
int userListAdd(struct userList* L, char* loc, double* coords, int p)
{
if (p) { printf("adding user node to list..... |
tollesonpdx/Last_Minute_Camping_With_C | test/ll/f_userListAdd.c | // <NAME> Copyright (c) 2019
// New Beginnings 2018 - Capstone Project
// filename: f_addUserNode.c
#include "headers.h"
int userListAdd(struct userList* L, char* loc)
{
printf("insider add user node\n");
struct userData* fresh = malloc(sizeof(userData));
printf("added user location data\n");
strc... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_curlGeocode.c | <reponame>tollesonpdx/Last_Minute_Camping_With_C<gh_stars>0
// <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_curlGeocode.c
#include "headers.h"
buffer* curlGeocode(char* address, int p)
{
if (p) { printf("establishing curl...\n"); }
CURL* curl = curl_easy_init();
CURLco... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_haversine.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_haversine.c
// attribution: https://en.wikipedia.org/wiki/Haversine_formula#The_haversine_formula
// attribution: https://www.vcalc.com/wiki/vCalc/Haversine+-+Distance
#include "headers.h"
double haversine(double lat1, double lng1, doub... |
tollesonpdx/Last_Minute_Camping_With_C | test/ll/f_userListDelete.c | // <NAME> Copyright (c) 2019
// New Beginnings 2018 - Capstone Project
// filename: f_userListDelete.c
#include "headers.h"
int userListDelete(struct userList* L)
{
printf("deleting user linked list\n");
if (L->head == NULL)
{
printf("no head, returning to main\n");
return 0;
... |
tollesonpdx/Last_Minute_Camping_With_C | test/test_WcJSON.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: test_cJSON.c
// this file is used to test the cJSON features before
// incorporating into the main capstone project
// attributions
// http://www.json.org/
// https://github.com/DaveGamble/cJSON
#include <stdio.h>
#include <stdlib.h>
#inc... |
tollesonpdx/Last_Minute_Camping_With_C | test/ll/f_userListMake.c | // <NAME> Copyright (c) 2019
// New Beginnings 2018 - Capstone Project
// filename: f_makeUserList.c
#include "headers.h"
struct userList* userListMake()
{
struct userList* L = malloc(sizeof(struct userList));
L->head = NULL;
L->tail = NULL;
L->count = 0;
printf("returning to main from making ... |
tollesonpdx/Last_Minute_Camping_With_C | code/f_userListTravGeo.c | // <NAME> Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_userListTravGeo.c
#include "headers.h"
int userListTravGeo(struct userList* L, sqlite3* db, int p)
{
if (p) { printf("traversing user list to update db "
"geocodes...\n"); }
if (L->head == NULL)
... |
brekiy/neo | mp/src/game/shared/neo/weapons/weapon_neobasecombatweapon.h | #ifndef WEAPON_NEO_BASECOMBATWEAPON_SHARED_H
#define WEAPON_NEO_BASECOMBATWEAPON_SHARED_H
#ifdef _WIN32
#pragma once
#endif
#ifdef CLIENT_DLL
#include "c_neo_player.h"
#else
#include "neo_player.h"
#endif
#include "neo_player_shared.h"
#include "weapon_hl2mpbasehlmpcombatweapon.h"
#ifdef CLIENT_DLL
#define CNEOB... |
brekiy/neo | mp/src/game/shared/neo/weapons/weapon_m41s.h | #ifndef NEO_WEAPON_M41_S_H
#define NEO_WEAPON_M41_S_H
#ifdef _WIN32
#pragma once
#endif
#include "cbase.h"
#include "npcevent.h"
#include "in_buttons.h"
#ifdef CLIENT_DLL
#include "c_neo_player.h"
#else
#include "neo_player.h"
#endif
#include "weapon_neobasecombatweapon.h"
#ifdef CLIENT_DLL
#define CWeaponM41S C_We... |
brekiy/neo | mp/src/game/shared/neo/weapons/weapon_detpack.h | #ifndef NEO_WEAPON_DETPACK_H
#define NEO_WEAPON_DETPACK_H
#ifdef _WIN32
#pragma once
#endif
#include "cbase.h"
#ifdef CLIENT_DLL
#include "c_neo_player.h"
#else
#include "neo_player.h"
#endif
#include "weapon_neobasecombatweapon.h"
#ifdef CLIENT_DLL
#define CWeaponDetpack C_WeaponDetpack
#else
class CNEODeployedDet... |
brekiy/neo | mp/src/game/shared/neo/weapons/weapon_knife.h | #ifndef NEO_WEAPON_KNIFE_H
#define NEO_WEAPON_KNIFE_H
#ifdef _WIN32
#pragma once
#endif
#include "weapon_hl2mpbasebasebludgeon.h"
#ifdef CLIENT_DLL
#include "c_neo_player.h"
#else
#include "neo_player.h"
#endif
#ifdef CLIENT_DLL
#define CWeaponKnife C_WeaponKnife
#endif
#define KNIFE_RANGE 51.0f
class CWeaponKnife... |
brekiy/neo | mp/src/game/shared/neo/neo_player_shared.h | <gh_stars>10-100
#ifndef NEO_PLAYER_SHARED_H
#define NEO_PLAYER_SHARED_H
#ifdef _WIN32
#pragma once
#endif
#include "neo_predicted_viewmodel.h"
#ifdef INCLUDE_WEP_PBK
// Type to use if we need to ensure more than 32 bits in the mask.
#define NEO_WEP_BITS_UNDERLYING_TYPE long long int
#else
// Using plain int if we do... |
brekiy/neo | mp/src/game/shared/neo/neo_mount_original.h | <filename>mp/src/game/shared/neo/neo_mount_original.h<gh_stars>10-100
#ifndef NEO_MOUNT_ORIGINAL_H
#define NEO_MOUNT_ORIGINAL_H
#ifdef _WIN32
#pragma once
#endif
#include "tier1.h"
#include "mathlib/vmatrix.h"
#include "shareddefs.h"
#include "steam/steam_api.h"
#include "filesystem.h"
#ifdef LINUX
// User for renami... |
brekiy/neo | mp/src/game/client/neo/game_controls/neo_teammenu.h | <reponame>brekiy/neo
#ifndef NEO_TEAM_MENU_H
#define NEO_TEAM_MENU_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui/IScheme.h>
#include <vgui/KeyCode.h>
#include <vgui_controls/Frame.h>
#include <vgui_controls/EditablePanel.h>
#include <vgui_controls/Button.h>
#include <vgui_controls/ComboBox.h>
#include <igameevent... |
brekiy/neo | mp/src/game/server/neo/neo_detpack.h | <reponame>brekiy/neo
#ifndef NEO_DETPACK_NEO_H
#define NEO_DETPACK_NEO_H
#ifdef _WIN32
#pragma once
#endif
#include "cbase.h"
#include "basegrenade_shared.h"
#include "grenade_frag.h"
#include "Sprite.h"
#include "SpriteTrail.h"
#include "soundent.h"
#define NEO_DEPLOYED_DET_WARN_TIME 1.5f
#define NEO_DEPLOYED_DETPA... |
brekiy/neo | mp/src/game/shared/neo/neo_shot_manipulator.h | <gh_stars>10-100
#ifndef NEO_SHOT_MANIPULATOR_H
#define NEO_SHOT_MANIPULATOR_H
#ifdef _WIN32
#pragma once
#endif
#include "shot_manipulator.h"
#ifdef CLIENT_DLL
#include "c_neo_player.h"
#else
#include "neo_player.h"
#endif
class CNEOBaseCombatWeapon;
class CNEOShotManipulator : public CShotManipulator {
public:
C... |
brekiy/neo | mp/src/game/shared/hl2mp/weapon_hl2mpbasebasebludgeon.h | <filename>mp/src/game/shared/hl2mp/weapon_hl2mpbasebasebludgeon.h
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: The class from which all bludgeon melee
// weapons are derived.
//
// $Workfile: $
// $Date: $
// $NoKeywords: $
//==============================... |
brekiy/neo | mp/src/game/client/neo/ui/neo_hud_health_thermoptic_aux.h | <gh_stars>10-100
#ifndef NEO_HUD_HEALTH_THERMOPTIC_AUX_H
#define NEO_HUD_HEALTH_THERMOPTIC_AUX_H
#ifdef _WIN32
#pragma once
#endif
#include "neo_hud_childelement.h"
#include "hudelement.h"
#include <vgui_controls/Panel.h>
class CNeoHudElements;
class CNEOHud_HTA : public CNEOHud_ChildElement, public CHudElement, pub... |
brekiy/neo | mp/src/game/client/neo/ui/neo_hud_compass.h | <filename>mp/src/game/client/neo/ui/neo_hud_compass.h
#ifndef NEO_HUD_COMPASS_H
#define NEO_HUD_COMPASS_H
#ifdef _WIN32
#pragma once
#endif
#include "neo_hud_childelement.h"
#include "hudelement.h"
#include <vgui_controls/Panel.h>
class CNeoHudElements;
#define UNICODE_NEO_COMPASS_STR_LENGTH 50
class CNEOHud_Compas... |
brekiy/neo | mp/src/game/shared/neo/weapons/weapon_mpn.h | #ifndef NEO_WEAPON_MPN_H
#define NEO_WEAPON_MPN_H
#ifdef _WIN32
#pragma once
#endif
#include "cbase.h"
#include "npcevent.h"
#include "in_buttons.h"
#ifdef CLIENT_DLL
#include "c_neo_player.h"
#else
#include "neo_player.h"
#endif
#include "weapon_neobasecombatweapon.h"
#ifdef CLIENT_DLL
#define CWeaponMPN C_WeaponM... |
brekiy/neo | mp/src/game/client/neo/ui/neo_hud_ammo.h | #ifndef NEO_HUD_AMMO_H
#define NEO_HUD_AMMO_H
#ifdef _WIN32
#pragma once
#endif
#include "neo_hud_childelement.h"
#include "hudelement.h"
#include <vgui_controls/Panel.h>
class CNeoHudElements;
class CNEOHud_Ammo : public CNEOHud_ChildElement, public CHudElement, public vgui::Panel
{
DECLARE_CLASS_SIMPLE(CNEOHud_Am... |
brekiy/neo | mp/src/game/server/neo/neo_grenade.h | <reponame>brekiy/neo
#ifndef NEO_GRENADE_NEO_H
#define NEO_GRENADE_NEO_H
#ifdef _WIN32
#pragma once
#endif
#include "cbase.h"
#include "basegrenade_shared.h"
#include "grenade_frag.h"
#include "Sprite.h"
#include "SpriteTrail.h"
#include "soundent.h"
#define NEO_FRAG_GRENADE_WARN_TIME 1.5f
extern ConVar sk_plr_dmg_f... |
brekiy/neo | mp/src/game/server/neo/neo_player.h | <reponame>brekiy/neo<gh_stars>10-100
#ifndef NEO_PLAYER_H
#define NEO_PLAYER_H
#ifdef _WIN32
#pragma once
#endif
class CNEO_Player;
class INEOPlayerAnimState;
#include "basemultiplayerplayer.h"
#include "simtimer.h"
#include "soundenvelope.h"
#include "utldict.h"
#include "hl2mp_player.h"
#include "in_buttons.h"
#in... |
brekiy/neo | mp/src/game/shared/neo/weapons/weapon_supa7.h | <reponame>brekiy/neo
#ifndef NEO_WEAPON_SUPA7_H
#define NEO_WEAPON_SUPA7_H
#ifdef _WIN32
#pragma once
#endif
#include "cbase.h"
#include "npcevent.h"
#include "in_buttons.h"
#ifdef CLIENT_DLL
#include "c_neo_player.h"
#else
#include "neo_player.h"
#endif
#include "weapon_neobasecombatweapon.h"
#ifdef CLIENT_DLL
#de... |
brekiy/neo | mp/src/game/client/neo/c_neo_player.h | #ifndef NEO_PLAYER_H
#define NEO_PLAYER_H
#ifdef _WIN32
#pragma once
#endif
#include "in_buttons.h"
class C_NEO_Player;
#include "c_hl2mp_player.h"
#include "neo_player_shared.h"
class C_NEOPredictedViewModel;
class CNeoHudElements;
class INEOPlayerAnimState;
class C_NEO_Player : public C_HL2MP_Player
{
public:
D... |
brekiy/neo | mp/src/game/shared/neo/weapons/weapon_jittes.h | <gh_stars>10-100
#ifndef NEO_WEAPON_JITTE_S_H
#define NEO_WEAPON_JITTE_S_H
#ifdef _WIN32
#pragma once
#endif
#include "cbase.h"
#include "npcevent.h"
#include "in_buttons.h"
#ifdef CLIENT_DLL
#include "c_neo_player.h"
#else
#include "neo_player.h"
#endif
#include "weapon_neobasecombatweapon.h"
#ifdef CLIENT_DLL
#de... |
brekiy/neo | mp/src/game/shared/neo/weapons/weapon_milso.h | <filename>mp/src/game/shared/neo/weapons/weapon_milso.h<gh_stars>10-100
#ifndef NEO_WEAPON_MILSO_H
#define NEO_WEAPON_MILSO_H
#ifdef _WIN32
#pragma once
#endif
#include "cbase.h"
#include "npcevent.h"
#include "in_buttons.h"
#ifdef CLIENT_DLL
#include "c_neo_player.h"
#else
#include "neo_player.h"
#endif
#include "w... |
brekiy/neo | mp/src/game/shared/neo/weapons/weapon_tachi.h | #ifndef NEO_WEAPON_TACHI_H
#define NEO_WEAPON_TACHI_H
#ifdef _WIN32
#pragma once
#endif
#include "cbase.h"
#include "npcevent.h"
#include "in_buttons.h"
#ifdef CLIENT_DLL
#include "c_neo_player.h"
#else
#include "neo_player.h"
#endif
#include "weapon_neobasecombatweapon.h"
#ifdef CLIENT_DLL
#define CWeaponTachi C... |
brekiy/neo | mp/src/game/shared/neo/neo_gamerules.h | #ifndef NEO_GAMERULES_H
#define NEO_GAMERULES_H
#ifdef _WIN32
#pragma once
#endif
#include "gamerules.h"
#include "teamplay_gamerules.h"
#include "gamevars_shared.h"
#include "hl2mp_gamerules.h"
#include "shareddefs.h"
#include "GameEventListener.h"
#ifndef CLIENT_DLL
#include "neo_player.h"
#endif
enum
{
TEAM_JI... |
brekiy/neo | mp/src/game/client/neo/ui/neo_hud_ghost_marker.h | <gh_stars>10-100
#ifndef NEO_HUD_GHOST_MARKER_H
#define NEO_HUD_GHOST_MARKER_H
#ifdef _WIN32
#pragma once
#endif
#include "neo_hud_childelement.h"
#include "hudelement.h"
#include <vgui_controls/Panel.h>
class CNEOHud_GhostMarker : public CNEOHud_ChildElement, public CHudElement, public vgui::Panel
{
DECLARE_CLASS_S... |
brekiy/neo | mp/src/game/shared/neo/weapons/weapon_jitte.h | #ifndef NEO_WEAPON_JITTE_H
#define NEO_WEAPON_JITTE_H
#ifdef _WIN32
#pragma once
#endif
#include "cbase.h"
#include "npcevent.h"
#include "in_buttons.h"
#ifdef CLIENT_DLL
#include "c_neo_player.h"
#else
#include "neo_player.h"
#endif
#include "weapon_neobasecombatweapon.h"
#ifdef CLIENT_DLL
#define CWeaponJitte C_W... |
brekiy/neo | mp/src/game/shared/neo/weapons/weapon_pbk56s.h | #ifndef NEO_WEAPON_PBK56S_H
#define NEO_WEAPON_PBK56S_H
#ifdef _WIN32
#pragma once
#endif
#include "cbase.h"
#include "npcevent.h"
#include "in_buttons.h"
#ifdef CLIENT_DLL
#include "c_neo_player.h"
#else
#include "neo_player.h"
#endif
#include "weapon_neobasecombatweapon.h"
#ifdef CLIENT_DLL
#define CWeaponPBK56S ... |
brekiy/neo | mp/src/game/client/neo/ui/neo_hud_round_state.h | #ifndef NEO_HUD_ROUND_STATE_H
#define NEO_HUD_ROUND_STATE_H
#ifdef _WIN32
#pragma once
#endif
#include "neo_hud_childelement.h"
#include "hudelement.h"
#include <vgui_controls/Panel.h>
class vgui::ImagePanel;
class CNEOHud_RoundState : public CNEOHud_ChildElement, public CHudElement, public vgui::Panel
{
DECLARE_CL... |
brekiy/neo | mp/src/game/shared/neo/weapons/weapon_kyla.h | #ifndef NEO_WEAPON_KYLA_H
#define NEO_WEAPON_KYLA_H
#ifdef _WIN32
#pragma once
#endif
#include "weapon_neobasecombatweapon.h"
#ifdef CLIENT_DLL
#define CWeaponKyla C_WeaponKyla
#endif
class CWeaponKyla : public CNEOBaseCombatWeapon
{
DECLARE_CLASS(CWeaponKyla, CNEOBaseCombatWeapon);
public:
DECLARE_NETWORKCLASS();... |
brekiy/neo | mp/src/game/shared/neo/weapons/weapon_aa13.h | #ifndef NEO_WEAPON_AA13_H
#define NEO_WEAPON_AA13_H
#ifdef _WIN32
#pragma once
#endif
#include "weapon_neobasecombatweapon.h"
#ifdef CLIENT_DLL
#define CWeaponAA13 C_WeaponAA13
#endif
class CWeaponAA13 : public CNEOBaseCombatWeapon
{
DECLARE_CLASS(CWeaponAA13, CNEOBaseCombatWeapon);
public:
DECLARE_NETWORKCLASS();... |
brekiy/neo | mp/src/game/shared/neo/weapons/weapon_smokegrenade.h | #ifndef NEO_WEAPON_SMOKEGRENADE_H
#define NEO_WEAPON_SMOKEGRENADE_H
#ifdef _WIN32
#pragma once
#endif
#include "cbase.h"
#include "npcevent.h"
#include "in_buttons.h"
#ifdef CLIENT_DLL
#include "c_neo_player.h"
#else
#include "neo_player.h"
#endif
#include "weapon_neobasecombatweapon.h"
#define GRENADE_PAUSED_NO ... |
brekiy/neo | mp/src/game/client/neo/ui/neo_hud_childelement.h | #ifndef NEO_HUD_CHILDELEMENT_H
#define NEO_HUD_CHILDELEMENT_H
#ifdef _WIN32
#pragma once
#endif
class CNeoHudElements;
class C_NEO_Player;
#define NEO_HUD_ELEMENT_FREQ_CVAR_NAME(Name) cl_neo_hud_ ## Name ## _update_freq
#ifndef xstr
#define xstr(a) str(a)
#endif
#ifndef str
#define str(a) #a
#endif
#define NEO_HUD_EL... |
edmund-h/RWPickFlavor | Pods/Headers/Public/Alamofire/Alamofire-umbrella.h | ../../../Target Support Files/Alamofire/Alamofire-umbrella.h |
6rayWa1cher/mini-cpp-compiler | src/include/Scanner.h | //
// Created by 6rayWa1cher and Elikeid on 16.10.2019.
//
#ifndef PROJECT_MICRIC_SCANNER_H
#define PROJECT_MICRIC_SCANNER_H
#include <map>
#include <istream>
#include <stack>
#include "Token.h"
static std::map<char, LexemType> punctuation{{'[', LexemType::lbracket},
{']',... |
6rayWa1cher/mini-cpp-compiler | src/include/Token.h | //
// Created by GabrGabr on 15.10.2019.
//
#ifndef PROJECT_MICRIC_TOKEN_H
#define PROJECT_MICRIC_TOKEN_H
#include <string>
enum class LexemType {
num, chr, str, id, lpar, rpar, lbrace, rbrace, lbracket, rbracket,
semicolon, comma, colon, opassign, opplus, opminus, opmult, opinc, opeq, opne, oplt,
opgt, ople, opn... |
6rayWa1cher/mini-cpp-compiler | src/lib/CommonUtils.h | <reponame>6rayWa1cher/mini-cpp-compiler
//
// Created by 6rayWa1cher on 16.10.2019.
//
#ifndef PROJECT_MICRIC_COMMONUTILS_H
#define PROJECT_MICRIC_COMMONUTILS_H
namespace CommonUtils {
bool isDigit(char c);
bool isLetter(char c);
int charToInt(char c);
}
#endif //PROJECT_MICRIC_COMMONUTILS_H
|
MicahChambers/mathparse | mathexpression.h | /******************************************************************************
* Copyright 2014 <NAME> (<EMAIL>)
*
* 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... |
ThallesTorres/Linguagem_C | Pratica_01/ex02.c | <filename>Pratica_01/ex02.c
// Exercício 02 - Faça um programa que solicite um número (inteiro/positivo) e imprima-o.
#include <stdio.h>
int main(void)
{
int num;
printf("Digite um número: ");
scanf("%d", &num);
printf("Número digitado: %d \n", num);
return 0;
} |
ThallesTorres/Linguagem_C | Pratica_03/ex11.c | // Exercício 11 - Durante uma corrida de automóveis com N voltas de duração foram anotados para um piloto, na ordem, os tempos resgistrados em cada volta. Fazer um programa em C para ler os tempos das N voltas, calcular e imprimir:
# include <stdio.h>
int linha(void) {
char x = '-';
printf("\n\033[33m");
... |
ThallesTorres/Linguagem_C | Pratica_05/ex04.c | // Exercício 04 - Sem usar as funções para manipulação de strings da biblioreca <string.h>,
// use a função gets() para armazenar seu nome na string nome[100] e:
// A - Informe o número de caracteres do seu nome.
// B - Informe o número de vogais, consoantes e espaços em branco do seu nome.
// C - Exiba seu nome sem v... |
ThallesTorres/Linguagem_C | Pratica_01/ex03.c | // Exercício 03 - Dado um número positivo n, imprimir seu quadrado.
#include <stdio.h>
int main(void)
{
int num;
printf("Digite um número: ");
scanf("%d", &num);
printf("O quadrado de %d é %d. \n", num, num * num);
return 0;
} |
ThallesTorres/Linguagem_C | Pratica_02/ex04.c | /* Exercício 04 - Escreva uma função que recebes 3 valores inteiros e positvos X, Y e Z e que verifique
se esses valores podem ser os comprimentos dos lados de um triângulo e, neste caso, retornar qual o
tipo de triângulo formado.
• o Triângulo Equilátero: os comprimentos dos 3 lados são iguais.
• o Tri... |
ThallesTorres/Linguagem_C | Pratica_01/ex12.c | <reponame>ThallesTorres/Linguagem_C
// Exercício 12 - Dado um número inteiro positivo n, imprimir os n primeiros naturais ímpares.
#include <stdio.h>
int main(void)
{
int num, impar;
impar = 1;
printf("Digite um número: ");
scanf("%d", &num);
printf("Os %d primeiros números ímpares são: ", n... |
ThallesTorres/Linguagem_C | Pratica_03/ex02.c | // Exercício 02 - Escreva um programa principal que:
// a - Leia 10 números (vetor inteiros) a partir de valores digitados pelo usuário.
// b - Imprima na tela apenas os valores maior que 20.
# include <stdio.h>
int linha(void) {
char x = '-';
printf("\n\033[33m");
for (int count = 0; count < 30; coun... |
ThallesTorres/Linguagem_C | Pratica_03/ex08.c | // Exercício 08 - Inicialize um vetor de 10 posições e em seguida leia um valor X qualquer.
// Seu programa devera fazer uma busca do valor de X no vetor lido e informar a posição em que
// foi encontrado ou se não foi encontrado.
# include <stdio.h>
int linha(void) {
char x = '-';
printf("\n\033[33m");
... |
ThallesTorres/Linguagem_C | Pratica_01/ex04.c | // Exercício 04 - Faça um programa que solicite o ano em que uma pessoa nasceu e retorne sua idade.
#include <stdio.h>
int main(void)
{
int ano;
printf("Ano de Nascimento: ");
scanf("%d", &ano);
printf("Quem nasceu em %d tem %d anos. \n", ano, 2020 - ano);
return 0;
} |
ThallesTorres/Linguagem_C | Pratica_02/ex05.c | // Exercício 05 - Dado um número inteiro positivo n verificar se é par ou ímpar. Apresente uma
// mensagem na tela informando o número e o resultado.
#include <stdio.h>
int main(void)
{
int fat(int num);
int num;
printf("Digite um número: ");
scanf("%d", &num);
printf("Fatorial de %d: %d \n",... |
ThallesTorres/Linguagem_C | Pratica_02/ex06.c | // Exercício 06 - Escreva uma função recursiva que receba, por parâmetro, dois valores X e Z e calcula
// e retorna XZ.
#include <stdio.h>
int main(void)
{
int n1, n2;
printf("Base = ");
scanf("%d", &n1);
printf("Expoente = ");
scanf("%d", &n2);
printf("Resultado = %d \n", potenciacao(n1... |
ThallesTorres/Linguagem_C | Pratica_01/ex05.c | // Exercício 05 - Dado um número inteiro positivo n verificar se é par ou ímpar. Apresente uma
// mensagem na tela informando o número e o resultado.
#include <stdio.h>
int main(void)
{
int num;
char resultado;
printf("Digite um número: ");
scanf("%d", &num);
/*
if (num % 2 != 0)
{
printf("O núme... |
ThallesTorres/Linguagem_C | Pratica_01/ex13.c | <gh_stars>0
// Exercício 13 - Dados um inteiro x e um inteiro não-negativo n, calcular x n.
#include <stdio.h>
int main(void)
{
int n1, n2;
printf("Digite um número inteiro: ");
scanf("%d", &n1);
printf("Digite um outro inteiro (exceto negativos): ");
scanf("%d", &n2);
printf("%d elevado a ... |
ThallesTorres/Linguagem_C | Pratica_02/ex07.c | /* Exercício 07 - Faça 3 funções:
• ler: - uma função que receba dois número inteiro positivo n;
• multiplicar: - que multiplique os números recebidos na função ler;
• imprimir: - que imprima o resultado da função multiplicar. */
# include <stdio.h>
int n1, n2;
int main(void)
{
int ler(void);
int... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.