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.
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...
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...
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.
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++??
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)...
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...
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.
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.
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
How do I send an email through a C/C++ program??
Ex: If I want to send the string "Hello World" to abc@hotmail.com, what utility do I use??
Please help.
On the unix command prompt, we can create multiple nested directories using the "mkdir -p" 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...
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...
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
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 "init" or any other system process. Its just another simple GUI program that is running.
Is there...
Hello,
I have a Sun OS 2.5 system which is hooked onto my company's netowrk. The network is going down for a weekend and I need to temporarily make the system a standalone system. After the weekend, I;ll have to put it back on the network.
Can anyone please let me know what files need...
Hello,
I have written a csh script to generate a file using a certain command.
I want to check to see if the file has been generated successfully. If there were not errors, then the file size would be > 0 , else it would be zero. How do I check if the file size is zero???
Hello,
Is there a commond to determine if the HP machine I am using is a 64-bit machine or a 32-bit machine???
Also, how do i determine the processor speed??
Thanks
What tools do I use to view the files under /var/stm/log/sys
directory.
The files under this directory are
activity_log
diaglogd_activity_log
memlogd_activity_log
scan_hw_log
If I execute the command "file <filename>" it gives me as "awk program text".
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.