Search:

Type: Posts; User: JamMan

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,380

    True.. :D .. and a great thanks to everyone...

    True.. :D

    .. and a great thanks to everyone who helped me with this problem. :)
  2. Replies
    9
    Views
    1,380

    Cheers whoever you are.. You know there are...

    Cheers whoever you are..

    You know there are some very good programers, that never register and stay as 'unregistered', why dont they register??

    Thanks anyway..

    JamMan.. :)
  3. Replies
    9
    Views
    1,380

    By the curly bracket I mean: if //length...

    By the curly bracket I mean:




    if //length of a string is equal to or more than 20, need to know the code to put here??
    {
    //then do this
    }
  4. Replies
    9
    Views
    1,380

    Cheers Gotvcheese, thats what I thought it was....

    Cheers Gotvcheese, thats what I thought it was. But does this only works on strings??

    Can anyone help me with the following:
    "And also I how I program some code that operates when the maximum...
  5. Replies
    9
    Views
    1,380

    Cheers V :) But could someone please explain...

    Cheers V :)

    But could someone please explain what each part of the command does??

    I understand that the '20' is the maxium number of characers.

    But is the 'string' the variable type to be...
  6. Replies
    9
    Views
    1,380

    Simple question about strings..

    How do I store an input as 20 characters long, with spaces included.
    For example when storing an address '31 High Street',
    only stores the '31'??

    Can someone please help me??
  7. Replies
    0
    Views
    939

    Who can explain????

    Why when I print to my printer does it only print-out capital letters, numbers and # ??
    :confused:

    Heres the code...


    print << "HELLO hello 12389 # {}[];'.!£$^&*()\f"; //only prints out the...
  8. Replies
    4
    Views
    1,083

    Thats helped, :) but I'm getting a compiler...

    Thats helped, :)
    but I'm getting a compiler error. :(
    Here's my code:



    ifstream input("file.txt");
    ofstream output("temp");
    string s;
    int i = 0;
  9. Thread: NULL problem??

    by JamMan
    Replies
    5
    Views
    990

    Thanks that has helped but how do I check if a...

    Thanks that has helped but how do I check if a string exists or not?
  10. Replies
    4
    Views
    1,083

    When writing to a text file how do you...

    Erase all the text on a certain line?
    and then
    Write to this line?



    ofstream mnfile(c:\\temporary.txt, ios::ate);

    mnfile.getline(input, 255, '\n');
    mnfile<<(manumb);
  11. Thread: NULL problem??

    by JamMan
    Replies
    5
    Views
    990

    NULL problem??

    The below code is from my program. The variable 'input' is a line from a text file.

    I'm trying to check if the line exists or not I am currently using NULL but it doesn't seem to work??

    Am I...
  12. Replies
    2
    Views
    1,121

    Cheers Kermi But I've read through the...

    Cheers Kermi

    But I've read through the tutorials about file io and search the net but cann't find any info on how to goto to specific line in a txt file and then edit it??
    :(
    :confused:
  13. Replies
    2
    Views
    1,121

    File IO (txt file)

    How do I read information from a certain line from a txt file in as a char, and then edit it.

    This my code, but it doesn't work? Can someone please help as File IO is one of my weaker areas of...
  14. Replies
    3
    Views
    1,171

    Printing, Is it possible to..

    .. print via the printer device driver in Console App?

    And can someone demonstrate..

    Thanks
  15. Replies
    6
    Views
    1,643

    Cheers Brown Drake think I got it now.

    Cheers Brown Drake think I got it now.
  16. Replies
    6
    Views
    1,643

    Dont understand, I just don't understand what it...

    Dont understand, I just don't understand what it means!..

    Sorry http://www.rsownersclub.co.uk/ubb/confused.gif
  17. Replies
    6
    Views
    1,643

    Hi, dont fully understand that, but nearly.. ...

    Hi, dont fully understand that, but nearly..

    How would I write a program that put certain lines of a text file onto a certain x,y on the screen.
  18. Replies
    6
    Views
    1,643

    Can someone explain what this means??

    if(lines++%20==19)
  19. If post up some code (ideally the whole program)...

    If post up some code (ideally the whole program) that you use to print the text file I maybe be able to help you.
  20. I'd recomend learning C then C++! :D As C++ is...

    I'd recomend learning C then C++! :D
    As C++ is more advanced, and it would be logical to start on the founder.

    Just my 10p's worth. :D
  21. Replies
    1
    Views
    917

    Printing, why oh why??..

    Hi I have a problem wih the following programs that prits to LTP1(parallel port). It only prints letters in Caps, Numbers and #, why is this? and how can I print all Characters?

    Also is there any...
  22. Replies
    11
    Views
    1,985

    Cheers for all the replies!!!

    Now I'm trying to get the program to display the lines of the text file on different xy positions.




    if (i = (choice) * 10)
    {
    gotoxy(15,3);
    cout << input << endl;
    }
  23. Replies
    11
    Views
    1,985

    Cheers people!! I'm almost there to understanding...

    Cheers people!! I'm almost there to understanding this..



    I'm unsure about the two above lins of code. What is the nmber 255 representing??

    Thanks JamMan..
  24. Replies
    11
    Views
    1,985

    Sorry.. You lost me, Open it at the Command...

    Sorry.. You lost me, Open it at the Command Prompt?? :confused:
  25. Replies
    11
    Views
    1,985

    ???????

    Cheers but the program Fordy gave me doesn't seem to work, I put a getch(); at the end but the screen just flashes up and then disappears??

    Could someone be so kind as to explain what every line...
Results 1 to 25 of 44
Page 1 of 2 1 2