Search:

Type: Posts; User: JizJizJiz

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    37
    Views
    21,333

    Perhaps I'm not explaining correctly - but I do...

    Perhaps I'm not explaining correctly - but I do actually want the actual carriage return (0xD) character. I have a function that does newline characters, now I just need it to do carriage return (and...
  2. Replies
    37
    Views
    21,333

    Yup, I am using binary mode to read the line.

    Yup, I am using binary mode to read the line.
  3. Replies
    37
    Views
    21,333

    Thanks bud.

    Thanks bud.
  4. Replies
    37
    Views
    21,333

    Ah, if getline() ignores line delimiters, that...

    Ah, if getline() ignores line delimiters, that may be why my original method isn't working...is there something else I should try using?
  5. Replies
    37
    Views
    21,333

    I think I'm confusing myself to death, and in the...

    I think I'm confusing myself to death, and in the process, everyone else too. I'm sorry :P. I kinda feel like an idiot now.

    So essentially, I'm writing a program that works on both Windows and...
  6. Replies
    37
    Views
    21,333

    Well, I parse the user's input. Say the user...

    Well, I parse the user's input. Say the user writes: "Line 1\c" - what I actually pass to the function that does the file searching is: "Line 1\r"

    I think this works, right?
  7. Replies
    37
    Views
    21,333

    The text file itself would have the actual new...

    The text file itself would have the actual new lines. So like, it would look just like what I posted above. However, say a customer wanted to search for a carriage return following a word, such as...
  8. Replies
    37
    Views
    21,333

    We're using it as the carriage return character....

    We're using it as the carriage return character. As I understand now, the C++ representation of character 13 is \r. In our program, the user would type "\c"

    Thanks.
  9. Replies
    37
    Views
    21,333

    Please forgive my awful explanation. So here it...

    Please forgive my awful explanation. So here it is, I'll attempt again:

    Essentially, I'm looking for occurrences of a particular string within a line. For example, imagine the following file:
    ...
  10. Replies
    37
    Views
    21,333

    Sorry :o.

    Sorry :o.
  11. Replies
    37
    Views
    21,333

    Bump :(.

    Bump :(.
  12. Replies
    37
    Views
    21,333

    Yeah, I should've done that in the previous post:...

    Yeah, I should've done that in the previous post:



    else if (contains[contains.size() - 2] == '\\' && contains[contains.size() - 1] == 'c')
    {
    string::size_type pos = contains.find("\\c");...
  13. Replies
    37
    Views
    21,333

    I did this, and it still didn't work :(.

    I did this, and it still didn't work :(.
  14. Replies
    37
    Views
    21,333

    Yup. I have this working for the \t tab...

    Yup. I have this working for the \t tab character, just not for the new lines.
  15. Replies
    37
    Views
    21,333

    Thanks guys. I'll take a look.

    Thanks guys. I'll take a look.
  16. Replies
    37
    Views
    21,333

    Thanks guys. I may be a bit dense here, but I'm...

    Thanks guys. I may be a bit dense here, but I'm not sure how I can implement that. Any leads?

    Thanks again.
  17. Replies
    37
    Views
    21,333

    Hm, are you sure? I'm looking at the table here...

    Hm, are you sure? I'm looking at the table here http://www.lookuptables.com/ and it seems like it's 15, 0xD?

    I just used \c as an example in the input. For example, it takes "1\c" as the input and...
  18. Replies
    37
    Views
    21,333

    Finding carriage returns (\c) in a line

    Hi all:

    I'm trying to write a few lines of code that will take a line of input and replace an instance of "\c" with the carriage return character 0xD, and then search a document for that line of...
  19. Replies
    3
    Views
    5,748

    Good point. That fixed it :o.

    Good point. That fixed it :o.
  20. Replies
    3
    Views
    5,748

    Wildcard string matching

    Hi:

    So I'm trying to match a string against a wildcard to see whether they match. I'm using a snippet found here: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1680&lngWId=3...
  21. Replies
    4
    Views
    1,993

    Awesome. Thanks bud.

    Awesome. Thanks bud.
  22. Replies
    4
    Views
    1,993

    Ah, that works. Good thinking. I'm going to...

    Ah, that works. Good thinking.

    I'm going to use that for now. However, I do recall a more elegant way of doing it (by formatting the number before printing, perhaps?). Just for my personal...
  23. Replies
    4
    Views
    1,993

    Printing a specific number of digits

    Hi all:

    Is it possible for an int to print a specific number of digits every time?

    For example:

    int x = 1;
    cout <<x <<endl; //should print 001

    x = 999;
  24. Replies
    20
    Views
    5,176

    It seems like I can't even try to treat every...

    It seems like I can't even try to treat every item inside a directory as a file and get the contents of the subdirectory using the stat header :(.
  25. Replies
    20
    Views
    5,176

    Hi all: I'm currently using the stat header,...

    Hi all:

    I'm currently using the stat header, and things look to be OK. One problem - it doesn't seem to recognize subdirectories as directories.

    For example, if we have C:\asdf\etc\dfg, asdf...
Results 1 to 25 of 55
Page 1 of 3 1 2 3