Jo, selfølgelig..
#include <iostream>
#include <stdlib.h>
#include <conio.h>
using namespace std;
int main(int argc, char *argv[])
{
string a = "net send";
string b = "";
int i;
int o = 0;
cout << "Codename: Net Send\\n";
cout << "Author: TriOx / TriOxid\\n";
cout << "Version: 0.9b\\n";
cout << " I denne version skal du putte _ i mellem ordene ellers sendes kun 1. ord\\n\\n";
cout << "Indtast IP/Computernavn: ";
cin >> b;
a = a + " " + b;
cout << "Indtast besked: ";
cin >> b;
a = a + " " + b;
cout << "Hvis du taster 0 bliver den ved for evigt\\n";
cout << "Indtast antal af gange som beskeden skal sendes: ";
cin >> i;
if(i == 0)
{
while(o != 1)
{
system(a.c_str());
}
}
else
{
while(o != i)
{
system(a.c_str());
o++;
}
}
return 0;
}
Søren
[Redigeret d. 09/01-04 22:11:11 af Søren aka. TriOxid]