????#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
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..
// 把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
//将字符串顺序翻转
//如: 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
一、数组获取最大值的方法 var arr = ["nba","haha","cba","aaa","sbc"]; Array.prototype.getMax = function(){ var temp = 0; for(var x...
分类:
编程语言 时间:
2015-04-07 19:22:52
阅读次数:
171
NSString *path = NSHomeDirectory();上面的代码得到的是应用程序目录的路径,在该目录下有三个文件夹:Documents、Library、temp以及一个.app包!该目录下就是应用程序的沙盒,应用程序只能访问该目录下的文件夹!!!请参考下面的例子:1、NSString...
分类:
移动开发 时间:
2015-04-07 11:32:55
阅读次数:
167
从今天起我来把自己开发前端的工具分享给大家。首先,是文本编辑器。我的选择是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