blob: ccecd7dc8b4ff3a75f0048a970b3fbf9ef5b21e0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#include <stdio.h>
#include <cs50.h>
//argc is argument count, ie how many arguments were given
//argv is an array of the arguments given
//argv[0] is the command that calls the script, ie ./greet
int main(int argc, string argv[])
{
printf("hello, %s\n", argv[1]);
}
|