谁能帮我看下这是安茜为什么帮玉莹?

当前位置:
&谁能帮我看一下这个程序是什么意思啊,谢谢
谁能帮我看一下这个程序是什么意思啊,谢谢
& &This file is part of Astrochem.
& &Astrochem is free software: you can redistribute it and/or modify
& &it under the terms of the GNU General Public License as published
& &by the Free Software Foundation, either version 3 of the License,
& &or (at your option) any later version.
& &Astrochem is distributed in the hope that it will be useful, but
& &WITHOUT ANY WARRANTY; without even the implied warranty of
& &MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&&See the GNU
& &General Public License for more details.
& &You should have received a copy of the GNU General Public License
& &along with Astrochem.&&If not, see &http://www.gnu.org/licenses/&.
#include &config.h&
#endiflm,[
#include &stdio.h&
#include &stdlib.h&
#include &string.h&
#include &astrochem.h&
void add_specie (char *new_specie, char *species[], int *n_species);
void read_network (const char *chem_file, struct react reactions[],
& & & & & & & & & & & & & & & & int *n_reactions, char *species[],
& & & & & & & & & & & & & & & & int *n_species, int verbose)
& & & & FILE *f;
& & & & char line[MAX_LINE];
& & & & int&&line_number = 0;
& & & & char reactant1[MAX_CHAR_SPECIES];
& & & & char reactant2[MAX_CHAR_SPECIES];
& & & & char reactant3[MAX_CHAR_SPECIES];
& & & & char product1[MAX_CHAR_SPECIES];
& & & & char product2[MAX_CHAR_SPECIES];
& & & & char product3[MAX_CHAR_SPECIES];
& & & & char product4[MAX_CHAR_SPECIES];
& & & & int reaction_
& & & & int reaction_
& & & & *n_species = 0;
& & & & *n_reactions = 0;
& & & & if (verbose &= 1)
& & & & & & & & fprintf (stdout, &Reading reactions network from %s... &, chem_file);
& & & & & & & & fflush (stdout);
&&/* Open the input file. We first look in the current directory, and
& &&&then in the PKGDATADIR directory. Exit if we can't find it. */
& & & & f = fopen (chem_file, &r&
& & & & if ( !f )
& & & & & & & & char chem_file1[MAX_LINE];
& & & & & & & & strncpy (chem_file1, PKGDATADIR, sizeof (chem_file1) - 1);
& & & & & & & & strncat (chem_file1, &/&, sizeof (chem_file1) - strlen (chem_file1) - 1);
& & & & & & & & strncat (chem_file1, chem_file, sizeof (chem_file1) - strlen (chem_file1) - 1);
& & & & & & & & f = fopen (chem_file1, &r&
& & & & & & & & if ( !f )
& & & & & & & & {
& & & & & & & & & & & & fprintf (stderr, &astrochem: error: can't find %s.\n&, chem_file);
& & & & & & & & & & & & exit (1);
& & & & & & & & }
&&/* Loop over the lines, and look for the reactants and products, and
& &&&the parameters of the reactions. */
& & & & while (fgets (line, MAX_LINE, f) != NULL)
& & & & & & & & line_number++;
& & & & & & & & if (line[0] == '#') /* Skip comments. */
& && &/* Initialize reactants, products, and reaction parameters. */
& & & & & & & & strcpy (reactant1, &&
& & & & & & & & strcpy (reactant2, &&
& & & & & & & & strcpy (reactant3, &&
& & & & & & & & strcpy (product1, &&
& & & & & & & & strcpy (product2, &&
& & & & & & & & strcpy (product3, &&
& & & & & & & & strcpy (product4, &&
& & & & & & & & alpha = 0;
& & & & & & & & beta = 0;
& & & & & & & & gamma = 0;
& & & & & & & & reaction_type = 0;
& & & & & & & & reaction_no = 0;
& && &/* Read the reactants, products, and reaction parameters. */
& & & & & & & & if ((sscanf (line, &%s -& %s %lf %lf %lf %d %d&,
& & & & & & & & & & & & reactant1, product1,
& & & & & & & & & & & & &alpha, &beta, &gamma, &reaction_type, &reaction_no) == 7)
& & & & & & & & & & & & || (sscanf (line, &%s + %s -& %s %lf %lf %lf %d %d&,
& & & & & & & & & & & & & & & & reactant1, reactant2, product1,
& & & & & & & & & & & & & & & & &alpha, &beta, &gamma, &reaction_type, &reaction_no) == 8)
& & & & & & & & & & & & || (sscanf (line, &%s + %s -& %s + %s %lf %lf %lf %d %d&,
& & & & & & & & & & & & & & & & reactant1, reactant2, product1, product2,
& & & & & & & & & & & & & & & & &alpha, &beta, &gamma, &reaction_type, &reaction_no) == 9)
& & & & & & & & & & & & || (sscanf (line, &%s + %s -& %s + %s + %s %lf %lf %lf %d %d&,
& & & & & & & & & & & & & & & & reactant1, reactant2, product1, product2, product3,
& & & & & & & & & & & & & & & & &alpha, &beta, &gamma, &reaction_type, &reaction_no) == 10)
& & & & & & & & & & & & || (sscanf (line, &%s + %s -& %s + %s + %s + %s %lf %lf %lf %d %d&,
& & & & & & & & & & & & & & & & reactant1, reactant2, product1, product2, product3, product4,
& & & & & & & & & & & & & & & & &alpha, &beta, &gamma, &reaction_type, &reaction_no) == 11)
& & & & & & & & & & & & || (sscanf (line, &%s + %s + %s -& %s + %s %lf %lf %lf %d %d&,
& & & & & & & & & & & & & & & & reactant1, reactant2, reactant3, product1, product2,
& & & & & & & & & & & & & & & & &alpha, &beta, &gamma, &reaction_type, &reaction_no) == 10))
& & & & & & & & & & & & ;
& & & & & & & & else
& & & & & & & & {
& & & & & & & & & & & & input_error (chem_file, line_number);
& & & & & & & & }
& && &/* Ignore the following species: cosmic-ray, uv-photon,
& & & &&&photon. Replace them by an empty string, and re-sort
& & & &&&species. */
& & & & & & & & if ((strcmp (reactant1, &cosmic-ray&quot == 0)
& & & & & & & & & & & & || (strcmp (reactant1, &uv-photon&quot == 0)
& & & & & & & & & & & & || (strcmp (reactant1, &photon&quot == 0))
& & & & & & & & {
& & & & & & & & & & & & strcpy (reactant1, reactant2);
& & & & & & & & & & & & strcpy (reactant2, reactant3);
& & & & & & & & & & & & strcpy (reactant3, &&
& & & & & & & & }
& & & & & & & & if ((strcmp (reactant2, &cosmic-ray&quot == 0)
& & & & & & & & & & & & || (strcmp (reactant2, &uv-photon&quot == 0)
& & & & & & & & & & & & || (strcmp (reactant2, &photon&quot == 0))
& & & & & & & & {
& & & & & & & & & & & & strcpy (reactant2, reactant3);
& & & & & & & & & & & & strcpy (reactant3, &&
& & & & & & & & }
& & & & & & & & if ((strcmp (reactant3, &cosmic-ray&quot == 0)
& & & & & & & & & & & & || (strcmp (reactant3, &uv-photon&quot == 0)
& & & & & & & & & & & & || (strcmp (reactant3, &photon&quot == 0))
& & & & & & & & {
& & & & & & & & & & & & strcpy (reactant3, &&
& & & & & & & & }
& & & & & & & & if ((strcmp (product1, &cosmic-ray&quot == 0)
& & & & & & & & & & & & ||(strcmp (product1, &uv-photon&quot == 0)
& & & & & & & & & & & & || (strcmp (product1, &photon&quot == 0))
& & & & & & & & {
& & & & & & & & & & & & strcpy (product1, product2);
& & & & & & & & & & & & strcpy (product2, product3);
& & & & & & & & & & & & strcpy (product3, &&
& & & & & & & & }
& & & & & & & & if ((strcmp (product2, &cosmic-ray&quot == 0)
& & & & & & & & & & & & || (strcmp (product2, &uv-photon&quot == 0)
& & & & & & & & & & & & || (strcmp (product2, &photon&quot == 0))
& & & & & & & & {
& & & & & & & & & & & & strcpy (product2, product3);
& & & & & & & & & & & & strcpy (product3, &&
& & & & & & & & }
& & & & & & & & if ((strcmp (product3, &cosmic-ray&quot == 0)
& & & & & & & & & & & & || (strcmp (product3, &uv-photon&quot == 0)
& & & & & & & & & & & & || (strcmp (product3, &photon&quot == 0))
& & & & & & & & {
& & & & & & & & & & & & strcpy (product3, &&
& & & & & & & & }
& & & & & & & & if ((strcmp (product4, &cosmic-ray&quot == 0)
& & & & & & & & & & & & || (strcmp (product4, &uv-photon&quot == 0)
& & & & & & & & & & & & || (strcmp (product4, &photon&quot == 0))
& & & & & & & & {
& & & & & & & & & & & & strcpy (product4, &&
& & & & & & & & }
& && &/* Fill the array of species. */
& & & & & & & & add_specie (reactant1, species, n_species);
& & & & & & & & add_specie (reactant2, species, n_species);
& & & & & & & & add_specie (reactant3, species, n_species);
& & & & & & & & add_specie (product1, species, n_species);
& & & & & & & & add_specie (product2, species, n_species);
& & & & & & & & add_specie (product3, species, n_species);
& & & & & & & & add_specie (product4, species, n_species);
& && &/* Fill the array of reactions. Exit if of the reactant and
& & & &&&product is not in the specie array. */
& & & & & & & & if (*n_reactions & MAX_REACTIONS)
& & & & & & & & {
& & & & & & & & & & & & if (((reactions[*n_reactions].reactant1 =
& & & & & & & & & & & & & & & & specie_index (reactant1, species, *n_species)) == -2)
& & & & & & & & & & & & & & & & || ((reactions[*n_reactions].reactant2 =
& & & & & & & & & & & & & & & & & & & & specie_index (reactant2, species, *n_species)) == -2)
& & & & & & & & & & & & & & & & || ((reactions[*n_reactions].reactant3 =
& & & & & & & & & & & & & & & & & & & & specie_index (reactant3, species, *n_species)) == -2)
& & & & & & & & & & & & & & & & || ((reactions[*n_reactions].product1 =
& & & & & & & & & & & & & & & & & & & & specie_index (product1, species, *n_species)) == -2)
& & & & & & & & & & & & & & & & || ((reactions[*n_reactions].product2 =
& & & & & & & & & & & & & & & & & & & & specie_index (product2, species, *n_species)) == -2)
& & & & & & & & & & & & & & & & || ((reactions[*n_reactions].product3 =
& & & & & & & & & & & & & & & & & & & & specie_index (product3, species, *n_species)) == -2)
& & & & & & & & & & & & & & & & || ((reactions[*n_reactions].product4 =
& & & & & & & & & & & & & & & & & & & & specie_index (product4, species, *n_species)) == -2))
& & & & & & & & & & & & {
& & & & & & & & & & & & & & & & fprintf (stderr, &astrochem: %s:%d: can't find specie index.\n&,
& & & & & & & & & & & & & & & & & & & & & & & & __FILE__, __LINE__);
& & & & & & & & & & & & & & & & exit(1);
& & & & & & & & & & & & }
& & & & & & & & & & & & reactions[*n_reactions].alpha =
& & & & & & & & & & & & reactions[*n_reactions].beta =
& & & & & & & & & & & & reactions[*n_reactions].gamma =
& & & & & & & & & & & & reactions[*n_reactions].reaction_type = reaction_
& & & & & & & & & & & & reactions[*n_reactions].reaction_no = reaction_
& & & & & & & & & & & & (*n_reactions)++;
& & & & & & & & }
& & & & & & & & else
& & & & & & & & {
& & & & & & & & & & & & fprintf (stderr, &astrochem: error: the number of reactions exceed %i.\n&,
& & & & & & & & & & & & & & & & & & & & MAX_REACTIONS);
& & & & & & & & & & & & exit(1);
& & & & & & & & }
& & & & if (verbose &= 1)
& & & & & & & & fprintf (stdout, &done.\n&&&
& & & & & & & & fprintf (stdout, &Found %d reactions involving %d species.\n&,
& & & & & & & & & & & & & & & & *n_reactions, *n_species);
&&/* Close the file. */
& & & & fclose (f);
&&Add a specie in the species array, if not already present.
add_specie (char *new_specie, char *species[],
& & & & & & & & & & & & int *n_species)
& & & & if (strcmp (new_specie, &&quot == 0)
& & & & & & & &
& & & & for (i = 0; i & *n_ i++)
& & & & & & & & if (strcmp (species, new_specie) == 0)
& & & & & & & & & & & &
& & & & i = *n_
& & & & if (i & MAX_SPECIES)
& & & & & & & & if ((species = malloc (sizeof (char) * MAX_CHAR_SPECIES)) == NULL)
& & & & & & & & {
& & & & & & & & & & & & fprintf (stderr, &astrochem: %s:%d: %s\n&, __FILE__, __LINE__,
& & & & & & & & & & & & & & & & & & & & &array allocation failed.\n&
& & & & & & & & & & & & exit (1);
& & & & & & & & }
& & & & & & & & if (strlen (new_specie) & MAX_CHAR_SPECIES - 1)
& & & & & & & & {
& & & & & & & & & & & & strcpy (species, new_specie);
& & & & & & & & & & & & (*n_species)++;
& & & & & & & & }
& & & & & & & & else
& & & & & & & & {
& & & & & & & & & & & & fprintf (stderr, &astrochem: error: the number of characters of some &
& & & & & & & & & & & & & & & & & & & & &species of the chemical network file exceeds %i.\n&,
& & & & & & & & & & & & & & & & & & & & MAX_CHAR_SPECIES);
& & & & & & & & & & & & exit (1);
& & & & & & & & }
& & & & else
& & & & & & & & fprintf (stderr, &astrochem: error: the number of species in the chemical&
& & & & & & & & & & & & & & & & &network file exceeds %i.\n&, MAX_SPECIES);
& & & & & & & & exit (1);
&&Look up the index of a given specie in the species array.
int specie_index (const char *specie, char *species[], int n_species)
&&/* Return -1 if the specie name is empty. */
& & & & if (strcmp (specie, &&quot == 0)
& & & & & & & & return -1;
& & & & for (i = 0; i & n_ i++)
& & & & & & & & if (strncmp (species, specie, sizeof (char) * MAX_CHAR_SPECIES) == 0)
& & & & & & & & {
& & & & & & & & & & & &
& & & & & & & & }
&&/* Return -2 if we can not find the specie */
& & & & return -2;
估计很难有人回应,你应该自己先看懂然后问大家你不懂的部分,这么贴一大段程序,估计很难有人能回答你
引用回帖:: Originally posted by ll550 at
估计很难有人回应,你应该自己先看懂然后问大家你不懂的部分,这么贴一大段程序,估计很难有人能回答你 有三分之二的是在判断。你肯定没有看。需要理解只有一点点
引用回帖:: Originally posted by
有三分之二的是在判断。你肯定没有看。需要理解只有一点点... 一个普通程序员按200/天,看这么长程序的成本是很大的
#include &config.h&
#endiflm,[ 这句是有问题的,不符合C语言的要求
至少得保证你复制的程序是可靠的!可靠的!可靠的!(重要的事情说三遍)
总的来说,就是把文件按指定格式解析成结构体,就是数据格式化!
既然楼主说,需要理解的只有一点点,那到底是哪一点点楼主不理解,
24小时热帖
下载小木虫APP
与700万科研达人随时交流2017年会 -->
我是做美妆的,但是有一家店我留意很久了,真的很神奇,没看到有什么搜索词,也没有看到有开直通车,但是每次进店看单品在线人数都是上万,目前只知道之前他有做过一次淘抢购,当时每次进店看这款单品时在线人数都是两万以上,不知道谁知道他是怎么做到的给指教一下?难道在线人数都是用搞的虚假流量?可以实际销量在那里啊,而且他在跟我们在同个地方的,听认识的人说那个店每天发件至少四千单,一个月赚上百万真的是小意思,真的是太神奇了
淘客吧,或者站外活动
淘宝客 Q群快速秒单 &砸钱玩的
网红视频直播
这种要么淘客要么就是网红店
网红直播应该不可能吧,每次进去都有上万人,已经维持了快一个月了,刚才又去看了下,12000多人
网红视频直播
是每时每刻都有上万的在线人数啊
你复制标题搜下,综合权重很低,只有销量权重,能做销量的无非淘客,直播等平台。
淘客~打造爆款就是这样,日过千单的很多~
网红直播在线人数也高啊
粉丝经济,典型的,看看他/她的微博吧,可能很活跃
看了下,淘客历史最高3%,无鹊桥佣金,当前在线人数1.5W+,各种无展现,同问,这是怎么做到的?难道是店家自有自媒体引流?如果说是做的淘客,这么低佣金怎么做?还是不走淘宝,私下谈的比例?
没有找到他的微博,而且他只是这款火爆,第二销量的有在开车,在线人数也没有第一款那么多
粉丝经济,典型的,看看他/她的微博吧,可能很活跃
有个毛用 单价这么低 淘客随便跑
现在找到破解的方法了吗?我身边也有这么一个人,以前最多也就100来票,今年下半年开始,每天至少500票,我查了他宝贝,在线人数没有低于2000,淘宝展现不到10个词
没有找到他的微博,而且他只是这款火爆,第二销量的有在开车,在线人数也没有第一款那么多
没有啊,真不知道是怎么做到的
现在找到破解的方法了吗?我身边也有这么一个人,以前最多也就100来票,今年下半年开始,每天至少500票,我查了他宝贝,在线人数没有低于2000,淘宝展现不到10个词
淘客;没商品连接没法确定其手法;一般来说因该是这样的;走的淘客推广,高额定向单品优惠券。至于是纯亏走量,还是用拍X发B的手法就不得而知了。还有可能就是微博公众号自媒体带来的流量。
@你关注的人或派友
亲,先登录哦!
请输入姓名:
请输入对方邮件地址:
您的反馈对我们至关重要!→ 为什么啊!!这是为什么,谁能帮我,看下这
为什么啊!!这是为什么,谁能帮我,看下这
健康咨询描述:
为什么啊!!这是为什么,谁能帮我,看下这个正常吗?
其他类似问题
医生回复区
擅长: 感冒,支气管,肺炎,腹泻,手足口病,湿疹,口腔溃疡
微信扫描关注直接与我沟通已扫7549次
&&&&&&病情分析:&&&&&&你好,从你的图片上来看是属于正常的阴茎,请不用担心。&&&&&&指导意见:&&&&&&因为你的阴茎长度和直径都属于正常的,如果没有其他不适症状就没关系的,不需要治疗的,希望你不要太担心。
您可能关注的问题
用药指导/吃什么药好
本品用于湿热瘀滞所致的带下病。...
参考价格:¥28
本品用于跌打损伤,跖骨、趾骨骨折,瘀血肿痛,吐血...
参考价格:¥17.5
您好,虽然我们的工作人员都在竭尽所能的改善网站,让大家能够非常方便的使用网站,但是其中难免有所疏漏,对您造成非常不必要的麻烦。在此,有问必答网向您表示深深的歉意,如果您遇到的麻烦还没有解决,您可以通过以下方式联系我们,我们会优先特殊解决您的问题。
请选择投诉理由
涉嫌广告宣传
无意义提问
非医学类咨询
违背伦理道德
其他投诉理由
涉嫌广告宣传
无意义回复
违背伦理道德
复制粘贴内容
常识性错误
其他投诉理由
如遇紧急情况,请致电400-谁能帮我下,谢谢了!!
本回答由提问者推荐
var sogou_ad_id=731547;
var sogou_ad_height=160;
var sogou_ad_width=690;}

我要回帖

更多关于 安茜为什么帮玉莹 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信