开发者

In how many ways we can take input values in C++? [closed]

开发者 https://www.devze.com 2023-01-07 15:25 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_JS百科 Closed 12 years ago.

How to take input values in C++, in how many ways we can take input values.? Please describe in brief with small examples


For a command line application, I think the best way is to use the command line arguments. For an GUI application build using some libarary you can always have forms. And the bad way would be to ask questions to user once the application start!


For console application you have two standard ways:

  1. Argument values.
  2. User input.


Cin >> likethis; :P

(Sorry.Couldn't control)

0

精彩评论

暂无评论...
验证码 换一张
取 消