[問題] c++超級新手的問題
第一天看就碰到問題@@
我是用dev 5.0
我把螞蟻書上的第一個範例打一次
然後按執行
可是命令提示字源只有跳出來一下下 不到1秒吧
然後又消失了
請問是什麼問題呢?
程式碼是:
//FIG. 2.1: fig02_01.cpp
//text-printing program
#include<iostream>//allows program to output data to the screen
//function main begins program execution
int main()
{
std::cout<< "welcome to c++!\n";//display message
return 0 ; // indicate that program ended succesfully
}//end function main
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 58.114.133.26
推
04/24 22:00, , 1F
04/24 22:00, 1F
推
04/24 22:12, , 2F
04/24 22:12, 2F
→
04/24 22:19, , 3F
04/24 22:19, 3F
推
04/24 22:26, , 4F
04/24 22:26, 4F
→
04/24 22:34, , 5F
04/24 22:34, 5F
推
04/24 22:36, , 6F
04/24 22:36, 6F
→
04/25 11:52, , 7F
04/25 11:52, 7F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章