V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  zeroday  ›  全部回复第 19 页 / 共 51 页
回复总数  1003
1 ... 15  16  17  18  19  20  21  22  23  24 ... 51  
@FradSer 当时售后4000~5000, 第三方3000,图便宜就到第三方换了.
@kungfuchicken
@17chai 没试过,真担心吹坏了.热风枪是将断掉的显卡在重新焊上吗?
@iTwoEleven 请问你卖了多少钱呢?
@steveshi 我想到一个办法,用一台Mac和硬盘盒.用Mac连接硬盘盒装好10.8系统,然后在放入原来的Macbook中.
@steveshi 已经升到10.10了,重装10.8还行吗?
@steveshi 实在没办法了,准备删独显驱动,直接用核显暂时用着。
@hahastudio 非常感谢你的帮助解答,这个网站真不错。
2015-03-16 11:02:30 +08:00
回复了 zeroday 创建的主题 C 关于指针与字符串数组的疑问
@jokester @hx1997 @Virtao @DiveIntoEyes @onemoo @zhicheng @xieyudi1990 @canautumn
谢谢大家的帮助,明白了。

原来字符指针指向的是字符串常量,而字符数组是将字符串常量赋值到栈上的内存中,故可以操作。第二段代码问题出在 strcat 上。

修改的代码附上。

```
#include <stdio.h>
#include <string.h>

#define LEN 80
char * mystrcat(char *dst, const char *src);

int main()
{
char s1[LEN];
char s2[LEN];
scanf("%s %s", s1, s2);
int substr_len = strlen(s2);
char *p = NULL;
while ((p = strstr(s1, s2)))
{
*p = '\0';
p += substr_len;
mystrcat(s1, p);
}
printf("%s", s1);
return 0;
}

char * mystrcat(char *dst, const char *src)
{
char *ret = dst;
while(*dst)
{
dst++;
}
while(*src)
{
*dst++ = *src++;
}
*dst = '\0';
return ret;
}
```
2015-02-23 22:55:02 +08:00
回复了 wozhapen 创建的主题 Python python 该如何处理 json 中的中文
不知道下面的用法可不可行。

将 utf-8 转化为 unicode
response = unicode( response, 'utf-8' )
将 unicode 转化为 utf-8 输出
print response.encode('utf-8')
@penghuaifa 谢谢。
@penghuaifa 似乎不对,我尝试输入
 ~/Music/mpv The\ Rain\ -\ Joe\ Hisaishi.flac -loop
Error parsing commandline option loop: option requires parameter

Exiting... (Fatal error)
2015-02-23 11:00:09 +08:00
回复了 kalasoo 创建的主题 Apple 我就是想安静地吐槽一下 MBP MagSafe 充电线么
看了楼主的帖子,发现我的电源适配器也开胶了。
1 ... 15  16  17  18  19  20  21  22  23  24 ... 51  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1120 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms · UTC 17:28 · PVG 01:28 · LAX 10:28 · JFK 13:28
Developed with CodeLauncher
♥ Do have faith in what you're doing.