Hello.
I am extremely new to Programming, but I am trying to make my first littl program.
And so, could you PLEASE tell me what is wrong with this string?
#include <stdio.h>
#include <stdlib.h>
#include <fstream.h>
#include <iostream.h>
void main(void)
{
typedef char fred(40);
fred="Hello";
cout<<fred;
}
It brings up about 6 errors at last count.
All I want is something to store a word, in this case "hello". I think it might have some thing to do with the fact that "hello" is not 40 characters, but I have tried 4, 5, 6, 7, 8+ numbers and it still dosent seem to work (Besides my help file tells me that I can say 40 and only use 10).
If you recognise what is wrong here could you please tell me? Thanks in advance.
"Do something nice for others. That way they owe you in return" -My Mum