Search:

Type: Posts; User: Nancy Franklin

Search: Search took 0.00 seconds.

  1. Thanks for all your help, guys. I figured out the...

    Thanks for all your help, guys. I figured out the rest, and it's working. :)
  2. Would this work, or do I have it backwards? ...

    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];
  3. GLike this? for(i = 0; i < 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] =...
  4. Um, I don't have a compiler or access to one for...

    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]){
    ...
  5. Sorry that wasn't clear, Subsonic. Each string...

    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...
  6. Ok, so that section should be: for(i=0;...

    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...
  7. Yes, it was complaining, but I didn't know what...

    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...
  8. Please help: counting string occurances using scanf and arrays

    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...
Results 1 to 8 of 8