jeudi 26 décembre 2019

How to use ascii code of argv while making a conditional statement?

I'm a beginner. So i'm trying to make to conditional statement to make sure that argv is a positive int. For that I need ascii code of argv[1]. And I was planning to make an if condition statement which will be executed only if argv[1]/ascii codes of 0-9 is 1.

Aucun commentaire:

Enregistrer un commentaire