码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Linux下C程序插入执行shell脚本
1、system(执行shell命令)相关函数 fork,execve,waitpid,popen表头文件 #include定义函数 int system(const char * string);函数说明 system()会调用fork()产生子进程,由子进程来调用/bin/sh-cstring来...
分类:系统相关   时间:2015-01-05 10:48:38    阅读次数:239
hdu3336----Count the string
Count the string Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5159    Accepted Submission(s): 2425 Problem Description It is well kn...
分类:其他好文   时间:2015-01-05 09:38:35    阅读次数:98
华为机试—字符串去重排序
输入一个字符串,去掉重复出现的字符,并把剩余的字符串排序输出。 #include #include using namespace std; void sort(string s) { char tmp[100]; int len=s.size(); int count=0,i,j; for (i=0;i<len;i++) { for (j=i+1;j<l...
分类:编程语言   时间:2015-01-05 09:33:58    阅读次数:203
gcc源代码分析之varasm.c
rtx expand_expr (exp, target, tmode, modifier)      register tree exp;      rtx target;      enum machine_mode tmode;      enum expand_modifier modifier; { .....     case STRING_CST:     ...
分类:其他好文   时间:2015-01-05 09:27:54    阅读次数:239
LeetCode-Word Break
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For e...
分类:其他好文   时间:2015-01-05 08:16:36    阅读次数:147
LeetCode-Reverse Words in a String
Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.C...
分类:其他好文   时间:2015-01-05 08:15:08    阅读次数:124
LeetCode-Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan...
分类:其他好文   时间:2015-01-05 07:02:29    阅读次数:229
Effective Modern C++ 之 避免对以全局引用为参数的函数重载
考察以下代码:std::multiset names; //global data structurevoid LogAndAdd(const std::string &name){ auto now = //got...
分类:编程语言   时间:2015-01-05 01:49:03    阅读次数:276
C#秘密武器之反射——基础
一、先来一段有用的反射代码namespace Calculator { public interface Iwel { String Print(); } } namespace Calculator { public class Arithme...
分类:Windows程序   时间:2015-01-05 01:48:06    阅读次数:368
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!