摘要:
Overview Replacement of SetInput() with SetInputData() and SetInputConnection() Removal of GetProducerPort() from vtkDataObject Removal of GetPipelin...
阅读全文
posted @ 2015-11-12 04:29
Grandyang
阅读(806)
推荐(0)
摘要:
Replacement of SetInput() with SetInputData() and SetInputConnection()someFilter->SetInput(someReader->GetOutput()); // Outdated// Replace to the foll...
阅读全文
posted @ 2015-11-11 06:56
Grandyang
阅读(1551)
推荐(0)
摘要:
Given an integer array nums, find the sum of the elements between indices iand j (i ≤ j), inclusive. Example: Given nums = [-2, 0, 3, -5, 2, -1] sumRa
阅读全文
posted @ 2015-11-10 12:03
Grandyang
阅读(14841)
推荐(0)
摘要:
从零开始学习VTK-东灵工作室-上从零开始学习VTK-东灵工作室-下
阅读全文
posted @ 2015-11-10 06:45
Grandyang
阅读(1196)
推荐(0)
摘要:
Download ITK 4.8.1Download Qt 5.4 with MinGW 4.9.1Download CMake 3.2.0I assume you've already installed Qt 5.4 with MinGW 4.9.1 and CMake 3.2.0 correc...
阅读全文
posted @ 2015-11-10 05:41
Grandyang
阅读(979)
推荐(0)
摘要:
首先要安装JDK,然后设置环境变量Path,添加C:\Program Files (x86)\Java\jdk1.8.0_66\bin然后建立一个名为j.java的文件,里面加入如下代码:public class j { public static void main(String[] arg...
阅读全文
posted @ 2015-11-09 05:23
Grandyang
阅读(432)
推荐(0)
摘要:
罗其胜3d角色强化 CGwhat-Maya变形金刚擎天柱建模教程 Pixar in the box - khan academy Siggraph历届优秀动画 CG软件发展史:MAYA动画十年历程 maya 2014奥迪汽车模型制作教程 (yj6k) 海贼王路飞建模教程高清全集
阅读全文
posted @ 2015-11-08 14:41
Grandyang
阅读(468)
推荐(0)
摘要:
14.3 What is the difference between final, finally, and finalize?这道题考察我们Java中的三个看起来很相似的关键字final,finally和finalize。别看它们三长的很像,但是完全不是一回事。final用在一个变量,方法或是类...
阅读全文
posted @ 2015-11-08 10:21
Grandyang
阅读(461)
推荐(0)
摘要:
14.2 In Java, does the finally block get executed if we insert a return statement inside the try block of a try-catch-finally?这道题问我们Java中的finally块是否会被...
阅读全文
posted @ 2015-11-08 09:57
Grandyang
阅读(430)
推荐(0)
摘要:
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input string may cont
阅读全文
posted @ 2015-11-07 13:07
Grandyang
阅读(34609)
推荐(0)
摘要:
14.1 In terms of inheritance, what is the effect of keeping a constructor private?这道题问我们用继承特性时,如果建立一个私有的构建函数会怎样。只有能访问该函数的私有变量或函数的东西才能访问私有构建函数,比如内部类就可以...
阅读全文
posted @ 2015-11-06 14:12
Grandyang
阅读(634)
推荐(0)
摘要:
Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Input: [10,9,2,5,3,7,101,18] Output: 4 Explanation: T
阅读全文
posted @ 2015-11-05 08:18
Grandyang
阅读(51800)
推荐(5)
摘要:
一. 移动: h,j,k,l: 左,下,上,右。 w: 下一个词的词首。 e:下一个词的词尾。 b:上一个词的词首。 : v 模式选中后进行缩进。二. 跳转: %: 可以匹配{},"",(),[]之间跳转。 H、M、L:直接跳转到当前屏幕的顶部、中部、底部。 #H:跳转到当前屏的第#行。 #L:跳转...
阅读全文
posted @ 2015-11-05 07:13
Grandyang
阅读(546)
推荐(0)
摘要:
VIM中文手册简明 Vim 练级攻略所需即所获:像 IDE 一样使用 vim
阅读全文
posted @ 2015-11-05 04:07
Grandyang
阅读(304)
推荐(0)
摘要:
13.10 Write a function in C called my2DAlloc which allocates a two-dimensional array. Minimize the number of calls to malloc and make sure that the me...
阅读全文
posted @ 2015-11-04 04:41
Grandyang
阅读(1029)
推荐(0)
摘要:
在和计算机内存打交道时,我们一定会碰到堆和栈,这两个东西很容易搞混,那么现在就来梳理一下二者的关系。栈是用来静态分配内存的而堆是动态分配内存的,它们都是存在于计算机内存之中。栈的分配是在程序编译的时候完成的,直接存储在内存中,接触内存很快。栈是后进先出的顺序,最后被申请的块最先被释放,这样就很容易跟...
阅读全文
posted @ 2015-11-03 13:51
Grandyang
阅读(6173)
推荐(0)
摘要:
13.9 Write an aligned malloc and free function that supports allocating memory such that the memory address returned is divisible by a specific power ...
阅读全文
posted @ 2015-11-03 03:31
Grandyang
阅读(1397)
推荐(0)
摘要:
13.8 Write a smart pointer class. A smart pointer is a data type, usually implemented with templates, that simulates a pointer while also providing au...
阅读全文
posted @ 2015-11-02 13:32
Grandyang
阅读(910)
推荐(0)
摘要:
13.7 Write a method that takes a pointer to a Node structure as a parameter and returns a complete copy of the passed in data structure. The Node data...
阅读全文
posted @ 2015-11-02 11:55
Grandyang
阅读(914)
推荐(0)
摘要:
You are playing the followingBulls and Cowsgame with your friend: You write a 4-digit secret number and ask your friend to guess it, each time your fr...
阅读全文
posted @ 2015-11-02 04:37
Grandyang
阅读(15716)
推荐(0)
摘要:
13.6 Why does a destructor in base class need to be declared virtual?这道题问我们为啥基类中的析构函数要定义为虚函数。首先来看下面这段代码:class Foo {public: void f();};class Bar: pu...
阅读全文
posted @ 2015-10-31 06:55
Grandyang
阅读(516)
推荐(0)
摘要:
13.5 What is the significance of the keyword "volatile" in C这道题考察我们对于关键字volatile的理解,顾名思义,volatile有易变的易挥发的意思,在C/C++里,表示告知编译器某个变量可能会由程序外部改变,比如操作系统,硬件或者其...
阅读全文
posted @ 2015-10-31 04:13
Grandyang
阅读(530)
推荐(0)
摘要:
13.4 What is the difference between deep copy and shallow copy? Explain how you would use each.这道题问深拷贝和浅拷贝的区别。浅拷贝复制对象中所有的成员值到另一个对象中,而深拷贝不仅复制这些,还复制所有的指...
阅读全文
posted @ 2015-10-31 03:19
Grandyang
阅读(510)
推荐(0)
摘要:
13.3 How do virtual functions work in C++?这道题问我们虚函数在C++中的工作原理。虚函数的工作机制主要依赖于虚表格vtable,即Virtual Table。当类中定义了虚函数时,一个虚表格就建立了用来保存该类的虚函数的地址。此时编译器Compiler也会在...
阅读全文
posted @ 2015-10-30 06:58
Grandyang
阅读(636)
推荐(0)
摘要:
13.2 Compare and contrast a hash table and an STL map. How is a hash table implemented? If the number of inputs is small, which data structure options...
阅读全文
posted @ 2015-10-30 05:20
Grandyang
阅读(626)
推荐(0)
摘要:
13.1 Write a method to print the last K lines of an input file using C++.这道题让我们用C++来打印一个输入文本的最后K行,最直接的方法是先读入所有的数据,统计文本的总行数,然后再遍历一遍打印出最后K行。这个方法需要读两遍文件,...
阅读全文
posted @ 2015-10-29 12:10
Grandyang
阅读(735)
推荐(0)
摘要:
12.6 How would you test an ATM in a distributed banking system?这道题问我们如何来测试一个自动取款机,我们首先要询问下列问题:- 谁来使用这些ATM?回答可能是任何人,或者是盲人,或者是其他什么答案。- 这些ATM用来干什么?回答可能是取...
阅读全文
posted @ 2015-10-28 11:57
Grandyang
阅读(796)
推荐(0)
摘要:
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or
阅读全文
posted @ 2015-10-27 13:04
Grandyang
阅读(29922)
推荐(3)
摘要:
12.5 How would you testa pen?这道题让我们测试一支笔,我们需要问面试官许多问题来理解"who,what,where,when,how and why",比如我们可以这样:面试官:你怎样测试一支笔?候选人:谁将要使用这笔?面试官:儿童候选人:有意思,那么他们用来干什么呢,是...
阅读全文
posted @ 2015-10-27 10:07
Grandyang
阅读(803)
推荐(0)
摘要:
12.4 How would you load test a webpage without using any test tools?这道题问我们如何不用任何测试工具来加载测试一个网页。加载测试可以用来验证一个网站应用的最大操作容量和跟性能有关的瓶颈。同样,也可以测试应用在加载对不同情况的响应。对...
阅读全文
posted @ 2015-10-26 09:19
Grandyang
阅读(561)
推荐(0)
摘要:
别跟我说你会PPT,144项大神级ppt制作技术ppt範本背景下載好康區
阅读全文
posted @ 2015-10-26 04:51
Grandyang
阅读(339)
推荐(0)
摘要:
12.3 We have the following method used in a chess game: boolean canMoveTo( int x, int y). This method is part of the Piece class and returns whether o
阅读全文
posted @ 2015-10-25 09:44
Grandyang
阅读(643)
推荐(0)
摘要:
12.2 You are given the source to an application which crashes when it is run. After running it ten times in a debugger, you find it never crashes in t...
阅读全文
posted @ 2015-10-24 11:59
Grandyang
阅读(879)
推荐(0)
摘要:
12.1 Find the mistake(s) in the following code:unsigned int i;for (i = 190; i >= 0; --i)printf("%d\n", i);这道题让我们找出给定的简短的程序的错误,这里共有两处错误:1. 无符号整型永远大于0,所...
阅读全文
posted @ 2015-10-23 07:22
Grandyang
阅读(530)
推荐(0)
摘要:
11.8 Imagine you are reading in a stream of integers. Periodically, you wish to be able to look up the rank of a number x (the number of values less t...
阅读全文
posted @ 2015-10-22 11:01
Grandyang
阅读(902)
推荐(0)
摘要:
Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two...
阅读全文
posted @ 2015-10-21 07:25
Grandyang
阅读(20880)
推荐(2)
摘要:
在C++中,我们有时想生成一个由随机数组成的数组,而且随机数的范围也可由我们来设定。那么我们就要用到srand()函数配合rand()来使用,参见如下代码:#include #include #include #include #include using namespace std;int m...
阅读全文
posted @ 2015-10-20 10:14
Grandyang
阅读(1911)
推荐(0)
摘要:
http://umm.edu/programs/neurosciences/treatment-programs/image-guided-surgery
阅读全文
posted @ 2015-10-20 04:12
Grandyang
阅读(360)
推荐(0)
摘要:
11.7 A circus is designing a tower routine consisting of people standing atop one another's shoulders. For practical and aesthetic reasons, each perso...
阅读全文
posted @ 2015-10-19 12:06
Grandyang
阅读(1088)
推荐(0)
摘要:
Given a sequence of integers, find the longest increasing subsequence (LIS).You code should return the length of the LIS.Have you met this question in...
阅读全文
posted @ 2015-10-19 12:04
Grandyang
阅读(5815)
推荐(2)