Search:

Type: Posts; User: simonc2

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    2,314

    Definition of read_record: char...

    Definition of read_record:



    char read_record[256]

    Loop structure:


    while ((loop_check = in_file_stream1.peek()) != EOF )
  2. Replies
    4
    Views
    2,314

    cout not printing full string

    My programme reads a line from a text file using

    in_file_stream1.getline(read_record,255);

    Each line in the file contains four fields, the numerical fields are right justified which means...
  3. Replies
    1
    Views
    1,392

    Problem solved

    I found the answer. You put option -tW in the compiler command line.

    Sorry for taking your time.
  4. Replies
    1
    Views
    1,392

    unresolved external reference

    I am delving into Windows API programming using Borland's compiler.

    When I try to compile sample programmes - for example:



    #include <windows.h>

    int WINAPI WinMain(HINSTANCE, HINSTANCE,...
  5. Replies
    1
    Views
    1,645

    seekp and binary files

    I am writing a programme which creates a binary file, but because the programme is generating bits of information which need to go in different sections of the file I am trying to use seekp to jump...
  6. Replies
    3
    Views
    2,400

    Detecting return key

    I want to simplify user input of parameters to a programme by offering default values - ie if the user just presses Return the default value is assigned. The input section should be something like...
  7. Replies
    4
    Views
    1,415

    Size of the command window

    Is there a way you can specify in a console application the size of the command window which will be opened?
  8. Replies
    6
    Views
    16,860

    Many thanks for you rhelp. I would never have...

    Many thanks for you rhelp.

    I would never have worked out this simple correction in a million years of looking at online tutorials...
  9. Replies
    6
    Views
    16,860

    Here is the function which I want to use to write...

    Here is the function which I want to use to write to the output file
    (line_elements is a structure which is defined globally)



    int ann_bln_out (line_elements point1, line_elements point2,...
  10. Replies
    6
    Views
    16,860

    Passing file stream as function parameter

    I am writing a programme to open a file, do some reformating of the data and write the result to an output file. Within function main the input file name is deconstructed and used to create the...
Results 1 to 10 of 10