How to convert a command-line argument to int?

前端 未结 7 1933
难免孤独
难免孤独 2020-12-01 03:18

I need to get an argument and convert it to an int. Here is my code so far:

#include 


using namespace std;
int main(int argc,int argvx[]) {         


        
7条回答
提交回复
热议问题