手机版
热门标签
站点地图
我要投稿
广告合作
联系我们
搜 索
广告位招租
广告位招租
切换导航
首页
编程教程
编程导航
编程百科
编程问答
编程博文
编程实例
硬件设备
网络运营
软件教程
移动数码
办公软件
操作系统
人工智能
栏目导航
▸ 编程语言
▸ 前端开发
▸ 移动开发
▸ 开发工具
▸ 程序设计
▸ 行业应用
▸ CMS系统
▸ 服务器
▸ 数据库
公众号推荐
微信公众号搜
"智元新知"
关注
微信扫一扫可直接关注哦!
子栏目导航
php实例代码
Javascript实例代码
python实例代码
Shell实例代码
Sql实例代码
正则表达式实例代码
Python函数
Java实例代码
C#实例代码
C语言实例代码
C++实例代码
Erlang实例代码
Dart实例代码
D3.js实例代码
D语言实例代码
CSS实例代码
Cobol实例代码
Clojure实例代码
Bootstrap实例代码
Vue实例代码
Angular实例代码
汇编语言实例
编程之家
C++实例代码
C++ NULL指针
#include <iostream> using namespace std; int main () { int*ptr = NULL; cout << "The value of ptr is " << ptr ;
作者:编程之家 时间:2022-07-04
C++使用指针
#include <iostream> using namespace std; int main () { intvar = 20;// actual variable declaration.
作者:编程之家 时间:2022-07-04
C++指针
// #include <iostream> using namespace std; int main () { intvar1; char var2[10]; cout << "Address of var1 variable: ";
作者:编程之家 时间:2022-07-04
C++ String类
#include <iostream> #include <string> using namespace std; int main () { string str1 = "Hello";
作者:编程之家 时间:2022-07-04
C++字符串函数
#include <iostream> #include <cstring> using namespace std; int main () { char str1[10] = "Hello";
作者:编程之家 时间:2022-07-04
C++字符串
#include <iostream> using namespace std; int main () { char greeting[6] = {'H', 'e', 'l', 'l', 'o', '\\0'};
作者:编程之家 时间:2022-07-04
C++从函数返回数组
#include <iostream> #include <ctime> using namespace std; // function to generate and retrun random numbers.
作者:编程之家 时间:2022-07-04
C++将数组传递给函数
#include <iostream> using namespace std; double getAverage(int arr[], int size) { int i, sum = 0; double avg;
作者:编程之家 时间:2022-07-04
C++指向数组的指针
#include <iostream> using namespace std; int main () { // an array with 5 elements. double balance[5] = {1000.0, 2.0, 3.4, 17.0, 50.0};
作者:编程之家 时间:2022-07-04
C++访问二维数组
#include <iostream> using namespace std; int main () { // an array with 5 rows and 2 columns. int a[5][2] = { {0,0}, {1,2}, {2,4}, {3,6},{4,8}};
作者:编程之家 时间:2022-07-04
C++访问数组元素
#include <iostream> using namespace std; #include <iomanip> using std::setw; int main () { int n[ 10 ];// n is an array of 10 integers
作者:编程之家 时间:2022-07-04
C++随机数
#include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main () {
作者:编程之家 时间:2022-07-04
C++数学运算
#include <iostream> #include <cmath> using namespace std; int main () { // number definition:
作者:编程之家 时间:2022-07-04
C++定义数字
#include <iostream> using namespace std; int main () { // number definition: shorts; inti; longl; floatf;
作者:编程之家 时间:2022-07-04
C++通过引用调用
#include <iostream> using namespace std; // function definition to swap the values. void swap(int &x, int &y) {
作者:编程之家 时间:2022-07-04
C++通过指针调用
#include <iostream> using namespace std; // function definition to swap the values. void swap(int *x, int *y) {
作者:编程之家 时间:2022-07-04
C++按值调用
#include <iostream> using namespace std; void swap(int x, int y) { int temp; temp = x; /* save the value of x */
作者:编程之家 时间:2022-07-04
C++默认值参数
#include <iostream> using namespace std; int sum(int a, int b = 20) { int result; result = a + b; return (result);
作者:编程之家 时间:2022-07-04
C++标准输入流
// 标准输入流 #include <iostream> using namespace std; int main() { char name[50]; cout << "Please enter your name: ";
作者:编程之家 时间:2022-07-04
C++标准输出流
// C++标准输出流 #include <iostream> using namespace std; int main() { char str[] = "Hello C++";
作者:编程之家 时间:2022-07-04
C++使用struct格式化时间
#include <iostream> #include <ctime> using namespace std; int main() { // current date/time based on current system
作者:编程之家 时间:2022-07-04
C++当前日期和时间
#include <iostream> #include <ctime> using namespace std; int main() { // current date/time based on current system
作者:编程之家 时间:2022-07-04
C++通过引用返回值
#include <iostream> #include <ctime> using namespace std; double vals[] = {10.1, 12.6, 33.1, 24.1, 50.0};
作者:编程之家 时间:2022-07-04
C++通过引用传递参数
#include <iostream> using namespace std; // function declaration void swap(int& x, int& y);
作者:编程之家 时间:2022-07-04
C++创建引用
#include <iostream> using namespace std; int main () { // declare simple variables inti; double d; // declare reference variables
作者:编程之家 时间:2022-07-04
C++函数返回指针
#include <iostream> #include <ctime> using namespace std; // function to generate and retrun random numbers.
作者:编程之家 时间:2022-07-04
C++函数接受指针参数
#include <iostream> using namespace std; // function declaration: double getAverage(int *arr, int size);
作者:编程之家 时间:2022-07-04
C++传递无符号长整数
#include <iostream> #include <ctime> using namespace std; void getSeconds(unsigned long *par);
作者:编程之家 时间:2022-07-04
C++指向指针的指针
#include <iostream> using namespace std; int main () { intvar; int*ptr; int**pptr; var = 3000; // take the address of var
作者:编程之家 时间:2022-07-04
C++指向字符的数组
#include <iostream> using namespace std; const int MAX = 4; int main () { char *names[MAX] = { "Zara Ali", "Hina Ali", "Nuha Ali", "Sara Ali" };
作者:编程之家 时间:2022-07-04
上一页
1
2
3
4
下一页
小编推荐
热门标签
更多
python
JavaScript
java
HTML
reactjs
C#
Android
CSS
Node.js
sql
r
python-3.x
MysqL
jQuery
c++
pandas
Flutter
angular
IOS
django
linux
swift
typescript
路由器
JSON
路由器设置
无线路由器
h3c
华三
华三路由器设置
华三路由器
电脑软件教程
arrays
docker
软件图文教程
C
vue.js
laravel
spring-boot
react-native