前端开发
编程语言
数据库
服务器
系统/运维
网络/安全
移动开发
CMS教程
网站运营
保存到桌面
关于我们
收藏本站
素材狗

素材狗

  • 首页
  • 学习HTML/CSS
  • 学习PHP
  • 学习JAVA
  • 学习CMS
  • 编程问答
  • 实例代码
  • 学习Python学习Go学习Ruby学习C学习C++学习Perl学习Lua学习Rust学习Scala学习VB
  • 手机随时阅读

编程教程

前端开发

编程语言

数据库

服务器

系统/运维

网络/安全

移动开发

CMS教程

网站运营

前端问题

php问题

Java问题

Python问题

C/C++问题

C#/.NET问题

移动开发问题

数据库问题

07 12
浮点类型

浮点类型

浮点类型可以存储具有不同精度级别的实数。#include stdio.hint main() {float myFloat;/* ~7 digits */
发布于104天前
0 阅读
07 12
有符号和无符号数据类型

有符号和无符号数据类型

默认情况下,C中的所有整数类型都是有符号的。有符号数据类型可以包含正值和负值。可以使用signed关键字显式声明有符号数据类型。
发布于104天前
0 阅读
07 12
转义字符

转义字符

要将新行添加到字符串中,转义字符\\n用于表示换行符。#include stdio.hint main(void) {
发布于104天前
0 阅读
07 12
赋值运算符和组合赋值运算符

赋值运算符和组合赋值运算符

赋值运算符=为变量赋值。#include stdio.hint main(void) {float x = 3 + 2;}使用组合赋值运算符可以缩短这些操作。
发布于104天前
0 阅读
07 12
读取和显示int值的C源代码示例

读取和显示int值的C源代码示例

#include stdio.h int main(void) { int dogs; /*from w w w.yiibai . com*/printf(How many dogs do you have?\\n);
发布于104天前
0 阅读
07 12
使用printf函数打印变量

使用printf函数打印变量

printf函数可以将值和变量打印显示在控制台窗口中。#include stdio.hint main() {
发布于104天前
0 阅读
07 12
使用getchar()函数暂停控制台窗口

使用getchar()函数暂停控制台窗口

使用GNU编译器 - gcc myapp.c -o myapp.exe./myapp.exeHello World示例代码:#include stdio.h
发布于104天前
0 阅读
07 12
int类型的数学计算

int类型的数学计算

#include stdio.hint main(void){int n, n2, n3;//fromw ww . yii ba i. comn = 5;n2 = n * n;n3 = n2 * n2;
发布于104天前
0 阅读
07 12
在一个文件中使用两个函数的程序

在一个文件中使用两个函数的程序

#include stdio.hvoid my_function(void);/* C function prototyping */int main(void){printf(main.\\n);
发布于104天前
0 阅读
07 12
从两个函数输出消息

从两个函数输出消息

#include stdio.hvoid functionA(void);void functionB(void);int main(void){functionA();/*fromwww.yi i bai.com*/
发布于104天前
0 阅读
07 12
读取姓名并格式化

读取姓名并格式化

用双引号将其打印将其打印在20个字符宽的字段中,整个字段用引号括起,名称在字段的右端。在20字符宽的字段的左端打印它,整个字段用引号括起来。将其打印在比名称宽三个字符的字段中。
发布于104天前
0 阅读
07 12
printf使用新行分隔符输出值

printf使用新行分隔符输出值

#include stdio.hint main(void){// printf(a a\\n);printf(a \\n a \\n);
发布于104天前
0 阅读
07 12
使用字符作为菜单选项

使用字符作为菜单选项

#include stdio.hint main(){ char cResponse = \\0; printf(\\na\\tTurn the AC on\\n);
发布于104天前
0 阅读
07 12
使用switch结构从菜单评估用户的响应

使用switch结构从菜单评估用户的响应

switch 不使用 break 语句:#include stdio.h int main(){ int iResponse = 0; printf(\\n1\\tSports\\n);
发布于104天前
0 阅读
07 12
使用printf()显示多行输出

使用printf()显示多行输出

#include stdio.hint main (void){printf (Testing...\\n..1\\n...2\\n....3\\n);return 0;//fromwww.y iiba i .co m
发布于104天前
0 阅读
07 12
读取string,float和int值

读取string,float和int值

#include stdio.h#include string.h// for strlen() prototype#define DENSITY 62.4// human density in lbs per cu ft
发布于104天前
0 阅读
07 12
读取一定量的水,以夸脱为单位,并显示该数量

读取一定量的水,以夸脱为单位,并显示该数量

单分子水的质量约为3.0×10克。一夸脱水约950克。#include stdio.hint main(void)
发布于104天前
0 阅读
07 12
生成未来值利息因素表(VIF)

生成未来值利息因素表(VIF)

#include stdio.h#include math.h#defineMAX_INTEREST6#defineMAX_PERIOD10int main(){int interest;
发布于104天前
0 阅读
07 12
将输入作为字符流读取,直到遇到EOF

将输入作为字符流读取,直到遇到EOF

#include stdio.h#include ctype.hint main(void){int ch;unsigned long uct = 0;unsigned long lct = 0;
发布于104天前
0 阅读
07 12
从键盘输入读取字符并使用getchar()和putchar()将它

从键盘输入读取字符并使用getchar()和putchar()将它

此过程称为回显输入。它使用while循环,在遇到#字符时终止。#include stdio.h
发布于104天前
0 阅读
首页上一页 24 25 26 27 28 29 30 31 32 33 34 下一页末页 共 34页679条

学习编程

Python教程 开始学习
学习Python

Python不仅是一种计算机程序设计语言、还是一种面向对象、解释型的计算机程序语言,汇集整理Pytho......

Go教程 开始学习
学习Go

Go(又称 Golang)是 Google 的 Robert Griesemer,Rob Pike 及 Ken Thompson 开发的一种静态强类型、编译型语言。......

Ruby教程 开始学习
学习Ruby

Ruby是一种纯粹的面向对象编程语言。它由日本的松本行弘(まつもとゆきひろ/Yukihiro Matsumoto)创建于......

C教程 开始学习
学习C

C语言是一门面向过程的、抽象化的通用程序设计语言,广泛应用于底层开发。C语言能以简易的方式编......

最新发布

  • 网站图片丢失或者获取失败时显示默认图片的办法 4小时前
  • PHP正则表达式匹配字符方法汇总 4小时前
  • Nib文件是什么?Nib文件打开方法 5小时前
  • iOS、Mac OS X系统中编程实现汉字转拼音的方法(超级简单) 5小时前
  • iOS7 毛玻璃特效代码 5小时前

图文推荐

文章热榜

1 说明指定字段宽度时scanf()的工作原理。

#include stdio.hint main(void){char name1[11], name2[11];int count;printf(Please enter 2 names.\\n);

2 使用函数验证输入

#include stdio.h#include stdbool.hlong get_long(void);bool isWrongInput(long begin, long end,long low, long high);

3 何时在scanf使用&

#include stdio.hint main(void){int age;float assets;char pet[30];// stringprintf(Enter your age, assets, and favorite pet.\\n);

4 scanf跳过前两个输入整数

#include stdio.hint main(void){int n;printf(Please enter three integers:\\n);scanf(%*d %*d %d, n);

5 使用基本数据类型,并输出它们的值,int,floa

#include stdio.hint main(void){intintegerVar = 100;floatfloatingVar = 123.79;doubledoubleVar = 1.23e+11;

关于我们

© 2023 素材狗 版权所有并保留所有权