Hello I wrote this out to count out the letters in a sequence for use in decryption class. but I want to knw can someone convert it to c or c++ for me
Any help is appreciatedCode:package Bsc;
import java.io.*;
public class MyAppMain {
public static final int MAX_CHAR = 65535;
public static void main(String[] args) throws IOException {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
System.out.println("Enter the line :- ");
String text = br.readLine();
System.out.println("You have Enterd :- " + text);
String s = text.toUpperCase();
int res[] = new int[256];
for(int i=0 ; i<s.length() ; i++)
{
res[s.charAt(i)]++;
}
for(int i=0 ; i<res.length ; i++)
{
if(res[i] !=0)
{
System.out.println(""+(char)i+" : "+res[i]);
}
}
}
}