Hi,
I am having a weird problem here. I was getting a segmentation fault immediately after a function call. The last command in that particular function was also executed very successfully. When it comes to the main function, it dumps a core. I used electric fence and gdb to debug it. After...
Dear All,
I am having problems with locating segmentation fault in my code. My code is in C++. I get segmentation fault when I call a function B. I do not get any fault with the segmentation fault with funcation A, when I use it in the place of function B. The difference between the functions...
Hi All,
I am new to the awk scripting language. I want to split a large file into multiple small files. I am looking for a pattern in the large file and breaking it into smaller files.
This is how my code looks
{
for(i=1;i<=10;i++)
{
file = "xsaa_"
name = ".sdf"
for (j=1;j<=10; j++)...
Hi all,
I want to read in a large file and then split into smaller files as per some pattern. I am using fstream in C++. My executable slows after some time. I am seraching a way to speed up this process. Can any one please help me with this.
My code is as follows.
ifstream...
Hi all,
I tried running my c++ program (compiled in linux with c++ compiler) using gdb.
I am getting this message.
Program received signal SIGSEGV, Segmentation fault.
0x400a3c9a in std::string::_Alloc_hider::_Alloc_hider(char*, std::allocator<char> const&) () from /usr/lib/libstdc++.so.5...
I was trying to work out installing python 2.2 in the read hat linux version of 7.0. I ran into lot of problems.
AT some point of time it complained about missing GLIBC_2.3 in /lib/libc.so.6. I thought that I would try copying this file from other machine. In this process I did rename this...
What does this base class has incomplete type mean.
I have a base class by name chromosome and the derived class by name offspring. In the file where I start the definition of derived class , i did include the header file that has the definition of base class.
Can anyone help me
Thanks in advance
Hi all,
I have a function which takes 2D -array as an argument. When I try to pass a double pointer as an argument ,VC 6.0 complains that the conversion is not possible.
This is how my function looks like
void slope(int a[][2],float slop[],unsigned long );
I used double pointer to...
Hi all,
I have a question not directly related to C++. I am writing a code in openGL using GLUT library. When I use the keyboard function,glutKeyboardFunc(keyboard) Keys like righ,left,up and down arrow keys don't provide input to this function. This is the function I used for this key board...
Hi all,
I have a very small code, which reads in data of an object from a file and writes it back to another file.
Here is the code.
#include "class.h"
void main()
{
string ligcrd;
crd lig;
cout<<"Ligand.Crd file :"<<endl;
cin>>ligcrd...
Hi all,
I have a simple question about the concatenation.I want to concatenate a string and an integer to get another string.I checked in my C++ book and in google. I couldn't get the answer.Can anyone help me,Please.
Thanks for the time and help.
Hi all,
I have a problem with this access violation.A function in my class reads in
a bunch of values.My program crashes towards the end of this function.It prints
NINFOLINE correctly ,waits for the input(test) then dies after taking the input
for test.When it crashes,it gives an error...
hi all,
I have some problem with the pointers to objects.I have my program like this.
void chrom_manip(int max_fgs[],int len_chrom)
{
int i,dummy;
chromosome *chrs[6];
chromosome chrdummy;
ran.seedgen();
for(i=0;i<6;i++)
{
chrs[i]=chrdummy.makechrom(max_fgs,len_chrom)...
Hi all,
I have some weird problems with passing objects as arguments. I have 2 functions which takes objects as arguments.I have some printing statement in the last line of both the functions. When I call these functions from main,This last printing statement gets executed and then the...
Hi I am having trouble in programming using multiple files in C++.
I have a class declaration in a header file like this.
class test
{
private:
data;
public:
void testfunc();
}
I included this header in a source file, which gives the definition for those functions in the class in header...
Hi I am having trouble in programming using multiple files in C++.
I have a class declaration in a header file like this.
class test
{
private:
data;
public:
void testfunc();
}
I included this header in a source file, which gives the definition for those functions in the class in header...
Hi I am new to C++ programing. I have probelm in reading data from a file.
I have declared a class like this
class person
{
private:
char *name ;
int age, phone_number;
float wage;
public:
void write_class()
{
cout<< "Name :"<<this.name;
cout <<" Age:" << this.age;
cout...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.