2010年3月8日

两个面试题-仅供娱乐,切勿模仿

摘要: 代码包括两个题1. 返回两个int型数中的较大者,不准用关系运算符,不准用if, while, for等语句2. 一句代码求字符串长度代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1#include<iostream>2usingna... 阅读全文

posted @ 2010-03-08 16:23 前端风云志 阅读(773) 评论(0) 推荐(0)

Vector与数组的转化

摘要: 可以重载*运算符 1 operator float *(){ return &_x ;} ;2 operator const float *() const{ return &_x ; } ;3 仿照D3D库中的例子,写出如下代码 #include <iostream> using namespac 阅读全文

posted @ 2010-03-08 10:05 前端风云志 阅读(10298) 评论(0) 推荐(0)

导航

关注我

前端风云志