简介
使用FFmpeg SDK实现的H.264码流合成MPEG2-TS文件
一、源代码
int main(int argc, char* argv[])
{
const char* input = NULL;
const char* o...
分类:
其他好文 时间:
2014-05-10 10:04:42
阅读次数:
501
1、在记事本里编写c#代码,将文件保存为ProgramTest.cs:
namespace huangxiangTestDemo
{
class ProgramTest
{
static void Main()
{
System.Console.WriteLine("hello world");
System.Console.ReadKey();
}
}
}
...
分类:
其他好文 时间:
2014-05-10 09:48:43
阅读次数:
315
这道题算是一道简单的字符串题,应该算是签到题吧,这种题是一定要做出来的,这道题要注意的就是空格的处理,输入输出空格的处理,字符串类问题中连续输入的时候一定要特别注意,昨天是用c++写的,感觉c++处理字符串问题比c语言要好一点,这里我感觉用c语言一样的很简便;
#include
#include
int main()
{
int t,l;
char s[4100];
sca...
分类:
其他好文 时间:
2014-05-10 09:27:07
阅读次数:
257
public static void main(String[] args) {
String a=null;
if("aa".equals(a))//这种情形,不出现空指针异常
//if(a.equals("aa"))//出现空指针异常
{
System.out.println(true);
}
else {
System.out.println(false);
}
}
...
分类:
其他好文 时间:
2014-05-10 09:20:33
阅读次数:
257
在使用URLDecoder对字符串进行解码的时候 报以下异常信息:
Exception in thread "main" java.lang.IllegalArgumentException: URLDecoder: Incomplete trailing escape (%) pattern
原因是字符串中包含有%字符...
分类:
其他好文 时间:
2014-05-07 08:20:06
阅读次数:
272
OJ题目:click here~~
题目分析:四塔问题,n个盘,从塔1,到塔4,至少需要多少步。
这里n的范围是( 0 , 50000 ] ,所以不能直接用四塔算法。这里找规律就可以了。
AC_CODE
const int mod = 10000;
const int Max_N = 50002;
int dp[Max_N];
int main()
{
int i , j = ...
分类:
其他好文 时间:
2014-05-07 08:18:09
阅读次数:
226
java中的++运算符public class PlusPlusTest {/*** @param
args*/public static void main(String[] args) {int a = 0;for (int i = 0; i <
10; i++) {a = a++;}Syste...
分类:
编程语言 时间:
2014-05-06 12:02:20
阅读次数:
339
1.纯代码写对话框HelloWorld创建空Qt工程,添加C++源文件main.cpp需要设置编码以支持中文-----源代码main.cpp----- 1
#include 2 #include 3 #include 4 #include 5 6 int main(int argc, ch...
分类:
编程语言 时间:
2014-05-06 11:37:47
阅读次数:
446
模态对话框-----源文件main.cpp(工程QtDialog)----- 1 #include
"qtdialog.h" 2 #include 3 #include 4 5 int main(int argc, char *argv[]) 6 { 7
QApplication ap...
分类:
编程语言 时间:
2014-05-06 10:41:05
阅读次数:
456
1 #include 2 int main(int argc, char * argv[])
3 { 4 QApplication app(argc, argv); 5
QTextCodec::setCodecForCStrings(QTextCodec::codecForName...
分类:
编程语言 时间:
2014-05-06 10:38:14
阅读次数:
341