int main(int argc, char **argv)
{
	
	cout << "arguments passed to main() : " << endl;
	for (size_t i = 0; i < argc; i++)
	{
		cout << argv[i] << endl;
	}

	cout << endl;
	system("pause");
	return 0;
}

  cmd命令行给main传参数

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-02-10
  • 2022-01-10
  • 2021-08-18
  • 2021-07-19
猜你喜欢
  • 2022-02-14
  • 2021-12-19
  • 2021-07-15
  • 2021-07-07
  • 2021-08-30
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案