Search:
Type: Posts; User: manojg
Search:
Search took 0.02 seconds.
-
September 28th, 2017, 11:26 AM
-
September 27th, 2017, 02:51 PM
Hi,
I like to print a floating number in scientific notation but with only zero before decimal, like
1.2345
to
0.12345E+01
-
August 18th, 2013, 10:19 AM
Not following what you mean. Can you clarify it more?
-
July 16th, 2013, 04:05 PM
-
July 16th, 2013, 12:48 PM
Hi,
What is the difference between
double a = 4.5;
and
-
March 10th, 2012, 08:43 PM
Hi,
I have a code containing few classes. They compile and run fine with g++ 4.1.2. But with g++ 4.6.1, it does not recognize some methods inside the class. For example:
class first
{
...
-
August 26th, 2010, 10:15 AM
Hi monarch_dodra,
You are right, it is just splitting the class. I wrote this way to solve one of my problem temporarily (I was writing the data in a file, a type of formate which can also write...
-
August 24th, 2010, 11:05 AM
HI Lindley,
Thanks for reminding me. I have assigned a virtual distructor but I forgot to write in detail here.
class singleParticle {
private:
double x;
double y;
...
-
August 24th, 2010, 10:51 AM
Hi all,
Thanks everybody for your helpful suggestions. I figured out to do this way which similar to previous one:
I created a base class for just one gas particle, "singleParticle", and...
-
August 23rd, 2010, 09:03 PM
Hi,
I am writing a simulation code. I have a class called "particle" which hold gas particles. Each gas particle has its neighbouring gas particles. And its neighbouring gas particles have their...
-
July 21st, 2010, 06:08 PM
Thanks guys for reply. I found the answer. In the package that I am using, one can run the code directly without compiling. But in case of vector, somehow one need to compile.
-
July 21st, 2010, 11:02 AM
Hi Lindley,
Yes, its title input in class declaration is const char* that is why I have used title.c_str(). It crashes even if I use other methods of myClass which return some number. Also, it...
-
July 21st, 2010, 10:54 AM
Hi,
I am using third party software, and myClass refer to one of them.
GCDEF, yes that is what I was assuming but somehow it is not working. Ok, I will check again.
Thanks a lot for your...
-
July 21st, 2010, 10:29 AM
Hi,
I have been puzzled by this simple code:
vector<myClass*> cVect;
char ch[10];
for(int i=0; i<5; i++) {
sprintf(ch, "%d", i+1);
-
Ok, Thanks a lot everybody.
-
Hi,
I have a data file with double variable with length > 30 (like: 4354.568324349349273282372837283).
When I read and print out the number (in c++), it prints out correctly upto 20 digits...
-
August 10th, 2009, 09:27 AM
Ok, Thanks a lot.
Is there any way to execute perl script within c++ code without replacing it? I tries system() but I have to give numerical argument to the perl script.
Thanks again.
-
August 10th, 2009, 08:30 AM
Hi,
First time I am trying to use execl() function to execute a perl script in my c++ code. As a test I used something like this:
int main()
{
execl("/home/user/abc/test.pl",...
-
Hi,
If I have a long vector (say of size 800000) then it takes time to search a number in the vector especially if the number is near the end of the vector. However, in editor like vim, search is...
-
February 16th, 2009, 07:03 PM
Hi,
I have written a small class and tried to store in vector.
-------------------------------------------------------------------------
class subClas {
private:
Float_t fX;
-
January 25th, 2009, 09:32 PM
Hi,
I have a very simple question.
"ptr" is a pointer to a "struct", "value" is a member (there are other members also) of this "struct" and "x" is an integer. What does following code return:...
-
-
Hi,
What is the difference between including header file (.h) and including shared library (.so) in C++ code?
Thanks.
-
February 12th, 2007, 04:59 PM
I am writting a code for a Monte-Carlo simulation. Yes, it is better to use loop instead of "goto". In my actual code, there are three arrays xp[n], yp[n] and zp[n] for position of objects. Also,...
-
February 12th, 2007, 04:24 PM
Thank you very much everybody for your suggesion.
Yes, it creats the array on heap so that it can be deleted. Can't we define small array on stack?
The array size defined is 200. Does not...
|
Click Here to Expand Forum to Full Width
|