程式語言/99身心 - 考試
By Rae
at 2013-03-11T21:53
at 2013-03-11T21:53
Table of Contents
#include <stdio.h>
int A(m,n,k)
int m,n;
int (*k)(int);
{ int i;
for (i =m ; i<=n; i++) printf(“%d\n”,(*k)(i));
}
int f(int s) { return (s*s);}
main (int argc, char **argv)
int f(int);
{ int x=3,y=9;
A(x,y,f);
Return(0);
}
這題有結果嗎~???
結果是什麼?
int A(m,n,k) 這是什麼意思~?
四、下列 C++語言程式,輸出結果為何?(15 分)
#include <iostream.h>
class Time{
public:
Time (int = 11, int =22, int = 33);
int hour;
int minute;
int second;};
Time:: Time (int hr, int min, int sec)
{ hour = hr;
minute = min;
second = sec;}
main(){
Time t1 (8);
cout << t1.hour << ' ' << t1.minute << ' ' << t1.second << endl;}
這題有輸出嗎~??
好像編譯不過?
--
int A(m,n,k)
int m,n;
int (*k)(int);
{ int i;
for (i =m ; i<=n; i++) printf(“%d\n”,(*k)(i));
}
int f(int s) { return (s*s);}
main (int argc, char **argv)
int f(int);
{ int x=3,y=9;
A(x,y,f);
Return(0);
}
這題有結果嗎~???
結果是什麼?
int A(m,n,k) 這是什麼意思~?
四、下列 C++語言程式,輸出結果為何?(15 分)
#include <iostream.h>
class Time{
public:
Time (int = 11, int =22, int = 33);
int hour;
int minute;
int second;};
Time:: Time (int hr, int min, int sec)
{ hour = hr;
minute = min;
second = sec;}
main(){
Time t1 (8);
cout << t1.hour << ' ' << t1.minute << ' ' << t1.second << endl;}
這題有輸出嗎~??
好像編譯不過?
--
Tags:
考試
All Comments
By Cara
at 2013-03-13T09:16
at 2013-03-13T09:16
By Daph Bay
at 2013-03-14T23:50
at 2013-03-14T23:50
By Faithe
at 2013-03-16T14:04
at 2013-03-16T14:04
By Noah
at 2013-03-21T07:46
at 2013-03-21T07:46
By Anonymous
at 2013-03-21T19:05
at 2013-03-21T19:05
By Linda
at 2013-03-25T00:48
at 2013-03-25T00:48
By Michael
at 2013-03-27T05:51
at 2013-03-27T05:51
By Valerie
at 2013-03-30T01:06
at 2013-03-30T01:06
Related Posts
考台北捷運可以帶計算機嗎
By Gary
at 2013-03-11T20:57
at 2013-03-11T20:57
有人也跟我一樣沒有收到初等的成績單嗎?
By Erin
at 2013-03-11T20:55
at 2013-03-11T20:55
張文忠字根辭典2012版
By Thomas
at 2013-03-11T20:33
at 2013-03-11T20:33
101年地特三等環科-微量毒性物質
By Callum
at 2013-03-11T20:28
at 2013-03-11T20:28
上榜者中 全職考上的有佔超過五成嗎
By Christine
at 2013-03-11T20:07
at 2013-03-11T20:07