examples: Initialize arrays directly with 0
This commit is contained in:
@@ -96,11 +96,8 @@ main(int argc, char* argv[])
|
||||
Config::SetDefault("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue("0"));
|
||||
}
|
||||
|
||||
double prevThroughput[8];
|
||||
for (uint32_t l = 0; l < 8; l++)
|
||||
{
|
||||
prevThroughput[l] = 0;
|
||||
}
|
||||
double prevThroughput[8] = {0};
|
||||
|
||||
std::cout << "MCS value"
|
||||
<< "\t\t"
|
||||
<< "Channel width"
|
||||
|
||||
Reference in New Issue
Block a user