0
即時通訊安裝systemC在visual studio 2015,在我包括我只使用#include「systemc.h」當我調試我得到這個問題「得到不是一個成員STD」爲解決這得益於systemC安裝visual studio 2015 visual studogets不是標準版的成員
任何幫助包括 「systemc.h」
#define _CRT_SECURE_NO_WARNINGS
_CRT_SECURE_NO_WARNINGS
// Hello_world is module name
SC_MODULE(hello_world) {
SC_CTOR(hello_world) {
// Nothing in constructor
}
void say_hello() {
//Print "Hello World" to the console.
cout << "Hello World.\n";
}
};
// sc_main in top level function like in C++ main
int sc_main(int argc, char* argv[]) {
hello_world hello("HELLO");
// Print the hello world
hello.say_hello();
return(0);
}