Search:

Type: Posts; User: urban1990

Search: Search took 0.02 seconds.

  1. Replies
    11
    Views
    1,903

    Yea, i know it's a bit silly, but the thing is...

    Yea, i know it's a bit silly, but the thing is that we aren't allowed to use global variables in our assignment. Don't know why.
  2. Replies
    11
    Views
    1,903

    Never mind, i just found out how to fix it :) ...

    Never mind, i just found out how to fix it :)

    This works for me:




    void CreatePwList(FILE *in, FILE *out)
    {
    char templine[100], fornavn[100];
  3. Replies
    11
    Views
    1,903

    Thanks for the help. What about this one, is this...

    Thanks for the help. What about this one, is this also a constant (or variable?), and how do i eliminate it?




    #define MAXCHARS 100

    void CreatePwList(FILE *in, FILE *out)
    {
    char...
  4. Replies
    11
    Views
    1,903

    Well i want to eliminate them. Any idea how i can...

    Well i want to eliminate them. Any idea how i can do that without ruining the code?
  5. Replies
    11
    Views
    1,903

    From global to local variable

    Hi,

    I need some help to convert global variables into local variables. How the hell do i do that when im operating with .txt files.

    The following is a part of my program.

    Thanks
  6. Replies
    5
    Views
    1,366

    void main () { char c; FILE * prt,...

    void main ()
    {


    char c;
    FILE * prt, *prt1;
    prt = fopen("Inputfil.txt","r");
    prt1 = fopen ("Outputfil.txt", "w");
    while((fscanf(prt, "%c", &c))==1)
    {
  7. Replies
    5
    Views
    1,366

    From input to output file creation

    Hi,

    I need to write down a program which contains an input file, the program needs to write an output file which contains the content from the input file in a specific order.

    The input file...
Results 1 to 7 of 7