Question about Computers & Internet

1 Answer

C Program related to Anagram

Hi,
I have some problem for writing code for anagram program...
The requirement is --------------
I have to write a program in such a way that it has to open a file which contains anagram pairs,so my code is to identify the all the anagram pairs and print it on the console
EX---->File contain
ABCDEFG
show
whos
apple
pleap
stare
ABCDFEG

output should be----->
ABCDEFG -> ABCDFEG
show->whos
apple->pleap
stare->cannot find anagram match

Posted by on

×

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Genius:

    An expert who has answered 1,000 questions.

  • Master
  • 1,601 Answers

Did you find your answer?

Posted on Mar 12, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

OF WHICH WORD IS ELVERSES AN ANAGRAM


There is no single word within the English Merriam-Webster dictionary which is an anagram of "elverses," though there are several word pairings which use all eight provided letters. See the attached link: http://wordsmith.org/anagram/anagram.cgi?anagram=elverses&t=1000&a=n

Nov 22, 2016 | Computers & Internet

1 Answer

Anagram of. Dorulesy meaning misleading


http://wordsmith.org/anagram/anagram.cgi?anagram=Dorulesy&t=1000&a=n

Jan 30, 2015 | Computers & Internet

1 Answer

Unscramble words solver


http://www.wordsmith.org/anagram/anagram.cgi?anagram=nroounetibe&t=1000&a=n

Oct 19, 2013 | Computers & Internet

1 Answer

Solve this anagram: a banner month, intact Mr. Sot, assort mi


There are tons of Anagram sites around. Look on the net, enter ANAGRAM SOLUTIONS...Pick one, any one.

Jan 19, 2013 | Computers & Internet

3 Answers

A java code for anagram


import java.io.IOException;

public class AnagramApp {
static int size;

static int count;

static char[] charArray;

public static void main(String[] args) throws IOException {
String input = "Java Source and Support";
size = input.length();
count = 0;
charArray = new char[size];
for (int j = 0; j < size; j++)
charArray[j] = input.charAt(j);
doAnagram(size);
}

public static void doAnagram(int newSize) {
int limit;
if (newSize == 1) // if too small, return;
return;
// for each position,
for (int i = 0; i < newSize; i++) {
doAnagram(newSize - 1); // anagram remaining
if (newSize == 2) // if innermost,
display();
rotate(newSize); // rotate word
}
}

// rotate left all chars from position to end
public static void rotate(int newSize) {
int i;
int position = size - newSize;
// save first letter
char temp = charArray[position];
//shift others left
for (i = position + 1; i < size; i++)
charArray[i - 1] = charArray[i];
//put first on right
charArray[i - 1] = temp;
}

public static void display() {
System.out.print(++count + " ");
for (int i = 0; i < size; i++)
System.out.print(charArray[i]);
System.out.println();
}
}

Nov 22, 2010 | Computers & Internet

1 Answer

Plz give me C code for the given program


I have the code in java. can you convert.
if need
mail to p.stivel@gmail.com

Feb 23, 2008 | Computers & Internet

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

942 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...