搜索资源列表
用c编写的N*N的螺旋矩阵源代码
- /* 实现效果: 1 2 6 7 15 3 5 8 14 16 4 9 13 17 22 10 12 18 21 23 11 19 20 24 25 */ #include <stdio.h> #define N 5 //阶数,即N*N的螺旋矩阵 void main() { int i, j, num=1, a[N][N]; for(i=0; i<=N/2; i++) &nb
c环境下的编译器
- 在c环境下的编译器 一.实验完成主要功能描述: 1.if语句 2.if_else语句 3.while语句 4.数组 5.函数调用 6.对外部函数printf的调用(用于打印) 二.测试环境 1.fedora core 4(OS) 2.lex version 2.5.4 3.yacc 4.gcc (GCC) 4.0.0 20050519 (Red Hat 4.0.0-8) -in the context of a compiler. Exper
c
- c++冒泡排序#include \"stdio.h\" void sort() { int i,count=0,a[20] int k=20 printf(\"please input 20 defferent numbers?\\n\") for(i=0 i<20 i++) scanf(\" %d\\a\",&a[i]) while(count<20) { for(i=0 i<k i++)
ag
- 词法分析程序,可对以下的C源程序进行分析:main() {int a[12] ,sum for(i=1 i<=12 i++) {for(j=1 j<=12 j++)scanf(\"%d\",&a[i][j]) } for(i=12 i>=1 i--){ for(j=12 j>=1 j--){ if(i==j&&i+j==13)sum+=a[i][j] } } printf(\"%c\",sum) }-lexical analysis procedures, right b
优美C语言(3)
- 3. 源程序要正确地运行,必须要有什么函数?(单选) A. printf函数 B. 自定义的函数 C. main函数 D. 不需要函数 答案: C-3. Source code to run correctly, we must have what function (Option) A. B. printf function defined function main function D. C. function need not answer : C
征服4.0马端源码
- using System; using System.Collections.Generic; using System.Text; namespace NewestCOServer { public class Cryption { class CryptCounter { UInt16 m_Counter = 0; public byte Key2
tony
- #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") else if (a>=80) printf("73分=B等級!!\n") else if (a>=70) printf("7
tony
- 溫度華氏轉變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") else if (a>=80) printf("73分=B等級!!\n") else if (a>=70)
tony
- 溫度華氏轉變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") else if (a>=80) printf("73分=B等級!!\n") else if (a>=70)
Hanoi
- 一个Hanoi的小游戏 void Hanoi(int n, char x,char y,char z) { if (n==1) { printf("%c %d %c\n",x,n,z) return } Hanoi(n-1,x,z,y) printf("%c %d %c\n",x,n,z) Hanoi(n-1,y,x,z) }-Hanoi in a game void Hanoi (int n, char x, char
1223
- C语言实现病毒源码 当含有病毒部分的程序被执行时,首先进入病毒程序。它在磁盘上找扩展名为C的匹配文件,如果找到,查找是否有被传染过的标志“INFECTED”。如果有此标志,继续找其它的C文件,直至全部检查一遍。若没有这个标志,则 (1)在未被感染的C程序头部加入“INFECTED”已被传染标志。 (2)读取病毒文件的头文件,将其插入到即将被感染的文件头部。如果发现有重复则不插入。 (3)在主程序中插入“VIRUSES();”调用VIRUSES函数。寻找printf、for、whi
printf
- 本人参照linux 0.1内核源代码写的printf函数的实现,支持 c, s, o, d, x, f的打印输出-I am the light of linux 0.1 kernel source code to write to achieve the printf function in support of c, s, o, d, x, f print output
printf.c
- printf implementation (small) for microcontrollers
C-language--game
- C语言写的数独猜谜游戏 游戏功能说明: 1.有简单、一般和困难3种难度选择,每次开始游戏时程序随机生成符合难度要求的数独题。 2.游戏中使用方向键控制光标。1-9数字键填入数字。(不支持使用小键盘) 3.使用DEL键消除填写有误的数字,随时使用ESC键可以退出游戏。 4.格子左上角偶尔会出现一个笑脸。经排查未发现等价于printf(" c",2) 的语句,求高人指点。 - C language game
printf.c
- Unix原版输出函数printf int printf(const char*, va_list) -Unix original output functions int printf(const char*, va_list)
C-language--game
- C语言写的数独猜谜游戏游戏功能说明: 1.有简单、一般和困难3种难度选择,每次开始游戏时程序随机生成符合难度要求的数独题。 2.游戏中使用方向键控制光标。1-9数字键填入数字。(不支持使用小键盘) 3.使用DEL键消除填写有误的数字,随时使用ESC键可以退出游戏。 4.格子左上角偶尔会出现一个笑脸。经排查未发现等价于printf(" c",2) 的语句,求高人指点。- C language game
C#直流电机pid调速
- 用C#编写的串口调试软件,下位机在STM32上测试通过,下位机发送数据的格式如printf("%s%f%s%f%s",":"x1":"x2":")单片机串口发送数据(Written in C# serial debugging software, the lower computer on the STM32 test passed, the lower machine to send data format, su
1
- 4 examples to C that help you to understand C better
C语言中printf的使用
- printf()函数是式样化输出函数, 一般用于向准则输出设备按规定式样输出消息。正在编写步骤时经常会用到此函数。printf()函数的挪用式样为: printf("<式样化字符串>",<参量表>);(The printf () function is a stylized output function, which is generally used to output messages to a standard output dev
C - Hello World!
- The #include <stdio.h> is a preprocessor command. This command tells compiler to include the contents of stdio.h (standard input and output) file in the program. The stdio.h file contains functions such as scanf() and print() to take input and