#include#include#include#include#includeusing
namespace std;typedef double dd;const dd pi=acos(0.0)*2;#define N 400005struct
P{ dd x,y; P(dd A=0...
分类:
其他好文 时间:
2014-05-17 03:38:45
阅读次数:
248
如果使用typedef 是这样的//可以把一个小写字母变成大写//char
(*pFun)(char); typedef char (*PTRFUN)(char); PTRFUN pFun; char glFun(char a){
return a & 223;} void print(int a....
分类:
编程语言 时间:
2014-05-17 01:24:44
阅读次数:
315
这是错误程序#include#include#include#include#include#includeusing
namespace std;mapcow;int main(){ //freopen("in.txt","r",stdin); char
str[1000],name[...
分类:
其他好文 时间:
2014-05-17 00:59:53
阅读次数:
266
const关键字的基本思想就是将一个变量变成常量,试图从语言设计者的角度去分析引入该关键字的动机。我猜测原因如下:1)提醒程序员,某些值是常量,如PI。或该值在程序运行期间是不变的,防止程序员误修改。对于多模块开发,头文件引用复杂的系统来说,这是很重要的,如果不能在编译期阻止常量被误修改,那么这些修...
分类:
编程语言 时间:
2014-05-13 18:55:51
阅读次数:
390
【整】char、varchar、nchar、nvarchar的区别对于程序中的string型字段,SQLServer中有char、varchar、nchar、nvarchar四种类型来对应(暂时不考虑text和ntext),开建立数据库中,对这四种类型往往比较模糊,这里做一下对比。定长或变长
所谓....
分类:
其他好文 时间:
2014-05-13 16:53:45
阅读次数:
282
#include
using namespace std;
const int size = 1000;
void ArrDel()
{
int arr[size];
//循环结束标志,一直循环到数组中只剩下最后一个元素结束
int currentNum = size;
int count = 0;
for (int k = 0; k < size; k++)
{
arr...
分类:
其他好文 时间:
2014-05-13 15:53:09
阅读次数:
282
实现了%d %x %c %s对变长函数的参数取址有了深刻的理解
,蒋yy的实验任务其实还是很有帮助的^_^ 1 int printf ( const char * format, ... ) 2 { 3 int
Count=0; 4 int index=0; 5 char b...
分类:
其他好文 时间:
2014-05-13 11:01:59
阅读次数:
226
1、使用FileStream读写文件文件头:using System; using
System.Collections.Generic; using System.Text; using System.IO; 读文件核心代码: byte[]
byData = new byte[100]; char...
分类:
其他好文 时间:
2014-05-13 10:57:52
阅读次数:
262