码迷,mamicode.com
首页 >  
搜索关键字:cpp    ( 13186个结果
【Remove Nth Node From End of List】cpp
题目: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
CPP 1373 Easy as A+B(冒泡排序)
题目链接: 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
使用opengl 绘制9个点,理解各个参数的含义
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
【Rotate List】cpp
题目: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
如何在安卓环境下自动编译所有cpp文件
正常情况下,需要在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
黑马程序员——C语言基础---C语言学习中容易疏漏的地方总结(下)
------Java培训、Android培训、iOS培训、.Net培训、期待与您交流! -------知识点24:静态变量、全局变量声明但是没有初始化是有初值的(int0 char \0)但是局部变量声明没有初始化是没有初值的知识点25:结构体整体初始化必须在声明时进行[cpp]view plain...
分类:编程语言   时间:2015-04-29 21:34:40    阅读次数:294
【Remove Duplicates from Sorted List II 】cpp
题目: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-实现复数类中的运算符重载
(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
POJ 1065 学习写法
参照了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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!