Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. csripriya1

    Weird argc change in main funciton

    ...use the electric fence with gdb I get the following error message: Program received signal SIGSEGV, Segmentation fault. 0x08055c51 in servant(float*, int, int, float*, char*, char*, int) (chrom=0x6265445f, nchrom=3106677, chrom_len=4, fit=0x4015afd4, workdir=0xbfffdd10...
  2. csripriya1

    Weird argc change in main funciton

    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...
  3. csripriya1

    Weird Segmentation fault

    ...funcation A, when I use it in the place of function B. The difference between the functions A and B is as follows: < float Evaluate_chrom(char *trjfileBE, char *trjfileMC, < char *trjfileSE, float fit_func[]) --- > float Evaluate_chrom(char *trjfileBE, char *trjfileMC...
  4. csripriya1

    Awk and big loops

    This is in addition to my earlier post. I copied some of the outputfiles to another directory , while the process was still running and writing other outputfiles. Then I did this " tail -n ". It was incomplete. After the process was done I did " tail -n " again on the same outputfile. I see...
  5. csripriya1

    Awk and big loops

    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++)...
  6. csripriya1

    How to read a large file

    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...
  7. csripriya1

    _Alloc_hide and segmentation fault

    ...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 This core dumping occurs at the end of my program Can anyone pl help me in...
  8. csripriya1

    base class has incomplete type

    Hi all, Thanks for the suggestions. I worked this problem out in some other way. Thanks
  9. csripriya1

    libc.so.6 - cannot open shared object file

    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...
  10. csripriya1

    base class has incomplete type

    Thanks for the suggestions. Here I define the derived class #ifndef offspringlib #define offspringlib #include "Chromosome.h" class offspring:public chromosome { friend class chromosome; protected: chromosome parent_chrom; public: }; #endif I am trying to get the offspring as a...
  11. csripriya1

    base class has incomplete type

    No ,I did not use any template. I missed a key point in my earlier post. In the derived class I have a member which is of parent class. I have Chromosome as basic class and I have Offpsring as derived class. In the Derived class offspring I have a member of type chromosome. I guess this...
  12. csripriya1

    base class has incomplete type

    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
  13. csripriya1

    Double pointer to 2D array

    Hi all, Thanks for your suggestions.I corrected my code accoringly.Thanks again.
  14. csripriya1

    Double pointer to 2D array

    ...This is how my function looks like void slope(int a[][2],float slop[],unsigned long ); I used double pointer to dynamically allocate memory. int **points=NULL; points= new int* [nvertices+1]; for(i=1;i<=nvertices;i++) points[i]=new int [2]; this is the function call...
  15. csripriya1

    Keys

    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...
  16. csripriya1

    Access violation when there is neither a pointer nor an array

    ...<stdlib.h> #include <iomanip> #include <string> #include <iostream> using namespace std; #include &quot;crd.h&quot; void crd::print_crd(char *stra) { int in; ofstream outfile(stra,ios::out); if(!outfile) { cerr<<&quot;File could not be opened&quot;<<endl...
  17. csripriya1

    Access violation when there is neither a pointer nor an array

    ...is my file where I had declared the class crd. #include <string> using namespace std; #ifndef crdlib #define crdlib class crd { protected: float *xcrd,*ycrd,*zcrd,*wei; int natoms; int *atnum,*resnum; string *res,*attype,*side; int *resid; float xcrd_min,xcrd_max; float...
  18. csripriya1

    Access violation when there is neither a pointer nor an array

    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 &quot;class.h&quot; void main() { string ligcrd; crd lig; cout<<&quot;Ligand.Crd file :&quot;<<endl; cin>>ligcrd...
  19. csripriya1

    Concatenate a variable to a string

    Hi Kalisto,ArkM,sebastiani, Thanks for your time and help.
  20. csripriya1

    Concatenate a variable to a string

    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.

Part and Inventory Search

Back
Top