repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
noahzhy/cpp_2018_fall
hw5-3/magic_square.h
<reponame>noahzhy/cpp_2018_fall<filename>hw5-3/magic_square.h<gh_stars>0 #pragma once #include <iostream> using namespace std; void magic_square(int **a, int size);
noahzhy/cpp_2018_fall
hw5-1/circle.h
#pragma once double getCirclePerimeter(double r); double getCircleArea(double r);
noahzhy/cpp_2018_fall
hw6-1/simple_account.h
<reponame>noahzhy/cpp_2018_fall<filename>hw6-1/simple_account.h #pragma once class simple_account{ public: int id; double balance; public: simple_account(); bool transfer(simple_account *from_id, simple_account *to_id, double amount); double get_balance(); bool deposit(double amount); bool withdraw(double amount)...
noahzhy/cpp_2018_fall
hw7-1/sorted_array.h
#ifndef __sorted_array__ #define __sorted_array__ #include <iostream> #include <vector> using namespace std; class SortedArray { public: SortedArray(); ~SortedArray(); void AddNumber(int num); vector<int> GetSortedAscending()const; vector<int> GetSortedDescending()const; int GetMax() const; int GetMin() cons...
noahzhy/cpp_2018_fall
hw11-1/string.h
#ifndef __String__ #define __String__ #include <iostream> using namespace std; class MyString { private: int len; char* a; public: //Constructor, Destructor MyString(); MyString(const char* str); ~MyString(); MyString operator+(const MyString& a); MyString operator*(const int a); MyString& operator=(const MySt...
noahzhy/cpp_2018_fall
hw10-1/shapes.h
#ifndef shape #define shape class Shape{ public: Shape(double width,double height); virtual double getArea() = 0; protected: double width; double height; }; class Rectangle:public Shape{ public: Rectangle(double width,double height); virtual double getArea(); }; class Triangle:public Shape{ public: Tria...
noahzhy/cpp_2018_fall
hw6-3/minimal_fighter.h
<gh_stars>0 // minimal_fighter.h // Implement your minimal_fighter.cc #ifndef __hw03__minimal_fighter__ #define __hw03__minimal_fighter__ #include <iostream> using namespace std; enum EFighterStatus { Invalid = 0, Alive, Dead, }; typedef enum EFighterStatus FighterStatus; class MinimalFighter { pri...
noahzhy/cpp_2018_fall
hw12-2/my_shared_ptr.h
<gh_stars>0 #ifndef __my_shared_ptr__ #define __my_shared_ptr__ #include <iostream> using namespace std; template <class T> class My_shared_ptr { private: T* m_obj = NULL; int* count = NULL; public: My_shared_ptr(){ m_obj = NULL; count = NULL; } My_shared_ptr(T* obj){ m_obj = obj; count = new i...
noahzhy/cpp_2018_fall
hw10-1/dynamic_cast.h
#ifndef __dynamic_cast__ #define __dynamic_cast__ #include <iostream> using namespace std; class B{ public: virtual ~B() {} }; class C : public B{ public: void test_C() { std::cout << "C::test_C()" << std::endl; } }; class D : public B{ public: void test_D() { std::cout << "D::test_D()" << std::endl; } }...
noahzhy/cpp_2018_fall
hw9-2/draw_shape.h
#ifndef __draw_shape__ #define __draw_shape__ #include <iostream> #include <vector> using namespace std; class Canvas { public: Canvas(size_t row, size_t col); ~Canvas(); void Resize(size_t w, size_t h); bool DrawPixel(int x, int y, char brush); void Print(); void Clear(); private: size_t row_; size_...
noahzhy/cpp_2018_fall
hw10-2/clock_time.h
<filename>hw10-2/clock_time.h<gh_stars>0 #ifndef CLOCK_TIME_H #define CLOCK_TIME_H // Define a set of symbolic constants used to specify various values related // to time keeping. #define SECONDS_PER_MINUTE 60 #define MINUTES_PER_HOUR 60 #define HOURS_PER_DAY 24 class ClockTime // ClockTime is a...
noahzhy/cpp_2018_fall
hw9-1/classes.h
<filename>hw9-1/classes.h<gh_stars>0 #ifndef __classes__ #define __classes__ #include <iostream> using namespace std; class A{ public: virtual void test(); }; class B: public A{ public: virtual void test(); }; class C: public B{ public: virtual void test(); }; #endif
noahzhy/cpp_2018_fall
hw9-1/print_member.h
#ifndef __print_member__ #define __print_member__ #include <iostream> #include <string> using namespace std; class A { public: A(); A(int a); virtual ~A(); virtual void print(); private: int *memberA; }; class B: public A { public: B(); B(double b); virtual ~B(); virtual void print(); private: double *membe...
noahzhy/cpp_2018_fall
hw10-1/class_function.h
<gh_stars>0 #ifndef __class_function__ #define __class_function__ //#include <iostream> //using namespace std; class A{ public: virtual void test1(); virtual void test2() = 0; }; class B : public A{ public: virtual void test2(); }; class C : public A{ public: void test1(); virtual void test2(); }; class B...
noahzhy/cpp_2018_fall
hw7-2/simple_int_set.h
#ifndef __simple_int_set__ #define __simple_int_set__ #include <iostream> #include <set> using namespace std; class SimpleIntSet{ public: SimpleIntSet(); ~SimpleIntSet(); bool InputSet(set<int>* s); set<int> SetIntersection(const set<int>& set0, const set<int>& set1); set<int> SetUnion(const set<int>& set0, c...
noahzhy/cpp_2018_fall
hw5-2/sort.h
#pragma once #include <iostream> void swap(int *a,int i,int j); void bubble_sort(int *a,int len);
noahzhy/cpp_2018_fall
hw12-1/Container.h
#ifndef __Container__ #define __Container__ #include "MyContainer.h" #include <iostream> using namespace std; int max(int a, int b) { if (a > b) { return a; } else { return b; } } template <typename T> class MyVector : public MyContainer<T> { public: MyVector() : MyContainer<T>() { capacity = 0; } M...
noahzhy/cpp_2018_fall
hw9-1/print_info.h
#ifndef __print_info__ #define __print_info__ #include <iostream> #include <string> using namespace std; class A { public: virtual string getTypeInfo(); }; class B: public A { public: virtual string getTypeInfo(); }; class C: public B { public: virtual string getTypeInfo(); }; #endif
donotturnoff/herbe
config.h
<filename>config.h static const char *background_color = "#222222"; static const char *border_color = "#005577"; static const char *font_color = "#eeeeee"; static const char *font_pattern = "Terminus:size=10:antialias=false:autohint=true"; static const unsigned line_spacing = 5; static const unsigned int padding = 15; ...
SleepyLGod/Miscellaneous
Sudoku/SudokuQt/sudoku.h
#define SUDOKU_H /** * Suduku.h * 基于SAT的数独游戏求解程序 * * Created by 路昊东 on 2021/9/5 * Copyright ? 2021 路昊东. All rights reserved. **/ #ifndef Sudoku_h #define Sudoku_h #include <stdio.h> #include <stdlib.h> #include "dpll.h" #include "cnf.h" extern int sudoku_table[9][9]; //定义全局变量int类型二维数组存储数独盘 extern ...
SleepyLGod/Miscellaneous
cpp_lab_2021/OtherVersions/lab5_2020/version1/SITE.h
<filename>cpp_lab_2021/OtherVersions/lab5_2020/version1/SITE.h<gh_stars>1-10 #ifndef __Site_Imfo_H__ #define __Site_Imfo_H__ struct Site_Imfo{ char organization[2][100]={}; int location[2]={0,}; int organization_num=0; int organization_no[2]; // int accessible_location_num=0; // int accessible_loc...
SleepyLGod/Miscellaneous
cpp_lab_2021/HustMap/mapedge.h
#ifndef MAPEDGE_H #define MAPEDGE_H #include "mappoint.h" class MapPoint; class MapEdge { MapPoint* to_ = nullptr; MapEdge* next_ = nullptr; double edge_distance_ = 0.0; public: MapEdge(); // setters: void add_next_(MapPoint* to, double distance = 1.0); // getters: MapEdge*& get_nex...
SleepyLGod/Miscellaneous
focusClimer/focusClimer 2.0/panel.h
<gh_stars>0 // 控制面板的设计 #ifndef PANEL_H #define PANEL_H #include <QWidget> #include <QMainWindow> #include <QtWidgets/QWidget> #include <QPainter> #include <algorithm> #include <complex> #include <QTimer> class panel : public QWidget { Q_OBJECT public: explicit panel(QWidget *parent = nullptr); void se...
SleepyLGod/Miscellaneous
Sudoku/SudokuQt/cnf.h
#ifndef CNF_H #define CNF_H #include <stdio.h> #include <stdlib.h> #include <string.h> #include <qstring.h> #include <qdebug.h> #include <qtextcodec.h> #include <QTextCodec> #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASTABLE -1 #define OVERFLOW -2 #define INCREASEMENT 100 #define SUDOKU_L...
SleepyLGod/Miscellaneous
cpp_lab_2021/HustMap/mappoint.h
#ifndef MAPPOINT_H #define MAPPOINT_H #include <iostream> #include <algorithm> #include <math.h> #include "mapedge.h" class MapEdge; class MapPoint { private: int point_x_ = 0; int point_y_ = 0; int point_index_ = 0; MapEdge* direct_edge_first_ = nullptr; MapEdge* every_edge_first_ = nullptr; pub...
SleepyLGod/Miscellaneous
Sudoku/Sudoku_cpp_linux/DPLL.h
/** * DPLL.h * 基于SAT的数独游戏求解程序 * * Created by 路昊东 on 2021/9/10 * Copyright ? 2021 路昊东. All rights reserved. */ #ifndef DPLL_h #define DPLL_h #include <stdlib.h> #include <stdio.h> #include <time.h> #include "cnf.h" status SAT(void); status DPLL1(int num,int op,int times); //采用第一种变元选取策略的递归算法DPLL函数 status D...
SleepyLGod/Miscellaneous
Sudoku/SudokuQt/mainwindow.h
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include "dpll.h" #include "sudoku.h" #include <QList> #include <qvalidator.h> #include <QFileDialog> #include <QTextCodec> #include <qdebug.h> #include <iomanip> QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow ...
SleepyLGod/Miscellaneous
cpp_lab_2021/HustMap/mainwindow.h
<filename>cpp_lab_2021/HustMap/mainwindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QMouseEvent> #include <string> #include <QPoint> #include "BusMap.h" #include "mappoint.h" #include "mapedge.h" #include "busdialog.h" QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NA...
SleepyLGod/Miscellaneous
focusClimer/focusClimer 2.0/trajectory.h
#ifndef TRAJECTORY_H #define TRAJECTORY_H #include <QTransform> #include "lineentity.h" #include <QEntity> // 在我的Ubuntu20.04系统中的安装位置 //#include <eigen3/Eigen/Core> //#include <eigen3/Eigen/Geometry> // win10下的安装位置 #include <Eigen/Core> #include <Eigen/Geometry> class Trajectory : public LineEntity { private: Ei...
SleepyLGod/Miscellaneous
cpp_lab_2021/OtherVersions/lab5_2020/version3/HustMap/HustMap.h
 // HustMap.h: HustMap 应用程序的主头文件 // #pragma once #ifndef __AFXWIN_H__ #error "在包含此文件之前包含 'pch.h' 以生成 PCH" #endif #include "resource.h" // 主符号 // CHustMapApp: // 有关此类的实现,请参阅 HustMap.cpp // class CHustMapApp : public CWinAppEx { public: CHustMapApp() noexcept; // 重写 public: virtual BOOL InitInstance(); ...
SleepyLGod/Miscellaneous
focusClimer/focusClimer 2.0/lineentity.h
#ifndef LINEENTITY_H #define LINEENTITY_H #include <Qt3DCore/QEntity> #include <Qt3DRender/QGeometry> #include <Qt3DRender/QBuffer> #include <Qt3DRender/QGeometryRenderer> #include <Qt3DExtras/QDiffuseSpecularMaterial> #include <Qt3DRender/QAttribute> #include <QVector3D> class LineEntity : public Qt3DCore::QEntity {...
SleepyLGod/Miscellaneous
cpp_lab_2021/OtherVersions/lab5_2020/version3/HustMap/ViewTree.h
 #pragma once ///////////////////////////////////////////////////////////////////////////// // CViewTree 窗口 class CViewTree : public CTreeCtrl { // 构造 public: CViewTree() noexcept; // 重写 protected: virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult); // 实现 public: virtual ~CViewTree(); protec...
SleepyLGod/Miscellaneous
focusClimer/focusClimer 2.0/axesentity_robot.h
#ifndef AXESENTITY_ROBOT_H #define AXESENTITY_ROBOT_H #include "lineentity.h" // 自身系坐标轴 class AxesEntity_robot : public Qt3DCore::QEntity { public: AxesEntity_robot(Qt3DCore::QNode *parent = nullptr); AxesEntity_robot(unsigned int axisLen,/* unsigned int auxiliaryLen1,unsigned int auxiliaryLen2, */Qt3DCore::Q...
SleepyLGod/Miscellaneous
cpp_lab_2021/HustMap/busdialog.h
#ifndef BUSDIALOG_H #define BUSDIALOG_H #include <QDialog> #include <QPushButton> #include <QString> #include <QDebug> #include <iostream> namespace Ui { class BusDialog; } class BusDialog : public QDialog { Q_OBJECT public: QString point_name_; explicit BusDialog(QWidget *parent = nullptr); ~BusDia...
SleepyLGod/Miscellaneous
Sudoku/SudokuQt/dpll.h
#ifndef DPLL_H #define DPLL_H #include <stdlib.h> #include <stdio.h> #include <time.h> #include "cnf.h" #include "mainwindow.h" status DPLL1(int num,int op,int times); //采用第一种变元选取策略的递归算法DPLL函数 status DPLL2(int num,int op,int times); //采用第二种变元选取策略的递归算法DPLL函数 status DPLL3(int num,int op,int times); //采用第三种变元选取策略的...
SleepyLGod/Miscellaneous
cpp_lab_2021/OtherVersions/lab5_2021/version1/mainwindow.h
<gh_stars>1-10 #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include "busMap.h" #include "dialog.h" #include <QMouseEvent> #include <string> #include <QPoint> QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow : public QMainWindow { Q_OBJECT busMap *bp;...
SleepyLGod/Miscellaneous
cpp_lab_2021/HustMap/BusMap.h
#ifndef BusMap_H #define BusMap_H #include <string> #include <fstream> #include <queue> #include "mappoint.h" using namespace std; class BusMap { private: int map_len_ = 0; int map_wid_ = 0; int bus_stop_cnt_ = 0; // 公交车站点数量 int bus_line_cnt_ = 0; // 公交车线路数量 int ...
SleepyLGod/Miscellaneous
focusClimer/focusClimer 2.0/axesentity.h
<gh_stars>1-10 #ifndef AXESENTITY_H #define AXESENTITY_H #include "lineentity.h" // 世界系坐标轴 class AxesEntity : public Qt3DCore::QEntity { public: AxesEntity(Qt3DCore::QNode *parent = nullptr); AxesEntity(unsigned int axisLen,Qt3DCore::QNode *parent = nullptr); void setAxisLen(unsigned int axisLen); priva...
SleepyLGod/Miscellaneous
cpp_lab_2021/OtherVersions/lab5_2020/version3/HustMap/CMapModel.h
<gh_stars>1-10 #pragma once #include <afx.h> #include <vector> class CMapModel : public CObject { private: CString m_sMapFilePath = _T(""); CString m_sLocationFilePath = _T(""); CString m_sEdgeFilePath = _T(""); CString m_sOrgFilePath = _T(""); CString m_sLocOrgFilePath = _T(""); std::vector...
SleepyLGod/Miscellaneous
cpp_lab_2021/OtherVersions/lab5_2020/version1/search.h
<gh_stars>1-10 #ifndef SEARCH_H #define SEARCH_H #include <QWidget> class search : public QWidget { Q_OBJECT public: explicit search(QWidget *parent = nullptr); signals: }; #endif // SEARCH_H
SleepyLGod/Miscellaneous
cpp_lab_2021/OtherVersions/lab5_2020/version3/HustMap/CMapDialog.h
#pragma once #include<vector> // CMapDialog 对话框 class CMapDialog : public CDialogEx { DECLARE_DYNAMIC(CMapDialog) public: CMapDialog(CWnd* pParent = nullptr); // 标准构造函数 virtual ~CMapDialog(); // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD = IDD_MAP_DIALOG }; #endif protected: virtual void DoDataExchange(CDataEx...
SleepyLGod/Miscellaneous
cpp_lab_2021/OtherVersions/lab5_2020/version2/mainwindow.h
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include "mapwidget.h" //#include <QToolButton> #include <QGraphicsLineItem> #include <QGraphicsScene> #include <QGraphicsView> #include <QLabel> #include <QComboBox> #include <QTextEdit> #include <QVector> #include <QMouseEvent> #include <QDialog> #incl...
SleepyLGod/Miscellaneous
cpp_lab_2021/OtherVersions/lab5_2020/version3/HustMap/HustMapView.h
 // HustMapView.h: CHustMapView 类的接口 // #pragma once class CHustMapView : public CView { protected: // 仅从序列化创建 CHustMapView() noexcept; DECLARE_DYNCREATE(CHustMapView) //起点,终点,拖拉状态 Add By Z protected: //CPoint m_LineStart;//鼠标点击画线起点 //CPoint m_LastLineEnd;//上次画线的终点 //boolean m_DraggingState = false;//按下鼠标左键的同时...
SleepyLGod/Miscellaneous
focusClimer/focusClimer 2.0/auxiliatyentity.h
<filename>focusClimer/focusClimer 2.0/auxiliatyentity.h #ifndef AUXILIATYENTITY_H #define AUXILIATYENTITY_H #include "lineentity.h" // 三个平面上的辅助线 class AuxiliatyEntity: public Qt3DCore::QEntity { public: AuxiliatyEntity(Qt3DCore::QNode *parent = nullptr); AuxiliatyEntity(int auxiliaryLen1, int auxiliaryLen2, Qt...
SleepyLGod/Miscellaneous
cpp_lab_2021/OtherVersions/lab5_2021/version1/myPoint.h
<reponame>SleepyLGod/Miscellaneous #pragma once #include <algorithm> #include <math.h> class myPoint; class myEdge { myPoint* to = nullptr; myEdge* next = nullptr; double distance = 0.0; public: void addNext(myPoint* to, double distance = 1.0); myEdge*& getNext(); myPoint*& getTo(); double& getDistance(); }; ...
SleepyLGod/Miscellaneous
Sudoku/Sudoku_cpp_linux/Sudoku.h
/** * Suduku.h * 基于SAT的数独游戏求解程序 * * Created by 路昊东 on 2021/9/10 * Copyright ? 2021 路昊东. All rights reserved. */ #ifndef Sudoku_h #define Sudoku_h #include <stdio.h> #include <stdlib.h> #include "DPLL.h" #include "cnf.h" status Sudoku(void); FILE * CreateSudokuFile(void); // 创建数独问题转化为SAT问题后的cnf文件 s...
SleepyLGod/Miscellaneous
focusClimer/focusClimer 2.0/dobotmodel.h
<filename>focusClimer/focusClimer 2.0/dobotmodel.h #ifndef DOBOTMODEL_H #define DOBOTMODEL_H #include <Qt3DCore/QEntity> #include <QVector3D> #include <Qt3DCore/QTransform> #include <Qt3DExtras/QDiffuseSpecularMaterial> #include <Qt3DRender/QMesh> #include <iostream> #include "axesentity.h" // 本人Ubuntu20.04系统中的安装位置 //...
SleepyLGod/Miscellaneous
cpp_lab_2021/OtherVersions/lab5_2020/version2/mapwidget.h
<filename>cpp_lab_2021/OtherVersions/lab5_2020/version2/mapwidget.h #ifndef MAPWIDGET_H #define MAPWIDGET_H #include <QGraphicsView> #include <QLabel> #include <QLineEdit> #include <QPushButton> #include <QMouseEvent> class MapWidget : public QGraphicsView { Q_OBJECT public: MapWidget(); void readMap(); ...
SleepyLGod/Miscellaneous
focusClimer/focusClimer 2.0/dataview.h
<reponame>SleepyLGod/Miscellaneous #ifndef DATAVIEW_H #define DATAVIEW_H #include <QMainWindow> #include <QWidget> #include <QtCharts> //必须这么设置 #include <QtDataVisualization> #include <QTimer> //using namespace QtDataVisualization; using QtDataVisualization::Q3DScatter; using QtDataVisualization::QScatter3DSeries; ...
SleepyLGod/Miscellaneous
focusClimer/focusClimer 2.0/filepath.h
// 获取JSON文件路径 #ifndef FILEPATH_H #define FILEPATH_H #define SettingFilePath "./setting.json" #define TrailFilePath "./optitrack_data.txt" #define fishEXE "F:\\ClimbotWizardProjOL20200526\\fish_show_finlish_EXE\\fish_submitted.exe" #endif // FILEPATH_H
SleepyLGod/Miscellaneous
cpp_lab_2021/OtherVersions/lab5_2021/version1/busMap.h
#pragma once #include <string> #include <fstream> #include <queue> #include "myPoint.h" using namespace std; class busMap { int mapLong = 0, mapWidth = 0, busStopsNumber = 0, busLinesNumber = 0, organizationsNumber = 0; int* eachBusLineNumber = nullptr; int** busLines = nullptr; myPoint** busStops = nullptr; ...
SleepyLGod/Miscellaneous
cpp_lab_2021/OtherVersions/lab5_2020/version1/ORGANIZATION.h
<gh_stars>1-10 #ifndef __Organization_Info_H__ #define __Organization_Info_H__ struct Organization_Info{ char name[100]; int site; int location[2]={0,}; int accessible_location_num=0; int accessible_location[10]={0,}; double accessible_location_distance[10]={0,}; }; #endif #ifndef __Organizat...
tonyhuang84/foxbms
embedded-software/mcu-primary/src/application/com/com.c
<filename>embedded-software/mcu-primary/src/application/com/com.c<gh_stars>0 /** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modific...
tonyhuang84/foxbms
embedded-software/mcu-primary/src/module/config/cansignal_cfg.h
<filename>embedded-software/mcu-primary/src/module/config/cansignal_cfg.h /** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modificati...
tonyhuang84/foxbms
embedded-software/mcu-primary/src/module/contactor/contactor.h
<reponame>tonyhuang84/foxbms /** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
tonyhuang84/foxbms
embedded-software/mcu-primary/src/doxygen.h
<reponame>tonyhuang84/foxbms<filename>embedded-software/mcu-primary/src/doxygen.h /** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * mo...
tonyhuang84/foxbms
embedded-software/mcu-secondary/src/general/config/batterycell_cfg.h
/** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. R...
tonyhuang84/foxbms
embedded-software/mcu-primary/src/application/sox/sox.c
<filename>embedded-software/mcu-primary/src/application/sox/sox.c /** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are ...
tonyhuang84/foxbms
embedded-software/mcu-common/src/driver/rtc/rtc.h
/** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. R...
tonyhuang84/foxbms
embedded-software/mcu-secondary/src/engine/task/enginetask.h
<filename>embedded-software/mcu-secondary/src/engine/task/enginetask.h /** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification,...
tonyhuang84/foxbms
embedded-software/mcu-primary/src/driver/config/io_cfg.c
/** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. R...
tonyhuang84/foxbms
embedded-software/mcu-primary/src/general/third_party/ltc_itri.c
/* * ltc_itri.c * * Created on: 2019/5/21/ * Author: A50130 */ #include "general.h" #if defined(ITRI_MOD_2_b) #include "ltc_itri.h" extern LTC_EBM_CONFIG_s ltc_ebm_config[BS_NR_OF_MODULES]; extern LTC_EBM_CONFIG_s ltc_col_config[BS_NR_OF_COLUMNS]; extern LTC_EBM_CMD_s ltc_ebm_cmd; #endif // ITRI_MOD_2_b #...
tonyhuang84/foxbms
embedded-software/mcu-secondary/src/general/includes/std_types.h
<gh_stars>0 /** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are m...
tonyhuang84/foxbms
embedded-software/mcu-primary/src/general/third_party/com_itri.c
<reponame>tonyhuang84/foxbms #include "general.h" #if defined(ITRI_MOD_1) #include <stdio.h> #include <stdlib.h> #include <string.h> char* float_to_string(double v) { static char g_ftBuf[16] = {0, }; int decimalDigits = 4; int i = 1; int intPart, fractPart; for (;decimalDigits!=0; i*=10, decimalDigits--); intPa...
tonyhuang84/foxbms
embedded-software/mcu-secondary/src/general/config/STM32F4xx/stm32f4xx_it.c
/** * @author STMicroelectronics * @date 2016 * @ingroup GENERAL_CONF * @brief HAL IT Module, definition of IRQ handlers for hardware units, * based on project examples Templates\Src\stm32f4xx_it.c * */ /** ****************************************************************************** * @file...
tonyhuang84/foxbms
embedded-software/mcu-primary/src/application/bal/bal.c
<filename>embedded-software/mcu-primary/src/application/bal/bal.c /** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are ...
tonyhuang84/foxbms
embedded-software/mcu-common/src/module/cansignal/cansignal.h
/** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. R...
tonyhuang84/foxbms
embedded-software/mcu-secondary/src/application/bms/bms.h
/** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. R...
tonyhuang84/foxbms
embedded-software/mcu-common/src/module/ltc/ltc_pec.h
<reponame>tonyhuang84/foxbms /************************************ REVISION HISTORY $Revision: 1000 $ $Date: 2013-07-15 Copyright (c) 2013, Linear Technology Corp.(LTC) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condi...
tonyhuang84/foxbms
embedded-software/mcu-primary/src/module/nvram/eepr.c
<gh_stars>0 /** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are m...
tonyhuang84/foxbms
embedded-software/mcu-secondary/src/engine/config/enginetask_cfg.h
/** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. R...
tonyhuang84/foxbms
embedded-software/mcu-common/src/driver/adc/adc.h
/** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. R...
tonyhuang84/foxbms
embedded-software/mcu-primary/src/driver/timer/timer.h
<reponame>tonyhuang84/foxbms /** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
tonyhuang84/foxbms
embedded-software/mcu-common/src/driver/can/can.h
/** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. R...
tonyhuang84/foxbms
embedded-software/mcu-common/src/driver/mcu/mcu.h
/** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. R...
tonyhuang84/foxbms
embedded-software/mcu-secondary/src/general/config/STM32F4xx/stm32f4xx_hal_msp.c
/** * @file stm32f4xx_hal_msp.c * @author STMicroelectronics * @date 2016 * @ingroup GENERAL_CONF * @brief HAL MSP Module, definition of initialization/de-initialization functions called when hardware units are activated/deactivated, * based on stm32f4xx_hal_msp_template.c * */ /** **************...
tonyhuang84/foxbms
embedded-software/mcu-primary/src/driver/config/can_cfg.c
<gh_stars>0 /** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are m...
tonyhuang84/foxbms
embedded-software/mcu-primary/src/module/nvram/eepr.h
<filename>embedded-software/mcu-primary/src/module/nvram/eepr.h /** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are pe...
tonyhuang84/foxbms
embedded-software/mcu-secondary/src/driver/config/rtc_cfg.h
<gh_stars>0 /** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are m...
tonyhuang84/foxbms
embedded-software/mcu-primary/src/application/bal/bal.h
/** * * @copyright &copy; 2010 - 2019, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. R...
1hAck-0/UE4-Cheat-Source-Code
Source/ImGui DirectX 11 Kiero Hook/menu/menu.h
#pragma once namespace Menu { void Render(); }
1hAck-0/UE4-Cheat-Source-Code
Source/ImGui DirectX 11 Kiero Hook/cheat/cheat.h
<reponame>1hAck-0/UE4-Cheat-Source-Code #pragma once #include "UnrealEngine/utils.h" namespace Cheat { bool Init(); void Uninit(); void DrawESP(); }
1hAck-0/UE4-Cheat-Source-Code
Source/ImGui DirectX 11 Kiero Hook/cheat/UnrealEngine/utils.h
<filename>Source/ImGui DirectX 11 Kiero Hook/cheat/UnrealEngine/utils.h #pragma once #include "UnrealClasses.h" #include <array> #include <vector> namespace mem { inline DWORD GNamesOffset = 0; inline uintptr_t TraceLineAddress = 0; template<typename T, typename U> constexpr size_t OffsetOf(U T::* member) { r...
1hAck-0/UE4-Cheat-Source-Code
Source/ImGui DirectX 11 Kiero Hook/cheat/UnrealEngine/UnrealClasses.h
#pragma once #include "Classes.hpp" #include <string> #include <vector> namespace mem { uintptr_t GetPointerSafe(uintptr_t base, const std::vector<uintptr_t>& offsets); const char* GetGName(const int FNameIndex); } inline uintptr_t ModuleBase; inline uintptr_t ModuleBaseEnd; inline vec2 winSize; inline vec2 winC...
Beihic/Accumulation
AtCoder/BC212/Ccode.c
<reponame>Beihic/Accumulation<gh_stars>0 #include <stdio.h> void swap(int *a, int b, int c){ int tmp = a[b]; a[b] = a[c]; a[c] = tmp; } int part(int *a, int left, int right){ int tmp, k = (left+right)/2; swap(a, k, right); int i=left, j=right-1; while(i<=j){ while(a[i]<a[right]){i++;} while(j>=i && a[j]>=a[rig...
Beihic/Accumulation
MyCompiler/9cc.c
<filename>MyCompiler/9cc.c #include <ctype.h> #include <stdarg.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> typedef enum{ TK_RESERVED, TK_NUM, TK_EOF, } TokenKind; typedef struct Token Token; struct Token{ TokenKind kind; Token *next; int val; char *str; }; char *user_inp...
pariasm/bm4d-of
src/core/nldct.h
/* * Original work Copyright (c) 2013, <NAME> <<EMAIL>> * Modified work Copyright (c) 2014, <NAME> <<EMAIL>> * All rights reserved. * * This program is free software: you can use, modify and/or * redistribute it under the terms of the GNU General Public * License as published by the Free Software Foundation, eit...
pariasm/bm4d-of
lib/tvl1flow/main_mesure.c
// This program is free software: you can use, modify and/or redistribute it // under the terms of the simplified BSD License. You should have received a // copy of this license along this program. If not, see // <http://www.opensource.org/licenses/bsd-license.html>. // // Copyright (C) 2011, <NAME> <<EMAIL>> // All ri...
pariasm/bm4d-of
src/core/matrix_funs.h
/* * Copyright (c) 2013, <NAME> <<EMAIL>> * All rights reserved. * * This program is free software: you can use, modify and/or * redistribute it under the terms of the GNU General Public * License as published by the Free Software Foundation, either * version 3 of the License, or (at your option) any later * ve...
pariasm/bm4d-of
src/utils/cmd_option.h
#ifndef __CMD_OPTION_H__ #define __CMD_OPTION_H__ #include <cstdarg> #include <iostream> #include <fstream> #include <string> #include <algorithm> using namespace std; // // This is a copy paste of CImg option functions, so that they can be used // independently of CImg. To avoid name colisions, cimg_ prefixes have ...
pariasm/bm4d-of
src/utils/lib_image.h
/* * Copyright (c) 2013, <NAME> <<EMAIL>> * All rights reserved. * * This program is free software: you can use, modify and/or * redistribute it under the terms of the GNU General Public * License as published by the Free Software Foundation, either * version 3 of the License, or (at your option) any later * ve...
pariasm/bm4d-of
lib/tvl1flow/main.c
// This program is free software: you can use, modify and/or redistribute it // under the terms of the simplified BSD License. You should have received a // copy of this license along this program. If not, see // <http://www.opensource.org/licenses/bsd-license.html>. // // Copyright (C) 2011, <NAME> <<EMAIL>> // All r...
bonfireprocessor/gdb-proxy
debug_test.c
#include <stdio.h> #include "console.h" #include "riscv-gdb-stub.h" #define BAUDRATE 500000 void do_increment(volatile int *px) { (*px)++; } #define SIZE 10 uint64_t test[SIZE]; void initArray() { int i; for(i=0;i<SIZE;i++) test[i]=i*i; } void insertLastAt(int pos) // Inserts Last element of the array...
bonfireprocessor/gdb-proxy
trapframe.h
#ifndef __TRAPFRAME_H #define __TRAPFRAME_H #include <stdint.h> #ifdef __riscv64 #define TREG uint64_t #else #define TREG uint32_t #endif typedef struct { TREG gpr[32]; TREG status; TREG epc; TREG badvaddr; TREG cause; TREG insn; } trapframe_t; #endif
bonfireprocessor/gdb-proxy
riscv-gdb-stub.h
<gh_stars>0 #ifndef __RISCV_GDB_STUB_H__ #define __RISCV_GDB_STUB_H__ typedef trapframe_t* (*t_ptrapfuntion)(trapframe_t*); t_ptrapfuntion gdb_initDebugger(int set_mtvec); void gdb_setup_interface(int baudrate); trapframe_t* handle_exception (trapframe_t *ptf); /* This function will generate a breakpoint except...
bonfireprocessor/gdb-proxy
trap.c
<filename>trap.c #include "trapframe.h" #include "riscv-gdb-stub.h" #include "encoding.h" trapframe_t* __attribute__((weak)) trap_handler(trapframe_t *ptf) { if (ptf->cause & 0x80000000) { // place interrupt handler here... return ptf; } else { return handle_exception(ptf); } } ex...
bonfireprocessor/gdb-proxy
console.c
<gh_stars>0 // "Borrowed" from RISC-V proxy kernel // See LICENSE for license details. #include "bonfire.h" #include "console.h" #include <stdint.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> #define UART_TX 0 #define UART_RECV 0 #define UART_STATUS 1 #define UART_CONTROL 1 s...
bonfireprocessor/gdb-proxy
riscv-tdep.h
<filename>riscv-tdep.h<gh_stars>1-10 /* Target-dependent header for the RISC-V architecture, for GDB, the GNU Debugger. Copyright (C) 2002-2015 Free Software Foundation, Inc. Contributed by <NAME>(<EMAIL>) at CMU and by <NAME>(<EMAIL>) at U.Wisconsin and by <NAME> <<EMAIL>> and by <NAME> <<EMAIL>>. ...
nkennaA/Flixx
Flixx/DetailView.h
<gh_stars>0 // // DetailView.h // Flixx // // Created by <NAME> on 6/28/18. // Copyright © 2018 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface DetailView : UIViewController @property (weak, nonatomic) IBOutlet UIImageView *backdrop; @property (weak, nonatomic) IBOutlet UIImageView *poster2; @p...
nkennaA/Flixx
Flixx/TrailerViewViewController.h
// // TrailerViewViewController.h // Flixx // // Created by <NAME> on 6/29/18. // Copyright © 2018 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface TrailerViewViewController : UIViewController @property (nonatomic) NSNumber *movieID; @end