Created
January 27, 2013 03:16
-
-
Save ivancp/4646062 to your computer and use it in GitHub Desktop.
Nilcer, usa este programa como plantilla, por que te vas a demorar en hacer el programa para que reciba el input
This file contains hidden or 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> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <map> | |
using namespace std; | |
int main(int argc, char** argv) | |
{ | |
char* line = new char[501]; | |
int lines, n = 1; | |
cin>>lines; | |
while(cin.getline(line,500)) | |
{ | |
if(strlen(line) < 2) | |
continue; | |
cout<<"Case #"<<n++<<":"<<line<<endl; | |
} | |
delete line; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment