[問題] Declaration syntax error in funtion main{}
錯誤訊息:
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Ex2_01.cpp:
Error E2141 Ex2_01.cpp 9: Declaration syntax error in function main()
Warning W8004 Ex2_01.cpp 16: 'stm' is assigned a value that is never used in function main()
*** 1 errors in Compile ***
程式碼:
//儲存名稱:D:\Borland\C++02\Ex2_01.cpp
#include <iostream.h>
void main(void)
{
char stm[] = "******"
cout << stm << endl
<< stm << endl
<< stm << endl
<< stm << endl
<< stm << endl
<< stm << endl
<< stm << endl;
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.115.233.20
→
05/16 20:45, , 1F
05/16 20:45, 1F
→
05/16 21:07, , 2F
05/16 21:07, 2F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章