-
#include "string.h"
#include "ctype.h"
#include "stdio.h"
search(char pd[])
{FILE *fp;
int time=0,i=0,j=0,add[80],k=0,m;
char *ch,
str[900];
m=strlen(pd);
if((fp=fopen("haha.txt","r"))==NULL)
{
printf("cannot open this file\n");
exit(0);
}
for(;!feof(fp);i++)
{
str[i]=fgetc(fp);
if(tolower(str[i])==tolower(pd[k]))
{k++;
if(k==m)
if(!isalpha(i-m)&&!isalpha((str[i++]=fgetc(fp))))
{
time++;
add[j]=i-m+1;
j++;
k=0;
}
else k=0;
}
}
if(time)
{
printf("The time is:%d\n",time);
printf("The adders is:\n");
for(i=0;i
標簽:
查詢學會少年宮
上傳時間:
2016-12-29
上傳用戶:767483511
-
#include "string.h"
#include "ctype.h"
#include "stdio.h"
search(char pd[])
{FILE *fp;
int time=0,i=0,j=0,add[80],k=0,m;
char *ch,
str[900];
m=strlen(pd);
if((fp=fopen("haha.txt","r"))==NULL)
{
printf("cannot open this file\n");
exit(0);
}
for(;!feof(fp);i++)
{
str[i]=fgetc(fp);
if(tolower(str[i])==tolower(pd[k]))
{k++;
if(k==m)
if(!isalpha(i-m)&&!isalpha((str[i++]=fgetc(fp))))
{
time++;
add[j]=i-m+1;
j++;
k=0;
}
else k=0;
}
}
if(time)
{
printf("The time is:%d\n",time);
printf("The adders is:\n");
for(i=0;i<j;i++)
printf("%5d",add[i]);
if(i%5==0)
printf("\n");
getch();
fclose(fp);
}
else
printf("Sorry!cannot find the word(^_^)");
}
main()
{
char pd[10],choose='y';
int flag=1;
while(flag)
{printf("In put the word you want to seqarch:");
scanf("%s",pd);
search(strlwr(pd));
printf("\nWould you want to continue?(Y/N):");
getchar();
scanf("%c",&choose);
if((tolower(choose))=='n')
flag=0;
else flag=1;
}
printf("Thanks for your using!Bye-bye!\n");
getch();
}
標簽:
學生專用
上傳時間:
2016-12-29
上傳用戶:767483511
-
The version of CodeWarrior used in the ARM Development Suite
cannot export projects in makefile format. Manually producing
makefiles from CodeWarrior projects is not an easy task. The
aim of mcp2make is to make the conversion simpler and to require
substantially less effort.
mcp2make is supplied as a free-of-charge, unsupported utility.
標簽:
mcp2make
上傳時間:
2017-01-19
上傳用戶:zbxinu
-
The following sections profile many of the vendors in the NFV market. The individual profiles were created
through a collaborative effort between SDNCentral’s Research Team and the Vendor’s product experts.
SDNCentral worked under the assumption the information provided by the vendors was factual, auditing the
submissions only to remove unverifiable claims and hyperbole. Extended profiles can be viewed online.
While every attempt has been made to validate the capabilities listed in the profiles, SDNCentral advises end
users to verify the veracity of each claim for themselves in their actual deployment environments. SDNCentral
cannot be held liable for unexpected operations, damages or incorrect operation due to any inaccuracies listed
here. SDNCentral welcomes feedback and additional information from end users based on their real-world
experiences with the products and technologies listed. The SDNCentral research team can be reached at
標簽:
SDxCentral-Mega-NFV-Report
上傳時間:
2020-06-01
上傳用戶:shancjb
-
Before I can present design concepts or tactical wireless communications and network
challenges, I feel the need to mention the challenges of writing for a field where some
information is not available for public domain and cannot be included in this book’s context.
Another challenge is the use of military jargon and the extensive number of abbreviations
(and abbreviations of abbreviations!) in the field. Engineering books are naturally dry, and I
have attempted to make it light by presenting the concepts in layman’s terms before diving
into the technical details. I am structuring this book in such a way as to make it useful for
a specialized graduate course in tactical communications and networking, or as a reference
book in the field.
標簽:
Communications
Tactical
Networks
Wireless
and
上傳時間:
2020-06-01
上傳用戶:shancjb
-
Static electricity is the most ancient form of electricity known to humans. More
than 2000 years ago, the Greeks recognized the attraction between certain mate-
rials when they were rubbed together; indeed, the word electricity comes from
the Greek elektron, which means amber. During the seventeenth and eighteenth
centuries, several key experiments were conducted to understand and measure
static electricity. But the discovery of electromagnetism and its formidable break-
through has rapidly outgrown interest in static electricity. Even today, where
the industrial applications of static electricity are not insignificant, they cannot
compare with those of electromagnetism and electrodynamics.
標簽:
Understand
Discharge
Electro
Static
上傳時間:
2020-06-05
上傳用戶:shancjb
-
Electricity has been chosen as the most convenient and useful form of energy, due
to its ease of transportation over large distances and easy conversion to other
energy forms. The biggest inconvenience with electricity is that it cannot be stored
and must be utilized at the moment of generation. The storage of a large amount of
electrical energy is usually connected with its conversion to other types of energy,
which significantly reduces the efficiency of such processes. The aim of the power
system, often treated as the biggest and the most complex machine ever built, is to
deliver uninterruptible electric energy of demanded quality parameters to
consumers.
標簽:
Electromagnetic
Interference
Conducted
上傳時間:
2020-06-07
上傳用戶:shancjb
-
The field of cyber security, or information security, or information
assurance, depending on your preference, is an interdisciplinary one.
It is part computer science, part statistics, part psychology, part law,
and a part of many other fields. Moreover, any cyber security practi-
tioner needs to know what he or she is protecting and where to pri-
oritize. Just as someone should not spend $100 to protect something
worth $10, one cannot be blind to the other disciplines.
標簽:
Security
Smart
Grid
上傳時間:
2020-06-07
上傳用戶:shancjb
-
The electrical power grid is often referred to as one of the most complex man-
made systems on Earth. Its importance to all aspects of our daily lives, economic
stability, and national security cannot be overstated, and the need for an updated,
secure, resilient, and smarter power grid infrastructure is increasingly recognized
and supported by policy makers and market forces.
標簽:
Smart
Power
Grids
上傳時間:
2020-06-07
上傳用戶:shancjb
-
The purpose of this book is to present detailed fundamental information on a
global positioning system (GPS) receiver. Although GPS receivers are popu-
larly used in every-day life, their operation principles cannot be easily found
in one book. Most other types of receivers process the input signals to obtain
the necessary information easily, such as in amplitude modulation (AM) and
frequency modulation (FM) radios. In a GPS receiver the signal is processed
to obtain the required information, which in turn is used to calculate the user
position. Therefore, at least two areas of discipline, receiver technology and
navigation scheme, are employed in a GPS receiver. This book covers both
areas.
標簽:
Fundamentals_of_Global_Positionin
g_System_Receivers
上傳時間:
2020-06-09
上傳用戶:shancjb