标题:英文题目,求解释
取消只看楼主
追忆辅助
Rank: 1
来 自:大连
等 级:新手上路
帖 子:22
专家分:4
注 册:2012-3-29
结帖率:20%
已结贴  问题点数:10 回复次数:2 
英文题目,求解释
Change the program below to print “I love programming”. You should do this by using the values in love text to change hate text. Hint: think about the relationship between the index values of the letters in love and the index values for the word hate.
This can be done without creating any new variables.
#include<stdio.h>
int main(void)
{
int i;
char hatetext[]= "I hate programming.";
char lovetext[]= "love";
/*Your code goes here.*/
printf("%s\n",hatetext);
搜索更多相关主题的帖子: love creating index between letters 
2012-12-26 14:14
追忆辅助
Rank: 1
来 自:大连
等 级:新手上路
帖 子:22
专家分:4
注 册:2012-3-29
得分:0 
谢谢版主,就是英语差,也是初学者,灰常感谢!!!
2012-12-26 16:19
追忆辅助
Rank: 1
来 自:大连
等 级:新手上路
帖 子:22
专家分:4
注 册:2012-3-29
得分:0 
但这里 *(int*)(hatetext+2) = *(int*)lovetext;还模样明白,能否详细地解释一下
2012-12-26 16:26



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-393727-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.512899 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved