Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~909 People Reached
Favorite Forums
Favorite Tags
c++ x 14
c x 5
Member Avatar for jobra

Hi all, [code] #include<ctime> #include<string> int main() { string snapshot_time = "10:00:00" int interval = 60; string end_time = convert_hour(snapshot_time,interval); cout << end_time << endl; } string convert_hour(string &snapshot_time, int interval) { char current_time[BUFSIZ] = { '\0' } ; struct tm tm; strptime(snapshot_time.c_str(), "%H:%M:%S", &tm); tm.tm_sec = tm.tm_sec + interval; …

Member Avatar for WaltP
0
117
Member Avatar for jobra

Hi all, I want to run my c++ program in the background and at certain point, I want to pass a variable into the program, so that I get the result stored into the output file. I would like to know if its possible to do this. Thanks a lot …

Member Avatar for WolfPack
0
42
Member Avatar for jobra

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 …

Member Avatar for John A
0
123
Member Avatar for jobra

Hi all, I want to write every given number of lines into the different files, which I will be passing as an command line argument. I have written a function for just dividing the file into two, but how would I divide the files for every given number. If anyone …

Member Avatar for Salem
0
97
Member Avatar for jobra

I am tring to get the real time data [B][COLOR=#7f0055]for[/B][/COLOR] almost 200 subjects [B][COLOR=#7f0055]and[/B][/COLOR] store it in a file. But then I get the each subject data in four different subject codes in the sense four rows from the real time data which I want to store all of it …

Member Avatar for Ancient Dragon
0
115
Member Avatar for jobra

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 [code=c] time_t t = time(0); struct tm* data; data = localtime(&t); …

Member Avatar for John A
0
229
Member Avatar for jobra

Hi I am new to c++. I tried to get current date but when I compile the program, it gives me an error. This is my program [code=cplusplus] #include <iostream> #include <ctime> #include <stdio.h> int main () { char sdate [10]; _strdate(sdate); std::cout<<"Current Date:"<<sdate; return 0; } [/code] when I …

Member Avatar for jobra
0
186