User Profile

Collapse

Profile Sidebar

Collapse
dusty
dusty
Last Activity: Apr 23 '07, 04:46 AM
Joined: Oct 11 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dusty
    replied to program to read key press values
    in C
    [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();...
    See more | Go to post

    Leave a comment:


  • dusty
    replied to Help with using class as vector
    in C
    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
       	cin
    ...
    See more | Go to post
    Last edited by dusty; Feb 21 '07, 10:31 PM. Reason: Forgot to add the code

    Leave a comment:


  • dusty
    started a topic Help with using class as vector
    in C

    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
    ...
    See more | Go to post

  • dusty
    started a topic Help to get time zone between GMT & new york
    in C

    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;...
    See more | Go to post

  • dusty
    replied to help with converting gmt time to local time
    in C
    To make it more clear, I wanted to convert GMT time to AEDT time.
    See more | Go to post

    Leave a comment:


  • dusty
    started a topic help with converting gmt time to local time
    in C

    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.
    See more | Go to post

  • dusty
    started a topic Help with string outputs
    in C

    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.
    See more | Go to post

  • dusty
    started a topic kill a process??

    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.
    See more | Go to post

  • dusty
    started a topic To insert 60million rows to database

    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.
    See more | Go to post

  • dusty
    replied to How to write log for every 10000 rows
    in C
    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.
    See more | Go to post

    Leave a comment:


  • dusty
    replied to How to write log for every 10000 rows
    in C
    Thanks a lot for your help. It works....
    See more | Go to post

    Leave a comment:


  • dusty
    started a topic How to write log for every 10000 rows
    in C

    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.
    See more | Go to post
No activity results to display
Show More
Working...