Announcement

Collapse
No announcement yet.

Nonformatted iostream

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Nonformatted iostream

    PHP Code:
    //
    //  main.cpp
    //  Test
    //
    //  Created by Giovanni Di Grezia on 22/07/13.
    //  Copyright (c) 2013 Giovanni Di Grezia. All rights reserved.
    //
    //
    //
    //

    #include <iostream>
    #include <string>
    #include <exception>

    using namespace std;



        
    int main () {
          
            
    char container [5];
            
    int i;
            
            for (
    i=0;i<5;++i){
                *(
    container+i) = new char [100];
                
    cin.getline( *(container+i),99 );
                
                
    cout.write(*(container+i),cin.gcount() -1) << endl;
            }
            
            
            
            
            return 
    0;
        } 
    | VFX Artist, C++ Programmer, HW Overclocker | Web: xgiovio.com Email: xgiovio@gmail.com Twitter: @xgiovio
Working...
X

Google Profile


My name is Giovanni Di Grezia, but people call me xgiovio.

Here is my homepage:.

I'm a VFX Artist and Software Developer.

Giovanni Di Grezia