CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: flex567

Page 1 of 11 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    1,306

    Re: Problems with casting

    in my example there would be no multiplication with these numbers.

    Do you want to say that there is no + operator for short?
  2. Replies
    4
    Views
    1,306

    Re: Problems with casting

    how can the result type be 'int' if both operands are short?
  3. Replies
    4
    Views
    1,306

    Problems with casting

    Why this code won't compile?


    int BitsPerSample = 16;


    short NumChannels = 1;

    short BlockAlign =...
  4. Replies
    4
    Views
    1,955

    Re: [android] Variable scope problem

    I think I understand: when doSomething2 gets the view (record Button) it creates the record object. When the view is passed again (stop buton) the recorder object is already destroyed??
  5. Replies
    4
    Views
    1,955

    Re: [android] Variable scope problem

    08-24 12:11:43.316 8041-8041/com.example.inputvoicerec E/AndroidRuntime﹕ FATAL EXCEPTION: main
    Process: com.example.inputvoicerec, PID: 8041
    java.lang.IllegalStateException: Could not...
  6. Replies
    4
    Views
    1,955

    [android] Variable scope problem

    I have this code snippet from android record audio app.
    I wonder why my app crashes when I press the stop button(see code) if: "MediaRecorder recorder = null;" is in position 1(see code) instead of...
  7. Thread: .xml to .txt

    by flex567
    Replies
    49
    Views
    6,936

    Re: .xml to .txt

    I think that first you have to make simple programs to be able to tackle complex ones.
  8. Thread: .xml to .txt

    by flex567
    Replies
    49
    Views
    6,936

    Re: .xml to .txt

    Why do you think that doesn't work, It is easily crack-able but my intention was to just write quickly a program that works .
  9. Replies
    11
    Views
    10,879

    Re: concat raw strings and string variable

    how do you know that R"(some rand string)" returns a pointer?

    what about this than?

    string s = R"(some rand string)" + "" + argv[4] + R"(some rand string1)"
  10. Replies
    11
    Views
    10,879

    Re: concat raw strings and string variable

    inside raw string is some random text with double quotes, double quotes are part of the string.
  11. Replies
    11
    Views
    10,879

    Re: concat raw strings and string variable

    raw string = some "rand string
  12. Replies
    11
    Views
    10,879

    Re: concat raw strings and string variable

    it has to be raw string

    string s = R"(some "rand string)" + argv[4] + R"(some "rand2 string1)";
  13. Replies
    11
    Views
    10,879

    concat raw strings and string variable

    Is this possible in c++:

    string s = R"(some rand string)" + argv[4] + R"(some rand string1)";

    if it isn't, what is the best way to do this?
  14. Thread: .xml to .txt

    by flex567
    Replies
    49
    Views
    6,936

    Re: .xml to .txt

    I already wrote the program.
    It is pretty much done.



    #include <iostream>
    #include <string>
    #include <fstream>
    #include <vector>
  15. Thread: .xml to .txt

    by flex567
    Replies
    49
    Views
    6,936

    Re: .xml to .txt

    yes
    just values between dates
    I didn't parse it for line breaks , the firefox and .xml convertet did it.
  16. Thread: .xml to .txt

    by flex567
    Replies
    49
    Views
    6,936

    Re: .xml to .txt

    It is assignment but not school assignment.
    which third party library?
  17. Thread: .xml to .txt

    by flex567
    Replies
    49
    Views
    6,936

    Re: .xml to .txt

    the only limitation there is is that I have to use just Standard library.
  18. Thread: .xml to .txt

    by flex567
    Replies
    49
    Views
    6,936

    Re: .xml to .txt

    I didn't put the line breaks, the software(Firefox/Total XML converter) did that for me.
  19. Thread: .xml to .txt

    by flex567
    Replies
    49
    Views
    6,936

    Re: .xml to .txt

    Isn't it easier to transform it into more lines ?
  20. Thread: .xml to .txt

    by flex567
    Replies
    49
    Views
    6,936

    Re: .xml to .txt

    I just want to parse the value( 1.3170), the user chooses the currency. And between 2 dates which user also picks.


    Do you want to say that I should write a program that makes the .txt file...
  21. Thread: .xml to .txt

    by flex567
    Replies
    49
    Views
    6,936

    Re: .xml to .txt

    On this picture there are both files. One with 70000 lines and another file with the same amount of data in one line. I think it would be easier to parse the file with 70000 lines. ...
  22. Thread: .xml to .txt

    by flex567
    Replies
    49
    Views
    6,936

    Re: .xml to .txt

    It would be easier to parse it. I could you getline function for example. I already manage to create a .txt file, it took me 10 min to manually select it all.
  23. Thread: .xml to .txt

    by flex567
    Replies
    49
    Views
    6,936

    Re: .xml to .txt

    I don't have any text file. There is just the .xml file. I would like to create the text file from the .xml that would look like this:
    http://forums.codeguru.com/
  24. Thread: .xml to .txt

    by flex567
    Replies
    49
    Views
    6,936

    Re: .xml to .txt

    I can use just STD
  25. Thread: .xml to .txt

    by flex567
    Replies
    49
    Views
    6,936

    Re: .xml to .txt

    I would like the .txt to look like this.
    [img=http://s23.postimg.org/9qq9vj4fr/image.jpg]


    It would be easier to parse the file, I could use the getline() function for example.
Results 1 to 25 of 263
Page 1 of 11 1 2 3 4





Click Here to Expand Forum to Full Width

Featured