Search:

Type: Posts; User: Baron

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    2,218

    Problem with loop stopping at wrong time

    Hello again.
    I have created the following program to count the number of times each letter of the alphabet appears in a textfile. It works properly, unless there are no occerences of a certain...
  2. Replies
    2
    Views
    2,025

    Can you set array contents on initialization?

    Hi,
    I have an integer array and would like each value in it to be set to 0 when it is initialised. Could anyone tell me how to do this?

    Thanks
    -Chris
  3. Replies
    5
    Views
    1,219

    Have solved the problem, the solution came to me...

    Have solved the problem, the solution came to me whilst I was trying to get to sleep =)

    Thanks for all your help guys

    -Chris
  4. Replies
    3
    Views
    960

    So i just initialise all the varibles as floats?...

    So i just initialise all the varibles as floats? i don't need to actually put float in brackets before the variable name?

    Thanks
    -Chris
  5. Replies
    3
    Views
    960

    Question regarding aritmetic and pointers

    Hi
    I need to do a simple piece of arithmetic and was thinking of using the following code


    percent = letTotal / 100 * *ptr1;

    with 'percent' and 'lettotal' being integer variables and ptr1...
  6. Replies
    5
    Views
    1,219

    Apologies, I should have described the situation...

    Apologies, I should have described the situation a bit better. I'm only supposed to use arrays and loops to acheive this. I have a key array within my cipher program and a loop which reads the ascii...
  7. Replies
    5
    Views
    1,219

    Help with cipher key problem

    Ok, Hello all, new to this forum and C for that matter, but if anyone could help at all it would be greatly appreciated.

    I have been tasked to create a program to read a simple substitution cipher...
Results 1 to 7 of 7