do you think can we use ostrinstream? and implement the content of stream with system command ..... ?
Type: Posts; User: wolfindark
do you think can we use ostrinstream? and implement the content of stream with system command ..... ?
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...
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...
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
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...
Thank you so much for your replies. I did as follows:
#include iomanip
long double varr = 0.038918918918916
ofstream out;
out.open("ktr.txt");
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
thank you so much! now it works
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<<...
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.
King Mir : I did not understand what type of class you mean. I will be pleased if you could give a simple example.
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
. . . .. ...
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...
vart, Desolation, thanks so much!
could you write an example?
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...
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...
Thanks Noir, thank you all. now is working well.
regards.
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...
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...
MacGavyer,
if user enter numbers less less than 20 ?
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 ?
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...