GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — RG_dataSetCode1/code.cpp at master · ron352/RG_dataSetCode1

Expand file tree

/

code.cpp

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
67 lines (54 loc) · 1.37 KB
/

code.cpp

Copy path

File metadata and controls

67 lines (54 loc) · 1.37 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#include <bits/stdc++.h>
using namespace std ;
string line_parser(string str)
{
string ret = "";
bool nonEmpty = 0;
for(int i = 1; i < str.size(); i++){
if(str[i] == ' ' or str[i] == '\t' and nonEmpty){
ret += str[i] ;
}
else if(str[i] == ' ' or str[i] == '\t') {
continue;
}
else {
nonEmpty = 1;
ret += str[i] ;
}
}
return ret;
}
int main()
{
ifstream in;
ofstream out;
in.open("ss.txt");
out.open("sample.txt");
string line1,line2,line3, outstring = "";
if(in.fail())
{
cout<<"your file didn't work";
}
else {
while(getline(in,line1)){
string conc = "";
//cout << line_parser(line1) << endl;
getline(in,line2);
line2.erase(0,20) ;
getline(in,line3);
//if()
line1 = line_parser(line1);
line2 = line_parser(line2);
line3 = line_parser(line3);
conc = line1 +"###"+ line2 +"###" +line3;
//cout << line1 << endl;
if(line3 != "No Post Title"){
out<< conc << endl;
}
getline(in,line3);
}
in.close();
out.close();
}
return 0;
}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.