代码搜索结果

找到约 10,000 项符合 Raspberry Pi 的代码

exp2_3.m

%plot绘图命令的使用 clc %清屏命令 clear %清除工作空间中所有变量 %定义时间范围 t=[0:pi/20:9*pi]; y1=sin(t); y2=cos(t); plot(t,y1,t,y2)

4-7.txt

/* 范例:4-7 */ #include #include void main() { char name[20]; char sex; int age; float pi; printf("请输入您的姓名:"); scanf("%s",name); /* #1 */ printf("请输入您的性别(

cp0702_analytical_waveforms.m

% % FUNCTION 7.3 : "cp0702_analytical_waveforms" % % Definition of the analytical expression for the first 15 % derivatives of the Gaussian pulse % % The function receives in input: % 1) the ti

xt3-2.cpp

#include #include using namespace std; int main ( ) {float h,r,l,s,sq,vq,vz; const float pi=3.1415926; coutr>>h; l=2*pi*r; s=r*r*pi; sq

c2cxrad2.mac

****************************************************************************** * FILE: c25cxrad2.mac --> macro file for radix 2 fft's based on 320c5x * *

例13.2.txt

例13.2 用控制符控制输出格式。 #include #include //不要忘记包含此头文件 using namespace std; int main() {int a; couta; cout

c2cxrad2.mac

****************************************************************************** * FILE: c25cxrad2.mac --> macro file for radix 2 fft's based on 320c5x * *

例13.3.txt

例13.3 用流控制成员函数输出数据。 #include using namespace std; int main( ) {int a=21 cout.setf(ios::showbase);//显示基数符号(0x或0) cout

例3.12.txt

例3.12 用下面公式求π的近似值。π/4≈1-1/3+1/5-1/7+…直到最后一项的绝对值小于10的-7次方为止。 根据给定的算法很容易编写程序如下: #include #include #include using namespace std; int main( ) {int s=1; double n=1

p1-98.cpp

#include //以下是几个简单宏替换预处理指令 #define YES 1 #define PI 3.1415926 #define RAD PI/180 #define MESG "This is a string." //以下是主程序 main() { //以下各语句使