Search:

Type: Posts; User: neogst

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    2,001

    Here is my code. Second if statement fails

    #include<cstdio>
    #include<cstdlib>
    #include<vector>
    #include<string>
    #include<iostream>
    #include<sstream>
    #include<cmath>
    using namespace std;

    main() {
  2. Replies
    4
    Views
    2,001

    stringstream Help...

    Hello all-

    I need to take the first few lines on standard input and print it out. However, I need to check them against some conditions. I have stored the first line in a string vector and then...
  3. Replies
    2
    Views
    1,335

    Standard in can be re routed.

    Standard in can be re routed.
  4. Replies
    2
    Views
    1,335

    Standard input---Help!

    Hello all-

    I am writing a program that reads from standard input. I need to take the first line from the input and print it out. Then take the second line and print it out, etc. I am stuck on how...
  5. Replies
    5
    Views
    6,636

    Actually, I figured out how I wanted to read in...

    Actually, I figured out how I wanted to read in the file. I just used a while loop and getline and stored the information in a string. How can I take the first few lines from my input and print them...
  6. Replies
    5
    Views
    6,636

    Well, I will be running on it several different...

    Well, I will be running on it several different files from the command line. Example: ./a.out < something.pgm and somethingelse.pgm.
    So I was thinking of fscanf or sscanf. Or if fstream will work...
  7. Replies
    5
    Views
    6,636

    C++ Read PGM file

    Hello everyone,

    I am attempting to read a PGM file on standard input and print out the number of rows and columns that exist. I know that the file format begins with P2 and the next lines in the...
Results 1 to 7 of 7