Help ! [C++]

Hi Guys, I Wanna make something for connect to telnet ...


i want to make input for program for example i give it a ip like this : 192.168.1.1 and then it connect to this ip by telnet

sry my english is not good ...

look at this source i think if u look u know what i want to do :D

plz help me
TNX

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <cstdlib>
#include <iostream>
#include <string.h>

using namespace std;

int main(int argc, char *argv[])
{
 char a,telnet;
 cout <<"\n Enter IP: ";
 cin >>a;
 
system("telnet a");
     

        system("PAUSE");
    return EXIT_SUCCESS;
}
read up on socket programming. Using the system command to connect to telnet might not be the best solution.
tnx :D
np, message me on your progress
Topic archived. No new replies allowed.