码迷,mamicode.com
首页 >  
搜索关键字:temp    ( 7776个结果
实现字符串中单词反转
????#include int main() { char str[]="student a am i"; printf("%s\n",str); char *p,*q; char temp; p=q=str; while(*q!='\0') { q++; } q--; ...
分类:其他好文   时间:2015-04-07 21:35:59    阅读次数:161
Windows 7、8.0、8.1安装.NET 3.5报错问题
Windows7、8.0、8.1安装.NET3.5报错问题DISMPID=8468TID=8476Scratchdirectorysetto‘C:\Users\\AppData\Local\Temp\‘.-CDISMManager::put_ScratchDirDISMPID=8468TID=8476DismCore.dllversion:6.3.9600.17031-CDISMManager::FinalConstructDISMPID=8468TID=8476Successfullyloa..
分类:Windows程序   时间:2015-04-07 20:08:30    阅读次数:387
【c语言】把student a am i 变成 i am a student
// 把student a am i 变成 i am a student //思想:把每个单词翻转,然后再把整体翻转 #include #include //把每次解析出来的单词翻转 void fanw( char *l,char *r ) { char* left = l; char* right = r; char temp; while( left < right ) { ...
分类:编程语言   时间:2015-04-07 19:46:37    阅读次数:262
【C语言】将字符串顺序翻转,如: I am a student 转成:student a am I
//将字符串顺序翻转 //如: I am a student 转成:student a am I #include #include void fanw( char *left,char *right ) //把每个单词单词翻转 { char* pleft = left; char* pright = right; char temp; while( pleft < pright )...
分类:编程语言   时间:2015-04-07 19:43:47    阅读次数:167
JavaScript通过原型给数组添加更多的方法
一、数组获取最大值的方法 var arr = ["nba","haha","cba","aaa","sbc"]; Array.prototype.getMax = function(){ var temp = 0; for(var x...
分类:编程语言   时间:2015-04-07 19:22:52    阅读次数:171
iOS 文件的操作
NSString *path = NSHomeDirectory();上面的代码得到的是应用程序目录的路径,在该目录下有三个文件夹:Documents、Library、temp以及一个.app包!该目录下就是应用程序的沙盒,应用程序只能访问该目录下的文件夹!!!请参考下面的例子:1、NSString...
分类:移动开发   时间:2015-04-07 11:32:55    阅读次数:167
前端-【学习心得】-使用工具提升你的工作效率(sublime text)
从今天起我来把自己开发前端的工具分享给大家。首先,是文本编辑器。我的选择是sublime text ,sublime 强大在于它的插件支持。通常,前端需要打交道的地方有js,css,html。sublime temp 模板插件,因为我们平时需要重复创建许多css,js,html文件,这个插件无疑是为...
分类:其他好文   时间:2015-04-06 20:06:10    阅读次数:131
推箱子 只有一个地图 初练
namespace 自己琢磨推箱子{ class Program { static void Main(string[] args) { //定义一个地图 int x=2,y=1;//小人的位置 int temp = 0; int[,] map = new int[10, 10] { {1,1,.....
分类:其他好文   时间:2015-04-06 00:55:30    阅读次数:220
冒泡排序
for (int i = 1; i <a.Length; i++){ for (int j = 1; j <=a.Length-i; j++) { if (a[j-1]<a[j])//位置交换 { temp=a[j-1]; a[j-1]=a[j]; a[j]=temp; } }}
分类:编程语言   时间:2015-04-06 00:47:27    阅读次数:135
快速排序
void temp(int *l,int i,int j){ int t=l[i]; l[i]=l[j]; l[j]=t; }int partition(int *l,int low,int high){ int privotkey=l[low]; whi...
分类:编程语言   时间:2015-04-05 23:17:59    阅读次数:211
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!