【正文】
。s=Area(r1r2)。printf(“The area is %f”,s)。}//求結(jié)果//2********************************************* //函數(shù) int pare(int a,int b),定義為該函數(shù)的函數(shù)指針P:為_______________//3********************************************* includevoid sub(char*s,int num){int i ,j=num。char t。while(j1){for(i=0。i{if(s[i]{t=s[i]。s[i]=s[i+1]。s[i+1]=t。}}}}main(){char*s=“CEAeded”。sub(s,6)。printf(“%sn”,s)}//求結(jié)果//4**********************************************//交換兩個變量的值,不使用第三個變量,即a=3,b=5交換//后b=3,a=5unsigned char a=3,b=5。//5************************************************** define N 100void GetMemory1(char*p){p=(char*)malloc(sizeof(char)*N)。strcpy(p,“Have a good day!”)。}char*GetMemory2(void){char p[]=“Have a good day!”。return p。void main(void){char*str1=NULL,*str2=NULL。GetMemory1(str1)。GetMemory2(str2)。printf(“nstr1:%s”,str1)。printf(“nstr2:%s”,str2)。//6****************************************************** //構(gòu)造N個結(jié)點的單鏈表返回鏈表頭指針,要求鏈表中各結(jié)點順序//與結(jié)點數(shù)據(jù)輸入順序相反,例如輸入1,2,3,4,5,形成的鏈表為//head5 4 3 2 1 ,補充程序define N 10typedef struct Node{int data。struct Node*next。}NODE。int Get_Data(int i)。//定義省略Node*Create_u(){int i。NODE*p,*Head=NULL。for(i=0。i{VP=New NODE。PData=Get_Data(i)。________________。________________。return Head。}//7**********************************************//N個結(jié)點鏈表,每個結(jié)點中存放一個字符,判斷鏈表存放的字符是否//中心對稱,即a b c c b a或a b c b a,補充程序typedef struct Node{int data。struct Node*next。}NODE。bool Is_symmeic(NODE*head,*int n){char D[N]。int i,d。__________。for(i=0。i{D[i]=headdata。head=headnext。}if(__________){head=headnext。}while(head){_______________。if(D[i]!=headdata){return false。}head=headnext。}return true。}//8*************************************//str中只含有大寫和小寫字母函數(shù)change_move(char*str)將字符串中大寫改成*并//移到前面小寫后返回*的個數(shù)//如AabBdcYY改為*****abd,返回5int chang_move(char*str){int len,i,curstr=1。len=strlen(str)。for(i=len1。i=0。i){if(str[i]=39。A39。amp。amp。str[i]{str[i]=39。*39。if(cursor==1){cursor=i。}else if(cursori){_____________。str[i]=39。*39。_____________。}}return____________。}//9*********************************************** //求兩個字符串的第一個公共子串,并返回該子串//如:“a b c d e f g e h i” “a a c d e f * * g e h i”//第一個為“c d e f”。不許用strcmp()char*Maxf(char*str1,char*str2){}第五篇:某公司軟件工程師筆試題軟件工程師-筆試試題說明:不需要全部完成,做你懂的就可以。Java基礎(chǔ)1.Set、Map、List有什么異同?2.Abstract class和interface有什么區(qū)別?什么是基于接口編程?3.類C有4個方法mmmm4,其中mmm3使用synchronized聲明,m3還有static聲明,m4沒有特殊的聲明。當一個線程T1進入C的一個實例的m1方法后,另一線程T2能立刻進入另一個實例的mmmm4方法嗎?為什么?[高分] 4.String和StringBuffer區(qū)別,什么時候應(yīng)該使用StringBuffer?5.RuntimeException與一般異常(非RuntimeException的Exception)有何異同?Web(HTML, DOM, JavaScript, CSS)6.你平時有注意瀏覽器的兼容性嗎?簡述你知道的瀏覽器兼容性的例子。7.簡述iframe的特點、使用模式 8.你用過些什么javascript的框架? 9.你了解什么是SEO嗎?10. 怎樣的網(wǎng)頁適合做緩存?一個網(wǎng)頁怎樣才會被緩存?網(wǎng)頁緩存為什么重要? 11. 使用Cookie應(yīng)注意什么問題,什么時候適合用Cookie,什么時候不適合?JavaEE 12。說出Servlet的生命周期13。Forward和redirect的區(qū)別14。Jsp中動態(tài)include和靜態(tài)include的區(qū)別?15。不能往Session里面存儲太多太大的對象,為什么?16。Servlet里面,什么情況下會調(diào)用doGet()和doPost()?有什么區(qū)別數(shù)據(jù)庫17。寫一段數(shù)據(jù)庫查詢的JDBC或hibernate程序(select * from employee where empid=?”)(只要主要的代碼,把你認為“不可缺少”的語句寫上,但要完整)18。在SQL里面怎樣過濾重復(fù)的記錄?19。What is a “transaction”?Why are they necessary? 20。Trigger 有什么作用?21。What are stored procedures?How is it useful? 22。What is the advantage of using PreparedStatement?XML和WebService 23。Xml文檔定義有幾種形式?它們之間有何本質(zhì)區(qū)別? 24。What is the difference between SAX parser and DOM parser?OOAD和UML 25。What is an usecase? 架構(gòu)與框架