'Visual C++'에 해당되는 글 2건
- 2007/07/03
- 2007/06/26
char* source = "\"Y:\\Flow_data\\.............\"";
char* target = "\"D:\\_project\\_NG-MON\\traffic_analysis...................\"";
char order[512];
sprintf(order, "xcopy %s %s /h", source, target);
system(order);
CTimeSpan ts = 60*60*24; //
CTime t1( 2007, start_month, start_day, 0, 0, 0 );
CTime t2( 2007, end_month, end_day, 23, 59, 59 );
t2 += 1;
CString data_file_name;
for (int i = 0; t1 < t2; t1 += ts, i++)
{
for (int hour = start_hour; hour < 24; hour++)
{
data_file_name.Format(_T("./_minAnalysis_data/%02d_%02d_%02d_data"), t1.GetMonth(), t1.GetDay(), hour);
ReadDataFile(data_file_name, i * 24 + hour);
}
}
MSDN 검색의 생활화!!!
| CTime, xcopy (0) | 2007/07/03 |
|---|---|
| C++ double pointer (0) | 2007/06/26 |
u_int64_t* tBytes;
u_int64_t* tInBytes;
u_int64_t* tOutBytes;
u_int64_t** tBytes_subnet;
u_int64_t** tInBytes_subnet;
u_int64_t** tOutBytes_subnet;
subnetGraph->GetResults(tBytes, tInBytes, tOutBytes, tBytes_subnet, tInBytes_subnet, tOutBytes_subnet);
void CSubnetGraph::GetResults(u_int64_t*& a, u_int64_t*& b, u_int64_t*& c, u_int64_t**& aa, u_int64_t**& bb, u_int64_t**& cc)
{
a = totalBytes;
b = totalInBytes;
c = totalOutBytes;
aa = totalBytes_subnet;
bb = totalInBytes_subnet;
cc = totalOutBytes_subnet;
}
| CTime, xcopy (0) | 2007/07/03 |
|---|---|
| C++ double pointer (0) | 2007/06/26 |