码迷,mamicode.com
首页 >  
搜索关键字:constant    ( 1663个结果
Renesas M16C/6X -- Simple PWM Signal Generation Using DMA
1. RequirementsTo generate a PWM output, we need to create a train of pulses with constant period and variable duty cycle.The dutycycle, being the mod...
分类:其他好文   时间:2015-08-21 18:44:27    阅读次数:210
Error detected while processing function CheckFoam256 问题的解决
今天在打开OpenFOAM的constant文件的时候, vim-OpenFOAM-syntax插件遇到了如下问题:Error detected while processing function CheckFoam256:line 3:E168: :finish used outside of a...
分类:其他好文   时间:2015-08-21 15:10:06    阅读次数:227
Ants POJ 1852
Description An army of ants walk on a horizontal pole of length l cm, each with a constant speed of 1 cm/s. When a walking ant reaches an end of the pole, it immediatelly falls off it. When two ant...
分类:其他好文   时间:2015-08-21 13:41:37    阅读次数:120
【LeetCode-面试算法经典-Java实现】【155-Min Stack(最小栈)】
【155-Min Stack(最小栈)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.   push(x) – Push element x onto stack.   po...
分类:编程语言   时间:2015-08-21 07:10:52    阅读次数:215
关于windows系统里locale、code page、ANSI编码的问题
最近把公司代码库里的代码同步下来之后编译了下,竟然出问题。问下同事说代码库肯定没问题,而我啥也没改,那到底那里出问题了呢?VS2018报的错误是:error RC2001: newline in constant百度下这个错误的原因,主要原因是定义的字符串常量两个引号之间有换行,跳到相应出错的代码位...
分类:Windows程序   时间:2015-08-20 14:45:21    阅读次数:185
c++11之类型萃取type_traits
不知道怎么评价这个特性。。。代码#include#include//继承integral_constant可以方便写静态变量structGetSize: std::integral_constant{};templatestruct integral_my{staticconst T value =...
分类:编程语言   时间:2015-08-19 23:18:59    阅读次数:270
Constant issues in Java inheritance
This is the super class Human:class Human { String name = "Human"; String sex = "Humanity"; public String getHuman(){ return this.name...
分类:编程语言   时间:2015-08-17 23:36:18    阅读次数:179
[LeetCode] Sort List
Sort List Sort a linked list in O(n log n) time using constant space complexity. 解题思路: 题意为以常量存储空间和O(nlogn)时间复杂度来排序链表。 可以用合并排序法,并用双指针法来找到中间节点。 产生一个头结点方便编码。 /** * Definition for singly-link...
分类:其他好文   时间:2015-08-17 17:30:45    阅读次数:161
Expression 表达式树学习整理
整理了一下表达式树的一些东西,入门足够了先从ConstantExpression开始一步一步的来吧 它表示具有常量值的表达式我们选建一个控制台应用程序ConstantExpression _constExp = Expression.Constant("aaa",typeof(string));//...
分类:其他好文   时间:2015-08-16 00:22:23    阅读次数:206
由书写strlen函数碰到的问题。
今天在自己实现strlen函数的时候碰到碰到了一个很有意思的warning:warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] 1 #include 2 3 int strlen(cha.....
分类:其他好文   时间:2015-08-14 00:53:52    阅读次数:237
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!