Skip to content

Instantly share code, notes, and snippets.

@yifeiyin
Created December 25, 2016 07:43
Show Gist options
  • Save yifeiyin/575f0a9d42532c4e875c15a702610693 to your computer and use it in GitHub Desktop.
Save yifeiyin/575f0a9d42532c4e875c15a702610693 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <fstream>
#include <string>
#include "Mathematic.h"
typedef double Type
const int NUM_VAR = 20;
struct Variable
{
Type value;
bool flag;
};
class Problem
{
private:
Variable vars[NUM_VAR];
Variable & miu_s = vars[0];
Variable & miu_t = vars[1];
// ........
public:
Problem()
{
miu_s = NumG("Something here");
// .......
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment