網頁

2016年9月19日 星期一

C 檔案操作

Last Update: 2016/09/19 20:57+08



fopen, fclose
開檔, 關檔


fget, fput
讀取/寫入一字串

fread, fwrite
讀取/寫入一byte

fscanf, fprintf
格式化讀取/寫入一字串





2016年9月7日 星期三

Altera Quartus [Note] [Macro] Altera PLL

Last Update: 2016/09/07 23:27+08



點擊PLL後


照下述可設定2組CLOCK


Reference
Phase-Locked Loop Basics

Java GUI with Eclipse - Windows Builder

Last Update: 2016/09/07 21:43+08



http://download.eclipse.org/windowbuilder/WB/release/R201309271200/4.3/

Interface & Abstract

Last Update: 2016/09/07 21:42+08



Assume
that with interface you mean a C++ class with only pure virtual methods (i.e. without any code),
instead with abstract class you mean a C++ class with virtual methods that can be overridden, and some code, but at least one pure virtual method that makes the class not instantiable.
class MyInterface
{
public:
  // Empty virtual destructor for proper cleanup
  virtual ~MyInterface() {}

  virtual void Method1() = 0;
  virtual void Method2() = 0;
};


class MyAbstractClass
{
public:
  virtual ~MyAbstractClass();

  virtual void Method1();
  virtual void Method2();
  void Method3();

  virtual void Method4() = 0; // make MyAbstractClass not instantiable
};

[Troubleshooting] IIS 與 dotNet MVC

Late Update: 2015/08/19 02:38+08


去C槽 Windows\Microsoft.NET\Framework\ 找出自己4.0版本
cd C:\Windows\Microsoft.NET\Framework\v4.xxx.xxx
aspnet_regiis -i


<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer>

2016年9月6日 星期二

Terasic DE1-SoC [Note] Configuration Mode Switch

Last Update: 2016/09/07 21:31+08



預設


設定說明


常用模式




Google Prettify @ Blogger

Last Update: 2016/09/09 00:34+08



Google Prettify


Blogger->版面配置->新增小工具->HTML/Javascript小工具->貼上代碼
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>


追加水平捲軸
pre.prettyprint{
    width: auto;
    overflow: auto;
    max-height: 600px
}



Terasic DE1-SoC [Note] HPS Makefile

Last Update: 2016/09/09 00:24+08



fatal error: socal/socal.h: No such file or directory
修正makefile, 將下面這行
CFLAGS = -static -g -Wall  -I${SOCEDS_DEST_ROOT}/ip/altera/hps/altera_hps/hwlib/include
取代成
ALT_DEVICE_FAMILY ?= soc_cv_av
HWLIBS_ROOT = ${SOCEDS_DEST_ROOT}/ip/altera/hps/altera_hps/hwlib
CFLAGS = -static -g -Wall $(MULTILIBFLAGS) -I${HWLIBS_ROOT}/include -I${HWLIBS_ROOT}/include/soc_cv_av -D$(ALT_DEVICE_FAMILY)