Created
April 29, 2011 00:17
-
-
Save phwd/947617 to your computer and use it in GitHub Desktop.
hoppity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main (int argc,char *argv[]) { | |
int line; | |
FILE * myfile; | |
if (argc ==1) | |
{ | |
return 0; | |
} | |
myfile = fopen(argv[1],"r"); | |
if(myfile == NULL) | |
{ | |
return 0; | |
} | |
fscanf(myfile,"%d",&line); | |
fclose(myfile); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment