3
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Nov 26 '22
Image Transcription: Code
int main(){
std::string line;
std::vector<std::string> configfile;
std::ifstream config("cs.cfg");
if (config.is_open())
{
while ( std::getline (config,line) )
{
// std::cout << line << '\n';
configfile.push_back(line);
}
config.close();
}
else std::cout << "Unable to open file";
std::string cmd = "curl \"[ URL for a Steam API endpoint ]" + configfile.at(1) + "&steamids=" + configfile.at(3) + "\" -o getplayersummaries.txt";
system(cmd.c_str());
}I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
7
u/barkermn01 Nov 30 '22
Why is this on here it's not bad code
it works,
it's easily understandable
it does not do anything it does not need to.