Search:

Type: Posts; User: wolfindark

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    4,542

    do you think can we use ostrinstream? and...

    do you think can we use ostrinstream? and implement the content of stream with system command ..... ?
  2. Replies
    3
    Views
    4,542

    gnuplot & C++

    Dear all,

    I want to plot my data using gnuplot interactively from the inside of my c++ program without writing gnuplot file and data file.
    How can I do that? I will appreciate if you could show...
  3. Replies
    3
    Views
    1,491

    Be careful! I said I would be pleased if...

    Be careful!
    I said I would be pleased if someone can show me a way of doing that. I did not ask any one to do my homework. I did my programming homeworks 15 years ago.

    I am not a student, and...
  4. Replies
    3
    Views
    1,491

    test to binary & binary to text

    Dear Friends.

    I am not experienced in C
    I need a small C script to convert test file to binary. and inverse.
    I would be pleased if you could show a way of doing that.

    bests
  5. Thread: sscanf ?

    by wolfindark
    Replies
    2
    Views
    1,088

    sscanf ?

    Dear All

    I am trying to use sscanf() function to read a string and assign two double which are separeted by comma to two different variables. Code part is in the following.



    long double...
  6. Replies
    25
    Views
    19,797

    Thank you so much for your replies. I did as...

    Thank you so much for your replies. I did as follows:



    #include iomanip

    long double varr = 0.038918918918916
    ofstream out;
    out.open("ktr.txt");
  7. Replies
    25
    Views
    19,797

    writing long double into ofstream file?

    Dear All!

    I defined a log double variable. That variable takes some values like :
    long double varr = 0.038918918918916

    i would like to write it to a file
  8. Replies
    2
    Views
    2,299

    thank you so much! now it works

    thank you so much! now it works
  9. Replies
    2
    Views
    2,299

    reread a text file

    DEar All.

    I am trying to read same file two times by calling a function as the following.


    ifstream fmonju;
    fmonju.open(monju.c_str());
    if(!fmonju.is_open())
    {
    cout<< fmonju<<...
  10. Replies
    12
    Views
    1,091

    I will do some simple change in the number, I...

    I will do some simple change in the number, I will write into another file.



    I am not good at using string streams, could you give a simple example. Thank you.
  11. Replies
    12
    Views
    1,091

    King Mir : I did not understand what type of...

    King Mir : I did not understand what type of class you mean. I will be pleased if you could give a simple example.
  12. Replies
    12
    Views
    1,091

    Yes, input file inlcude many lines of data. in...

    Yes, input file inlcude many lines of data. in one line there are 5 or 6 columns (it may change). these columns may be string or a double like that:

    1 3 ABB DD 5
    2 4 GT ty 4
    . . . .. ...
  13. Replies
    12
    Views
    1,091

    type checking?

    Dear All!

    I am trying to read lines from an input file. in one line There a are some words and double type numbers. I would like to assign these values to some string variables and double...
  14. Replies
    4
    Views
    1,945

    vart, Desolation, thanks so much!

    vart, Desolation, thanks so much!
  15. Replies
    4
    Views
    1,945

    could you write an example?

    could you write an example?
  16. Replies
    4
    Views
    1,945

    istringstream problem in switch block?

    Dear all!
    I am using below switch block in a code. However it gives this compiler error;

    Main.cpp:85: error: jump to case label
    Main.cpp:81: error: crosses initialization of...
  17. Replies
    11
    Views
    1,870

    creating object with [new] ?

    Dear all,

    I have a class named as "Corr". I will create one object like this

    Corr* cc = new Corr;

    After I used "cc" object, do I have to delete it? and Why?

    If you could explain , I...
  18. Replies
    12
    Views
    2,897

    Thanks Noir, thank you all. now is working well. ...

    Thanks Noir, thank you all. now is working well.
    regards.
  19. Replies
    12
    Views
    2,897

    I am sorry for my questions , they may be so...

    I am sorry for my questions , they may be so silly :(

    Ok, I read the line with get line, and I assigned that line to istringstream.



    ifstream ccinp;
    string line;
    double...
  20. Replies
    12
    Views
    2,897

    Ok, we can understand the end-of-file, I can...

    Ok, we can understand the end-of-file, I can check it.
    but in one line how can I check it? How can I check the end-of-line ? How the for loop will stop reading that line ? and without stopping the...
  21. Replies
    12
    Views
    2,897

    MacGavyer, if user enter numbers less less than...

    MacGavyer,
    if user enter numbers less less than 20 ?
  22. Replies
    12
    Views
    2,897

    I dont know cin exactly, for example how can we...

    I dont know cin exactly,
    for example how can we assign diffrent numbers (entered from console) to the different array elements, and how can we know that how many number entered ?
  23. Replies
    12
    Views
    2,897

    Reading numbers from a text file

    Dear friends,

    there is a text file ( I copied a few lines of it below), I want to read every number in one line and want to insert to a vector. number of columns and lines can change.
    How can I...
Results 1 to 23 of 23