hi.
i'm currently trying to make an XOR encryption program with a slight twist, but the string.h functions are intent on preventing me from completing it.
I'm using Dev C++ cos i got it free...
Type: Posts; User: ChrisE
hi.
i'm currently trying to make an XOR encryption program with a slight twist, but the string.h functions are intent on preventing me from completing it.
I'm using Dev C++ cos i got it free...
i was under the impression that an array had to have a fixed size at compile time. could you give me an example of how to allow an array size to be user defined, as
type ArrayName[x] doesn't...
is it better to have an array on the stack or the heap? and why are the reasons for whatever answer you may give. thanks a lot :)
woops, sorry, was in a rush etc
i don't know if this is what you mean, and i've forgotten almost all of pascal, but:
pascal:
procedure Name1 // creates procedure 1
begin
<<code>> // procedure 1 code
end;
#include <iostream>
#include <stdio.h> //allows use of gets();
int main ()
{
char type [50];
int a, b, c,d;
cout<<"Hello! What is your name?\n";
think of arrays like this:
square paper, where you can write only one character in each square. a strip of square paper with 10 squares, but only 1 square thick would be a 1d array.
e.g
char...
you could use a structure to organise the user information i.e:
struct sAccountData
{
long int AccountNo;
char CustName[40];
float Balance;
};
then using file i/o you would get...