-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.cpp
More file actions
44 lines (35 loc) · 1.24 KB
/
test.cpp
File metadata and controls
44 lines (35 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/***************************************************************************
* Copyright (C) 2003 by eddiedu *
* eddiedu@scale.com.br *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include "unistd.h"
#include "global.h"
#include "Pointer.h"
#include "PecaHandler.h"
#include "DNS.h"
#include "Mailer.h"
#include <string>
#include <vector>
#include <fstream>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
debug.info("Iniciando o PROGRAMA DE ENVIO!");
std::vector<std::string> ddv;
DNS::server = DNS;
DNS _dns;
_dns.GetMX(ddv, "hotmail.com");
for_each( ddv.begin(), ddv.end(), print_string);
return 0;
}
void print_string(const std::string& name) {
cout << name << endl;
}