Arbus 25 Practically a Master Poster

You didn't read my previous post properly.

void inputcomputer(int*pt1,int*pt2,int*pt3,char *A);

You have declared A as char *, it can hold only a string (like 1D array). But you are passing multidimensional array. So declare A accordingly (char **A[3] or char *A[3][3]).
example,

void inputcomputer(int*pt1,int*pt2,int*pt3,char *A[3][3]);
Arbus 25 Practically a Master Poster

Hello tailsthefox,
System("DIR") will display the directories of the drive and the number of free space available in bytes. But before doing system("DIR") you must change to the required drive. You need to include stdlib for executing system commands.

Arbus 25 Practically a Master Poster

Try using cin instead of gets to get character from the user in countletter function.
As gets is used to get strings and not a single character.

void countletter(char *str)
{
	int count;
	char a;
	cin>>a;
	for (;(*str)!='\0';str++)
	{
		if (*str==a)
		{
		count++;
		}
	}
	 printf("%d",count);
}
WaltP commented: Since when is cin a C input commant? -3
Arbus 25 Practically a Master Poster

Hello slygoth,
There is a simple way to do this. Initialize a character a and write a=getch(). This would not display the character entered by the user.

char a;
a=getch(); // varable a will have the character entered by the user.The character    
cout<<'*'; // entered by the user will not be displayed. cout<<'*' will put '*' 
           //appearing to the user that character that he entered was masked

Instead of a character, declare varable a as a character array. Put that in for loop(a[1]=getch etc.,). The password that the user enters is masked now.Though getch() is not in ANSI c standard it will work.

WaltP commented: We don't suggest using non-Standard C functions. getch() is not in most compilers -3
Arbus 25 Practically a Master Poster

Hello Lokril,
try this....

#include<iostream.h>
#include<conio.h>
int remainder(int x,int y)
{int d,e;
 d=x/y;
 e=x-(y*d);
 return(e);
}
int main()
{.
 .
 .// code that you just posted
}