1. C++基本语法

这篇博客记录了作者在学习清华大学C++课程中的关键知识点,主要包括单行和多行注释、常量变量定义、条件语句、循环语句以及break和continue的使用。

 一、说明

写这个博客是为了记录学习清华大学-c++课程-郑莉教授版本过程中的一些我自己认为关键的知识点,方便自己日后迅速复习和查阅。本篇主要包含该课程第一章和第二章的一些笔记。如果您在阅读过程中有任何意见和建议,请批评指正,感谢。

二、内容

1.基本知识点

单行注释://

多行注释:/*...*/

常量、变量与自定义类型(结构体类型)定义、条件语句、循环语句、关键词break和continue的基本语法:

// ex1.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
	//const && sizeof 
	const float pi = 3.1415;
	cout << sizeof(pi) << endl;

	//setw() and setprecision(),included in <iomanip>
	int a = 1, b = 5,c;
	c = a > b ? a : b;
	double d = 2.4;
	cout << setprecision(2) << d << endl;
	cout << setw(5)<<c << endl;
	
	//switch case
	switch (c) {
	case 1:cout << "a>b" << endl;
	case 5:cout << "a<=b" <&l
Paperback: 760 pages Publisher: Focal Press (November 24, 2014) Language: English ISBN-10: 1138787078 ISBN-13: 978-1138787070 Bridging the gap from theory to programming, Designing Software Synthesizer Plug-Ins in C++ For RackAFX, VST3 and Audio Units contains complete code for designing and implementing software synthesizers for both Windows and Mac platforms. You will learn synthesizer operation, starting with the underlying theory of each synthesizer component, and moving on to the theory of how these components combine to form fully working musical instruments that function on a variety of target digital audio workstations (DAWs). Containing some of the latest advances in theory and algorithm development, this book contains information that has never been published in textbook form, including several unique algorithms of the author’s own design. The book is broken into three parts: plug-in programming, theory and design of the central synthesizer components of oscillators, envelope generators, and filters, and the design and implementation of six complete polyphonic software synthesizer musical instruments, which can be played in real time. The instruments implement advanced concepts including a user-programmable modulation matrix. The final chapter shows you the theory and code for a suite of delay effects to augment your synthesizers, introducing you to audio effect processing. The companion website, www.focalpress.com/cw/pirkle, gives you access to free software to guide you through the application of concepts discussed in the book, and code for both Windows and Mac platforms. In addition to the software, it features bonus projects, application notes, and video tutorials. A reader forum, monitored by the author, gives you the opportunity for questions and information exchange.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值