Net/net.cpp
2019-01-14 21:25:56 +08:00

35 lines
630 B
C++

//
// net.cpp
// Net
//
// Created by 胡一兵 on 2019/1/13.
// Copyright © 2019年 Bakantu. All rights reserved.
//
#include "net.h"
#include "cpart.h"
#include "cmap.h"
#include "cthread.h"
int main(void){
CMap map("./PCS");
CThread thread(&map);
thread.AddArgs<int>("B", 4);
thread.AddArgs<double>("B", 9.0);
thread.AddArgs<int>("C", 1.0);
thread.AddArgs<double>("C", 3.0);
thread.Analyse();
thread.DoLine();
thread.Analyse();
thread.DoLine();
thread.Analyse();
thread.DoLine();
cout<<*((int *)(thread.rargs_out.find("A")->second)[0])<<endl;
return 0;
}