Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. RavUnRex

    Help with Strings

    ok.. I made scanf("%d", counter) changed to scanf("%d", i) but still no go.
  2. RavUnRex

    Help with Strings

    I've got the string functions working I just can't get the loop to work... I've even tried to make it so it prompts the user how many times they want to decode the resistors, then do it that many times, but that still won't work... I get an error after I enter the number of times... here's the...
  3. RavUnRex

    Help with Strings

    here's what I got... But I gotta incorporate a while loop so the user can decide whether to run this more than once or not. I wrote a do-while loop, but it's not working... the do-while is in bold: #include <stdafx.h> #include <stdio.h> #include <string.h> #define STRING 8 #define error -1...
  4. RavUnRex

    Help with Strings

    GREAT! I've got that portion of the program working now. Time to move on to the next segment :banghead: Thanks for the help!!
  5. RavUnRex

    Help with Strings

    #include <stdafx.h> #include <stdio.h> #define STRING 8 #define error -1 int main(void) { char COLOR_CODES[10][8] = {"black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "gray", "white"}; char color1[STRING], color2[STRING], color3[STRING]; char holder; int a, b...
  6. RavUnRex

    How do I get started?

    I am trying to write a program that takes words from a text file and prints each one on a seperate line of an output file followed by the number of letters in the word. Any leading or trailing punctuation must be left out. When all the text has been processed, I have to display on the screen a...
  7. RavUnRex

    array subscript help please.

    Thank you so much, I knew it was something simple I was missing. I just couldn't figure out how to keep track of the index like that. Thanks again.
  8. RavUnRex

    array subscript help please.

    I am trying to write a program that will find the largest value in an array, and also will display the subscript of the largest value. I can find the largest value, but I have been working for the past 4 hours trying to get the subscript to display... anyone know how to go about this, without...

Part and Inventory Search

Back
Top