Search:

Type: Posts; User: carisma36

Search: Search took 0.00 seconds.

  1. Thread: need nelp

    by carisma36
    Replies
    8
    Views
    1,054

    Here is my Code as of now: ifstream...

    Here is my Code as of now:


    ifstream in("input.txt");
    ofstream out("output.txt");


    string line;
    string octet1;
    string octet2;
  2. Thread: need nelp

    by carisma36
    Replies
    8
    Views
    1,054

    OK it has been taken out but it still does not...

    OK it has been taken out but it still does not read in anything more than the first line
  3. Thread: need nelp

    by carisma36
    Replies
    8
    Views
    1,054

    I don't understand your first sentence. I put...

    I don't understand your first sentence. I put the statement
    int i = 0 in the inner loop.
  4. Thread: need nelp

    by carisma36
    Replies
    8
    Views
    1,054

    need nelp

    I have a program that takes in ip addresses and breaks them up into 4 octets which are strings. Then I convert them into integers. I am having a problem with running the loop to take in each...
  5. Thread: Error C2664

    by carisma36
    Replies
    1
    Views
    2,585

    Error C2664

    I am trying to convert the strings into inegers in this code:


    string line;
    string oct1;
    string oct2;
    string oct3;
    string oct4;

    int i = 0;
  6. Replies
    7
    Views
    1,833

    I formatted the code better, Sorry.

    I formatted the code better, Sorry.
  7. Replies
    7
    Views
    1,833

    while(! in.eof() ) { string line = "";...

    while(! in.eof() )
    {
    string line = "";
    getline(in,line);

    int i = 0;

    while(line[i] != '.')
    {
    oct1 = oct1 + line[i];
  8. Replies
    7
    Views
    1,833

    Im using a getline with a '.' as the delimiter...

    Im using a getline with a '.' as the delimiter but I don't know how to get the rest of the ip address.

    I can get the first octant but not the other 3
  9. Replies
    7
    Views
    1,833

    infile String

    hey guys,
    I have a question to ask

    I am going to take in a file with a list of ip addresses


    ex 130.5.3.6
    128.10.5.0

    i need a way to take in the entire line then break up the string...
Results 1 to 9 of 9