题目:Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After...
分类:
其他好文 时间:
2015-04-30 10:22:31
阅读次数:
86
题目链接: http://cpp.zjut.edu.cn/ShowProblem.aspx?ShowID=1373
题面:
Easy as A+B
Time Limit:1000MS Memory Limit:32768K
Description:
These days, I am thinking about a question, how can I ge...
分类:
编程语言 时间:
2015-04-30 08:55:58
阅读次数:
173
1 // SimpleTest1.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include 6 #include 7 using namespace std; 8 void DrawTriggle() 9 {10 glPoi...
分类:
其他好文 时间:
2015-04-30 00:49:33
阅读次数:
149
题目:Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.代码...
分类:
其他好文 时间:
2015-04-30 00:42:27
阅读次数:
174
正常情况下,需要在Android.mk文件下面一个一个手动添加cpp文件,如果文件较多,这样就太麻烦了。 解决办法如下: 把Android.mk文件里面的这段代码:LOCAL_SRC_FILES := hellocpp/main.cpp \ ../../C...
分类:
移动开发 时间:
2015-04-30 00:40:41
阅读次数:
160
代码很短,实现起来也很简单,下面是代码:
//
// main.cpp
// PreMidgetPost
//
// Created by xin wang on 4/29/15.
// Copyright (c) 2015 xin wang. All rights reserved.
//
#include
//链表二叉树的节点类
template
class BinaryTr...
分类:
其他好文 时间:
2015-04-29 21:44:41
阅读次数:
178
------Java培训、Android培训、iOS培训、.Net培训、期待与您交流! -------知识点24:静态变量、全局变量声明但是没有初始化是有初值的(int0 char \0)但是局部变量声明没有初始化是没有初值的知识点25:结构体整体初始化必须在声明时进行[cpp]view plain...
分类:
编程语言 时间:
2015-04-29 21:34:40
阅读次数:
294
题目:Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2-...
分类:
其他好文 时间:
2015-04-29 21:09:45
阅读次数:
112
(1)请用类的成员函数,定义复数类重载运算符+、-、*、/,使之能用于复数的加减乘除。
/*
* Copyright (c) 2015,烟台大学计算机学院
* All right reserved.
* 作者:邵帅
* 文件:Demo.cpp
* 完成时间:2015年04月29日
* 版本号:v1.0
*/
#include
using namespace std;
class Complex...
分类:
其他好文 时间:
2015-04-29 19:53:16
阅读次数:
108
参照了http://www.hankcs.com/program/cpp/poj-1065-wooden-sticks.html 代码写得很简洁#include#include#include#include#includeusing namespace std;typedef long long ...
分类:
其他好文 时间:
2015-04-29 19:33:32
阅读次数:
130