摘要: 1、返回数组 // demo.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include char *myString() { char buffer[]="hello"; char *s = "Hello World!"; return buffer; } int main(int argc, char *... 阅读全文
posted @ 2015-08-23 21:51 WQZ321123 阅读(2742) 评论(0) 推荐(0) 编辑
摘要: 参考网址http://www.cnblogs.com/wuzhenbo/p/3496054.html 里面的动画挺好看的 // demo.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include using namespace std; void hannoi(int n, char A, char B, char C)// 把A盘里... 阅读全文
posted @ 2015-08-23 09:56 WQZ321123 阅读(243) 评论(0) 推荐(0) 编辑