here we are going to add new rows after every button click. so for that we need to create a function which holds columns and rows which holds data in DataGridView.
//for client machine
import socket
s=socket.socket()
#portno=13(daytime)||7(eco server)||17(chargen)
port=12345
s.connect(('127.0.0.1',port))
#s.sendall('hello') only for echo
print s.recv(1024)
s.close
//for server machine
import socket
s=socket.socket()
print 'connection is established....'
port=1234
s.bind(('',port))
s.listen(5)
print("server is listening")
while True:
c, addr=s.accept()
print "accespted connection from ",addr
c.send("hiii from server....")
c.close
//by:- aniketkoli183@gmail.com
//for more codes visit here:- http://jerryindia.home.blog
#include<iostream>
using namespace std;
int main()
{
//simple array
int arr[5];
cout<<"Enter data into first array:= ";
for(int i=0;i<5;i++)
{
cin>>arr[i];
}
cout<<"Entered data into first array:= ";
for(int i=0;i<5;i++)
{
cout<<arr[i]<<"\n";
}
//array creation with the help of pointers pointer
int size;
int *arr1=new int[size];
cout<<"\nhow much size you need for an array2:=";
cin>>size;
for(int i=0;i<size;i++)
{
cin>>arr1[i];
}
cout<<"\nEntered data into second array:= ";
for(int i=0;i<size;i++)
{
cout<<arr1[i]<<"\n";
}
return 0;
}