Thanks for all your help, guys. I figured out the rest, and it's working. :)
Type: Posts; User: Nancy Franklin
Thanks for all your help, guys. I figured out the rest, and it's working. :)
Would this work, or do I have it backwards?
STRING temp2=" ."
for(i = 0; i < count; i++){
for(j = i; j < count; j++){
if(a[j]>a[j-1]){
temp = count[i];
GLike this?
for(i = 0; i < count; i++){
for(j = i; j < count; j++){
if(a[j]>a[j-1]){
temp = count[i];
count[i] = count[j];
count [j] =...
Um, I don't have a compiler or access to one for 5 hours, but is this what you mean:
for(i = 0; i < count; i++){
for(j = i; j < count; j++){
if(a[j]>a[j-1]){
...
Sorry that wasn't clear, Subsonic. Each string entered must be sorted according to how many times it has appeared. If 15 different words have been entered in an input stream of 30 words, there should...
Ok, so that section should be:
for(i=0; i<counter;i++){ //check if s is already there
k=strcmp(s,word[i]); //compare the strings
if(k==0){ // s is already...
Yes, it was complaining, but I didn't know what the error message meant. I'm a n00b, and the VMware terminal's error messages are confusing. Messing with it sometimes stored big negative numbers in...
Goal: count the number of unique strings from the input stream. The typedef, STRING, scanf, and %s are required. After that, sort each unique string according to how many times its appeared. The...