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...
Type: Posts; User: frankchester
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...
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.
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 :/
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...
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...
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...
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...
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).
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()
{
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...
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...
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.
...
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*/...