Results 1 to 6 of 6

Thread: ++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered 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;
    }


    !!!

  2. #2
    System.gc()'s Avatar
    Join Date: Apr:2007
    Location: back in time
    Posts: 1,075
    , !
    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.

  3. #3
    Registered User
    Join Date: Jan:2005
    Location: BG
    Posts: 4,903
    , i, ? , eol?
    , , ... ...

  4. #4
    Registered User
    Join Date: Dec:2007
    Location: Sofia
    Posts: 366
    ? 2/3/N- , .

  5. #5
    Game programmer
    Join Date: Feb:2007
    Location:
    Posts: 1,948
    - .
    3700X | 3070Ti | 64GB RAM | 2TB SSD | Seasonic 750W | FD Define 7 Mini

  6. #6
    Registered User
    Join Date: Jan:2005
    Location: BG
    Posts: 4,903
    , , , chracter , - , :. ? , ...
    , , ... ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |