It is not regarding split vector.
Can anyone please help me in getting a variable from one class to another class.
To make it brief... I have a class x and in that i have a method xy which has a string variable p which is declared as a local variable. I have another class y in which i want to get the string variable p.
The below is my code :-
I have Hit.cpp file which has the code as below :-
string Hit::convertDat e(const...
User Profile
Collapse
-
Thanks for the solution weaknessforcats but i'm not looking for struct. I dont want to use struct in my coding.so, could u please provide me a solution as i asked for splitting a vector or conversion of vector to string so that i can go in the further procedureLeave a comment:
-
To make my requirement more clear...
First thing is i have a log file which i do consider and in that i have web hits which contains ip address , userid , date & time , link to which the Customer logs in.Now my requirement is i need to get the web hits for a particular Customer for a configurable time period. So, for this I have split the web hit by spaces and used a switch case through which i have stored each variable(ip address,userid...Leave a comment:
-
Hi,
the datatype is string.
the access log file contains data in daily basis and am storing the web hits in each vector but i got date and time in same vector which i want to split and i have huge number of web hitsLeave a comment:
-
yes the time is for the same day...
If i can split it then i can count how many times per day i got web hitsLeave a comment:
-
Hi,
Thanks for the reply :)
I can do that in comparision function but even for that i need to split the vector datetime. My requirement is i need to see the time for a particular day... to make it brief date is constant but i need to see the time which changes so for this i want to split them.Leave a comment:
-
Split Vector
I have date and time combined in a vector and i want to split the date and time and store them in a vector again for comparision.
The below is the format of datetime vector
For example :-
25/Jul/2011:00:00:32
No activity results to display
Show More
Leave a comment: