搜索资源列表
cvery_72125488
- #include \"pch.h\" #include \"base64.h\" NAMESPACE_BEGIN(CryptoPP) static const int MAX_LINE_LENGTH = 72 static const byte vec[] = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\" static const byte padding
fushu
- 复数运算#include<iostream.h> class Complex { public: Complex( double r =0, double i =0 ) Complex(int a) { Real = a Image = 0 } void print() const friend Complex operator+ ( const Complex & c1, const Complex & c2 ) friend Com
const
- 当你想阻止一个变量被改变,可能会用到const关键字。在你给一个变量加上const修饰符的同时,通常需要对它进行初始化,因为以后的任何时候你将没有机会再去改变它
abc
- 关于数据结构入门的源码关于数据结构入门的源码-#include<iostream> using namespace std template<class T> class list{ private: int n int max_size T*data public: list(int max_list_size=10) ~list(){delete [] data } bool empty
8_2
- 已知一个有理数类Zrf_Ratio,实现如下的操作符重载形式: friend zrf_Ratio operator-(const zrf_Ratio&) friend zrf_Ratio operator+(const zrf_Ratio&, const zrf_Ratio&) friend zrf_Ratio operator-(const zrf_Ratio&, const zrf_Ratio&) friend zrf_Ratio operator*(const
TDDOWNLOAD
- #include <stdio.h> #include <math.h> #include <stdlib.h> #include <float.h> unsigned __int64 mulmod(unsigned __int64 a, unsigned __int64 b, unsigned __int64 m) { static const double _2_64 = 18446744073709551616
LCD1602
- 简易无线遥控中LCD1602的程序代码。希望对大家有帮助-LCD1602 #include <reg52.h> #include <intrins.h> #define uint unsigned int #define uchar unsigned char //****************************************NRF24L01端口定义*************************************
chaobanruan
- #include<iom16v.h> #include<macros.h> #define uchar unsigned char #define uint unsigned int uchar senserflag=0 //传感器状态标志 uchar count1=0 uchar jsflag=0 //金属标志 uchar task=1 //任务标志 uint distancedata=0 //路程值 uint distance
C语言中scanf的使用
- 首先需要#include <stdio.h>int scanf( const char *format, ... );scanf()函数是格式化输入函数,它从标准输入设备(键盘) 读取输入的信息。第一个参数format为一个常量字符串,这个字符串中如果包含‘%’符号则使用后续参数进行匹配如:scanf("%d%d", &a, &b);(First, we need #include <stdio.h>int scanf (const c