This site has a good tutoeial on seriel programming
net programming
Type: Posts; User: Drako
This site has a good tutoeial on seriel programming
net programming
If you know the header file names, open them up, look for the functions and check the description that's with them. If they don't have a description or you don't understand search for the function or...
Hi,
I was wondering if someone could help me out with a program I am coding. I need to be able to check if the file (DLL, OCX, EXE) I pass to the function has a version number attached to it. I am...
you can use one function to open and close the files:
void Files(char option)
{
if(option =='r')
{
memberRead = fopen("MemberFile.txt","r");
videoRead = fopen("RentalFile.txt" ,"r"); ...
(The answer):
int total=0, counter=0, mark = 0, average;
do{
printf("Plz enter a mark");
scanf("%d", &mark);
counter++ ;
total+=mark;
You might try this:
char string[], c;
int i = 0;
while((c=getc(stdin)) != NULL)
{
string[i] = c;
i++;
}
Don't know if you have tried this already >
Create the header file, say example.h, using
#ifndef EXAMPLE_H
#define EXAMPLE_H
at the beginning
and
#endif
char c[10];
int i = 0, int max;
while ((c[i] = getc(stdin)) != '\n')
{
if (c[i] == ' \ \')
QUOTE]there should be two \ inside the apostrophes '\\' [/QUOTE]
continue;
else
i++;
You could try using linked lists instead of a function
Something like this:
char str[20];
struct string
{
char colour[20];
struct string *next;
}start, *node;
I have a problem running my code in Visual c++. It's c code and I'm using alloc.h and malloc but the compiler can't find alloc.h. Is there a different header file with malloc in it or could some one...
Is it possible to use a variable in an array declaration such as:
char arr[number][20];
where number is a number found in an input file.
If so, I'd appreciate it if you let me know how.
I'm getting a weird result in the attached program. Think it has something to do with the array or the get_word function. When I hit 'y' at the end to repeat it skip most of the program down to where...
Need some help with this simple hangman program. i keep getting the error :
Lvalue required in function main()
an d a warning to do with pointers in the get_word function;
Could some body tell...
Could someone please tell me what is wrong with this program. It is meant to return "GO" when
COMETHALEBOPP
HEAVENSGATE
is in the input file, but it doesn't work.
Really annoying me. Need...