Search:

Type: Posts; User: Duskan

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,285

    Problem with Visual Studio 2005

    Hi, I am not sure if this is the best place to post this, but I am having a minor problem with Visual Studio. I have started to use it for the development of C++ programs but as soon as I build a...
  2. Replies
    2
    Views
    1,444

    It's OK people, I've worked it out. Thanks for...

    It's OK people, I've worked it out. Thanks for the help
  3. Replies
    2
    Views
    1,444

    Upper case output

    Hi I am new to C++ programming and I am in some need of help. I need to write a program that opens a file called "in.dat", reads it character by character and converts all lower case characters to...
  4. Replies
    2
    Views
    2,260

    Undefined Symbol problem

    Hi, I am working on a C program and I got the following function:



    int printCount(char* fileName)
    {
    struct Node* current;
    current = head;
    int unique = 0;
    ...
  5. Thread: Pointer problem

    by Duskan
    Replies
    3
    Views
    1,267

    K, I got it figured out, thanks.

    K, I got it figured out, thanks.
  6. Thread: Pointer problem

    by Duskan
    Replies
    3
    Views
    1,267

    I would really appreciate it if somebody could...

    I would really appreciate it if somebody could help me, I have added a swap function to the code so that it now looks like this:



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    ...
  7. Thread: Pointer problem

    by Duskan
    Replies
    3
    Views
    1,267

    Pointer problem

    Hi I am having problems with a program that is displaying pointers instead of expected data:

    Here is the code



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
  8. Replies
    8
    Views
    3,269

    Could you give me some sort of example? I am...

    Could you give me some sort of example? I am looking all over the net but can't find anything but complex code that doesn't match. I just need to clear the line without having to use fflush.
    Sorry...
  9. Replies
    8
    Views
    3,269

    The FAQ page only tells me to avoid it, but...

    The FAQ page only tells me to avoid it, but doesn't tell me what alternative I can use.
  10. Replies
    8
    Views
    3,269

    fflush(stdin) command

    Hi, I am writing a program that makes use of the function command fflush(stdin) to clear an input line like the following:



    //clear the standard input
    fflush(stdin);
    //get the...
  11. Replies
    9
    Views
    3,783

    I do not want to add any more files. I just need...

    I do not want to add any more files. I just need a single .c file that gets the functions from the header file.
  12. Replies
    9
    Views
    3,783

    Sorry, I am just not sure of which way I should...

    Sorry, I am just not sure of which way I should do it. Problem is I cannot modify the contents of the header file at all and I need to call the functions to the main c file.
  13. Replies
    9
    Views
    3,783

    OK, perhaps I should make myself clearer. My...

    OK, perhaps I should make myself clearer.

    My header file looks like the following:



    #ifdef _PUZZLE_H
    #define _PUZZLE_H

    #include <stdio.h>
  14. Replies
    9
    Views
    3,783

    Passing functions between files

    Hi, I am kind of new to C programming and I got two different files. One is my main .c file which I am using to make my main program and I got another file with an extension of .h. The .h file has...
  15. Replies
    8
    Views
    2,769

    Never mind guys, I fixed it up now, I had to cast...

    Never mind guys, I fixed it up now, I had to cast the string[i] to int on those two lines as well. Fixed and submitted now, thanks for your help :)
  16. Replies
    8
    Views
    2,769

    Hi pplz, I managed to get the program working...

    Hi pplz, I managed to get the program working correctly now using this code:



    #include <stdio.h>
    #include <ctype.h>

    #define STRINGSIZE 100

    void getString(char *string);
  17. Replies
    8
    Views
    2,769

    Hi, I'd like to first of all thank people for the...

    Hi, I'd like to first of all thank people for the help, my little string converter program is nearly finished, I am only stuck on the function of converting the letters from the string from lower...
  18. Replies
    8
    Views
    2,769

    OK, thanks, I have changed the code to this: ...

    OK, thanks, I have changed the code to this:



    #include <stdio.h>
    #include <ctype.h>

    #define STRINGSIZE 100

    void getString(char *string);
  19. Replies
    8
    Views
    2,769

    Help with string program

    Hi, I need urgent help for this program, sorry I am new to C and I got this code:



    #include <stdio.h>

    #define STRINGSIZE 100

    void getString(char *string);
    void reverseCase(char *string);
  20. Replies
    3
    Views
    1,669

    String program problem

    Hi, I got the following program:



    #include <stdio.h>

    #define STRINGSIZE 1OO

    void getString(char *string);
    void reverseCase(char *string);
  21. Thread: Array problem

    by Duskan
    Replies
    6
    Views
    1,538

    Never mind, don't bother replying. I got it to...

    Never mind, don't bother replying. I got it to work.

    Thanx anyway.
  22. Thread: Array problem

    by Duskan
    Replies
    6
    Views
    1,538

    OK, I have changed the code to look like this: ...

    OK, I have changed the code to look like this:



    #include <stdio.h>

    #define MAXCOL 6
    #define MAXROW 9

    void fillArray(int array[][MAXCOL]);
  23. Thread: Array problem

    by Duskan
    Replies
    6
    Views
    1,538

    Array problem

    Hi I am making a program that uses multi dimensional arrays to display numbers from 1 to 54 in 6 rows and 9 columns. Here is my code:



    #include <stdio.h>

    #define MAXCOL 6
    #define MAXROW 9
    ...
Results 1 to 23 of 23