Search:

Type: Posts; User: jujubeats

Search: Search took 0.01 seconds.

  1. Thread: read lines

    by jujubeats
    Replies
    18
    Views
    2,223

    oh well i got the part for reading the number of...

    oh well i got the part for reading the number of lines... I just modified the small code I typed...however i couldnt display it properly on the output file...but I just thought it was enough bugging...
  2. Thread: read lines

    by jujubeats
    Replies
    18
    Views
    2,223

    i got it ...thanx =)

    i got it ...thanx =)
  3. Thread: read lines

    by jujubeats
    Replies
    18
    Views
    2,223

    this is the part i was trying to implement...

    this is the part i was trying to implement unsuccesfully:



    string t;
    int lineCount=0;

    while(getline(file_op, t, '\n'))
    ++lineCount;
  4. Thread: read lines

    by jujubeats
    Replies
    18
    Views
    2,223

    I apologize heres what my code looks like ...

    I apologize heres what my code looks like



    #include "stdafx.h"
    #include <fstream>
    #include <iostream>
    using namespace std;

    int main()
  5. Thread: read lines

    by jujubeats
    Replies
    18
    Views
    2,223

    thanx im trying to but i think im using it as...

    thanx

    im trying to but i think im using it as to read from the keyboard instead of my file thats why its not working
  6. Thread: read lines

    by jujubeats
    Replies
    18
    Views
    2,223

    its just a series of matrices instead of cat...

    its just a series of matrices

    instead of cat and dog

    its more like

    000
    010
    100
    111
  7. Thread: read lines

    by jujubeats
    Replies
    18
    Views
    2,223

    well sticking to words instead of binary inputs ...

    well sticking to words instead of binary inputs

    lets say I have

    dogs
    cats
    plane
    fish

    i already opened the file I just need to put a subroutine to count
  8. Thread: read lines

    by jujubeats
    Replies
    18
    Views
    2,223

    oh no scanf is the same as cin

    oh no scanf is the same as cin
  9. Thread: read lines

    by jujubeats
    Replies
    18
    Views
    2,223

    the file only contains binary inputs so scanf...

    the file only contains binary inputs

    so scanf would be also a good resource?
  10. Thread: read lines

    by jujubeats
    Replies
    18
    Views
    2,223

    i was on the correct path using the getline but i...

    i was on the correct path using the getline but i havent been able so far let me keep on trying

    thanx
  11. Thread: read lines

    by jujubeats
    Replies
    18
    Views
    2,223

    read lines

    Is there a simple code or function I can implement into my code to read the number of lines in a given file?


    thanx


    jujubeats
  12. Replies
    9
    Views
    1,576

    thanx dave..you didnt have to take the time and...

    thanx dave..you didnt have to take the time and work on my program....

    i greatly appreciate it

    I owe you lunch

    juju
  13. Replies
    9
    Views
    1,576

    well it gave me 4 adresses in matrix order but...

    well it gave me 4 adresses in matrix order but ill keep on moving it around to see if it works
  14. Replies
    9
    Views
    1,576

    yes it actually holds for the simplified...

    yes it actually holds for the simplified version...it should hold for the "more complex matrix" i initially though i had to mess with main or do something like:




    void main(int n,int i,int j);
  15. Replies
    9
    Views
    1,576

    thanx let me try that juju

    thanx let me try that


    juju
  16. Replies
    9
    Views
    1,576

    I over simplified the array by giving it a simpe...

    I over simplified the array by giving it a simpe 1,2,3,4 input and it still gives me
    a similar address like output...

    juju
  17. Replies
    9
    Views
    1,576

    so it would be something like: . . ....

    so it would be something like:




    .
    .
    .
    .
  18. Replies
    9
    Views
    1,576

    help to display an array

    Im working on a program that will esentially open a file read it and output the info on a new file. The contents of the file is simply an array...so i start by declaring the array however when i want...
Results 1 to 18 of 19