新用户登入 登录
萌子岛 返回首页

低手的个人空间 https://www.dommdo.com/?1097067 [收藏] [复制] [RSS]

日志

Receiving Command-Line Arguments

已有 86 次阅读2012-10-31 16:04

#include <iostream>
using std::cout;
using std::endl;
int main(int argc, char* argv[])
{
cout << endl << “argc = “ << argc << endl;
cout << “Command line arguments received are:” << endl;
for(int i = 0 ; i <argc ; i++)
cout << “argument “ << (i+1) << “: “ << argv[i] << endl;
return 0;
}

路过

雷人

握手

鲜花

鸡蛋

全部作者的其他最新日志

评论 (0 个评论)

小黑屋|萌子岛

GMT+8, 2025-5-3 02:34 , Processed in 0.039211 second(s), 19 queries , Gzip On, MemCache On.

Copyright 2020  atollmoe©.a2.1.0 All rights reserved. 9+

Copyright 2009  supported by zhixuan© oeo© oko© All rights reserved.Thank you!

返回顶部