Microsoft's Visual Studio has a very nice feature called 'refactor'. It replaces the names of a method or function to whatever you rename it. It does contextual search and replace. The same name used in other namespace or scope will not be affected. It alleviates all the troubles associated with renaming. In the end, the code would come up closer to the final products no matter how you change your course of programming.
Visual Studio's C# refactor, however, is not perfect. It replaces the names even when there are the same names within the scope. There is no way to distinguish the variables that has renamed and the existing variables with the same name. That certainly is detectable. As for C++ version of the IDE, there isn't such a function to rename methods and variables with contextual searches.
Qt: 外部プログラムを起動する
Qt/C++ のアプリは、外部へ直接アクセスできます。これはネットアプリでは不可能な Qt のメリットです。 外部プログラムを起動することもできます。QProcess::startDetached() を使うと独立したプロセスを立ち上げることができます。 この QProces...
-
コンデンサマイク 極性があります コンデンサマイクがようやく届きました。モジュールではないのでそのままでは信号が弱いので使えません。信号を増幅する必要があります。 ちょっとした手間ですが、首尾よく動いてくれました。この回路の応用で、使えるマイクが出来ます。 ...
-
Flask/SQLAlchemy 使ってる方、jinja で困ってませんか? 本体で Python の関数を書いてもいいんですが、テンプレートでも関数が呼べます。 日付を出したい場合、フォーマットなら strftime() が使えます。 わざわざ文字列を作って渡す必...
-
C#のライブラリでは、プログレスバーの色を変えるメソッドが用意されていません。 そこで、「メモリ容量がいっぱいになりました」的な状態を示すために、プログレスバーの色を緑から赤に変える方法を紹介します。 using System.Runtime.InteropService...