Search:

Type: Posts; User: Drako

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,808

    This site has a good tutoeial on seriel...

    This site has a good tutoeial on seriel programming
    net programming
  2. Thread: Dev-c++

    by Drako
    Replies
    2
    Views
    885

    If you know the header file names, open them up,...

    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...
  3. Replies
    2
    Views
    1,706

    File version check

    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...
  4. Replies
    19
    Views
    3,260

    you can use one function to open and close the...

    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"); ...
  5. Replies
    1
    Views
    1,471

    (The answer): int total=0, counter=0, mark =...

    (The answer):

    int total=0, counter=0, mark = 0, average;

    do{
    printf("Plz enter a mark");
    scanf("%d", &mark);

    counter++ ;
    total+=mark;
  6. Replies
    3
    Views
    4,602

    You might try this: char string[], c; int i =...

    You might try this:

    char string[], c;
    int i = 0;

    while((c=getc(stdin)) != NULL)
    {
    string[i] = c;
    i++;
    }
  7. Replies
    11
    Views
    2,002

    Don't know if you have tried this already > ...

    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
  8. Thread: strings??

    by Drako
    Replies
    5
    Views
    1,131

    char c[10]; int i = 0, int max; while...

    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++;
  9. Thread: functions??

    by Drako
    Replies
    4
    Views
    1,087

    You could try using linked lists instead of a...

    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;
  10. Thread: alloc.h

    by Drako
    Replies
    2
    Views
    2,974

    alloc.h

    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...
  11. Replies
    1
    Views
    1,139

    variables in array declarations

    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.
  12. Thread: resetting arrays

    by Drako
    Replies
    4
    Views
    1,063

    resetting arrays

    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...
  13. Replies
    1
    Views
    938

    Need a few pointers

    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...
  14. Thread: Help!

    by Drako
    Replies
    1
    Views
    1,014

    Help!

    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...
Results 1 to 14 of 14