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.

0 Endorsements
~5K People Reached
Favorite Tags
c++ x 28
Member Avatar for heidik

Hello everyone. I am new to creating make files. I have been able to create simple makefiles for those applications which do not involve database but am unable to create for the ones that do involve database. When I run that make file, it just deletes the .exe file of …

Member Avatar for heidik
0
138
Member Avatar for heidik

Hello everyone. Is it possible to read two lines of a file in one iteration based on some condition? The files has several blocks of data where each block contains two consecutive lines having ORDER ID in it. I want to store each of these IDs for each block of …

0
87
Member Avatar for heidik

Hello everyone Could any one please help me parsing a line having different fields separated through commas. I want to store each comma separated sub string in a struct member variable. The lines are being read from a file. [code]105:1:CME,20100601,07:34:22.796,GRC,GE,201009,FUT,XGGRC,0G4LHZ013,14ijpol1vsu7l7,Fill,0000D9DB,B,00000,99.155,2,99.155,20100601,07:27:34[/code] for example the line ID which is "105:1:CME" is one …

Member Avatar for Taywin
0
3K
Member Avatar for heidik

Hello everyone I am trying to find duplicates for part of a string, not the whole stHello everyone I am trying to find duplicates for part of a string, not the whole string. The strings are stored in a file. Each line of file contains a string and many of …

Member Avatar for vijayan121
0
130
Member Avatar for heidik

Could anyone please show me a working example of how to find if a file exists but is empty or not? Thanks

Member Avatar for Ancient Dragon
0
333
Member Avatar for heidik

[code]breachmonitor.cpp:(.text+0x17ce): undefined reference to `BreachMonitor::Breach::Breach()'[/code] Can anyone please tell me what does it mean? I have created a struct and then declared its variable like [code] Breach wb; [/code] and it isnt compiling. The structure has default constructor (no arguments) and another one for initialization. It has also got two …

Member Avatar for heidik
0
190
Member Avatar for heidik

Could somebody please tell me how do I write a file in "try catch" block for checking if the file exists, if it is opened, if it is not empty. This is the error message I get when the file not exist or it is empty. [code] terminate called after …

Member Avatar for heidik
0
81
Member Avatar for heidik

Could you please have a look at the code and tell me the reason why it is giving me an error? [code] int timeDiff(std::string startDateTime, std::string endDateTime) { std::string strtYYYY, strtMM, strtDD, endYYYY, endMM, endDD; int strtY, strtM, strtD, endY, endM, endD; strtYYYY = startDateTime.substr (0, 4); cout << "String …

Member Avatar for ixmike88
0
141
Member Avatar for heidik

Hello Everyone. Could anyone please help me quickly find duplicates in a vector of over 60000 records. It takes a loooootttttt of time ;'(. Here's the code. [code] #include <string> #include <vector> #include <iostream> #include <algorithm> #include <sstream> struct MyPred { std::string x; std::string y; // add default values MyPred(const …

Member Avatar for heidik
0
99
Member Avatar for heidik

Hello Everyone. Could anyone please help me solve this problem. I am actually new to using STL. I have been given a task of searching a file of over 60000 records. The data extracted from the file is stored in struct and that struct is in turn stored in vectors …

Member Avatar for heidik
0
833