Skip to content

Instantly share code, notes, and snippets.

@ivancp
Created January 27, 2013 03:16
Show Gist options
  • Save ivancp/4646062 to your computer and use it in GitHub Desktop.
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
#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