iLMS
知識社群
歷程檔
Login
中文(台灣)
English(US)
Q&A
Online Users:
113
線上 Q&A
如有搜尋不到的疑問,請於討論區發表詢問
Tools
Activities (Announcements)
Teaching Materials
(21)
Wiki
Course Information
Calendar
Forums
(444)
Teams
Open Notes
Assignments
Survey
(2)
Quizzes
(2)
Latest Discussion
re: 20230923這陣子覺得連線速度很慢
(09-25)
re: 最近發表文章都會出現錯誤
(03-19)
re: 課程全部不見
(02-26)
106年度下學期的歷年課程檔案學習資料全部不見了
(07-07)
re: 每天歷程檔都會變成關狀態
(06-20)
...More
Course Discription
Guests: 205523
Articles: 27
Comments: 444
Free Quota:
1.6 GB
(2 GB)
Instructor:
系統管理者
TA:
施銘亮
, 陳美鐘
Guest Access: Allow guests
Position:
線上 Q&A
>
Forums
>
Discussion
線上測驗題目長度或特殊符號問題。
(
楊展耀
,
shade@mail.hit.edu.tw
, 2010-03-17 11:46)
1
線上測驗題目輸入時,會截斷太長的問題,請問可以修正嗎?(大約7行後會被截斷)
也有可能是 "<<" 這個符號的問題。
目前我的作法
1.輸入後用修改,修改不會截斷問題。
2.用題組方式
附錄:被截斷程式
#include <iostream>
using namespace std;
int main()
{
int a = 1;
int b = 0;
cout << "short int型態的大小為" << sizeof(short int) <<"byte。\n";
cout << "int型態的大小為" << sizeof(int) << "byte。\n";
cout << "long int型態的大小為" << sizeof(long int) << "byte。\n";
cout << "float型態的大小為" <<sizeof(double) <<"byte。\n";
cout << "double型態的大小為" <<sizeof(long double) << "byte 。\n";
cout << "變數a的大小為" << sizeof(a) << "byte 。\n";
cout << "運算式a+b的大小為" << sizeof(a+b) << "byte。\n";
return 0;
}
附件2:截斷後程式
#include <iostream>
using namespace std;
int main()
{
int a = 1;
int b = 0;
cout
Copyright 2011 修平科技大學. All rights reserved.
圖書資訊處-系統網路組維護
using namespace std;
{
int a = 1;
int b = 0;
cout << "short int型態的大小為" << sizeof(short int) <<"byte。\n";
cout << "int型態的大小為" << sizeof(int) << "byte。\n";
cout << "long int型態的大小為" << sizeof(long int) << "byte。\n";
cout << "float型態的大小為" <<sizeof(double) <<"byte。\n";
cout << "double型態的大小為" <<sizeof(long double) << "byte 。\n";
cout << "變數a的大小為" << sizeof(a) << "byte 。\n";
cout << "運算式a+b的大小為" << sizeof(a+b) << "byte。\n";
return 0;
}
using namespace std;
{
int a = 1;
int b = 0;
cout