前端开发
编程语言
数据库
服务器
系统/运维
网络/安全
移动开发
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
C++使用tm结构格式化时间

C++使用tm结构格式化时间

#include iostream#include ctimeusing namespace std;int main() {// current date/time based on current system
发布于104天前
0 阅读
07 12
C++以null结尾的字符串

C++以null结尾的字符串

#include iostream#include cstringusing namespace std;int main () {char str1[10] = Hello;
发布于104天前
0 阅读
07 12
C++捕捉异常

C++捕捉异常

#include iostreamusing namespace std;double division(int a, int b) {if( b == 0 ) {throw Division by zero condition!;
发布于104天前
0 阅读
07 12
C++ C风格字符串

C++ C风格字符串

#include iostreamusing namespace std;int main () {char greeting[6] = {H, e, l, l, o, \\0};
发布于104天前
0 阅读
07 12
C++类成员访问操作符重载

C++类成员访问操作符重载

#include iostream#include vectorusing namespace std;// Consider an actual class.class Obj {
发布于104天前
0 阅读
07 12
C++条件? : 运算符

C++条件? : 运算符

#include iostreamusing namespace std;int main () {// Local variable declaration:int x, y = 10;
发布于104天前
0 阅读
07 12
C++下标[]运算符重载

C++下标[]运算符重载

#include iostreamusing namespace std;const int SIZE = 10;class safearay {private:int arr[SIZE];
发布于104天前
0 阅读
07 12
C++函数调用运算符()重载

C++函数调用运算符()重载

#include iostreamusing namespace std;class Distance {private:int feet;// 0 to infiniteint inches;// 0 to 12
发布于104天前
0 阅读
07 12
C++ setw()函数

C++ setw()函数

// #include iostream#include iomanipint main() {std::cout no setw: 42 \\n
发布于104天前
0 阅读
07 12
C++浮点常数

C++浮点常数

// #includeiostreamusing namespace std;int main() {const float PI = 3.141;// 3.141 is floating point constant while PI is a constant float.
发布于104天前
0 阅读
07 12
C++抽象类

C++抽象类

#include iostreamusing namespace std;// Base classclass Shape {public:// pure virtual function providing interface framework.
发布于104天前
0 阅读
07 12
C++数据封装

C++数据封装

#include iostreamusing namespace std;class Adder {public:// constructorAdder(int i = 0) {total = i;
发布于104天前
0 阅读
07 12
C++数据抽象示例

C++数据抽象示例

#include iostreamusing namespace std;class Adder {public:// constructorAdder(int i = 0) {total = i;
发布于104天前
0 阅读
07 12
C++读写示例

C++读写示例

#include fstream#include iostreamusing namespace std;int main () {char data[100];// open a file in write mode.
发布于104天前
0 阅读
07 12
C++除零异常

C++除零异常

#include iostreamusing namespace std;double division(int a, int b) {if( b == 0 ) {throw Division by zero condition!;
发布于104天前
0 阅读
07 12
C++定义新异常

C++定义新异常

#include iostream#include exceptionusing namespace std;struct MyException : public exception {
发布于104天前
0 阅读
07 12
C++ #define

C++ #define

// #include iostreamusing namespace std;#define PI 3.14159int main () {cout Value of PI : PI endl;
发布于104天前
0 阅读
07 12
C++像宏一样的函数

C++像宏一样的函数

#include iostreamusing namespace std;#define MIN(a,b) (((a)(b)) ? a : b)int main () {int i, j;
发布于104天前
0 阅读
07 12
C++条件编译

C++条件编译

#include iostreamusing namespace std;#define DEBUG#define MIN(a,b) (((a)(b)) ? a : b)int main () {
发布于104天前
0 阅读
07 12
C++动态内存分配

C++动态内存分配

#include iostreamusing namespace std;class Box {public:Box() { cout Constructor called! endl;
发布于104天前
0 阅读
首页上一页 1 2 3 4 5 6 7 8 9 10 11 下一页末页 共 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 素材狗 版权所有并保留所有权