Results 1 to 6 of 6
Thread: ++
Hybrid View
-
15th March 2011 11:59 #1Registered User
Join Date: Jan:2009
Location:
Posts: 16
++
, , , . ...
Write a program that inputs a positive integer i, then inputs a text file, and outputs in reverse order the characters placed on the i-th line. If there is no such line output a space.
, ....
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
fstream in_stream;
in_stream.open("input.txt");
while (!in_stream.eof())
{
string line;
in_stream.getline(line);
cout<<line<<endl;
}
in_stream.close();
return 0;
}
!!!
-
15th March 2011 13:43 #2
, !
UD3R|Q9550+1283|4x2 G.Skill@1066|MX500+1002FAEX+640AAKS+ST31 60|RX580-8GB|1841BLT|SS-760XP|Define7|z24i|Edifier S350DB
geniusloci: ) ; ) ; ) ?
nope|r.i.p.
-
15th March 2011 17:54 #3Registered User
Join Date: Jan:2005
Location: BG
Posts: 4,903
, i, ? , eol?
, , ... ...
-
16th March 2011 00:24 #4Registered User
Join Date: Dec:2007
Location: Sofia
Posts: 366
? 2/3/N- , .
-
16th March 2011 06:51 #5Game programmer
Join Date: Feb:2007
Location:
Posts: 1,948
-
16th March 2011 10:10 #6Registered User
Join Date: Jan:2005
Location: BG
Posts: 4,903
, ,
, chracter , - , :. ? , ...
, , ... ...




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in