科目名稱:資訊系統 與網路導論 | 開課系所:資訊工程 學系 | 任課教師 |
吳坤熹 |
||
系所別: |
年級: |
學號: |
姓名: |
考試日期 |
2007.12.25 |
(考試時間: 8:10-8:20)
#include <iostream>
using std::cout;
using std::endl;
int main()
{
int value = 100;
int* pvalue = &value;
cout << value+*pvalue << endl;
}
#include <iostream>
using std::cout;
using std::endl;
int main()
{
int vector[] = {1, 10, 100, 1000, 10000};
int* pvector = vector;
*(pvector) = *pvector + 1;
*(pvector + 1) = *pvector + 2;
*(pvector + 2) = *(pvector + 3);
for (int i=0; i<5; i++)
cout << vector[i] << endl;
}