So I'm trying to make a DoSer program with C++ using system commands. this is a work in progress and I'm pretty new to C++ and I'm trying to use the ping command with a variable in the same line, look at the code and you will realise what I want
#include <iostream>
using namespace std;
int main()
{
int targ;
system("color a")
;system("title C++ DoSer ")
;cout << " What Site/IP Is Your Target?" << endl;
cin >> targ;
system("ping");targ("-t -l 65500")
;return 0;
}
but it keeps saying "targ cannot be used as a function". please help