Yes, I am quite good in mathematics. So I hope I can handle the mathematics for encrpytion.:)
Type: Posts; User: mlsbbe
Yes, I am quite good in mathematics. So I hope I can handle the mathematics for encrpytion.:)
Does anybody know any good sites that teaches encryption in C to a beginner?
For some reason I can't access the FAQ at faq.cprogramming.com. It just gives me a blank screen.
---Edit---
I found the problem. For some reason, my browser doens't redirect to the page.
I want to validate the string below for integers, and if there is a letter, I want the program to exit.
>>name,1,2,3,4
if the string is something like this
>>name,1,23,34,2a
I want the...
Thanks for the help. How about this code? Which one would be better this time?
#include <stdio.h>
#define MAXSTUDENT 4
#define MAXNAME 20
typedef struct{
char name[MAXNAME+1];
Hi, I want to ask which is the better way for doing the following code? Like this:
#include <stdio.h>
#define MAXSTUDENT 4
#define MAXNAME 20
typedef struct{
char name[MAXNAME+1];
>>If you have an array of structs, you'll need to pass a struct pointer which references the first element of the array, then loop through the array.
Can you give me an example of how to do that?
Thanks everybody, but it wasn't what i meant. I want to point to the members of a structure array, and pass that into a function, instead of passing the whole structure in and then accessing the...
Does anybody know how to pass the members of an array of structure as a pointer into a function? I have absolutely no clue how to do this.
typedef struct{
int a,b;
}myst;
int...
argg..sorry. Its probably because I only posted part of my code here.
I've just had this idea and I'll try work on it. Thankyou for the help .:)
i've just started a new thread -
'File IO help please'
and i've explained my problem better I think. Thankyou for the help! T:)
I want to read from the text file :
John,1,2,3,4
Smith,2,3,4,5
Jones,4,5,6,7
How would I detect an empty line in the file and tell the user that the line is missing? For example (the...
I've remade the file so that now I can compile it. However, this time, it doesn't skip out the line
if (p_error==NULL)
{
printf("\nError in reading file"); /*EOF error*/
}
even...
Does anybody know why my code for error handling in fgets doesn't work? I've been trying to make this work for ages, and still cannot get this to work. What happens is that instead of skipping the...
I tried it on my computer at home and now it works. Thanks very much! =):)
I tried your code on my compiler, but it doesn't work.:confused:
Yes, i know that placing spaces in between would make it easier. But i want to know why it doesn't work it I use the comma operator?
If it does, how can I make fscanf read the line of text?
For some reason, fscanf seams to be only taking a whole line from the text file and storing it in the string member of the structure. But I want the line to be stored in seperately into different...
I've tried changing &student[i].name to student[i].name, but i still can't read the file. The compiler gives something like:
"Data if 'int' supplied where pointer is required"
#include...
I am still stuck. How would you tell fscanf to read a new line from the data and store it?
I can't give it a value like EOF, since this would mean the end of the file, not a new line.
Again,...
I want to scan a text file:
jones,1,2,3,4
smith,2,3,4,5
john,57,65,4,2
catherine,25,64,78,65
I want ask a few questions:
Thanks,
Its much clearer now!
In my book, it says that for a structure e.g.
x.name
is equivalent to:
x->name
however, when I tried to write a program using it, only
x->name will take in the values. I want to know why.
See...
Hello, I am a newbie to C programming, so forgive me if the questions I ask sound stupid.
I am trying to create a program to calculate complex numbers using structures.
I want to pass the value of...