Search:

Type: Posts; User: trprince

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    2,071

    so know this is what i get with this code:...

    so know this is what i get



    with this code:

    int availability(Grocery_Arr groc_list, InvArr inv_list, int num_grocItems, int num_invItems){
    int compare,...
  2. Replies
    16
    Views
    2,071

    ok so now my functon is this int...

    ok so now my functon is this


    int availability(Grocery_Arr groc_list, InvArr inv_list, int num_items){
    int count;
    float total = 0.0, new_price;
    for(count = 0; count < num_items;...
  3. Replies
    16
    Views
    2,071

    it doesn't even read them...i'm so out of ideas

    it doesn't even read them...i'm so out of ideas
  4. Replies
    16
    Views
    2,071

    ok...so when i do the match =...

    ok...so when i do the


    match = (strcmp(groc_list[count].name, inv_list[count].name) == 0);
    i get this output
  5. Replies
    16
    Views
    2,071

    even when i change the name, I'm still gettting...

    even when i change the name, I'm still gettting the same thing. I don't really understand.
  6. Replies
    16
    Views
    2,071

    what do you mean check the condition. If it does...

    what do you mean check the condition. If it does =0 then do the following statements. Should I chagne it?
  7. Replies
    16
    Views
    2,071

    So just make it a plain while loop? It's...

    So just make it a plain while loop?

    It's multiplying by the first one then the second one and so on.
  8. Replies
    16
    Views
    2,071

    oksy so now I have two problems. The last...

    oksy so now I have two problems. The last sentinel (done 0) is printing and i don't want that because its my sentinel. And also the big problem is that my numbers new_price is multiplying wrong. I...
  9. Replies
    16
    Views
    2,071

    Structure Functions

    I am writing a function that compares two structures. It compares the names and the quantity. The total cost is then the price times the quantity wanted. if the the item is not there then there is a...
  10. Replies
    29
    Views
    5,998

    fixed compiler error but now i need my code checked from above

    the alphabet code
  11. Replies
    1
    Views
    1,146

    compiler warning still won't go away

    i am using the ctype.h header file too


    void encrypt(char secret[],char message[],char coded[]){
    int count;
    char letter;
    for(count = 0;count < MAXLEN;count++){
    letter...
  12. Replies
    29
    Views
    5,998

    check code

    so do i not need to use isalpha even though I don't want it to change the punctuation marks. I only want to change the letters to lower case and then encrypt them. the punctuation statys the same in...
  13. Replies
    29
    Views
    5,998

    another try to please please check

    could I do something like this too



    void encrypt(char secret[],char message[],char coded[]){
    int count;
    char letter;
    for(count = 0;count < MAXLEN;count++){
    letter =...
  14. Replies
    29
    Views
    5,998

    can't figure out the compilation error

    ok...so now my program should do what i want? but i am also getting a compilation error/warning for this line




    void encrypt(char secret[],char message[],char coded[]){
    int count;
    ...
  15. Replies
    29
    Views
    5,998

    any thoughts

    any thoughts
  16. Replies
    29
    Views
    5,998

    ok...so now my program should do what i want? ...

    ok...so now my program should do what i want? but i am also getting a compilation error/warning for this line


    void encrypt(char secret[],char message[],char coded[]){
    int count;
    char...
  17. Replies
    29
    Views
    5,998

    void encrypt(char secret[],char message[],char...

    void encrypt(char secret[],char message[],char coded[]){
    int count;
    char letter;
    for(count = 0;count < MAXLEN;count++){
    letter = message[count];
    ...
  18. Replies
    29
    Views
    5,998

    ok now that you say that...then my encrypt...

    ok now that you say that...then my encrypt function is wrong. I need to take each character to see if it is a letter, then change it to lower case, then encrypt by mapping using 'a' as index 0 and...
  19. Replies
    29
    Views
    5,998

    ok. can you look at my program. my program...

    ok. can you look at my program. my program generates a random number 1-5, reads the input text of five lines and the original message, the key number generated corresponds to one of the five lines...
  20. Replies
    29
    Views
    5,998

    does this work void encrypt(char...

    does this work


    void encrypt(char secret[],char message[],char coded[]){
    int count;
    char letter;
    for(count = 0;count < MAXLEN;count++){
    letter = message[count];
    ...
  21. Replies
    29
    Views
    5,998

    OK That makes sense. thanks. now where does the...

    OK That makes sense. thanks. now where does the third parameter come in. i take in three arrays. secret[] is the key, message[] is the original input that needs to be encrpted, and coded is the...
  22. Replies
    29
    Views
    5,998

    sorry , i'm a beginner, can you explain what that...

    sorry , i'm a beginner, can you explain what that line means

    if(isalpha(letter))
    {
    message[count] = coded['a' - letter];
    }

    is it saying that the 'a' minus letter position in the coded...
  23. Replies
    29
    Views
    5,998

    oh ok..thanks....that makes sense. what is the...

    oh ok..thanks....that makes sense. what is the logic or how to I go about doing the encryption. i was thinking that i have to mapp the index with the key. but i'm not sure where to start. i know...
  24. Replies
    29
    Views
    5,998

    this is the main function #include ...

    this is the main function
    #include <stdio.h>
    #include <string.h>
    #include <ctype.h>
    #include <stdlib.h>
    #include <time.h>

    #define MAXLEN 81
    #define ALPHABETSIZE 26
  25. Replies
    29
    Views
    5,998

    oh ok. yes A maps to 0. so fgets gets an entire...

    oh ok. yes A maps to 0. so fgets gets an entire string if it'n not a character. do i use getchar()? what do i need to fix
Results 1 to 25 of 60
Page 1 of 3 1 2 3