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 TouchToneTommy 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: *

  • Users: nappaji
  • Order by date
  1. nappaji

    C++ tools to find load

    I am trying to increase the speed of a tool written in C++. But, I have difficulties figuring out what pieces of code are taking more time to execute. Is there a tool that can be of use to me? Something like a "Load Runner". I am developing on the Unix/Linux platform. Thanks in advance.
  2. nappaji

    MFC/Win32 programming??

    I have about 5 years of programming in C/C++ in Unix environment but am new to programming in the Windows environment. I have used Motif/GTK for GUI development in UNIX environment. What is the most commonly used GUI tool/language in the Windows environment?? Is MFC widely used?? How is MFC...
  3. nappaji

    Deleting a Text file from a C program in UNIX?

    You can use the "unlink" command to remove a file.
  4. nappaji

    Floating point problem - Linux vs Solaris

    8.6666666... was just an example. It can be any floating point number. In my case, this number is computed in a for loop. double tmp, num1; num1 = chain[j-1]; for (kk = (j-2); kk>=0; kk--) { tmp = (1.0 / num1); num1 = tmp + chain[kk] ; } a=num1;
  5. nappaji

    Floating point problem - Linux vs Solaris

    I an doing a computation where in a double value is multiplied with a long long. For ex: double a; long long b; long long res; .. .. ... res = a * b; ..... .... .. res is different on Solaris and Linux platforms Ex: if a has a value of 8.66666666666666607455 and b = 2370 Linux gives me a...
  6. nappaji

    vi - converting multiple spaces into a single space

    Hello, How do I change multiple spaces into a single space on all lines in a file using vi. I have done this before but dont seem to remember. I open the file using vi, and used to type in something like this :%s/ \+/ /g but this dont seem to work. Please help.
  7. nappaji

    how can i convert an integer to string ?

    You can use the stringstream class #include <stringstream> int i=100; stringstream ss; ss << i; To access the string from the stringstream, cout << ss.str() << endl; To acccess a C-string, cout << ss.str.c_str() << endl;
  8. nappaji

    C++ equivalent of a 3 dimensional array

    How do you declare a 3-dimensional array in C++? For ex: int abc[100][20][5]; Can it be done through vectors?? or what built in type can I use?? Also, if I have to do dynamic memory allocation, i.e. not hardcoding the array sizes, how do I do it in C++??
  9. nappaji

    realloc help

    The following code gives me a segmentation fault. I thinks its an issue with the syntax of realloc. Please advise. #include <stdio.h> #include <stdlib.h> main() { int **arr; int i,k, j; arr = (int **) malloc (3); arr[0] = (int *) malloc (2); arr[1] = (int *) malloc (2)...
  10. nappaji

    converting a multidimensional array into pointer logic

    Thanks Salem for the quick reply. I am in charge of maintaining a piece of software and have the task of increasing the size of these data structures. My array is int abc[2048][1024][10]; I want to replace these hardocded values with dynamic allocation. Initially, during the early stage of...
  11. nappaji

    converting a multidimensional array into pointer logic

    I have a piece of code that has many variables declared like abc[1024][1024][10]; Now, i want to increase the size of all these variables to abc[2048][2048][10]; but, whien i compile and run the program, I am getting a segmentation fault. I believe this is beacuse, it is running out of...
  12. nappaji

    VNC Problem

    I am trying to start a VNC server on a SunOS 5.5.1 machine, but I am getting the following error. ld.so.1: Xvnc: fatal relocation error: file Xvnc: symbol stat64: reference symbol not found Please help.
  13. nappaji

    SCSI or IDE ??

    I have a Sun solaris 2.5.1 Ultra 5 machine. I want to know if the disk inside if that system is IDE or SCSI type?? Is there acommand to determine this?? Please help.
  14. nappaji

    csh script help - capturing stdout and stderr

    I am trying to write a csh script to execute the rsync command periodically. But, I donot know how to capture the standard output and standard error. My ultimate goal is to capture this stdout and stderr and mail it to the user. How can I accomplish this?? I tried to so something like this
  15. nappaji

    Sending email thro' C program

    Solaris Unix 5.5 / 5.7 /5.8 versions
  16. nappaji

    Sending email thro' C program

    How do I send an email through a C/C++ program?? Ex: If I want to send the string &quot;Hello World&quot; to abc@hotmail.com, what utility do I use?? Please help.
  17. nappaji

    creaking directories using mkdir function

    On the unix command prompt, we can create multiple nested directories using the &quot;mkdir -p&quot; command. i.e. if I want to create a directory ABC, then a directory 123 under ABC, then a directory xyz under 123, I can accomplish this using one single command using mkdir -p ABC/123/xyz I...
  18. nappaji

    Openwin on dual monitors

    I have my Sun Solaris 5.5 machine connected to dual monitors. I want to bring up openwin session on both the monitors simulaneously. I tried doing the openwin -dev /dev/fb0 -dev/fb1 but it kicks me off. openwin doesnot start at all. Is there any other way of doing it?? or is there anything...
  19. nappaji

    Getting the file size from ls -l command

    Hello, When I do a ls -l command, the 5th column gives me the file size. How do I extract this column using cut or some other command. I am a novice to awk . How do I do it in awk?? Is there another way to check the file size using scripting??? Thanks
  20. nappaji

    Zombie process

    Hello, I have a zombie process on my system. I see the parent process (owned by some other user)running, but am unable to kill the parent process even as root. The parent is not the &quot;init&quot; or any other system process. Its just another simple GUI program that is running. Is there...

Part and Inventory Search

Back
Top