Search:

Type: Posts; User: frankchester

Search: Search took 0.00 seconds.

  1. Hi, I'm trying to, the problem is I find it...

    Hi,

    I'm trying to, the problem is I find it difficult to work out what are variables that have been used created and what are actual programming terms and functions, as I obviously don't know much...
  2. What does that do? I hadn't come across it in the...

    What does that do? I hadn't come across it in the string tutorial.

    As I said, I don't know what the solution is, thats why I'm here asking.
  3. Would you be able to help me out with some...

    Would you be able to help me out with some psuedocode? I'm new to programming so I find it really hard to understand what code is actually doing if its complex :/
  4. Using strcmp to find if a string ends in...

    I want to read a string and check if it ends in a .txt

    I thought about using strcmp to compare it against a correct string including the .txt but not sure if this would work or is the way it is...
  5. Thanks, yeah I'm using a string I think. Now I...

    Thanks, yeah I'm using a string I think. Now I just have to work out what on earth that piece of code means. I'm only a beginner to the entire of programming :(

    Could you explain what the 'char...
  6. Performing individual actions on chars in an array.

    I have an array of chars, I want to pluck each char out of the array, perform some actions on it and put it back into a new array in order.

    Can anyone explain how to do this? I figured I'd need a...
  7. Replies
    1
    Views
    1,127

    User inputted filename

    Hi, I have a string which stores the name of the file the user has inputted, but I have no clue how to input this into the opening of that file!

    I thought that fp=fopen("%s", filename, "r"); would...
  8. Replies
    7
    Views
    3,057

    Hi, I'm able to read in fine, it crashes after...

    Hi,

    I'm able to read in fine, it crashes after the user input the filename (I know I'm not using it yet, I have no idea how to do it! Still trying to figure it out).
  9. Replies
    7
    Views
    3,057

    Here is the complete code, the message variable...

    Here is the complete code, the message variable has been declared and holds 400 chars so it should be fine.



    #include<stdio.h>
    #include<string.h>
    #include<ctype.h>

    void main()
    {
  10. Replies
    7
    Views
    3,057

    Debug Assertion Failed error

    Hi, I've been having problems with this code, a few people have looked at it and say it should work but I get a 'Debug Assertion Failed' error. It says 'expression str!=NULL'.

    Not sure what the...
  11. Replies
    13
    Views
    5,384

    The next step of this program is to encrypt it...

    The next step of this program is to encrypt it using a caesar cipher, thus I figured I'd need to have each char as separated as possible so that I cna encrypt each separately. Will I be able to...
  12. Replies
    13
    Views
    5,384

    Converting string to char array

    Hi, I have another problem :(

    I've written a program which reads in a text file into a string.

    Now, I want to convert that entire string so each char is held seperately in an array.
    ...
  13. Reading a text file into a string - fread?

    Hi, I've written a piece of code that should read in a text file, store it in a string, then print it out on screen.



    #include<stdio.h>

    int main()
    {
    /*declare and initialise variable*/...
Results 1 to 13 of 14