ubuntu 0
3DCG 0
全5件 (5件中 1-5件目)
1
VC++コンソールアプリケーションで#include <iostream>int main(){ int data = 0x12345678; char *a0; a0 = (char *)&data; printf("%x", *a0); printf("%x", *(a0+1)); printf("%x", *(a0+2)); printf("%x", *(a0+3));}実行した結果は以下で、78563412若いアドレスから下位のデータが格納されておりリトルエンディアンです。ショートの場合で実験#include <iostream>int main(){ short data = 0x1234; char *a0; a0 = (char *)&data; printf("%x", *a0); printf("%x", *(a0+1));}結果 3412作って楽しむプログラミング Visual C# 2019超入門 無償のVisual Studio Communityで学ぶはじめてのデスクトップアプリ作成 [ WINGSプロジェクト 高野 将 ]【送料無料】作って楽しむプログラミングVisual C++ 2019超入門 無償のVisual Studio Communityで学ぶはじめてのデスクトップアプリ作成/WINGSプロジェクト/山田祥寛Visual C++2019パーフェクトマスター Microsoft Visual Studio 全機能解説/金城俊哉【3000円以上送料無料】
2022.09.16
コメント(0)
以下そのまま操作可能です。ソース変更の答えも書いてあります。Visual Studio と OpenCV をインストールするおまけ~顔認識OpenCV with Microsoft Visual Studio影像辨識處理【電子書籍】[ 望熙榮、望熙貴 ]OpenCV+VTK+Visual Studio影像辨識處理(第二版)【電子書籍】[ 望熙榮、望熙貴 ]
2021.04.06
コメント(0)
pythonの場合は以下pythonのお勉強:音楽 鍵盤もどき 録音と再生void CBeepTestDlg::OnBnClickedButton1(){ int freq = 523; int time = 500; Beep(freq, time); play_table[play_index] = 1; play_index++;}void CBeepTestDlg::OnBnClickedButton2(){ // TODO: ここにコントロール通知ハンドラー コードを追加します。 int freq = 587; int time = 500; Beep(freq, time); play_table[play_index] = 2; play_index++;}void CBeepTestDlg::OnBnClickedButton3(){ int freq = 659; int time = 500; Beep(freq, time); play_table[play_index] = 3; play_index++;}void CBeepTestDlg::OnBnClickedButton4(){ int freq = 698; int time = 500; Beep(freq, time); play_table[play_index] = 4; play_index++;}void CBeepTestDlg::OnBnClickedButton5(){ int freq = 784; int time = 500; Beep(freq, time); play_table[play_index] = 5; play_index++;}void CBeepTestDlg::OnBnClickedButton6(){ int freq = 880; int time = 500; Beep(freq, time); play_table[play_index] = 6; play_index++;}void CBeepTestDlg::OnBnClickedButton7(){ int freq = 998; int time = 500; Beep(freq, time); play_table[play_index] = 7; play_index++;}void CBeepTestDlg::OnBnClickedButton8(){ int freq = 1047; int time = 500; Beep(freq, time); play_table[play_index] = 8; play_index++;}void CBeepTestDlg::OnBnClickedButton9(){ int i; int time = 500; int freq=0; for (i = 0; i < play_index; i++) { switch (play_table[i]) { case 1: freq = 523; break; case 2: freq = 587; break; case 3: freq = 659; break; case 4: freq = 698; break; case 5: freq = 784; break; case 6: freq = 880; break; case 7: freq = 998; break; case 8: freq = 1047; break; default: freq = 0; break; } Beep(freq, time); }}再生をスレッドで記述の場合UINT MyThread(LPVOID p) { int i; int time = 500; int freq = 0; CString string; for (i = 0; i < play_index; i++) { switch (play_table[i]) { case 1: freq = 523; break; case 2: freq = 587; break; case 3: freq = 659; break; case 4: freq = 698; break; case 5: freq = 784; break; case 6: freq = 880; break; case 7: freq = 998; break; case 8: freq = 1047; break; default: freq = 0; break; } Beep(freq, time); } return 0;}//再生をスレッドで実行void CBeepTestDlg::OnBnClickedButton9(){ int thread_id, count; thread_id = 0; count = 0; AfxBeginThread(MyThread, this);}【中古】Visual C# 2013逆引き大全555の極意 Visual Studio Professiona /秀和システム/増田智明(単行本)
2021.03.21
コメント(0)
作って楽しむプログラミングVisual C++ 2019超入門 無償のVisual Studio Communityで学ぶはじめてのデスクトップアプリ作成/WINGSプロジェクト/山田祥寛【3000円以上送料無料】 Visual StudioならGUIは言語でなく手作業です。 ボタン1~ボタン8にドレミファソラシドのBeep音を対応 void CBeepTestDlg::OnBnClickedButton1(){ int freq = 523; int time = 500; Beep(freq, time);}void CBeepTestDlg::OnBnClickedButton2(){ int freq = 587; int time = 500; Beep(freq, time);}void CBeepTestDlg::OnBnClickedButton3(){ int freq = 659; int time = 500; Beep(freq, time);}void CBeepTestDlg::OnBnClickedButton4(){ int freq = 698; int time = 500; Beep(freq, time);}void CBeepTestDlg::OnBnClickedButton5(){ int freq = 784; int time = 500; Beep(freq, time);}void CBeepTestDlg::OnBnClickedButton6(){ int freq = 880; int time = 500; Beep(freq, time);}void CBeepTestDlg::OnBnClickedButton7(){ int freq = 998; int time = 500; Beep(freq, time);}void CBeepTestDlg::OnBnClickedButton8(){ int freq = 1047; int time = 500; Beep(freq, time);} マニュアルが教えないMFC Visual Studio .NET対応 [ 矢野 越夫 ]
2021.03.21
コメント(0)
VC#でBeepが利用できなかったのでVC++ MFCを 使ってみます。 以下が必要のようです なんとMFCインストールに3時間も費やしてしまった。 夜中になってしまいました。 Visual Studio 2019 で MFC アプリケーション ビルド環境を構築する 環境が整ったら MFCプロジェクト を作成します。 近年MFCでの新規開発は ほとんど無くなっている。 Visual Studio 2019 In Depth【電子書籍】[ Ockert J. du Preez ]
2021.03.20
コメント(0)
全5件 (5件中 1-5件目)
1