[QUOTE=rajesh669 5]#include <stdio.h>
#include <conio.h>
#include <math.h>
#include <time.h>
int main()
{
int m;
clock_t st,end,end_out;
clrscr();
st=clock();
printf("The value of the clock is : %f\n",st/CLK_TCK);
do
{
if(kbhit())
{
if((m=getch())= =97)
{
end=clock();...
User Profile
Collapse
-
Hi
Thanks a lot for your reply. If I do as I suggested, I dont get any error while compiling but when I run the program, it gives me an 'Segmentation fault'. Anything you can suggets.
...Code:vector<SampleMarketDataClient *> clients; SampleMarketDataClient *temp; while (!cin.eof()) { if(cin.good()) { // Read in the next line of text from the file cinLeave a comment:
-
Help with using class as vector
Hi all,
I am trying to use the class as a vector and pass parameters to the class. In loop.run(), I do certain things, then I would like to delete all the elements of the class.
...Code:1 class SampleMarketDataClient 2 { 3 .... 4 }; 5 int main() 6 { 7 vector<SampleMarketDataClient> clients; 8 while (!cin.eof()) 9 { 10 -
Help to get time zone between GMT & new york
Please can anyone help me to get the time zone between GMT & New York including the daylight saving.
I am able to get the timezone between GMT & localtime including the daylight saving. My program goes like this
time_t t = time(0);
struct tm* data;
data = localtime(&t);
data->tm_isdst = 0;
time_t a = mktime(data);
data = gmtime(&t);
data->tm_isdst = 0;... -
To make it more clear, I wanted to convert GMT time to AEDT time.Leave a comment:
-
help with converting gmt time to local time
I am trying to convert a gmt time which is like 23:00:00 to local time 10:00:00 and even get the time diff that's the offset along with it in c++. Can anyone help me out with this.
Thanks a lot in advance. -
Help with string outputs
Hi
I wanted 50 out of 10 columns to be displayed in my program from the live data.
But I dont want if all the 10 columns are empty to be displayed. but if even one of those column has values then I wanted to be displayed in my program.
Can anybody help me with this asap.
Thanks a lot in advance. -
kill a process??
Hi all,
I want to kill a process in Linux (postgres: aaa bbb 192.000.100.00( 0000) SELECT waiting). when i try to kill it, it says 'Operation not permitted'
Thanks in advance. -
To insert 60million rows to database
hi all,
how to insert 60million rows to the postgres datase. i want to increase the performance as it is taking 1min to insert every 1000rows. is there any easier way to do it. thanks in advance. -
Sorry I have a question again. I understood the concept but do i have to add any header file b'cos when i compile the program it says log_file & data_structure_ string are not declared. I dont get the concept of writing it to a log file. Thanks a lot in advance & for your reply.Leave a comment:
-
-
How to write log for every 10000 rows
Hi all,
This is my first time here. I have a doubt in writing c++ program to load a file of about 10million rows to the database. so when i read it, i need to track it if its loading properly for every 10000 times by writing a log. if anybody can help me out with this that will be great. thanks in advance.
No activity results to display
Show More
Leave a comment: